@memberjunction/server 2.106.0 → 2.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/skip-sdk.d.ts +11 -0
- package/dist/agents/skip-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +262 -3
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/config.d.ts +60 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -2
- package/dist/context.js.map +1 -1
- package/dist/generated/generated.d.ts +355 -20
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +2220 -154
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +0 -2
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +1 -0
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/services/ScheduledJobsService.d.ts +21 -0
- package/dist/services/ScheduledJobsService.d.ts.map +1 -0
- package/dist/services/ScheduledJobsService.js +105 -0
- package/dist/services/ScheduledJobsService.js.map +1 -0
- package/package.json +34 -30
- package/src/agents/skip-sdk.ts +351 -8
- package/src/config.ts +10 -0
- package/src/context.ts +3 -2
- package/src/generated/generated.ts +1419 -119
- package/src/index.ts +50 -0
- package/src/resolvers/AskSkipResolver.ts +5 -3
- package/src/resolvers/RunAIAgentResolver.ts +1 -0
- package/src/services/ScheduledJobsService.ts +164 -0
|
@@ -2493,6 +2493,7 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
|
|
|
2493
2493
|
EffortLevel;
|
|
2494
2494
|
RunName;
|
|
2495
2495
|
Comments;
|
|
2496
|
+
ScheduledJobRunID;
|
|
2496
2497
|
Agent;
|
|
2497
2498
|
Conversation;
|
|
2498
2499
|
User;
|
|
@@ -2501,8 +2502,8 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
|
|
|
2501
2502
|
OverrideVendor;
|
|
2502
2503
|
RootParentRunID;
|
|
2503
2504
|
RootLastRunID;
|
|
2504
|
-
MJ_AIAgentRuns_ParentRunIDArray;
|
|
2505
2505
|
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
2506
|
+
MJ_AIAgentRuns_ParentRunIDArray;
|
|
2506
2507
|
MJ_AIPromptRuns_AgentRunIDArray;
|
|
2507
2508
|
};
|
|
2508
2509
|
__decorate([
|
|
@@ -2680,6 +2681,11 @@ __decorate([
|
|
|
2680
2681
|
Field({ nullable: true, description: `Human-readable notes and comments about this agent run` }),
|
|
2681
2682
|
__metadata("design:type", String)
|
|
2682
2683
|
], MJAIAgentRun_.prototype, "Comments", void 0);
|
|
2684
|
+
__decorate([
|
|
2685
|
+
Field({ nullable: true, description: `Links to the scheduled job run that triggered this agent execution. NULL for manually-triggered agent runs. Enables tracking which scheduled jobs spawned which agent executions.` }),
|
|
2686
|
+
MaxLength(16),
|
|
2687
|
+
__metadata("design:type", String)
|
|
2688
|
+
], MJAIAgentRun_.prototype, "ScheduledJobRunID", void 0);
|
|
2683
2689
|
__decorate([
|
|
2684
2690
|
Field({ nullable: true }),
|
|
2685
2691
|
MaxLength(510),
|
|
@@ -2720,14 +2726,14 @@ __decorate([
|
|
|
2720
2726
|
MaxLength(16),
|
|
2721
2727
|
__metadata("design:type", String)
|
|
2722
2728
|
], MJAIAgentRun_.prototype, "RootLastRunID", void 0);
|
|
2723
|
-
__decorate([
|
|
2724
|
-
Field(() => [MJAIAgentRun_]),
|
|
2725
|
-
__metadata("design:type", Array)
|
|
2726
|
-
], MJAIAgentRun_.prototype, "MJ_AIAgentRuns_ParentRunIDArray", void 0);
|
|
2727
2729
|
__decorate([
|
|
2728
2730
|
Field(() => [MJAIAgentRunStep_]),
|
|
2729
2731
|
__metadata("design:type", Array)
|
|
2730
2732
|
], MJAIAgentRun_.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", void 0);
|
|
2733
|
+
__decorate([
|
|
2734
|
+
Field(() => [MJAIAgentRun_]),
|
|
2735
|
+
__metadata("design:type", Array)
|
|
2736
|
+
], MJAIAgentRun_.prototype, "MJ_AIAgentRuns_ParentRunIDArray", void 0);
|
|
2731
2737
|
__decorate([
|
|
2732
2738
|
Field(() => [MJAIPromptRun_]),
|
|
2733
2739
|
__metadata("design:type", Array)
|
|
@@ -2774,6 +2780,7 @@ let CreateMJAIAgentRunInput = class CreateMJAIAgentRunInput {
|
|
|
2774
2780
|
EffortLevel;
|
|
2775
2781
|
RunName;
|
|
2776
2782
|
Comments;
|
|
2783
|
+
ScheduledJobRunID;
|
|
2777
2784
|
};
|
|
2778
2785
|
__decorate([
|
|
2779
2786
|
Field({ nullable: true }),
|
|
@@ -2923,6 +2930,10 @@ __decorate([
|
|
|
2923
2930
|
Field({ nullable: true }),
|
|
2924
2931
|
__metadata("design:type", String)
|
|
2925
2932
|
], CreateMJAIAgentRunInput.prototype, "Comments", void 0);
|
|
2933
|
+
__decorate([
|
|
2934
|
+
Field({ nullable: true }),
|
|
2935
|
+
__metadata("design:type", String)
|
|
2936
|
+
], CreateMJAIAgentRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
2926
2937
|
CreateMJAIAgentRunInput = __decorate([
|
|
2927
2938
|
InputType()
|
|
2928
2939
|
], CreateMJAIAgentRunInput);
|
|
@@ -2965,6 +2976,7 @@ let UpdateMJAIAgentRunInput = class UpdateMJAIAgentRunInput {
|
|
|
2965
2976
|
EffortLevel;
|
|
2966
2977
|
RunName;
|
|
2967
2978
|
Comments;
|
|
2979
|
+
ScheduledJobRunID;
|
|
2968
2980
|
OldValues___;
|
|
2969
2981
|
};
|
|
2970
2982
|
__decorate([
|
|
@@ -3115,6 +3127,10 @@ __decorate([
|
|
|
3115
3127
|
Field({ nullable: true }),
|
|
3116
3128
|
__metadata("design:type", String)
|
|
3117
3129
|
], UpdateMJAIAgentRunInput.prototype, "Comments", void 0);
|
|
3130
|
+
__decorate([
|
|
3131
|
+
Field({ nullable: true }),
|
|
3132
|
+
__metadata("design:type", String)
|
|
3133
|
+
], UpdateMJAIAgentRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
3118
3134
|
__decorate([
|
|
3119
3135
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3120
3136
|
__metadata("design:type", Array)
|
|
@@ -3187,22 +3203,22 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
|
|
|
3187
3203
|
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
3188
3204
|
return result;
|
|
3189
3205
|
}
|
|
3190
|
-
async
|
|
3191
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3206
|
+
async MJ_AIAgentRunSteps_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3207
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Steps', userPayload);
|
|
3192
3208
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3193
3209
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3194
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3210
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunSteps] WHERE [AgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
3195
3211
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3196
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3212
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows);
|
|
3197
3213
|
return result;
|
|
3198
3214
|
}
|
|
3199
|
-
async
|
|
3200
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3215
|
+
async MJ_AIAgentRuns_ParentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3216
|
+
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
3201
3217
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3202
3218
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3203
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3219
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRuns] WHERE [ParentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3204
3220
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3205
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3221
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
3206
3222
|
return result;
|
|
3207
3223
|
}
|
|
3208
3224
|
async MJ_AIPromptRuns_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -3265,23 +3281,23 @@ __decorate([
|
|
|
3265
3281
|
__metadata("design:returntype", Promise)
|
|
3266
3282
|
], MJAIAgentRunResolver.prototype, "MJAIAgentRun", null);
|
|
3267
3283
|
__decorate([
|
|
3268
|
-
FieldResolver(() => [
|
|
3284
|
+
FieldResolver(() => [MJAIAgentRunStep_]),
|
|
3269
3285
|
__param(0, Root()),
|
|
3270
3286
|
__param(1, Ctx()),
|
|
3271
3287
|
__param(2, PubSub()),
|
|
3272
3288
|
__metadata("design:type", Function),
|
|
3273
3289
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
3274
3290
|
__metadata("design:returntype", Promise)
|
|
3275
|
-
], MJAIAgentRunResolver.prototype, "
|
|
3291
|
+
], MJAIAgentRunResolver.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", null);
|
|
3276
3292
|
__decorate([
|
|
3277
|
-
FieldResolver(() => [
|
|
3293
|
+
FieldResolver(() => [MJAIAgentRun_]),
|
|
3278
3294
|
__param(0, Root()),
|
|
3279
3295
|
__param(1, Ctx()),
|
|
3280
3296
|
__param(2, PubSub()),
|
|
3281
3297
|
__metadata("design:type", Function),
|
|
3282
3298
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
3283
3299
|
__metadata("design:returntype", Promise)
|
|
3284
|
-
], MJAIAgentRunResolver.prototype, "
|
|
3300
|
+
], MJAIAgentRunResolver.prototype, "MJ_AIAgentRuns_ParentRunIDArray", null);
|
|
3285
3301
|
__decorate([
|
|
3286
3302
|
FieldResolver(() => [MJAIPromptRun_]),
|
|
3287
3303
|
__param(0, Root()),
|
|
@@ -3331,8 +3347,8 @@ let MJAIVendor_ = class MJAIVendor_ {
|
|
|
3331
3347
|
_mj__UpdatedAt;
|
|
3332
3348
|
MJ_AIPromptModels_VendorIDArray;
|
|
3333
3349
|
AIResultCache_VendorIDArray;
|
|
3334
|
-
MJ_AIPromptRuns_VendorIDArray;
|
|
3335
3350
|
MJ_AIModelVendors_VendorIDArray;
|
|
3351
|
+
MJ_AIPromptRuns_VendorIDArray;
|
|
3336
3352
|
MJ_AIVendorTypes_VendorIDArray;
|
|
3337
3353
|
MJ_AIModelCosts_VendorIDArray;
|
|
3338
3354
|
MJ_AIAgentRuns_OverrideVendorIDArray;
|
|
@@ -3369,14 +3385,14 @@ __decorate([
|
|
|
3369
3385
|
Field(() => [MJAIResultCache_]),
|
|
3370
3386
|
__metadata("design:type", Array)
|
|
3371
3387
|
], MJAIVendor_.prototype, "AIResultCache_VendorIDArray", void 0);
|
|
3372
|
-
__decorate([
|
|
3373
|
-
Field(() => [MJAIPromptRun_]),
|
|
3374
|
-
__metadata("design:type", Array)
|
|
3375
|
-
], MJAIVendor_.prototype, "MJ_AIPromptRuns_VendorIDArray", void 0);
|
|
3376
3388
|
__decorate([
|
|
3377
3389
|
Field(() => [MJAIModelVendor_]),
|
|
3378
3390
|
__metadata("design:type", Array)
|
|
3379
3391
|
], MJAIVendor_.prototype, "MJ_AIModelVendors_VendorIDArray", void 0);
|
|
3392
|
+
__decorate([
|
|
3393
|
+
Field(() => [MJAIPromptRun_]),
|
|
3394
|
+
__metadata("design:type", Array)
|
|
3395
|
+
], MJAIVendor_.prototype, "MJ_AIPromptRuns_VendorIDArray", void 0);
|
|
3380
3396
|
__decorate([
|
|
3381
3397
|
Field(() => [MJAIVendorType_]),
|
|
3382
3398
|
__metadata("design:type", Array)
|
|
@@ -3522,22 +3538,22 @@ let MJAIVendorResolver = class MJAIVendorResolver extends ResolverBase {
|
|
|
3522
3538
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', rows);
|
|
3523
3539
|
return result;
|
|
3524
3540
|
}
|
|
3525
|
-
async
|
|
3526
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
3541
|
+
async MJ_AIModelVendors_VendorIDArray(mjaivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
3542
|
+
this.CheckUserReadPermissions('MJ: AI Model Vendors', userPayload);
|
|
3527
3543
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3528
3544
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3529
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3545
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelVendors] WHERE [VendorID]='${mjaivendor_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
3530
3546
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3531
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
3547
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Vendors', rows);
|
|
3532
3548
|
return result;
|
|
3533
3549
|
}
|
|
3534
|
-
async
|
|
3535
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
3550
|
+
async MJ_AIPromptRuns_VendorIDArray(mjaivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
3551
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
3536
3552
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3537
3553
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3538
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3554
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [VendorID]='${mjaivendor_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3539
3555
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3540
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
3556
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
3541
3557
|
return result;
|
|
3542
3558
|
}
|
|
3543
3559
|
async MJ_AIVendorTypes_VendorIDArray(mjaivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -3636,23 +3652,23 @@ __decorate([
|
|
|
3636
3652
|
__metadata("design:returntype", Promise)
|
|
3637
3653
|
], MJAIVendorResolver.prototype, "AIResultCache_VendorIDArray", null);
|
|
3638
3654
|
__decorate([
|
|
3639
|
-
FieldResolver(() => [
|
|
3655
|
+
FieldResolver(() => [MJAIModelVendor_]),
|
|
3640
3656
|
__param(0, Root()),
|
|
3641
3657
|
__param(1, Ctx()),
|
|
3642
3658
|
__param(2, PubSub()),
|
|
3643
3659
|
__metadata("design:type", Function),
|
|
3644
3660
|
__metadata("design:paramtypes", [MJAIVendor_, Object, PubSubEngine]),
|
|
3645
3661
|
__metadata("design:returntype", Promise)
|
|
3646
|
-
], MJAIVendorResolver.prototype, "
|
|
3662
|
+
], MJAIVendorResolver.prototype, "MJ_AIModelVendors_VendorIDArray", null);
|
|
3647
3663
|
__decorate([
|
|
3648
|
-
FieldResolver(() => [
|
|
3664
|
+
FieldResolver(() => [MJAIPromptRun_]),
|
|
3649
3665
|
__param(0, Root()),
|
|
3650
3666
|
__param(1, Ctx()),
|
|
3651
3667
|
__param(2, PubSub()),
|
|
3652
3668
|
__metadata("design:type", Function),
|
|
3653
3669
|
__metadata("design:paramtypes", [MJAIVendor_, Object, PubSubEngine]),
|
|
3654
3670
|
__metadata("design:returntype", Promise)
|
|
3655
|
-
], MJAIVendorResolver.prototype, "
|
|
3671
|
+
], MJAIVendorResolver.prototype, "MJ_AIPromptRuns_VendorIDArray", null);
|
|
3656
3672
|
__decorate([
|
|
3657
3673
|
FieldResolver(() => [MJAIVendorType_]),
|
|
3658
3674
|
__param(0, Root()),
|
|
@@ -3977,9 +3993,9 @@ let MJAIConfiguration_ = class MJAIConfiguration_ {
|
|
|
3977
3993
|
DefaultPromptForContextSummarization;
|
|
3978
3994
|
MJ_AIConfigurationParams_ConfigurationIDArray;
|
|
3979
3995
|
MJ_AIAgentPrompts_ConfigurationIDArray;
|
|
3980
|
-
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
3981
|
-
AIResultCache_ConfigurationIDArray;
|
|
3982
3996
|
MJ_AIPromptModels_ConfigurationIDArray;
|
|
3997
|
+
AIResultCache_ConfigurationIDArray;
|
|
3998
|
+
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
3983
3999
|
MJ_AIAgentRuns_ConfigurationIDArray;
|
|
3984
4000
|
};
|
|
3985
4001
|
__decorate([
|
|
@@ -4044,17 +4060,17 @@ __decorate([
|
|
|
4044
4060
|
__metadata("design:type", Array)
|
|
4045
4061
|
], MJAIConfiguration_.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", void 0);
|
|
4046
4062
|
__decorate([
|
|
4047
|
-
Field(() => [
|
|
4063
|
+
Field(() => [MJAIPromptModel_]),
|
|
4048
4064
|
__metadata("design:type", Array)
|
|
4049
|
-
], MJAIConfiguration_.prototype, "
|
|
4065
|
+
], MJAIConfiguration_.prototype, "MJ_AIPromptModels_ConfigurationIDArray", void 0);
|
|
4050
4066
|
__decorate([
|
|
4051
4067
|
Field(() => [MJAIResultCache_]),
|
|
4052
4068
|
__metadata("design:type", Array)
|
|
4053
4069
|
], MJAIConfiguration_.prototype, "AIResultCache_ConfigurationIDArray", void 0);
|
|
4054
4070
|
__decorate([
|
|
4055
|
-
Field(() => [
|
|
4071
|
+
Field(() => [MJAIPromptRun_]),
|
|
4056
4072
|
__metadata("design:type", Array)
|
|
4057
|
-
], MJAIConfiguration_.prototype, "
|
|
4073
|
+
], MJAIConfiguration_.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", void 0);
|
|
4058
4074
|
__decorate([
|
|
4059
4075
|
Field(() => [MJAIAgentRun_]),
|
|
4060
4076
|
__metadata("design:type", Array)
|
|
@@ -4232,13 +4248,13 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
4232
4248
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
4233
4249
|
return result;
|
|
4234
4250
|
}
|
|
4235
|
-
async
|
|
4236
|
-
this.CheckUserReadPermissions('MJ: AI Prompt
|
|
4251
|
+
async MJ_AIPromptModels_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4252
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
4237
4253
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4238
4254
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4239
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
4255
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [ConfigurationID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
4240
4256
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4241
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt
|
|
4257
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
4242
4258
|
return result;
|
|
4243
4259
|
}
|
|
4244
4260
|
async AIResultCache_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -4250,13 +4266,13 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
4250
4266
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', rows);
|
|
4251
4267
|
return result;
|
|
4252
4268
|
}
|
|
4253
|
-
async
|
|
4254
|
-
this.CheckUserReadPermissions('MJ: AI Prompt
|
|
4269
|
+
async MJ_AIPromptRuns_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4270
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
4255
4271
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4256
4272
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4257
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
4273
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [ConfigurationID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4258
4274
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4259
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt
|
|
4275
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
4260
4276
|
return result;
|
|
4261
4277
|
}
|
|
4262
4278
|
async MJ_AIAgentRuns_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -4337,14 +4353,14 @@ __decorate([
|
|
|
4337
4353
|
__metadata("design:returntype", Promise)
|
|
4338
4354
|
], MJAIConfigurationResolver.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", null);
|
|
4339
4355
|
__decorate([
|
|
4340
|
-
FieldResolver(() => [
|
|
4356
|
+
FieldResolver(() => [MJAIPromptModel_]),
|
|
4341
4357
|
__param(0, Root()),
|
|
4342
4358
|
__param(1, Ctx()),
|
|
4343
4359
|
__param(2, PubSub()),
|
|
4344
4360
|
__metadata("design:type", Function),
|
|
4345
4361
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4346
4362
|
__metadata("design:returntype", Promise)
|
|
4347
|
-
], MJAIConfigurationResolver.prototype, "
|
|
4363
|
+
], MJAIConfigurationResolver.prototype, "MJ_AIPromptModels_ConfigurationIDArray", null);
|
|
4348
4364
|
__decorate([
|
|
4349
4365
|
FieldResolver(() => [MJAIResultCache_]),
|
|
4350
4366
|
__param(0, Root()),
|
|
@@ -4355,14 +4371,14 @@ __decorate([
|
|
|
4355
4371
|
__metadata("design:returntype", Promise)
|
|
4356
4372
|
], MJAIConfigurationResolver.prototype, "AIResultCache_ConfigurationIDArray", null);
|
|
4357
4373
|
__decorate([
|
|
4358
|
-
FieldResolver(() => [
|
|
4374
|
+
FieldResolver(() => [MJAIPromptRun_]),
|
|
4359
4375
|
__param(0, Root()),
|
|
4360
4376
|
__param(1, Ctx()),
|
|
4361
4377
|
__param(2, PubSub()),
|
|
4362
4378
|
__metadata("design:type", Function),
|
|
4363
4379
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4364
4380
|
__metadata("design:returntype", Promise)
|
|
4365
|
-
], MJAIConfigurationResolver.prototype, "
|
|
4381
|
+
], MJAIConfigurationResolver.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", null);
|
|
4366
4382
|
__decorate([
|
|
4367
4383
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
4368
4384
|
__param(0, Root()),
|
|
@@ -4444,14 +4460,15 @@ let MJAIAgent_ = class MJAIAgent_ {
|
|
|
4444
4460
|
ChatHandlingOption;
|
|
4445
4461
|
DefaultArtifactTypeID;
|
|
4446
4462
|
OwnerUserID;
|
|
4463
|
+
InvocationMode;
|
|
4447
4464
|
Parent;
|
|
4448
4465
|
ContextCompressionPrompt;
|
|
4449
4466
|
Type;
|
|
4450
4467
|
DefaultArtifactType;
|
|
4451
4468
|
OwnerUser;
|
|
4452
4469
|
RootParentID;
|
|
4453
|
-
AIAgentActions_AgentIDArray;
|
|
4454
4470
|
AIAgentModels_AgentIDArray;
|
|
4471
|
+
AIAgentActions_AgentIDArray;
|
|
4455
4472
|
AIAgentLearningCycles_AgentIDArray;
|
|
4456
4473
|
AIAgentRequests_AgentIDArray;
|
|
4457
4474
|
MJ_AIAgentSteps_AgentIDArray;
|
|
@@ -4650,6 +4667,11 @@ __decorate([
|
|
|
4650
4667
|
MaxLength(16),
|
|
4651
4668
|
__metadata("design:type", String)
|
|
4652
4669
|
], MJAIAgent_.prototype, "OwnerUserID", void 0);
|
|
4670
|
+
__decorate([
|
|
4671
|
+
Field({ description: `Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.` }),
|
|
4672
|
+
MaxLength(40),
|
|
4673
|
+
__metadata("design:type", String)
|
|
4674
|
+
], MJAIAgent_.prototype, "InvocationMode", void 0);
|
|
4653
4675
|
__decorate([
|
|
4654
4676
|
Field({ nullable: true }),
|
|
4655
4677
|
MaxLength(510),
|
|
@@ -4680,14 +4702,14 @@ __decorate([
|
|
|
4680
4702
|
MaxLength(16),
|
|
4681
4703
|
__metadata("design:type", String)
|
|
4682
4704
|
], MJAIAgent_.prototype, "RootParentID", void 0);
|
|
4683
|
-
__decorate([
|
|
4684
|
-
Field(() => [MJAIAgentAction_]),
|
|
4685
|
-
__metadata("design:type", Array)
|
|
4686
|
-
], MJAIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
|
|
4687
4705
|
__decorate([
|
|
4688
4706
|
Field(() => [MJAIAgentModel_]),
|
|
4689
4707
|
__metadata("design:type", Array)
|
|
4690
4708
|
], MJAIAgent_.prototype, "AIAgentModels_AgentIDArray", void 0);
|
|
4709
|
+
__decorate([
|
|
4710
|
+
Field(() => [MJAIAgentAction_]),
|
|
4711
|
+
__metadata("design:type", Array)
|
|
4712
|
+
], MJAIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
|
|
4691
4713
|
__decorate([
|
|
4692
4714
|
Field(() => [MJAIAgentLearningCycle_]),
|
|
4693
4715
|
__metadata("design:type", Array)
|
|
@@ -4794,6 +4816,7 @@ let CreateMJAIAgentInput = class CreateMJAIAgentInput {
|
|
|
4794
4816
|
ChatHandlingOption;
|
|
4795
4817
|
DefaultArtifactTypeID;
|
|
4796
4818
|
OwnerUserID;
|
|
4819
|
+
InvocationMode;
|
|
4797
4820
|
};
|
|
4798
4821
|
__decorate([
|
|
4799
4822
|
Field({ nullable: true }),
|
|
@@ -4943,6 +4966,10 @@ __decorate([
|
|
|
4943
4966
|
Field({ nullable: true }),
|
|
4944
4967
|
__metadata("design:type", String)
|
|
4945
4968
|
], CreateMJAIAgentInput.prototype, "OwnerUserID", void 0);
|
|
4969
|
+
__decorate([
|
|
4970
|
+
Field({ nullable: true }),
|
|
4971
|
+
__metadata("design:type", String)
|
|
4972
|
+
], CreateMJAIAgentInput.prototype, "InvocationMode", void 0);
|
|
4946
4973
|
CreateMJAIAgentInput = __decorate([
|
|
4947
4974
|
InputType()
|
|
4948
4975
|
], CreateMJAIAgentInput);
|
|
@@ -4985,6 +5012,7 @@ let UpdateMJAIAgentInput = class UpdateMJAIAgentInput {
|
|
|
4985
5012
|
ChatHandlingOption;
|
|
4986
5013
|
DefaultArtifactTypeID;
|
|
4987
5014
|
OwnerUserID;
|
|
5015
|
+
InvocationMode;
|
|
4988
5016
|
OldValues___;
|
|
4989
5017
|
};
|
|
4990
5018
|
__decorate([
|
|
@@ -5135,6 +5163,10 @@ __decorate([
|
|
|
5135
5163
|
Field({ nullable: true }),
|
|
5136
5164
|
__metadata("design:type", String)
|
|
5137
5165
|
], UpdateMJAIAgentInput.prototype, "OwnerUserID", void 0);
|
|
5166
|
+
__decorate([
|
|
5167
|
+
Field({ nullable: true }),
|
|
5168
|
+
__metadata("design:type", String)
|
|
5169
|
+
], UpdateMJAIAgentInput.prototype, "InvocationMode", void 0);
|
|
5138
5170
|
__decorate([
|
|
5139
5171
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
5140
5172
|
__metadata("design:type", Array)
|
|
@@ -5207,22 +5239,22 @@ let MJAIAgentResolver = class MJAIAgentResolver extends ResolverBase {
|
|
|
5207
5239
|
const result = this.MapFieldNamesToCodeNames('AI Agents', rows && rows.length > 0 ? rows[0] : {});
|
|
5208
5240
|
return result;
|
|
5209
5241
|
}
|
|
5210
|
-
async
|
|
5211
|
-
this.CheckUserReadPermissions('AI Agent
|
|
5242
|
+
async AIAgentModels_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5243
|
+
this.CheckUserReadPermissions('AI Agent Models', userPayload);
|
|
5212
5244
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5213
5245
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5214
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
5246
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModels] WHERE [AgentID]='${mjaiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
5215
5247
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5216
|
-
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent
|
|
5248
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Models', rows);
|
|
5217
5249
|
return result;
|
|
5218
5250
|
}
|
|
5219
|
-
async
|
|
5220
|
-
this.CheckUserReadPermissions('AI Agent
|
|
5251
|
+
async AIAgentActions_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5252
|
+
this.CheckUserReadPermissions('AI Agent Actions', userPayload);
|
|
5221
5253
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5222
5254
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5223
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
5255
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [AgentID]='${mjaiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
5224
5256
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5225
|
-
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent
|
|
5257
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Actions', rows);
|
|
5226
5258
|
return result;
|
|
5227
5259
|
}
|
|
5228
5260
|
async AIAgentLearningCycles_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -5420,23 +5452,23 @@ __decorate([
|
|
|
5420
5452
|
__metadata("design:returntype", Promise)
|
|
5421
5453
|
], MJAIAgentResolver.prototype, "MJAIAgent", null);
|
|
5422
5454
|
__decorate([
|
|
5423
|
-
FieldResolver(() => [
|
|
5455
|
+
FieldResolver(() => [MJAIAgentModel_]),
|
|
5424
5456
|
__param(0, Root()),
|
|
5425
5457
|
__param(1, Ctx()),
|
|
5426
5458
|
__param(2, PubSub()),
|
|
5427
5459
|
__metadata("design:type", Function),
|
|
5428
5460
|
__metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
|
|
5429
5461
|
__metadata("design:returntype", Promise)
|
|
5430
|
-
], MJAIAgentResolver.prototype, "
|
|
5462
|
+
], MJAIAgentResolver.prototype, "AIAgentModels_AgentIDArray", null);
|
|
5431
5463
|
__decorate([
|
|
5432
|
-
FieldResolver(() => [
|
|
5464
|
+
FieldResolver(() => [MJAIAgentAction_]),
|
|
5433
5465
|
__param(0, Root()),
|
|
5434
5466
|
__param(1, Ctx()),
|
|
5435
5467
|
__param(2, PubSub()),
|
|
5436
5468
|
__metadata("design:type", Function),
|
|
5437
5469
|
__metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
|
|
5438
5470
|
__metadata("design:returntype", Promise)
|
|
5439
|
-
], MJAIAgentResolver.prototype, "
|
|
5471
|
+
], MJAIAgentResolver.prototype, "AIAgentActions_AgentIDArray", null);
|
|
5440
5472
|
__decorate([
|
|
5441
5473
|
FieldResolver(() => [MJAIAgentLearningCycle_]),
|
|
5442
5474
|
__param(0, Root()),
|
|
@@ -7630,11 +7662,11 @@ let MJEnvironment_ = class MJEnvironment_ {
|
|
|
7630
7662
|
Settings;
|
|
7631
7663
|
_mj__CreatedAt;
|
|
7632
7664
|
_mj__UpdatedAt;
|
|
7633
|
-
MJ_Collections_EnvironmentIDArray;
|
|
7634
7665
|
MJ_Projects_EnvironmentIDArray;
|
|
7666
|
+
MJ_Collections_EnvironmentIDArray;
|
|
7635
7667
|
MJ_Artifacts_EnvironmentIDArray;
|
|
7636
|
-
Dashboards_EnvironmentIDArray;
|
|
7637
7668
|
MJ_Tasks_EnvironmentIDArray;
|
|
7669
|
+
Dashboards_EnvironmentIDArray;
|
|
7638
7670
|
Reports_EnvironmentIDArray;
|
|
7639
7671
|
Conversations_EnvironmentIDArray;
|
|
7640
7672
|
};
|
|
@@ -7670,26 +7702,26 @@ __decorate([
|
|
|
7670
7702
|
MaxLength(10),
|
|
7671
7703
|
__metadata("design:type", Date)
|
|
7672
7704
|
], MJEnvironment_.prototype, "_mj__UpdatedAt", void 0);
|
|
7673
|
-
__decorate([
|
|
7674
|
-
Field(() => [MJCollection_]),
|
|
7675
|
-
__metadata("design:type", Array)
|
|
7676
|
-
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
7677
7705
|
__decorate([
|
|
7678
7706
|
Field(() => [MJProject_]),
|
|
7679
7707
|
__metadata("design:type", Array)
|
|
7680
7708
|
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
7681
7709
|
__decorate([
|
|
7682
|
-
Field(() => [
|
|
7710
|
+
Field(() => [MJCollection_]),
|
|
7683
7711
|
__metadata("design:type", Array)
|
|
7684
|
-
], MJEnvironment_.prototype, "
|
|
7712
|
+
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
7685
7713
|
__decorate([
|
|
7686
|
-
Field(() => [
|
|
7714
|
+
Field(() => [MJArtifact_]),
|
|
7687
7715
|
__metadata("design:type", Array)
|
|
7688
|
-
], MJEnvironment_.prototype, "
|
|
7716
|
+
], MJEnvironment_.prototype, "MJ_Artifacts_EnvironmentIDArray", void 0);
|
|
7689
7717
|
__decorate([
|
|
7690
7718
|
Field(() => [MJTask_]),
|
|
7691
7719
|
__metadata("design:type", Array)
|
|
7692
7720
|
], MJEnvironment_.prototype, "MJ_Tasks_EnvironmentIDArray", void 0);
|
|
7721
|
+
__decorate([
|
|
7722
|
+
Field(() => [MJDashboard_]),
|
|
7723
|
+
__metadata("design:type", Array)
|
|
7724
|
+
], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
|
|
7693
7725
|
__decorate([
|
|
7694
7726
|
Field(() => [MJReport_]),
|
|
7695
7727
|
__metadata("design:type", Array)
|
|
@@ -7833,22 +7865,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
7833
7865
|
const result = this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : {});
|
|
7834
7866
|
return result;
|
|
7835
7867
|
}
|
|
7836
|
-
async
|
|
7837
|
-
this.CheckUserReadPermissions('MJ:
|
|
7868
|
+
async MJ_Projects_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
7869
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
7838
7870
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7839
7871
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
7840
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
7872
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
7841
7873
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
7842
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
7874
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows);
|
|
7843
7875
|
return result;
|
|
7844
7876
|
}
|
|
7845
|
-
async
|
|
7846
|
-
this.CheckUserReadPermissions('MJ:
|
|
7877
|
+
async MJ_Collections_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
7878
|
+
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
7847
7879
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7848
7880
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
7849
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
7881
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollections] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
7850
7882
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
7851
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
7883
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collections', rows);
|
|
7852
7884
|
return result;
|
|
7853
7885
|
}
|
|
7854
7886
|
async MJ_Artifacts_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -7860,22 +7892,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
7860
7892
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows);
|
|
7861
7893
|
return result;
|
|
7862
7894
|
}
|
|
7863
|
-
async
|
|
7864
|
-
this.CheckUserReadPermissions('
|
|
7895
|
+
async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
7896
|
+
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
7865
7897
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7866
7898
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
7867
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
7899
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
7868
7900
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
7869
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
7901
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows);
|
|
7870
7902
|
return result;
|
|
7871
7903
|
}
|
|
7872
|
-
async
|
|
7873
|
-
this.CheckUserReadPermissions('
|
|
7904
|
+
async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
7905
|
+
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
7874
7906
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7875
7907
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
7876
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
7908
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
7877
7909
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
7878
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
7910
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', rows);
|
|
7879
7911
|
return result;
|
|
7880
7912
|
}
|
|
7881
7913
|
async Reports_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -7947,23 +7979,23 @@ __decorate([
|
|
|
7947
7979
|
__metadata("design:returntype", Promise)
|
|
7948
7980
|
], MJEnvironmentResolver.prototype, "MJEnvironment", null);
|
|
7949
7981
|
__decorate([
|
|
7950
|
-
FieldResolver(() => [
|
|
7982
|
+
FieldResolver(() => [MJProject_]),
|
|
7951
7983
|
__param(0, Root()),
|
|
7952
7984
|
__param(1, Ctx()),
|
|
7953
7985
|
__param(2, PubSub()),
|
|
7954
7986
|
__metadata("design:type", Function),
|
|
7955
7987
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
7956
7988
|
__metadata("design:returntype", Promise)
|
|
7957
|
-
], MJEnvironmentResolver.prototype, "
|
|
7989
|
+
], MJEnvironmentResolver.prototype, "MJ_Projects_EnvironmentIDArray", null);
|
|
7958
7990
|
__decorate([
|
|
7959
|
-
FieldResolver(() => [
|
|
7991
|
+
FieldResolver(() => [MJCollection_]),
|
|
7960
7992
|
__param(0, Root()),
|
|
7961
7993
|
__param(1, Ctx()),
|
|
7962
7994
|
__param(2, PubSub()),
|
|
7963
7995
|
__metadata("design:type", Function),
|
|
7964
7996
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
7965
7997
|
__metadata("design:returntype", Promise)
|
|
7966
|
-
], MJEnvironmentResolver.prototype, "
|
|
7998
|
+
], MJEnvironmentResolver.prototype, "MJ_Collections_EnvironmentIDArray", null);
|
|
7967
7999
|
__decorate([
|
|
7968
8000
|
FieldResolver(() => [MJArtifact_]),
|
|
7969
8001
|
__param(0, Root()),
|
|
@@ -7974,23 +8006,23 @@ __decorate([
|
|
|
7974
8006
|
__metadata("design:returntype", Promise)
|
|
7975
8007
|
], MJEnvironmentResolver.prototype, "MJ_Artifacts_EnvironmentIDArray", null);
|
|
7976
8008
|
__decorate([
|
|
7977
|
-
FieldResolver(() => [
|
|
8009
|
+
FieldResolver(() => [MJTask_]),
|
|
7978
8010
|
__param(0, Root()),
|
|
7979
8011
|
__param(1, Ctx()),
|
|
7980
8012
|
__param(2, PubSub()),
|
|
7981
8013
|
__metadata("design:type", Function),
|
|
7982
8014
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
7983
8015
|
__metadata("design:returntype", Promise)
|
|
7984
|
-
], MJEnvironmentResolver.prototype, "
|
|
8016
|
+
], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
|
|
7985
8017
|
__decorate([
|
|
7986
|
-
FieldResolver(() => [
|
|
8018
|
+
FieldResolver(() => [MJDashboard_]),
|
|
7987
8019
|
__param(0, Root()),
|
|
7988
8020
|
__param(1, Ctx()),
|
|
7989
8021
|
__param(2, PubSub()),
|
|
7990
8022
|
__metadata("design:type", Function),
|
|
7991
8023
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
7992
8024
|
__metadata("design:returntype", Promise)
|
|
7993
|
-
], MJEnvironmentResolver.prototype, "
|
|
8025
|
+
], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
|
|
7994
8026
|
__decorate([
|
|
7995
8027
|
FieldResolver(() => [MJReport_]),
|
|
7996
8028
|
__param(0, Root()),
|
|
@@ -8050,8 +8082,14 @@ let MJAIAgentAction_ = class MJAIAgentAction_ {
|
|
|
8050
8082
|
_mj__UpdatedAt;
|
|
8051
8083
|
MinExecutionsPerRun;
|
|
8052
8084
|
MaxExecutionsPerRun;
|
|
8085
|
+
ResultExpirationTurns;
|
|
8086
|
+
ResultExpirationMode;
|
|
8087
|
+
CompactMode;
|
|
8088
|
+
CompactLength;
|
|
8089
|
+
CompactPromptID;
|
|
8053
8090
|
Agent;
|
|
8054
8091
|
Action;
|
|
8092
|
+
CompactPrompt;
|
|
8055
8093
|
};
|
|
8056
8094
|
__decorate([
|
|
8057
8095
|
Field({ description: `The unique identifier for each AI agent-action mapping. Serves as the primary key.` }),
|
|
@@ -8091,6 +8129,29 @@ __decorate([
|
|
|
8091
8129
|
Field(() => Int, { nullable: true, description: `Maximum number of times this action can be executed per agent run` }),
|
|
8092
8130
|
__metadata("design:type", Number)
|
|
8093
8131
|
], MJAIAgentAction_.prototype, "MaxExecutionsPerRun", void 0);
|
|
8132
|
+
__decorate([
|
|
8133
|
+
Field(() => Int, { nullable: true, description: `Number of conversation turns before action results expire from conversation context. NULL = never expire (default). 0 = expire immediately after next turn.` }),
|
|
8134
|
+
__metadata("design:type", Number)
|
|
8135
|
+
], MJAIAgentAction_.prototype, "ResultExpirationTurns", void 0);
|
|
8136
|
+
__decorate([
|
|
8137
|
+
Field({ description: `How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).` }),
|
|
8138
|
+
MaxLength(40),
|
|
8139
|
+
__metadata("design:type", String)
|
|
8140
|
+
], MJAIAgentAction_.prototype, "ResultExpirationMode", void 0);
|
|
8141
|
+
__decorate([
|
|
8142
|
+
Field({ nullable: true, description: `How to compact results when ResultExpirationMode=Compact: FirstNChars (truncate to CompactLength characters, fast and free), AISummary (use LLM to intelligently summarize with CompactPromptID or Action.DefaultCompactPromptID).` }),
|
|
8143
|
+
MaxLength(40),
|
|
8144
|
+
__metadata("design:type", String)
|
|
8145
|
+
], MJAIAgentAction_.prototype, "CompactMode", void 0);
|
|
8146
|
+
__decorate([
|
|
8147
|
+
Field(() => Int, { nullable: true, description: `Number of characters to keep when CompactMode=FirstNChars. Required when CompactMode is FirstNChars, ignored otherwise.` }),
|
|
8148
|
+
__metadata("design:type", Number)
|
|
8149
|
+
], MJAIAgentAction_.prototype, "CompactLength", void 0);
|
|
8150
|
+
__decorate([
|
|
8151
|
+
Field({ nullable: true, description: `Optional override for AI summarization prompt when CompactMode=AISummary. Lookup hierarchy: this field -> Action.DefaultCompactPromptID -> system default. Allows agent-specific summarization focus (e.g., technical vs. marketing perspective).` }),
|
|
8152
|
+
MaxLength(16),
|
|
8153
|
+
__metadata("design:type", String)
|
|
8154
|
+
], MJAIAgentAction_.prototype, "CompactPromptID", void 0);
|
|
8094
8155
|
__decorate([
|
|
8095
8156
|
Field({ nullable: true }),
|
|
8096
8157
|
MaxLength(510),
|
|
@@ -8101,6 +8162,11 @@ __decorate([
|
|
|
8101
8162
|
MaxLength(850),
|
|
8102
8163
|
__metadata("design:type", String)
|
|
8103
8164
|
], MJAIAgentAction_.prototype, "Action", void 0);
|
|
8165
|
+
__decorate([
|
|
8166
|
+
Field({ nullable: true }),
|
|
8167
|
+
MaxLength(510),
|
|
8168
|
+
__metadata("design:type", String)
|
|
8169
|
+
], MJAIAgentAction_.prototype, "CompactPrompt", void 0);
|
|
8104
8170
|
MJAIAgentAction_ = __decorate([
|
|
8105
8171
|
ObjectType({ description: `Table to store the relationship between AI agents and actions.` })
|
|
8106
8172
|
], MJAIAgentAction_);
|
|
@@ -8112,6 +8178,11 @@ let CreateMJAIAgentActionInput = class CreateMJAIAgentActionInput {
|
|
|
8112
8178
|
Status;
|
|
8113
8179
|
MinExecutionsPerRun;
|
|
8114
8180
|
MaxExecutionsPerRun;
|
|
8181
|
+
ResultExpirationTurns;
|
|
8182
|
+
ResultExpirationMode;
|
|
8183
|
+
CompactMode;
|
|
8184
|
+
CompactLength;
|
|
8185
|
+
CompactPromptID;
|
|
8115
8186
|
};
|
|
8116
8187
|
__decorate([
|
|
8117
8188
|
Field({ nullable: true }),
|
|
@@ -8137,6 +8208,26 @@ __decorate([
|
|
|
8137
8208
|
Field(() => Int, { nullable: true }),
|
|
8138
8209
|
__metadata("design:type", Number)
|
|
8139
8210
|
], CreateMJAIAgentActionInput.prototype, "MaxExecutionsPerRun", void 0);
|
|
8211
|
+
__decorate([
|
|
8212
|
+
Field(() => Int, { nullable: true }),
|
|
8213
|
+
__metadata("design:type", Number)
|
|
8214
|
+
], CreateMJAIAgentActionInput.prototype, "ResultExpirationTurns", void 0);
|
|
8215
|
+
__decorate([
|
|
8216
|
+
Field({ nullable: true }),
|
|
8217
|
+
__metadata("design:type", String)
|
|
8218
|
+
], CreateMJAIAgentActionInput.prototype, "ResultExpirationMode", void 0);
|
|
8219
|
+
__decorate([
|
|
8220
|
+
Field({ nullable: true }),
|
|
8221
|
+
__metadata("design:type", String)
|
|
8222
|
+
], CreateMJAIAgentActionInput.prototype, "CompactMode", void 0);
|
|
8223
|
+
__decorate([
|
|
8224
|
+
Field(() => Int, { nullable: true }),
|
|
8225
|
+
__metadata("design:type", Number)
|
|
8226
|
+
], CreateMJAIAgentActionInput.prototype, "CompactLength", void 0);
|
|
8227
|
+
__decorate([
|
|
8228
|
+
Field({ nullable: true }),
|
|
8229
|
+
__metadata("design:type", String)
|
|
8230
|
+
], CreateMJAIAgentActionInput.prototype, "CompactPromptID", void 0);
|
|
8140
8231
|
CreateMJAIAgentActionInput = __decorate([
|
|
8141
8232
|
InputType()
|
|
8142
8233
|
], CreateMJAIAgentActionInput);
|
|
@@ -8148,6 +8239,11 @@ let UpdateMJAIAgentActionInput = class UpdateMJAIAgentActionInput {
|
|
|
8148
8239
|
Status;
|
|
8149
8240
|
MinExecutionsPerRun;
|
|
8150
8241
|
MaxExecutionsPerRun;
|
|
8242
|
+
ResultExpirationTurns;
|
|
8243
|
+
ResultExpirationMode;
|
|
8244
|
+
CompactMode;
|
|
8245
|
+
CompactLength;
|
|
8246
|
+
CompactPromptID;
|
|
8151
8247
|
OldValues___;
|
|
8152
8248
|
};
|
|
8153
8249
|
__decorate([
|
|
@@ -8174,6 +8270,26 @@ __decorate([
|
|
|
8174
8270
|
Field(() => Int, { nullable: true }),
|
|
8175
8271
|
__metadata("design:type", Number)
|
|
8176
8272
|
], UpdateMJAIAgentActionInput.prototype, "MaxExecutionsPerRun", void 0);
|
|
8273
|
+
__decorate([
|
|
8274
|
+
Field(() => Int, { nullable: true }),
|
|
8275
|
+
__metadata("design:type", Number)
|
|
8276
|
+
], UpdateMJAIAgentActionInput.prototype, "ResultExpirationTurns", void 0);
|
|
8277
|
+
__decorate([
|
|
8278
|
+
Field({ nullable: true }),
|
|
8279
|
+
__metadata("design:type", String)
|
|
8280
|
+
], UpdateMJAIAgentActionInput.prototype, "ResultExpirationMode", void 0);
|
|
8281
|
+
__decorate([
|
|
8282
|
+
Field({ nullable: true }),
|
|
8283
|
+
__metadata("design:type", String)
|
|
8284
|
+
], UpdateMJAIAgentActionInput.prototype, "CompactMode", void 0);
|
|
8285
|
+
__decorate([
|
|
8286
|
+
Field(() => Int, { nullable: true }),
|
|
8287
|
+
__metadata("design:type", Number)
|
|
8288
|
+
], UpdateMJAIAgentActionInput.prototype, "CompactLength", void 0);
|
|
8289
|
+
__decorate([
|
|
8290
|
+
Field({ nullable: true }),
|
|
8291
|
+
__metadata("design:type", String)
|
|
8292
|
+
], UpdateMJAIAgentActionInput.prototype, "CompactPromptID", void 0);
|
|
8177
8293
|
__decorate([
|
|
8178
8294
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8179
8295
|
__metadata("design:type", Array)
|
|
@@ -9103,10 +9219,13 @@ let MJCollection_ = class MJCollection_ {
|
|
|
9103
9219
|
Sequence;
|
|
9104
9220
|
_mj__CreatedAt;
|
|
9105
9221
|
_mj__UpdatedAt;
|
|
9222
|
+
OwnerID;
|
|
9106
9223
|
Environment;
|
|
9107
9224
|
Parent;
|
|
9225
|
+
Owner;
|
|
9108
9226
|
RootParentID;
|
|
9109
9227
|
MJ_CollectionArtifacts_CollectionIDArray;
|
|
9228
|
+
MJ_CollectionPermissions_CollectionIDArray;
|
|
9110
9229
|
MJ_Collections_ParentIDArray;
|
|
9111
9230
|
};
|
|
9112
9231
|
__decorate([
|
|
@@ -9157,6 +9276,11 @@ __decorate([
|
|
|
9157
9276
|
MaxLength(10),
|
|
9158
9277
|
__metadata("design:type", Date)
|
|
9159
9278
|
], MJCollection_.prototype, "_mj__UpdatedAt", void 0);
|
|
9279
|
+
__decorate([
|
|
9280
|
+
Field({ nullable: true, description: `The user who owns this collection and has full permissions` }),
|
|
9281
|
+
MaxLength(16),
|
|
9282
|
+
__metadata("design:type", String)
|
|
9283
|
+
], MJCollection_.prototype, "OwnerID", void 0);
|
|
9160
9284
|
__decorate([
|
|
9161
9285
|
Field(),
|
|
9162
9286
|
MaxLength(510),
|
|
@@ -9167,6 +9291,11 @@ __decorate([
|
|
|
9167
9291
|
MaxLength(510),
|
|
9168
9292
|
__metadata("design:type", String)
|
|
9169
9293
|
], MJCollection_.prototype, "Parent", void 0);
|
|
9294
|
+
__decorate([
|
|
9295
|
+
Field({ nullable: true }),
|
|
9296
|
+
MaxLength(200),
|
|
9297
|
+
__metadata("design:type", String)
|
|
9298
|
+
], MJCollection_.prototype, "Owner", void 0);
|
|
9170
9299
|
__decorate([
|
|
9171
9300
|
Field({ nullable: true }),
|
|
9172
9301
|
MaxLength(16),
|
|
@@ -9176,6 +9305,10 @@ __decorate([
|
|
|
9176
9305
|
Field(() => [MJCollectionArtifact_]),
|
|
9177
9306
|
__metadata("design:type", Array)
|
|
9178
9307
|
], MJCollection_.prototype, "MJ_CollectionArtifacts_CollectionIDArray", void 0);
|
|
9308
|
+
__decorate([
|
|
9309
|
+
Field(() => [MJCollectionPermission_]),
|
|
9310
|
+
__metadata("design:type", Array)
|
|
9311
|
+
], MJCollection_.prototype, "MJ_CollectionPermissions_CollectionIDArray", void 0);
|
|
9179
9312
|
__decorate([
|
|
9180
9313
|
Field(() => [MJCollection_]),
|
|
9181
9314
|
__metadata("design:type", Array)
|
|
@@ -9193,6 +9326,7 @@ let CreateMJCollectionInput = class CreateMJCollectionInput {
|
|
|
9193
9326
|
Icon;
|
|
9194
9327
|
Color;
|
|
9195
9328
|
Sequence;
|
|
9329
|
+
OwnerID;
|
|
9196
9330
|
};
|
|
9197
9331
|
__decorate([
|
|
9198
9332
|
Field({ nullable: true }),
|
|
@@ -9226,6 +9360,10 @@ __decorate([
|
|
|
9226
9360
|
Field(() => Int, { nullable: true }),
|
|
9227
9361
|
__metadata("design:type", Number)
|
|
9228
9362
|
], CreateMJCollectionInput.prototype, "Sequence", void 0);
|
|
9363
|
+
__decorate([
|
|
9364
|
+
Field({ nullable: true }),
|
|
9365
|
+
__metadata("design:type", String)
|
|
9366
|
+
], CreateMJCollectionInput.prototype, "OwnerID", void 0);
|
|
9229
9367
|
CreateMJCollectionInput = __decorate([
|
|
9230
9368
|
InputType()
|
|
9231
9369
|
], CreateMJCollectionInput);
|
|
@@ -9239,6 +9377,7 @@ let UpdateMJCollectionInput = class UpdateMJCollectionInput {
|
|
|
9239
9377
|
Icon;
|
|
9240
9378
|
Color;
|
|
9241
9379
|
Sequence;
|
|
9380
|
+
OwnerID;
|
|
9242
9381
|
OldValues___;
|
|
9243
9382
|
};
|
|
9244
9383
|
__decorate([
|
|
@@ -9273,6 +9412,10 @@ __decorate([
|
|
|
9273
9412
|
Field(() => Int, { nullable: true }),
|
|
9274
9413
|
__metadata("design:type", Number)
|
|
9275
9414
|
], UpdateMJCollectionInput.prototype, "Sequence", void 0);
|
|
9415
|
+
__decorate([
|
|
9416
|
+
Field({ nullable: true }),
|
|
9417
|
+
__metadata("design:type", String)
|
|
9418
|
+
], UpdateMJCollectionInput.prototype, "OwnerID", void 0);
|
|
9276
9419
|
__decorate([
|
|
9277
9420
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9278
9421
|
__metadata("design:type", Array)
|
|
@@ -9354,6 +9497,15 @@ let MJCollectionResolver = class MJCollectionResolver extends ResolverBase {
|
|
|
9354
9497
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collection Artifacts', rows);
|
|
9355
9498
|
return result;
|
|
9356
9499
|
}
|
|
9500
|
+
async MJ_CollectionPermissions_CollectionIDArray(mjcollection_, { dataSources, userPayload, providers }, pubSub) {
|
|
9501
|
+
this.CheckUserReadPermissions('MJ: Collection Permissions', userPayload);
|
|
9502
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9503
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
9504
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollectionPermissions] WHERE [CollectionID]='${mjcollection_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9505
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
9506
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collection Permissions', rows);
|
|
9507
|
+
return result;
|
|
9508
|
+
}
|
|
9357
9509
|
async MJ_Collections_ParentIDArray(mjcollection_, { dataSources, userPayload, providers }, pubSub) {
|
|
9358
9510
|
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
9359
9511
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -9422,6 +9574,15 @@ __decorate([
|
|
|
9422
9574
|
__metadata("design:paramtypes", [MJCollection_, Object, PubSubEngine]),
|
|
9423
9575
|
__metadata("design:returntype", Promise)
|
|
9424
9576
|
], MJCollectionResolver.prototype, "MJ_CollectionArtifacts_CollectionIDArray", null);
|
|
9577
|
+
__decorate([
|
|
9578
|
+
FieldResolver(() => [MJCollectionPermission_]),
|
|
9579
|
+
__param(0, Root()),
|
|
9580
|
+
__param(1, Ctx()),
|
|
9581
|
+
__param(2, PubSub()),
|
|
9582
|
+
__metadata("design:type", Function),
|
|
9583
|
+
__metadata("design:paramtypes", [MJCollection_, Object, PubSubEngine]),
|
|
9584
|
+
__metadata("design:returntype", Promise)
|
|
9585
|
+
], MJCollectionResolver.prototype, "MJ_CollectionPermissions_CollectionIDArray", null);
|
|
9425
9586
|
__decorate([
|
|
9426
9587
|
FieldResolver(() => [MJCollection_]),
|
|
9427
9588
|
__param(0, Root()),
|
|
@@ -9843,13 +10004,15 @@ let MJAIPrompt_ = class MJAIPrompt_ {
|
|
|
9843
10004
|
AIResultCache_AIPromptIDArray;
|
|
9844
10005
|
MJ_AIConfigurations_DefaultPromptForContextCompressionIDArray;
|
|
9845
10006
|
MJ_AIAgentTypes_SystemPromptIDArray;
|
|
10007
|
+
AIAgentActions_CompactPromptIDArray;
|
|
9846
10008
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
|
|
9847
10009
|
AIPrompts_ResultSelectorPromptIDArray;
|
|
9848
|
-
MJ_AIAgentPrompts_PromptIDArray;
|
|
9849
10010
|
MJ_AIPromptModels_PromptIDArray;
|
|
10011
|
+
MJ_AIAgentPrompts_PromptIDArray;
|
|
9850
10012
|
MJ_AIAgentSteps_PromptIDArray;
|
|
9851
10013
|
MJ_AIPromptRuns_PromptIDArray;
|
|
9852
10014
|
AIAgents_ContextCompressionPromptIDArray;
|
|
10015
|
+
Actions_DefaultCompactPromptIDArray;
|
|
9853
10016
|
};
|
|
9854
10017
|
__decorate([
|
|
9855
10018
|
Field(),
|
|
@@ -10122,6 +10285,10 @@ __decorate([
|
|
|
10122
10285
|
Field(() => [MJAIAgentType_]),
|
|
10123
10286
|
__metadata("design:type", Array)
|
|
10124
10287
|
], MJAIPrompt_.prototype, "MJ_AIAgentTypes_SystemPromptIDArray", void 0);
|
|
10288
|
+
__decorate([
|
|
10289
|
+
Field(() => [MJAIAgentAction_]),
|
|
10290
|
+
__metadata("design:type", Array)
|
|
10291
|
+
], MJAIPrompt_.prototype, "AIAgentActions_CompactPromptIDArray", void 0);
|
|
10125
10292
|
__decorate([
|
|
10126
10293
|
Field(() => [MJAIConfiguration_]),
|
|
10127
10294
|
__metadata("design:type", Array)
|
|
@@ -10130,14 +10297,14 @@ __decorate([
|
|
|
10130
10297
|
Field(() => [MJAIPrompt_]),
|
|
10131
10298
|
__metadata("design:type", Array)
|
|
10132
10299
|
], MJAIPrompt_.prototype, "AIPrompts_ResultSelectorPromptIDArray", void 0);
|
|
10133
|
-
__decorate([
|
|
10134
|
-
Field(() => [MJAIAgentPrompt_]),
|
|
10135
|
-
__metadata("design:type", Array)
|
|
10136
|
-
], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
10137
10300
|
__decorate([
|
|
10138
10301
|
Field(() => [MJAIPromptModel_]),
|
|
10139
10302
|
__metadata("design:type", Array)
|
|
10140
10303
|
], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
10304
|
+
__decorate([
|
|
10305
|
+
Field(() => [MJAIAgentPrompt_]),
|
|
10306
|
+
__metadata("design:type", Array)
|
|
10307
|
+
], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
10141
10308
|
__decorate([
|
|
10142
10309
|
Field(() => [MJAIAgentStep_]),
|
|
10143
10310
|
__metadata("design:type", Array)
|
|
@@ -10150,6 +10317,10 @@ __decorate([
|
|
|
10150
10317
|
Field(() => [MJAIAgent_]),
|
|
10151
10318
|
__metadata("design:type", Array)
|
|
10152
10319
|
], MJAIPrompt_.prototype, "AIAgents_ContextCompressionPromptIDArray", void 0);
|
|
10320
|
+
__decorate([
|
|
10321
|
+
Field(() => [MJAction_]),
|
|
10322
|
+
__metadata("design:type", Array)
|
|
10323
|
+
], MJAIPrompt_.prototype, "Actions_DefaultCompactPromptIDArray", void 0);
|
|
10153
10324
|
MJAIPrompt_ = __decorate([
|
|
10154
10325
|
ObjectType({ description: `Stores AI prompts, including references to categories, types, and templates.` })
|
|
10155
10326
|
], MJAIPrompt_);
|
|
@@ -10752,6 +10923,15 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
10752
10923
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Types', rows);
|
|
10753
10924
|
return result;
|
|
10754
10925
|
}
|
|
10926
|
+
async AIAgentActions_CompactPromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10927
|
+
this.CheckUserReadPermissions('AI Agent Actions', userPayload);
|
|
10928
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10929
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10930
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [CompactPromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
10931
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10932
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Actions', rows);
|
|
10933
|
+
return result;
|
|
10934
|
+
}
|
|
10755
10935
|
async MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10756
10936
|
this.CheckUserReadPermissions('MJ: AI Configurations', userPayload);
|
|
10757
10937
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -10770,22 +10950,22 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
10770
10950
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', rows);
|
|
10771
10951
|
return result;
|
|
10772
10952
|
}
|
|
10773
|
-
async
|
|
10774
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10953
|
+
async MJ_AIPromptModels_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10954
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
10775
10955
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10776
10956
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10777
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10957
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
10778
10958
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10779
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10959
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
10780
10960
|
return result;
|
|
10781
10961
|
}
|
|
10782
|
-
async
|
|
10783
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10962
|
+
async MJ_AIAgentPrompts_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10963
|
+
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
10784
10964
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10785
10965
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10786
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10966
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
10787
10967
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10788
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10968
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
10789
10969
|
return result;
|
|
10790
10970
|
}
|
|
10791
10971
|
async MJ_AIAgentSteps_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -10815,6 +10995,15 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
10815
10995
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agents', rows);
|
|
10816
10996
|
return result;
|
|
10817
10997
|
}
|
|
10998
|
+
async Actions_DefaultCompactPromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10999
|
+
this.CheckUserReadPermissions('Actions', userPayload);
|
|
11000
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11001
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
11002
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActions] WHERE [DefaultCompactPromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
11003
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
11004
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Actions', rows);
|
|
11005
|
+
return result;
|
|
11006
|
+
}
|
|
10818
11007
|
async CreateMJAIPrompt(input, { providers, userPayload }, pubSub) {
|
|
10819
11008
|
const provider = GetReadWriteProvider(providers);
|
|
10820
11009
|
return this.CreateRecord('AI Prompts', input, provider, userPayload, pubSub);
|
|
@@ -10892,6 +11081,15 @@ __decorate([
|
|
|
10892
11081
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10893
11082
|
__metadata("design:returntype", Promise)
|
|
10894
11083
|
], MJAIPromptResolver.prototype, "MJ_AIAgentTypes_SystemPromptIDArray", null);
|
|
11084
|
+
__decorate([
|
|
11085
|
+
FieldResolver(() => [MJAIAgentAction_]),
|
|
11086
|
+
__param(0, Root()),
|
|
11087
|
+
__param(1, Ctx()),
|
|
11088
|
+
__param(2, PubSub()),
|
|
11089
|
+
__metadata("design:type", Function),
|
|
11090
|
+
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
11091
|
+
__metadata("design:returntype", Promise)
|
|
11092
|
+
], MJAIPromptResolver.prototype, "AIAgentActions_CompactPromptIDArray", null);
|
|
10895
11093
|
__decorate([
|
|
10896
11094
|
FieldResolver(() => [MJAIConfiguration_]),
|
|
10897
11095
|
__param(0, Root()),
|
|
@@ -10911,23 +11109,23 @@ __decorate([
|
|
|
10911
11109
|
__metadata("design:returntype", Promise)
|
|
10912
11110
|
], MJAIPromptResolver.prototype, "AIPrompts_ResultSelectorPromptIDArray", null);
|
|
10913
11111
|
__decorate([
|
|
10914
|
-
FieldResolver(() => [
|
|
11112
|
+
FieldResolver(() => [MJAIPromptModel_]),
|
|
10915
11113
|
__param(0, Root()),
|
|
10916
11114
|
__param(1, Ctx()),
|
|
10917
11115
|
__param(2, PubSub()),
|
|
10918
11116
|
__metadata("design:type", Function),
|
|
10919
11117
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10920
11118
|
__metadata("design:returntype", Promise)
|
|
10921
|
-
], MJAIPromptResolver.prototype, "
|
|
11119
|
+
], MJAIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
|
|
10922
11120
|
__decorate([
|
|
10923
|
-
FieldResolver(() => [
|
|
11121
|
+
FieldResolver(() => [MJAIAgentPrompt_]),
|
|
10924
11122
|
__param(0, Root()),
|
|
10925
11123
|
__param(1, Ctx()),
|
|
10926
11124
|
__param(2, PubSub()),
|
|
10927
11125
|
__metadata("design:type", Function),
|
|
10928
11126
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10929
11127
|
__metadata("design:returntype", Promise)
|
|
10930
|
-
], MJAIPromptResolver.prototype, "
|
|
11128
|
+
], MJAIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
|
|
10931
11129
|
__decorate([
|
|
10932
11130
|
FieldResolver(() => [MJAIAgentStep_]),
|
|
10933
11131
|
__param(0, Root()),
|
|
@@ -10955,6 +11153,15 @@ __decorate([
|
|
|
10955
11153
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10956
11154
|
__metadata("design:returntype", Promise)
|
|
10957
11155
|
], MJAIPromptResolver.prototype, "AIAgents_ContextCompressionPromptIDArray", null);
|
|
11156
|
+
__decorate([
|
|
11157
|
+
FieldResolver(() => [MJAction_]),
|
|
11158
|
+
__param(0, Root()),
|
|
11159
|
+
__param(1, Ctx()),
|
|
11160
|
+
__param(2, PubSub()),
|
|
11161
|
+
__metadata("design:type", Function),
|
|
11162
|
+
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
11163
|
+
__metadata("design:returntype", Promise)
|
|
11164
|
+
], MJAIPromptResolver.prototype, "Actions_DefaultCompactPromptIDArray", null);
|
|
10958
11165
|
__decorate([
|
|
10959
11166
|
Mutation(() => MJAIPrompt_),
|
|
10960
11167
|
__param(0, Arg('input', () => CreateMJAIPromptInput)),
|
|
@@ -16711,8 +16918,8 @@ let MJEntity_ = class MJEntity_ {
|
|
|
16711
16918
|
RecommendationItems_DestinationEntityIDArray;
|
|
16712
16919
|
EntityCommunicationMessageTypes_EntityIDArray;
|
|
16713
16920
|
QueryEntities_EntityIDArray;
|
|
16714
|
-
MJ_AccessControlRules_EntityIDArray;
|
|
16715
16921
|
MJ_RecordLinks_SourceEntityIDArray;
|
|
16922
|
+
MJ_AccessControlRules_EntityIDArray;
|
|
16716
16923
|
GeneratedCodes_LinkedEntityIDArray;
|
|
16717
16924
|
MJ_RecordLinks_TargetEntityIDArray;
|
|
16718
16925
|
};
|
|
@@ -17143,14 +17350,14 @@ __decorate([
|
|
|
17143
17350
|
Field(() => [MJQueryEntity_]),
|
|
17144
17351
|
__metadata("design:type", Array)
|
|
17145
17352
|
], MJEntity_.prototype, "QueryEntities_EntityIDArray", void 0);
|
|
17146
|
-
__decorate([
|
|
17147
|
-
Field(() => [MJAccessControlRule_]),
|
|
17148
|
-
__metadata("design:type", Array)
|
|
17149
|
-
], MJEntity_.prototype, "MJ_AccessControlRules_EntityIDArray", void 0);
|
|
17150
17353
|
__decorate([
|
|
17151
17354
|
Field(() => [MJRecordLink_]),
|
|
17152
17355
|
__metadata("design:type", Array)
|
|
17153
17356
|
], MJEntity_.prototype, "MJ_RecordLinks_SourceEntityIDArray", void 0);
|
|
17357
|
+
__decorate([
|
|
17358
|
+
Field(() => [MJAccessControlRule_]),
|
|
17359
|
+
__metadata("design:type", Array)
|
|
17360
|
+
], MJEntity_.prototype, "MJ_AccessControlRules_EntityIDArray", void 0);
|
|
17154
17361
|
__decorate([
|
|
17155
17362
|
Field(() => [MJGeneratedCode_]),
|
|
17156
17363
|
__metadata("design:type", Array)
|
|
@@ -18107,22 +18314,22 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
18107
18314
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Entities', rows);
|
|
18108
18315
|
return result;
|
|
18109
18316
|
}
|
|
18110
|
-
async
|
|
18111
|
-
this.CheckUserReadPermissions('MJ:
|
|
18317
|
+
async MJ_RecordLinks_SourceEntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
18318
|
+
this.CheckUserReadPermissions('MJ: Record Links', userPayload);
|
|
18112
18319
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18113
18320
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
18114
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
18321
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordLinks] WHERE [SourceEntityID]='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
18115
18322
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
18116
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
18323
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Record Links', rows);
|
|
18117
18324
|
return result;
|
|
18118
18325
|
}
|
|
18119
|
-
async
|
|
18120
|
-
this.CheckUserReadPermissions('MJ:
|
|
18326
|
+
async MJ_AccessControlRules_EntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
18327
|
+
this.CheckUserReadPermissions('MJ: Access Control Rules', userPayload);
|
|
18121
18328
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18122
18329
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
18123
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
18330
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAccessControlRules] WHERE [EntityID]='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Access Control Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
18124
18331
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
18125
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
18332
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Access Control Rules', rows);
|
|
18126
18333
|
return result;
|
|
18127
18334
|
}
|
|
18128
18335
|
async GeneratedCodes_LinkedEntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -18526,23 +18733,23 @@ __decorate([
|
|
|
18526
18733
|
__metadata("design:returntype", Promise)
|
|
18527
18734
|
], MJEntityResolverBase.prototype, "QueryEntities_EntityIDArray", null);
|
|
18528
18735
|
__decorate([
|
|
18529
|
-
FieldResolver(() => [
|
|
18736
|
+
FieldResolver(() => [MJRecordLink_]),
|
|
18530
18737
|
__param(0, Root()),
|
|
18531
18738
|
__param(1, Ctx()),
|
|
18532
18739
|
__param(2, PubSub()),
|
|
18533
18740
|
__metadata("design:type", Function),
|
|
18534
18741
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
18535
18742
|
__metadata("design:returntype", Promise)
|
|
18536
|
-
], MJEntityResolverBase.prototype, "
|
|
18743
|
+
], MJEntityResolverBase.prototype, "MJ_RecordLinks_SourceEntityIDArray", null);
|
|
18537
18744
|
__decorate([
|
|
18538
|
-
FieldResolver(() => [
|
|
18745
|
+
FieldResolver(() => [MJAccessControlRule_]),
|
|
18539
18746
|
__param(0, Root()),
|
|
18540
18747
|
__param(1, Ctx()),
|
|
18541
18748
|
__param(2, PubSub()),
|
|
18542
18749
|
__metadata("design:type", Function),
|
|
18543
18750
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
18544
18751
|
__metadata("design:returntype", Promise)
|
|
18545
|
-
], MJEntityResolverBase.prototype, "
|
|
18752
|
+
], MJEntityResolverBase.prototype, "MJ_AccessControlRules_EntityIDArray", null);
|
|
18546
18753
|
__decorate([
|
|
18547
18754
|
FieldResolver(() => [MJGeneratedCode_]),
|
|
18548
18755
|
__param(0, Root()),
|
|
@@ -18650,17 +18857,23 @@ let MJUser_ = class MJUser_ {
|
|
|
18650
18857
|
AIAgentRequests_ResponseByUserIDArray;
|
|
18651
18858
|
AIAgentNotes_UserIDArray;
|
|
18652
18859
|
MJ_ReportUserStates_UserIDArray;
|
|
18653
|
-
MJ_DashboardUserStates_UserIDArray;
|
|
18654
18860
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
18861
|
+
MJ_DashboardUserStates_UserIDArray;
|
|
18655
18862
|
MJ_ArtifactVersions_UserIDArray;
|
|
18656
18863
|
MJ_PublicLinks_UserIDArray;
|
|
18864
|
+
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
18865
|
+
MJ_ScheduledJobs_NotifyUserIDArray;
|
|
18657
18866
|
ResourcePermissions_UserIDArray;
|
|
18658
18867
|
AIAgentRequests_RequestForUserIDArray;
|
|
18659
18868
|
ConversationDetails_UserIDArray;
|
|
18660
18869
|
MJ_AccessControlRules_GrantedByUserIDArray;
|
|
18661
18870
|
MJ_Artifacts_UserIDArray;
|
|
18871
|
+
MJ_ScheduledJobs_OwnerUserIDArray;
|
|
18872
|
+
MJ_CollectionPermissions_SharedByUserIDArray;
|
|
18662
18873
|
MJ_AIAgentRuns_UserIDArray;
|
|
18663
18874
|
MJ_AIAgentPermissions_UserIDArray;
|
|
18875
|
+
MJ_CollectionPermissions_UserIDArray;
|
|
18876
|
+
MJ_Collections_OwnerIDArray;
|
|
18664
18877
|
MJ_Tasks_UserIDArray;
|
|
18665
18878
|
AIAgents_OwnerUserIDArray;
|
|
18666
18879
|
};
|
|
@@ -18907,14 +19120,14 @@ __decorate([
|
|
|
18907
19120
|
Field(() => [MJReportUserState_]),
|
|
18908
19121
|
__metadata("design:type", Array)
|
|
18909
19122
|
], MJUser_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
18910
|
-
__decorate([
|
|
18911
|
-
Field(() => [MJDashboardUserState_]),
|
|
18912
|
-
__metadata("design:type", Array)
|
|
18913
|
-
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
18914
19123
|
__decorate([
|
|
18915
19124
|
Field(() => [MJDashboardUserPreference_]),
|
|
18916
19125
|
__metadata("design:type", Array)
|
|
18917
19126
|
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
19127
|
+
__decorate([
|
|
19128
|
+
Field(() => [MJDashboardUserState_]),
|
|
19129
|
+
__metadata("design:type", Array)
|
|
19130
|
+
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
18918
19131
|
__decorate([
|
|
18919
19132
|
Field(() => [MJArtifactVersion_]),
|
|
18920
19133
|
__metadata("design:type", Array)
|
|
@@ -18923,6 +19136,14 @@ __decorate([
|
|
|
18923
19136
|
Field(() => [MJPublicLink_]),
|
|
18924
19137
|
__metadata("design:type", Array)
|
|
18925
19138
|
], MJUser_.prototype, "MJ_PublicLinks_UserIDArray", void 0);
|
|
19139
|
+
__decorate([
|
|
19140
|
+
Field(() => [MJScheduledJobRun_]),
|
|
19141
|
+
__metadata("design:type", Array)
|
|
19142
|
+
], MJUser_.prototype, "MJ_ScheduledJobRuns_ExecutedByUserIDArray", void 0);
|
|
19143
|
+
__decorate([
|
|
19144
|
+
Field(() => [MJScheduledJob_]),
|
|
19145
|
+
__metadata("design:type", Array)
|
|
19146
|
+
], MJUser_.prototype, "MJ_ScheduledJobs_NotifyUserIDArray", void 0);
|
|
18926
19147
|
__decorate([
|
|
18927
19148
|
Field(() => [MJResourcePermission_]),
|
|
18928
19149
|
__metadata("design:type", Array)
|
|
@@ -18943,6 +19164,14 @@ __decorate([
|
|
|
18943
19164
|
Field(() => [MJArtifact_]),
|
|
18944
19165
|
__metadata("design:type", Array)
|
|
18945
19166
|
], MJUser_.prototype, "MJ_Artifacts_UserIDArray", void 0);
|
|
19167
|
+
__decorate([
|
|
19168
|
+
Field(() => [MJScheduledJob_]),
|
|
19169
|
+
__metadata("design:type", Array)
|
|
19170
|
+
], MJUser_.prototype, "MJ_ScheduledJobs_OwnerUserIDArray", void 0);
|
|
19171
|
+
__decorate([
|
|
19172
|
+
Field(() => [MJCollectionPermission_]),
|
|
19173
|
+
__metadata("design:type", Array)
|
|
19174
|
+
], MJUser_.prototype, "MJ_CollectionPermissions_SharedByUserIDArray", void 0);
|
|
18946
19175
|
__decorate([
|
|
18947
19176
|
Field(() => [MJAIAgentRun_]),
|
|
18948
19177
|
__metadata("design:type", Array)
|
|
@@ -18951,6 +19180,14 @@ __decorate([
|
|
|
18951
19180
|
Field(() => [MJAIAgentPermission_]),
|
|
18952
19181
|
__metadata("design:type", Array)
|
|
18953
19182
|
], MJUser_.prototype, "MJ_AIAgentPermissions_UserIDArray", void 0);
|
|
19183
|
+
__decorate([
|
|
19184
|
+
Field(() => [MJCollectionPermission_]),
|
|
19185
|
+
__metadata("design:type", Array)
|
|
19186
|
+
], MJUser_.prototype, "MJ_CollectionPermissions_UserIDArray", void 0);
|
|
19187
|
+
__decorate([
|
|
19188
|
+
Field(() => [MJCollection_]),
|
|
19189
|
+
__metadata("design:type", Array)
|
|
19190
|
+
], MJUser_.prototype, "MJ_Collections_OwnerIDArray", void 0);
|
|
18954
19191
|
__decorate([
|
|
18955
19192
|
Field(() => [MJTask_]),
|
|
18956
19193
|
__metadata("design:type", Array)
|
|
@@ -19497,22 +19734,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
19497
19734
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
|
|
19498
19735
|
return result;
|
|
19499
19736
|
}
|
|
19500
|
-
async
|
|
19501
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
19737
|
+
async MJ_DashboardUserPreferences_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19738
|
+
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
19502
19739
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19503
19740
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19504
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
19741
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
19505
19742
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19506
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
19743
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
|
|
19507
19744
|
return result;
|
|
19508
19745
|
}
|
|
19509
|
-
async
|
|
19510
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
19746
|
+
async MJ_DashboardUserStates_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19747
|
+
this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
|
|
19511
19748
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19512
19749
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19513
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
19750
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
19514
19751
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19515
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
19752
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
|
|
19516
19753
|
return result;
|
|
19517
19754
|
}
|
|
19518
19755
|
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -19533,6 +19770,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
19533
19770
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Public Links', rows);
|
|
19534
19771
|
return result;
|
|
19535
19772
|
}
|
|
19773
|
+
async MJ_ScheduledJobRuns_ExecutedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19774
|
+
this.CheckUserReadPermissions('MJ: Scheduled Job Runs', userPayload);
|
|
19775
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19776
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19777
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobRuns] WHERE [ExecutedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
19778
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19779
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows);
|
|
19780
|
+
return result;
|
|
19781
|
+
}
|
|
19782
|
+
async MJ_ScheduledJobs_NotifyUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19783
|
+
this.CheckUserReadPermissions('MJ: Scheduled Jobs', userPayload);
|
|
19784
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19785
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19786
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobs] WHERE [NotifyUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
19787
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19788
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows);
|
|
19789
|
+
return result;
|
|
19790
|
+
}
|
|
19536
19791
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19537
19792
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
19538
19793
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -19578,6 +19833,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
19578
19833
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows);
|
|
19579
19834
|
return result;
|
|
19580
19835
|
}
|
|
19836
|
+
async MJ_ScheduledJobs_OwnerUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19837
|
+
this.CheckUserReadPermissions('MJ: Scheduled Jobs', userPayload);
|
|
19838
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19839
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19840
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobs] WHERE [OwnerUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
19841
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19842
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows);
|
|
19843
|
+
return result;
|
|
19844
|
+
}
|
|
19845
|
+
async MJ_CollectionPermissions_SharedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19846
|
+
this.CheckUserReadPermissions('MJ: Collection Permissions', userPayload);
|
|
19847
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19848
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19849
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollectionPermissions] WHERE [SharedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
19850
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19851
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collection Permissions', rows);
|
|
19852
|
+
return result;
|
|
19853
|
+
}
|
|
19581
19854
|
async MJ_AIAgentRuns_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19582
19855
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
19583
19856
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -19596,6 +19869,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
19596
19869
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows);
|
|
19597
19870
|
return result;
|
|
19598
19871
|
}
|
|
19872
|
+
async MJ_CollectionPermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19873
|
+
this.CheckUserReadPermissions('MJ: Collection Permissions', userPayload);
|
|
19874
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19875
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19876
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollectionPermissions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
19877
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19878
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collection Permissions', rows);
|
|
19879
|
+
return result;
|
|
19880
|
+
}
|
|
19881
|
+
async MJ_Collections_OwnerIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19882
|
+
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
19883
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19884
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19885
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollections] WHERE [OwnerID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
19886
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
19887
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collections', rows);
|
|
19888
|
+
return result;
|
|
19889
|
+
}
|
|
19599
19890
|
async MJ_Tasks_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
19600
19891
|
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
19601
19892
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -19997,23 +20288,23 @@ __decorate([
|
|
|
19997
20288
|
__metadata("design:returntype", Promise)
|
|
19998
20289
|
], MJUserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
19999
20290
|
__decorate([
|
|
20000
|
-
FieldResolver(() => [
|
|
20291
|
+
FieldResolver(() => [MJDashboardUserPreference_]),
|
|
20001
20292
|
__param(0, Root()),
|
|
20002
20293
|
__param(1, Ctx()),
|
|
20003
20294
|
__param(2, PubSub()),
|
|
20004
20295
|
__metadata("design:type", Function),
|
|
20005
20296
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20006
20297
|
__metadata("design:returntype", Promise)
|
|
20007
|
-
], MJUserResolverBase.prototype, "
|
|
20298
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
|
|
20008
20299
|
__decorate([
|
|
20009
|
-
FieldResolver(() => [
|
|
20300
|
+
FieldResolver(() => [MJDashboardUserState_]),
|
|
20010
20301
|
__param(0, Root()),
|
|
20011
20302
|
__param(1, Ctx()),
|
|
20012
20303
|
__param(2, PubSub()),
|
|
20013
20304
|
__metadata("design:type", Function),
|
|
20014
20305
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20015
20306
|
__metadata("design:returntype", Promise)
|
|
20016
|
-
], MJUserResolverBase.prototype, "
|
|
20307
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
20017
20308
|
__decorate([
|
|
20018
20309
|
FieldResolver(() => [MJArtifactVersion_]),
|
|
20019
20310
|
__param(0, Root()),
|
|
@@ -20032,6 +20323,24 @@ __decorate([
|
|
|
20032
20323
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20033
20324
|
__metadata("design:returntype", Promise)
|
|
20034
20325
|
], MJUserResolverBase.prototype, "MJ_PublicLinks_UserIDArray", null);
|
|
20326
|
+
__decorate([
|
|
20327
|
+
FieldResolver(() => [MJScheduledJobRun_]),
|
|
20328
|
+
__param(0, Root()),
|
|
20329
|
+
__param(1, Ctx()),
|
|
20330
|
+
__param(2, PubSub()),
|
|
20331
|
+
__metadata("design:type", Function),
|
|
20332
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20333
|
+
__metadata("design:returntype", Promise)
|
|
20334
|
+
], MJUserResolverBase.prototype, "MJ_ScheduledJobRuns_ExecutedByUserIDArray", null);
|
|
20335
|
+
__decorate([
|
|
20336
|
+
FieldResolver(() => [MJScheduledJob_]),
|
|
20337
|
+
__param(0, Root()),
|
|
20338
|
+
__param(1, Ctx()),
|
|
20339
|
+
__param(2, PubSub()),
|
|
20340
|
+
__metadata("design:type", Function),
|
|
20341
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20342
|
+
__metadata("design:returntype", Promise)
|
|
20343
|
+
], MJUserResolverBase.prototype, "MJ_ScheduledJobs_NotifyUserIDArray", null);
|
|
20035
20344
|
__decorate([
|
|
20036
20345
|
FieldResolver(() => [MJResourcePermission_]),
|
|
20037
20346
|
__param(0, Root()),
|
|
@@ -20077,6 +20386,24 @@ __decorate([
|
|
|
20077
20386
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20078
20387
|
__metadata("design:returntype", Promise)
|
|
20079
20388
|
], MJUserResolverBase.prototype, "MJ_Artifacts_UserIDArray", null);
|
|
20389
|
+
__decorate([
|
|
20390
|
+
FieldResolver(() => [MJScheduledJob_]),
|
|
20391
|
+
__param(0, Root()),
|
|
20392
|
+
__param(1, Ctx()),
|
|
20393
|
+
__param(2, PubSub()),
|
|
20394
|
+
__metadata("design:type", Function),
|
|
20395
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20396
|
+
__metadata("design:returntype", Promise)
|
|
20397
|
+
], MJUserResolverBase.prototype, "MJ_ScheduledJobs_OwnerUserIDArray", null);
|
|
20398
|
+
__decorate([
|
|
20399
|
+
FieldResolver(() => [MJCollectionPermission_]),
|
|
20400
|
+
__param(0, Root()),
|
|
20401
|
+
__param(1, Ctx()),
|
|
20402
|
+
__param(2, PubSub()),
|
|
20403
|
+
__metadata("design:type", Function),
|
|
20404
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20405
|
+
__metadata("design:returntype", Promise)
|
|
20406
|
+
], MJUserResolverBase.prototype, "MJ_CollectionPermissions_SharedByUserIDArray", null);
|
|
20080
20407
|
__decorate([
|
|
20081
20408
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
20082
20409
|
__param(0, Root()),
|
|
@@ -20095,6 +20422,24 @@ __decorate([
|
|
|
20095
20422
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20096
20423
|
__metadata("design:returntype", Promise)
|
|
20097
20424
|
], MJUserResolverBase.prototype, "MJ_AIAgentPermissions_UserIDArray", null);
|
|
20425
|
+
__decorate([
|
|
20426
|
+
FieldResolver(() => [MJCollectionPermission_]),
|
|
20427
|
+
__param(0, Root()),
|
|
20428
|
+
__param(1, Ctx()),
|
|
20429
|
+
__param(2, PubSub()),
|
|
20430
|
+
__metadata("design:type", Function),
|
|
20431
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20432
|
+
__metadata("design:returntype", Promise)
|
|
20433
|
+
], MJUserResolverBase.prototype, "MJ_CollectionPermissions_UserIDArray", null);
|
|
20434
|
+
__decorate([
|
|
20435
|
+
FieldResolver(() => [MJCollection_]),
|
|
20436
|
+
__param(0, Root()),
|
|
20437
|
+
__param(1, Ctx()),
|
|
20438
|
+
__param(2, PubSub()),
|
|
20439
|
+
__metadata("design:type", Function),
|
|
20440
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20441
|
+
__metadata("design:returntype", Promise)
|
|
20442
|
+
], MJUserResolverBase.prototype, "MJ_Collections_OwnerIDArray", null);
|
|
20098
20443
|
__decorate([
|
|
20099
20444
|
FieldResolver(() => [MJTask_]),
|
|
20100
20445
|
__param(0, Root()),
|
|
@@ -36898,6 +37243,7 @@ let MJConversationDetail_ = class MJConversationDetail_ {
|
|
|
36898
37243
|
ParentID;
|
|
36899
37244
|
AgentID;
|
|
36900
37245
|
Status;
|
|
37246
|
+
SuggestedResponses;
|
|
36901
37247
|
Conversation;
|
|
36902
37248
|
User;
|
|
36903
37249
|
Artifact;
|
|
@@ -37005,6 +37351,10 @@ __decorate([
|
|
|
37005
37351
|
MaxLength(40),
|
|
37006
37352
|
__metadata("design:type", String)
|
|
37007
37353
|
], MJConversationDetail_.prototype, "Status", void 0);
|
|
37354
|
+
__decorate([
|
|
37355
|
+
Field({ nullable: true, description: `JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).` }),
|
|
37356
|
+
__metadata("design:type", String)
|
|
37357
|
+
], MJConversationDetail_.prototype, "SuggestedResponses", void 0);
|
|
37008
37358
|
__decorate([
|
|
37009
37359
|
Field({ nullable: true }),
|
|
37010
37360
|
MaxLength(510),
|
|
@@ -37074,6 +37424,7 @@ let CreateMJConversationDetailInput = class CreateMJConversationDetailInput {
|
|
|
37074
37424
|
ParentID;
|
|
37075
37425
|
AgentID;
|
|
37076
37426
|
Status;
|
|
37427
|
+
SuggestedResponses;
|
|
37077
37428
|
};
|
|
37078
37429
|
__decorate([
|
|
37079
37430
|
Field({ nullable: true }),
|
|
@@ -37151,6 +37502,10 @@ __decorate([
|
|
|
37151
37502
|
Field({ nullable: true }),
|
|
37152
37503
|
__metadata("design:type", String)
|
|
37153
37504
|
], CreateMJConversationDetailInput.prototype, "Status", void 0);
|
|
37505
|
+
__decorate([
|
|
37506
|
+
Field({ nullable: true }),
|
|
37507
|
+
__metadata("design:type", String)
|
|
37508
|
+
], CreateMJConversationDetailInput.prototype, "SuggestedResponses", void 0);
|
|
37154
37509
|
CreateMJConversationDetailInput = __decorate([
|
|
37155
37510
|
InputType()
|
|
37156
37511
|
], CreateMJConversationDetailInput);
|
|
@@ -37175,6 +37530,7 @@ let UpdateMJConversationDetailInput = class UpdateMJConversationDetailInput {
|
|
|
37175
37530
|
ParentID;
|
|
37176
37531
|
AgentID;
|
|
37177
37532
|
Status;
|
|
37533
|
+
SuggestedResponses;
|
|
37178
37534
|
OldValues___;
|
|
37179
37535
|
};
|
|
37180
37536
|
__decorate([
|
|
@@ -37253,6 +37609,10 @@ __decorate([
|
|
|
37253
37609
|
Field({ nullable: true }),
|
|
37254
37610
|
__metadata("design:type", String)
|
|
37255
37611
|
], UpdateMJConversationDetailInput.prototype, "Status", void 0);
|
|
37612
|
+
__decorate([
|
|
37613
|
+
Field({ nullable: true }),
|
|
37614
|
+
__metadata("design:type", String)
|
|
37615
|
+
], UpdateMJConversationDetailInput.prototype, "SuggestedResponses", void 0);
|
|
37256
37616
|
__decorate([
|
|
37257
37617
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
37258
37618
|
__metadata("design:type", Array)
|
|
@@ -49698,9 +50058,11 @@ let MJAction_ = class MJAction_ {
|
|
|
49698
50058
|
DriverClass;
|
|
49699
50059
|
ParentID;
|
|
49700
50060
|
IconClass;
|
|
50061
|
+
DefaultCompactPromptID;
|
|
49701
50062
|
Category;
|
|
49702
50063
|
CodeApprovedByUser;
|
|
49703
50064
|
Parent;
|
|
50065
|
+
DefaultCompactPrompt;
|
|
49704
50066
|
RootParentID;
|
|
49705
50067
|
ActionParams_ActionIDArray;
|
|
49706
50068
|
ActionLibraries_ActionIDArray;
|
|
@@ -49815,6 +50177,11 @@ __decorate([
|
|
|
49815
50177
|
MaxLength(200),
|
|
49816
50178
|
__metadata("design:type", String)
|
|
49817
50179
|
], MJAction_.prototype, "IconClass", void 0);
|
|
50180
|
+
__decorate([
|
|
50181
|
+
Field({ nullable: true, description: `Default prompt for compacting/summarizing this action's results when used by agents with CompactMode=AISummary. Action designers define how their specific results should be summarized. Can be overridden per agent in AIAgentAction.CompactPromptID.` }),
|
|
50182
|
+
MaxLength(16),
|
|
50183
|
+
__metadata("design:type", String)
|
|
50184
|
+
], MJAction_.prototype, "DefaultCompactPromptID", void 0);
|
|
49818
50185
|
__decorate([
|
|
49819
50186
|
Field({ nullable: true }),
|
|
49820
50187
|
MaxLength(510),
|
|
@@ -49830,6 +50197,11 @@ __decorate([
|
|
|
49830
50197
|
MaxLength(850),
|
|
49831
50198
|
__metadata("design:type", String)
|
|
49832
50199
|
], MJAction_.prototype, "Parent", void 0);
|
|
50200
|
+
__decorate([
|
|
50201
|
+
Field({ nullable: true }),
|
|
50202
|
+
MaxLength(510),
|
|
50203
|
+
__metadata("design:type", String)
|
|
50204
|
+
], MJAction_.prototype, "DefaultCompactPrompt", void 0);
|
|
49833
50205
|
__decorate([
|
|
49834
50206
|
Field({ nullable: true }),
|
|
49835
50207
|
MaxLength(16),
|
|
@@ -49904,6 +50276,7 @@ let CreateMJActionInput = class CreateMJActionInput {
|
|
|
49904
50276
|
DriverClass;
|
|
49905
50277
|
ParentID;
|
|
49906
50278
|
IconClass;
|
|
50279
|
+
DefaultCompactPromptID;
|
|
49907
50280
|
};
|
|
49908
50281
|
__decorate([
|
|
49909
50282
|
Field({ nullable: true }),
|
|
@@ -49985,6 +50358,10 @@ __decorate([
|
|
|
49985
50358
|
Field({ nullable: true }),
|
|
49986
50359
|
__metadata("design:type", String)
|
|
49987
50360
|
], CreateMJActionInput.prototype, "IconClass", void 0);
|
|
50361
|
+
__decorate([
|
|
50362
|
+
Field({ nullable: true }),
|
|
50363
|
+
__metadata("design:type", String)
|
|
50364
|
+
], CreateMJActionInput.prototype, "DefaultCompactPromptID", void 0);
|
|
49988
50365
|
CreateMJActionInput = __decorate([
|
|
49989
50366
|
InputType()
|
|
49990
50367
|
], CreateMJActionInput);
|
|
@@ -50010,6 +50387,7 @@ let UpdateMJActionInput = class UpdateMJActionInput {
|
|
|
50010
50387
|
DriverClass;
|
|
50011
50388
|
ParentID;
|
|
50012
50389
|
IconClass;
|
|
50390
|
+
DefaultCompactPromptID;
|
|
50013
50391
|
OldValues___;
|
|
50014
50392
|
};
|
|
50015
50393
|
__decorate([
|
|
@@ -50092,6 +50470,10 @@ __decorate([
|
|
|
50092
50470
|
Field({ nullable: true }),
|
|
50093
50471
|
__metadata("design:type", String)
|
|
50094
50472
|
], UpdateMJActionInput.prototype, "IconClass", void 0);
|
|
50473
|
+
__decorate([
|
|
50474
|
+
Field({ nullable: true }),
|
|
50475
|
+
__metadata("design:type", String)
|
|
50476
|
+
], UpdateMJActionInput.prototype, "DefaultCompactPromptID", void 0);
|
|
50095
50477
|
__decorate([
|
|
50096
50478
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
50097
50479
|
__metadata("design:type", Array)
|
|
@@ -62263,6 +62645,379 @@ MJQueryEntityResolver = __decorate([
|
|
|
62263
62645
|
Resolver(MJQueryEntity_)
|
|
62264
62646
|
], MJQueryEntityResolver);
|
|
62265
62647
|
export { MJQueryEntityResolver };
|
|
62648
|
+
let MJScheduledJobRun_ = class MJScheduledJobRun_ {
|
|
62649
|
+
ID;
|
|
62650
|
+
ScheduledJobID;
|
|
62651
|
+
StartedAt;
|
|
62652
|
+
CompletedAt;
|
|
62653
|
+
Status;
|
|
62654
|
+
Success;
|
|
62655
|
+
ErrorMessage;
|
|
62656
|
+
Details;
|
|
62657
|
+
ExecutedByUserID;
|
|
62658
|
+
QueuedAt;
|
|
62659
|
+
_mj__CreatedAt;
|
|
62660
|
+
_mj__UpdatedAt;
|
|
62661
|
+
ScheduledJob;
|
|
62662
|
+
ExecutedByUser;
|
|
62663
|
+
MJ_AIAgentRuns_ScheduledJobRunIDArray;
|
|
62664
|
+
};
|
|
62665
|
+
__decorate([
|
|
62666
|
+
Field(),
|
|
62667
|
+
MaxLength(16),
|
|
62668
|
+
__metadata("design:type", String)
|
|
62669
|
+
], MJScheduledJobRun_.prototype, "ID", void 0);
|
|
62670
|
+
__decorate([
|
|
62671
|
+
Field(),
|
|
62672
|
+
MaxLength(16),
|
|
62673
|
+
__metadata("design:type", String)
|
|
62674
|
+
], MJScheduledJobRun_.prototype, "ScheduledJobID", void 0);
|
|
62675
|
+
__decorate([
|
|
62676
|
+
Field({ description: `Timestamp when this job execution began. Set immediately before calling the job plugin's Execute method.` }),
|
|
62677
|
+
MaxLength(10),
|
|
62678
|
+
__metadata("design:type", Date)
|
|
62679
|
+
], MJScheduledJobRun_.prototype, "StartedAt", void 0);
|
|
62680
|
+
__decorate([
|
|
62681
|
+
Field({ nullable: true, description: `Timestamp when this job execution completed (successfully or with failure). NULL while the job is still running.` }),
|
|
62682
|
+
MaxLength(10),
|
|
62683
|
+
__metadata("design:type", Date)
|
|
62684
|
+
], MJScheduledJobRun_.prototype, "CompletedAt", void 0);
|
|
62685
|
+
__decorate([
|
|
62686
|
+
Field({ description: `Current status of the job execution. Running=currently executing, Completed=finished (check Success for outcome), Failed=exception during execution, Cancelled=manually cancelled, Timeout=exceeded maximum execution time.` }),
|
|
62687
|
+
MaxLength(40),
|
|
62688
|
+
__metadata("design:type", String)
|
|
62689
|
+
], MJScheduledJobRun_.prototype, "Status", void 0);
|
|
62690
|
+
__decorate([
|
|
62691
|
+
Field(() => Boolean, { nullable: true, description: `Whether the job execution completed successfully. NULL while running, TRUE if successful, FALSE if failed. This is the job-level success from the plugin's Execute method, separate from domain-specific success tracking.` }),
|
|
62692
|
+
__metadata("design:type", Boolean)
|
|
62693
|
+
], MJScheduledJobRun_.prototype, "Success", void 0);
|
|
62694
|
+
__decorate([
|
|
62695
|
+
Field({ nullable: true, description: `Error message if the job failed. NULL for successful runs. Contains exception messages or error details from the plugin's Execute method.` }),
|
|
62696
|
+
__metadata("design:type", String)
|
|
62697
|
+
], MJScheduledJobRun_.prototype, "ErrorMessage", void 0);
|
|
62698
|
+
__decorate([
|
|
62699
|
+
Field({ nullable: true, description: `Job-type specific execution details stored as JSON. May include references to domain-specific run records (e.g., {"AgentRunID": "...", "TokensUsed": 5000}), performance metrics, or other execution metadata. Schema is defined by the job type plugin.` }),
|
|
62700
|
+
__metadata("design:type", String)
|
|
62701
|
+
], MJScheduledJobRun_.prototype, "Details", void 0);
|
|
62702
|
+
__decorate([
|
|
62703
|
+
Field({ nullable: true, description: `User context under which the job was executed. Typically the OwnerUserID from the schedule, but can be overridden in job-specific configuration.` }),
|
|
62704
|
+
MaxLength(16),
|
|
62705
|
+
__metadata("design:type", String)
|
|
62706
|
+
], MJScheduledJobRun_.prototype, "ExecutedByUserID", void 0);
|
|
62707
|
+
__decorate([
|
|
62708
|
+
Field({ nullable: true, description: `Timestamp when this execution was queued (for ConcurrencyMode=Queue). NULL for immediate executions. When set, indicates this run is waiting for a previous execution to complete before starting.` }),
|
|
62709
|
+
MaxLength(10),
|
|
62710
|
+
__metadata("design:type", Date)
|
|
62711
|
+
], MJScheduledJobRun_.prototype, "QueuedAt", void 0);
|
|
62712
|
+
__decorate([
|
|
62713
|
+
Field(),
|
|
62714
|
+
MaxLength(10),
|
|
62715
|
+
__metadata("design:type", Date)
|
|
62716
|
+
], MJScheduledJobRun_.prototype, "_mj__CreatedAt", void 0);
|
|
62717
|
+
__decorate([
|
|
62718
|
+
Field(),
|
|
62719
|
+
MaxLength(10),
|
|
62720
|
+
__metadata("design:type", Date)
|
|
62721
|
+
], MJScheduledJobRun_.prototype, "_mj__UpdatedAt", void 0);
|
|
62722
|
+
__decorate([
|
|
62723
|
+
Field(),
|
|
62724
|
+
MaxLength(400),
|
|
62725
|
+
__metadata("design:type", String)
|
|
62726
|
+
], MJScheduledJobRun_.prototype, "ScheduledJob", void 0);
|
|
62727
|
+
__decorate([
|
|
62728
|
+
Field({ nullable: true }),
|
|
62729
|
+
MaxLength(200),
|
|
62730
|
+
__metadata("design:type", String)
|
|
62731
|
+
], MJScheduledJobRun_.prototype, "ExecutedByUser", void 0);
|
|
62732
|
+
__decorate([
|
|
62733
|
+
Field(() => [MJAIAgentRun_]),
|
|
62734
|
+
__metadata("design:type", Array)
|
|
62735
|
+
], MJScheduledJobRun_.prototype, "MJ_AIAgentRuns_ScheduledJobRunIDArray", void 0);
|
|
62736
|
+
MJScheduledJobRun_ = __decorate([
|
|
62737
|
+
ObjectType({ description: `Records execution history for scheduled jobs. Provides uniform tracking across all job types. Each record represents one execution attempt of a scheduled job.` })
|
|
62738
|
+
], MJScheduledJobRun_);
|
|
62739
|
+
export { MJScheduledJobRun_ };
|
|
62740
|
+
let CreateMJScheduledJobRunInput = class CreateMJScheduledJobRunInput {
|
|
62741
|
+
ID;
|
|
62742
|
+
ScheduledJobID;
|
|
62743
|
+
StartedAt;
|
|
62744
|
+
CompletedAt;
|
|
62745
|
+
Status;
|
|
62746
|
+
Success;
|
|
62747
|
+
ErrorMessage;
|
|
62748
|
+
Details;
|
|
62749
|
+
ExecutedByUserID;
|
|
62750
|
+
QueuedAt;
|
|
62751
|
+
};
|
|
62752
|
+
__decorate([
|
|
62753
|
+
Field({ nullable: true }),
|
|
62754
|
+
__metadata("design:type", String)
|
|
62755
|
+
], CreateMJScheduledJobRunInput.prototype, "ID", void 0);
|
|
62756
|
+
__decorate([
|
|
62757
|
+
Field({ nullable: true }),
|
|
62758
|
+
__metadata("design:type", String)
|
|
62759
|
+
], CreateMJScheduledJobRunInput.prototype, "ScheduledJobID", void 0);
|
|
62760
|
+
__decorate([
|
|
62761
|
+
Field({ nullable: true }),
|
|
62762
|
+
__metadata("design:type", Date)
|
|
62763
|
+
], CreateMJScheduledJobRunInput.prototype, "StartedAt", void 0);
|
|
62764
|
+
__decorate([
|
|
62765
|
+
Field({ nullable: true }),
|
|
62766
|
+
__metadata("design:type", Date)
|
|
62767
|
+
], CreateMJScheduledJobRunInput.prototype, "CompletedAt", void 0);
|
|
62768
|
+
__decorate([
|
|
62769
|
+
Field({ nullable: true }),
|
|
62770
|
+
__metadata("design:type", String)
|
|
62771
|
+
], CreateMJScheduledJobRunInput.prototype, "Status", void 0);
|
|
62772
|
+
__decorate([
|
|
62773
|
+
Field(() => Boolean, { nullable: true }),
|
|
62774
|
+
__metadata("design:type", Boolean)
|
|
62775
|
+
], CreateMJScheduledJobRunInput.prototype, "Success", void 0);
|
|
62776
|
+
__decorate([
|
|
62777
|
+
Field({ nullable: true }),
|
|
62778
|
+
__metadata("design:type", String)
|
|
62779
|
+
], CreateMJScheduledJobRunInput.prototype, "ErrorMessage", void 0);
|
|
62780
|
+
__decorate([
|
|
62781
|
+
Field({ nullable: true }),
|
|
62782
|
+
__metadata("design:type", String)
|
|
62783
|
+
], CreateMJScheduledJobRunInput.prototype, "Details", void 0);
|
|
62784
|
+
__decorate([
|
|
62785
|
+
Field({ nullable: true }),
|
|
62786
|
+
__metadata("design:type", String)
|
|
62787
|
+
], CreateMJScheduledJobRunInput.prototype, "ExecutedByUserID", void 0);
|
|
62788
|
+
__decorate([
|
|
62789
|
+
Field({ nullable: true }),
|
|
62790
|
+
__metadata("design:type", Date)
|
|
62791
|
+
], CreateMJScheduledJobRunInput.prototype, "QueuedAt", void 0);
|
|
62792
|
+
CreateMJScheduledJobRunInput = __decorate([
|
|
62793
|
+
InputType()
|
|
62794
|
+
], CreateMJScheduledJobRunInput);
|
|
62795
|
+
export { CreateMJScheduledJobRunInput };
|
|
62796
|
+
let UpdateMJScheduledJobRunInput = class UpdateMJScheduledJobRunInput {
|
|
62797
|
+
ID;
|
|
62798
|
+
ScheduledJobID;
|
|
62799
|
+
StartedAt;
|
|
62800
|
+
CompletedAt;
|
|
62801
|
+
Status;
|
|
62802
|
+
Success;
|
|
62803
|
+
ErrorMessage;
|
|
62804
|
+
Details;
|
|
62805
|
+
ExecutedByUserID;
|
|
62806
|
+
QueuedAt;
|
|
62807
|
+
OldValues___;
|
|
62808
|
+
};
|
|
62809
|
+
__decorate([
|
|
62810
|
+
Field(),
|
|
62811
|
+
__metadata("design:type", String)
|
|
62812
|
+
], UpdateMJScheduledJobRunInput.prototype, "ID", void 0);
|
|
62813
|
+
__decorate([
|
|
62814
|
+
Field({ nullable: true }),
|
|
62815
|
+
__metadata("design:type", String)
|
|
62816
|
+
], UpdateMJScheduledJobRunInput.prototype, "ScheduledJobID", void 0);
|
|
62817
|
+
__decorate([
|
|
62818
|
+
Field({ nullable: true }),
|
|
62819
|
+
__metadata("design:type", Date)
|
|
62820
|
+
], UpdateMJScheduledJobRunInput.prototype, "StartedAt", void 0);
|
|
62821
|
+
__decorate([
|
|
62822
|
+
Field({ nullable: true }),
|
|
62823
|
+
__metadata("design:type", Date)
|
|
62824
|
+
], UpdateMJScheduledJobRunInput.prototype, "CompletedAt", void 0);
|
|
62825
|
+
__decorate([
|
|
62826
|
+
Field({ nullable: true }),
|
|
62827
|
+
__metadata("design:type", String)
|
|
62828
|
+
], UpdateMJScheduledJobRunInput.prototype, "Status", void 0);
|
|
62829
|
+
__decorate([
|
|
62830
|
+
Field(() => Boolean, { nullable: true }),
|
|
62831
|
+
__metadata("design:type", Boolean)
|
|
62832
|
+
], UpdateMJScheduledJobRunInput.prototype, "Success", void 0);
|
|
62833
|
+
__decorate([
|
|
62834
|
+
Field({ nullable: true }),
|
|
62835
|
+
__metadata("design:type", String)
|
|
62836
|
+
], UpdateMJScheduledJobRunInput.prototype, "ErrorMessage", void 0);
|
|
62837
|
+
__decorate([
|
|
62838
|
+
Field({ nullable: true }),
|
|
62839
|
+
__metadata("design:type", String)
|
|
62840
|
+
], UpdateMJScheduledJobRunInput.prototype, "Details", void 0);
|
|
62841
|
+
__decorate([
|
|
62842
|
+
Field({ nullable: true }),
|
|
62843
|
+
__metadata("design:type", String)
|
|
62844
|
+
], UpdateMJScheduledJobRunInput.prototype, "ExecutedByUserID", void 0);
|
|
62845
|
+
__decorate([
|
|
62846
|
+
Field({ nullable: true }),
|
|
62847
|
+
__metadata("design:type", Date)
|
|
62848
|
+
], UpdateMJScheduledJobRunInput.prototype, "QueuedAt", void 0);
|
|
62849
|
+
__decorate([
|
|
62850
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
62851
|
+
__metadata("design:type", Array)
|
|
62852
|
+
], UpdateMJScheduledJobRunInput.prototype, "OldValues___", void 0);
|
|
62853
|
+
UpdateMJScheduledJobRunInput = __decorate([
|
|
62854
|
+
InputType()
|
|
62855
|
+
], UpdateMJScheduledJobRunInput);
|
|
62856
|
+
export { UpdateMJScheduledJobRunInput };
|
|
62857
|
+
let RunMJScheduledJobRunViewResult = class RunMJScheduledJobRunViewResult {
|
|
62858
|
+
Results;
|
|
62859
|
+
UserViewRunID;
|
|
62860
|
+
RowCount;
|
|
62861
|
+
TotalRowCount;
|
|
62862
|
+
ExecutionTime;
|
|
62863
|
+
ErrorMessage;
|
|
62864
|
+
Success;
|
|
62865
|
+
};
|
|
62866
|
+
__decorate([
|
|
62867
|
+
Field(() => [MJScheduledJobRun_]),
|
|
62868
|
+
__metadata("design:type", Array)
|
|
62869
|
+
], RunMJScheduledJobRunViewResult.prototype, "Results", void 0);
|
|
62870
|
+
__decorate([
|
|
62871
|
+
Field(() => String, { nullable: true }),
|
|
62872
|
+
__metadata("design:type", String)
|
|
62873
|
+
], RunMJScheduledJobRunViewResult.prototype, "UserViewRunID", void 0);
|
|
62874
|
+
__decorate([
|
|
62875
|
+
Field(() => Int, { nullable: true }),
|
|
62876
|
+
__metadata("design:type", Number)
|
|
62877
|
+
], RunMJScheduledJobRunViewResult.prototype, "RowCount", void 0);
|
|
62878
|
+
__decorate([
|
|
62879
|
+
Field(() => Int, { nullable: true }),
|
|
62880
|
+
__metadata("design:type", Number)
|
|
62881
|
+
], RunMJScheduledJobRunViewResult.prototype, "TotalRowCount", void 0);
|
|
62882
|
+
__decorate([
|
|
62883
|
+
Field(() => Int, { nullable: true }),
|
|
62884
|
+
__metadata("design:type", Number)
|
|
62885
|
+
], RunMJScheduledJobRunViewResult.prototype, "ExecutionTime", void 0);
|
|
62886
|
+
__decorate([
|
|
62887
|
+
Field({ nullable: true }),
|
|
62888
|
+
__metadata("design:type", String)
|
|
62889
|
+
], RunMJScheduledJobRunViewResult.prototype, "ErrorMessage", void 0);
|
|
62890
|
+
__decorate([
|
|
62891
|
+
Field(() => Boolean, { nullable: false }),
|
|
62892
|
+
__metadata("design:type", Boolean)
|
|
62893
|
+
], RunMJScheduledJobRunViewResult.prototype, "Success", void 0);
|
|
62894
|
+
RunMJScheduledJobRunViewResult = __decorate([
|
|
62895
|
+
ObjectType()
|
|
62896
|
+
], RunMJScheduledJobRunViewResult);
|
|
62897
|
+
export { RunMJScheduledJobRunViewResult };
|
|
62898
|
+
let MJScheduledJobRunResolver = class MJScheduledJobRunResolver extends ResolverBase {
|
|
62899
|
+
async RunMJScheduledJobRunViewByID(input, { providers, userPayload }, pubSub) {
|
|
62900
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62901
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
62902
|
+
}
|
|
62903
|
+
async RunMJScheduledJobRunViewByName(input, { providers, userPayload }, pubSub) {
|
|
62904
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62905
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
62906
|
+
}
|
|
62907
|
+
async RunMJScheduledJobRunDynamicView(input, { providers, userPayload }, pubSub) {
|
|
62908
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62909
|
+
input.EntityName = 'MJ: Scheduled Job Runs';
|
|
62910
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
62911
|
+
}
|
|
62912
|
+
async MJScheduledJobRun(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
62913
|
+
this.CheckUserReadPermissions('MJ: Scheduled Job Runs', userPayload);
|
|
62914
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62915
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62916
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobRuns] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
62917
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62918
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
62919
|
+
return result;
|
|
62920
|
+
}
|
|
62921
|
+
async MJ_AIAgentRuns_ScheduledJobRunIDArray(mjscheduledjobrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
62922
|
+
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
62923
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62924
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62925
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRuns] WHERE [ScheduledJobRunID]='${mjscheduledjobrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
62926
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62927
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
62928
|
+
return result;
|
|
62929
|
+
}
|
|
62930
|
+
async CreateMJScheduledJobRun(input, { providers, userPayload }, pubSub) {
|
|
62931
|
+
const provider = GetReadWriteProvider(providers);
|
|
62932
|
+
return this.CreateRecord('MJ: Scheduled Job Runs', input, provider, userPayload, pubSub);
|
|
62933
|
+
}
|
|
62934
|
+
async UpdateMJScheduledJobRun(input, { providers, userPayload }, pubSub) {
|
|
62935
|
+
const provider = GetReadWriteProvider(providers);
|
|
62936
|
+
return this.UpdateRecord('MJ: Scheduled Job Runs', input, provider, userPayload, pubSub);
|
|
62937
|
+
}
|
|
62938
|
+
async DeleteMJScheduledJobRun(ID, options, { providers, userPayload }, pubSub) {
|
|
62939
|
+
const provider = GetReadWriteProvider(providers);
|
|
62940
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
62941
|
+
return this.DeleteRecord('MJ: Scheduled Job Runs', key, options, provider, userPayload, pubSub);
|
|
62942
|
+
}
|
|
62943
|
+
};
|
|
62944
|
+
__decorate([
|
|
62945
|
+
Query(() => RunMJScheduledJobRunViewResult),
|
|
62946
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
62947
|
+
__param(1, Ctx()),
|
|
62948
|
+
__param(2, PubSub()),
|
|
62949
|
+
__metadata("design:type", Function),
|
|
62950
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
62951
|
+
__metadata("design:returntype", Promise)
|
|
62952
|
+
], MJScheduledJobRunResolver.prototype, "RunMJScheduledJobRunViewByID", null);
|
|
62953
|
+
__decorate([
|
|
62954
|
+
Query(() => RunMJScheduledJobRunViewResult),
|
|
62955
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
62956
|
+
__param(1, Ctx()),
|
|
62957
|
+
__param(2, PubSub()),
|
|
62958
|
+
__metadata("design:type", Function),
|
|
62959
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
62960
|
+
__metadata("design:returntype", Promise)
|
|
62961
|
+
], MJScheduledJobRunResolver.prototype, "RunMJScheduledJobRunViewByName", null);
|
|
62962
|
+
__decorate([
|
|
62963
|
+
Query(() => RunMJScheduledJobRunViewResult),
|
|
62964
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
62965
|
+
__param(1, Ctx()),
|
|
62966
|
+
__param(2, PubSub()),
|
|
62967
|
+
__metadata("design:type", Function),
|
|
62968
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
62969
|
+
__metadata("design:returntype", Promise)
|
|
62970
|
+
], MJScheduledJobRunResolver.prototype, "RunMJScheduledJobRunDynamicView", null);
|
|
62971
|
+
__decorate([
|
|
62972
|
+
Query(() => MJScheduledJobRun_, { nullable: true }),
|
|
62973
|
+
__param(0, Arg('ID', () => String)),
|
|
62974
|
+
__param(1, Ctx()),
|
|
62975
|
+
__param(2, PubSub()),
|
|
62976
|
+
__metadata("design:type", Function),
|
|
62977
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
62978
|
+
__metadata("design:returntype", Promise)
|
|
62979
|
+
], MJScheduledJobRunResolver.prototype, "MJScheduledJobRun", null);
|
|
62980
|
+
__decorate([
|
|
62981
|
+
FieldResolver(() => [MJAIAgentRun_]),
|
|
62982
|
+
__param(0, Root()),
|
|
62983
|
+
__param(1, Ctx()),
|
|
62984
|
+
__param(2, PubSub()),
|
|
62985
|
+
__metadata("design:type", Function),
|
|
62986
|
+
__metadata("design:paramtypes", [MJScheduledJobRun_, Object, PubSubEngine]),
|
|
62987
|
+
__metadata("design:returntype", Promise)
|
|
62988
|
+
], MJScheduledJobRunResolver.prototype, "MJ_AIAgentRuns_ScheduledJobRunIDArray", null);
|
|
62989
|
+
__decorate([
|
|
62990
|
+
Mutation(() => MJScheduledJobRun_),
|
|
62991
|
+
__param(0, Arg('input', () => CreateMJScheduledJobRunInput)),
|
|
62992
|
+
__param(1, Ctx()),
|
|
62993
|
+
__param(2, PubSub()),
|
|
62994
|
+
__metadata("design:type", Function),
|
|
62995
|
+
__metadata("design:paramtypes", [CreateMJScheduledJobRunInput, Object, PubSubEngine]),
|
|
62996
|
+
__metadata("design:returntype", Promise)
|
|
62997
|
+
], MJScheduledJobRunResolver.prototype, "CreateMJScheduledJobRun", null);
|
|
62998
|
+
__decorate([
|
|
62999
|
+
Mutation(() => MJScheduledJobRun_),
|
|
63000
|
+
__param(0, Arg('input', () => UpdateMJScheduledJobRunInput)),
|
|
63001
|
+
__param(1, Ctx()),
|
|
63002
|
+
__param(2, PubSub()),
|
|
63003
|
+
__metadata("design:type", Function),
|
|
63004
|
+
__metadata("design:paramtypes", [UpdateMJScheduledJobRunInput, Object, PubSubEngine]),
|
|
63005
|
+
__metadata("design:returntype", Promise)
|
|
63006
|
+
], MJScheduledJobRunResolver.prototype, "UpdateMJScheduledJobRun", null);
|
|
63007
|
+
__decorate([
|
|
63008
|
+
Mutation(() => MJScheduledJobRun_),
|
|
63009
|
+
__param(0, Arg('ID', () => String)),
|
|
63010
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
63011
|
+
__param(2, Ctx()),
|
|
63012
|
+
__param(3, PubSub()),
|
|
63013
|
+
__metadata("design:type", Function),
|
|
63014
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
63015
|
+
__metadata("design:returntype", Promise)
|
|
63016
|
+
], MJScheduledJobRunResolver.prototype, "DeleteMJScheduledJobRun", null);
|
|
63017
|
+
MJScheduledJobRunResolver = __decorate([
|
|
63018
|
+
Resolver(MJScheduledJobRun_)
|
|
63019
|
+
], MJScheduledJobRunResolver);
|
|
63020
|
+
export { MJScheduledJobRunResolver };
|
|
62266
63021
|
let MJDashboardUserState_ = class MJDashboardUserState_ {
|
|
62267
63022
|
ID;
|
|
62268
63023
|
DashboardID;
|
|
@@ -65348,6 +66103,329 @@ MJConversationArtifactResolver = __decorate([
|
|
|
65348
66103
|
Resolver(MJConversationArtifact_)
|
|
65349
66104
|
], MJConversationArtifactResolver);
|
|
65350
66105
|
export { MJConversationArtifactResolver };
|
|
66106
|
+
let MJCollectionPermission_ = class MJCollectionPermission_ {
|
|
66107
|
+
ID;
|
|
66108
|
+
CollectionID;
|
|
66109
|
+
UserID;
|
|
66110
|
+
CanRead;
|
|
66111
|
+
CanShare;
|
|
66112
|
+
CanEdit;
|
|
66113
|
+
CanDelete;
|
|
66114
|
+
SharedByUserID;
|
|
66115
|
+
_mj__CreatedAt;
|
|
66116
|
+
_mj__UpdatedAt;
|
|
66117
|
+
Collection;
|
|
66118
|
+
User;
|
|
66119
|
+
SharedByUser;
|
|
66120
|
+
};
|
|
66121
|
+
__decorate([
|
|
66122
|
+
Field(),
|
|
66123
|
+
MaxLength(16),
|
|
66124
|
+
__metadata("design:type", String)
|
|
66125
|
+
], MJCollectionPermission_.prototype, "ID", void 0);
|
|
66126
|
+
__decorate([
|
|
66127
|
+
Field(),
|
|
66128
|
+
MaxLength(16),
|
|
66129
|
+
__metadata("design:type", String)
|
|
66130
|
+
], MJCollectionPermission_.prototype, "CollectionID", void 0);
|
|
66131
|
+
__decorate([
|
|
66132
|
+
Field(),
|
|
66133
|
+
MaxLength(16),
|
|
66134
|
+
__metadata("design:type", String)
|
|
66135
|
+
], MJCollectionPermission_.prototype, "UserID", void 0);
|
|
66136
|
+
__decorate([
|
|
66137
|
+
Field(() => Boolean, { description: `Always 1 - users must have read permission to access a shared collection` }),
|
|
66138
|
+
__metadata("design:type", Boolean)
|
|
66139
|
+
], MJCollectionPermission_.prototype, "CanRead", void 0);
|
|
66140
|
+
__decorate([
|
|
66141
|
+
Field(() => Boolean, { description: `Can share this collection with others (but cannot grant more permissions than they have)` }),
|
|
66142
|
+
__metadata("design:type", Boolean)
|
|
66143
|
+
], MJCollectionPermission_.prototype, "CanShare", void 0);
|
|
66144
|
+
__decorate([
|
|
66145
|
+
Field(() => Boolean, { description: `Can add/remove artifacts to/from this collection` }),
|
|
66146
|
+
__metadata("design:type", Boolean)
|
|
66147
|
+
], MJCollectionPermission_.prototype, "CanEdit", void 0);
|
|
66148
|
+
__decorate([
|
|
66149
|
+
Field(() => Boolean, { description: `Can delete the collection, child collections, and artifacts` }),
|
|
66150
|
+
__metadata("design:type", Boolean)
|
|
66151
|
+
], MJCollectionPermission_.prototype, "CanDelete", void 0);
|
|
66152
|
+
__decorate([
|
|
66153
|
+
Field({ nullable: true, description: `The user who shared this collection (NULL if shared by owner)` }),
|
|
66154
|
+
MaxLength(16),
|
|
66155
|
+
__metadata("design:type", String)
|
|
66156
|
+
], MJCollectionPermission_.prototype, "SharedByUserID", void 0);
|
|
66157
|
+
__decorate([
|
|
66158
|
+
Field(),
|
|
66159
|
+
MaxLength(10),
|
|
66160
|
+
__metadata("design:type", Date)
|
|
66161
|
+
], MJCollectionPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
66162
|
+
__decorate([
|
|
66163
|
+
Field(),
|
|
66164
|
+
MaxLength(10),
|
|
66165
|
+
__metadata("design:type", Date)
|
|
66166
|
+
], MJCollectionPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
66167
|
+
__decorate([
|
|
66168
|
+
Field(),
|
|
66169
|
+
MaxLength(510),
|
|
66170
|
+
__metadata("design:type", String)
|
|
66171
|
+
], MJCollectionPermission_.prototype, "Collection", void 0);
|
|
66172
|
+
__decorate([
|
|
66173
|
+
Field(),
|
|
66174
|
+
MaxLength(200),
|
|
66175
|
+
__metadata("design:type", String)
|
|
66176
|
+
], MJCollectionPermission_.prototype, "User", void 0);
|
|
66177
|
+
__decorate([
|
|
66178
|
+
Field({ nullable: true }),
|
|
66179
|
+
MaxLength(200),
|
|
66180
|
+
__metadata("design:type", String)
|
|
66181
|
+
], MJCollectionPermission_.prototype, "SharedByUser", void 0);
|
|
66182
|
+
MJCollectionPermission_ = __decorate([
|
|
66183
|
+
ObjectType({ description: `Manages sharing permissions for collections, allowing granular access control` })
|
|
66184
|
+
], MJCollectionPermission_);
|
|
66185
|
+
export { MJCollectionPermission_ };
|
|
66186
|
+
let CreateMJCollectionPermissionInput = class CreateMJCollectionPermissionInput {
|
|
66187
|
+
ID;
|
|
66188
|
+
CollectionID;
|
|
66189
|
+
UserID;
|
|
66190
|
+
CanRead;
|
|
66191
|
+
CanShare;
|
|
66192
|
+
CanEdit;
|
|
66193
|
+
CanDelete;
|
|
66194
|
+
SharedByUserID;
|
|
66195
|
+
};
|
|
66196
|
+
__decorate([
|
|
66197
|
+
Field({ nullable: true }),
|
|
66198
|
+
__metadata("design:type", String)
|
|
66199
|
+
], CreateMJCollectionPermissionInput.prototype, "ID", void 0);
|
|
66200
|
+
__decorate([
|
|
66201
|
+
Field({ nullable: true }),
|
|
66202
|
+
__metadata("design:type", String)
|
|
66203
|
+
], CreateMJCollectionPermissionInput.prototype, "CollectionID", void 0);
|
|
66204
|
+
__decorate([
|
|
66205
|
+
Field({ nullable: true }),
|
|
66206
|
+
__metadata("design:type", String)
|
|
66207
|
+
], CreateMJCollectionPermissionInput.prototype, "UserID", void 0);
|
|
66208
|
+
__decorate([
|
|
66209
|
+
Field(() => Boolean, { nullable: true }),
|
|
66210
|
+
__metadata("design:type", Boolean)
|
|
66211
|
+
], CreateMJCollectionPermissionInput.prototype, "CanRead", void 0);
|
|
66212
|
+
__decorate([
|
|
66213
|
+
Field(() => Boolean, { nullable: true }),
|
|
66214
|
+
__metadata("design:type", Boolean)
|
|
66215
|
+
], CreateMJCollectionPermissionInput.prototype, "CanShare", void 0);
|
|
66216
|
+
__decorate([
|
|
66217
|
+
Field(() => Boolean, { nullable: true }),
|
|
66218
|
+
__metadata("design:type", Boolean)
|
|
66219
|
+
], CreateMJCollectionPermissionInput.prototype, "CanEdit", void 0);
|
|
66220
|
+
__decorate([
|
|
66221
|
+
Field(() => Boolean, { nullable: true }),
|
|
66222
|
+
__metadata("design:type", Boolean)
|
|
66223
|
+
], CreateMJCollectionPermissionInput.prototype, "CanDelete", void 0);
|
|
66224
|
+
__decorate([
|
|
66225
|
+
Field({ nullable: true }),
|
|
66226
|
+
__metadata("design:type", String)
|
|
66227
|
+
], CreateMJCollectionPermissionInput.prototype, "SharedByUserID", void 0);
|
|
66228
|
+
CreateMJCollectionPermissionInput = __decorate([
|
|
66229
|
+
InputType()
|
|
66230
|
+
], CreateMJCollectionPermissionInput);
|
|
66231
|
+
export { CreateMJCollectionPermissionInput };
|
|
66232
|
+
let UpdateMJCollectionPermissionInput = class UpdateMJCollectionPermissionInput {
|
|
66233
|
+
ID;
|
|
66234
|
+
CollectionID;
|
|
66235
|
+
UserID;
|
|
66236
|
+
CanRead;
|
|
66237
|
+
CanShare;
|
|
66238
|
+
CanEdit;
|
|
66239
|
+
CanDelete;
|
|
66240
|
+
SharedByUserID;
|
|
66241
|
+
OldValues___;
|
|
66242
|
+
};
|
|
66243
|
+
__decorate([
|
|
66244
|
+
Field(),
|
|
66245
|
+
__metadata("design:type", String)
|
|
66246
|
+
], UpdateMJCollectionPermissionInput.prototype, "ID", void 0);
|
|
66247
|
+
__decorate([
|
|
66248
|
+
Field({ nullable: true }),
|
|
66249
|
+
__metadata("design:type", String)
|
|
66250
|
+
], UpdateMJCollectionPermissionInput.prototype, "CollectionID", void 0);
|
|
66251
|
+
__decorate([
|
|
66252
|
+
Field({ nullable: true }),
|
|
66253
|
+
__metadata("design:type", String)
|
|
66254
|
+
], UpdateMJCollectionPermissionInput.prototype, "UserID", void 0);
|
|
66255
|
+
__decorate([
|
|
66256
|
+
Field(() => Boolean, { nullable: true }),
|
|
66257
|
+
__metadata("design:type", Boolean)
|
|
66258
|
+
], UpdateMJCollectionPermissionInput.prototype, "CanRead", void 0);
|
|
66259
|
+
__decorate([
|
|
66260
|
+
Field(() => Boolean, { nullable: true }),
|
|
66261
|
+
__metadata("design:type", Boolean)
|
|
66262
|
+
], UpdateMJCollectionPermissionInput.prototype, "CanShare", void 0);
|
|
66263
|
+
__decorate([
|
|
66264
|
+
Field(() => Boolean, { nullable: true }),
|
|
66265
|
+
__metadata("design:type", Boolean)
|
|
66266
|
+
], UpdateMJCollectionPermissionInput.prototype, "CanEdit", void 0);
|
|
66267
|
+
__decorate([
|
|
66268
|
+
Field(() => Boolean, { nullable: true }),
|
|
66269
|
+
__metadata("design:type", Boolean)
|
|
66270
|
+
], UpdateMJCollectionPermissionInput.prototype, "CanDelete", void 0);
|
|
66271
|
+
__decorate([
|
|
66272
|
+
Field({ nullable: true }),
|
|
66273
|
+
__metadata("design:type", String)
|
|
66274
|
+
], UpdateMJCollectionPermissionInput.prototype, "SharedByUserID", void 0);
|
|
66275
|
+
__decorate([
|
|
66276
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
66277
|
+
__metadata("design:type", Array)
|
|
66278
|
+
], UpdateMJCollectionPermissionInput.prototype, "OldValues___", void 0);
|
|
66279
|
+
UpdateMJCollectionPermissionInput = __decorate([
|
|
66280
|
+
InputType()
|
|
66281
|
+
], UpdateMJCollectionPermissionInput);
|
|
66282
|
+
export { UpdateMJCollectionPermissionInput };
|
|
66283
|
+
let RunMJCollectionPermissionViewResult = class RunMJCollectionPermissionViewResult {
|
|
66284
|
+
Results;
|
|
66285
|
+
UserViewRunID;
|
|
66286
|
+
RowCount;
|
|
66287
|
+
TotalRowCount;
|
|
66288
|
+
ExecutionTime;
|
|
66289
|
+
ErrorMessage;
|
|
66290
|
+
Success;
|
|
66291
|
+
};
|
|
66292
|
+
__decorate([
|
|
66293
|
+
Field(() => [MJCollectionPermission_]),
|
|
66294
|
+
__metadata("design:type", Array)
|
|
66295
|
+
], RunMJCollectionPermissionViewResult.prototype, "Results", void 0);
|
|
66296
|
+
__decorate([
|
|
66297
|
+
Field(() => String, { nullable: true }),
|
|
66298
|
+
__metadata("design:type", String)
|
|
66299
|
+
], RunMJCollectionPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
66300
|
+
__decorate([
|
|
66301
|
+
Field(() => Int, { nullable: true }),
|
|
66302
|
+
__metadata("design:type", Number)
|
|
66303
|
+
], RunMJCollectionPermissionViewResult.prototype, "RowCount", void 0);
|
|
66304
|
+
__decorate([
|
|
66305
|
+
Field(() => Int, { nullable: true }),
|
|
66306
|
+
__metadata("design:type", Number)
|
|
66307
|
+
], RunMJCollectionPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
66308
|
+
__decorate([
|
|
66309
|
+
Field(() => Int, { nullable: true }),
|
|
66310
|
+
__metadata("design:type", Number)
|
|
66311
|
+
], RunMJCollectionPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
66312
|
+
__decorate([
|
|
66313
|
+
Field({ nullable: true }),
|
|
66314
|
+
__metadata("design:type", String)
|
|
66315
|
+
], RunMJCollectionPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
66316
|
+
__decorate([
|
|
66317
|
+
Field(() => Boolean, { nullable: false }),
|
|
66318
|
+
__metadata("design:type", Boolean)
|
|
66319
|
+
], RunMJCollectionPermissionViewResult.prototype, "Success", void 0);
|
|
66320
|
+
RunMJCollectionPermissionViewResult = __decorate([
|
|
66321
|
+
ObjectType()
|
|
66322
|
+
], RunMJCollectionPermissionViewResult);
|
|
66323
|
+
export { RunMJCollectionPermissionViewResult };
|
|
66324
|
+
let MJCollectionPermissionResolver = class MJCollectionPermissionResolver extends ResolverBase {
|
|
66325
|
+
async RunMJCollectionPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
66326
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66327
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
66328
|
+
}
|
|
66329
|
+
async RunMJCollectionPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
66330
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66331
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
66332
|
+
}
|
|
66333
|
+
async RunMJCollectionPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
66334
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66335
|
+
input.EntityName = 'MJ: Collection Permissions';
|
|
66336
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
66337
|
+
}
|
|
66338
|
+
async MJCollectionPermission(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
66339
|
+
this.CheckUserReadPermissions('MJ: Collection Permissions', userPayload);
|
|
66340
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66341
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
66342
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollectionPermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
66343
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
66344
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] : {});
|
|
66345
|
+
return result;
|
|
66346
|
+
}
|
|
66347
|
+
async CreateMJCollectionPermission(input, { providers, userPayload }, pubSub) {
|
|
66348
|
+
const provider = GetReadWriteProvider(providers);
|
|
66349
|
+
return this.CreateRecord('MJ: Collection Permissions', input, provider, userPayload, pubSub);
|
|
66350
|
+
}
|
|
66351
|
+
async UpdateMJCollectionPermission(input, { providers, userPayload }, pubSub) {
|
|
66352
|
+
const provider = GetReadWriteProvider(providers);
|
|
66353
|
+
return this.UpdateRecord('MJ: Collection Permissions', input, provider, userPayload, pubSub);
|
|
66354
|
+
}
|
|
66355
|
+
async DeleteMJCollectionPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
66356
|
+
const provider = GetReadWriteProvider(providers);
|
|
66357
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
66358
|
+
return this.DeleteRecord('MJ: Collection Permissions', key, options, provider, userPayload, pubSub);
|
|
66359
|
+
}
|
|
66360
|
+
};
|
|
66361
|
+
__decorate([
|
|
66362
|
+
Query(() => RunMJCollectionPermissionViewResult),
|
|
66363
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
66364
|
+
__param(1, Ctx()),
|
|
66365
|
+
__param(2, PubSub()),
|
|
66366
|
+
__metadata("design:type", Function),
|
|
66367
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
66368
|
+
__metadata("design:returntype", Promise)
|
|
66369
|
+
], MJCollectionPermissionResolver.prototype, "RunMJCollectionPermissionViewByID", null);
|
|
66370
|
+
__decorate([
|
|
66371
|
+
Query(() => RunMJCollectionPermissionViewResult),
|
|
66372
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
66373
|
+
__param(1, Ctx()),
|
|
66374
|
+
__param(2, PubSub()),
|
|
66375
|
+
__metadata("design:type", Function),
|
|
66376
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
66377
|
+
__metadata("design:returntype", Promise)
|
|
66378
|
+
], MJCollectionPermissionResolver.prototype, "RunMJCollectionPermissionViewByName", null);
|
|
66379
|
+
__decorate([
|
|
66380
|
+
Query(() => RunMJCollectionPermissionViewResult),
|
|
66381
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
66382
|
+
__param(1, Ctx()),
|
|
66383
|
+
__param(2, PubSub()),
|
|
66384
|
+
__metadata("design:type", Function),
|
|
66385
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
66386
|
+
__metadata("design:returntype", Promise)
|
|
66387
|
+
], MJCollectionPermissionResolver.prototype, "RunMJCollectionPermissionDynamicView", null);
|
|
66388
|
+
__decorate([
|
|
66389
|
+
Query(() => MJCollectionPermission_, { nullable: true }),
|
|
66390
|
+
__param(0, Arg('ID', () => String)),
|
|
66391
|
+
__param(1, Ctx()),
|
|
66392
|
+
__param(2, PubSub()),
|
|
66393
|
+
__metadata("design:type", Function),
|
|
66394
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
66395
|
+
__metadata("design:returntype", Promise)
|
|
66396
|
+
], MJCollectionPermissionResolver.prototype, "MJCollectionPermission", null);
|
|
66397
|
+
__decorate([
|
|
66398
|
+
Mutation(() => MJCollectionPermission_),
|
|
66399
|
+
__param(0, Arg('input', () => CreateMJCollectionPermissionInput)),
|
|
66400
|
+
__param(1, Ctx()),
|
|
66401
|
+
__param(2, PubSub()),
|
|
66402
|
+
__metadata("design:type", Function),
|
|
66403
|
+
__metadata("design:paramtypes", [CreateMJCollectionPermissionInput, Object, PubSubEngine]),
|
|
66404
|
+
__metadata("design:returntype", Promise)
|
|
66405
|
+
], MJCollectionPermissionResolver.prototype, "CreateMJCollectionPermission", null);
|
|
66406
|
+
__decorate([
|
|
66407
|
+
Mutation(() => MJCollectionPermission_),
|
|
66408
|
+
__param(0, Arg('input', () => UpdateMJCollectionPermissionInput)),
|
|
66409
|
+
__param(1, Ctx()),
|
|
66410
|
+
__param(2, PubSub()),
|
|
66411
|
+
__metadata("design:type", Function),
|
|
66412
|
+
__metadata("design:paramtypes", [UpdateMJCollectionPermissionInput, Object, PubSubEngine]),
|
|
66413
|
+
__metadata("design:returntype", Promise)
|
|
66414
|
+
], MJCollectionPermissionResolver.prototype, "UpdateMJCollectionPermission", null);
|
|
66415
|
+
__decorate([
|
|
66416
|
+
Mutation(() => MJCollectionPermission_),
|
|
66417
|
+
__param(0, Arg('ID', () => String)),
|
|
66418
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
66419
|
+
__param(2, Ctx()),
|
|
66420
|
+
__param(3, PubSub()),
|
|
66421
|
+
__metadata("design:type", Function),
|
|
66422
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
66423
|
+
__metadata("design:returntype", Promise)
|
|
66424
|
+
], MJCollectionPermissionResolver.prototype, "DeleteMJCollectionPermission", null);
|
|
66425
|
+
MJCollectionPermissionResolver = __decorate([
|
|
66426
|
+
Resolver(MJCollectionPermission_)
|
|
66427
|
+
], MJCollectionPermissionResolver);
|
|
66428
|
+
export { MJCollectionPermissionResolver };
|
|
65351
66429
|
let MJAIAgentPrompt_ = class MJAIAgentPrompt_ {
|
|
65352
66430
|
ID;
|
|
65353
66431
|
AgentID;
|
|
@@ -66097,6 +67175,320 @@ MJComponentLibraryResolver = __decorate([
|
|
|
66097
67175
|
Resolver(MJComponentLibrary_)
|
|
66098
67176
|
], MJComponentLibraryResolver);
|
|
66099
67177
|
export { MJComponentLibraryResolver };
|
|
67178
|
+
let MJScheduledJobType_ = class MJScheduledJobType_ {
|
|
67179
|
+
ID;
|
|
67180
|
+
Name;
|
|
67181
|
+
Description;
|
|
67182
|
+
DriverClass;
|
|
67183
|
+
DomainRunEntity;
|
|
67184
|
+
DomainRunEntityFKey;
|
|
67185
|
+
NotificationsAvailable;
|
|
67186
|
+
_mj__CreatedAt;
|
|
67187
|
+
_mj__UpdatedAt;
|
|
67188
|
+
MJ_ScheduledJobs_JobTypeIDArray;
|
|
67189
|
+
};
|
|
67190
|
+
__decorate([
|
|
67191
|
+
Field(),
|
|
67192
|
+
MaxLength(16),
|
|
67193
|
+
__metadata("design:type", String)
|
|
67194
|
+
], MJScheduledJobType_.prototype, "ID", void 0);
|
|
67195
|
+
__decorate([
|
|
67196
|
+
Field({ description: `Unique name identifying this job type (e.g., Agent, Action, Report).` }),
|
|
67197
|
+
MaxLength(200),
|
|
67198
|
+
__metadata("design:type", String)
|
|
67199
|
+
], MJScheduledJobType_.prototype, "Name", void 0);
|
|
67200
|
+
__decorate([
|
|
67201
|
+
Field({ nullable: true, description: `Human-readable description of what this job type does and when it should be used.` }),
|
|
67202
|
+
__metadata("design:type", String)
|
|
67203
|
+
], MJScheduledJobType_.prototype, "Description", void 0);
|
|
67204
|
+
__decorate([
|
|
67205
|
+
Field({ description: `TypeScript class name that implements BaseScheduledJob for this job type. Used by ClassFactory to instantiate the correct plugin at runtime.` }),
|
|
67206
|
+
MaxLength(510),
|
|
67207
|
+
__metadata("design:type", String)
|
|
67208
|
+
], MJScheduledJobType_.prototype, "DriverClass", void 0);
|
|
67209
|
+
__decorate([
|
|
67210
|
+
Field({ nullable: true, description: `Name of the entity that stores execution records for this job type (e.g., "MJ: AI Agent Runs", "Action Execution Logs"). Used for generic UI linking to domain-specific run records. NULL if job type uses ScheduledJobRun as its only execution record.` }),
|
|
67211
|
+
MaxLength(510),
|
|
67212
|
+
__metadata("design:type", String)
|
|
67213
|
+
], MJScheduledJobType_.prototype, "DomainRunEntity", void 0);
|
|
67214
|
+
__decorate([
|
|
67215
|
+
Field({ nullable: true, description: `Name of the foreign key field in the DomainRunEntity that links back to ScheduledJobRun (e.g., "ScheduleID"). Used for querying related domain runs. NULL if DomainRunEntity is NULL.` }),
|
|
67216
|
+
MaxLength(200),
|
|
67217
|
+
__metadata("design:type", String)
|
|
67218
|
+
], MJScheduledJobType_.prototype, "DomainRunEntityFKey", void 0);
|
|
67219
|
+
__decorate([
|
|
67220
|
+
Field(() => Boolean, { description: `Indicates whether this job type supports sending notifications on completion or failure.` }),
|
|
67221
|
+
__metadata("design:type", Boolean)
|
|
67222
|
+
], MJScheduledJobType_.prototype, "NotificationsAvailable", void 0);
|
|
67223
|
+
__decorate([
|
|
67224
|
+
Field(),
|
|
67225
|
+
MaxLength(10),
|
|
67226
|
+
__metadata("design:type", Date)
|
|
67227
|
+
], MJScheduledJobType_.prototype, "_mj__CreatedAt", void 0);
|
|
67228
|
+
__decorate([
|
|
67229
|
+
Field(),
|
|
67230
|
+
MaxLength(10),
|
|
67231
|
+
__metadata("design:type", Date)
|
|
67232
|
+
], MJScheduledJobType_.prototype, "_mj__UpdatedAt", void 0);
|
|
67233
|
+
__decorate([
|
|
67234
|
+
Field(() => [MJScheduledJob_]),
|
|
67235
|
+
__metadata("design:type", Array)
|
|
67236
|
+
], MJScheduledJobType_.prototype, "MJ_ScheduledJobs_JobTypeIDArray", void 0);
|
|
67237
|
+
MJScheduledJobType_ = __decorate([
|
|
67238
|
+
ObjectType({ description: `Defines types of schedulable jobs and their plugin implementations. Each job type represents a different kind of work that can be scheduled (e.g., Agents, Actions, Reports).` })
|
|
67239
|
+
], MJScheduledJobType_);
|
|
67240
|
+
export { MJScheduledJobType_ };
|
|
67241
|
+
let CreateMJScheduledJobTypeInput = class CreateMJScheduledJobTypeInput {
|
|
67242
|
+
ID;
|
|
67243
|
+
Name;
|
|
67244
|
+
Description;
|
|
67245
|
+
DriverClass;
|
|
67246
|
+
DomainRunEntity;
|
|
67247
|
+
DomainRunEntityFKey;
|
|
67248
|
+
NotificationsAvailable;
|
|
67249
|
+
};
|
|
67250
|
+
__decorate([
|
|
67251
|
+
Field({ nullable: true }),
|
|
67252
|
+
__metadata("design:type", String)
|
|
67253
|
+
], CreateMJScheduledJobTypeInput.prototype, "ID", void 0);
|
|
67254
|
+
__decorate([
|
|
67255
|
+
Field({ nullable: true }),
|
|
67256
|
+
__metadata("design:type", String)
|
|
67257
|
+
], CreateMJScheduledJobTypeInput.prototype, "Name", void 0);
|
|
67258
|
+
__decorate([
|
|
67259
|
+
Field({ nullable: true }),
|
|
67260
|
+
__metadata("design:type", String)
|
|
67261
|
+
], CreateMJScheduledJobTypeInput.prototype, "Description", void 0);
|
|
67262
|
+
__decorate([
|
|
67263
|
+
Field({ nullable: true }),
|
|
67264
|
+
__metadata("design:type", String)
|
|
67265
|
+
], CreateMJScheduledJobTypeInput.prototype, "DriverClass", void 0);
|
|
67266
|
+
__decorate([
|
|
67267
|
+
Field({ nullable: true }),
|
|
67268
|
+
__metadata("design:type", String)
|
|
67269
|
+
], CreateMJScheduledJobTypeInput.prototype, "DomainRunEntity", void 0);
|
|
67270
|
+
__decorate([
|
|
67271
|
+
Field({ nullable: true }),
|
|
67272
|
+
__metadata("design:type", String)
|
|
67273
|
+
], CreateMJScheduledJobTypeInput.prototype, "DomainRunEntityFKey", void 0);
|
|
67274
|
+
__decorate([
|
|
67275
|
+
Field(() => Boolean, { nullable: true }),
|
|
67276
|
+
__metadata("design:type", Boolean)
|
|
67277
|
+
], CreateMJScheduledJobTypeInput.prototype, "NotificationsAvailable", void 0);
|
|
67278
|
+
CreateMJScheduledJobTypeInput = __decorate([
|
|
67279
|
+
InputType()
|
|
67280
|
+
], CreateMJScheduledJobTypeInput);
|
|
67281
|
+
export { CreateMJScheduledJobTypeInput };
|
|
67282
|
+
let UpdateMJScheduledJobTypeInput = class UpdateMJScheduledJobTypeInput {
|
|
67283
|
+
ID;
|
|
67284
|
+
Name;
|
|
67285
|
+
Description;
|
|
67286
|
+
DriverClass;
|
|
67287
|
+
DomainRunEntity;
|
|
67288
|
+
DomainRunEntityFKey;
|
|
67289
|
+
NotificationsAvailable;
|
|
67290
|
+
OldValues___;
|
|
67291
|
+
};
|
|
67292
|
+
__decorate([
|
|
67293
|
+
Field(),
|
|
67294
|
+
__metadata("design:type", String)
|
|
67295
|
+
], UpdateMJScheduledJobTypeInput.prototype, "ID", void 0);
|
|
67296
|
+
__decorate([
|
|
67297
|
+
Field({ nullable: true }),
|
|
67298
|
+
__metadata("design:type", String)
|
|
67299
|
+
], UpdateMJScheduledJobTypeInput.prototype, "Name", void 0);
|
|
67300
|
+
__decorate([
|
|
67301
|
+
Field({ nullable: true }),
|
|
67302
|
+
__metadata("design:type", String)
|
|
67303
|
+
], UpdateMJScheduledJobTypeInput.prototype, "Description", void 0);
|
|
67304
|
+
__decorate([
|
|
67305
|
+
Field({ nullable: true }),
|
|
67306
|
+
__metadata("design:type", String)
|
|
67307
|
+
], UpdateMJScheduledJobTypeInput.prototype, "DriverClass", void 0);
|
|
67308
|
+
__decorate([
|
|
67309
|
+
Field({ nullable: true }),
|
|
67310
|
+
__metadata("design:type", String)
|
|
67311
|
+
], UpdateMJScheduledJobTypeInput.prototype, "DomainRunEntity", void 0);
|
|
67312
|
+
__decorate([
|
|
67313
|
+
Field({ nullable: true }),
|
|
67314
|
+
__metadata("design:type", String)
|
|
67315
|
+
], UpdateMJScheduledJobTypeInput.prototype, "DomainRunEntityFKey", void 0);
|
|
67316
|
+
__decorate([
|
|
67317
|
+
Field(() => Boolean, { nullable: true }),
|
|
67318
|
+
__metadata("design:type", Boolean)
|
|
67319
|
+
], UpdateMJScheduledJobTypeInput.prototype, "NotificationsAvailable", void 0);
|
|
67320
|
+
__decorate([
|
|
67321
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
67322
|
+
__metadata("design:type", Array)
|
|
67323
|
+
], UpdateMJScheduledJobTypeInput.prototype, "OldValues___", void 0);
|
|
67324
|
+
UpdateMJScheduledJobTypeInput = __decorate([
|
|
67325
|
+
InputType()
|
|
67326
|
+
], UpdateMJScheduledJobTypeInput);
|
|
67327
|
+
export { UpdateMJScheduledJobTypeInput };
|
|
67328
|
+
let RunMJScheduledJobTypeViewResult = class RunMJScheduledJobTypeViewResult {
|
|
67329
|
+
Results;
|
|
67330
|
+
UserViewRunID;
|
|
67331
|
+
RowCount;
|
|
67332
|
+
TotalRowCount;
|
|
67333
|
+
ExecutionTime;
|
|
67334
|
+
ErrorMessage;
|
|
67335
|
+
Success;
|
|
67336
|
+
};
|
|
67337
|
+
__decorate([
|
|
67338
|
+
Field(() => [MJScheduledJobType_]),
|
|
67339
|
+
__metadata("design:type", Array)
|
|
67340
|
+
], RunMJScheduledJobTypeViewResult.prototype, "Results", void 0);
|
|
67341
|
+
__decorate([
|
|
67342
|
+
Field(() => String, { nullable: true }),
|
|
67343
|
+
__metadata("design:type", String)
|
|
67344
|
+
], RunMJScheduledJobTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
67345
|
+
__decorate([
|
|
67346
|
+
Field(() => Int, { nullable: true }),
|
|
67347
|
+
__metadata("design:type", Number)
|
|
67348
|
+
], RunMJScheduledJobTypeViewResult.prototype, "RowCount", void 0);
|
|
67349
|
+
__decorate([
|
|
67350
|
+
Field(() => Int, { nullable: true }),
|
|
67351
|
+
__metadata("design:type", Number)
|
|
67352
|
+
], RunMJScheduledJobTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
67353
|
+
__decorate([
|
|
67354
|
+
Field(() => Int, { nullable: true }),
|
|
67355
|
+
__metadata("design:type", Number)
|
|
67356
|
+
], RunMJScheduledJobTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
67357
|
+
__decorate([
|
|
67358
|
+
Field({ nullable: true }),
|
|
67359
|
+
__metadata("design:type", String)
|
|
67360
|
+
], RunMJScheduledJobTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
67361
|
+
__decorate([
|
|
67362
|
+
Field(() => Boolean, { nullable: false }),
|
|
67363
|
+
__metadata("design:type", Boolean)
|
|
67364
|
+
], RunMJScheduledJobTypeViewResult.prototype, "Success", void 0);
|
|
67365
|
+
RunMJScheduledJobTypeViewResult = __decorate([
|
|
67366
|
+
ObjectType()
|
|
67367
|
+
], RunMJScheduledJobTypeViewResult);
|
|
67368
|
+
export { RunMJScheduledJobTypeViewResult };
|
|
67369
|
+
let MJScheduledJobTypeResolver = class MJScheduledJobTypeResolver extends ResolverBase {
|
|
67370
|
+
async RunMJScheduledJobTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
67371
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67372
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
67373
|
+
}
|
|
67374
|
+
async RunMJScheduledJobTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
67375
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67376
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
67377
|
+
}
|
|
67378
|
+
async RunMJScheduledJobTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
67379
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67380
|
+
input.EntityName = 'MJ: Scheduled Job Types';
|
|
67381
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
67382
|
+
}
|
|
67383
|
+
async MJScheduledJobType(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
67384
|
+
this.CheckUserReadPermissions('MJ: Scheduled Job Types', userPayload);
|
|
67385
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67386
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
67387
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
67388
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
67389
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] : {});
|
|
67390
|
+
return result;
|
|
67391
|
+
}
|
|
67392
|
+
async MJ_ScheduledJobs_JobTypeIDArray(mjscheduledjobtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
67393
|
+
this.CheckUserReadPermissions('MJ: Scheduled Jobs', userPayload);
|
|
67394
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67395
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
67396
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobs] WHERE [JobTypeID]='${mjscheduledjobtype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
67397
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
67398
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows);
|
|
67399
|
+
return result;
|
|
67400
|
+
}
|
|
67401
|
+
async CreateMJScheduledJobType(input, { providers, userPayload }, pubSub) {
|
|
67402
|
+
const provider = GetReadWriteProvider(providers);
|
|
67403
|
+
return this.CreateRecord('MJ: Scheduled Job Types', input, provider, userPayload, pubSub);
|
|
67404
|
+
}
|
|
67405
|
+
async UpdateMJScheduledJobType(input, { providers, userPayload }, pubSub) {
|
|
67406
|
+
const provider = GetReadWriteProvider(providers);
|
|
67407
|
+
return this.UpdateRecord('MJ: Scheduled Job Types', input, provider, userPayload, pubSub);
|
|
67408
|
+
}
|
|
67409
|
+
async DeleteMJScheduledJobType(ID, options, { providers, userPayload }, pubSub) {
|
|
67410
|
+
const provider = GetReadWriteProvider(providers);
|
|
67411
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
67412
|
+
return this.DeleteRecord('MJ: Scheduled Job Types', key, options, provider, userPayload, pubSub);
|
|
67413
|
+
}
|
|
67414
|
+
};
|
|
67415
|
+
__decorate([
|
|
67416
|
+
Query(() => RunMJScheduledJobTypeViewResult),
|
|
67417
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
67418
|
+
__param(1, Ctx()),
|
|
67419
|
+
__param(2, PubSub()),
|
|
67420
|
+
__metadata("design:type", Function),
|
|
67421
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
67422
|
+
__metadata("design:returntype", Promise)
|
|
67423
|
+
], MJScheduledJobTypeResolver.prototype, "RunMJScheduledJobTypeViewByID", null);
|
|
67424
|
+
__decorate([
|
|
67425
|
+
Query(() => RunMJScheduledJobTypeViewResult),
|
|
67426
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
67427
|
+
__param(1, Ctx()),
|
|
67428
|
+
__param(2, PubSub()),
|
|
67429
|
+
__metadata("design:type", Function),
|
|
67430
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
67431
|
+
__metadata("design:returntype", Promise)
|
|
67432
|
+
], MJScheduledJobTypeResolver.prototype, "RunMJScheduledJobTypeViewByName", null);
|
|
67433
|
+
__decorate([
|
|
67434
|
+
Query(() => RunMJScheduledJobTypeViewResult),
|
|
67435
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
67436
|
+
__param(1, Ctx()),
|
|
67437
|
+
__param(2, PubSub()),
|
|
67438
|
+
__metadata("design:type", Function),
|
|
67439
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
67440
|
+
__metadata("design:returntype", Promise)
|
|
67441
|
+
], MJScheduledJobTypeResolver.prototype, "RunMJScheduledJobTypeDynamicView", null);
|
|
67442
|
+
__decorate([
|
|
67443
|
+
Query(() => MJScheduledJobType_, { nullable: true }),
|
|
67444
|
+
__param(0, Arg('ID', () => String)),
|
|
67445
|
+
__param(1, Ctx()),
|
|
67446
|
+
__param(2, PubSub()),
|
|
67447
|
+
__metadata("design:type", Function),
|
|
67448
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
67449
|
+
__metadata("design:returntype", Promise)
|
|
67450
|
+
], MJScheduledJobTypeResolver.prototype, "MJScheduledJobType", null);
|
|
67451
|
+
__decorate([
|
|
67452
|
+
FieldResolver(() => [MJScheduledJob_]),
|
|
67453
|
+
__param(0, Root()),
|
|
67454
|
+
__param(1, Ctx()),
|
|
67455
|
+
__param(2, PubSub()),
|
|
67456
|
+
__metadata("design:type", Function),
|
|
67457
|
+
__metadata("design:paramtypes", [MJScheduledJobType_, Object, PubSubEngine]),
|
|
67458
|
+
__metadata("design:returntype", Promise)
|
|
67459
|
+
], MJScheduledJobTypeResolver.prototype, "MJ_ScheduledJobs_JobTypeIDArray", null);
|
|
67460
|
+
__decorate([
|
|
67461
|
+
Mutation(() => MJScheduledJobType_),
|
|
67462
|
+
__param(0, Arg('input', () => CreateMJScheduledJobTypeInput)),
|
|
67463
|
+
__param(1, Ctx()),
|
|
67464
|
+
__param(2, PubSub()),
|
|
67465
|
+
__metadata("design:type", Function),
|
|
67466
|
+
__metadata("design:paramtypes", [CreateMJScheduledJobTypeInput, Object, PubSubEngine]),
|
|
67467
|
+
__metadata("design:returntype", Promise)
|
|
67468
|
+
], MJScheduledJobTypeResolver.prototype, "CreateMJScheduledJobType", null);
|
|
67469
|
+
__decorate([
|
|
67470
|
+
Mutation(() => MJScheduledJobType_),
|
|
67471
|
+
__param(0, Arg('input', () => UpdateMJScheduledJobTypeInput)),
|
|
67472
|
+
__param(1, Ctx()),
|
|
67473
|
+
__param(2, PubSub()),
|
|
67474
|
+
__metadata("design:type", Function),
|
|
67475
|
+
__metadata("design:paramtypes", [UpdateMJScheduledJobTypeInput, Object, PubSubEngine]),
|
|
67476
|
+
__metadata("design:returntype", Promise)
|
|
67477
|
+
], MJScheduledJobTypeResolver.prototype, "UpdateMJScheduledJobType", null);
|
|
67478
|
+
__decorate([
|
|
67479
|
+
Mutation(() => MJScheduledJobType_),
|
|
67480
|
+
__param(0, Arg('ID', () => String)),
|
|
67481
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
67482
|
+
__param(2, Ctx()),
|
|
67483
|
+
__param(3, PubSub()),
|
|
67484
|
+
__metadata("design:type", Function),
|
|
67485
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
67486
|
+
__metadata("design:returntype", Promise)
|
|
67487
|
+
], MJScheduledJobTypeResolver.prototype, "DeleteMJScheduledJobType", null);
|
|
67488
|
+
MJScheduledJobTypeResolver = __decorate([
|
|
67489
|
+
Resolver(MJScheduledJobType_)
|
|
67490
|
+
], MJScheduledJobTypeResolver);
|
|
67491
|
+
export { MJScheduledJobTypeResolver };
|
|
66100
67492
|
let MJDashboardUserPreference_ = class MJDashboardUserPreference_ {
|
|
66101
67493
|
ID;
|
|
66102
67494
|
UserID;
|
|
@@ -67093,6 +68485,9 @@ let MJAIAgentRelationship_ = class MJAIAgentRelationship_ {
|
|
|
67093
68485
|
Status;
|
|
67094
68486
|
_mj__CreatedAt;
|
|
67095
68487
|
_mj__UpdatedAt;
|
|
68488
|
+
SubAgentOutputMapping;
|
|
68489
|
+
SubAgentInputMapping;
|
|
68490
|
+
SubAgentContextPaths;
|
|
67096
68491
|
Agent;
|
|
67097
68492
|
SubAgent;
|
|
67098
68493
|
};
|
|
@@ -67126,6 +68521,18 @@ __decorate([
|
|
|
67126
68521
|
MaxLength(10),
|
|
67127
68522
|
__metadata("design:type", Date)
|
|
67128
68523
|
], MJAIAgentRelationship_.prototype, "_mj__UpdatedAt", void 0);
|
|
68524
|
+
__decorate([
|
|
68525
|
+
Field({ nullable: true, description: `JSON configuration mapping sub-agent result payload paths to parent agent payload paths. Enables controlled merging of sub-agent results. Format: {"subAgentPath": "parentPath", "*": "captureAllPath"}. If null, sub-agent results are not automatically merged into parent payload.` }),
|
|
68526
|
+
__metadata("design:type", String)
|
|
68527
|
+
], MJAIAgentRelationship_.prototype, "SubAgentOutputMapping", void 0);
|
|
68528
|
+
__decorate([
|
|
68529
|
+
Field({ nullable: true, description: `JSON mapping of parent payload paths to sub-agent initial payload paths. Enables structural data transfer from parent to related sub-agent. Format: {"parentPath": "subAgentPath", "parent.nested": "subAgent.field"}. Example: {"searchQuery": "query", "maxResults": "limit"}. If null, sub-agent starts with empty payload (default behavior).` }),
|
|
68530
|
+
__metadata("design:type", String)
|
|
68531
|
+
], MJAIAgentRelationship_.prototype, "SubAgentInputMapping", void 0);
|
|
68532
|
+
__decorate([
|
|
68533
|
+
Field({ nullable: true, description: `JSON array of parent payload paths to send as LLM context to related sub-agent. Sub-agent receives this data in a formatted context message before its task message. Format: ["path1", "path2.nested", "path3.*", "*"]. Use "*" to send entire parent payload. Example: ["userPreferences", "priorFindings.summary", "sources[*]"]. If null, no parent context is sent (default behavior).` }),
|
|
68534
|
+
__metadata("design:type", String)
|
|
68535
|
+
], MJAIAgentRelationship_.prototype, "SubAgentContextPaths", void 0);
|
|
67129
68536
|
__decorate([
|
|
67130
68537
|
Field({ nullable: true }),
|
|
67131
68538
|
MaxLength(510),
|
|
@@ -67145,6 +68552,9 @@ let CreateMJAIAgentRelationshipInput = class CreateMJAIAgentRelationshipInput {
|
|
|
67145
68552
|
AgentID;
|
|
67146
68553
|
SubAgentID;
|
|
67147
68554
|
Status;
|
|
68555
|
+
SubAgentOutputMapping;
|
|
68556
|
+
SubAgentInputMapping;
|
|
68557
|
+
SubAgentContextPaths;
|
|
67148
68558
|
};
|
|
67149
68559
|
__decorate([
|
|
67150
68560
|
Field({ nullable: true }),
|
|
@@ -67162,6 +68572,18 @@ __decorate([
|
|
|
67162
68572
|
Field({ nullable: true }),
|
|
67163
68573
|
__metadata("design:type", String)
|
|
67164
68574
|
], CreateMJAIAgentRelationshipInput.prototype, "Status", void 0);
|
|
68575
|
+
__decorate([
|
|
68576
|
+
Field({ nullable: true }),
|
|
68577
|
+
__metadata("design:type", String)
|
|
68578
|
+
], CreateMJAIAgentRelationshipInput.prototype, "SubAgentOutputMapping", void 0);
|
|
68579
|
+
__decorate([
|
|
68580
|
+
Field({ nullable: true }),
|
|
68581
|
+
__metadata("design:type", String)
|
|
68582
|
+
], CreateMJAIAgentRelationshipInput.prototype, "SubAgentInputMapping", void 0);
|
|
68583
|
+
__decorate([
|
|
68584
|
+
Field({ nullable: true }),
|
|
68585
|
+
__metadata("design:type", String)
|
|
68586
|
+
], CreateMJAIAgentRelationshipInput.prototype, "SubAgentContextPaths", void 0);
|
|
67165
68587
|
CreateMJAIAgentRelationshipInput = __decorate([
|
|
67166
68588
|
InputType()
|
|
67167
68589
|
], CreateMJAIAgentRelationshipInput);
|
|
@@ -67171,6 +68593,9 @@ let UpdateMJAIAgentRelationshipInput = class UpdateMJAIAgentRelationshipInput {
|
|
|
67171
68593
|
AgentID;
|
|
67172
68594
|
SubAgentID;
|
|
67173
68595
|
Status;
|
|
68596
|
+
SubAgentOutputMapping;
|
|
68597
|
+
SubAgentInputMapping;
|
|
68598
|
+
SubAgentContextPaths;
|
|
67174
68599
|
OldValues___;
|
|
67175
68600
|
};
|
|
67176
68601
|
__decorate([
|
|
@@ -67189,6 +68614,18 @@ __decorate([
|
|
|
67189
68614
|
Field({ nullable: true }),
|
|
67190
68615
|
__metadata("design:type", String)
|
|
67191
68616
|
], UpdateMJAIAgentRelationshipInput.prototype, "Status", void 0);
|
|
68617
|
+
__decorate([
|
|
68618
|
+
Field({ nullable: true }),
|
|
68619
|
+
__metadata("design:type", String)
|
|
68620
|
+
], UpdateMJAIAgentRelationshipInput.prototype, "SubAgentOutputMapping", void 0);
|
|
68621
|
+
__decorate([
|
|
68622
|
+
Field({ nullable: true }),
|
|
68623
|
+
__metadata("design:type", String)
|
|
68624
|
+
], UpdateMJAIAgentRelationshipInput.prototype, "SubAgentInputMapping", void 0);
|
|
68625
|
+
__decorate([
|
|
68626
|
+
Field({ nullable: true }),
|
|
68627
|
+
__metadata("design:type", String)
|
|
68628
|
+
], UpdateMJAIAgentRelationshipInput.prototype, "SubAgentContextPaths", void 0);
|
|
67192
68629
|
__decorate([
|
|
67193
68630
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
67194
68631
|
__metadata("design:type", Array)
|
|
@@ -71186,6 +72623,635 @@ MJGeneratedCodeResolver = __decorate([
|
|
|
71186
72623
|
Resolver(MJGeneratedCode_)
|
|
71187
72624
|
], MJGeneratedCodeResolver);
|
|
71188
72625
|
export { MJGeneratedCodeResolver };
|
|
72626
|
+
let MJScheduledJob_ = class MJScheduledJob_ {
|
|
72627
|
+
ID;
|
|
72628
|
+
JobTypeID;
|
|
72629
|
+
Name;
|
|
72630
|
+
Description;
|
|
72631
|
+
CronExpression;
|
|
72632
|
+
Timezone;
|
|
72633
|
+
StartAt;
|
|
72634
|
+
EndAt;
|
|
72635
|
+
Status;
|
|
72636
|
+
Configuration;
|
|
72637
|
+
OwnerUserID;
|
|
72638
|
+
LastRunAt;
|
|
72639
|
+
NextRunAt;
|
|
72640
|
+
RunCount;
|
|
72641
|
+
SuccessCount;
|
|
72642
|
+
FailureCount;
|
|
72643
|
+
NotifyOnSuccess;
|
|
72644
|
+
NotifyOnFailure;
|
|
72645
|
+
NotifyUserID;
|
|
72646
|
+
NotifyViaEmail;
|
|
72647
|
+
NotifyViaInApp;
|
|
72648
|
+
LockToken;
|
|
72649
|
+
LockedAt;
|
|
72650
|
+
LockedByInstance;
|
|
72651
|
+
ExpectedCompletionAt;
|
|
72652
|
+
ConcurrencyMode;
|
|
72653
|
+
_mj__CreatedAt;
|
|
72654
|
+
_mj__UpdatedAt;
|
|
72655
|
+
JobType;
|
|
72656
|
+
OwnerUser;
|
|
72657
|
+
NotifyUser;
|
|
72658
|
+
MJ_ScheduledJobRuns_ScheduledJobIDArray;
|
|
72659
|
+
};
|
|
72660
|
+
__decorate([
|
|
72661
|
+
Field(),
|
|
72662
|
+
MaxLength(16),
|
|
72663
|
+
__metadata("design:type", String)
|
|
72664
|
+
], MJScheduledJob_.prototype, "ID", void 0);
|
|
72665
|
+
__decorate([
|
|
72666
|
+
Field(),
|
|
72667
|
+
MaxLength(16),
|
|
72668
|
+
__metadata("design:type", String)
|
|
72669
|
+
], MJScheduledJob_.prototype, "JobTypeID", void 0);
|
|
72670
|
+
__decorate([
|
|
72671
|
+
Field({ description: `Human-readable name for this scheduled job. Should clearly identify what the job does.` }),
|
|
72672
|
+
MaxLength(400),
|
|
72673
|
+
__metadata("design:type", String)
|
|
72674
|
+
], MJScheduledJob_.prototype, "Name", void 0);
|
|
72675
|
+
__decorate([
|
|
72676
|
+
Field({ nullable: true, description: `Detailed description of the job's purpose, what it does, and any important notes about its execution.` }),
|
|
72677
|
+
__metadata("design:type", String)
|
|
72678
|
+
], MJScheduledJob_.prototype, "Description", void 0);
|
|
72679
|
+
__decorate([
|
|
72680
|
+
Field({ description: `Cron expression defining when the job should execute (e.g., "0 30 9 * * MON-FRI" for weekdays at 9:30 AM). Uses standard cron syntax with seconds precision.` }),
|
|
72681
|
+
MaxLength(240),
|
|
72682
|
+
__metadata("design:type", String)
|
|
72683
|
+
], MJScheduledJob_.prototype, "CronExpression", void 0);
|
|
72684
|
+
__decorate([
|
|
72685
|
+
Field({ description: `IANA timezone identifier for interpreting the cron expression (e.g., "America/Chicago", "UTC"). Ensures consistent scheduling across different server locations.` }),
|
|
72686
|
+
MaxLength(128),
|
|
72687
|
+
__metadata("design:type", String)
|
|
72688
|
+
], MJScheduledJob_.prototype, "Timezone", void 0);
|
|
72689
|
+
__decorate([
|
|
72690
|
+
Field({ nullable: true, description: `Optional start date/time for when this schedule becomes active. Job will not execute before this time. NULL means active immediately upon creation.` }),
|
|
72691
|
+
MaxLength(10),
|
|
72692
|
+
__metadata("design:type", Date)
|
|
72693
|
+
], MJScheduledJob_.prototype, "StartAt", void 0);
|
|
72694
|
+
__decorate([
|
|
72695
|
+
Field({ nullable: true, description: `Optional end date/time for when this schedule expires. Job will not execute after this time. NULL means no expiration.` }),
|
|
72696
|
+
MaxLength(10),
|
|
72697
|
+
__metadata("design:type", Date)
|
|
72698
|
+
], MJScheduledJob_.prototype, "EndAt", void 0);
|
|
72699
|
+
__decorate([
|
|
72700
|
+
Field({ description: `Current status of the schedule. Pending=created but not yet active, Active=currently running on schedule, Paused=temporarily stopped, Disabled=manually disabled, Expired=past EndAt date.` }),
|
|
72701
|
+
MaxLength(40),
|
|
72702
|
+
__metadata("design:type", String)
|
|
72703
|
+
], MJScheduledJob_.prototype, "Status", void 0);
|
|
72704
|
+
__decorate([
|
|
72705
|
+
Field({ nullable: true, description: `Job-type specific configuration stored as JSON. Schema is defined by the ScheduledJobType plugin. For Agents: includes AgentID, StartingPayload, InitialMessage, etc. For Actions: includes ActionID and parameter mappings.` }),
|
|
72706
|
+
__metadata("design:type", String)
|
|
72707
|
+
], MJScheduledJob_.prototype, "Configuration", void 0);
|
|
72708
|
+
__decorate([
|
|
72709
|
+
Field({ nullable: true, description: `User who owns this schedule. Used as the execution context if no specific user is configured in the job-specific configuration.` }),
|
|
72710
|
+
MaxLength(16),
|
|
72711
|
+
__metadata("design:type", String)
|
|
72712
|
+
], MJScheduledJob_.prototype, "OwnerUserID", void 0);
|
|
72713
|
+
__decorate([
|
|
72714
|
+
Field({ nullable: true, description: `Timestamp of the most recent execution. Updated after each run. Used for monitoring and dashboard displays.` }),
|
|
72715
|
+
MaxLength(10),
|
|
72716
|
+
__metadata("design:type", Date)
|
|
72717
|
+
], MJScheduledJob_.prototype, "LastRunAt", void 0);
|
|
72718
|
+
__decorate([
|
|
72719
|
+
Field({ nullable: true, description: `Calculated timestamp of when this job should next execute based on the cron expression. Updated after each run. Used by scheduler to determine which jobs are due.` }),
|
|
72720
|
+
MaxLength(10),
|
|
72721
|
+
__metadata("design:type", Date)
|
|
72722
|
+
], MJScheduledJob_.prototype, "NextRunAt", void 0);
|
|
72723
|
+
__decorate([
|
|
72724
|
+
Field(() => Int, { description: `Total number of times this schedule has been executed, including both successful and failed runs.` }),
|
|
72725
|
+
__metadata("design:type", Number)
|
|
72726
|
+
], MJScheduledJob_.prototype, "RunCount", void 0);
|
|
72727
|
+
__decorate([
|
|
72728
|
+
Field(() => Int, { description: `Number of times this schedule has executed successfully (Success = true in ScheduledJobRun).` }),
|
|
72729
|
+
__metadata("design:type", Number)
|
|
72730
|
+
], MJScheduledJob_.prototype, "SuccessCount", void 0);
|
|
72731
|
+
__decorate([
|
|
72732
|
+
Field(() => Int, { description: `Number of times this schedule has executed but failed (Success = false in ScheduledJobRun).` }),
|
|
72733
|
+
__metadata("design:type", Number)
|
|
72734
|
+
], MJScheduledJob_.prototype, "FailureCount", void 0);
|
|
72735
|
+
__decorate([
|
|
72736
|
+
Field(() => Boolean, { description: `Whether to send notifications when the job completes successfully.` }),
|
|
72737
|
+
__metadata("design:type", Boolean)
|
|
72738
|
+
], MJScheduledJob_.prototype, "NotifyOnSuccess", void 0);
|
|
72739
|
+
__decorate([
|
|
72740
|
+
Field(() => Boolean, { description: `Whether to send notifications when the job fails. Defaults to true for alerting on failures.` }),
|
|
72741
|
+
__metadata("design:type", Boolean)
|
|
72742
|
+
], MJScheduledJob_.prototype, "NotifyOnFailure", void 0);
|
|
72743
|
+
__decorate([
|
|
72744
|
+
Field({ nullable: true, description: `User to notify about job execution results. If NULL and notifications are enabled, falls back to OwnerUserID.` }),
|
|
72745
|
+
MaxLength(16),
|
|
72746
|
+
__metadata("design:type", String)
|
|
72747
|
+
], MJScheduledJob_.prototype, "NotifyUserID", void 0);
|
|
72748
|
+
__decorate([
|
|
72749
|
+
Field(() => Boolean, { description: `Whether to send email notifications. Requires NotifyOnSuccess or NotifyOnFailure to also be enabled.` }),
|
|
72750
|
+
__metadata("design:type", Boolean)
|
|
72751
|
+
], MJScheduledJob_.prototype, "NotifyViaEmail", void 0);
|
|
72752
|
+
__decorate([
|
|
72753
|
+
Field(() => Boolean, { description: `Whether to send in-app notifications. Requires NotifyOnSuccess or NotifyOnFailure to also be enabled. Defaults to true.` }),
|
|
72754
|
+
__metadata("design:type", Boolean)
|
|
72755
|
+
], MJScheduledJob_.prototype, "NotifyViaInApp", void 0);
|
|
72756
|
+
__decorate([
|
|
72757
|
+
Field({ nullable: true, description: `Unique token used for distributed locking across multiple server instances. Set when a server claims the job for execution. Prevents duplicate executions in multi-server environments.` }),
|
|
72758
|
+
MaxLength(16),
|
|
72759
|
+
__metadata("design:type", String)
|
|
72760
|
+
], MJScheduledJob_.prototype, "LockToken", void 0);
|
|
72761
|
+
__decorate([
|
|
72762
|
+
Field({ nullable: true, description: `Timestamp when the lock was acquired. Used with ExpectedCompletionAt to detect stale locks from crashed server instances.` }),
|
|
72763
|
+
MaxLength(10),
|
|
72764
|
+
__metadata("design:type", Date)
|
|
72765
|
+
], MJScheduledJob_.prototype, "LockedAt", void 0);
|
|
72766
|
+
__decorate([
|
|
72767
|
+
Field({ nullable: true, description: `Identifier of the server instance that currently holds the lock (e.g., "hostname-12345"). Used for troubleshooting and monitoring which server is executing which job.` }),
|
|
72768
|
+
MaxLength(510),
|
|
72769
|
+
__metadata("design:type", String)
|
|
72770
|
+
], MJScheduledJob_.prototype, "LockedByInstance", void 0);
|
|
72771
|
+
__decorate([
|
|
72772
|
+
Field({ nullable: true, description: `Expected completion time for the current execution. If current time exceeds this and lock still exists, the lock is considered stale and can be claimed by another instance. Handles crashed server cleanup.` }),
|
|
72773
|
+
MaxLength(10),
|
|
72774
|
+
__metadata("design:type", Date)
|
|
72775
|
+
], MJScheduledJob_.prototype, "ExpectedCompletionAt", void 0);
|
|
72776
|
+
__decorate([
|
|
72777
|
+
Field({ description: `Controls behavior when a new execution is scheduled while a previous execution is still running. Skip=do not start new execution (default), Queue=wait for current to finish then execute, Concurrent=allow multiple simultaneous executions.` }),
|
|
72778
|
+
MaxLength(40),
|
|
72779
|
+
__metadata("design:type", String)
|
|
72780
|
+
], MJScheduledJob_.prototype, "ConcurrencyMode", void 0);
|
|
72781
|
+
__decorate([
|
|
72782
|
+
Field(),
|
|
72783
|
+
MaxLength(10),
|
|
72784
|
+
__metadata("design:type", Date)
|
|
72785
|
+
], MJScheduledJob_.prototype, "_mj__CreatedAt", void 0);
|
|
72786
|
+
__decorate([
|
|
72787
|
+
Field(),
|
|
72788
|
+
MaxLength(10),
|
|
72789
|
+
__metadata("design:type", Date)
|
|
72790
|
+
], MJScheduledJob_.prototype, "_mj__UpdatedAt", void 0);
|
|
72791
|
+
__decorate([
|
|
72792
|
+
Field(),
|
|
72793
|
+
MaxLength(200),
|
|
72794
|
+
__metadata("design:type", String)
|
|
72795
|
+
], MJScheduledJob_.prototype, "JobType", void 0);
|
|
72796
|
+
__decorate([
|
|
72797
|
+
Field({ nullable: true }),
|
|
72798
|
+
MaxLength(200),
|
|
72799
|
+
__metadata("design:type", String)
|
|
72800
|
+
], MJScheduledJob_.prototype, "OwnerUser", void 0);
|
|
72801
|
+
__decorate([
|
|
72802
|
+
Field({ nullable: true }),
|
|
72803
|
+
MaxLength(200),
|
|
72804
|
+
__metadata("design:type", String)
|
|
72805
|
+
], MJScheduledJob_.prototype, "NotifyUser", void 0);
|
|
72806
|
+
__decorate([
|
|
72807
|
+
Field(() => [MJScheduledJobRun_]),
|
|
72808
|
+
__metadata("design:type", Array)
|
|
72809
|
+
], MJScheduledJob_.prototype, "MJ_ScheduledJobRuns_ScheduledJobIDArray", void 0);
|
|
72810
|
+
MJScheduledJob_ = __decorate([
|
|
72811
|
+
ObjectType({ description: `Defines schedules for automated job execution across all schedulable types. Each record represents a scheduled job with its cron expression, configuration, and execution tracking.` })
|
|
72812
|
+
], MJScheduledJob_);
|
|
72813
|
+
export { MJScheduledJob_ };
|
|
72814
|
+
let CreateMJScheduledJobInput = class CreateMJScheduledJobInput {
|
|
72815
|
+
ID;
|
|
72816
|
+
JobTypeID;
|
|
72817
|
+
Name;
|
|
72818
|
+
Description;
|
|
72819
|
+
CronExpression;
|
|
72820
|
+
Timezone;
|
|
72821
|
+
StartAt;
|
|
72822
|
+
EndAt;
|
|
72823
|
+
Status;
|
|
72824
|
+
Configuration;
|
|
72825
|
+
OwnerUserID;
|
|
72826
|
+
LastRunAt;
|
|
72827
|
+
NextRunAt;
|
|
72828
|
+
RunCount;
|
|
72829
|
+
SuccessCount;
|
|
72830
|
+
FailureCount;
|
|
72831
|
+
NotifyOnSuccess;
|
|
72832
|
+
NotifyOnFailure;
|
|
72833
|
+
NotifyUserID;
|
|
72834
|
+
NotifyViaEmail;
|
|
72835
|
+
NotifyViaInApp;
|
|
72836
|
+
LockToken;
|
|
72837
|
+
LockedAt;
|
|
72838
|
+
LockedByInstance;
|
|
72839
|
+
ExpectedCompletionAt;
|
|
72840
|
+
ConcurrencyMode;
|
|
72841
|
+
};
|
|
72842
|
+
__decorate([
|
|
72843
|
+
Field({ nullable: true }),
|
|
72844
|
+
__metadata("design:type", String)
|
|
72845
|
+
], CreateMJScheduledJobInput.prototype, "ID", void 0);
|
|
72846
|
+
__decorate([
|
|
72847
|
+
Field({ nullable: true }),
|
|
72848
|
+
__metadata("design:type", String)
|
|
72849
|
+
], CreateMJScheduledJobInput.prototype, "JobTypeID", void 0);
|
|
72850
|
+
__decorate([
|
|
72851
|
+
Field({ nullable: true }),
|
|
72852
|
+
__metadata("design:type", String)
|
|
72853
|
+
], CreateMJScheduledJobInput.prototype, "Name", void 0);
|
|
72854
|
+
__decorate([
|
|
72855
|
+
Field({ nullable: true }),
|
|
72856
|
+
__metadata("design:type", String)
|
|
72857
|
+
], CreateMJScheduledJobInput.prototype, "Description", void 0);
|
|
72858
|
+
__decorate([
|
|
72859
|
+
Field({ nullable: true }),
|
|
72860
|
+
__metadata("design:type", String)
|
|
72861
|
+
], CreateMJScheduledJobInput.prototype, "CronExpression", void 0);
|
|
72862
|
+
__decorate([
|
|
72863
|
+
Field({ nullable: true }),
|
|
72864
|
+
__metadata("design:type", String)
|
|
72865
|
+
], CreateMJScheduledJobInput.prototype, "Timezone", void 0);
|
|
72866
|
+
__decorate([
|
|
72867
|
+
Field({ nullable: true }),
|
|
72868
|
+
__metadata("design:type", Date)
|
|
72869
|
+
], CreateMJScheduledJobInput.prototype, "StartAt", void 0);
|
|
72870
|
+
__decorate([
|
|
72871
|
+
Field({ nullable: true }),
|
|
72872
|
+
__metadata("design:type", Date)
|
|
72873
|
+
], CreateMJScheduledJobInput.prototype, "EndAt", void 0);
|
|
72874
|
+
__decorate([
|
|
72875
|
+
Field({ nullable: true }),
|
|
72876
|
+
__metadata("design:type", String)
|
|
72877
|
+
], CreateMJScheduledJobInput.prototype, "Status", void 0);
|
|
72878
|
+
__decorate([
|
|
72879
|
+
Field({ nullable: true }),
|
|
72880
|
+
__metadata("design:type", String)
|
|
72881
|
+
], CreateMJScheduledJobInput.prototype, "Configuration", void 0);
|
|
72882
|
+
__decorate([
|
|
72883
|
+
Field({ nullable: true }),
|
|
72884
|
+
__metadata("design:type", String)
|
|
72885
|
+
], CreateMJScheduledJobInput.prototype, "OwnerUserID", void 0);
|
|
72886
|
+
__decorate([
|
|
72887
|
+
Field({ nullable: true }),
|
|
72888
|
+
__metadata("design:type", Date)
|
|
72889
|
+
], CreateMJScheduledJobInput.prototype, "LastRunAt", void 0);
|
|
72890
|
+
__decorate([
|
|
72891
|
+
Field({ nullable: true }),
|
|
72892
|
+
__metadata("design:type", Date)
|
|
72893
|
+
], CreateMJScheduledJobInput.prototype, "NextRunAt", void 0);
|
|
72894
|
+
__decorate([
|
|
72895
|
+
Field(() => Int, { nullable: true }),
|
|
72896
|
+
__metadata("design:type", Number)
|
|
72897
|
+
], CreateMJScheduledJobInput.prototype, "RunCount", void 0);
|
|
72898
|
+
__decorate([
|
|
72899
|
+
Field(() => Int, { nullable: true }),
|
|
72900
|
+
__metadata("design:type", Number)
|
|
72901
|
+
], CreateMJScheduledJobInput.prototype, "SuccessCount", void 0);
|
|
72902
|
+
__decorate([
|
|
72903
|
+
Field(() => Int, { nullable: true }),
|
|
72904
|
+
__metadata("design:type", Number)
|
|
72905
|
+
], CreateMJScheduledJobInput.prototype, "FailureCount", void 0);
|
|
72906
|
+
__decorate([
|
|
72907
|
+
Field(() => Boolean, { nullable: true }),
|
|
72908
|
+
__metadata("design:type", Boolean)
|
|
72909
|
+
], CreateMJScheduledJobInput.prototype, "NotifyOnSuccess", void 0);
|
|
72910
|
+
__decorate([
|
|
72911
|
+
Field(() => Boolean, { nullable: true }),
|
|
72912
|
+
__metadata("design:type", Boolean)
|
|
72913
|
+
], CreateMJScheduledJobInput.prototype, "NotifyOnFailure", void 0);
|
|
72914
|
+
__decorate([
|
|
72915
|
+
Field({ nullable: true }),
|
|
72916
|
+
__metadata("design:type", String)
|
|
72917
|
+
], CreateMJScheduledJobInput.prototype, "NotifyUserID", void 0);
|
|
72918
|
+
__decorate([
|
|
72919
|
+
Field(() => Boolean, { nullable: true }),
|
|
72920
|
+
__metadata("design:type", Boolean)
|
|
72921
|
+
], CreateMJScheduledJobInput.prototype, "NotifyViaEmail", void 0);
|
|
72922
|
+
__decorate([
|
|
72923
|
+
Field(() => Boolean, { nullable: true }),
|
|
72924
|
+
__metadata("design:type", Boolean)
|
|
72925
|
+
], CreateMJScheduledJobInput.prototype, "NotifyViaInApp", void 0);
|
|
72926
|
+
__decorate([
|
|
72927
|
+
Field({ nullable: true }),
|
|
72928
|
+
__metadata("design:type", String)
|
|
72929
|
+
], CreateMJScheduledJobInput.prototype, "LockToken", void 0);
|
|
72930
|
+
__decorate([
|
|
72931
|
+
Field({ nullable: true }),
|
|
72932
|
+
__metadata("design:type", Date)
|
|
72933
|
+
], CreateMJScheduledJobInput.prototype, "LockedAt", void 0);
|
|
72934
|
+
__decorate([
|
|
72935
|
+
Field({ nullable: true }),
|
|
72936
|
+
__metadata("design:type", String)
|
|
72937
|
+
], CreateMJScheduledJobInput.prototype, "LockedByInstance", void 0);
|
|
72938
|
+
__decorate([
|
|
72939
|
+
Field({ nullable: true }),
|
|
72940
|
+
__metadata("design:type", Date)
|
|
72941
|
+
], CreateMJScheduledJobInput.prototype, "ExpectedCompletionAt", void 0);
|
|
72942
|
+
__decorate([
|
|
72943
|
+
Field({ nullable: true }),
|
|
72944
|
+
__metadata("design:type", String)
|
|
72945
|
+
], CreateMJScheduledJobInput.prototype, "ConcurrencyMode", void 0);
|
|
72946
|
+
CreateMJScheduledJobInput = __decorate([
|
|
72947
|
+
InputType()
|
|
72948
|
+
], CreateMJScheduledJobInput);
|
|
72949
|
+
export { CreateMJScheduledJobInput };
|
|
72950
|
+
let UpdateMJScheduledJobInput = class UpdateMJScheduledJobInput {
|
|
72951
|
+
ID;
|
|
72952
|
+
JobTypeID;
|
|
72953
|
+
Name;
|
|
72954
|
+
Description;
|
|
72955
|
+
CronExpression;
|
|
72956
|
+
Timezone;
|
|
72957
|
+
StartAt;
|
|
72958
|
+
EndAt;
|
|
72959
|
+
Status;
|
|
72960
|
+
Configuration;
|
|
72961
|
+
OwnerUserID;
|
|
72962
|
+
LastRunAt;
|
|
72963
|
+
NextRunAt;
|
|
72964
|
+
RunCount;
|
|
72965
|
+
SuccessCount;
|
|
72966
|
+
FailureCount;
|
|
72967
|
+
NotifyOnSuccess;
|
|
72968
|
+
NotifyOnFailure;
|
|
72969
|
+
NotifyUserID;
|
|
72970
|
+
NotifyViaEmail;
|
|
72971
|
+
NotifyViaInApp;
|
|
72972
|
+
LockToken;
|
|
72973
|
+
LockedAt;
|
|
72974
|
+
LockedByInstance;
|
|
72975
|
+
ExpectedCompletionAt;
|
|
72976
|
+
ConcurrencyMode;
|
|
72977
|
+
OldValues___;
|
|
72978
|
+
};
|
|
72979
|
+
__decorate([
|
|
72980
|
+
Field(),
|
|
72981
|
+
__metadata("design:type", String)
|
|
72982
|
+
], UpdateMJScheduledJobInput.prototype, "ID", void 0);
|
|
72983
|
+
__decorate([
|
|
72984
|
+
Field({ nullable: true }),
|
|
72985
|
+
__metadata("design:type", String)
|
|
72986
|
+
], UpdateMJScheduledJobInput.prototype, "JobTypeID", void 0);
|
|
72987
|
+
__decorate([
|
|
72988
|
+
Field({ nullable: true }),
|
|
72989
|
+
__metadata("design:type", String)
|
|
72990
|
+
], UpdateMJScheduledJobInput.prototype, "Name", void 0);
|
|
72991
|
+
__decorate([
|
|
72992
|
+
Field({ nullable: true }),
|
|
72993
|
+
__metadata("design:type", String)
|
|
72994
|
+
], UpdateMJScheduledJobInput.prototype, "Description", void 0);
|
|
72995
|
+
__decorate([
|
|
72996
|
+
Field({ nullable: true }),
|
|
72997
|
+
__metadata("design:type", String)
|
|
72998
|
+
], UpdateMJScheduledJobInput.prototype, "CronExpression", void 0);
|
|
72999
|
+
__decorate([
|
|
73000
|
+
Field({ nullable: true }),
|
|
73001
|
+
__metadata("design:type", String)
|
|
73002
|
+
], UpdateMJScheduledJobInput.prototype, "Timezone", void 0);
|
|
73003
|
+
__decorate([
|
|
73004
|
+
Field({ nullable: true }),
|
|
73005
|
+
__metadata("design:type", Date)
|
|
73006
|
+
], UpdateMJScheduledJobInput.prototype, "StartAt", void 0);
|
|
73007
|
+
__decorate([
|
|
73008
|
+
Field({ nullable: true }),
|
|
73009
|
+
__metadata("design:type", Date)
|
|
73010
|
+
], UpdateMJScheduledJobInput.prototype, "EndAt", void 0);
|
|
73011
|
+
__decorate([
|
|
73012
|
+
Field({ nullable: true }),
|
|
73013
|
+
__metadata("design:type", String)
|
|
73014
|
+
], UpdateMJScheduledJobInput.prototype, "Status", void 0);
|
|
73015
|
+
__decorate([
|
|
73016
|
+
Field({ nullable: true }),
|
|
73017
|
+
__metadata("design:type", String)
|
|
73018
|
+
], UpdateMJScheduledJobInput.prototype, "Configuration", void 0);
|
|
73019
|
+
__decorate([
|
|
73020
|
+
Field({ nullable: true }),
|
|
73021
|
+
__metadata("design:type", String)
|
|
73022
|
+
], UpdateMJScheduledJobInput.prototype, "OwnerUserID", void 0);
|
|
73023
|
+
__decorate([
|
|
73024
|
+
Field({ nullable: true }),
|
|
73025
|
+
__metadata("design:type", Date)
|
|
73026
|
+
], UpdateMJScheduledJobInput.prototype, "LastRunAt", void 0);
|
|
73027
|
+
__decorate([
|
|
73028
|
+
Field({ nullable: true }),
|
|
73029
|
+
__metadata("design:type", Date)
|
|
73030
|
+
], UpdateMJScheduledJobInput.prototype, "NextRunAt", void 0);
|
|
73031
|
+
__decorate([
|
|
73032
|
+
Field(() => Int, { nullable: true }),
|
|
73033
|
+
__metadata("design:type", Number)
|
|
73034
|
+
], UpdateMJScheduledJobInput.prototype, "RunCount", void 0);
|
|
73035
|
+
__decorate([
|
|
73036
|
+
Field(() => Int, { nullable: true }),
|
|
73037
|
+
__metadata("design:type", Number)
|
|
73038
|
+
], UpdateMJScheduledJobInput.prototype, "SuccessCount", void 0);
|
|
73039
|
+
__decorate([
|
|
73040
|
+
Field(() => Int, { nullable: true }),
|
|
73041
|
+
__metadata("design:type", Number)
|
|
73042
|
+
], UpdateMJScheduledJobInput.prototype, "FailureCount", void 0);
|
|
73043
|
+
__decorate([
|
|
73044
|
+
Field(() => Boolean, { nullable: true }),
|
|
73045
|
+
__metadata("design:type", Boolean)
|
|
73046
|
+
], UpdateMJScheduledJobInput.prototype, "NotifyOnSuccess", void 0);
|
|
73047
|
+
__decorate([
|
|
73048
|
+
Field(() => Boolean, { nullable: true }),
|
|
73049
|
+
__metadata("design:type", Boolean)
|
|
73050
|
+
], UpdateMJScheduledJobInput.prototype, "NotifyOnFailure", void 0);
|
|
73051
|
+
__decorate([
|
|
73052
|
+
Field({ nullable: true }),
|
|
73053
|
+
__metadata("design:type", String)
|
|
73054
|
+
], UpdateMJScheduledJobInput.prototype, "NotifyUserID", void 0);
|
|
73055
|
+
__decorate([
|
|
73056
|
+
Field(() => Boolean, { nullable: true }),
|
|
73057
|
+
__metadata("design:type", Boolean)
|
|
73058
|
+
], UpdateMJScheduledJobInput.prototype, "NotifyViaEmail", void 0);
|
|
73059
|
+
__decorate([
|
|
73060
|
+
Field(() => Boolean, { nullable: true }),
|
|
73061
|
+
__metadata("design:type", Boolean)
|
|
73062
|
+
], UpdateMJScheduledJobInput.prototype, "NotifyViaInApp", void 0);
|
|
73063
|
+
__decorate([
|
|
73064
|
+
Field({ nullable: true }),
|
|
73065
|
+
__metadata("design:type", String)
|
|
73066
|
+
], UpdateMJScheduledJobInput.prototype, "LockToken", void 0);
|
|
73067
|
+
__decorate([
|
|
73068
|
+
Field({ nullable: true }),
|
|
73069
|
+
__metadata("design:type", Date)
|
|
73070
|
+
], UpdateMJScheduledJobInput.prototype, "LockedAt", void 0);
|
|
73071
|
+
__decorate([
|
|
73072
|
+
Field({ nullable: true }),
|
|
73073
|
+
__metadata("design:type", String)
|
|
73074
|
+
], UpdateMJScheduledJobInput.prototype, "LockedByInstance", void 0);
|
|
73075
|
+
__decorate([
|
|
73076
|
+
Field({ nullable: true }),
|
|
73077
|
+
__metadata("design:type", Date)
|
|
73078
|
+
], UpdateMJScheduledJobInput.prototype, "ExpectedCompletionAt", void 0);
|
|
73079
|
+
__decorate([
|
|
73080
|
+
Field({ nullable: true }),
|
|
73081
|
+
__metadata("design:type", String)
|
|
73082
|
+
], UpdateMJScheduledJobInput.prototype, "ConcurrencyMode", void 0);
|
|
73083
|
+
__decorate([
|
|
73084
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
73085
|
+
__metadata("design:type", Array)
|
|
73086
|
+
], UpdateMJScheduledJobInput.prototype, "OldValues___", void 0);
|
|
73087
|
+
UpdateMJScheduledJobInput = __decorate([
|
|
73088
|
+
InputType()
|
|
73089
|
+
], UpdateMJScheduledJobInput);
|
|
73090
|
+
export { UpdateMJScheduledJobInput };
|
|
73091
|
+
let RunMJScheduledJobViewResult = class RunMJScheduledJobViewResult {
|
|
73092
|
+
Results;
|
|
73093
|
+
UserViewRunID;
|
|
73094
|
+
RowCount;
|
|
73095
|
+
TotalRowCount;
|
|
73096
|
+
ExecutionTime;
|
|
73097
|
+
ErrorMessage;
|
|
73098
|
+
Success;
|
|
73099
|
+
};
|
|
73100
|
+
__decorate([
|
|
73101
|
+
Field(() => [MJScheduledJob_]),
|
|
73102
|
+
__metadata("design:type", Array)
|
|
73103
|
+
], RunMJScheduledJobViewResult.prototype, "Results", void 0);
|
|
73104
|
+
__decorate([
|
|
73105
|
+
Field(() => String, { nullable: true }),
|
|
73106
|
+
__metadata("design:type", String)
|
|
73107
|
+
], RunMJScheduledJobViewResult.prototype, "UserViewRunID", void 0);
|
|
73108
|
+
__decorate([
|
|
73109
|
+
Field(() => Int, { nullable: true }),
|
|
73110
|
+
__metadata("design:type", Number)
|
|
73111
|
+
], RunMJScheduledJobViewResult.prototype, "RowCount", void 0);
|
|
73112
|
+
__decorate([
|
|
73113
|
+
Field(() => Int, { nullable: true }),
|
|
73114
|
+
__metadata("design:type", Number)
|
|
73115
|
+
], RunMJScheduledJobViewResult.prototype, "TotalRowCount", void 0);
|
|
73116
|
+
__decorate([
|
|
73117
|
+
Field(() => Int, { nullable: true }),
|
|
73118
|
+
__metadata("design:type", Number)
|
|
73119
|
+
], RunMJScheduledJobViewResult.prototype, "ExecutionTime", void 0);
|
|
73120
|
+
__decorate([
|
|
73121
|
+
Field({ nullable: true }),
|
|
73122
|
+
__metadata("design:type", String)
|
|
73123
|
+
], RunMJScheduledJobViewResult.prototype, "ErrorMessage", void 0);
|
|
73124
|
+
__decorate([
|
|
73125
|
+
Field(() => Boolean, { nullable: false }),
|
|
73126
|
+
__metadata("design:type", Boolean)
|
|
73127
|
+
], RunMJScheduledJobViewResult.prototype, "Success", void 0);
|
|
73128
|
+
RunMJScheduledJobViewResult = __decorate([
|
|
73129
|
+
ObjectType()
|
|
73130
|
+
], RunMJScheduledJobViewResult);
|
|
73131
|
+
export { RunMJScheduledJobViewResult };
|
|
73132
|
+
let MJScheduledJobResolver = class MJScheduledJobResolver extends ResolverBase {
|
|
73133
|
+
async RunMJScheduledJobViewByID(input, { providers, userPayload }, pubSub) {
|
|
73134
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73135
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
73136
|
+
}
|
|
73137
|
+
async RunMJScheduledJobViewByName(input, { providers, userPayload }, pubSub) {
|
|
73138
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73139
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
73140
|
+
}
|
|
73141
|
+
async RunMJScheduledJobDynamicView(input, { providers, userPayload }, pubSub) {
|
|
73142
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73143
|
+
input.EntityName = 'MJ: Scheduled Jobs';
|
|
73144
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
73145
|
+
}
|
|
73146
|
+
async MJScheduledJob(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
73147
|
+
this.CheckUserReadPermissions('MJ: Scheduled Jobs', userPayload);
|
|
73148
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73149
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
73150
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobs] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
73151
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
73152
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] : {});
|
|
73153
|
+
return result;
|
|
73154
|
+
}
|
|
73155
|
+
async MJ_ScheduledJobRuns_ScheduledJobIDArray(mjscheduledjob_, { dataSources, userPayload, providers }, pubSub) {
|
|
73156
|
+
this.CheckUserReadPermissions('MJ: Scheduled Job Runs', userPayload);
|
|
73157
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73158
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
73159
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobRuns] WHERE [ScheduledJobID]='${mjscheduledjob_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
73160
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
73161
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows);
|
|
73162
|
+
return result;
|
|
73163
|
+
}
|
|
73164
|
+
async CreateMJScheduledJob(input, { providers, userPayload }, pubSub) {
|
|
73165
|
+
const provider = GetReadWriteProvider(providers);
|
|
73166
|
+
return this.CreateRecord('MJ: Scheduled Jobs', input, provider, userPayload, pubSub);
|
|
73167
|
+
}
|
|
73168
|
+
async UpdateMJScheduledJob(input, { providers, userPayload }, pubSub) {
|
|
73169
|
+
const provider = GetReadWriteProvider(providers);
|
|
73170
|
+
return this.UpdateRecord('MJ: Scheduled Jobs', input, provider, userPayload, pubSub);
|
|
73171
|
+
}
|
|
73172
|
+
async DeleteMJScheduledJob(ID, options, { providers, userPayload }, pubSub) {
|
|
73173
|
+
const provider = GetReadWriteProvider(providers);
|
|
73174
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
73175
|
+
return this.DeleteRecord('MJ: Scheduled Jobs', key, options, provider, userPayload, pubSub);
|
|
73176
|
+
}
|
|
73177
|
+
};
|
|
73178
|
+
__decorate([
|
|
73179
|
+
Query(() => RunMJScheduledJobViewResult),
|
|
73180
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
73181
|
+
__param(1, Ctx()),
|
|
73182
|
+
__param(2, PubSub()),
|
|
73183
|
+
__metadata("design:type", Function),
|
|
73184
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
73185
|
+
__metadata("design:returntype", Promise)
|
|
73186
|
+
], MJScheduledJobResolver.prototype, "RunMJScheduledJobViewByID", null);
|
|
73187
|
+
__decorate([
|
|
73188
|
+
Query(() => RunMJScheduledJobViewResult),
|
|
73189
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
73190
|
+
__param(1, Ctx()),
|
|
73191
|
+
__param(2, PubSub()),
|
|
73192
|
+
__metadata("design:type", Function),
|
|
73193
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
73194
|
+
__metadata("design:returntype", Promise)
|
|
73195
|
+
], MJScheduledJobResolver.prototype, "RunMJScheduledJobViewByName", null);
|
|
73196
|
+
__decorate([
|
|
73197
|
+
Query(() => RunMJScheduledJobViewResult),
|
|
73198
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
73199
|
+
__param(1, Ctx()),
|
|
73200
|
+
__param(2, PubSub()),
|
|
73201
|
+
__metadata("design:type", Function),
|
|
73202
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
73203
|
+
__metadata("design:returntype", Promise)
|
|
73204
|
+
], MJScheduledJobResolver.prototype, "RunMJScheduledJobDynamicView", null);
|
|
73205
|
+
__decorate([
|
|
73206
|
+
Query(() => MJScheduledJob_, { nullable: true }),
|
|
73207
|
+
__param(0, Arg('ID', () => String)),
|
|
73208
|
+
__param(1, Ctx()),
|
|
73209
|
+
__param(2, PubSub()),
|
|
73210
|
+
__metadata("design:type", Function),
|
|
73211
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
73212
|
+
__metadata("design:returntype", Promise)
|
|
73213
|
+
], MJScheduledJobResolver.prototype, "MJScheduledJob", null);
|
|
73214
|
+
__decorate([
|
|
73215
|
+
FieldResolver(() => [MJScheduledJobRun_]),
|
|
73216
|
+
__param(0, Root()),
|
|
73217
|
+
__param(1, Ctx()),
|
|
73218
|
+
__param(2, PubSub()),
|
|
73219
|
+
__metadata("design:type", Function),
|
|
73220
|
+
__metadata("design:paramtypes", [MJScheduledJob_, Object, PubSubEngine]),
|
|
73221
|
+
__metadata("design:returntype", Promise)
|
|
73222
|
+
], MJScheduledJobResolver.prototype, "MJ_ScheduledJobRuns_ScheduledJobIDArray", null);
|
|
73223
|
+
__decorate([
|
|
73224
|
+
Mutation(() => MJScheduledJob_),
|
|
73225
|
+
__param(0, Arg('input', () => CreateMJScheduledJobInput)),
|
|
73226
|
+
__param(1, Ctx()),
|
|
73227
|
+
__param(2, PubSub()),
|
|
73228
|
+
__metadata("design:type", Function),
|
|
73229
|
+
__metadata("design:paramtypes", [CreateMJScheduledJobInput, Object, PubSubEngine]),
|
|
73230
|
+
__metadata("design:returntype", Promise)
|
|
73231
|
+
], MJScheduledJobResolver.prototype, "CreateMJScheduledJob", null);
|
|
73232
|
+
__decorate([
|
|
73233
|
+
Mutation(() => MJScheduledJob_),
|
|
73234
|
+
__param(0, Arg('input', () => UpdateMJScheduledJobInput)),
|
|
73235
|
+
__param(1, Ctx()),
|
|
73236
|
+
__param(2, PubSub()),
|
|
73237
|
+
__metadata("design:type", Function),
|
|
73238
|
+
__metadata("design:paramtypes", [UpdateMJScheduledJobInput, Object, PubSubEngine]),
|
|
73239
|
+
__metadata("design:returntype", Promise)
|
|
73240
|
+
], MJScheduledJobResolver.prototype, "UpdateMJScheduledJob", null);
|
|
73241
|
+
__decorate([
|
|
73242
|
+
Mutation(() => MJScheduledJob_),
|
|
73243
|
+
__param(0, Arg('ID', () => String)),
|
|
73244
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
73245
|
+
__param(2, Ctx()),
|
|
73246
|
+
__param(3, PubSub()),
|
|
73247
|
+
__metadata("design:type", Function),
|
|
73248
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
73249
|
+
__metadata("design:returntype", Promise)
|
|
73250
|
+
], MJScheduledJobResolver.prototype, "DeleteMJScheduledJob", null);
|
|
73251
|
+
MJScheduledJobResolver = __decorate([
|
|
73252
|
+
Resolver(MJScheduledJob_)
|
|
73253
|
+
], MJScheduledJobResolver);
|
|
73254
|
+
export { MJScheduledJobResolver };
|
|
71189
73255
|
let MJAIPromptRun_ = class MJAIPromptRun_ {
|
|
71190
73256
|
ID;
|
|
71191
73257
|
PromptID;
|