@memberjunction/server 2.130.1 → 2.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +12 -6
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +81 -51
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +1 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +3 -1
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/package.json +43 -43
- package/src/generated/generated.ts +57 -39
- package/src/resolvers/RunAIAgentResolver.ts +7 -3
|
@@ -5809,6 +5809,7 @@ let MJAIAgent_ = class MJAIAgent_ {
|
|
|
5809
5809
|
AttachmentStorageProviderID;
|
|
5810
5810
|
AttachmentRootPath;
|
|
5811
5811
|
InlineStorageThresholdBytes;
|
|
5812
|
+
AgentTypePromptParams;
|
|
5812
5813
|
Parent;
|
|
5813
5814
|
ContextCompressionPrompt;
|
|
5814
5815
|
Type;
|
|
@@ -6091,6 +6092,10 @@ __decorate([
|
|
|
6091
6092
|
Field(() => Int, { nullable: true, description: `File size threshold for inline storage. Files <= this size are stored as base64 inline, larger files use MJStorage. NULL uses system default (1MB). Set to 0 to always use MJStorage.` }),
|
|
6092
6093
|
__metadata("design:type", Number)
|
|
6093
6094
|
], MJAIAgent_.prototype, "InlineStorageThresholdBytes", void 0);
|
|
6095
|
+
__decorate([
|
|
6096
|
+
Field({ nullable: true, description: `JSON object containing parameter values that customize how this agent's type-level system prompt is rendered. The schema is defined by the agent type's PromptParamsSchema field. Allows per-agent control over which prompt sections are included, enabling token savings by excluding unused documentation.` }),
|
|
6097
|
+
__metadata("design:type", String)
|
|
6098
|
+
], MJAIAgent_.prototype, "AgentTypePromptParams", void 0);
|
|
6094
6099
|
__decorate([
|
|
6095
6100
|
Field({ nullable: true }),
|
|
6096
6101
|
MaxLength(510),
|
|
@@ -6272,6 +6277,7 @@ let CreateMJAIAgentInput = class CreateMJAIAgentInput {
|
|
|
6272
6277
|
AttachmentStorageProviderID;
|
|
6273
6278
|
AttachmentRootPath;
|
|
6274
6279
|
InlineStorageThresholdBytes;
|
|
6280
|
+
AgentTypePromptParams;
|
|
6275
6281
|
};
|
|
6276
6282
|
__decorate([
|
|
6277
6283
|
Field({ nullable: true }),
|
|
@@ -6485,6 +6491,10 @@ __decorate([
|
|
|
6485
6491
|
Field(() => Int, { nullable: true }),
|
|
6486
6492
|
__metadata("design:type", Number)
|
|
6487
6493
|
], CreateMJAIAgentInput.prototype, "InlineStorageThresholdBytes", void 0);
|
|
6494
|
+
__decorate([
|
|
6495
|
+
Field({ nullable: true }),
|
|
6496
|
+
__metadata("design:type", String)
|
|
6497
|
+
], CreateMJAIAgentInput.prototype, "AgentTypePromptParams", void 0);
|
|
6488
6498
|
CreateMJAIAgentInput = __decorate([
|
|
6489
6499
|
InputType()
|
|
6490
6500
|
], CreateMJAIAgentInput);
|
|
@@ -6543,6 +6553,7 @@ let UpdateMJAIAgentInput = class UpdateMJAIAgentInput {
|
|
|
6543
6553
|
AttachmentStorageProviderID;
|
|
6544
6554
|
AttachmentRootPath;
|
|
6545
6555
|
InlineStorageThresholdBytes;
|
|
6556
|
+
AgentTypePromptParams;
|
|
6546
6557
|
OldValues___;
|
|
6547
6558
|
};
|
|
6548
6559
|
__decorate([
|
|
@@ -6757,6 +6768,10 @@ __decorate([
|
|
|
6757
6768
|
Field(() => Int, { nullable: true }),
|
|
6758
6769
|
__metadata("design:type", Number)
|
|
6759
6770
|
], UpdateMJAIAgentInput.prototype, "InlineStorageThresholdBytes", void 0);
|
|
6771
|
+
__decorate([
|
|
6772
|
+
Field({ nullable: true }),
|
|
6773
|
+
__metadata("design:type", String)
|
|
6774
|
+
], UpdateMJAIAgentInput.prototype, "AgentTypePromptParams", void 0);
|
|
6760
6775
|
__decorate([
|
|
6761
6776
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6762
6777
|
__metadata("design:type", Array)
|
|
@@ -9405,8 +9420,8 @@ let MJAIPrompt_ = class MJAIPrompt_ {
|
|
|
9405
9420
|
AIAgentActions_CompactPromptIDArray;
|
|
9406
9421
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
|
|
9407
9422
|
AIPrompts_ResultSelectorPromptIDArray;
|
|
9408
|
-
MJ_AIAgentPrompts_PromptIDArray;
|
|
9409
9423
|
MJ_AIPromptModels_PromptIDArray;
|
|
9424
|
+
MJ_AIAgentPrompts_PromptIDArray;
|
|
9410
9425
|
MJ_AIAgentSteps_PromptIDArray;
|
|
9411
9426
|
MJ_AIPromptRuns_PromptIDArray;
|
|
9412
9427
|
AIAgents_ContextCompressionPromptIDArray;
|
|
@@ -9695,14 +9710,14 @@ __decorate([
|
|
|
9695
9710
|
Field(() => [MJAIPrompt_]),
|
|
9696
9711
|
__metadata("design:type", Array)
|
|
9697
9712
|
], MJAIPrompt_.prototype, "AIPrompts_ResultSelectorPromptIDArray", void 0);
|
|
9698
|
-
__decorate([
|
|
9699
|
-
Field(() => [MJAIAgentPrompt_]),
|
|
9700
|
-
__metadata("design:type", Array)
|
|
9701
|
-
], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
9702
9713
|
__decorate([
|
|
9703
9714
|
Field(() => [MJAIPromptModel_]),
|
|
9704
9715
|
__metadata("design:type", Array)
|
|
9705
9716
|
], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
9717
|
+
__decorate([
|
|
9718
|
+
Field(() => [MJAIAgentPrompt_]),
|
|
9719
|
+
__metadata("design:type", Array)
|
|
9720
|
+
], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
9706
9721
|
__decorate([
|
|
9707
9722
|
Field(() => [MJAIAgentStep_]),
|
|
9708
9723
|
__metadata("design:type", Array)
|
|
@@ -10348,22 +10363,22 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
10348
10363
|
const result = await this.ArrayMapFieldNamesToCodeNames('AI Prompts', rows, this.GetUserFromPayload(userPayload));
|
|
10349
10364
|
return result;
|
|
10350
10365
|
}
|
|
10351
|
-
async
|
|
10352
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10366
|
+
async MJ_AIPromptModels_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10367
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
10353
10368
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10354
10369
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10355
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10370
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
10356
10371
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10357
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10372
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows, this.GetUserFromPayload(userPayload));
|
|
10358
10373
|
return result;
|
|
10359
10374
|
}
|
|
10360
|
-
async
|
|
10361
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10375
|
+
async MJ_AIAgentPrompts_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10376
|
+
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
10362
10377
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10363
10378
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10364
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10379
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
10365
10380
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10366
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10381
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows, this.GetUserFromPayload(userPayload));
|
|
10367
10382
|
return result;
|
|
10368
10383
|
}
|
|
10369
10384
|
async MJ_AIAgentSteps_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -10507,23 +10522,23 @@ __decorate([
|
|
|
10507
10522
|
__metadata("design:returntype", Promise)
|
|
10508
10523
|
], MJAIPromptResolver.prototype, "AIPrompts_ResultSelectorPromptIDArray", null);
|
|
10509
10524
|
__decorate([
|
|
10510
|
-
FieldResolver(() => [
|
|
10525
|
+
FieldResolver(() => [MJAIPromptModel_]),
|
|
10511
10526
|
__param(0, Root()),
|
|
10512
10527
|
__param(1, Ctx()),
|
|
10513
10528
|
__param(2, PubSub()),
|
|
10514
10529
|
__metadata("design:type", Function),
|
|
10515
10530
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10516
10531
|
__metadata("design:returntype", Promise)
|
|
10517
|
-
], MJAIPromptResolver.prototype, "
|
|
10532
|
+
], MJAIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
|
|
10518
10533
|
__decorate([
|
|
10519
|
-
FieldResolver(() => [
|
|
10534
|
+
FieldResolver(() => [MJAIAgentPrompt_]),
|
|
10520
10535
|
__param(0, Root()),
|
|
10521
10536
|
__param(1, Ctx()),
|
|
10522
10537
|
__param(2, PubSub()),
|
|
10523
10538
|
__metadata("design:type", Function),
|
|
10524
10539
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
10525
10540
|
__metadata("design:returntype", Promise)
|
|
10526
|
-
], MJAIPromptResolver.prototype, "
|
|
10541
|
+
], MJAIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
|
|
10527
10542
|
__decorate([
|
|
10528
10543
|
FieldResolver(() => [MJAIAgentStep_]),
|
|
10529
10544
|
__param(0, Root()),
|
|
@@ -45739,6 +45754,7 @@ let MJAIAgentType_ = class MJAIAgentType_ {
|
|
|
45739
45754
|
UIFormSectionKey;
|
|
45740
45755
|
UIFormKey;
|
|
45741
45756
|
UIFormSectionExpandedByDefault;
|
|
45757
|
+
PromptParamsSchema;
|
|
45742
45758
|
SystemPrompt;
|
|
45743
45759
|
AIAgents_TypeIDArray;
|
|
45744
45760
|
};
|
|
@@ -45799,6 +45815,10 @@ __decorate([
|
|
|
45799
45815
|
Field(() => Boolean, { description: `Determines whether the custom form section (specified by UIFormSectionClass) should be expanded by default when the AI Agent form loads. True means the section starts expanded, False means it starts collapsed. Only applies when UIFormSectionClass is specified. Defaults to 1 (expanded).` }),
|
|
45800
45816
|
__metadata("design:type", Boolean)
|
|
45801
45817
|
], MJAIAgentType_.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
45818
|
+
__decorate([
|
|
45819
|
+
Field({ nullable: true, description: `JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.` }),
|
|
45820
|
+
__metadata("design:type", String)
|
|
45821
|
+
], MJAIAgentType_.prototype, "PromptParamsSchema", void 0);
|
|
45802
45822
|
__decorate([
|
|
45803
45823
|
Field({ nullable: true }),
|
|
45804
45824
|
MaxLength(510),
|
|
@@ -45823,6 +45843,7 @@ let CreateMJAIAgentTypeInput = class CreateMJAIAgentTypeInput {
|
|
|
45823
45843
|
UIFormSectionKey;
|
|
45824
45844
|
UIFormKey;
|
|
45825
45845
|
UIFormSectionExpandedByDefault;
|
|
45846
|
+
PromptParamsSchema;
|
|
45826
45847
|
};
|
|
45827
45848
|
__decorate([
|
|
45828
45849
|
Field({ nullable: true }),
|
|
@@ -45864,6 +45885,10 @@ __decorate([
|
|
|
45864
45885
|
Field(() => Boolean, { nullable: true }),
|
|
45865
45886
|
__metadata("design:type", Boolean)
|
|
45866
45887
|
], CreateMJAIAgentTypeInput.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
45888
|
+
__decorate([
|
|
45889
|
+
Field({ nullable: true }),
|
|
45890
|
+
__metadata("design:type", String)
|
|
45891
|
+
], CreateMJAIAgentTypeInput.prototype, "PromptParamsSchema", void 0);
|
|
45867
45892
|
CreateMJAIAgentTypeInput = __decorate([
|
|
45868
45893
|
InputType()
|
|
45869
45894
|
], CreateMJAIAgentTypeInput);
|
|
@@ -45879,6 +45904,7 @@ let UpdateMJAIAgentTypeInput = class UpdateMJAIAgentTypeInput {
|
|
|
45879
45904
|
UIFormSectionKey;
|
|
45880
45905
|
UIFormKey;
|
|
45881
45906
|
UIFormSectionExpandedByDefault;
|
|
45907
|
+
PromptParamsSchema;
|
|
45882
45908
|
OldValues___;
|
|
45883
45909
|
};
|
|
45884
45910
|
__decorate([
|
|
@@ -45921,6 +45947,10 @@ __decorate([
|
|
|
45921
45947
|
Field(() => Boolean, { nullable: true }),
|
|
45922
45948
|
__metadata("design:type", Boolean)
|
|
45923
45949
|
], UpdateMJAIAgentTypeInput.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
45950
|
+
__decorate([
|
|
45951
|
+
Field({ nullable: true }),
|
|
45952
|
+
__metadata("design:type", String)
|
|
45953
|
+
], UpdateMJAIAgentTypeInput.prototype, "PromptParamsSchema", void 0);
|
|
45924
45954
|
__decorate([
|
|
45925
45955
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
45926
45956
|
__metadata("design:type", Array)
|
|
@@ -47635,8 +47665,8 @@ let MJAIModality_ = class MJAIModality_ {
|
|
|
47635
47665
|
DisplayOrder;
|
|
47636
47666
|
_mj__CreatedAt;
|
|
47637
47667
|
_mj__UpdatedAt;
|
|
47638
|
-
MJ_AIModelModalities_ModalityIDArray;
|
|
47639
47668
|
MJ_AIAgentModalities_ModalityIDArray;
|
|
47669
|
+
MJ_AIModelModalities_ModalityIDArray;
|
|
47640
47670
|
MJ_ConversationDetailAttachments_ModalityIDArray;
|
|
47641
47671
|
AIModelTypes_DefaultOutputModalityIDArray;
|
|
47642
47672
|
AIModelTypes_DefaultInputModalityIDArray;
|
|
@@ -47693,14 +47723,14 @@ __decorate([
|
|
|
47693
47723
|
MaxLength(10),
|
|
47694
47724
|
__metadata("design:type", Date)
|
|
47695
47725
|
], MJAIModality_.prototype, "_mj__UpdatedAt", void 0);
|
|
47696
|
-
__decorate([
|
|
47697
|
-
Field(() => [MJAIModelModality_]),
|
|
47698
|
-
__metadata("design:type", Array)
|
|
47699
|
-
], MJAIModality_.prototype, "MJ_AIModelModalities_ModalityIDArray", void 0);
|
|
47700
47726
|
__decorate([
|
|
47701
47727
|
Field(() => [MJAIAgentModality_]),
|
|
47702
47728
|
__metadata("design:type", Array)
|
|
47703
47729
|
], MJAIModality_.prototype, "MJ_AIAgentModalities_ModalityIDArray", void 0);
|
|
47730
|
+
__decorate([
|
|
47731
|
+
Field(() => [MJAIModelModality_]),
|
|
47732
|
+
__metadata("design:type", Array)
|
|
47733
|
+
], MJAIModality_.prototype, "MJ_AIModelModalities_ModalityIDArray", void 0);
|
|
47704
47734
|
__decorate([
|
|
47705
47735
|
Field(() => [MJConversationDetailAttachment_]),
|
|
47706
47736
|
__metadata("design:type", Array)
|
|
@@ -47888,22 +47918,22 @@ let MJAIModalityResolver = class MJAIModalityResolver extends ResolverBase {
|
|
|
47888
47918
|
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
47889
47919
|
return result;
|
|
47890
47920
|
}
|
|
47891
|
-
async
|
|
47892
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
47921
|
+
async MJ_AIAgentModalities_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
47922
|
+
this.CheckUserReadPermissions('MJ: AI Agent Modalities', userPayload);
|
|
47893
47923
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47894
47924
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47895
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
47925
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModalities] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
47896
47926
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
47897
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
47927
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows, this.GetUserFromPayload(userPayload));
|
|
47898
47928
|
return result;
|
|
47899
47929
|
}
|
|
47900
|
-
async
|
|
47901
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
47930
|
+
async MJ_AIModelModalities_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
47931
|
+
this.CheckUserReadPermissions('MJ: AI Model Modalities', userPayload);
|
|
47902
47932
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47903
47933
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47904
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
47934
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelModalities] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
47905
47935
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
47906
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
47936
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Modalities', rows, this.GetUserFromPayload(userPayload));
|
|
47907
47937
|
return result;
|
|
47908
47938
|
}
|
|
47909
47939
|
async MJ_ConversationDetailAttachments_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -47984,23 +48014,23 @@ __decorate([
|
|
|
47984
48014
|
__metadata("design:returntype", Promise)
|
|
47985
48015
|
], MJAIModalityResolver.prototype, "MJAIModality", null);
|
|
47986
48016
|
__decorate([
|
|
47987
|
-
FieldResolver(() => [
|
|
48017
|
+
FieldResolver(() => [MJAIAgentModality_]),
|
|
47988
48018
|
__param(0, Root()),
|
|
47989
48019
|
__param(1, Ctx()),
|
|
47990
48020
|
__param(2, PubSub()),
|
|
47991
48021
|
__metadata("design:type", Function),
|
|
47992
48022
|
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
47993
48023
|
__metadata("design:returntype", Promise)
|
|
47994
|
-
], MJAIModalityResolver.prototype, "
|
|
48024
|
+
], MJAIModalityResolver.prototype, "MJ_AIAgentModalities_ModalityIDArray", null);
|
|
47995
48025
|
__decorate([
|
|
47996
|
-
FieldResolver(() => [
|
|
48026
|
+
FieldResolver(() => [MJAIModelModality_]),
|
|
47997
48027
|
__param(0, Root()),
|
|
47998
48028
|
__param(1, Ctx()),
|
|
47999
48029
|
__param(2, PubSub()),
|
|
48000
48030
|
__metadata("design:type", Function),
|
|
48001
48031
|
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
48002
48032
|
__metadata("design:returntype", Promise)
|
|
48003
|
-
], MJAIModalityResolver.prototype, "
|
|
48033
|
+
], MJAIModalityResolver.prototype, "MJ_AIModelModalities_ModalityIDArray", null);
|
|
48004
48034
|
__decorate([
|
|
48005
48035
|
FieldResolver(() => [MJConversationDetailAttachment_]),
|
|
48006
48036
|
__param(0, Root()),
|
|
@@ -87234,8 +87264,8 @@ let MJUser_ = class MJUser_ {
|
|
|
87234
87264
|
MJ_ReportUserStates_UserIDArray;
|
|
87235
87265
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
87236
87266
|
MJ_DashboardUserStates_UserIDArray;
|
|
87237
|
-
MJ_ArtifactVersions_UserIDArray;
|
|
87238
87267
|
MJ_PublicLinks_UserIDArray;
|
|
87268
|
+
MJ_ArtifactVersions_UserIDArray;
|
|
87239
87269
|
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
87240
87270
|
MJ_ScheduledJobs_NotifyUserIDArray;
|
|
87241
87271
|
MJ_ArtifactPermissions_UserIDArray;
|
|
@@ -87521,14 +87551,14 @@ __decorate([
|
|
|
87521
87551
|
Field(() => [MJDashboardUserState_]),
|
|
87522
87552
|
__metadata("design:type", Array)
|
|
87523
87553
|
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
87524
|
-
__decorate([
|
|
87525
|
-
Field(() => [MJArtifactVersion_]),
|
|
87526
|
-
__metadata("design:type", Array)
|
|
87527
|
-
], MJUser_.prototype, "MJ_ArtifactVersions_UserIDArray", void 0);
|
|
87528
87554
|
__decorate([
|
|
87529
87555
|
Field(() => [MJPublicLink_]),
|
|
87530
87556
|
__metadata("design:type", Array)
|
|
87531
87557
|
], MJUser_.prototype, "MJ_PublicLinks_UserIDArray", void 0);
|
|
87558
|
+
__decorate([
|
|
87559
|
+
Field(() => [MJArtifactVersion_]),
|
|
87560
|
+
__metadata("design:type", Array)
|
|
87561
|
+
], MJUser_.prototype, "MJ_ArtifactVersions_UserIDArray", void 0);
|
|
87532
87562
|
__decorate([
|
|
87533
87563
|
Field(() => [MJScheduledJobRun_]),
|
|
87534
87564
|
__metadata("design:type", Array)
|
|
@@ -88201,22 +88231,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
88201
88231
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows, this.GetUserFromPayload(userPayload));
|
|
88202
88232
|
return result;
|
|
88203
88233
|
}
|
|
88204
|
-
async
|
|
88205
|
-
this.CheckUserReadPermissions('MJ:
|
|
88234
|
+
async MJ_PublicLinks_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
88235
|
+
this.CheckUserReadPermissions('MJ: Public Links', userPayload);
|
|
88206
88236
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88207
88237
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
88208
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
88238
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwPublicLinks] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Public Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
88209
88239
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
88210
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
88240
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Public Links', rows, this.GetUserFromPayload(userPayload));
|
|
88211
88241
|
return result;
|
|
88212
88242
|
}
|
|
88213
|
-
async
|
|
88214
|
-
this.CheckUserReadPermissions('MJ:
|
|
88243
|
+
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
88244
|
+
this.CheckUserReadPermissions('MJ: Artifact Versions', userPayload);
|
|
88215
88245
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88216
88246
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
88217
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
88247
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwArtifactVersions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
88218
88248
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
88219
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
88249
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Artifact Versions', rows, this.GetUserFromPayload(userPayload));
|
|
88220
88250
|
return result;
|
|
88221
88251
|
}
|
|
88222
88252
|
async MJ_ScheduledJobRuns_ExecutedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -88836,23 +88866,23 @@ __decorate([
|
|
|
88836
88866
|
__metadata("design:returntype", Promise)
|
|
88837
88867
|
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
88838
88868
|
__decorate([
|
|
88839
|
-
FieldResolver(() => [
|
|
88869
|
+
FieldResolver(() => [MJPublicLink_]),
|
|
88840
88870
|
__param(0, Root()),
|
|
88841
88871
|
__param(1, Ctx()),
|
|
88842
88872
|
__param(2, PubSub()),
|
|
88843
88873
|
__metadata("design:type", Function),
|
|
88844
88874
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
88845
88875
|
__metadata("design:returntype", Promise)
|
|
88846
|
-
], MJUserResolverBase.prototype, "
|
|
88876
|
+
], MJUserResolverBase.prototype, "MJ_PublicLinks_UserIDArray", null);
|
|
88847
88877
|
__decorate([
|
|
88848
|
-
FieldResolver(() => [
|
|
88878
|
+
FieldResolver(() => [MJArtifactVersion_]),
|
|
88849
88879
|
__param(0, Root()),
|
|
88850
88880
|
__param(1, Ctx()),
|
|
88851
88881
|
__param(2, PubSub()),
|
|
88852
88882
|
__metadata("design:type", Function),
|
|
88853
88883
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
88854
88884
|
__metadata("design:returntype", Promise)
|
|
88855
|
-
], MJUserResolverBase.prototype, "
|
|
88885
|
+
], MJUserResolverBase.prototype, "MJ_ArtifactVersions_UserIDArray", null);
|
|
88856
88886
|
__decorate([
|
|
88857
88887
|
FieldResolver(() => [MJScheduledJobRun_]),
|
|
88858
88888
|
__param(0, Root()),
|