@memberjunction/server 2.35.0 → 2.36.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/README.md +15 -1
- package/dist/config.d.ts +69 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -1
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +15 -12
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +73 -58
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts +60 -5
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +587 -31
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/rest/EntityCRUDHandler.d.ts +29 -0
- package/dist/rest/EntityCRUDHandler.d.ts.map +1 -0
- package/dist/rest/EntityCRUDHandler.js +197 -0
- package/dist/rest/EntityCRUDHandler.js.map +1 -0
- package/dist/rest/RESTEndpointHandler.d.ts +41 -0
- package/dist/rest/RESTEndpointHandler.d.ts.map +1 -0
- package/dist/rest/RESTEndpointHandler.js +537 -0
- package/dist/rest/RESTEndpointHandler.js.map +1 -0
- package/dist/rest/ViewOperationsHandler.d.ts +21 -0
- package/dist/rest/ViewOperationsHandler.d.ts.map +1 -0
- package/dist/rest/ViewOperationsHandler.js +144 -0
- package/dist/rest/ViewOperationsHandler.js.map +1 -0
- package/dist/rest/index.d.ts +5 -0
- package/dist/rest/index.d.ts.map +1 -0
- package/dist/rest/index.js +5 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/setupRESTEndpoints.d.ts +12 -0
- package/dist/rest/setupRESTEndpoints.d.ts.map +1 -0
- package/dist/rest/setupRESTEndpoints.js +27 -0
- package/dist/rest/setupRESTEndpoints.js.map +1 -0
- package/dist/scheduler/LearningCycleScheduler.d.ts +44 -0
- package/dist/scheduler/LearningCycleScheduler.d.ts.map +1 -0
- package/dist/scheduler/LearningCycleScheduler.js +188 -0
- package/dist/scheduler/LearningCycleScheduler.js.map +1 -0
- package/package.json +24 -26
- package/src/config.ts +15 -1
- package/src/generated/generated.ts +53 -44
- package/src/index.ts +56 -1
- package/src/resolvers/AskSkipResolver.ts +787 -51
- package/src/rest/EntityCRUDHandler.ts +279 -0
- package/src/rest/RESTEndpointHandler.ts +834 -0
- package/src/rest/ViewOperationsHandler.ts +207 -0
- package/src/rest/index.ts +4 -0
- package/src/rest/setupRESTEndpoints.ts +89 -0
- package/src/scheduler/LearningCycleScheduler.ts +312 -0
|
@@ -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(),
|
|
2205
2205
|
MaxLength(16),
|
|
2206
2206
|
__metadata("design:type", String)
|
|
2207
2207
|
], AIAgentNote_.prototype, "AgentID", void 0);
|
|
2208
2208
|
__decorate([
|
|
2209
|
-
Field(
|
|
2209
|
+
Field(),
|
|
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;
|
|
9825
9824
|
ListCategories_UserIDArray;
|
|
9826
9825
|
ScheduledActions_CreatedByUserIDArray;
|
|
9827
9826
|
AIAgentRequests_ResponseByUserIDArray;
|
|
9827
|
+
ResourceLinks_UserIDArray;
|
|
9828
9828
|
MJ_ReportUserStates_UserIDArray;
|
|
9829
9829
|
AIAgentNotes_UserIDArray;
|
|
9830
|
-
ResourcePermissions_UserIDArray;
|
|
9831
9830
|
AIAgentRequests_RequestForUserIDArray;
|
|
9832
9831
|
ConversationDetails_UserIDArray;
|
|
9832
|
+
ResourcePermissions_UserIDArray;
|
|
9833
9833
|
};
|
|
9834
9834
|
__decorate([
|
|
9835
9835
|
Field(),
|
|
@@ -10050,10 +10050,6 @@ __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);
|
|
10057
10053
|
__decorate([
|
|
10058
10054
|
Field(() => [ListCategory_]),
|
|
10059
10055
|
__metadata("design:type", Array)
|
|
@@ -10066,6 +10062,10 @@ __decorate([
|
|
|
10066
10062
|
Field(() => [AIAgentRequest_]),
|
|
10067
10063
|
__metadata("design:type", Array)
|
|
10068
10064
|
], 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,10 +10074,6 @@ __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);
|
|
10081
10077
|
__decorate([
|
|
10082
10078
|
Field(() => [AIAgentRequest_]),
|
|
10083
10079
|
__metadata("design:type", Array)
|
|
@@ -10086,6 +10082,10 @@ __decorate([
|
|
|
10086
10082
|
Field(() => [ConversationDetail_]),
|
|
10087
10083
|
__metadata("design:type", Array)
|
|
10088
10084
|
], 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,13 +10501,6 @@ 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
|
-
}
|
|
10511
10504
|
async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10512
10505
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
10513
10506
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10529,6 +10522,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10529
10522
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Requests', await dataSource.query(sSQL));
|
|
10530
10523
|
return result;
|
|
10531
10524
|
}
|
|
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,13 +10543,6 @@ 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
|
-
}
|
|
10553
10546
|
async AIAgentRequests_RequestForUserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10554
10547
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
10555
10548
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10564,6 +10557,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10564
10557
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', await dataSource.query(sSQL));
|
|
10565
10558
|
return result;
|
|
10566
10559
|
}
|
|
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(() => [ListCategory_]),
|
|
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, "ListCategories_UserIDArray", null);
|
|
10904
10904
|
__decorate([
|
|
10905
|
-
FieldResolver(() => [
|
|
10905
|
+
FieldResolver(() => [ScheduledAction_]),
|
|
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, "ScheduledActions_CreatedByUserIDArray", null);
|
|
10913
10913
|
__decorate([
|
|
10914
|
-
FieldResolver(() => [
|
|
10914
|
+
FieldResolver(() => [AIAgentRequest_]),
|
|
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, "AIAgentRequests_ResponseByUserIDArray", null);
|
|
10922
10922
|
__decorate([
|
|
10923
|
-
FieldResolver(() => [
|
|
10923
|
+
FieldResolver(() => [ResourceLink_]),
|
|
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, "ResourceLinks_UserIDArray", 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(() => [AIAgentRequest_]),
|
|
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, "AIAgentRequests_RequestForUserIDArray", null);
|
|
10958
10958
|
__decorate([
|
|
10959
|
-
FieldResolver(() => [
|
|
10959
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
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, "ConversationDetails_UserIDArray", null);
|
|
10967
10967
|
__decorate([
|
|
10968
|
-
FieldResolver(() => [
|
|
10968
|
+
FieldResolver(() => [ResourcePermission_]),
|
|
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, "ResourcePermissions_UserIDArray", null);
|
|
10976
10976
|
__decorate([
|
|
10977
10977
|
Mutation(() => User_),
|
|
10978
10978
|
__param(0, Arg('input', () => CreateUserInput)),
|
|
@@ -19146,14 +19146,15 @@ let AIModel_ = class AIModel_ {
|
|
|
19146
19146
|
ModelSelectionInsights;
|
|
19147
19147
|
InputTokenLimit;
|
|
19148
19148
|
SupportedResponseFormats;
|
|
19149
|
+
SupportsEffortLevel;
|
|
19149
19150
|
AIModelType;
|
|
19150
19151
|
AIActions_DefaultModelIDArray;
|
|
19151
19152
|
EntityDocuments_AIModelIDArray;
|
|
19152
19153
|
AIModelActions_AIModelIDArray;
|
|
19153
19154
|
VectorIndexes_EmbeddingModelIDArray;
|
|
19154
|
-
ContentTypes_AIModelIDArray;
|
|
19155
19155
|
AIResultCache_AIModelIDArray;
|
|
19156
19156
|
EntityAIActions_AIModelIDArray;
|
|
19157
|
+
ContentTypes_AIModelIDArray;
|
|
19157
19158
|
AIAgentModels_ModelIDArray;
|
|
19158
19159
|
GeneratedCodes_GeneratedByModelIDArray;
|
|
19159
19160
|
};
|
|
@@ -19235,6 +19236,10 @@ __decorate([
|
|
|
19235
19236
|
MaxLength(200),
|
|
19236
19237
|
__metadata("design:type", String)
|
|
19237
19238
|
], 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);
|
|
19238
19243
|
__decorate([
|
|
19239
19244
|
Field(),
|
|
19240
19245
|
MaxLength(100),
|
|
@@ -19256,10 +19261,6 @@ __decorate([
|
|
|
19256
19261
|
Field(() => [VectorIndex_]),
|
|
19257
19262
|
__metadata("design:type", Array)
|
|
19258
19263
|
], AIModel_.prototype, "VectorIndexes_EmbeddingModelIDArray", void 0);
|
|
19259
|
-
__decorate([
|
|
19260
|
-
Field(() => [ContentType_]),
|
|
19261
|
-
__metadata("design:type", Array)
|
|
19262
|
-
], AIModel_.prototype, "ContentTypes_AIModelIDArray", void 0);
|
|
19263
19264
|
__decorate([
|
|
19264
19265
|
Field(() => [AIResultCache_]),
|
|
19265
19266
|
__metadata("design:type", Array)
|
|
@@ -19268,6 +19269,10 @@ __decorate([
|
|
|
19268
19269
|
Field(() => [EntityAIAction_]),
|
|
19269
19270
|
__metadata("design:type", Array)
|
|
19270
19271
|
], AIModel_.prototype, "EntityAIActions_AIModelIDArray", void 0);
|
|
19272
|
+
__decorate([
|
|
19273
|
+
Field(() => [ContentType_]),
|
|
19274
|
+
__metadata("design:type", Array)
|
|
19275
|
+
], AIModel_.prototype, "ContentTypes_AIModelIDArray", void 0);
|
|
19271
19276
|
__decorate([
|
|
19272
19277
|
Field(() => [AIAgentModel_]),
|
|
19273
19278
|
__metadata("design:type", Array)
|
|
@@ -19295,6 +19300,7 @@ let CreateAIModelInput = class CreateAIModelInput {
|
|
|
19295
19300
|
ModelSelectionInsights;
|
|
19296
19301
|
InputTokenLimit;
|
|
19297
19302
|
SupportedResponseFormats;
|
|
19303
|
+
SupportsEffortLevel;
|
|
19298
19304
|
};
|
|
19299
19305
|
__decorate([
|
|
19300
19306
|
Field({ nullable: true }),
|
|
@@ -19352,6 +19358,10 @@ __decorate([
|
|
|
19352
19358
|
Field({ nullable: true }),
|
|
19353
19359
|
__metadata("design:type", String)
|
|
19354
19360
|
], CreateAIModelInput.prototype, "SupportedResponseFormats", void 0);
|
|
19361
|
+
__decorate([
|
|
19362
|
+
Field(() => Boolean, { nullable: true }),
|
|
19363
|
+
__metadata("design:type", Boolean)
|
|
19364
|
+
], CreateAIModelInput.prototype, "SupportsEffortLevel", void 0);
|
|
19355
19365
|
CreateAIModelInput = __decorate([
|
|
19356
19366
|
InputType()
|
|
19357
19367
|
], CreateAIModelInput);
|
|
@@ -19372,6 +19382,7 @@ let UpdateAIModelInput = class UpdateAIModelInput {
|
|
|
19372
19382
|
ModelSelectionInsights;
|
|
19373
19383
|
InputTokenLimit;
|
|
19374
19384
|
SupportedResponseFormats;
|
|
19385
|
+
SupportsEffortLevel;
|
|
19375
19386
|
OldValues___;
|
|
19376
19387
|
};
|
|
19377
19388
|
__decorate([
|
|
@@ -19434,6 +19445,10 @@ __decorate([
|
|
|
19434
19445
|
Field({ nullable: true }),
|
|
19435
19446
|
__metadata("design:type", String)
|
|
19436
19447
|
], UpdateAIModelInput.prototype, "SupportedResponseFormats", void 0);
|
|
19448
|
+
__decorate([
|
|
19449
|
+
Field(() => Boolean, { nullable: true }),
|
|
19450
|
+
__metadata("design:type", Boolean)
|
|
19451
|
+
], UpdateAIModelInput.prototype, "SupportsEffortLevel", void 0);
|
|
19437
19452
|
__decorate([
|
|
19438
19453
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
19439
19454
|
__metadata("design:type", Array)
|
|
@@ -19539,13 +19554,6 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
19539
19554
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
19540
19555
|
return result;
|
|
19541
19556
|
}
|
|
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
|
-
}
|
|
19549
19557
|
async AIResultCache_AIModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19550
19558
|
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
19551
19559
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -19560,6 +19568,13 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
19560
19568
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
19561
19569
|
return result;
|
|
19562
19570
|
}
|
|
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
|
+
}
|
|
19563
19578
|
async AIAgentModels_ModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19564
19579
|
this.CheckUserReadPermissions('AI Agent Models', userPayload);
|
|
19565
19580
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -19669,32 +19684,32 @@ __decorate([
|
|
|
19669
19684
|
__metadata("design:returntype", Promise)
|
|
19670
19685
|
], AIModelResolver.prototype, "VectorIndexes_EmbeddingModelIDArray", null);
|
|
19671
19686
|
__decorate([
|
|
19672
|
-
FieldResolver(() => [
|
|
19687
|
+
FieldResolver(() => [AIResultCache_]),
|
|
19673
19688
|
__param(0, Root()),
|
|
19674
19689
|
__param(1, Ctx()),
|
|
19675
19690
|
__param(2, PubSub()),
|
|
19676
19691
|
__metadata("design:type", Function),
|
|
19677
19692
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19678
19693
|
__metadata("design:returntype", Promise)
|
|
19679
|
-
], AIModelResolver.prototype, "
|
|
19694
|
+
], AIModelResolver.prototype, "AIResultCache_AIModelIDArray", null);
|
|
19680
19695
|
__decorate([
|
|
19681
|
-
FieldResolver(() => [
|
|
19696
|
+
FieldResolver(() => [EntityAIAction_]),
|
|
19682
19697
|
__param(0, Root()),
|
|
19683
19698
|
__param(1, Ctx()),
|
|
19684
19699
|
__param(2, PubSub()),
|
|
19685
19700
|
__metadata("design:type", Function),
|
|
19686
19701
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19687
19702
|
__metadata("design:returntype", Promise)
|
|
19688
|
-
], AIModelResolver.prototype, "
|
|
19703
|
+
], AIModelResolver.prototype, "EntityAIActions_AIModelIDArray", null);
|
|
19689
19704
|
__decorate([
|
|
19690
|
-
FieldResolver(() => [
|
|
19705
|
+
FieldResolver(() => [ContentType_]),
|
|
19691
19706
|
__param(0, Root()),
|
|
19692
19707
|
__param(1, Ctx()),
|
|
19693
19708
|
__param(2, PubSub()),
|
|
19694
19709
|
__metadata("design:type", Function),
|
|
19695
19710
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19696
19711
|
__metadata("design:returntype", Promise)
|
|
19697
|
-
], AIModelResolver.prototype, "
|
|
19712
|
+
], AIModelResolver.prototype, "ContentTypes_AIModelIDArray", null);
|
|
19698
19713
|
__decorate([
|
|
19699
19714
|
FieldResolver(() => [AIAgentModel_]),
|
|
19700
19715
|
__param(0, Root()),
|