@memberjunction/server 2.36.1 → 2.37.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/config.d.ts +5 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -1
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +23 -15
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +138 -73
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +24 -1
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +42 -6
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/scheduler/LearningCycleScheduler.d.ts.map +1 -1
- package/dist/scheduler/LearningCycleScheduler.js +3 -4
- package/dist/scheduler/LearningCycleScheduler.js.map +1 -1
- package/package.json +22 -22
- package/src/config.ts +8 -0
- package/src/generated/generated.ts +92 -53
- package/src/generic/ResolverBase.ts +25 -1
- package/src/resolvers/AskSkipResolver.ts +53 -9
- package/src/scheduler/LearningCycleScheduler.ts +7 -10
|
@@ -2201,12 +2201,12 @@ __decorate([
|
|
|
2201
2201
|
__metadata("design:type", String)
|
|
2202
2202
|
], AIAgentNote_.prototype, "ID", void 0);
|
|
2203
2203
|
__decorate([
|
|
2204
|
-
Field(),
|
|
2204
|
+
Field({ nullable: true }),
|
|
2205
2205
|
MaxLength(16),
|
|
2206
2206
|
__metadata("design:type", String)
|
|
2207
2207
|
], AIAgentNote_.prototype, "AgentID", void 0);
|
|
2208
2208
|
__decorate([
|
|
2209
|
-
Field(),
|
|
2209
|
+
Field({ nullable: true }),
|
|
2210
2210
|
MaxLength(16),
|
|
2211
2211
|
__metadata("design:type", String)
|
|
2212
2212
|
], AIAgentNote_.prototype, "AgentNoteTypeID", void 0);
|
|
@@ -9821,15 +9821,15 @@ let User_ = class User_ {
|
|
|
9821
9821
|
UserNotifications_UserIDArray;
|
|
9822
9822
|
Templates_UserIDArray;
|
|
9823
9823
|
UserFavorites_UserIDArray;
|
|
9824
|
+
ResourceLinks_UserIDArray;
|
|
9824
9825
|
ListCategories_UserIDArray;
|
|
9825
9826
|
ScheduledActions_CreatedByUserIDArray;
|
|
9826
9827
|
AIAgentRequests_ResponseByUserIDArray;
|
|
9827
|
-
ResourceLinks_UserIDArray;
|
|
9828
9828
|
MJ_ReportUserStates_UserIDArray;
|
|
9829
9829
|
AIAgentNotes_UserIDArray;
|
|
9830
|
+
ResourcePermissions_UserIDArray;
|
|
9830
9831
|
AIAgentRequests_RequestForUserIDArray;
|
|
9831
9832
|
ConversationDetails_UserIDArray;
|
|
9832
|
-
ResourcePermissions_UserIDArray;
|
|
9833
9833
|
};
|
|
9834
9834
|
__decorate([
|
|
9835
9835
|
Field(),
|
|
@@ -10050,6 +10050,10 @@ __decorate([
|
|
|
10050
10050
|
Field(() => [UserFavorite_]),
|
|
10051
10051
|
__metadata("design:type", Array)
|
|
10052
10052
|
], User_.prototype, "UserFavorites_UserIDArray", void 0);
|
|
10053
|
+
__decorate([
|
|
10054
|
+
Field(() => [ResourceLink_]),
|
|
10055
|
+
__metadata("design:type", Array)
|
|
10056
|
+
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
10053
10057
|
__decorate([
|
|
10054
10058
|
Field(() => [ListCategory_]),
|
|
10055
10059
|
__metadata("design:type", Array)
|
|
@@ -10062,10 +10066,6 @@ __decorate([
|
|
|
10062
10066
|
Field(() => [AIAgentRequest_]),
|
|
10063
10067
|
__metadata("design:type", Array)
|
|
10064
10068
|
], User_.prototype, "AIAgentRequests_ResponseByUserIDArray", void 0);
|
|
10065
|
-
__decorate([
|
|
10066
|
-
Field(() => [ResourceLink_]),
|
|
10067
|
-
__metadata("design:type", Array)
|
|
10068
|
-
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
10069
10069
|
__decorate([
|
|
10070
10070
|
Field(() => [ReportUserState_]),
|
|
10071
10071
|
__metadata("design:type", Array)
|
|
@@ -10074,6 +10074,10 @@ __decorate([
|
|
|
10074
10074
|
Field(() => [AIAgentNote_]),
|
|
10075
10075
|
__metadata("design:type", Array)
|
|
10076
10076
|
], User_.prototype, "AIAgentNotes_UserIDArray", void 0);
|
|
10077
|
+
__decorate([
|
|
10078
|
+
Field(() => [ResourcePermission_]),
|
|
10079
|
+
__metadata("design:type", Array)
|
|
10080
|
+
], User_.prototype, "ResourcePermissions_UserIDArray", void 0);
|
|
10077
10081
|
__decorate([
|
|
10078
10082
|
Field(() => [AIAgentRequest_]),
|
|
10079
10083
|
__metadata("design:type", Array)
|
|
@@ -10082,10 +10086,6 @@ __decorate([
|
|
|
10082
10086
|
Field(() => [ConversationDetail_]),
|
|
10083
10087
|
__metadata("design:type", Array)
|
|
10084
10088
|
], User_.prototype, "ConversationDetails_UserIDArray", void 0);
|
|
10085
|
-
__decorate([
|
|
10086
|
-
Field(() => [ResourcePermission_]),
|
|
10087
|
-
__metadata("design:type", Array)
|
|
10088
|
-
], User_.prototype, "ResourcePermissions_UserIDArray", void 0);
|
|
10089
10089
|
User_ = __decorate([
|
|
10090
10090
|
ObjectType({ description: `A list of all users who have or had access to the system` })
|
|
10091
10091
|
], User_);
|
|
@@ -10501,6 +10501,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10501
10501
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
10502
10502
|
return result;
|
|
10503
10503
|
}
|
|
10504
|
+
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10505
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
10506
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10507
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
10508
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
10509
|
+
return result;
|
|
10510
|
+
}
|
|
10504
10511
|
async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10505
10512
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
10506
10513
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10522,13 +10529,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10522
10529
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Requests', await dataSource.query(sSQL));
|
|
10523
10530
|
return result;
|
|
10524
10531
|
}
|
|
10525
|
-
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10526
|
-
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
10527
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10528
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
10529
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
10530
|
-
return result;
|
|
10531
|
-
}
|
|
10532
10532
|
async MJ_ReportUserStates_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10533
10533
|
this.CheckUserReadPermissions('MJ: Report User States', userPayload);
|
|
10534
10534
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10543,6 +10543,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10543
10543
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Notes', await dataSource.query(sSQL));
|
|
10544
10544
|
return result;
|
|
10545
10545
|
}
|
|
10546
|
+
async ResourcePermissions_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10547
|
+
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
10548
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10549
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
10550
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL));
|
|
10551
|
+
return result;
|
|
10552
|
+
}
|
|
10546
10553
|
async AIAgentRequests_RequestForUserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10547
10554
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
10548
10555
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10557,13 +10564,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10557
10564
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', await dataSource.query(sSQL));
|
|
10558
10565
|
return result;
|
|
10559
10566
|
}
|
|
10560
|
-
async ResourcePermissions_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10561
|
-
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
10562
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10563
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
10564
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL));
|
|
10565
|
-
return result;
|
|
10566
|
-
}
|
|
10567
10567
|
async CreateUser(input, { dataSources, userPayload }, pubSub) {
|
|
10568
10568
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
10569
10569
|
return this.CreateRecord('Users', input, dataSource, userPayload, pubSub);
|
|
@@ -10893,41 +10893,41 @@ __decorate([
|
|
|
10893
10893
|
__metadata("design:returntype", Promise)
|
|
10894
10894
|
], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
|
|
10895
10895
|
__decorate([
|
|
10896
|
-
FieldResolver(() => [
|
|
10896
|
+
FieldResolver(() => [ResourceLink_]),
|
|
10897
10897
|
__param(0, Root()),
|
|
10898
10898
|
__param(1, Ctx()),
|
|
10899
10899
|
__param(2, PubSub()),
|
|
10900
10900
|
__metadata("design:type", Function),
|
|
10901
10901
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10902
10902
|
__metadata("design:returntype", Promise)
|
|
10903
|
-
], UserResolverBase.prototype, "
|
|
10903
|
+
], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
|
|
10904
10904
|
__decorate([
|
|
10905
|
-
FieldResolver(() => [
|
|
10905
|
+
FieldResolver(() => [ListCategory_]),
|
|
10906
10906
|
__param(0, Root()),
|
|
10907
10907
|
__param(1, Ctx()),
|
|
10908
10908
|
__param(2, PubSub()),
|
|
10909
10909
|
__metadata("design:type", Function),
|
|
10910
10910
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10911
10911
|
__metadata("design:returntype", Promise)
|
|
10912
|
-
], UserResolverBase.prototype, "
|
|
10912
|
+
], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
|
|
10913
10913
|
__decorate([
|
|
10914
|
-
FieldResolver(() => [
|
|
10914
|
+
FieldResolver(() => [ScheduledAction_]),
|
|
10915
10915
|
__param(0, Root()),
|
|
10916
10916
|
__param(1, Ctx()),
|
|
10917
10917
|
__param(2, PubSub()),
|
|
10918
10918
|
__metadata("design:type", Function),
|
|
10919
10919
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10920
10920
|
__metadata("design:returntype", Promise)
|
|
10921
|
-
], UserResolverBase.prototype, "
|
|
10921
|
+
], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
|
|
10922
10922
|
__decorate([
|
|
10923
|
-
FieldResolver(() => [
|
|
10923
|
+
FieldResolver(() => [AIAgentRequest_]),
|
|
10924
10924
|
__param(0, Root()),
|
|
10925
10925
|
__param(1, Ctx()),
|
|
10926
10926
|
__param(2, PubSub()),
|
|
10927
10927
|
__metadata("design:type", Function),
|
|
10928
10928
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10929
10929
|
__metadata("design:returntype", Promise)
|
|
10930
|
-
], UserResolverBase.prototype, "
|
|
10930
|
+
], UserResolverBase.prototype, "AIAgentRequests_ResponseByUserIDArray", null);
|
|
10931
10931
|
__decorate([
|
|
10932
10932
|
FieldResolver(() => [ReportUserState_]),
|
|
10933
10933
|
__param(0, Root()),
|
|
@@ -10947,32 +10947,32 @@ __decorate([
|
|
|
10947
10947
|
__metadata("design:returntype", Promise)
|
|
10948
10948
|
], UserResolverBase.prototype, "AIAgentNotes_UserIDArray", null);
|
|
10949
10949
|
__decorate([
|
|
10950
|
-
FieldResolver(() => [
|
|
10950
|
+
FieldResolver(() => [ResourcePermission_]),
|
|
10951
10951
|
__param(0, Root()),
|
|
10952
10952
|
__param(1, Ctx()),
|
|
10953
10953
|
__param(2, PubSub()),
|
|
10954
10954
|
__metadata("design:type", Function),
|
|
10955
10955
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10956
10956
|
__metadata("design:returntype", Promise)
|
|
10957
|
-
], UserResolverBase.prototype, "
|
|
10957
|
+
], UserResolverBase.prototype, "ResourcePermissions_UserIDArray", null);
|
|
10958
10958
|
__decorate([
|
|
10959
|
-
FieldResolver(() => [
|
|
10959
|
+
FieldResolver(() => [AIAgentRequest_]),
|
|
10960
10960
|
__param(0, Root()),
|
|
10961
10961
|
__param(1, Ctx()),
|
|
10962
10962
|
__param(2, PubSub()),
|
|
10963
10963
|
__metadata("design:type", Function),
|
|
10964
10964
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10965
10965
|
__metadata("design:returntype", Promise)
|
|
10966
|
-
], UserResolverBase.prototype, "
|
|
10966
|
+
], UserResolverBase.prototype, "AIAgentRequests_RequestForUserIDArray", null);
|
|
10967
10967
|
__decorate([
|
|
10968
|
-
FieldResolver(() => [
|
|
10968
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
10969
10969
|
__param(0, Root()),
|
|
10970
10970
|
__param(1, Ctx()),
|
|
10971
10971
|
__param(2, PubSub()),
|
|
10972
10972
|
__metadata("design:type", Function),
|
|
10973
10973
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10974
10974
|
__metadata("design:returntype", Promise)
|
|
10975
|
-
], UserResolverBase.prototype, "
|
|
10975
|
+
], UserResolverBase.prototype, "ConversationDetails_UserIDArray", null);
|
|
10976
10976
|
__decorate([
|
|
10977
10977
|
Mutation(() => User_),
|
|
10978
10978
|
__param(0, Arg('input', () => CreateUserInput)),
|
|
@@ -19146,15 +19146,14 @@ let AIModel_ = class AIModel_ {
|
|
|
19146
19146
|
ModelSelectionInsights;
|
|
19147
19147
|
InputTokenLimit;
|
|
19148
19148
|
SupportedResponseFormats;
|
|
19149
|
-
SupportsEffortLevel;
|
|
19150
19149
|
AIModelType;
|
|
19151
19150
|
AIActions_DefaultModelIDArray;
|
|
19152
19151
|
EntityDocuments_AIModelIDArray;
|
|
19153
19152
|
AIModelActions_AIModelIDArray;
|
|
19154
19153
|
VectorIndexes_EmbeddingModelIDArray;
|
|
19154
|
+
ContentTypes_AIModelIDArray;
|
|
19155
19155
|
AIResultCache_AIModelIDArray;
|
|
19156
19156
|
EntityAIActions_AIModelIDArray;
|
|
19157
|
-
ContentTypes_AIModelIDArray;
|
|
19158
19157
|
AIAgentModels_ModelIDArray;
|
|
19159
19158
|
GeneratedCodes_GeneratedByModelIDArray;
|
|
19160
19159
|
};
|
|
@@ -19236,10 +19235,6 @@ __decorate([
|
|
|
19236
19235
|
MaxLength(200),
|
|
19237
19236
|
__metadata("design:type", String)
|
|
19238
19237
|
], AIModel_.prototype, "SupportedResponseFormats", void 0);
|
|
19239
|
-
__decorate([
|
|
19240
|
-
Field(() => Boolean, { description: `Specifies if the model supports the concept of an effort level. For example, for a reasoning model, the options often include low, medium, and high.` }),
|
|
19241
|
-
__metadata("design:type", Boolean)
|
|
19242
|
-
], AIModel_.prototype, "SupportsEffortLevel", void 0);
|
|
19243
19238
|
__decorate([
|
|
19244
19239
|
Field(),
|
|
19245
19240
|
MaxLength(100),
|
|
@@ -19261,6 +19256,10 @@ __decorate([
|
|
|
19261
19256
|
Field(() => [VectorIndex_]),
|
|
19262
19257
|
__metadata("design:type", Array)
|
|
19263
19258
|
], AIModel_.prototype, "VectorIndexes_EmbeddingModelIDArray", void 0);
|
|
19259
|
+
__decorate([
|
|
19260
|
+
Field(() => [ContentType_]),
|
|
19261
|
+
__metadata("design:type", Array)
|
|
19262
|
+
], AIModel_.prototype, "ContentTypes_AIModelIDArray", void 0);
|
|
19264
19263
|
__decorate([
|
|
19265
19264
|
Field(() => [AIResultCache_]),
|
|
19266
19265
|
__metadata("design:type", Array)
|
|
@@ -19269,10 +19268,6 @@ __decorate([
|
|
|
19269
19268
|
Field(() => [EntityAIAction_]),
|
|
19270
19269
|
__metadata("design:type", Array)
|
|
19271
19270
|
], AIModel_.prototype, "EntityAIActions_AIModelIDArray", void 0);
|
|
19272
|
-
__decorate([
|
|
19273
|
-
Field(() => [ContentType_]),
|
|
19274
|
-
__metadata("design:type", Array)
|
|
19275
|
-
], AIModel_.prototype, "ContentTypes_AIModelIDArray", void 0);
|
|
19276
19271
|
__decorate([
|
|
19277
19272
|
Field(() => [AIAgentModel_]),
|
|
19278
19273
|
__metadata("design:type", Array)
|
|
@@ -19300,7 +19295,6 @@ let CreateAIModelInput = class CreateAIModelInput {
|
|
|
19300
19295
|
ModelSelectionInsights;
|
|
19301
19296
|
InputTokenLimit;
|
|
19302
19297
|
SupportedResponseFormats;
|
|
19303
|
-
SupportsEffortLevel;
|
|
19304
19298
|
};
|
|
19305
19299
|
__decorate([
|
|
19306
19300
|
Field({ nullable: true }),
|
|
@@ -19358,10 +19352,6 @@ __decorate([
|
|
|
19358
19352
|
Field({ nullable: true }),
|
|
19359
19353
|
__metadata("design:type", String)
|
|
19360
19354
|
], CreateAIModelInput.prototype, "SupportedResponseFormats", void 0);
|
|
19361
|
-
__decorate([
|
|
19362
|
-
Field(() => Boolean, { nullable: true }),
|
|
19363
|
-
__metadata("design:type", Boolean)
|
|
19364
|
-
], CreateAIModelInput.prototype, "SupportsEffortLevel", void 0);
|
|
19365
19355
|
CreateAIModelInput = __decorate([
|
|
19366
19356
|
InputType()
|
|
19367
19357
|
], CreateAIModelInput);
|
|
@@ -19382,7 +19372,6 @@ let UpdateAIModelInput = class UpdateAIModelInput {
|
|
|
19382
19372
|
ModelSelectionInsights;
|
|
19383
19373
|
InputTokenLimit;
|
|
19384
19374
|
SupportedResponseFormats;
|
|
19385
|
-
SupportsEffortLevel;
|
|
19386
19375
|
OldValues___;
|
|
19387
19376
|
};
|
|
19388
19377
|
__decorate([
|
|
@@ -19445,10 +19434,6 @@ __decorate([
|
|
|
19445
19434
|
Field({ nullable: true }),
|
|
19446
19435
|
__metadata("design:type", String)
|
|
19447
19436
|
], UpdateAIModelInput.prototype, "SupportedResponseFormats", void 0);
|
|
19448
|
-
__decorate([
|
|
19449
|
-
Field(() => Boolean, { nullable: true }),
|
|
19450
|
-
__metadata("design:type", Boolean)
|
|
19451
|
-
], UpdateAIModelInput.prototype, "SupportsEffortLevel", void 0);
|
|
19452
19437
|
__decorate([
|
|
19453
19438
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
19454
19439
|
__metadata("design:type", Array)
|
|
@@ -19554,6 +19539,13 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
19554
19539
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
19555
19540
|
return result;
|
|
19556
19541
|
}
|
|
19542
|
+
async ContentTypes_AIModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19543
|
+
this.CheckUserReadPermissions('Content Types', userPayload);
|
|
19544
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19545
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentTypes] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
19546
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Types', await dataSource.query(sSQL));
|
|
19547
|
+
return result;
|
|
19548
|
+
}
|
|
19557
19549
|
async AIResultCache_AIModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19558
19550
|
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
19559
19551
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -19568,13 +19560,6 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
19568
19560
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
19569
19561
|
return result;
|
|
19570
19562
|
}
|
|
19571
|
-
async ContentTypes_AIModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19572
|
-
this.CheckUserReadPermissions('Content Types', userPayload);
|
|
19573
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19574
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentTypes] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
19575
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Content Types', await dataSource.query(sSQL));
|
|
19576
|
-
return result;
|
|
19577
|
-
}
|
|
19578
19563
|
async AIAgentModels_ModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19579
19564
|
this.CheckUserReadPermissions('AI Agent Models', userPayload);
|
|
19580
19565
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -19684,32 +19669,32 @@ __decorate([
|
|
|
19684
19669
|
__metadata("design:returntype", Promise)
|
|
19685
19670
|
], AIModelResolver.prototype, "VectorIndexes_EmbeddingModelIDArray", null);
|
|
19686
19671
|
__decorate([
|
|
19687
|
-
FieldResolver(() => [
|
|
19672
|
+
FieldResolver(() => [ContentType_]),
|
|
19688
19673
|
__param(0, Root()),
|
|
19689
19674
|
__param(1, Ctx()),
|
|
19690
19675
|
__param(2, PubSub()),
|
|
19691
19676
|
__metadata("design:type", Function),
|
|
19692
19677
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19693
19678
|
__metadata("design:returntype", Promise)
|
|
19694
|
-
], AIModelResolver.prototype, "
|
|
19679
|
+
], AIModelResolver.prototype, "ContentTypes_AIModelIDArray", null);
|
|
19695
19680
|
__decorate([
|
|
19696
|
-
FieldResolver(() => [
|
|
19681
|
+
FieldResolver(() => [AIResultCache_]),
|
|
19697
19682
|
__param(0, Root()),
|
|
19698
19683
|
__param(1, Ctx()),
|
|
19699
19684
|
__param(2, PubSub()),
|
|
19700
19685
|
__metadata("design:type", Function),
|
|
19701
19686
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19702
19687
|
__metadata("design:returntype", Promise)
|
|
19703
|
-
], AIModelResolver.prototype, "
|
|
19688
|
+
], AIModelResolver.prototype, "AIResultCache_AIModelIDArray", null);
|
|
19704
19689
|
__decorate([
|
|
19705
|
-
FieldResolver(() => [
|
|
19690
|
+
FieldResolver(() => [EntityAIAction_]),
|
|
19706
19691
|
__param(0, Root()),
|
|
19707
19692
|
__param(1, Ctx()),
|
|
19708
19693
|
__param(2, PubSub()),
|
|
19709
19694
|
__metadata("design:type", Function),
|
|
19710
19695
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19711
19696
|
__metadata("design:returntype", Promise)
|
|
19712
|
-
], AIModelResolver.prototype, "
|
|
19697
|
+
], AIModelResolver.prototype, "EntityAIActions_AIModelIDArray", null);
|
|
19713
19698
|
__decorate([
|
|
19714
19699
|
FieldResolver(() => [AIAgentModel_]),
|
|
19715
19700
|
__param(0, Root()),
|
|
@@ -25074,8 +25059,11 @@ let ConversationDetail_ = class ConversationDetail_ {
|
|
|
25074
25059
|
ReflectionInsights;
|
|
25075
25060
|
SummaryOfEarlierConversation;
|
|
25076
25061
|
UserID;
|
|
25062
|
+
ArtifactID;
|
|
25063
|
+
ArtifactVersionID;
|
|
25077
25064
|
Conversation;
|
|
25078
25065
|
User;
|
|
25066
|
+
Artifact;
|
|
25079
25067
|
Reports_ConversationDetailIDArray;
|
|
25080
25068
|
};
|
|
25081
25069
|
__decorate([
|
|
@@ -25141,6 +25129,16 @@ __decorate([
|
|
|
25141
25129
|
MaxLength(16),
|
|
25142
25130
|
__metadata("design:type", String)
|
|
25143
25131
|
], ConversationDetail_.prototype, "UserID", void 0);
|
|
25132
|
+
__decorate([
|
|
25133
|
+
Field({ nullable: true, description: `Optional reference to a conversation artifact associated with this conversation detail` }),
|
|
25134
|
+
MaxLength(16),
|
|
25135
|
+
__metadata("design:type", String)
|
|
25136
|
+
], ConversationDetail_.prototype, "ArtifactID", void 0);
|
|
25137
|
+
__decorate([
|
|
25138
|
+
Field({ nullable: true, description: `Optional reference to a specific version of a conversation artifact associated with this conversation detail` }),
|
|
25139
|
+
MaxLength(16),
|
|
25140
|
+
__metadata("design:type", String)
|
|
25141
|
+
], ConversationDetail_.prototype, "ArtifactVersionID", void 0);
|
|
25144
25142
|
__decorate([
|
|
25145
25143
|
Field({ nullable: true }),
|
|
25146
25144
|
MaxLength(510),
|
|
@@ -25151,6 +25149,11 @@ __decorate([
|
|
|
25151
25149
|
MaxLength(200),
|
|
25152
25150
|
__metadata("design:type", String)
|
|
25153
25151
|
], ConversationDetail_.prototype, "User", void 0);
|
|
25152
|
+
__decorate([
|
|
25153
|
+
Field({ nullable: true }),
|
|
25154
|
+
MaxLength(510),
|
|
25155
|
+
__metadata("design:type", String)
|
|
25156
|
+
], ConversationDetail_.prototype, "Artifact", void 0);
|
|
25154
25157
|
__decorate([
|
|
25155
25158
|
Field(() => [Report_]),
|
|
25156
25159
|
__metadata("design:type", Array)
|
|
@@ -25171,6 +25174,8 @@ let CreateConversationDetailInput = class CreateConversationDetailInput {
|
|
|
25171
25174
|
ReflectionInsights;
|
|
25172
25175
|
SummaryOfEarlierConversation;
|
|
25173
25176
|
UserID;
|
|
25177
|
+
ArtifactID;
|
|
25178
|
+
ArtifactVersionID;
|
|
25174
25179
|
};
|
|
25175
25180
|
__decorate([
|
|
25176
25181
|
Field({ nullable: true }),
|
|
@@ -25216,6 +25221,14 @@ __decorate([
|
|
|
25216
25221
|
Field({ nullable: true }),
|
|
25217
25222
|
__metadata("design:type", String)
|
|
25218
25223
|
], CreateConversationDetailInput.prototype, "UserID", void 0);
|
|
25224
|
+
__decorate([
|
|
25225
|
+
Field({ nullable: true }),
|
|
25226
|
+
__metadata("design:type", String)
|
|
25227
|
+
], CreateConversationDetailInput.prototype, "ArtifactID", void 0);
|
|
25228
|
+
__decorate([
|
|
25229
|
+
Field({ nullable: true }),
|
|
25230
|
+
__metadata("design:type", String)
|
|
25231
|
+
], CreateConversationDetailInput.prototype, "ArtifactVersionID", void 0);
|
|
25219
25232
|
CreateConversationDetailInput = __decorate([
|
|
25220
25233
|
InputType()
|
|
25221
25234
|
], CreateConversationDetailInput);
|
|
@@ -25233,6 +25246,8 @@ let UpdateConversationDetailInput = class UpdateConversationDetailInput {
|
|
|
25233
25246
|
ReflectionInsights;
|
|
25234
25247
|
SummaryOfEarlierConversation;
|
|
25235
25248
|
UserID;
|
|
25249
|
+
ArtifactID;
|
|
25250
|
+
ArtifactVersionID;
|
|
25236
25251
|
OldValues___;
|
|
25237
25252
|
};
|
|
25238
25253
|
__decorate([
|
|
@@ -25283,6 +25298,14 @@ __decorate([
|
|
|
25283
25298
|
Field({ nullable: true }),
|
|
25284
25299
|
__metadata("design:type", String)
|
|
25285
25300
|
], UpdateConversationDetailInput.prototype, "UserID", void 0);
|
|
25301
|
+
__decorate([
|
|
25302
|
+
Field({ nullable: true }),
|
|
25303
|
+
__metadata("design:type", String)
|
|
25304
|
+
], UpdateConversationDetailInput.prototype, "ArtifactID", void 0);
|
|
25305
|
+
__decorate([
|
|
25306
|
+
Field({ nullable: true }),
|
|
25307
|
+
__metadata("design:type", String)
|
|
25308
|
+
], UpdateConversationDetailInput.prototype, "ArtifactVersionID", void 0);
|
|
25286
25309
|
__decorate([
|
|
25287
25310
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
25288
25311
|
__metadata("design:type", Array)
|
|
@@ -46629,6 +46652,7 @@ let ConversationArtifactVersion_ = class ConversationArtifactVersion_ {
|
|
|
46629
46652
|
_mj__CreatedAt;
|
|
46630
46653
|
_mj__UpdatedAt;
|
|
46631
46654
|
ConversationArtifact;
|
|
46655
|
+
ConversationDetails_ArtifactVersionIDArray;
|
|
46632
46656
|
};
|
|
46633
46657
|
__decorate([
|
|
46634
46658
|
Field(),
|
|
@@ -46671,6 +46695,10 @@ __decorate([
|
|
|
46671
46695
|
MaxLength(510),
|
|
46672
46696
|
__metadata("design:type", String)
|
|
46673
46697
|
], ConversationArtifactVersion_.prototype, "ConversationArtifact", void 0);
|
|
46698
|
+
__decorate([
|
|
46699
|
+
Field(() => [ConversationDetail_]),
|
|
46700
|
+
__metadata("design:type", Array)
|
|
46701
|
+
], ConversationArtifactVersion_.prototype, "ConversationDetails_ArtifactVersionIDArray", void 0);
|
|
46674
46702
|
ConversationArtifactVersion_ = __decorate([
|
|
46675
46703
|
ObjectType()
|
|
46676
46704
|
], ConversationArtifactVersion_);
|
|
@@ -46809,6 +46837,13 @@ let ConversationArtifactVersionResolver = class ConversationArtifactVersionResol
|
|
|
46809
46837
|
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
46810
46838
|
return result;
|
|
46811
46839
|
}
|
|
46840
|
+
async ConversationDetails_ArtifactVersionIDArray(conversationartifactversion_, { dataSources, userPayload }, pubSub) {
|
|
46841
|
+
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
46842
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46843
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [ArtifactVersionID]='${conversationartifactversion_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
46844
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', await dataSource.query(sSQL));
|
|
46845
|
+
return result;
|
|
46846
|
+
}
|
|
46812
46847
|
async CreateConversationArtifactVersion(input, { dataSources, userPayload }, pubSub) {
|
|
46813
46848
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
46814
46849
|
return this.CreateRecord('MJ: Conversation Artifact Versions', input, dataSource, userPayload, pubSub);
|
|
@@ -46859,6 +46894,15 @@ __decorate([
|
|
|
46859
46894
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
46860
46895
|
__metadata("design:returntype", Promise)
|
|
46861
46896
|
], ConversationArtifactVersionResolver.prototype, "ConversationArtifactVersion", null);
|
|
46897
|
+
__decorate([
|
|
46898
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
46899
|
+
__param(0, Root()),
|
|
46900
|
+
__param(1, Ctx()),
|
|
46901
|
+
__param(2, PubSub()),
|
|
46902
|
+
__metadata("design:type", Function),
|
|
46903
|
+
__metadata("design:paramtypes", [ConversationArtifactVersion_, Object, PubSubEngine]),
|
|
46904
|
+
__metadata("design:returntype", Promise)
|
|
46905
|
+
], ConversationArtifactVersionResolver.prototype, "ConversationDetails_ArtifactVersionIDArray", null);
|
|
46862
46906
|
__decorate([
|
|
46863
46907
|
Mutation(() => ConversationArtifactVersion_),
|
|
46864
46908
|
__param(0, Arg('input', () => CreateConversationArtifactVersionInput)),
|
|
@@ -48010,6 +48054,7 @@ let ConversationArtifact_ = class ConversationArtifact_ {
|
|
|
48010
48054
|
ArtifactType;
|
|
48011
48055
|
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
48012
48056
|
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
48057
|
+
ConversationDetails_ArtifactIDArray;
|
|
48013
48058
|
};
|
|
48014
48059
|
__decorate([
|
|
48015
48060
|
Field(),
|
|
@@ -48072,6 +48117,10 @@ __decorate([
|
|
|
48072
48117
|
Field(() => [ConversationArtifactVersion_]),
|
|
48073
48118
|
__metadata("design:type", Array)
|
|
48074
48119
|
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
48120
|
+
__decorate([
|
|
48121
|
+
Field(() => [ConversationDetail_]),
|
|
48122
|
+
__metadata("design:type", Array)
|
|
48123
|
+
], ConversationArtifact_.prototype, "ConversationDetails_ArtifactIDArray", void 0);
|
|
48075
48124
|
ConversationArtifact_ = __decorate([
|
|
48076
48125
|
ObjectType()
|
|
48077
48126
|
], ConversationArtifact_);
|
|
@@ -48234,6 +48283,13 @@ let ConversationArtifactResolver = class ConversationArtifactResolver extends Re
|
|
|
48234
48283
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', await dataSource.query(sSQL));
|
|
48235
48284
|
return result;
|
|
48236
48285
|
}
|
|
48286
|
+
async ConversationDetails_ArtifactIDArray(conversationartifact_, { dataSources, userPayload }, pubSub) {
|
|
48287
|
+
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
48288
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
48289
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [ArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
48290
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', await dataSource.query(sSQL));
|
|
48291
|
+
return result;
|
|
48292
|
+
}
|
|
48237
48293
|
async CreateConversationArtifact(input, { dataSources, userPayload }, pubSub) {
|
|
48238
48294
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
48239
48295
|
return this.CreateRecord('MJ: Conversation Artifacts', input, dataSource, userPayload, pubSub);
|
|
@@ -48302,6 +48358,15 @@ __decorate([
|
|
|
48302
48358
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
48303
48359
|
__metadata("design:returntype", Promise)
|
|
48304
48360
|
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
48361
|
+
__decorate([
|
|
48362
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
48363
|
+
__param(0, Root()),
|
|
48364
|
+
__param(1, Ctx()),
|
|
48365
|
+
__param(2, PubSub()),
|
|
48366
|
+
__metadata("design:type", Function),
|
|
48367
|
+
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
48368
|
+
__metadata("design:returntype", Promise)
|
|
48369
|
+
], ConversationArtifactResolver.prototype, "ConversationDetails_ArtifactIDArray", null);
|
|
48305
48370
|
__decorate([
|
|
48306
48371
|
Mutation(() => ConversationArtifact_),
|
|
48307
48372
|
__param(0, Arg('input', () => CreateConversationArtifactInput)),
|