@memberjunction/server 2.109.0 → 2.110.1
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-agent.d.ts +1 -0
- package/dist/agents/skip-agent.d.ts.map +1 -1
- package/dist/agents/skip-agent.js +65 -7
- package/dist/agents/skip-agent.js.map +1 -1
- package/dist/agents/skip-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +29 -14
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/generated/generated.d.ts +34 -13
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +194 -86
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +1 -0
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +73 -11
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +6 -2
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +234 -8
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/TaskResolver.d.ts +1 -1
- package/dist/resolvers/TaskResolver.d.ts.map +1 -1
- package/dist/resolvers/TaskResolver.js +4 -3
- package/dist/resolvers/TaskResolver.js.map +1 -1
- package/dist/services/TaskOrchestrator.d.ts +3 -1
- package/dist/services/TaskOrchestrator.d.ts.map +1 -1
- package/dist/services/TaskOrchestrator.js +77 -2
- package/dist/services/TaskOrchestrator.js.map +1 -1
- package/package.json +35 -35
- package/src/agents/skip-agent.ts +93 -9
- package/src/agents/skip-sdk.ts +45 -16
- package/src/generated/generated.ts +135 -69
- package/src/resolvers/CreateQueryResolver.ts +125 -28
- package/src/resolvers/RunAIAgentResolver.ts +397 -9
- package/src/resolvers/TaskResolver.ts +3 -2
- package/src/services/TaskOrchestrator.ts +118 -3
|
@@ -2502,8 +2502,8 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
|
|
|
2502
2502
|
OverrideVendor;
|
|
2503
2503
|
RootParentRunID;
|
|
2504
2504
|
RootLastRunID;
|
|
2505
|
-
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
2506
2505
|
MJ_AIAgentRuns_ParentRunIDArray;
|
|
2506
|
+
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
2507
2507
|
MJ_AIPromptRuns_AgentRunIDArray;
|
|
2508
2508
|
};
|
|
2509
2509
|
__decorate([
|
|
@@ -2726,14 +2726,14 @@ __decorate([
|
|
|
2726
2726
|
MaxLength(16),
|
|
2727
2727
|
__metadata("design:type", String)
|
|
2728
2728
|
], MJAIAgentRun_.prototype, "RootLastRunID", void 0);
|
|
2729
|
-
__decorate([
|
|
2730
|
-
Field(() => [MJAIAgentRunStep_]),
|
|
2731
|
-
__metadata("design:type", Array)
|
|
2732
|
-
], MJAIAgentRun_.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", void 0);
|
|
2733
2729
|
__decorate([
|
|
2734
2730
|
Field(() => [MJAIAgentRun_]),
|
|
2735
2731
|
__metadata("design:type", Array)
|
|
2736
2732
|
], MJAIAgentRun_.prototype, "MJ_AIAgentRuns_ParentRunIDArray", void 0);
|
|
2733
|
+
__decorate([
|
|
2734
|
+
Field(() => [MJAIAgentRunStep_]),
|
|
2735
|
+
__metadata("design:type", Array)
|
|
2736
|
+
], MJAIAgentRun_.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", void 0);
|
|
2737
2737
|
__decorate([
|
|
2738
2738
|
Field(() => [MJAIPromptRun_]),
|
|
2739
2739
|
__metadata("design:type", Array)
|
|
@@ -3203,22 +3203,22 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
|
|
|
3203
3203
|
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
3204
3204
|
return result;
|
|
3205
3205
|
}
|
|
3206
|
-
async
|
|
3207
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3206
|
+
async MJ_AIAgentRuns_ParentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3207
|
+
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
3208
3208
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3209
3209
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3210
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3210
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRuns] WHERE [ParentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3211
3211
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3212
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3212
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
3213
3213
|
return result;
|
|
3214
3214
|
}
|
|
3215
|
-
async
|
|
3216
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3215
|
+
async MJ_AIAgentRunSteps_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3216
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Steps', userPayload);
|
|
3217
3217
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3218
3218
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3219
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3219
|
+
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');
|
|
3220
3220
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3221
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3221
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows);
|
|
3222
3222
|
return result;
|
|
3223
3223
|
}
|
|
3224
3224
|
async MJ_AIPromptRuns_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -3281,23 +3281,23 @@ __decorate([
|
|
|
3281
3281
|
__metadata("design:returntype", Promise)
|
|
3282
3282
|
], MJAIAgentRunResolver.prototype, "MJAIAgentRun", null);
|
|
3283
3283
|
__decorate([
|
|
3284
|
-
FieldResolver(() => [
|
|
3284
|
+
FieldResolver(() => [MJAIAgentRun_]),
|
|
3285
3285
|
__param(0, Root()),
|
|
3286
3286
|
__param(1, Ctx()),
|
|
3287
3287
|
__param(2, PubSub()),
|
|
3288
3288
|
__metadata("design:type", Function),
|
|
3289
3289
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
3290
3290
|
__metadata("design:returntype", Promise)
|
|
3291
|
-
], MJAIAgentRunResolver.prototype, "
|
|
3291
|
+
], MJAIAgentRunResolver.prototype, "MJ_AIAgentRuns_ParentRunIDArray", null);
|
|
3292
3292
|
__decorate([
|
|
3293
|
-
FieldResolver(() => [
|
|
3293
|
+
FieldResolver(() => [MJAIAgentRunStep_]),
|
|
3294
3294
|
__param(0, Root()),
|
|
3295
3295
|
__param(1, Ctx()),
|
|
3296
3296
|
__param(2, PubSub()),
|
|
3297
3297
|
__metadata("design:type", Function),
|
|
3298
3298
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
3299
3299
|
__metadata("design:returntype", Promise)
|
|
3300
|
-
], MJAIAgentRunResolver.prototype, "
|
|
3300
|
+
], MJAIAgentRunResolver.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", null);
|
|
3301
3301
|
__decorate([
|
|
3302
3302
|
FieldResolver(() => [MJAIPromptRun_]),
|
|
3303
3303
|
__param(0, Root()),
|
|
@@ -4461,6 +4461,9 @@ let MJAIAgent_ = class MJAIAgent_ {
|
|
|
4461
4461
|
DefaultArtifactTypeID;
|
|
4462
4462
|
OwnerUserID;
|
|
4463
4463
|
InvocationMode;
|
|
4464
|
+
ArtifactCreationMode;
|
|
4465
|
+
FunctionalRequirements;
|
|
4466
|
+
TechnicalDesign;
|
|
4464
4467
|
Parent;
|
|
4465
4468
|
ContextCompressionPrompt;
|
|
4466
4469
|
Type;
|
|
@@ -4557,7 +4560,7 @@ __decorate([
|
|
|
4557
4560
|
__metadata("design:type", String)
|
|
4558
4561
|
], MJAIAgent_.prototype, "TypeID", void 0);
|
|
4559
4562
|
__decorate([
|
|
4560
|
-
Field({
|
|
4563
|
+
Field({ description: `Current status of the AI agent. Active agents can be executed, Disabled agents are inactive, and Pending agents are awaiting configuration or approval. Allowed values: Active, Disabled, Pending.` }),
|
|
4561
4564
|
MaxLength(40),
|
|
4562
4565
|
__metadata("design:type", String)
|
|
4563
4566
|
], MJAIAgent_.prototype, "Status", void 0);
|
|
@@ -4673,6 +4676,19 @@ __decorate([
|
|
|
4673
4676
|
MaxLength(40),
|
|
4674
4677
|
__metadata("design:type", String)
|
|
4675
4678
|
], MJAIAgent_.prototype, "InvocationMode", void 0);
|
|
4679
|
+
__decorate([
|
|
4680
|
+
Field({ description: `Controls how artifacts are created from this agent's payloads. "Always" creates visible artifacts, "Never" skips artifact creation, "System Only" creates hidden system artifacts.` }),
|
|
4681
|
+
MaxLength(40),
|
|
4682
|
+
__metadata("design:type", String)
|
|
4683
|
+
], MJAIAgent_.prototype, "ArtifactCreationMode", void 0);
|
|
4684
|
+
__decorate([
|
|
4685
|
+
Field({ nullable: true, description: `Detailed markdown formatted requirements that explain the business goals of the agent without specific technical implementation details.` }),
|
|
4686
|
+
__metadata("design:type", String)
|
|
4687
|
+
], MJAIAgent_.prototype, "FunctionalRequirements", void 0);
|
|
4688
|
+
__decorate([
|
|
4689
|
+
Field({ nullable: true, description: `Detailed markdown that explains the structure of the agent including agent architecture, actions, sub-agents, prompts, and payload structure.` }),
|
|
4690
|
+
__metadata("design:type", String)
|
|
4691
|
+
], MJAIAgent_.prototype, "TechnicalDesign", void 0);
|
|
4676
4692
|
__decorate([
|
|
4677
4693
|
Field({ nullable: true }),
|
|
4678
4694
|
MaxLength(510),
|
|
@@ -4822,6 +4838,9 @@ let CreateMJAIAgentInput = class CreateMJAIAgentInput {
|
|
|
4822
4838
|
DefaultArtifactTypeID;
|
|
4823
4839
|
OwnerUserID;
|
|
4824
4840
|
InvocationMode;
|
|
4841
|
+
ArtifactCreationMode;
|
|
4842
|
+
FunctionalRequirements;
|
|
4843
|
+
TechnicalDesign;
|
|
4825
4844
|
};
|
|
4826
4845
|
__decorate([
|
|
4827
4846
|
Field({ nullable: true }),
|
|
@@ -4975,6 +4994,18 @@ __decorate([
|
|
|
4975
4994
|
Field({ nullable: true }),
|
|
4976
4995
|
__metadata("design:type", String)
|
|
4977
4996
|
], CreateMJAIAgentInput.prototype, "InvocationMode", void 0);
|
|
4997
|
+
__decorate([
|
|
4998
|
+
Field({ nullable: true }),
|
|
4999
|
+
__metadata("design:type", String)
|
|
5000
|
+
], CreateMJAIAgentInput.prototype, "ArtifactCreationMode", void 0);
|
|
5001
|
+
__decorate([
|
|
5002
|
+
Field({ nullable: true }),
|
|
5003
|
+
__metadata("design:type", String)
|
|
5004
|
+
], CreateMJAIAgentInput.prototype, "FunctionalRequirements", void 0);
|
|
5005
|
+
__decorate([
|
|
5006
|
+
Field({ nullable: true }),
|
|
5007
|
+
__metadata("design:type", String)
|
|
5008
|
+
], CreateMJAIAgentInput.prototype, "TechnicalDesign", void 0);
|
|
4978
5009
|
CreateMJAIAgentInput = __decorate([
|
|
4979
5010
|
InputType()
|
|
4980
5011
|
], CreateMJAIAgentInput);
|
|
@@ -5018,6 +5049,9 @@ let UpdateMJAIAgentInput = class UpdateMJAIAgentInput {
|
|
|
5018
5049
|
DefaultArtifactTypeID;
|
|
5019
5050
|
OwnerUserID;
|
|
5020
5051
|
InvocationMode;
|
|
5052
|
+
ArtifactCreationMode;
|
|
5053
|
+
FunctionalRequirements;
|
|
5054
|
+
TechnicalDesign;
|
|
5021
5055
|
OldValues___;
|
|
5022
5056
|
};
|
|
5023
5057
|
__decorate([
|
|
@@ -5172,6 +5206,18 @@ __decorate([
|
|
|
5172
5206
|
Field({ nullable: true }),
|
|
5173
5207
|
__metadata("design:type", String)
|
|
5174
5208
|
], UpdateMJAIAgentInput.prototype, "InvocationMode", void 0);
|
|
5209
|
+
__decorate([
|
|
5210
|
+
Field({ nullable: true }),
|
|
5211
|
+
__metadata("design:type", String)
|
|
5212
|
+
], UpdateMJAIAgentInput.prototype, "ArtifactCreationMode", void 0);
|
|
5213
|
+
__decorate([
|
|
5214
|
+
Field({ nullable: true }),
|
|
5215
|
+
__metadata("design:type", String)
|
|
5216
|
+
], UpdateMJAIAgentInput.prototype, "FunctionalRequirements", void 0);
|
|
5217
|
+
__decorate([
|
|
5218
|
+
Field({ nullable: true }),
|
|
5219
|
+
__metadata("design:type", String)
|
|
5220
|
+
], UpdateMJAIAgentInput.prototype, "TechnicalDesign", void 0);
|
|
5175
5221
|
__decorate([
|
|
5176
5222
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
5177
5223
|
__metadata("design:type", Array)
|
|
@@ -10353,8 +10399,8 @@ let MJAIPrompt_ = class MJAIPrompt_ {
|
|
|
10353
10399
|
AIAgentActions_CompactPromptIDArray;
|
|
10354
10400
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
|
|
10355
10401
|
AIPrompts_ResultSelectorPromptIDArray;
|
|
10356
|
-
MJ_AIPromptModels_PromptIDArray;
|
|
10357
10402
|
MJ_AIAgentPrompts_PromptIDArray;
|
|
10403
|
+
MJ_AIPromptModels_PromptIDArray;
|
|
10358
10404
|
MJ_AIAgentSteps_PromptIDArray;
|
|
10359
10405
|
MJ_AIPromptRuns_PromptIDArray;
|
|
10360
10406
|
AIAgents_ContextCompressionPromptIDArray;
|
|
@@ -10643,14 +10689,14 @@ __decorate([
|
|
|
10643
10689
|
Field(() => [MJAIPrompt_]),
|
|
10644
10690
|
__metadata("design:type", Array)
|
|
10645
10691
|
], MJAIPrompt_.prototype, "AIPrompts_ResultSelectorPromptIDArray", void 0);
|
|
10646
|
-
__decorate([
|
|
10647
|
-
Field(() => [MJAIPromptModel_]),
|
|
10648
|
-
__metadata("design:type", Array)
|
|
10649
|
-
], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
10650
10692
|
__decorate([
|
|
10651
10693
|
Field(() => [MJAIAgentPrompt_]),
|
|
10652
10694
|
__metadata("design:type", Array)
|
|
10653
10695
|
], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
10696
|
+
__decorate([
|
|
10697
|
+
Field(() => [MJAIPromptModel_]),
|
|
10698
|
+
__metadata("design:type", Array)
|
|
10699
|
+
], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
10654
10700
|
__decorate([
|
|
10655
10701
|
Field(() => [MJAIAgentStep_]),
|
|
10656
10702
|
__metadata("design:type", Array)
|
|
@@ -11296,22 +11342,22 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
11296
11342
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', rows);
|
|
11297
11343
|
return result;
|
|
11298
11344
|
}
|
|
11299
|
-
async
|
|
11300
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
11345
|
+
async MJ_AIAgentPrompts_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
11346
|
+
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
11301
11347
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11302
11348
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
11303
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
11349
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
11304
11350
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
11305
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
11351
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
11306
11352
|
return result;
|
|
11307
11353
|
}
|
|
11308
|
-
async
|
|
11309
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
11354
|
+
async MJ_AIPromptModels_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
11355
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
11310
11356
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11311
11357
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
11312
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
11358
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
11313
11359
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
11314
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
11360
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
11315
11361
|
return result;
|
|
11316
11362
|
}
|
|
11317
11363
|
async MJ_AIAgentSteps_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -11455,23 +11501,23 @@ __decorate([
|
|
|
11455
11501
|
__metadata("design:returntype", Promise)
|
|
11456
11502
|
], MJAIPromptResolver.prototype, "AIPrompts_ResultSelectorPromptIDArray", null);
|
|
11457
11503
|
__decorate([
|
|
11458
|
-
FieldResolver(() => [
|
|
11504
|
+
FieldResolver(() => [MJAIAgentPrompt_]),
|
|
11459
11505
|
__param(0, Root()),
|
|
11460
11506
|
__param(1, Ctx()),
|
|
11461
11507
|
__param(2, PubSub()),
|
|
11462
11508
|
__metadata("design:type", Function),
|
|
11463
11509
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
11464
11510
|
__metadata("design:returntype", Promise)
|
|
11465
|
-
], MJAIPromptResolver.prototype, "
|
|
11511
|
+
], MJAIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
|
|
11466
11512
|
__decorate([
|
|
11467
|
-
FieldResolver(() => [
|
|
11513
|
+
FieldResolver(() => [MJAIPromptModel_]),
|
|
11468
11514
|
__param(0, Root()),
|
|
11469
11515
|
__param(1, Ctx()),
|
|
11470
11516
|
__param(2, PubSub()),
|
|
11471
11517
|
__metadata("design:type", Function),
|
|
11472
11518
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
11473
11519
|
__metadata("design:returntype", Promise)
|
|
11474
|
-
], MJAIPromptResolver.prototype, "
|
|
11520
|
+
], MJAIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
|
|
11475
11521
|
__decorate([
|
|
11476
11522
|
FieldResolver(() => [MJAIAgentStep_]),
|
|
11477
11523
|
__param(0, Root()),
|
|
@@ -17264,8 +17310,8 @@ let MJEntity_ = class MJEntity_ {
|
|
|
17264
17310
|
RecommendationItems_DestinationEntityIDArray;
|
|
17265
17311
|
EntityCommunicationMessageTypes_EntityIDArray;
|
|
17266
17312
|
QueryEntities_EntityIDArray;
|
|
17267
|
-
MJ_RecordLinks_SourceEntityIDArray;
|
|
17268
17313
|
MJ_AccessControlRules_EntityIDArray;
|
|
17314
|
+
MJ_RecordLinks_SourceEntityIDArray;
|
|
17269
17315
|
GeneratedCodes_LinkedEntityIDArray;
|
|
17270
17316
|
MJ_RecordLinks_TargetEntityIDArray;
|
|
17271
17317
|
};
|
|
@@ -17696,14 +17742,14 @@ __decorate([
|
|
|
17696
17742
|
Field(() => [MJQueryEntity_]),
|
|
17697
17743
|
__metadata("design:type", Array)
|
|
17698
17744
|
], MJEntity_.prototype, "QueryEntities_EntityIDArray", void 0);
|
|
17699
|
-
__decorate([
|
|
17700
|
-
Field(() => [MJRecordLink_]),
|
|
17701
|
-
__metadata("design:type", Array)
|
|
17702
|
-
], MJEntity_.prototype, "MJ_RecordLinks_SourceEntityIDArray", void 0);
|
|
17703
17745
|
__decorate([
|
|
17704
17746
|
Field(() => [MJAccessControlRule_]),
|
|
17705
17747
|
__metadata("design:type", Array)
|
|
17706
17748
|
], MJEntity_.prototype, "MJ_AccessControlRules_EntityIDArray", void 0);
|
|
17749
|
+
__decorate([
|
|
17750
|
+
Field(() => [MJRecordLink_]),
|
|
17751
|
+
__metadata("design:type", Array)
|
|
17752
|
+
], MJEntity_.prototype, "MJ_RecordLinks_SourceEntityIDArray", void 0);
|
|
17707
17753
|
__decorate([
|
|
17708
17754
|
Field(() => [MJGeneratedCode_]),
|
|
17709
17755
|
__metadata("design:type", Array)
|
|
@@ -18660,22 +18706,22 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
18660
18706
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Entities', rows);
|
|
18661
18707
|
return result;
|
|
18662
18708
|
}
|
|
18663
|
-
async
|
|
18664
|
-
this.CheckUserReadPermissions('MJ:
|
|
18709
|
+
async MJ_AccessControlRules_EntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
18710
|
+
this.CheckUserReadPermissions('MJ: Access Control Rules', userPayload);
|
|
18665
18711
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18666
18712
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
18667
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
18713
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAccessControlRules] WHERE [EntityID]='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Access Control Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
18668
18714
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
18669
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
18715
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Access Control Rules', rows);
|
|
18670
18716
|
return result;
|
|
18671
18717
|
}
|
|
18672
|
-
async
|
|
18673
|
-
this.CheckUserReadPermissions('MJ:
|
|
18718
|
+
async MJ_RecordLinks_SourceEntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
18719
|
+
this.CheckUserReadPermissions('MJ: Record Links', userPayload);
|
|
18674
18720
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18675
18721
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
18676
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
18722
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordLinks] WHERE [SourceEntityID]='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
18677
18723
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
18678
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
18724
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Record Links', rows);
|
|
18679
18725
|
return result;
|
|
18680
18726
|
}
|
|
18681
18727
|
async GeneratedCodes_LinkedEntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -19079,23 +19125,23 @@ __decorate([
|
|
|
19079
19125
|
__metadata("design:returntype", Promise)
|
|
19080
19126
|
], MJEntityResolverBase.prototype, "QueryEntities_EntityIDArray", null);
|
|
19081
19127
|
__decorate([
|
|
19082
|
-
FieldResolver(() => [
|
|
19128
|
+
FieldResolver(() => [MJAccessControlRule_]),
|
|
19083
19129
|
__param(0, Root()),
|
|
19084
19130
|
__param(1, Ctx()),
|
|
19085
19131
|
__param(2, PubSub()),
|
|
19086
19132
|
__metadata("design:type", Function),
|
|
19087
19133
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
19088
19134
|
__metadata("design:returntype", Promise)
|
|
19089
|
-
], MJEntityResolverBase.prototype, "
|
|
19135
|
+
], MJEntityResolverBase.prototype, "MJ_AccessControlRules_EntityIDArray", null);
|
|
19090
19136
|
__decorate([
|
|
19091
|
-
FieldResolver(() => [
|
|
19137
|
+
FieldResolver(() => [MJRecordLink_]),
|
|
19092
19138
|
__param(0, Root()),
|
|
19093
19139
|
__param(1, Ctx()),
|
|
19094
19140
|
__param(2, PubSub()),
|
|
19095
19141
|
__metadata("design:type", Function),
|
|
19096
19142
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
19097
19143
|
__metadata("design:returntype", Promise)
|
|
19098
|
-
], MJEntityResolverBase.prototype, "
|
|
19144
|
+
], MJEntityResolverBase.prototype, "MJ_RecordLinks_SourceEntityIDArray", null);
|
|
19099
19145
|
__decorate([
|
|
19100
19146
|
FieldResolver(() => [MJGeneratedCode_]),
|
|
19101
19147
|
__param(0, Root()),
|
|
@@ -19161,6 +19207,8 @@ let MJUser_ = class MJUser_ {
|
|
|
19161
19207
|
EmployeeID;
|
|
19162
19208
|
_mj__CreatedAt;
|
|
19163
19209
|
_mj__UpdatedAt;
|
|
19210
|
+
UserImageURL;
|
|
19211
|
+
UserImageIconClass;
|
|
19164
19212
|
FirstLast;
|
|
19165
19213
|
EmployeeFirstLast;
|
|
19166
19214
|
EmployeeEmail;
|
|
@@ -19203,12 +19251,12 @@ let MJUser_ = class MJUser_ {
|
|
|
19203
19251
|
AIAgentRequests_ResponseByUserIDArray;
|
|
19204
19252
|
AIAgentNotes_UserIDArray;
|
|
19205
19253
|
MJ_ReportUserStates_UserIDArray;
|
|
19206
|
-
MJ_DashboardUserPreferences_UserIDArray;
|
|
19207
19254
|
MJ_DashboardUserStates_UserIDArray;
|
|
19255
|
+
MJ_DashboardUserPreferences_UserIDArray;
|
|
19208
19256
|
MJ_ArtifactVersions_UserIDArray;
|
|
19209
19257
|
MJ_PublicLinks_UserIDArray;
|
|
19210
|
-
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
19211
19258
|
MJ_ScheduledJobs_NotifyUserIDArray;
|
|
19259
|
+
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
19212
19260
|
MJ_ArtifactPermissions_UserIDArray;
|
|
19213
19261
|
ResourcePermissions_UserIDArray;
|
|
19214
19262
|
AIAgentRequests_RequestForUserIDArray;
|
|
@@ -19294,6 +19342,15 @@ __decorate([
|
|
|
19294
19342
|
MaxLength(10),
|
|
19295
19343
|
__metadata("design:type", Date)
|
|
19296
19344
|
], MJUser_.prototype, "_mj__UpdatedAt", void 0);
|
|
19345
|
+
__decorate([
|
|
19346
|
+
Field({ nullable: true, description: `User avatar image. Can be a Base64 encoded data URI (e.g., "data:image/png;base64,...") or a URL to an image file. Preferred over UserImageIconClass when present. Recommended for small thumbnail images only to maintain performance.` }),
|
|
19347
|
+
__metadata("design:type", String)
|
|
19348
|
+
], MJUser_.prototype, "UserImageURL", void 0);
|
|
19349
|
+
__decorate([
|
|
19350
|
+
Field({ nullable: true, description: `Font Awesome icon class for user avatar (e.g., "fa-solid fa-user-astronaut"). Used as fallback when UserImageURL is not provided. Example classes: "fa-solid fa-user", "fa-regular fa-circle-user", "fa-solid fa-user-tie".` }),
|
|
19351
|
+
MaxLength(200),
|
|
19352
|
+
__metadata("design:type", String)
|
|
19353
|
+
], MJUser_.prototype, "UserImageIconClass", void 0);
|
|
19297
19354
|
__decorate([
|
|
19298
19355
|
Field({ nullable: true }),
|
|
19299
19356
|
MaxLength(202),
|
|
@@ -19468,14 +19525,14 @@ __decorate([
|
|
|
19468
19525
|
Field(() => [MJReportUserState_]),
|
|
19469
19526
|
__metadata("design:type", Array)
|
|
19470
19527
|
], MJUser_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
19471
|
-
__decorate([
|
|
19472
|
-
Field(() => [MJDashboardUserPreference_]),
|
|
19473
|
-
__metadata("design:type", Array)
|
|
19474
|
-
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
19475
19528
|
__decorate([
|
|
19476
19529
|
Field(() => [MJDashboardUserState_]),
|
|
19477
19530
|
__metadata("design:type", Array)
|
|
19478
19531
|
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
19532
|
+
__decorate([
|
|
19533
|
+
Field(() => [MJDashboardUserPreference_]),
|
|
19534
|
+
__metadata("design:type", Array)
|
|
19535
|
+
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
19479
19536
|
__decorate([
|
|
19480
19537
|
Field(() => [MJArtifactVersion_]),
|
|
19481
19538
|
__metadata("design:type", Array)
|
|
@@ -19484,14 +19541,14 @@ __decorate([
|
|
|
19484
19541
|
Field(() => [MJPublicLink_]),
|
|
19485
19542
|
__metadata("design:type", Array)
|
|
19486
19543
|
], MJUser_.prototype, "MJ_PublicLinks_UserIDArray", void 0);
|
|
19487
|
-
__decorate([
|
|
19488
|
-
Field(() => [MJScheduledJobRun_]),
|
|
19489
|
-
__metadata("design:type", Array)
|
|
19490
|
-
], MJUser_.prototype, "MJ_ScheduledJobRuns_ExecutedByUserIDArray", void 0);
|
|
19491
19544
|
__decorate([
|
|
19492
19545
|
Field(() => [MJScheduledJob_]),
|
|
19493
19546
|
__metadata("design:type", Array)
|
|
19494
19547
|
], MJUser_.prototype, "MJ_ScheduledJobs_NotifyUserIDArray", void 0);
|
|
19548
|
+
__decorate([
|
|
19549
|
+
Field(() => [MJScheduledJobRun_]),
|
|
19550
|
+
__metadata("design:type", Array)
|
|
19551
|
+
], MJUser_.prototype, "MJ_ScheduledJobRuns_ExecutedByUserIDArray", void 0);
|
|
19495
19552
|
__decorate([
|
|
19496
19553
|
Field(() => [MJArtifactPermission_]),
|
|
19497
19554
|
__metadata("design:type", Array)
|
|
@@ -19569,6 +19626,8 @@ let CreateMJUserInput = class CreateMJUserInput {
|
|
|
19569
19626
|
LinkedEntityID;
|
|
19570
19627
|
LinkedEntityRecordID;
|
|
19571
19628
|
EmployeeID;
|
|
19629
|
+
UserImageURL;
|
|
19630
|
+
UserImageIconClass;
|
|
19572
19631
|
};
|
|
19573
19632
|
__decorate([
|
|
19574
19633
|
Field({ nullable: true }),
|
|
@@ -19618,6 +19677,14 @@ __decorate([
|
|
|
19618
19677
|
Field({ nullable: true }),
|
|
19619
19678
|
__metadata("design:type", String)
|
|
19620
19679
|
], CreateMJUserInput.prototype, "EmployeeID", void 0);
|
|
19680
|
+
__decorate([
|
|
19681
|
+
Field({ nullable: true }),
|
|
19682
|
+
__metadata("design:type", String)
|
|
19683
|
+
], CreateMJUserInput.prototype, "UserImageURL", void 0);
|
|
19684
|
+
__decorate([
|
|
19685
|
+
Field({ nullable: true }),
|
|
19686
|
+
__metadata("design:type", String)
|
|
19687
|
+
], CreateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
19621
19688
|
CreateMJUserInput = __decorate([
|
|
19622
19689
|
InputType()
|
|
19623
19690
|
], CreateMJUserInput);
|
|
@@ -19635,6 +19702,8 @@ let UpdateMJUserInput = class UpdateMJUserInput {
|
|
|
19635
19702
|
LinkedEntityID;
|
|
19636
19703
|
LinkedEntityRecordID;
|
|
19637
19704
|
EmployeeID;
|
|
19705
|
+
UserImageURL;
|
|
19706
|
+
UserImageIconClass;
|
|
19638
19707
|
OldValues___;
|
|
19639
19708
|
};
|
|
19640
19709
|
__decorate([
|
|
@@ -19685,6 +19754,14 @@ __decorate([
|
|
|
19685
19754
|
Field({ nullable: true }),
|
|
19686
19755
|
__metadata("design:type", String)
|
|
19687
19756
|
], UpdateMJUserInput.prototype, "EmployeeID", void 0);
|
|
19757
|
+
__decorate([
|
|
19758
|
+
Field({ nullable: true }),
|
|
19759
|
+
__metadata("design:type", String)
|
|
19760
|
+
], UpdateMJUserInput.prototype, "UserImageURL", void 0);
|
|
19761
|
+
__decorate([
|
|
19762
|
+
Field({ nullable: true }),
|
|
19763
|
+
__metadata("design:type", String)
|
|
19764
|
+
], UpdateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
19688
19765
|
__decorate([
|
|
19689
19766
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
19690
19767
|
__metadata("design:type", Array)
|
|
@@ -20090,22 +20167,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20090
20167
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
|
|
20091
20168
|
return result;
|
|
20092
20169
|
}
|
|
20093
|
-
async
|
|
20094
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
20170
|
+
async MJ_DashboardUserStates_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20171
|
+
this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
|
|
20095
20172
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20096
20173
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20097
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20174
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
20098
20175
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20099
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
20176
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
|
|
20100
20177
|
return result;
|
|
20101
20178
|
}
|
|
20102
|
-
async
|
|
20103
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
20179
|
+
async MJ_DashboardUserPreferences_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20180
|
+
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
20104
20181
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20105
20182
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20106
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20183
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
20107
20184
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20108
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
20185
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
|
|
20109
20186
|
return result;
|
|
20110
20187
|
}
|
|
20111
20188
|
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -20126,22 +20203,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20126
20203
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Public Links', rows);
|
|
20127
20204
|
return result;
|
|
20128
20205
|
}
|
|
20129
|
-
async
|
|
20130
|
-
this.CheckUserReadPermissions('MJ: Scheduled
|
|
20206
|
+
async MJ_ScheduledJobs_NotifyUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20207
|
+
this.CheckUserReadPermissions('MJ: Scheduled Jobs', userPayload);
|
|
20131
20208
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20132
20209
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20133
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20210
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobs] WHERE [NotifyUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
20134
20211
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20135
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled
|
|
20212
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows);
|
|
20136
20213
|
return result;
|
|
20137
20214
|
}
|
|
20138
|
-
async
|
|
20139
|
-
this.CheckUserReadPermissions('MJ: Scheduled
|
|
20215
|
+
async MJ_ScheduledJobRuns_ExecutedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20216
|
+
this.CheckUserReadPermissions('MJ: Scheduled Job Runs', userPayload);
|
|
20140
20217
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20141
20218
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20142
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20219
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledJobRuns] WHERE [ExecutedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
20143
20220
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20144
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled
|
|
20221
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows);
|
|
20145
20222
|
return result;
|
|
20146
20223
|
}
|
|
20147
20224
|
async MJ_ArtifactPermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -20662,23 +20739,23 @@ __decorate([
|
|
|
20662
20739
|
__metadata("design:returntype", Promise)
|
|
20663
20740
|
], MJUserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
20664
20741
|
__decorate([
|
|
20665
|
-
FieldResolver(() => [
|
|
20742
|
+
FieldResolver(() => [MJDashboardUserState_]),
|
|
20666
20743
|
__param(0, Root()),
|
|
20667
20744
|
__param(1, Ctx()),
|
|
20668
20745
|
__param(2, PubSub()),
|
|
20669
20746
|
__metadata("design:type", Function),
|
|
20670
20747
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20671
20748
|
__metadata("design:returntype", Promise)
|
|
20672
|
-
], MJUserResolverBase.prototype, "
|
|
20749
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
20673
20750
|
__decorate([
|
|
20674
|
-
FieldResolver(() => [
|
|
20751
|
+
FieldResolver(() => [MJDashboardUserPreference_]),
|
|
20675
20752
|
__param(0, Root()),
|
|
20676
20753
|
__param(1, Ctx()),
|
|
20677
20754
|
__param(2, PubSub()),
|
|
20678
20755
|
__metadata("design:type", Function),
|
|
20679
20756
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20680
20757
|
__metadata("design:returntype", Promise)
|
|
20681
|
-
], MJUserResolverBase.prototype, "
|
|
20758
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
|
|
20682
20759
|
__decorate([
|
|
20683
20760
|
FieldResolver(() => [MJArtifactVersion_]),
|
|
20684
20761
|
__param(0, Root()),
|
|
@@ -20698,23 +20775,23 @@ __decorate([
|
|
|
20698
20775
|
__metadata("design:returntype", Promise)
|
|
20699
20776
|
], MJUserResolverBase.prototype, "MJ_PublicLinks_UserIDArray", null);
|
|
20700
20777
|
__decorate([
|
|
20701
|
-
FieldResolver(() => [
|
|
20778
|
+
FieldResolver(() => [MJScheduledJob_]),
|
|
20702
20779
|
__param(0, Root()),
|
|
20703
20780
|
__param(1, Ctx()),
|
|
20704
20781
|
__param(2, PubSub()),
|
|
20705
20782
|
__metadata("design:type", Function),
|
|
20706
20783
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20707
20784
|
__metadata("design:returntype", Promise)
|
|
20708
|
-
], MJUserResolverBase.prototype, "
|
|
20785
|
+
], MJUserResolverBase.prototype, "MJ_ScheduledJobs_NotifyUserIDArray", null);
|
|
20709
20786
|
__decorate([
|
|
20710
|
-
FieldResolver(() => [
|
|
20787
|
+
FieldResolver(() => [MJScheduledJobRun_]),
|
|
20711
20788
|
__param(0, Root()),
|
|
20712
20789
|
__param(1, Ctx()),
|
|
20713
20790
|
__param(2, PubSub()),
|
|
20714
20791
|
__metadata("design:type", Function),
|
|
20715
20792
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
20716
20793
|
__metadata("design:returntype", Promise)
|
|
20717
|
-
], MJUserResolverBase.prototype, "
|
|
20794
|
+
], MJUserResolverBase.prototype, "MJ_ScheduledJobRuns_ExecutedByUserIDArray", null);
|
|
20718
20795
|
__decorate([
|
|
20719
20796
|
FieldResolver(() => [MJArtifactPermission_]),
|
|
20720
20797
|
__param(0, Root()),
|
|
@@ -54150,6 +54227,7 @@ let MJCommunicationProvider_ = class MJCommunicationProvider_ {
|
|
|
54150
54227
|
SupportsScheduledSending;
|
|
54151
54228
|
SupportsForwarding;
|
|
54152
54229
|
SupportsReplying;
|
|
54230
|
+
SupportsDrafts;
|
|
54153
54231
|
CommunicationProviderMessageTypes_CommunicationProviderIDArray;
|
|
54154
54232
|
CommunicationLogs_CommunicationProviderIDArray;
|
|
54155
54233
|
};
|
|
@@ -54202,6 +54280,10 @@ __decorate([
|
|
|
54202
54280
|
Field(() => Boolean, { description: `Whether or not the provider supports replying to messages` }),
|
|
54203
54281
|
__metadata("design:type", Boolean)
|
|
54204
54282
|
], MJCommunicationProvider_.prototype, "SupportsReplying", void 0);
|
|
54283
|
+
__decorate([
|
|
54284
|
+
Field(() => Boolean, { description: `Whether or not the provider supports creating draft messages` }),
|
|
54285
|
+
__metadata("design:type", Boolean)
|
|
54286
|
+
], MJCommunicationProvider_.prototype, "SupportsDrafts", void 0);
|
|
54205
54287
|
__decorate([
|
|
54206
54288
|
Field(() => [MJCommunicationProviderMessageType_]),
|
|
54207
54289
|
__metadata("design:type", Array)
|
|
@@ -54224,6 +54306,7 @@ let CreateMJCommunicationProviderInput = class CreateMJCommunicationProviderInpu
|
|
|
54224
54306
|
SupportsScheduledSending;
|
|
54225
54307
|
SupportsForwarding;
|
|
54226
54308
|
SupportsReplying;
|
|
54309
|
+
SupportsDrafts;
|
|
54227
54310
|
};
|
|
54228
54311
|
__decorate([
|
|
54229
54312
|
Field({ nullable: true }),
|
|
@@ -54261,6 +54344,10 @@ __decorate([
|
|
|
54261
54344
|
Field(() => Boolean, { nullable: true }),
|
|
54262
54345
|
__metadata("design:type", Boolean)
|
|
54263
54346
|
], CreateMJCommunicationProviderInput.prototype, "SupportsReplying", void 0);
|
|
54347
|
+
__decorate([
|
|
54348
|
+
Field(() => Boolean, { nullable: true }),
|
|
54349
|
+
__metadata("design:type", Boolean)
|
|
54350
|
+
], CreateMJCommunicationProviderInput.prototype, "SupportsDrafts", void 0);
|
|
54264
54351
|
CreateMJCommunicationProviderInput = __decorate([
|
|
54265
54352
|
InputType()
|
|
54266
54353
|
], CreateMJCommunicationProviderInput);
|
|
@@ -54275,6 +54362,7 @@ let UpdateMJCommunicationProviderInput = class UpdateMJCommunicationProviderInpu
|
|
|
54275
54362
|
SupportsScheduledSending;
|
|
54276
54363
|
SupportsForwarding;
|
|
54277
54364
|
SupportsReplying;
|
|
54365
|
+
SupportsDrafts;
|
|
54278
54366
|
OldValues___;
|
|
54279
54367
|
};
|
|
54280
54368
|
__decorate([
|
|
@@ -54313,6 +54401,10 @@ __decorate([
|
|
|
54313
54401
|
Field(() => Boolean, { nullable: true }),
|
|
54314
54402
|
__metadata("design:type", Boolean)
|
|
54315
54403
|
], UpdateMJCommunicationProviderInput.prototype, "SupportsReplying", void 0);
|
|
54404
|
+
__decorate([
|
|
54405
|
+
Field(() => Boolean, { nullable: true }),
|
|
54406
|
+
__metadata("design:type", Boolean)
|
|
54407
|
+
], UpdateMJCommunicationProviderInput.prototype, "SupportsDrafts", void 0);
|
|
54316
54408
|
__decorate([
|
|
54317
54409
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
54318
54410
|
__metadata("design:type", Array)
|
|
@@ -65778,6 +65870,7 @@ let MJArtifact_ = class MJArtifact_ {
|
|
|
65778
65870
|
UserID;
|
|
65779
65871
|
_mj__CreatedAt;
|
|
65780
65872
|
_mj__UpdatedAt;
|
|
65873
|
+
Visibility;
|
|
65781
65874
|
Environment;
|
|
65782
65875
|
Type;
|
|
65783
65876
|
User;
|
|
@@ -65828,6 +65921,11 @@ __decorate([
|
|
|
65828
65921
|
MaxLength(10),
|
|
65829
65922
|
__metadata("design:type", Date)
|
|
65830
65923
|
], MJArtifact_.prototype, "_mj__UpdatedAt", void 0);
|
|
65924
|
+
__decorate([
|
|
65925
|
+
Field({ description: `Controls artifact visibility in user-facing lists. "Always" shows in all lists, "System Only" hides from normal views (for system-generated artifacts like agent routing payloads).` }),
|
|
65926
|
+
MaxLength(40),
|
|
65927
|
+
__metadata("design:type", String)
|
|
65928
|
+
], MJArtifact_.prototype, "Visibility", void 0);
|
|
65831
65929
|
__decorate([
|
|
65832
65930
|
Field(),
|
|
65833
65931
|
MaxLength(510),
|
|
@@ -65867,6 +65965,7 @@ let CreateMJArtifactInput = class CreateMJArtifactInput {
|
|
|
65867
65965
|
TypeID;
|
|
65868
65966
|
Comments;
|
|
65869
65967
|
UserID;
|
|
65968
|
+
Visibility;
|
|
65870
65969
|
};
|
|
65871
65970
|
__decorate([
|
|
65872
65971
|
Field({ nullable: true }),
|
|
@@ -65896,6 +65995,10 @@ __decorate([
|
|
|
65896
65995
|
Field({ nullable: true }),
|
|
65897
65996
|
__metadata("design:type", String)
|
|
65898
65997
|
], CreateMJArtifactInput.prototype, "UserID", void 0);
|
|
65998
|
+
__decorate([
|
|
65999
|
+
Field({ nullable: true }),
|
|
66000
|
+
__metadata("design:type", String)
|
|
66001
|
+
], CreateMJArtifactInput.prototype, "Visibility", void 0);
|
|
65899
66002
|
CreateMJArtifactInput = __decorate([
|
|
65900
66003
|
InputType()
|
|
65901
66004
|
], CreateMJArtifactInput);
|
|
@@ -65908,6 +66011,7 @@ let UpdateMJArtifactInput = class UpdateMJArtifactInput {
|
|
|
65908
66011
|
TypeID;
|
|
65909
66012
|
Comments;
|
|
65910
66013
|
UserID;
|
|
66014
|
+
Visibility;
|
|
65911
66015
|
OldValues___;
|
|
65912
66016
|
};
|
|
65913
66017
|
__decorate([
|
|
@@ -65938,6 +66042,10 @@ __decorate([
|
|
|
65938
66042
|
Field({ nullable: true }),
|
|
65939
66043
|
__metadata("design:type", String)
|
|
65940
66044
|
], UpdateMJArtifactInput.prototype, "UserID", void 0);
|
|
66045
|
+
__decorate([
|
|
66046
|
+
Field({ nullable: true }),
|
|
66047
|
+
__metadata("design:type", String)
|
|
66048
|
+
], UpdateMJArtifactInput.prototype, "Visibility", void 0);
|
|
65941
66049
|
__decorate([
|
|
65942
66050
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
65943
66051
|
__metadata("design:type", Array)
|