@memberjunction/server 2.32.2 → 2.34.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 +182 -12
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1148 -61
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +78 -66
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/ActionResolver.d.ts +49 -0
- package/dist/resolvers/ActionResolver.d.ts.map +1 -0
- package/dist/resolvers/ActionResolver.js +359 -0
- package/dist/resolvers/ActionResolver.js.map +1 -0
- package/dist/resolvers/GetDataContextDataResolver.d.ts +1 -1
- package/dist/resolvers/GetDataContextDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.js +1 -1
- package/dist/resolvers/GetDataContextDataResolver.js.map +1 -1
- package/package.json +24 -22
- package/src/generated/generated.ts +813 -122
- package/src/generic/ResolverBase.ts +117 -78
- package/src/index.ts +22 -0
- package/src/resolvers/ActionResolver.ts +547 -0
- package/src/resolvers/GetDataContextDataResolver.ts +2 -2
|
@@ -7255,10 +7255,6 @@ let EntityField_ = class EntityField_ {
|
|
|
7255
7255
|
ScopeDefault;
|
|
7256
7256
|
AutoUpdateRelatedEntityInfo;
|
|
7257
7257
|
ValuesToPackWithSchema;
|
|
7258
|
-
GeneratedValidationFunctionName;
|
|
7259
|
-
GeneratedValidationFunctionDescription;
|
|
7260
|
-
GeneratedValidationFunctionCode;
|
|
7261
|
-
GeneratedValidationFunctionCheckConstraint;
|
|
7262
7258
|
FieldCodeName;
|
|
7263
7259
|
Entity;
|
|
7264
7260
|
SchemaName;
|
|
@@ -7467,23 +7463,6 @@ __decorate([
|
|
|
7467
7463
|
MaxLength(20),
|
|
7468
7464
|
__metadata("design:type", String)
|
|
7469
7465
|
], EntityField_.prototype, "ValuesToPackWithSchema", void 0);
|
|
7470
|
-
__decorate([
|
|
7471
|
-
Field({ nullable: true, description: `Contains the name of the generated field validation function, if it exists, null otherwise` }),
|
|
7472
|
-
MaxLength(510),
|
|
7473
|
-
__metadata("design:type", String)
|
|
7474
|
-
], EntityField_.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7475
|
-
__decorate([
|
|
7476
|
-
Field({ nullable: true, description: `Contains a description for business users of what the validation function for this field does, if it exists` }),
|
|
7477
|
-
__metadata("design:type", String)
|
|
7478
|
-
], EntityField_.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7479
|
-
__decorate([
|
|
7480
|
-
Field({ nullable: true, description: `Contains the generated code for the field validation function, if it exists, null otherwise.` }),
|
|
7481
|
-
__metadata("design:type", String)
|
|
7482
|
-
], EntityField_.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7483
|
-
__decorate([
|
|
7484
|
-
Field({ nullable: true, description: `If a generated validation function was generated previously, this stores the text from the source CHECK constraint in the database. This is stored so that regeneration of the validation function will only occur when the source CHECK constraint changes.` }),
|
|
7485
|
-
__metadata("design:type", String)
|
|
7486
|
-
], EntityField_.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7487
7466
|
__decorate([
|
|
7488
7467
|
Field({ nullable: true }),
|
|
7489
7468
|
__metadata("design:type", String)
|
|
@@ -7582,10 +7561,6 @@ let CreateEntityFieldInput = class CreateEntityFieldInput {
|
|
|
7582
7561
|
ScopeDefault;
|
|
7583
7562
|
AutoUpdateRelatedEntityInfo;
|
|
7584
7563
|
ValuesToPackWithSchema;
|
|
7585
|
-
GeneratedValidationFunctionName;
|
|
7586
|
-
GeneratedValidationFunctionDescription;
|
|
7587
|
-
GeneratedValidationFunctionCode;
|
|
7588
|
-
GeneratedValidationFunctionCheckConstraint;
|
|
7589
7564
|
};
|
|
7590
7565
|
__decorate([
|
|
7591
7566
|
Field({ nullable: true }),
|
|
@@ -7703,22 +7678,6 @@ __decorate([
|
|
|
7703
7678
|
Field({ nullable: true }),
|
|
7704
7679
|
__metadata("design:type", String)
|
|
7705
7680
|
], CreateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
7706
|
-
__decorate([
|
|
7707
|
-
Field({ nullable: true }),
|
|
7708
|
-
__metadata("design:type", String)
|
|
7709
|
-
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7710
|
-
__decorate([
|
|
7711
|
-
Field({ nullable: true }),
|
|
7712
|
-
__metadata("design:type", String)
|
|
7713
|
-
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7714
|
-
__decorate([
|
|
7715
|
-
Field({ nullable: true }),
|
|
7716
|
-
__metadata("design:type", String)
|
|
7717
|
-
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7718
|
-
__decorate([
|
|
7719
|
-
Field({ nullable: true }),
|
|
7720
|
-
__metadata("design:type", String)
|
|
7721
|
-
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7722
7681
|
CreateEntityFieldInput = __decorate([
|
|
7723
7682
|
InputType()
|
|
7724
7683
|
], CreateEntityFieldInput);
|
|
@@ -7754,10 +7713,6 @@ let UpdateEntityFieldInput = class UpdateEntityFieldInput {
|
|
|
7754
7713
|
ScopeDefault;
|
|
7755
7714
|
AutoUpdateRelatedEntityInfo;
|
|
7756
7715
|
ValuesToPackWithSchema;
|
|
7757
|
-
GeneratedValidationFunctionName;
|
|
7758
|
-
GeneratedValidationFunctionDescription;
|
|
7759
|
-
GeneratedValidationFunctionCode;
|
|
7760
|
-
GeneratedValidationFunctionCheckConstraint;
|
|
7761
7716
|
OldValues___;
|
|
7762
7717
|
};
|
|
7763
7718
|
__decorate([
|
|
@@ -7880,22 +7835,6 @@ __decorate([
|
|
|
7880
7835
|
Field({ nullable: true }),
|
|
7881
7836
|
__metadata("design:type", String)
|
|
7882
7837
|
], UpdateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
7883
|
-
__decorate([
|
|
7884
|
-
Field({ nullable: true }),
|
|
7885
|
-
__metadata("design:type", String)
|
|
7886
|
-
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7887
|
-
__decorate([
|
|
7888
|
-
Field({ nullable: true }),
|
|
7889
|
-
__metadata("design:type", String)
|
|
7890
|
-
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7891
|
-
__decorate([
|
|
7892
|
-
Field({ nullable: true }),
|
|
7893
|
-
__metadata("design:type", String)
|
|
7894
|
-
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7895
|
-
__decorate([
|
|
7896
|
-
Field({ nullable: true }),
|
|
7897
|
-
__metadata("design:type", String)
|
|
7898
|
-
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7899
7838
|
__decorate([
|
|
7900
7839
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
7901
7840
|
__metadata("design:type", Array)
|
|
@@ -25515,6 +25454,7 @@ let Conversation_ = class Conversation_ {
|
|
|
25515
25454
|
DataContext;
|
|
25516
25455
|
ConversationDetails_ConversationIDArray;
|
|
25517
25456
|
Reports_ConversationIDArray;
|
|
25457
|
+
MJ_ConversationArtifacts_ConversationIDArray;
|
|
25518
25458
|
};
|
|
25519
25459
|
__decorate([
|
|
25520
25460
|
Field(),
|
|
@@ -25597,6 +25537,10 @@ __decorate([
|
|
|
25597
25537
|
Field(() => [Report_]),
|
|
25598
25538
|
__metadata("design:type", Array)
|
|
25599
25539
|
], Conversation_.prototype, "Reports_ConversationIDArray", void 0);
|
|
25540
|
+
__decorate([
|
|
25541
|
+
Field(() => [ConversationArtifact_]),
|
|
25542
|
+
__metadata("design:type", Array)
|
|
25543
|
+
], Conversation_.prototype, "MJ_ConversationArtifacts_ConversationIDArray", void 0);
|
|
25600
25544
|
Conversation_ = __decorate([
|
|
25601
25545
|
ObjectType()
|
|
25602
25546
|
], Conversation_);
|
|
@@ -25789,6 +25733,13 @@ let ConversationResolver = class ConversationResolver extends ResolverBase {
|
|
|
25789
25733
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
25790
25734
|
return result;
|
|
25791
25735
|
}
|
|
25736
|
+
async MJ_ConversationArtifacts_ConversationIDArray(conversation_, { dataSources, userPayload }, pubSub) {
|
|
25737
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifacts', userPayload);
|
|
25738
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
25739
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifacts] WHERE [ConversationID]='${conversation_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
25740
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifacts', await dataSource.query(sSQL));
|
|
25741
|
+
return result;
|
|
25742
|
+
}
|
|
25792
25743
|
async CreateConversation(input, { dataSources, userPayload }, pubSub) {
|
|
25793
25744
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
25794
25745
|
return this.CreateRecord('Conversations', input, dataSource, userPayload, pubSub);
|
|
@@ -25857,6 +25808,15 @@ __decorate([
|
|
|
25857
25808
|
__metadata("design:paramtypes", [Conversation_, Object, PubSubEngine]),
|
|
25858
25809
|
__metadata("design:returntype", Promise)
|
|
25859
25810
|
], ConversationResolver.prototype, "Reports_ConversationIDArray", null);
|
|
25811
|
+
__decorate([
|
|
25812
|
+
FieldResolver(() => [ConversationArtifact_]),
|
|
25813
|
+
__param(0, Root()),
|
|
25814
|
+
__param(1, Ctx()),
|
|
25815
|
+
__param(2, PubSub()),
|
|
25816
|
+
__metadata("design:type", Function),
|
|
25817
|
+
__metadata("design:paramtypes", [Conversation_, Object, PubSubEngine]),
|
|
25818
|
+
__metadata("design:returntype", Promise)
|
|
25819
|
+
], ConversationResolver.prototype, "MJ_ConversationArtifacts_ConversationIDArray", null);
|
|
25860
25820
|
__decorate([
|
|
25861
25821
|
Mutation(() => Conversation_),
|
|
25862
25822
|
__param(0, Arg('input', () => CreateConversationInput)),
|
|
@@ -46644,6 +46604,278 @@ ResourceLinkResolver = __decorate([
|
|
|
46644
46604
|
Resolver(ResourceLink_)
|
|
46645
46605
|
], ResourceLinkResolver);
|
|
46646
46606
|
export { ResourceLinkResolver };
|
|
46607
|
+
let ConversationArtifactVersion_ = class ConversationArtifactVersion_ {
|
|
46608
|
+
ID;
|
|
46609
|
+
ConversationArtifactID;
|
|
46610
|
+
Version;
|
|
46611
|
+
Configuration;
|
|
46612
|
+
Content;
|
|
46613
|
+
Comments;
|
|
46614
|
+
_mj__CreatedAt;
|
|
46615
|
+
_mj__UpdatedAt;
|
|
46616
|
+
ConversationArtifact;
|
|
46617
|
+
};
|
|
46618
|
+
__decorate([
|
|
46619
|
+
Field(),
|
|
46620
|
+
MaxLength(16),
|
|
46621
|
+
__metadata("design:type", String)
|
|
46622
|
+
], ConversationArtifactVersion_.prototype, "ID", void 0);
|
|
46623
|
+
__decorate([
|
|
46624
|
+
Field({ description: `Reference to the parent artifact` }),
|
|
46625
|
+
MaxLength(16),
|
|
46626
|
+
__metadata("design:type", String)
|
|
46627
|
+
], ConversationArtifactVersion_.prototype, "ConversationArtifactID", void 0);
|
|
46628
|
+
__decorate([
|
|
46629
|
+
Field(() => Int, { description: `Sequential version number (starting from 1) for this artifact` }),
|
|
46630
|
+
__metadata("design:type", Number)
|
|
46631
|
+
], ConversationArtifactVersion_.prototype, "Version", void 0);
|
|
46632
|
+
__decorate([
|
|
46633
|
+
Field({ description: `JSON configuration and metadata for this artifact version` }),
|
|
46634
|
+
__metadata("design:type", String)
|
|
46635
|
+
], ConversationArtifactVersion_.prototype, "Configuration", void 0);
|
|
46636
|
+
__decorate([
|
|
46637
|
+
Field({ nullable: true, description: `Actual content of the artifact, if stored separately from configuration` }),
|
|
46638
|
+
__metadata("design:type", String)
|
|
46639
|
+
], ConversationArtifactVersion_.prototype, "Content", void 0);
|
|
46640
|
+
__decorate([
|
|
46641
|
+
Field({ nullable: true, description: `User comments specific to this version` }),
|
|
46642
|
+
__metadata("design:type", String)
|
|
46643
|
+
], ConversationArtifactVersion_.prototype, "Comments", void 0);
|
|
46644
|
+
__decorate([
|
|
46645
|
+
Field(),
|
|
46646
|
+
MaxLength(10),
|
|
46647
|
+
__metadata("design:type", Date)
|
|
46648
|
+
], ConversationArtifactVersion_.prototype, "_mj__CreatedAt", void 0);
|
|
46649
|
+
__decorate([
|
|
46650
|
+
Field(),
|
|
46651
|
+
MaxLength(10),
|
|
46652
|
+
__metadata("design:type", Date)
|
|
46653
|
+
], ConversationArtifactVersion_.prototype, "_mj__UpdatedAt", void 0);
|
|
46654
|
+
__decorate([
|
|
46655
|
+
Field(),
|
|
46656
|
+
MaxLength(510),
|
|
46657
|
+
__metadata("design:type", String)
|
|
46658
|
+
], ConversationArtifactVersion_.prototype, "ConversationArtifact", void 0);
|
|
46659
|
+
ConversationArtifactVersion_ = __decorate([
|
|
46660
|
+
ObjectType()
|
|
46661
|
+
], ConversationArtifactVersion_);
|
|
46662
|
+
export { ConversationArtifactVersion_ };
|
|
46663
|
+
let CreateConversationArtifactVersionInput = class CreateConversationArtifactVersionInput {
|
|
46664
|
+
ConversationArtifactID;
|
|
46665
|
+
Version;
|
|
46666
|
+
Configuration;
|
|
46667
|
+
Content;
|
|
46668
|
+
Comments;
|
|
46669
|
+
};
|
|
46670
|
+
__decorate([
|
|
46671
|
+
Field({ nullable: true }),
|
|
46672
|
+
__metadata("design:type", String)
|
|
46673
|
+
], CreateConversationArtifactVersionInput.prototype, "ConversationArtifactID", void 0);
|
|
46674
|
+
__decorate([
|
|
46675
|
+
Field(() => Int, { nullable: true }),
|
|
46676
|
+
__metadata("design:type", Number)
|
|
46677
|
+
], CreateConversationArtifactVersionInput.prototype, "Version", void 0);
|
|
46678
|
+
__decorate([
|
|
46679
|
+
Field({ nullable: true }),
|
|
46680
|
+
__metadata("design:type", String)
|
|
46681
|
+
], CreateConversationArtifactVersionInput.prototype, "Configuration", void 0);
|
|
46682
|
+
__decorate([
|
|
46683
|
+
Field({ nullable: true }),
|
|
46684
|
+
__metadata("design:type", String)
|
|
46685
|
+
], CreateConversationArtifactVersionInput.prototype, "Content", void 0);
|
|
46686
|
+
__decorate([
|
|
46687
|
+
Field({ nullable: true }),
|
|
46688
|
+
__metadata("design:type", String)
|
|
46689
|
+
], CreateConversationArtifactVersionInput.prototype, "Comments", void 0);
|
|
46690
|
+
CreateConversationArtifactVersionInput = __decorate([
|
|
46691
|
+
InputType()
|
|
46692
|
+
], CreateConversationArtifactVersionInput);
|
|
46693
|
+
export { CreateConversationArtifactVersionInput };
|
|
46694
|
+
let UpdateConversationArtifactVersionInput = class UpdateConversationArtifactVersionInput {
|
|
46695
|
+
ID;
|
|
46696
|
+
ConversationArtifactID;
|
|
46697
|
+
Version;
|
|
46698
|
+
Configuration;
|
|
46699
|
+
Content;
|
|
46700
|
+
Comments;
|
|
46701
|
+
OldValues___;
|
|
46702
|
+
};
|
|
46703
|
+
__decorate([
|
|
46704
|
+
Field(),
|
|
46705
|
+
__metadata("design:type", String)
|
|
46706
|
+
], UpdateConversationArtifactVersionInput.prototype, "ID", void 0);
|
|
46707
|
+
__decorate([
|
|
46708
|
+
Field({ nullable: true }),
|
|
46709
|
+
__metadata("design:type", String)
|
|
46710
|
+
], UpdateConversationArtifactVersionInput.prototype, "ConversationArtifactID", void 0);
|
|
46711
|
+
__decorate([
|
|
46712
|
+
Field(() => Int, { nullable: true }),
|
|
46713
|
+
__metadata("design:type", Number)
|
|
46714
|
+
], UpdateConversationArtifactVersionInput.prototype, "Version", void 0);
|
|
46715
|
+
__decorate([
|
|
46716
|
+
Field({ nullable: true }),
|
|
46717
|
+
__metadata("design:type", String)
|
|
46718
|
+
], UpdateConversationArtifactVersionInput.prototype, "Configuration", void 0);
|
|
46719
|
+
__decorate([
|
|
46720
|
+
Field({ nullable: true }),
|
|
46721
|
+
__metadata("design:type", String)
|
|
46722
|
+
], UpdateConversationArtifactVersionInput.prototype, "Content", void 0);
|
|
46723
|
+
__decorate([
|
|
46724
|
+
Field({ nullable: true }),
|
|
46725
|
+
__metadata("design:type", String)
|
|
46726
|
+
], UpdateConversationArtifactVersionInput.prototype, "Comments", void 0);
|
|
46727
|
+
__decorate([
|
|
46728
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
46729
|
+
__metadata("design:type", Array)
|
|
46730
|
+
], UpdateConversationArtifactVersionInput.prototype, "OldValues___", void 0);
|
|
46731
|
+
UpdateConversationArtifactVersionInput = __decorate([
|
|
46732
|
+
InputType()
|
|
46733
|
+
], UpdateConversationArtifactVersionInput);
|
|
46734
|
+
export { UpdateConversationArtifactVersionInput };
|
|
46735
|
+
let RunConversationArtifactVersionViewResult = class RunConversationArtifactVersionViewResult {
|
|
46736
|
+
Results;
|
|
46737
|
+
UserViewRunID;
|
|
46738
|
+
RowCount;
|
|
46739
|
+
TotalRowCount;
|
|
46740
|
+
ExecutionTime;
|
|
46741
|
+
ErrorMessage;
|
|
46742
|
+
Success;
|
|
46743
|
+
};
|
|
46744
|
+
__decorate([
|
|
46745
|
+
Field(() => [ConversationArtifactVersion_]),
|
|
46746
|
+
__metadata("design:type", Array)
|
|
46747
|
+
], RunConversationArtifactVersionViewResult.prototype, "Results", void 0);
|
|
46748
|
+
__decorate([
|
|
46749
|
+
Field(() => String, { nullable: true }),
|
|
46750
|
+
__metadata("design:type", String)
|
|
46751
|
+
], RunConversationArtifactVersionViewResult.prototype, "UserViewRunID", void 0);
|
|
46752
|
+
__decorate([
|
|
46753
|
+
Field(() => Int, { nullable: true }),
|
|
46754
|
+
__metadata("design:type", Number)
|
|
46755
|
+
], RunConversationArtifactVersionViewResult.prototype, "RowCount", void 0);
|
|
46756
|
+
__decorate([
|
|
46757
|
+
Field(() => Int, { nullable: true }),
|
|
46758
|
+
__metadata("design:type", Number)
|
|
46759
|
+
], RunConversationArtifactVersionViewResult.prototype, "TotalRowCount", void 0);
|
|
46760
|
+
__decorate([
|
|
46761
|
+
Field(() => Int, { nullable: true }),
|
|
46762
|
+
__metadata("design:type", Number)
|
|
46763
|
+
], RunConversationArtifactVersionViewResult.prototype, "ExecutionTime", void 0);
|
|
46764
|
+
__decorate([
|
|
46765
|
+
Field({ nullable: true }),
|
|
46766
|
+
__metadata("design:type", String)
|
|
46767
|
+
], RunConversationArtifactVersionViewResult.prototype, "ErrorMessage", void 0);
|
|
46768
|
+
__decorate([
|
|
46769
|
+
Field(() => Boolean, { nullable: false }),
|
|
46770
|
+
__metadata("design:type", Boolean)
|
|
46771
|
+
], RunConversationArtifactVersionViewResult.prototype, "Success", void 0);
|
|
46772
|
+
RunConversationArtifactVersionViewResult = __decorate([
|
|
46773
|
+
ObjectType()
|
|
46774
|
+
], RunConversationArtifactVersionViewResult);
|
|
46775
|
+
export { RunConversationArtifactVersionViewResult };
|
|
46776
|
+
let ConversationArtifactVersionResolver = class ConversationArtifactVersionResolver extends ResolverBase {
|
|
46777
|
+
async RunConversationArtifactVersionViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
46778
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46779
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
46780
|
+
}
|
|
46781
|
+
async RunConversationArtifactVersionViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
46782
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46783
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
46784
|
+
}
|
|
46785
|
+
async RunConversationArtifactVersionDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
46786
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46787
|
+
input.EntityName = 'MJ: Conversation Artifact Versions';
|
|
46788
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
46789
|
+
}
|
|
46790
|
+
async ConversationArtifactVersion(ID, { dataSources, userPayload }, pubSub) {
|
|
46791
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
46792
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46793
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
46794
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
46795
|
+
return result;
|
|
46796
|
+
}
|
|
46797
|
+
async CreateConversationArtifactVersion(input, { dataSources, userPayload }, pubSub) {
|
|
46798
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
46799
|
+
return this.CreateRecord('MJ: Conversation Artifact Versions', input, dataSource, userPayload, pubSub);
|
|
46800
|
+
}
|
|
46801
|
+
async UpdateConversationArtifactVersion(input, { dataSources, userPayload }, pubSub) {
|
|
46802
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
46803
|
+
return this.UpdateRecord('MJ: Conversation Artifact Versions', input, dataSource, userPayload, pubSub);
|
|
46804
|
+
}
|
|
46805
|
+
async DeleteConversationArtifactVersion(ID, options, { dataSources, userPayload }, pubSub) {
|
|
46806
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
46807
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
46808
|
+
return this.DeleteRecord('MJ: Conversation Artifact Versions', key, options, dataSource, userPayload, pubSub);
|
|
46809
|
+
}
|
|
46810
|
+
};
|
|
46811
|
+
__decorate([
|
|
46812
|
+
Query(() => RunConversationArtifactVersionViewResult),
|
|
46813
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
46814
|
+
__param(1, Ctx()),
|
|
46815
|
+
__param(2, PubSub()),
|
|
46816
|
+
__metadata("design:type", Function),
|
|
46817
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
46818
|
+
__metadata("design:returntype", Promise)
|
|
46819
|
+
], ConversationArtifactVersionResolver.prototype, "RunConversationArtifactVersionViewByID", null);
|
|
46820
|
+
__decorate([
|
|
46821
|
+
Query(() => RunConversationArtifactVersionViewResult),
|
|
46822
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
46823
|
+
__param(1, Ctx()),
|
|
46824
|
+
__param(2, PubSub()),
|
|
46825
|
+
__metadata("design:type", Function),
|
|
46826
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
46827
|
+
__metadata("design:returntype", Promise)
|
|
46828
|
+
], ConversationArtifactVersionResolver.prototype, "RunConversationArtifactVersionViewByName", null);
|
|
46829
|
+
__decorate([
|
|
46830
|
+
Query(() => RunConversationArtifactVersionViewResult),
|
|
46831
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
46832
|
+
__param(1, Ctx()),
|
|
46833
|
+
__param(2, PubSub()),
|
|
46834
|
+
__metadata("design:type", Function),
|
|
46835
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
46836
|
+
__metadata("design:returntype", Promise)
|
|
46837
|
+
], ConversationArtifactVersionResolver.prototype, "RunConversationArtifactVersionDynamicView", null);
|
|
46838
|
+
__decorate([
|
|
46839
|
+
Query(() => ConversationArtifactVersion_, { nullable: true }),
|
|
46840
|
+
__param(0, Arg('ID', () => String)),
|
|
46841
|
+
__param(1, Ctx()),
|
|
46842
|
+
__param(2, PubSub()),
|
|
46843
|
+
__metadata("design:type", Function),
|
|
46844
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
46845
|
+
__metadata("design:returntype", Promise)
|
|
46846
|
+
], ConversationArtifactVersionResolver.prototype, "ConversationArtifactVersion", null);
|
|
46847
|
+
__decorate([
|
|
46848
|
+
Mutation(() => ConversationArtifactVersion_),
|
|
46849
|
+
__param(0, Arg('input', () => CreateConversationArtifactVersionInput)),
|
|
46850
|
+
__param(1, Ctx()),
|
|
46851
|
+
__param(2, PubSub()),
|
|
46852
|
+
__metadata("design:type", Function),
|
|
46853
|
+
__metadata("design:paramtypes", [CreateConversationArtifactVersionInput, Object, PubSubEngine]),
|
|
46854
|
+
__metadata("design:returntype", Promise)
|
|
46855
|
+
], ConversationArtifactVersionResolver.prototype, "CreateConversationArtifactVersion", null);
|
|
46856
|
+
__decorate([
|
|
46857
|
+
Mutation(() => ConversationArtifactVersion_),
|
|
46858
|
+
__param(0, Arg('input', () => UpdateConversationArtifactVersionInput)),
|
|
46859
|
+
__param(1, Ctx()),
|
|
46860
|
+
__param(2, PubSub()),
|
|
46861
|
+
__metadata("design:type", Function),
|
|
46862
|
+
__metadata("design:paramtypes", [UpdateConversationArtifactVersionInput, Object, PubSubEngine]),
|
|
46863
|
+
__metadata("design:returntype", Promise)
|
|
46864
|
+
], ConversationArtifactVersionResolver.prototype, "UpdateConversationArtifactVersion", null);
|
|
46865
|
+
__decorate([
|
|
46866
|
+
Mutation(() => ConversationArtifactVersion_),
|
|
46867
|
+
__param(0, Arg('ID', () => String)),
|
|
46868
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
46869
|
+
__param(2, Ctx()),
|
|
46870
|
+
__param(3, PubSub()),
|
|
46871
|
+
__metadata("design:type", Function),
|
|
46872
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
46873
|
+
__metadata("design:returntype", Promise)
|
|
46874
|
+
], ConversationArtifactVersionResolver.prototype, "DeleteConversationArtifactVersion", null);
|
|
46875
|
+
ConversationArtifactVersionResolver = __decorate([
|
|
46876
|
+
Resolver(ConversationArtifactVersion_)
|
|
46877
|
+
], ConversationArtifactVersionResolver);
|
|
46878
|
+
export { ConversationArtifactVersionResolver };
|
|
46647
46879
|
let AIAgentRequest_ = class AIAgentRequest_ {
|
|
46648
46880
|
ID;
|
|
46649
46881
|
AgentID;
|
|
@@ -47476,6 +47708,617 @@ QueryEntityResolver = __decorate([
|
|
|
47476
47708
|
Resolver(QueryEntity_)
|
|
47477
47709
|
], QueryEntityResolver);
|
|
47478
47710
|
export { QueryEntityResolver };
|
|
47711
|
+
let ArtifactType_ = class ArtifactType_ {
|
|
47712
|
+
ID;
|
|
47713
|
+
Name;
|
|
47714
|
+
Description;
|
|
47715
|
+
ContentType;
|
|
47716
|
+
IsEnabled;
|
|
47717
|
+
_mj__CreatedAt;
|
|
47718
|
+
_mj__UpdatedAt;
|
|
47719
|
+
MJ_ConversationArtifacts_ArtifactTypeIDArray;
|
|
47720
|
+
};
|
|
47721
|
+
__decorate([
|
|
47722
|
+
Field(),
|
|
47723
|
+
MaxLength(16),
|
|
47724
|
+
__metadata("design:type", String)
|
|
47725
|
+
], ArtifactType_.prototype, "ID", void 0);
|
|
47726
|
+
__decorate([
|
|
47727
|
+
Field({ description: `Display name of the artifact type` }),
|
|
47728
|
+
MaxLength(200),
|
|
47729
|
+
__metadata("design:type", String)
|
|
47730
|
+
], ArtifactType_.prototype, "Name", void 0);
|
|
47731
|
+
__decorate([
|
|
47732
|
+
Field({ nullable: true, description: `Detailed description of the artifact type` }),
|
|
47733
|
+
__metadata("design:type", String)
|
|
47734
|
+
], ArtifactType_.prototype, "Description", void 0);
|
|
47735
|
+
__decorate([
|
|
47736
|
+
Field({ description: `MIME type or content identifier for this artifact type` }),
|
|
47737
|
+
MaxLength(200),
|
|
47738
|
+
__metadata("design:type", String)
|
|
47739
|
+
], ArtifactType_.prototype, "ContentType", void 0);
|
|
47740
|
+
__decorate([
|
|
47741
|
+
Field(() => Boolean, { description: `Indicates if this artifact type is currently available for use` }),
|
|
47742
|
+
__metadata("design:type", Boolean)
|
|
47743
|
+
], ArtifactType_.prototype, "IsEnabled", void 0);
|
|
47744
|
+
__decorate([
|
|
47745
|
+
Field(),
|
|
47746
|
+
MaxLength(10),
|
|
47747
|
+
__metadata("design:type", Date)
|
|
47748
|
+
], ArtifactType_.prototype, "_mj__CreatedAt", void 0);
|
|
47749
|
+
__decorate([
|
|
47750
|
+
Field(),
|
|
47751
|
+
MaxLength(10),
|
|
47752
|
+
__metadata("design:type", Date)
|
|
47753
|
+
], ArtifactType_.prototype, "_mj__UpdatedAt", void 0);
|
|
47754
|
+
__decorate([
|
|
47755
|
+
Field(() => [ConversationArtifact_]),
|
|
47756
|
+
__metadata("design:type", Array)
|
|
47757
|
+
], ArtifactType_.prototype, "MJ_ConversationArtifacts_ArtifactTypeIDArray", void 0);
|
|
47758
|
+
ArtifactType_ = __decorate([
|
|
47759
|
+
ObjectType()
|
|
47760
|
+
], ArtifactType_);
|
|
47761
|
+
export { ArtifactType_ };
|
|
47762
|
+
let CreateArtifactTypeInput = class CreateArtifactTypeInput {
|
|
47763
|
+
Name;
|
|
47764
|
+
Description;
|
|
47765
|
+
ContentType;
|
|
47766
|
+
IsEnabled;
|
|
47767
|
+
};
|
|
47768
|
+
__decorate([
|
|
47769
|
+
Field({ nullable: true }),
|
|
47770
|
+
__metadata("design:type", String)
|
|
47771
|
+
], CreateArtifactTypeInput.prototype, "Name", void 0);
|
|
47772
|
+
__decorate([
|
|
47773
|
+
Field({ nullable: true }),
|
|
47774
|
+
__metadata("design:type", String)
|
|
47775
|
+
], CreateArtifactTypeInput.prototype, "Description", void 0);
|
|
47776
|
+
__decorate([
|
|
47777
|
+
Field({ nullable: true }),
|
|
47778
|
+
__metadata("design:type", String)
|
|
47779
|
+
], CreateArtifactTypeInput.prototype, "ContentType", void 0);
|
|
47780
|
+
__decorate([
|
|
47781
|
+
Field(() => Boolean, { nullable: true }),
|
|
47782
|
+
__metadata("design:type", Boolean)
|
|
47783
|
+
], CreateArtifactTypeInput.prototype, "IsEnabled", void 0);
|
|
47784
|
+
CreateArtifactTypeInput = __decorate([
|
|
47785
|
+
InputType()
|
|
47786
|
+
], CreateArtifactTypeInput);
|
|
47787
|
+
export { CreateArtifactTypeInput };
|
|
47788
|
+
let UpdateArtifactTypeInput = class UpdateArtifactTypeInput {
|
|
47789
|
+
ID;
|
|
47790
|
+
Name;
|
|
47791
|
+
Description;
|
|
47792
|
+
ContentType;
|
|
47793
|
+
IsEnabled;
|
|
47794
|
+
OldValues___;
|
|
47795
|
+
};
|
|
47796
|
+
__decorate([
|
|
47797
|
+
Field(),
|
|
47798
|
+
__metadata("design:type", String)
|
|
47799
|
+
], UpdateArtifactTypeInput.prototype, "ID", void 0);
|
|
47800
|
+
__decorate([
|
|
47801
|
+
Field({ nullable: true }),
|
|
47802
|
+
__metadata("design:type", String)
|
|
47803
|
+
], UpdateArtifactTypeInput.prototype, "Name", void 0);
|
|
47804
|
+
__decorate([
|
|
47805
|
+
Field({ nullable: true }),
|
|
47806
|
+
__metadata("design:type", String)
|
|
47807
|
+
], UpdateArtifactTypeInput.prototype, "Description", void 0);
|
|
47808
|
+
__decorate([
|
|
47809
|
+
Field({ nullable: true }),
|
|
47810
|
+
__metadata("design:type", String)
|
|
47811
|
+
], UpdateArtifactTypeInput.prototype, "ContentType", void 0);
|
|
47812
|
+
__decorate([
|
|
47813
|
+
Field(() => Boolean, { nullable: true }),
|
|
47814
|
+
__metadata("design:type", Boolean)
|
|
47815
|
+
], UpdateArtifactTypeInput.prototype, "IsEnabled", void 0);
|
|
47816
|
+
__decorate([
|
|
47817
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
47818
|
+
__metadata("design:type", Array)
|
|
47819
|
+
], UpdateArtifactTypeInput.prototype, "OldValues___", void 0);
|
|
47820
|
+
UpdateArtifactTypeInput = __decorate([
|
|
47821
|
+
InputType()
|
|
47822
|
+
], UpdateArtifactTypeInput);
|
|
47823
|
+
export { UpdateArtifactTypeInput };
|
|
47824
|
+
let RunArtifactTypeViewResult = class RunArtifactTypeViewResult {
|
|
47825
|
+
Results;
|
|
47826
|
+
UserViewRunID;
|
|
47827
|
+
RowCount;
|
|
47828
|
+
TotalRowCount;
|
|
47829
|
+
ExecutionTime;
|
|
47830
|
+
ErrorMessage;
|
|
47831
|
+
Success;
|
|
47832
|
+
};
|
|
47833
|
+
__decorate([
|
|
47834
|
+
Field(() => [ArtifactType_]),
|
|
47835
|
+
__metadata("design:type", Array)
|
|
47836
|
+
], RunArtifactTypeViewResult.prototype, "Results", void 0);
|
|
47837
|
+
__decorate([
|
|
47838
|
+
Field(() => String, { nullable: true }),
|
|
47839
|
+
__metadata("design:type", String)
|
|
47840
|
+
], RunArtifactTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
47841
|
+
__decorate([
|
|
47842
|
+
Field(() => Int, { nullable: true }),
|
|
47843
|
+
__metadata("design:type", Number)
|
|
47844
|
+
], RunArtifactTypeViewResult.prototype, "RowCount", void 0);
|
|
47845
|
+
__decorate([
|
|
47846
|
+
Field(() => Int, { nullable: true }),
|
|
47847
|
+
__metadata("design:type", Number)
|
|
47848
|
+
], RunArtifactTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
47849
|
+
__decorate([
|
|
47850
|
+
Field(() => Int, { nullable: true }),
|
|
47851
|
+
__metadata("design:type", Number)
|
|
47852
|
+
], RunArtifactTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
47853
|
+
__decorate([
|
|
47854
|
+
Field({ nullable: true }),
|
|
47855
|
+
__metadata("design:type", String)
|
|
47856
|
+
], RunArtifactTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
47857
|
+
__decorate([
|
|
47858
|
+
Field(() => Boolean, { nullable: false }),
|
|
47859
|
+
__metadata("design:type", Boolean)
|
|
47860
|
+
], RunArtifactTypeViewResult.prototype, "Success", void 0);
|
|
47861
|
+
RunArtifactTypeViewResult = __decorate([
|
|
47862
|
+
ObjectType()
|
|
47863
|
+
], RunArtifactTypeViewResult);
|
|
47864
|
+
export { RunArtifactTypeViewResult };
|
|
47865
|
+
let ArtifactTypeResolver = class ArtifactTypeResolver extends ResolverBase {
|
|
47866
|
+
async RunArtifactTypeViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
47867
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47868
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
47869
|
+
}
|
|
47870
|
+
async RunArtifactTypeViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
47871
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47872
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
47873
|
+
}
|
|
47874
|
+
async RunArtifactTypeDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
47875
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47876
|
+
input.EntityName = 'MJ: Artifact Types';
|
|
47877
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
47878
|
+
}
|
|
47879
|
+
async ArtifactType(ID, { dataSources, userPayload }, pubSub) {
|
|
47880
|
+
this.CheckUserReadPermissions('MJ: Artifact Types', userPayload);
|
|
47881
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47882
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwArtifactTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Artifact Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
47883
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Artifact Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
47884
|
+
return result;
|
|
47885
|
+
}
|
|
47886
|
+
async MJ_ConversationArtifacts_ArtifactTypeIDArray(artifacttype_, { dataSources, userPayload }, pubSub) {
|
|
47887
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifacts', userPayload);
|
|
47888
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47889
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifacts] WHERE [ArtifactTypeID]='${artifacttype_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
47890
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifacts', await dataSource.query(sSQL));
|
|
47891
|
+
return result;
|
|
47892
|
+
}
|
|
47893
|
+
async CreateArtifactType(input, { dataSources, userPayload }, pubSub) {
|
|
47894
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47895
|
+
return this.CreateRecord('MJ: Artifact Types', input, dataSource, userPayload, pubSub);
|
|
47896
|
+
}
|
|
47897
|
+
async UpdateArtifactType(input, { dataSources, userPayload }, pubSub) {
|
|
47898
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47899
|
+
return this.UpdateRecord('MJ: Artifact Types', input, dataSource, userPayload, pubSub);
|
|
47900
|
+
}
|
|
47901
|
+
async DeleteArtifactType(ID, options, { dataSources, userPayload }, pubSub) {
|
|
47902
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47903
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
47904
|
+
return this.DeleteRecord('MJ: Artifact Types', key, options, dataSource, userPayload, pubSub);
|
|
47905
|
+
}
|
|
47906
|
+
};
|
|
47907
|
+
__decorate([
|
|
47908
|
+
Query(() => RunArtifactTypeViewResult),
|
|
47909
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
47910
|
+
__param(1, Ctx()),
|
|
47911
|
+
__param(2, PubSub()),
|
|
47912
|
+
__metadata("design:type", Function),
|
|
47913
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
47914
|
+
__metadata("design:returntype", Promise)
|
|
47915
|
+
], ArtifactTypeResolver.prototype, "RunArtifactTypeViewByID", null);
|
|
47916
|
+
__decorate([
|
|
47917
|
+
Query(() => RunArtifactTypeViewResult),
|
|
47918
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
47919
|
+
__param(1, Ctx()),
|
|
47920
|
+
__param(2, PubSub()),
|
|
47921
|
+
__metadata("design:type", Function),
|
|
47922
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
47923
|
+
__metadata("design:returntype", Promise)
|
|
47924
|
+
], ArtifactTypeResolver.prototype, "RunArtifactTypeViewByName", null);
|
|
47925
|
+
__decorate([
|
|
47926
|
+
Query(() => RunArtifactTypeViewResult),
|
|
47927
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
47928
|
+
__param(1, Ctx()),
|
|
47929
|
+
__param(2, PubSub()),
|
|
47930
|
+
__metadata("design:type", Function),
|
|
47931
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
47932
|
+
__metadata("design:returntype", Promise)
|
|
47933
|
+
], ArtifactTypeResolver.prototype, "RunArtifactTypeDynamicView", null);
|
|
47934
|
+
__decorate([
|
|
47935
|
+
Query(() => ArtifactType_, { nullable: true }),
|
|
47936
|
+
__param(0, Arg('ID', () => String)),
|
|
47937
|
+
__param(1, Ctx()),
|
|
47938
|
+
__param(2, PubSub()),
|
|
47939
|
+
__metadata("design:type", Function),
|
|
47940
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
47941
|
+
__metadata("design:returntype", Promise)
|
|
47942
|
+
], ArtifactTypeResolver.prototype, "ArtifactType", null);
|
|
47943
|
+
__decorate([
|
|
47944
|
+
FieldResolver(() => [ConversationArtifact_]),
|
|
47945
|
+
__param(0, Root()),
|
|
47946
|
+
__param(1, Ctx()),
|
|
47947
|
+
__param(2, PubSub()),
|
|
47948
|
+
__metadata("design:type", Function),
|
|
47949
|
+
__metadata("design:paramtypes", [ArtifactType_, Object, PubSubEngine]),
|
|
47950
|
+
__metadata("design:returntype", Promise)
|
|
47951
|
+
], ArtifactTypeResolver.prototype, "MJ_ConversationArtifacts_ArtifactTypeIDArray", null);
|
|
47952
|
+
__decorate([
|
|
47953
|
+
Mutation(() => ArtifactType_),
|
|
47954
|
+
__param(0, Arg('input', () => CreateArtifactTypeInput)),
|
|
47955
|
+
__param(1, Ctx()),
|
|
47956
|
+
__param(2, PubSub()),
|
|
47957
|
+
__metadata("design:type", Function),
|
|
47958
|
+
__metadata("design:paramtypes", [CreateArtifactTypeInput, Object, PubSubEngine]),
|
|
47959
|
+
__metadata("design:returntype", Promise)
|
|
47960
|
+
], ArtifactTypeResolver.prototype, "CreateArtifactType", null);
|
|
47961
|
+
__decorate([
|
|
47962
|
+
Mutation(() => ArtifactType_),
|
|
47963
|
+
__param(0, Arg('input', () => UpdateArtifactTypeInput)),
|
|
47964
|
+
__param(1, Ctx()),
|
|
47965
|
+
__param(2, PubSub()),
|
|
47966
|
+
__metadata("design:type", Function),
|
|
47967
|
+
__metadata("design:paramtypes", [UpdateArtifactTypeInput, Object, PubSubEngine]),
|
|
47968
|
+
__metadata("design:returntype", Promise)
|
|
47969
|
+
], ArtifactTypeResolver.prototype, "UpdateArtifactType", null);
|
|
47970
|
+
__decorate([
|
|
47971
|
+
Mutation(() => ArtifactType_),
|
|
47972
|
+
__param(0, Arg('ID', () => String)),
|
|
47973
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
47974
|
+
__param(2, Ctx()),
|
|
47975
|
+
__param(3, PubSub()),
|
|
47976
|
+
__metadata("design:type", Function),
|
|
47977
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
47978
|
+
__metadata("design:returntype", Promise)
|
|
47979
|
+
], ArtifactTypeResolver.prototype, "DeleteArtifactType", null);
|
|
47980
|
+
ArtifactTypeResolver = __decorate([
|
|
47981
|
+
Resolver(ArtifactType_)
|
|
47982
|
+
], ArtifactTypeResolver);
|
|
47983
|
+
export { ArtifactTypeResolver };
|
|
47984
|
+
let ConversationArtifact_ = class ConversationArtifact_ {
|
|
47985
|
+
ID;
|
|
47986
|
+
Name;
|
|
47987
|
+
Description;
|
|
47988
|
+
ConversationID;
|
|
47989
|
+
ArtifactTypeID;
|
|
47990
|
+
SharingScope;
|
|
47991
|
+
Comments;
|
|
47992
|
+
_mj__CreatedAt;
|
|
47993
|
+
_mj__UpdatedAt;
|
|
47994
|
+
Conversation;
|
|
47995
|
+
ArtifactType;
|
|
47996
|
+
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
47997
|
+
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
47998
|
+
};
|
|
47999
|
+
__decorate([
|
|
48000
|
+
Field(),
|
|
48001
|
+
MaxLength(16),
|
|
48002
|
+
__metadata("design:type", String)
|
|
48003
|
+
], ConversationArtifact_.prototype, "ID", void 0);
|
|
48004
|
+
__decorate([
|
|
48005
|
+
Field({ description: `Display name of the artifact` }),
|
|
48006
|
+
MaxLength(510),
|
|
48007
|
+
__metadata("design:type", String)
|
|
48008
|
+
], ConversationArtifact_.prototype, "Name", void 0);
|
|
48009
|
+
__decorate([
|
|
48010
|
+
Field({ nullable: true, description: `Extended description of the artifact` }),
|
|
48011
|
+
__metadata("design:type", String)
|
|
48012
|
+
], ConversationArtifact_.prototype, "Description", void 0);
|
|
48013
|
+
__decorate([
|
|
48014
|
+
Field({ description: `Reference to the conversation this artifact belongs to` }),
|
|
48015
|
+
MaxLength(16),
|
|
48016
|
+
__metadata("design:type", String)
|
|
48017
|
+
], ConversationArtifact_.prototype, "ConversationID", void 0);
|
|
48018
|
+
__decorate([
|
|
48019
|
+
Field({ description: `Reference to the type of artifact` }),
|
|
48020
|
+
MaxLength(16),
|
|
48021
|
+
__metadata("design:type", String)
|
|
48022
|
+
], ConversationArtifact_.prototype, "ArtifactTypeID", void 0);
|
|
48023
|
+
__decorate([
|
|
48024
|
+
Field({ description: `Controls who can view this artifact (None, SpecificUsers, Everyone, Public)` }),
|
|
48025
|
+
MaxLength(100),
|
|
48026
|
+
__metadata("design:type", String)
|
|
48027
|
+
], ConversationArtifact_.prototype, "SharingScope", void 0);
|
|
48028
|
+
__decorate([
|
|
48029
|
+
Field({ nullable: true, description: `User comments about the artifact` }),
|
|
48030
|
+
__metadata("design:type", String)
|
|
48031
|
+
], ConversationArtifact_.prototype, "Comments", void 0);
|
|
48032
|
+
__decorate([
|
|
48033
|
+
Field(),
|
|
48034
|
+
MaxLength(10),
|
|
48035
|
+
__metadata("design:type", Date)
|
|
48036
|
+
], ConversationArtifact_.prototype, "_mj__CreatedAt", void 0);
|
|
48037
|
+
__decorate([
|
|
48038
|
+
Field(),
|
|
48039
|
+
MaxLength(10),
|
|
48040
|
+
__metadata("design:type", Date)
|
|
48041
|
+
], ConversationArtifact_.prototype, "_mj__UpdatedAt", void 0);
|
|
48042
|
+
__decorate([
|
|
48043
|
+
Field({ nullable: true }),
|
|
48044
|
+
MaxLength(510),
|
|
48045
|
+
__metadata("design:type", String)
|
|
48046
|
+
], ConversationArtifact_.prototype, "Conversation", void 0);
|
|
48047
|
+
__decorate([
|
|
48048
|
+
Field(),
|
|
48049
|
+
MaxLength(200),
|
|
48050
|
+
__metadata("design:type", String)
|
|
48051
|
+
], ConversationArtifact_.prototype, "ArtifactType", void 0);
|
|
48052
|
+
__decorate([
|
|
48053
|
+
Field(() => [ConversationArtifactPermission_]),
|
|
48054
|
+
__metadata("design:type", Array)
|
|
48055
|
+
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
48056
|
+
__decorate([
|
|
48057
|
+
Field(() => [ConversationArtifactVersion_]),
|
|
48058
|
+
__metadata("design:type", Array)
|
|
48059
|
+
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
48060
|
+
ConversationArtifact_ = __decorate([
|
|
48061
|
+
ObjectType()
|
|
48062
|
+
], ConversationArtifact_);
|
|
48063
|
+
export { ConversationArtifact_ };
|
|
48064
|
+
let CreateConversationArtifactInput = class CreateConversationArtifactInput {
|
|
48065
|
+
Name;
|
|
48066
|
+
Description;
|
|
48067
|
+
ConversationID;
|
|
48068
|
+
ArtifactTypeID;
|
|
48069
|
+
SharingScope;
|
|
48070
|
+
Comments;
|
|
48071
|
+
};
|
|
48072
|
+
__decorate([
|
|
48073
|
+
Field({ nullable: true }),
|
|
48074
|
+
__metadata("design:type", String)
|
|
48075
|
+
], CreateConversationArtifactInput.prototype, "Name", void 0);
|
|
48076
|
+
__decorate([
|
|
48077
|
+
Field({ nullable: true }),
|
|
48078
|
+
__metadata("design:type", String)
|
|
48079
|
+
], CreateConversationArtifactInput.prototype, "Description", void 0);
|
|
48080
|
+
__decorate([
|
|
48081
|
+
Field({ nullable: true }),
|
|
48082
|
+
__metadata("design:type", String)
|
|
48083
|
+
], CreateConversationArtifactInput.prototype, "ConversationID", void 0);
|
|
48084
|
+
__decorate([
|
|
48085
|
+
Field({ nullable: true }),
|
|
48086
|
+
__metadata("design:type", String)
|
|
48087
|
+
], CreateConversationArtifactInput.prototype, "ArtifactTypeID", void 0);
|
|
48088
|
+
__decorate([
|
|
48089
|
+
Field({ nullable: true }),
|
|
48090
|
+
__metadata("design:type", String)
|
|
48091
|
+
], CreateConversationArtifactInput.prototype, "SharingScope", void 0);
|
|
48092
|
+
__decorate([
|
|
48093
|
+
Field({ nullable: true }),
|
|
48094
|
+
__metadata("design:type", String)
|
|
48095
|
+
], CreateConversationArtifactInput.prototype, "Comments", void 0);
|
|
48096
|
+
CreateConversationArtifactInput = __decorate([
|
|
48097
|
+
InputType()
|
|
48098
|
+
], CreateConversationArtifactInput);
|
|
48099
|
+
export { CreateConversationArtifactInput };
|
|
48100
|
+
let UpdateConversationArtifactInput = class UpdateConversationArtifactInput {
|
|
48101
|
+
ID;
|
|
48102
|
+
Name;
|
|
48103
|
+
Description;
|
|
48104
|
+
ConversationID;
|
|
48105
|
+
ArtifactTypeID;
|
|
48106
|
+
SharingScope;
|
|
48107
|
+
Comments;
|
|
48108
|
+
OldValues___;
|
|
48109
|
+
};
|
|
48110
|
+
__decorate([
|
|
48111
|
+
Field(),
|
|
48112
|
+
__metadata("design:type", String)
|
|
48113
|
+
], UpdateConversationArtifactInput.prototype, "ID", void 0);
|
|
48114
|
+
__decorate([
|
|
48115
|
+
Field({ nullable: true }),
|
|
48116
|
+
__metadata("design:type", String)
|
|
48117
|
+
], UpdateConversationArtifactInput.prototype, "Name", void 0);
|
|
48118
|
+
__decorate([
|
|
48119
|
+
Field({ nullable: true }),
|
|
48120
|
+
__metadata("design:type", String)
|
|
48121
|
+
], UpdateConversationArtifactInput.prototype, "Description", void 0);
|
|
48122
|
+
__decorate([
|
|
48123
|
+
Field({ nullable: true }),
|
|
48124
|
+
__metadata("design:type", String)
|
|
48125
|
+
], UpdateConversationArtifactInput.prototype, "ConversationID", void 0);
|
|
48126
|
+
__decorate([
|
|
48127
|
+
Field({ nullable: true }),
|
|
48128
|
+
__metadata("design:type", String)
|
|
48129
|
+
], UpdateConversationArtifactInput.prototype, "ArtifactTypeID", void 0);
|
|
48130
|
+
__decorate([
|
|
48131
|
+
Field({ nullable: true }),
|
|
48132
|
+
__metadata("design:type", String)
|
|
48133
|
+
], UpdateConversationArtifactInput.prototype, "SharingScope", void 0);
|
|
48134
|
+
__decorate([
|
|
48135
|
+
Field({ nullable: true }),
|
|
48136
|
+
__metadata("design:type", String)
|
|
48137
|
+
], UpdateConversationArtifactInput.prototype, "Comments", void 0);
|
|
48138
|
+
__decorate([
|
|
48139
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
48140
|
+
__metadata("design:type", Array)
|
|
48141
|
+
], UpdateConversationArtifactInput.prototype, "OldValues___", void 0);
|
|
48142
|
+
UpdateConversationArtifactInput = __decorate([
|
|
48143
|
+
InputType()
|
|
48144
|
+
], UpdateConversationArtifactInput);
|
|
48145
|
+
export { UpdateConversationArtifactInput };
|
|
48146
|
+
let RunConversationArtifactViewResult = class RunConversationArtifactViewResult {
|
|
48147
|
+
Results;
|
|
48148
|
+
UserViewRunID;
|
|
48149
|
+
RowCount;
|
|
48150
|
+
TotalRowCount;
|
|
48151
|
+
ExecutionTime;
|
|
48152
|
+
ErrorMessage;
|
|
48153
|
+
Success;
|
|
48154
|
+
};
|
|
48155
|
+
__decorate([
|
|
48156
|
+
Field(() => [ConversationArtifact_]),
|
|
48157
|
+
__metadata("design:type", Array)
|
|
48158
|
+
], RunConversationArtifactViewResult.prototype, "Results", void 0);
|
|
48159
|
+
__decorate([
|
|
48160
|
+
Field(() => String, { nullable: true }),
|
|
48161
|
+
__metadata("design:type", String)
|
|
48162
|
+
], RunConversationArtifactViewResult.prototype, "UserViewRunID", void 0);
|
|
48163
|
+
__decorate([
|
|
48164
|
+
Field(() => Int, { nullable: true }),
|
|
48165
|
+
__metadata("design:type", Number)
|
|
48166
|
+
], RunConversationArtifactViewResult.prototype, "RowCount", void 0);
|
|
48167
|
+
__decorate([
|
|
48168
|
+
Field(() => Int, { nullable: true }),
|
|
48169
|
+
__metadata("design:type", Number)
|
|
48170
|
+
], RunConversationArtifactViewResult.prototype, "TotalRowCount", void 0);
|
|
48171
|
+
__decorate([
|
|
48172
|
+
Field(() => Int, { nullable: true }),
|
|
48173
|
+
__metadata("design:type", Number)
|
|
48174
|
+
], RunConversationArtifactViewResult.prototype, "ExecutionTime", void 0);
|
|
48175
|
+
__decorate([
|
|
48176
|
+
Field({ nullable: true }),
|
|
48177
|
+
__metadata("design:type", String)
|
|
48178
|
+
], RunConversationArtifactViewResult.prototype, "ErrorMessage", void 0);
|
|
48179
|
+
__decorate([
|
|
48180
|
+
Field(() => Boolean, { nullable: false }),
|
|
48181
|
+
__metadata("design:type", Boolean)
|
|
48182
|
+
], RunConversationArtifactViewResult.prototype, "Success", void 0);
|
|
48183
|
+
RunConversationArtifactViewResult = __decorate([
|
|
48184
|
+
ObjectType()
|
|
48185
|
+
], RunConversationArtifactViewResult);
|
|
48186
|
+
export { RunConversationArtifactViewResult };
|
|
48187
|
+
let ConversationArtifactResolver = class ConversationArtifactResolver extends ResolverBase {
|
|
48188
|
+
async RunConversationArtifactViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
48189
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48190
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
48191
|
+
}
|
|
48192
|
+
async RunConversationArtifactViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
48193
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48194
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
48195
|
+
}
|
|
48196
|
+
async RunConversationArtifactDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
48197
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48198
|
+
input.EntityName = 'MJ: Conversation Artifacts';
|
|
48199
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
48200
|
+
}
|
|
48201
|
+
async ConversationArtifact(ID, { dataSources, userPayload }, pubSub) {
|
|
48202
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifacts', userPayload);
|
|
48203
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48204
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifacts] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
48205
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
48206
|
+
return result;
|
|
48207
|
+
}
|
|
48208
|
+
async MJ_ConversationArtifactPermissions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload }, pubSub) {
|
|
48209
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
48210
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48211
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
48212
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', await dataSource.query(sSQL));
|
|
48213
|
+
return result;
|
|
48214
|
+
}
|
|
48215
|
+
async MJ_ConversationArtifactVersions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload }, pubSub) {
|
|
48216
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
48217
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48218
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
48219
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', await dataSource.query(sSQL));
|
|
48220
|
+
return result;
|
|
48221
|
+
}
|
|
48222
|
+
async CreateConversationArtifact(input, { dataSources, userPayload }, pubSub) {
|
|
48223
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
48224
|
+
return this.CreateRecord('MJ: Conversation Artifacts', input, dataSource, userPayload, pubSub);
|
|
48225
|
+
}
|
|
48226
|
+
async UpdateConversationArtifact(input, { dataSources, userPayload }, pubSub) {
|
|
48227
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
48228
|
+
return this.UpdateRecord('MJ: Conversation Artifacts', input, dataSource, userPayload, pubSub);
|
|
48229
|
+
}
|
|
48230
|
+
async DeleteConversationArtifact(ID, options, { dataSources, userPayload }, pubSub) {
|
|
48231
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
48232
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
48233
|
+
return this.DeleteRecord('MJ: Conversation Artifacts', key, options, dataSource, userPayload, pubSub);
|
|
48234
|
+
}
|
|
48235
|
+
};
|
|
48236
|
+
__decorate([
|
|
48237
|
+
Query(() => RunConversationArtifactViewResult),
|
|
48238
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
48239
|
+
__param(1, Ctx()),
|
|
48240
|
+
__param(2, PubSub()),
|
|
48241
|
+
__metadata("design:type", Function),
|
|
48242
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
48243
|
+
__metadata("design:returntype", Promise)
|
|
48244
|
+
], ConversationArtifactResolver.prototype, "RunConversationArtifactViewByID", null);
|
|
48245
|
+
__decorate([
|
|
48246
|
+
Query(() => RunConversationArtifactViewResult),
|
|
48247
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
48248
|
+
__param(1, Ctx()),
|
|
48249
|
+
__param(2, PubSub()),
|
|
48250
|
+
__metadata("design:type", Function),
|
|
48251
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
48252
|
+
__metadata("design:returntype", Promise)
|
|
48253
|
+
], ConversationArtifactResolver.prototype, "RunConversationArtifactViewByName", null);
|
|
48254
|
+
__decorate([
|
|
48255
|
+
Query(() => RunConversationArtifactViewResult),
|
|
48256
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
48257
|
+
__param(1, Ctx()),
|
|
48258
|
+
__param(2, PubSub()),
|
|
48259
|
+
__metadata("design:type", Function),
|
|
48260
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
48261
|
+
__metadata("design:returntype", Promise)
|
|
48262
|
+
], ConversationArtifactResolver.prototype, "RunConversationArtifactDynamicView", null);
|
|
48263
|
+
__decorate([
|
|
48264
|
+
Query(() => ConversationArtifact_, { nullable: true }),
|
|
48265
|
+
__param(0, Arg('ID', () => String)),
|
|
48266
|
+
__param(1, Ctx()),
|
|
48267
|
+
__param(2, PubSub()),
|
|
48268
|
+
__metadata("design:type", Function),
|
|
48269
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
48270
|
+
__metadata("design:returntype", Promise)
|
|
48271
|
+
], ConversationArtifactResolver.prototype, "ConversationArtifact", null);
|
|
48272
|
+
__decorate([
|
|
48273
|
+
FieldResolver(() => [ConversationArtifactPermission_]),
|
|
48274
|
+
__param(0, Root()),
|
|
48275
|
+
__param(1, Ctx()),
|
|
48276
|
+
__param(2, PubSub()),
|
|
48277
|
+
__metadata("design:type", Function),
|
|
48278
|
+
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
48279
|
+
__metadata("design:returntype", Promise)
|
|
48280
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", null);
|
|
48281
|
+
__decorate([
|
|
48282
|
+
FieldResolver(() => [ConversationArtifactVersion_]),
|
|
48283
|
+
__param(0, Root()),
|
|
48284
|
+
__param(1, Ctx()),
|
|
48285
|
+
__param(2, PubSub()),
|
|
48286
|
+
__metadata("design:type", Function),
|
|
48287
|
+
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
48288
|
+
__metadata("design:returntype", Promise)
|
|
48289
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
48290
|
+
__decorate([
|
|
48291
|
+
Mutation(() => ConversationArtifact_),
|
|
48292
|
+
__param(0, Arg('input', () => CreateConversationArtifactInput)),
|
|
48293
|
+
__param(1, Ctx()),
|
|
48294
|
+
__param(2, PubSub()),
|
|
48295
|
+
__metadata("design:type", Function),
|
|
48296
|
+
__metadata("design:paramtypes", [CreateConversationArtifactInput, Object, PubSubEngine]),
|
|
48297
|
+
__metadata("design:returntype", Promise)
|
|
48298
|
+
], ConversationArtifactResolver.prototype, "CreateConversationArtifact", null);
|
|
48299
|
+
__decorate([
|
|
48300
|
+
Mutation(() => ConversationArtifact_),
|
|
48301
|
+
__param(0, Arg('input', () => UpdateConversationArtifactInput)),
|
|
48302
|
+
__param(1, Ctx()),
|
|
48303
|
+
__param(2, PubSub()),
|
|
48304
|
+
__metadata("design:type", Function),
|
|
48305
|
+
__metadata("design:paramtypes", [UpdateConversationArtifactInput, Object, PubSubEngine]),
|
|
48306
|
+
__metadata("design:returntype", Promise)
|
|
48307
|
+
], ConversationArtifactResolver.prototype, "UpdateConversationArtifact", null);
|
|
48308
|
+
__decorate([
|
|
48309
|
+
Mutation(() => ConversationArtifact_),
|
|
48310
|
+
__param(0, Arg('ID', () => String)),
|
|
48311
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
48312
|
+
__param(2, Ctx()),
|
|
48313
|
+
__param(3, PubSub()),
|
|
48314
|
+
__metadata("design:type", Function),
|
|
48315
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
48316
|
+
__metadata("design:returntype", Promise)
|
|
48317
|
+
], ConversationArtifactResolver.prototype, "DeleteConversationArtifact", null);
|
|
48318
|
+
ConversationArtifactResolver = __decorate([
|
|
48319
|
+
Resolver(ConversationArtifact_)
|
|
48320
|
+
], ConversationArtifactResolver);
|
|
48321
|
+
export { ConversationArtifactResolver };
|
|
47479
48322
|
let ContentProcessRun_ = class ContentProcessRun_ {
|
|
47480
48323
|
ID;
|
|
47481
48324
|
SourceID;
|
|
@@ -50956,6 +51799,250 @@ GeneratedCodeResolver = __decorate([
|
|
|
50956
51799
|
Resolver(GeneratedCode_)
|
|
50957
51800
|
], GeneratedCodeResolver);
|
|
50958
51801
|
export { GeneratedCodeResolver };
|
|
51802
|
+
let ConversationArtifactPermission_ = class ConversationArtifactPermission_ {
|
|
51803
|
+
ID;
|
|
51804
|
+
ConversationArtifactID;
|
|
51805
|
+
UserID;
|
|
51806
|
+
AccessLevel;
|
|
51807
|
+
_mj__CreatedAt;
|
|
51808
|
+
_mj__UpdatedAt;
|
|
51809
|
+
ConversationArtifact;
|
|
51810
|
+
};
|
|
51811
|
+
__decorate([
|
|
51812
|
+
Field(),
|
|
51813
|
+
MaxLength(16),
|
|
51814
|
+
__metadata("design:type", String)
|
|
51815
|
+
], ConversationArtifactPermission_.prototype, "ID", void 0);
|
|
51816
|
+
__decorate([
|
|
51817
|
+
Field({ description: `Reference to the artifact this permission applies to` }),
|
|
51818
|
+
MaxLength(16),
|
|
51819
|
+
__metadata("design:type", String)
|
|
51820
|
+
], ConversationArtifactPermission_.prototype, "ConversationArtifactID", void 0);
|
|
51821
|
+
__decorate([
|
|
51822
|
+
Field({ description: `User this permission applies to` }),
|
|
51823
|
+
MaxLength(16),
|
|
51824
|
+
__metadata("design:type", String)
|
|
51825
|
+
], ConversationArtifactPermission_.prototype, "UserID", void 0);
|
|
51826
|
+
__decorate([
|
|
51827
|
+
Field({ description: `Level of access granted (Read, Edit, Owner)` }),
|
|
51828
|
+
MaxLength(40),
|
|
51829
|
+
__metadata("design:type", String)
|
|
51830
|
+
], ConversationArtifactPermission_.prototype, "AccessLevel", void 0);
|
|
51831
|
+
__decorate([
|
|
51832
|
+
Field(),
|
|
51833
|
+
MaxLength(10),
|
|
51834
|
+
__metadata("design:type", Date)
|
|
51835
|
+
], ConversationArtifactPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
51836
|
+
__decorate([
|
|
51837
|
+
Field(),
|
|
51838
|
+
MaxLength(10),
|
|
51839
|
+
__metadata("design:type", Date)
|
|
51840
|
+
], ConversationArtifactPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
51841
|
+
__decorate([
|
|
51842
|
+
Field(),
|
|
51843
|
+
MaxLength(510),
|
|
51844
|
+
__metadata("design:type", String)
|
|
51845
|
+
], ConversationArtifactPermission_.prototype, "ConversationArtifact", void 0);
|
|
51846
|
+
ConversationArtifactPermission_ = __decorate([
|
|
51847
|
+
ObjectType()
|
|
51848
|
+
], ConversationArtifactPermission_);
|
|
51849
|
+
export { ConversationArtifactPermission_ };
|
|
51850
|
+
let CreateConversationArtifactPermissionInput = class CreateConversationArtifactPermissionInput {
|
|
51851
|
+
ConversationArtifactID;
|
|
51852
|
+
UserID;
|
|
51853
|
+
AccessLevel;
|
|
51854
|
+
};
|
|
51855
|
+
__decorate([
|
|
51856
|
+
Field({ nullable: true }),
|
|
51857
|
+
__metadata("design:type", String)
|
|
51858
|
+
], CreateConversationArtifactPermissionInput.prototype, "ConversationArtifactID", void 0);
|
|
51859
|
+
__decorate([
|
|
51860
|
+
Field({ nullable: true }),
|
|
51861
|
+
__metadata("design:type", String)
|
|
51862
|
+
], CreateConversationArtifactPermissionInput.prototype, "UserID", void 0);
|
|
51863
|
+
__decorate([
|
|
51864
|
+
Field({ nullable: true }),
|
|
51865
|
+
__metadata("design:type", String)
|
|
51866
|
+
], CreateConversationArtifactPermissionInput.prototype, "AccessLevel", void 0);
|
|
51867
|
+
CreateConversationArtifactPermissionInput = __decorate([
|
|
51868
|
+
InputType()
|
|
51869
|
+
], CreateConversationArtifactPermissionInput);
|
|
51870
|
+
export { CreateConversationArtifactPermissionInput };
|
|
51871
|
+
let UpdateConversationArtifactPermissionInput = class UpdateConversationArtifactPermissionInput {
|
|
51872
|
+
ID;
|
|
51873
|
+
ConversationArtifactID;
|
|
51874
|
+
UserID;
|
|
51875
|
+
AccessLevel;
|
|
51876
|
+
OldValues___;
|
|
51877
|
+
};
|
|
51878
|
+
__decorate([
|
|
51879
|
+
Field(),
|
|
51880
|
+
__metadata("design:type", String)
|
|
51881
|
+
], UpdateConversationArtifactPermissionInput.prototype, "ID", void 0);
|
|
51882
|
+
__decorate([
|
|
51883
|
+
Field({ nullable: true }),
|
|
51884
|
+
__metadata("design:type", String)
|
|
51885
|
+
], UpdateConversationArtifactPermissionInput.prototype, "ConversationArtifactID", void 0);
|
|
51886
|
+
__decorate([
|
|
51887
|
+
Field({ nullable: true }),
|
|
51888
|
+
__metadata("design:type", String)
|
|
51889
|
+
], UpdateConversationArtifactPermissionInput.prototype, "UserID", void 0);
|
|
51890
|
+
__decorate([
|
|
51891
|
+
Field({ nullable: true }),
|
|
51892
|
+
__metadata("design:type", String)
|
|
51893
|
+
], UpdateConversationArtifactPermissionInput.prototype, "AccessLevel", void 0);
|
|
51894
|
+
__decorate([
|
|
51895
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
51896
|
+
__metadata("design:type", Array)
|
|
51897
|
+
], UpdateConversationArtifactPermissionInput.prototype, "OldValues___", void 0);
|
|
51898
|
+
UpdateConversationArtifactPermissionInput = __decorate([
|
|
51899
|
+
InputType()
|
|
51900
|
+
], UpdateConversationArtifactPermissionInput);
|
|
51901
|
+
export { UpdateConversationArtifactPermissionInput };
|
|
51902
|
+
let RunConversationArtifactPermissionViewResult = class RunConversationArtifactPermissionViewResult {
|
|
51903
|
+
Results;
|
|
51904
|
+
UserViewRunID;
|
|
51905
|
+
RowCount;
|
|
51906
|
+
TotalRowCount;
|
|
51907
|
+
ExecutionTime;
|
|
51908
|
+
ErrorMessage;
|
|
51909
|
+
Success;
|
|
51910
|
+
};
|
|
51911
|
+
__decorate([
|
|
51912
|
+
Field(() => [ConversationArtifactPermission_]),
|
|
51913
|
+
__metadata("design:type", Array)
|
|
51914
|
+
], RunConversationArtifactPermissionViewResult.prototype, "Results", void 0);
|
|
51915
|
+
__decorate([
|
|
51916
|
+
Field(() => String, { nullable: true }),
|
|
51917
|
+
__metadata("design:type", String)
|
|
51918
|
+
], RunConversationArtifactPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
51919
|
+
__decorate([
|
|
51920
|
+
Field(() => Int, { nullable: true }),
|
|
51921
|
+
__metadata("design:type", Number)
|
|
51922
|
+
], RunConversationArtifactPermissionViewResult.prototype, "RowCount", void 0);
|
|
51923
|
+
__decorate([
|
|
51924
|
+
Field(() => Int, { nullable: true }),
|
|
51925
|
+
__metadata("design:type", Number)
|
|
51926
|
+
], RunConversationArtifactPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
51927
|
+
__decorate([
|
|
51928
|
+
Field(() => Int, { nullable: true }),
|
|
51929
|
+
__metadata("design:type", Number)
|
|
51930
|
+
], RunConversationArtifactPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
51931
|
+
__decorate([
|
|
51932
|
+
Field({ nullable: true }),
|
|
51933
|
+
__metadata("design:type", String)
|
|
51934
|
+
], RunConversationArtifactPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
51935
|
+
__decorate([
|
|
51936
|
+
Field(() => Boolean, { nullable: false }),
|
|
51937
|
+
__metadata("design:type", Boolean)
|
|
51938
|
+
], RunConversationArtifactPermissionViewResult.prototype, "Success", void 0);
|
|
51939
|
+
RunConversationArtifactPermissionViewResult = __decorate([
|
|
51940
|
+
ObjectType()
|
|
51941
|
+
], RunConversationArtifactPermissionViewResult);
|
|
51942
|
+
export { RunConversationArtifactPermissionViewResult };
|
|
51943
|
+
let ConversationArtifactPermissionResolver = class ConversationArtifactPermissionResolver extends ResolverBase {
|
|
51944
|
+
async RunConversationArtifactPermissionViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
51945
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51946
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
51947
|
+
}
|
|
51948
|
+
async RunConversationArtifactPermissionViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
51949
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51950
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
51951
|
+
}
|
|
51952
|
+
async RunConversationArtifactPermissionDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
51953
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51954
|
+
input.EntityName = 'MJ: Conversation Artifact Permissions';
|
|
51955
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
51956
|
+
}
|
|
51957
|
+
async ConversationArtifactPermission(ID, { dataSources, userPayload }, pubSub) {
|
|
51958
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
51959
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51960
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
51961
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
51962
|
+
return result;
|
|
51963
|
+
}
|
|
51964
|
+
async CreateConversationArtifactPermission(input, { dataSources, userPayload }, pubSub) {
|
|
51965
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51966
|
+
return this.CreateRecord('MJ: Conversation Artifact Permissions', input, dataSource, userPayload, pubSub);
|
|
51967
|
+
}
|
|
51968
|
+
async UpdateConversationArtifactPermission(input, { dataSources, userPayload }, pubSub) {
|
|
51969
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51970
|
+
return this.UpdateRecord('MJ: Conversation Artifact Permissions', input, dataSource, userPayload, pubSub);
|
|
51971
|
+
}
|
|
51972
|
+
async DeleteConversationArtifactPermission(ID, options, { dataSources, userPayload }, pubSub) {
|
|
51973
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51974
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
51975
|
+
return this.DeleteRecord('MJ: Conversation Artifact Permissions', key, options, dataSource, userPayload, pubSub);
|
|
51976
|
+
}
|
|
51977
|
+
};
|
|
51978
|
+
__decorate([
|
|
51979
|
+
Query(() => RunConversationArtifactPermissionViewResult),
|
|
51980
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
51981
|
+
__param(1, Ctx()),
|
|
51982
|
+
__param(2, PubSub()),
|
|
51983
|
+
__metadata("design:type", Function),
|
|
51984
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
51985
|
+
__metadata("design:returntype", Promise)
|
|
51986
|
+
], ConversationArtifactPermissionResolver.prototype, "RunConversationArtifactPermissionViewByID", null);
|
|
51987
|
+
__decorate([
|
|
51988
|
+
Query(() => RunConversationArtifactPermissionViewResult),
|
|
51989
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
51990
|
+
__param(1, Ctx()),
|
|
51991
|
+
__param(2, PubSub()),
|
|
51992
|
+
__metadata("design:type", Function),
|
|
51993
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
51994
|
+
__metadata("design:returntype", Promise)
|
|
51995
|
+
], ConversationArtifactPermissionResolver.prototype, "RunConversationArtifactPermissionViewByName", null);
|
|
51996
|
+
__decorate([
|
|
51997
|
+
Query(() => RunConversationArtifactPermissionViewResult),
|
|
51998
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
51999
|
+
__param(1, Ctx()),
|
|
52000
|
+
__param(2, PubSub()),
|
|
52001
|
+
__metadata("design:type", Function),
|
|
52002
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
52003
|
+
__metadata("design:returntype", Promise)
|
|
52004
|
+
], ConversationArtifactPermissionResolver.prototype, "RunConversationArtifactPermissionDynamicView", null);
|
|
52005
|
+
__decorate([
|
|
52006
|
+
Query(() => ConversationArtifactPermission_, { nullable: true }),
|
|
52007
|
+
__param(0, Arg('ID', () => String)),
|
|
52008
|
+
__param(1, Ctx()),
|
|
52009
|
+
__param(2, PubSub()),
|
|
52010
|
+
__metadata("design:type", Function),
|
|
52011
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
52012
|
+
__metadata("design:returntype", Promise)
|
|
52013
|
+
], ConversationArtifactPermissionResolver.prototype, "ConversationArtifactPermission", null);
|
|
52014
|
+
__decorate([
|
|
52015
|
+
Mutation(() => ConversationArtifactPermission_),
|
|
52016
|
+
__param(0, Arg('input', () => CreateConversationArtifactPermissionInput)),
|
|
52017
|
+
__param(1, Ctx()),
|
|
52018
|
+
__param(2, PubSub()),
|
|
52019
|
+
__metadata("design:type", Function),
|
|
52020
|
+
__metadata("design:paramtypes", [CreateConversationArtifactPermissionInput, Object, PubSubEngine]),
|
|
52021
|
+
__metadata("design:returntype", Promise)
|
|
52022
|
+
], ConversationArtifactPermissionResolver.prototype, "CreateConversationArtifactPermission", null);
|
|
52023
|
+
__decorate([
|
|
52024
|
+
Mutation(() => ConversationArtifactPermission_),
|
|
52025
|
+
__param(0, Arg('input', () => UpdateConversationArtifactPermissionInput)),
|
|
52026
|
+
__param(1, Ctx()),
|
|
52027
|
+
__param(2, PubSub()),
|
|
52028
|
+
__metadata("design:type", Function),
|
|
52029
|
+
__metadata("design:paramtypes", [UpdateConversationArtifactPermissionInput, Object, PubSubEngine]),
|
|
52030
|
+
__metadata("design:returntype", Promise)
|
|
52031
|
+
], ConversationArtifactPermissionResolver.prototype, "UpdateConversationArtifactPermission", null);
|
|
52032
|
+
__decorate([
|
|
52033
|
+
Mutation(() => ConversationArtifactPermission_),
|
|
52034
|
+
__param(0, Arg('ID', () => String)),
|
|
52035
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
52036
|
+
__param(2, Ctx()),
|
|
52037
|
+
__param(3, PubSub()),
|
|
52038
|
+
__metadata("design:type", Function),
|
|
52039
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
52040
|
+
__metadata("design:returntype", Promise)
|
|
52041
|
+
], ConversationArtifactPermissionResolver.prototype, "DeleteConversationArtifactPermission", null);
|
|
52042
|
+
ConversationArtifactPermissionResolver = __decorate([
|
|
52043
|
+
Resolver(ConversationArtifactPermission_)
|
|
52044
|
+
], ConversationArtifactPermissionResolver);
|
|
52045
|
+
export { ConversationArtifactPermissionResolver };
|
|
50959
52046
|
let AIAgentLearningCycle_ = class AIAgentLearningCycle_ {
|
|
50960
52047
|
ID;
|
|
50961
52048
|
AgentID;
|