@memberjunction/server 2.103.0 → 2.104.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/agents/skip-agent.d.ts +29 -0
- package/dist/agents/skip-agent.d.ts.map +1 -0
- package/dist/agents/skip-agent.js +143 -0
- package/dist/agents/skip-agent.js.map +1 -0
- package/dist/agents/skip-sdk.d.ts +47 -0
- package/dist/agents/skip-sdk.d.ts.map +1 -0
- package/dist/agents/skip-sdk.js +270 -0
- package/dist/agents/skip-sdk.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +76 -16
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +527 -120
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +24 -9
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/resolvers/ComponentRegistryResolver.d.ts +19 -0
- package/dist/resolvers/ComponentRegistryResolver.d.ts.map +1 -1
- package/dist/resolvers/ComponentRegistryResolver.js +140 -2
- package/dist/resolvers/ComponentRegistryResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +3 -3
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +16 -13
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/package.json +38 -38
- package/src/agents/skip-agent.ts +285 -0
- package/src/agents/skip-sdk.ts +543 -0
- package/src/config.ts +3 -2
- package/src/generated/generated.ts +351 -93
- package/src/resolvers/AskSkipResolver.ts +32 -10
- package/src/resolvers/ComponentRegistryResolver.ts +133 -4
- package/src/resolvers/RunAIAgentResolver.ts +16 -10
|
@@ -2493,8 +2493,8 @@ let AIAgentRun_ = class AIAgentRun_ {
|
|
|
2493
2493
|
Configuration;
|
|
2494
2494
|
OverrideModel;
|
|
2495
2495
|
OverrideVendor;
|
|
2496
|
-
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
2497
2496
|
MJ_AIAgentRuns_ParentRunIDArray;
|
|
2497
|
+
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
2498
2498
|
MJ_AIPromptRuns_AgentRunIDArray;
|
|
2499
2499
|
};
|
|
2500
2500
|
__decorate([
|
|
@@ -2702,14 +2702,14 @@ __decorate([
|
|
|
2702
2702
|
MaxLength(100),
|
|
2703
2703
|
__metadata("design:type", String)
|
|
2704
2704
|
], AIAgentRun_.prototype, "OverrideVendor", void 0);
|
|
2705
|
-
__decorate([
|
|
2706
|
-
Field(() => [AIAgentRunStep_]),
|
|
2707
|
-
__metadata("design:type", Array)
|
|
2708
|
-
], AIAgentRun_.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", void 0);
|
|
2709
2705
|
__decorate([
|
|
2710
2706
|
Field(() => [AIAgentRun_]),
|
|
2711
2707
|
__metadata("design:type", Array)
|
|
2712
2708
|
], AIAgentRun_.prototype, "MJ_AIAgentRuns_ParentRunIDArray", void 0);
|
|
2709
|
+
__decorate([
|
|
2710
|
+
Field(() => [AIAgentRunStep_]),
|
|
2711
|
+
__metadata("design:type", Array)
|
|
2712
|
+
], AIAgentRun_.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", void 0);
|
|
2713
2713
|
__decorate([
|
|
2714
2714
|
Field(() => [AIPromptRun_]),
|
|
2715
2715
|
__metadata("design:type", Array)
|
|
@@ -3169,22 +3169,22 @@ let AIAgentRunResolver = class AIAgentRunResolver extends ResolverBase {
|
|
|
3169
3169
|
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
3170
3170
|
return result;
|
|
3171
3171
|
}
|
|
3172
|
-
async
|
|
3173
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3172
|
+
async MJ_AIAgentRuns_ParentRunIDArray(aiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3173
|
+
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
3174
3174
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3175
3175
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3176
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3176
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRuns] WHERE [ParentRunID]='${aiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3177
3177
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3178
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3178
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
3179
3179
|
return result;
|
|
3180
3180
|
}
|
|
3181
|
-
async
|
|
3182
|
-
this.CheckUserReadPermissions('MJ: AI Agent
|
|
3181
|
+
async MJ_AIAgentRunSteps_AgentRunIDArray(aiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
3182
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Steps', userPayload);
|
|
3183
3183
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3184
3184
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3185
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3185
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunSteps] WHERE [AgentRunID]='${aiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
3186
3186
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3187
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent
|
|
3187
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows);
|
|
3188
3188
|
return result;
|
|
3189
3189
|
}
|
|
3190
3190
|
async MJ_AIPromptRuns_AgentRunIDArray(aiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -3247,23 +3247,23 @@ __decorate([
|
|
|
3247
3247
|
__metadata("design:returntype", Promise)
|
|
3248
3248
|
], AIAgentRunResolver.prototype, "AIAgentRun", null);
|
|
3249
3249
|
__decorate([
|
|
3250
|
-
FieldResolver(() => [
|
|
3250
|
+
FieldResolver(() => [AIAgentRun_]),
|
|
3251
3251
|
__param(0, Root()),
|
|
3252
3252
|
__param(1, Ctx()),
|
|
3253
3253
|
__param(2, PubSub()),
|
|
3254
3254
|
__metadata("design:type", Function),
|
|
3255
3255
|
__metadata("design:paramtypes", [AIAgentRun_, Object, PubSubEngine]),
|
|
3256
3256
|
__metadata("design:returntype", Promise)
|
|
3257
|
-
], AIAgentRunResolver.prototype, "
|
|
3257
|
+
], AIAgentRunResolver.prototype, "MJ_AIAgentRuns_ParentRunIDArray", null);
|
|
3258
3258
|
__decorate([
|
|
3259
|
-
FieldResolver(() => [
|
|
3259
|
+
FieldResolver(() => [AIAgentRunStep_]),
|
|
3260
3260
|
__param(0, Root()),
|
|
3261
3261
|
__param(1, Ctx()),
|
|
3262
3262
|
__param(2, PubSub()),
|
|
3263
3263
|
__metadata("design:type", Function),
|
|
3264
3264
|
__metadata("design:paramtypes", [AIAgentRun_, Object, PubSubEngine]),
|
|
3265
3265
|
__metadata("design:returntype", Promise)
|
|
3266
|
-
], AIAgentRunResolver.prototype, "
|
|
3266
|
+
], AIAgentRunResolver.prototype, "MJ_AIAgentRunSteps_AgentRunIDArray", null);
|
|
3267
3267
|
__decorate([
|
|
3268
3268
|
FieldResolver(() => [AIPromptRun_]),
|
|
3269
3269
|
__param(0, Root()),
|
|
@@ -3313,8 +3313,8 @@ let AIVendor_ = class AIVendor_ {
|
|
|
3313
3313
|
_mj__UpdatedAt;
|
|
3314
3314
|
MJ_AIPromptModels_VendorIDArray;
|
|
3315
3315
|
AIResultCache_VendorIDArray;
|
|
3316
|
-
MJ_AIModelVendors_VendorIDArray;
|
|
3317
3316
|
MJ_AIPromptRuns_VendorIDArray;
|
|
3317
|
+
MJ_AIModelVendors_VendorIDArray;
|
|
3318
3318
|
MJ_AIVendorTypes_VendorIDArray;
|
|
3319
3319
|
MJ_AIModelCosts_VendorIDArray;
|
|
3320
3320
|
MJ_AIAgentRuns_OverrideVendorIDArray;
|
|
@@ -3351,14 +3351,14 @@ __decorate([
|
|
|
3351
3351
|
Field(() => [AIResultCache_]),
|
|
3352
3352
|
__metadata("design:type", Array)
|
|
3353
3353
|
], AIVendor_.prototype, "AIResultCache_VendorIDArray", void 0);
|
|
3354
|
-
__decorate([
|
|
3355
|
-
Field(() => [AIModelVendor_]),
|
|
3356
|
-
__metadata("design:type", Array)
|
|
3357
|
-
], AIVendor_.prototype, "MJ_AIModelVendors_VendorIDArray", void 0);
|
|
3358
3354
|
__decorate([
|
|
3359
3355
|
Field(() => [AIPromptRun_]),
|
|
3360
3356
|
__metadata("design:type", Array)
|
|
3361
3357
|
], AIVendor_.prototype, "MJ_AIPromptRuns_VendorIDArray", void 0);
|
|
3358
|
+
__decorate([
|
|
3359
|
+
Field(() => [AIModelVendor_]),
|
|
3360
|
+
__metadata("design:type", Array)
|
|
3361
|
+
], AIVendor_.prototype, "MJ_AIModelVendors_VendorIDArray", void 0);
|
|
3362
3362
|
__decorate([
|
|
3363
3363
|
Field(() => [AIVendorType_]),
|
|
3364
3364
|
__metadata("design:type", Array)
|
|
@@ -3504,22 +3504,22 @@ let AIVendorResolver = class AIVendorResolver extends ResolverBase {
|
|
|
3504
3504
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', rows);
|
|
3505
3505
|
return result;
|
|
3506
3506
|
}
|
|
3507
|
-
async
|
|
3508
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
3507
|
+
async MJ_AIPromptRuns_VendorIDArray(aivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
3508
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
3509
3509
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3510
3510
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3511
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3511
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [VendorID]='${aivendor_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3512
3512
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3513
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
3513
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
3514
3514
|
return result;
|
|
3515
3515
|
}
|
|
3516
|
-
async
|
|
3517
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
3516
|
+
async MJ_AIModelVendors_VendorIDArray(aivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
3517
|
+
this.CheckUserReadPermissions('MJ: AI Model Vendors', userPayload);
|
|
3518
3518
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3519
3519
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3520
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
3520
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelVendors] WHERE [VendorID]='${aivendor_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
3521
3521
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3522
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
3522
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Vendors', rows);
|
|
3523
3523
|
return result;
|
|
3524
3524
|
}
|
|
3525
3525
|
async MJ_AIVendorTypes_VendorIDArray(aivendor_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -3618,23 +3618,23 @@ __decorate([
|
|
|
3618
3618
|
__metadata("design:returntype", Promise)
|
|
3619
3619
|
], AIVendorResolver.prototype, "AIResultCache_VendorIDArray", null);
|
|
3620
3620
|
__decorate([
|
|
3621
|
-
FieldResolver(() => [
|
|
3621
|
+
FieldResolver(() => [AIPromptRun_]),
|
|
3622
3622
|
__param(0, Root()),
|
|
3623
3623
|
__param(1, Ctx()),
|
|
3624
3624
|
__param(2, PubSub()),
|
|
3625
3625
|
__metadata("design:type", Function),
|
|
3626
3626
|
__metadata("design:paramtypes", [AIVendor_, Object, PubSubEngine]),
|
|
3627
3627
|
__metadata("design:returntype", Promise)
|
|
3628
|
-
], AIVendorResolver.prototype, "
|
|
3628
|
+
], AIVendorResolver.prototype, "MJ_AIPromptRuns_VendorIDArray", null);
|
|
3629
3629
|
__decorate([
|
|
3630
|
-
FieldResolver(() => [
|
|
3630
|
+
FieldResolver(() => [AIModelVendor_]),
|
|
3631
3631
|
__param(0, Root()),
|
|
3632
3632
|
__param(1, Ctx()),
|
|
3633
3633
|
__param(2, PubSub()),
|
|
3634
3634
|
__metadata("design:type", Function),
|
|
3635
3635
|
__metadata("design:paramtypes", [AIVendor_, Object, PubSubEngine]),
|
|
3636
3636
|
__metadata("design:returntype", Promise)
|
|
3637
|
-
], AIVendorResolver.prototype, "
|
|
3637
|
+
], AIVendorResolver.prototype, "MJ_AIModelVendors_VendorIDArray", null);
|
|
3638
3638
|
__decorate([
|
|
3639
3639
|
FieldResolver(() => [AIVendorType_]),
|
|
3640
3640
|
__param(0, Root()),
|
|
@@ -3959,9 +3959,9 @@ let AIConfiguration_ = class AIConfiguration_ {
|
|
|
3959
3959
|
DefaultPromptForContextSummarization;
|
|
3960
3960
|
MJ_AIConfigurationParams_ConfigurationIDArray;
|
|
3961
3961
|
MJ_AIAgentPrompts_ConfigurationIDArray;
|
|
3962
|
-
MJ_AIPromptModels_ConfigurationIDArray;
|
|
3963
|
-
AIResultCache_ConfigurationIDArray;
|
|
3964
3962
|
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
3963
|
+
AIResultCache_ConfigurationIDArray;
|
|
3964
|
+
MJ_AIPromptModels_ConfigurationIDArray;
|
|
3965
3965
|
MJ_AIAgentRuns_ConfigurationIDArray;
|
|
3966
3966
|
};
|
|
3967
3967
|
__decorate([
|
|
@@ -4026,17 +4026,17 @@ __decorate([
|
|
|
4026
4026
|
__metadata("design:type", Array)
|
|
4027
4027
|
], AIConfiguration_.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", void 0);
|
|
4028
4028
|
__decorate([
|
|
4029
|
-
Field(() => [
|
|
4029
|
+
Field(() => [AIPromptRun_]),
|
|
4030
4030
|
__metadata("design:type", Array)
|
|
4031
|
-
], AIConfiguration_.prototype, "
|
|
4031
|
+
], AIConfiguration_.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", void 0);
|
|
4032
4032
|
__decorate([
|
|
4033
4033
|
Field(() => [AIResultCache_]),
|
|
4034
4034
|
__metadata("design:type", Array)
|
|
4035
4035
|
], AIConfiguration_.prototype, "AIResultCache_ConfigurationIDArray", void 0);
|
|
4036
4036
|
__decorate([
|
|
4037
|
-
Field(() => [
|
|
4037
|
+
Field(() => [AIPromptModel_]),
|
|
4038
4038
|
__metadata("design:type", Array)
|
|
4039
|
-
], AIConfiguration_.prototype, "
|
|
4039
|
+
], AIConfiguration_.prototype, "MJ_AIPromptModels_ConfigurationIDArray", void 0);
|
|
4040
4040
|
__decorate([
|
|
4041
4041
|
Field(() => [AIAgentRun_]),
|
|
4042
4042
|
__metadata("design:type", Array)
|
|
@@ -4214,13 +4214,13 @@ let AIConfigurationResolver = class AIConfigurationResolver extends ResolverBase
|
|
|
4214
4214
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
4215
4215
|
return result;
|
|
4216
4216
|
}
|
|
4217
|
-
async
|
|
4218
|
-
this.CheckUserReadPermissions('MJ: AI Prompt
|
|
4217
|
+
async MJ_AIPromptRuns_ConfigurationIDArray(aiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4218
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
4219
4219
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4220
4220
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4221
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
4221
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [ConfigurationID]='${aiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4222
4222
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4223
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt
|
|
4223
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
4224
4224
|
return result;
|
|
4225
4225
|
}
|
|
4226
4226
|
async AIResultCache_ConfigurationIDArray(aiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -4232,13 +4232,13 @@ let AIConfigurationResolver = class AIConfigurationResolver extends ResolverBase
|
|
|
4232
4232
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', rows);
|
|
4233
4233
|
return result;
|
|
4234
4234
|
}
|
|
4235
|
-
async
|
|
4236
|
-
this.CheckUserReadPermissions('MJ: AI Prompt
|
|
4235
|
+
async MJ_AIPromptModels_ConfigurationIDArray(aiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4236
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
4237
4237
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4238
4238
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4239
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
4239
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [ConfigurationID]='${aiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
4240
4240
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4241
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt
|
|
4241
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
4242
4242
|
return result;
|
|
4243
4243
|
}
|
|
4244
4244
|
async MJ_AIAgentRuns_ConfigurationIDArray(aiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -4319,14 +4319,14 @@ __decorate([
|
|
|
4319
4319
|
__metadata("design:returntype", Promise)
|
|
4320
4320
|
], AIConfigurationResolver.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", null);
|
|
4321
4321
|
__decorate([
|
|
4322
|
-
FieldResolver(() => [
|
|
4322
|
+
FieldResolver(() => [AIPromptRun_]),
|
|
4323
4323
|
__param(0, Root()),
|
|
4324
4324
|
__param(1, Ctx()),
|
|
4325
4325
|
__param(2, PubSub()),
|
|
4326
4326
|
__metadata("design:type", Function),
|
|
4327
4327
|
__metadata("design:paramtypes", [AIConfiguration_, Object, PubSubEngine]),
|
|
4328
4328
|
__metadata("design:returntype", Promise)
|
|
4329
|
-
], AIConfigurationResolver.prototype, "
|
|
4329
|
+
], AIConfigurationResolver.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", null);
|
|
4330
4330
|
__decorate([
|
|
4331
4331
|
FieldResolver(() => [AIResultCache_]),
|
|
4332
4332
|
__param(0, Root()),
|
|
@@ -4337,14 +4337,14 @@ __decorate([
|
|
|
4337
4337
|
__metadata("design:returntype", Promise)
|
|
4338
4338
|
], AIConfigurationResolver.prototype, "AIResultCache_ConfigurationIDArray", null);
|
|
4339
4339
|
__decorate([
|
|
4340
|
-
FieldResolver(() => [
|
|
4340
|
+
FieldResolver(() => [AIPromptModel_]),
|
|
4341
4341
|
__param(0, Root()),
|
|
4342
4342
|
__param(1, Ctx()),
|
|
4343
4343
|
__param(2, PubSub()),
|
|
4344
4344
|
__metadata("design:type", Function),
|
|
4345
4345
|
__metadata("design:paramtypes", [AIConfiguration_, Object, PubSubEngine]),
|
|
4346
4346
|
__metadata("design:returntype", Promise)
|
|
4347
|
-
], AIConfigurationResolver.prototype, "
|
|
4347
|
+
], AIConfigurationResolver.prototype, "MJ_AIPromptModels_ConfigurationIDArray", null);
|
|
4348
4348
|
__decorate([
|
|
4349
4349
|
FieldResolver(() => [AIAgentRun_]),
|
|
4350
4350
|
__param(0, Root()),
|
|
@@ -4427,8 +4427,8 @@ let AIAgent_ = class AIAgent_ {
|
|
|
4427
4427
|
Parent;
|
|
4428
4428
|
ContextCompressionPrompt;
|
|
4429
4429
|
Type;
|
|
4430
|
-
AIAgentActions_AgentIDArray;
|
|
4431
4430
|
AIAgentModels_AgentIDArray;
|
|
4431
|
+
AIAgentActions_AgentIDArray;
|
|
4432
4432
|
AIAgentLearningCycles_AgentIDArray;
|
|
4433
4433
|
AIAgentRequests_AgentIDArray;
|
|
4434
4434
|
MJ_AIAgentSteps_AgentIDArray;
|
|
@@ -4441,6 +4441,7 @@ let AIAgent_ = class AIAgent_ {
|
|
|
4441
4441
|
MJ_Tasks_AgentIDArray;
|
|
4442
4442
|
AIResultCache_AgentIDArray;
|
|
4443
4443
|
MJ_AIPromptRuns_AgentIDArray;
|
|
4444
|
+
ConversationDetails_AgentIDArray;
|
|
4444
4445
|
AIAgents_ParentIDArray;
|
|
4445
4446
|
};
|
|
4446
4447
|
__decorate([
|
|
@@ -4629,14 +4630,14 @@ __decorate([
|
|
|
4629
4630
|
MaxLength(200),
|
|
4630
4631
|
__metadata("design:type", String)
|
|
4631
4632
|
], AIAgent_.prototype, "Type", void 0);
|
|
4632
|
-
__decorate([
|
|
4633
|
-
Field(() => [AIAgentAction_]),
|
|
4634
|
-
__metadata("design:type", Array)
|
|
4635
|
-
], AIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
|
|
4636
4633
|
__decorate([
|
|
4637
4634
|
Field(() => [AIAgentModel_]),
|
|
4638
4635
|
__metadata("design:type", Array)
|
|
4639
4636
|
], AIAgent_.prototype, "AIAgentModels_AgentIDArray", void 0);
|
|
4637
|
+
__decorate([
|
|
4638
|
+
Field(() => [AIAgentAction_]),
|
|
4639
|
+
__metadata("design:type", Array)
|
|
4640
|
+
], AIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
|
|
4640
4641
|
__decorate([
|
|
4641
4642
|
Field(() => [AIAgentLearningCycle_]),
|
|
4642
4643
|
__metadata("design:type", Array)
|
|
@@ -4685,6 +4686,10 @@ __decorate([
|
|
|
4685
4686
|
Field(() => [AIPromptRun_]),
|
|
4686
4687
|
__metadata("design:type", Array)
|
|
4687
4688
|
], AIAgent_.prototype, "MJ_AIPromptRuns_AgentIDArray", void 0);
|
|
4689
|
+
__decorate([
|
|
4690
|
+
Field(() => [ConversationDetail_]),
|
|
4691
|
+
__metadata("design:type", Array)
|
|
4692
|
+
], AIAgent_.prototype, "ConversationDetails_AgentIDArray", void 0);
|
|
4688
4693
|
__decorate([
|
|
4689
4694
|
Field(() => [AIAgent_]),
|
|
4690
4695
|
__metadata("design:type", Array)
|
|
@@ -5124,22 +5129,22 @@ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
|
|
|
5124
5129
|
const result = this.MapFieldNamesToCodeNames('AI Agents', rows && rows.length > 0 ? rows[0] : {});
|
|
5125
5130
|
return result;
|
|
5126
5131
|
}
|
|
5127
|
-
async
|
|
5128
|
-
this.CheckUserReadPermissions('AI Agent
|
|
5132
|
+
async AIAgentModels_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5133
|
+
this.CheckUserReadPermissions('AI Agent Models', userPayload);
|
|
5129
5134
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5130
5135
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5131
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
5136
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModels] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
5132
5137
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5133
|
-
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent
|
|
5138
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Models', rows);
|
|
5134
5139
|
return result;
|
|
5135
5140
|
}
|
|
5136
|
-
async
|
|
5137
|
-
this.CheckUserReadPermissions('AI Agent
|
|
5141
|
+
async AIAgentActions_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5142
|
+
this.CheckUserReadPermissions('AI Agent Actions', userPayload);
|
|
5138
5143
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5139
5144
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5140
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
5145
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
5141
5146
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5142
|
-
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent
|
|
5147
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Actions', rows);
|
|
5143
5148
|
return result;
|
|
5144
5149
|
}
|
|
5145
5150
|
async AIAgentLearningCycles_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -5250,6 +5255,15 @@ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
|
|
|
5250
5255
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
5251
5256
|
return result;
|
|
5252
5257
|
}
|
|
5258
|
+
async ConversationDetails_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5259
|
+
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
5260
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5261
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5262
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
5263
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5264
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', rows);
|
|
5265
|
+
return result;
|
|
5266
|
+
}
|
|
5253
5267
|
async AIAgents_ParentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5254
5268
|
this.CheckUserReadPermissions('AI Agents', userPayload);
|
|
5255
5269
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -5310,23 +5324,23 @@ __decorate([
|
|
|
5310
5324
|
__metadata("design:returntype", Promise)
|
|
5311
5325
|
], AIAgentResolver.prototype, "AIAgent", null);
|
|
5312
5326
|
__decorate([
|
|
5313
|
-
FieldResolver(() => [
|
|
5327
|
+
FieldResolver(() => [AIAgentModel_]),
|
|
5314
5328
|
__param(0, Root()),
|
|
5315
5329
|
__param(1, Ctx()),
|
|
5316
5330
|
__param(2, PubSub()),
|
|
5317
5331
|
__metadata("design:type", Function),
|
|
5318
5332
|
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
5319
5333
|
__metadata("design:returntype", Promise)
|
|
5320
|
-
], AIAgentResolver.prototype, "
|
|
5334
|
+
], AIAgentResolver.prototype, "AIAgentModels_AgentIDArray", null);
|
|
5321
5335
|
__decorate([
|
|
5322
|
-
FieldResolver(() => [
|
|
5336
|
+
FieldResolver(() => [AIAgentAction_]),
|
|
5323
5337
|
__param(0, Root()),
|
|
5324
5338
|
__param(1, Ctx()),
|
|
5325
5339
|
__param(2, PubSub()),
|
|
5326
5340
|
__metadata("design:type", Function),
|
|
5327
5341
|
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
5328
5342
|
__metadata("design:returntype", Promise)
|
|
5329
|
-
], AIAgentResolver.prototype, "
|
|
5343
|
+
], AIAgentResolver.prototype, "AIAgentActions_AgentIDArray", null);
|
|
5330
5344
|
__decorate([
|
|
5331
5345
|
FieldResolver(() => [AIAgentLearningCycle_]),
|
|
5332
5346
|
__param(0, Root()),
|
|
@@ -5435,6 +5449,15 @@ __decorate([
|
|
|
5435
5449
|
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
5436
5450
|
__metadata("design:returntype", Promise)
|
|
5437
5451
|
], AIAgentResolver.prototype, "MJ_AIPromptRuns_AgentIDArray", null);
|
|
5452
|
+
__decorate([
|
|
5453
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
5454
|
+
__param(0, Root()),
|
|
5455
|
+
__param(1, Ctx()),
|
|
5456
|
+
__param(2, PubSub()),
|
|
5457
|
+
__metadata("design:type", Function),
|
|
5458
|
+
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
5459
|
+
__metadata("design:returntype", Promise)
|
|
5460
|
+
], AIAgentResolver.prototype, "ConversationDetails_AgentIDArray", null);
|
|
5438
5461
|
__decorate([
|
|
5439
5462
|
FieldResolver(() => [AIAgent_]),
|
|
5440
5463
|
__param(0, Root()),
|
|
@@ -9701,8 +9724,8 @@ let AIPrompt_ = class AIPrompt_ {
|
|
|
9701
9724
|
MJ_AIAgentTypes_SystemPromptIDArray;
|
|
9702
9725
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
|
|
9703
9726
|
AIPrompts_ResultSelectorPromptIDArray;
|
|
9704
|
-
MJ_AIPromptModels_PromptIDArray;
|
|
9705
9727
|
MJ_AIAgentPrompts_PromptIDArray;
|
|
9728
|
+
MJ_AIPromptModels_PromptIDArray;
|
|
9706
9729
|
MJ_AIAgentSteps_PromptIDArray;
|
|
9707
9730
|
MJ_AIPromptRuns_PromptIDArray;
|
|
9708
9731
|
AIAgents_ContextCompressionPromptIDArray;
|
|
@@ -9981,14 +10004,14 @@ __decorate([
|
|
|
9981
10004
|
Field(() => [AIPrompt_]),
|
|
9982
10005
|
__metadata("design:type", Array)
|
|
9983
10006
|
], AIPrompt_.prototype, "AIPrompts_ResultSelectorPromptIDArray", void 0);
|
|
9984
|
-
__decorate([
|
|
9985
|
-
Field(() => [AIPromptModel_]),
|
|
9986
|
-
__metadata("design:type", Array)
|
|
9987
|
-
], AIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
9988
10007
|
__decorate([
|
|
9989
10008
|
Field(() => [AIAgentPrompt_]),
|
|
9990
10009
|
__metadata("design:type", Array)
|
|
9991
10010
|
], AIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
|
|
10011
|
+
__decorate([
|
|
10012
|
+
Field(() => [AIPromptModel_]),
|
|
10013
|
+
__metadata("design:type", Array)
|
|
10014
|
+
], AIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
9992
10015
|
__decorate([
|
|
9993
10016
|
Field(() => [AIAgentStep_]),
|
|
9994
10017
|
__metadata("design:type", Array)
|
|
@@ -10621,22 +10644,22 @@ let AIPromptResolver = class AIPromptResolver extends ResolverBase {
|
|
|
10621
10644
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', rows);
|
|
10622
10645
|
return result;
|
|
10623
10646
|
}
|
|
10624
|
-
async
|
|
10625
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10647
|
+
async MJ_AIAgentPrompts_PromptIDArray(aiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10648
|
+
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
10626
10649
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10627
10650
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10628
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10651
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${aiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
10629
10652
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10630
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10653
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
10631
10654
|
return result;
|
|
10632
10655
|
}
|
|
10633
|
-
async
|
|
10634
|
-
this.CheckUserReadPermissions('MJ: AI
|
|
10656
|
+
async MJ_AIPromptModels_PromptIDArray(aiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
10657
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
10635
10658
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10636
10659
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10637
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10660
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${aiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
10638
10661
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10639
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI
|
|
10662
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
10640
10663
|
return result;
|
|
10641
10664
|
}
|
|
10642
10665
|
async MJ_AIAgentSteps_PromptIDArray(aiprompt_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -10762,23 +10785,23 @@ __decorate([
|
|
|
10762
10785
|
__metadata("design:returntype", Promise)
|
|
10763
10786
|
], AIPromptResolver.prototype, "AIPrompts_ResultSelectorPromptIDArray", null);
|
|
10764
10787
|
__decorate([
|
|
10765
|
-
FieldResolver(() => [
|
|
10788
|
+
FieldResolver(() => [AIAgentPrompt_]),
|
|
10766
10789
|
__param(0, Root()),
|
|
10767
10790
|
__param(1, Ctx()),
|
|
10768
10791
|
__param(2, PubSub()),
|
|
10769
10792
|
__metadata("design:type", Function),
|
|
10770
10793
|
__metadata("design:paramtypes", [AIPrompt_, Object, PubSubEngine]),
|
|
10771
10794
|
__metadata("design:returntype", Promise)
|
|
10772
|
-
], AIPromptResolver.prototype, "
|
|
10795
|
+
], AIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
|
|
10773
10796
|
__decorate([
|
|
10774
|
-
FieldResolver(() => [
|
|
10797
|
+
FieldResolver(() => [AIPromptModel_]),
|
|
10775
10798
|
__param(0, Root()),
|
|
10776
10799
|
__param(1, Ctx()),
|
|
10777
10800
|
__param(2, PubSub()),
|
|
10778
10801
|
__metadata("design:type", Function),
|
|
10779
10802
|
__metadata("design:paramtypes", [AIPrompt_, Object, PubSubEngine]),
|
|
10780
10803
|
__metadata("design:returntype", Promise)
|
|
10781
|
-
], AIPromptResolver.prototype, "
|
|
10804
|
+
], AIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
|
|
10782
10805
|
__decorate([
|
|
10783
10806
|
FieldResolver(() => [AIAgentStep_]),
|
|
10784
10807
|
__param(0, Root()),
|
|
@@ -16527,8 +16550,8 @@ let Entity_ = class Entity_ {
|
|
|
16527
16550
|
RecommendationItems_DestinationEntityIDArray;
|
|
16528
16551
|
EntityCommunicationMessageTypes_EntityIDArray;
|
|
16529
16552
|
QueryEntities_EntityIDArray;
|
|
16530
|
-
MJ_RecordLinks_SourceEntityIDArray;
|
|
16531
16553
|
MJ_AccessControlRules_EntityIDArray;
|
|
16554
|
+
MJ_RecordLinks_SourceEntityIDArray;
|
|
16532
16555
|
GeneratedCodes_LinkedEntityIDArray;
|
|
16533
16556
|
MJ_RecordLinks_TargetEntityIDArray;
|
|
16534
16557
|
};
|
|
@@ -16959,14 +16982,14 @@ __decorate([
|
|
|
16959
16982
|
Field(() => [QueryEntity_]),
|
|
16960
16983
|
__metadata("design:type", Array)
|
|
16961
16984
|
], Entity_.prototype, "QueryEntities_EntityIDArray", void 0);
|
|
16962
|
-
__decorate([
|
|
16963
|
-
Field(() => [RecordLink_]),
|
|
16964
|
-
__metadata("design:type", Array)
|
|
16965
|
-
], Entity_.prototype, "MJ_RecordLinks_SourceEntityIDArray", void 0);
|
|
16966
16985
|
__decorate([
|
|
16967
16986
|
Field(() => [AccessControlRule_]),
|
|
16968
16987
|
__metadata("design:type", Array)
|
|
16969
16988
|
], Entity_.prototype, "MJ_AccessControlRules_EntityIDArray", void 0);
|
|
16989
|
+
__decorate([
|
|
16990
|
+
Field(() => [RecordLink_]),
|
|
16991
|
+
__metadata("design:type", Array)
|
|
16992
|
+
], Entity_.prototype, "MJ_RecordLinks_SourceEntityIDArray", void 0);
|
|
16970
16993
|
__decorate([
|
|
16971
16994
|
Field(() => [GeneratedCode_]),
|
|
16972
16995
|
__metadata("design:type", Array)
|
|
@@ -17923,22 +17946,22 @@ let EntityResolverBase = class EntityResolverBase extends ResolverBase {
|
|
|
17923
17946
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Entities', rows);
|
|
17924
17947
|
return result;
|
|
17925
17948
|
}
|
|
17926
|
-
async
|
|
17927
|
-
this.CheckUserReadPermissions('MJ:
|
|
17949
|
+
async MJ_AccessControlRules_EntityIDArray(entity_, { dataSources, userPayload, providers }, pubSub) {
|
|
17950
|
+
this.CheckUserReadPermissions('MJ: Access Control Rules', userPayload);
|
|
17928
17951
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17929
17952
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
17930
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
17953
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAccessControlRules] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Access Control Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
17931
17954
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
17932
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
17955
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Access Control Rules', rows);
|
|
17933
17956
|
return result;
|
|
17934
17957
|
}
|
|
17935
|
-
async
|
|
17936
|
-
this.CheckUserReadPermissions('MJ:
|
|
17958
|
+
async MJ_RecordLinks_SourceEntityIDArray(entity_, { dataSources, userPayload, providers }, pubSub) {
|
|
17959
|
+
this.CheckUserReadPermissions('MJ: Record Links', userPayload);
|
|
17937
17960
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17938
17961
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
17939
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
17962
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordLinks] WHERE [SourceEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
17940
17963
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
17941
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
17964
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Record Links', rows);
|
|
17942
17965
|
return result;
|
|
17943
17966
|
}
|
|
17944
17967
|
async GeneratedCodes_LinkedEntityIDArray(entity_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -18342,23 +18365,23 @@ __decorate([
|
|
|
18342
18365
|
__metadata("design:returntype", Promise)
|
|
18343
18366
|
], EntityResolverBase.prototype, "QueryEntities_EntityIDArray", null);
|
|
18344
18367
|
__decorate([
|
|
18345
|
-
FieldResolver(() => [
|
|
18368
|
+
FieldResolver(() => [AccessControlRule_]),
|
|
18346
18369
|
__param(0, Root()),
|
|
18347
18370
|
__param(1, Ctx()),
|
|
18348
18371
|
__param(2, PubSub()),
|
|
18349
18372
|
__metadata("design:type", Function),
|
|
18350
18373
|
__metadata("design:paramtypes", [Entity_, Object, PubSubEngine]),
|
|
18351
18374
|
__metadata("design:returntype", Promise)
|
|
18352
|
-
], EntityResolverBase.prototype, "
|
|
18375
|
+
], EntityResolverBase.prototype, "MJ_AccessControlRules_EntityIDArray", null);
|
|
18353
18376
|
__decorate([
|
|
18354
|
-
FieldResolver(() => [
|
|
18377
|
+
FieldResolver(() => [RecordLink_]),
|
|
18355
18378
|
__param(0, Root()),
|
|
18356
18379
|
__param(1, Ctx()),
|
|
18357
18380
|
__param(2, PubSub()),
|
|
18358
18381
|
__metadata("design:type", Function),
|
|
18359
18382
|
__metadata("design:paramtypes", [Entity_, Object, PubSubEngine]),
|
|
18360
18383
|
__metadata("design:returntype", Promise)
|
|
18361
|
-
], EntityResolverBase.prototype, "
|
|
18384
|
+
], EntityResolverBase.prototype, "MJ_RecordLinks_SourceEntityIDArray", null);
|
|
18362
18385
|
__decorate([
|
|
18363
18386
|
FieldResolver(() => [GeneratedCode_]),
|
|
18364
18387
|
__param(0, Root()),
|
|
@@ -36647,11 +36670,17 @@ let ConversationDetail_ = class ConversationDetail_ {
|
|
|
36647
36670
|
ArtifactVersionID;
|
|
36648
36671
|
CompletionTime;
|
|
36649
36672
|
IsPinned;
|
|
36673
|
+
ParentID;
|
|
36674
|
+
AgentID;
|
|
36675
|
+
Status;
|
|
36650
36676
|
Conversation;
|
|
36651
36677
|
User;
|
|
36652
36678
|
Artifact;
|
|
36679
|
+
Agent;
|
|
36653
36680
|
Reports_ConversationDetailIDArray;
|
|
36681
|
+
MJ_ConversationDetailArtifacts_ConversationDetailIDArray;
|
|
36654
36682
|
MJ_AIAgentRuns_ConversationDetailIDArray;
|
|
36683
|
+
ConversationDetails_ParentIDArray;
|
|
36655
36684
|
MJ_Tasks_ConversationDetailIDArray;
|
|
36656
36685
|
};
|
|
36657
36686
|
__decorate([
|
|
@@ -36735,6 +36764,21 @@ __decorate([
|
|
|
36735
36764
|
Field(() => Boolean, { description: `Indicates if this message is pinned within the conversation for easy reference` }),
|
|
36736
36765
|
__metadata("design:type", Boolean)
|
|
36737
36766
|
], ConversationDetail_.prototype, "IsPinned", void 0);
|
|
36767
|
+
__decorate([
|
|
36768
|
+
Field({ nullable: true, description: `Optional reference to parent message for threaded conversations. NULL for top-level messages.` }),
|
|
36769
|
+
MaxLength(16),
|
|
36770
|
+
__metadata("design:type", String)
|
|
36771
|
+
], ConversationDetail_.prototype, "ParentID", void 0);
|
|
36772
|
+
__decorate([
|
|
36773
|
+
Field({ nullable: true, description: `Denormalized agent ID for quick lookup of agent name and icon without joining through AgentRun` }),
|
|
36774
|
+
MaxLength(16),
|
|
36775
|
+
__metadata("design:type", String)
|
|
36776
|
+
], ConversationDetail_.prototype, "AgentID", void 0);
|
|
36777
|
+
__decorate([
|
|
36778
|
+
Field({ description: `Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.` }),
|
|
36779
|
+
MaxLength(40),
|
|
36780
|
+
__metadata("design:type", String)
|
|
36781
|
+
], ConversationDetail_.prototype, "Status", void 0);
|
|
36738
36782
|
__decorate([
|
|
36739
36783
|
Field({ nullable: true }),
|
|
36740
36784
|
MaxLength(510),
|
|
@@ -36750,14 +36794,27 @@ __decorate([
|
|
|
36750
36794
|
MaxLength(510),
|
|
36751
36795
|
__metadata("design:type", String)
|
|
36752
36796
|
], ConversationDetail_.prototype, "Artifact", void 0);
|
|
36797
|
+
__decorate([
|
|
36798
|
+
Field({ nullable: true }),
|
|
36799
|
+
MaxLength(510),
|
|
36800
|
+
__metadata("design:type", String)
|
|
36801
|
+
], ConversationDetail_.prototype, "Agent", void 0);
|
|
36753
36802
|
__decorate([
|
|
36754
36803
|
Field(() => [Report_]),
|
|
36755
36804
|
__metadata("design:type", Array)
|
|
36756
36805
|
], ConversationDetail_.prototype, "Reports_ConversationDetailIDArray", void 0);
|
|
36806
|
+
__decorate([
|
|
36807
|
+
Field(() => [ConversationDetailArtifact_]),
|
|
36808
|
+
__metadata("design:type", Array)
|
|
36809
|
+
], ConversationDetail_.prototype, "MJ_ConversationDetailArtifacts_ConversationDetailIDArray", void 0);
|
|
36757
36810
|
__decorate([
|
|
36758
36811
|
Field(() => [AIAgentRun_]),
|
|
36759
36812
|
__metadata("design:type", Array)
|
|
36760
36813
|
], ConversationDetail_.prototype, "MJ_AIAgentRuns_ConversationDetailIDArray", void 0);
|
|
36814
|
+
__decorate([
|
|
36815
|
+
Field(() => [ConversationDetail_]),
|
|
36816
|
+
__metadata("design:type", Array)
|
|
36817
|
+
], ConversationDetail_.prototype, "ConversationDetails_ParentIDArray", void 0);
|
|
36761
36818
|
__decorate([
|
|
36762
36819
|
Field(() => [Task_]),
|
|
36763
36820
|
__metadata("design:type", Array)
|
|
@@ -36783,6 +36840,9 @@ let CreateConversationDetailInput = class CreateConversationDetailInput {
|
|
|
36783
36840
|
ArtifactVersionID;
|
|
36784
36841
|
CompletionTime;
|
|
36785
36842
|
IsPinned;
|
|
36843
|
+
ParentID;
|
|
36844
|
+
AgentID;
|
|
36845
|
+
Status;
|
|
36786
36846
|
};
|
|
36787
36847
|
__decorate([
|
|
36788
36848
|
Field({ nullable: true }),
|
|
@@ -36848,6 +36908,18 @@ __decorate([
|
|
|
36848
36908
|
Field(() => Boolean, { nullable: true }),
|
|
36849
36909
|
__metadata("design:type", Boolean)
|
|
36850
36910
|
], CreateConversationDetailInput.prototype, "IsPinned", void 0);
|
|
36911
|
+
__decorate([
|
|
36912
|
+
Field({ nullable: true }),
|
|
36913
|
+
__metadata("design:type", String)
|
|
36914
|
+
], CreateConversationDetailInput.prototype, "ParentID", void 0);
|
|
36915
|
+
__decorate([
|
|
36916
|
+
Field({ nullable: true }),
|
|
36917
|
+
__metadata("design:type", String)
|
|
36918
|
+
], CreateConversationDetailInput.prototype, "AgentID", void 0);
|
|
36919
|
+
__decorate([
|
|
36920
|
+
Field({ nullable: true }),
|
|
36921
|
+
__metadata("design:type", String)
|
|
36922
|
+
], CreateConversationDetailInput.prototype, "Status", void 0);
|
|
36851
36923
|
CreateConversationDetailInput = __decorate([
|
|
36852
36924
|
InputType()
|
|
36853
36925
|
], CreateConversationDetailInput);
|
|
@@ -36869,6 +36941,9 @@ let UpdateConversationDetailInput = class UpdateConversationDetailInput {
|
|
|
36869
36941
|
ArtifactVersionID;
|
|
36870
36942
|
CompletionTime;
|
|
36871
36943
|
IsPinned;
|
|
36944
|
+
ParentID;
|
|
36945
|
+
AgentID;
|
|
36946
|
+
Status;
|
|
36872
36947
|
OldValues___;
|
|
36873
36948
|
};
|
|
36874
36949
|
__decorate([
|
|
@@ -36935,6 +37010,18 @@ __decorate([
|
|
|
36935
37010
|
Field(() => Boolean, { nullable: true }),
|
|
36936
37011
|
__metadata("design:type", Boolean)
|
|
36937
37012
|
], UpdateConversationDetailInput.prototype, "IsPinned", void 0);
|
|
37013
|
+
__decorate([
|
|
37014
|
+
Field({ nullable: true }),
|
|
37015
|
+
__metadata("design:type", String)
|
|
37016
|
+
], UpdateConversationDetailInput.prototype, "ParentID", void 0);
|
|
37017
|
+
__decorate([
|
|
37018
|
+
Field({ nullable: true }),
|
|
37019
|
+
__metadata("design:type", String)
|
|
37020
|
+
], UpdateConversationDetailInput.prototype, "AgentID", void 0);
|
|
37021
|
+
__decorate([
|
|
37022
|
+
Field({ nullable: true }),
|
|
37023
|
+
__metadata("design:type", String)
|
|
37024
|
+
], UpdateConversationDetailInput.prototype, "Status", void 0);
|
|
36938
37025
|
__decorate([
|
|
36939
37026
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
36940
37027
|
__metadata("design:type", Array)
|
|
@@ -37016,6 +37103,15 @@ let ConversationDetailResolver = class ConversationDetailResolver extends Resolv
|
|
|
37016
37103
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', rows);
|
|
37017
37104
|
return result;
|
|
37018
37105
|
}
|
|
37106
|
+
async MJ_ConversationDetailArtifacts_ConversationDetailIDArray(conversationdetail_, { dataSources, userPayload, providers }, pubSub) {
|
|
37107
|
+
this.CheckUserReadPermissions('MJ: Conversation Detail Artifacts', userPayload);
|
|
37108
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37109
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
37110
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailArtifacts] WHERE [ConversationDetailID]='${conversationdetail_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
37111
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
37112
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows);
|
|
37113
|
+
return result;
|
|
37114
|
+
}
|
|
37019
37115
|
async MJ_AIAgentRuns_ConversationDetailIDArray(conversationdetail_, { dataSources, userPayload, providers }, pubSub) {
|
|
37020
37116
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
37021
37117
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -37025,6 +37121,15 @@ let ConversationDetailResolver = class ConversationDetailResolver extends Resolv
|
|
|
37025
37121
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
37026
37122
|
return result;
|
|
37027
37123
|
}
|
|
37124
|
+
async ConversationDetails_ParentIDArray(conversationdetail_, { dataSources, userPayload, providers }, pubSub) {
|
|
37125
|
+
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
37126
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37127
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
37128
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [ParentID]='${conversationdetail_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
37129
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
37130
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', rows);
|
|
37131
|
+
return result;
|
|
37132
|
+
}
|
|
37028
37133
|
async MJ_Tasks_ConversationDetailIDArray(conversationdetail_, { dataSources, userPayload, providers }, pubSub) {
|
|
37029
37134
|
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
37030
37135
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -37093,6 +37198,15 @@ __decorate([
|
|
|
37093
37198
|
__metadata("design:paramtypes", [ConversationDetail_, Object, PubSubEngine]),
|
|
37094
37199
|
__metadata("design:returntype", Promise)
|
|
37095
37200
|
], ConversationDetailResolver.prototype, "Reports_ConversationDetailIDArray", null);
|
|
37201
|
+
__decorate([
|
|
37202
|
+
FieldResolver(() => [ConversationDetailArtifact_]),
|
|
37203
|
+
__param(0, Root()),
|
|
37204
|
+
__param(1, Ctx()),
|
|
37205
|
+
__param(2, PubSub()),
|
|
37206
|
+
__metadata("design:type", Function),
|
|
37207
|
+
__metadata("design:paramtypes", [ConversationDetail_, Object, PubSubEngine]),
|
|
37208
|
+
__metadata("design:returntype", Promise)
|
|
37209
|
+
], ConversationDetailResolver.prototype, "MJ_ConversationDetailArtifacts_ConversationDetailIDArray", null);
|
|
37096
37210
|
__decorate([
|
|
37097
37211
|
FieldResolver(() => [AIAgentRun_]),
|
|
37098
37212
|
__param(0, Root()),
|
|
@@ -37102,6 +37216,15 @@ __decorate([
|
|
|
37102
37216
|
__metadata("design:paramtypes", [ConversationDetail_, Object, PubSubEngine]),
|
|
37103
37217
|
__metadata("design:returntype", Promise)
|
|
37104
37218
|
], ConversationDetailResolver.prototype, "MJ_AIAgentRuns_ConversationDetailIDArray", null);
|
|
37219
|
+
__decorate([
|
|
37220
|
+
FieldResolver(() => [ConversationDetail_]),
|
|
37221
|
+
__param(0, Root()),
|
|
37222
|
+
__param(1, Ctx()),
|
|
37223
|
+
__param(2, PubSub()),
|
|
37224
|
+
__metadata("design:type", Function),
|
|
37225
|
+
__metadata("design:paramtypes", [ConversationDetail_, Object, PubSubEngine]),
|
|
37226
|
+
__metadata("design:returntype", Promise)
|
|
37227
|
+
], ConversationDetailResolver.prototype, "ConversationDetails_ParentIDArray", null);
|
|
37105
37228
|
__decorate([
|
|
37106
37229
|
FieldResolver(() => [Task_]),
|
|
37107
37230
|
__param(0, Root()),
|
|
@@ -64196,8 +64319,8 @@ let ConversationArtifact_ = class ConversationArtifact_ {
|
|
|
64196
64319
|
_mj__UpdatedAt;
|
|
64197
64320
|
Conversation;
|
|
64198
64321
|
ArtifactType;
|
|
64199
|
-
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
64200
64322
|
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
64323
|
+
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
64201
64324
|
ConversationDetails_ArtifactIDArray;
|
|
64202
64325
|
};
|
|
64203
64326
|
__decorate([
|
|
@@ -64253,14 +64376,14 @@ __decorate([
|
|
|
64253
64376
|
MaxLength(200),
|
|
64254
64377
|
__metadata("design:type", String)
|
|
64255
64378
|
], ConversationArtifact_.prototype, "ArtifactType", void 0);
|
|
64256
|
-
__decorate([
|
|
64257
|
-
Field(() => [ConversationArtifactPermission_]),
|
|
64258
|
-
__metadata("design:type", Array)
|
|
64259
|
-
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
64260
64379
|
__decorate([
|
|
64261
64380
|
Field(() => [ConversationArtifactVersion_]),
|
|
64262
64381
|
__metadata("design:type", Array)
|
|
64263
64382
|
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
64383
|
+
__decorate([
|
|
64384
|
+
Field(() => [ConversationArtifactPermission_]),
|
|
64385
|
+
__metadata("design:type", Array)
|
|
64386
|
+
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
64264
64387
|
__decorate([
|
|
64265
64388
|
Field(() => [ConversationDetail_]),
|
|
64266
64389
|
__metadata("design:type", Array)
|
|
@@ -64420,22 +64543,22 @@ let ConversationArtifactResolver = class ConversationArtifactResolver extends Re
|
|
|
64420
64543
|
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : {});
|
|
64421
64544
|
return result;
|
|
64422
64545
|
}
|
|
64423
|
-
async
|
|
64424
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
64546
|
+
async MJ_ConversationArtifactVersions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
64547
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
64425
64548
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64426
64549
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64427
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
64550
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
64428
64551
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64429
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
64552
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows);
|
|
64430
64553
|
return result;
|
|
64431
64554
|
}
|
|
64432
|
-
async
|
|
64433
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
64555
|
+
async MJ_ConversationArtifactPermissions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
64556
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
64434
64557
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64435
64558
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64436
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
64559
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
64437
64560
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64438
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
64561
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows);
|
|
64439
64562
|
return result;
|
|
64440
64563
|
}
|
|
64441
64564
|
async ConversationDetails_ArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -64498,23 +64621,23 @@ __decorate([
|
|
|
64498
64621
|
__metadata("design:returntype", Promise)
|
|
64499
64622
|
], ConversationArtifactResolver.prototype, "ConversationArtifact", null);
|
|
64500
64623
|
__decorate([
|
|
64501
|
-
FieldResolver(() => [
|
|
64624
|
+
FieldResolver(() => [ConversationArtifactVersion_]),
|
|
64502
64625
|
__param(0, Root()),
|
|
64503
64626
|
__param(1, Ctx()),
|
|
64504
64627
|
__param(2, PubSub()),
|
|
64505
64628
|
__metadata("design:type", Function),
|
|
64506
64629
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
64507
64630
|
__metadata("design:returntype", Promise)
|
|
64508
|
-
], ConversationArtifactResolver.prototype, "
|
|
64631
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
64509
64632
|
__decorate([
|
|
64510
|
-
FieldResolver(() => [
|
|
64633
|
+
FieldResolver(() => [ConversationArtifactPermission_]),
|
|
64511
64634
|
__param(0, Root()),
|
|
64512
64635
|
__param(1, Ctx()),
|
|
64513
64636
|
__param(2, PubSub()),
|
|
64514
64637
|
__metadata("design:type", Function),
|
|
64515
64638
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
64516
64639
|
__metadata("design:returntype", Promise)
|
|
64517
|
-
], ConversationArtifactResolver.prototype, "
|
|
64640
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", null);
|
|
64518
64641
|
__decorate([
|
|
64519
64642
|
FieldResolver(() => [ConversationDetail_]),
|
|
64520
64643
|
__param(0, Root()),
|
|
@@ -72092,6 +72215,251 @@ AIAgentRunStepResolver = __decorate([
|
|
|
72092
72215
|
Resolver(AIAgentRunStep_)
|
|
72093
72216
|
], AIAgentRunStepResolver);
|
|
72094
72217
|
export { AIAgentRunStepResolver };
|
|
72218
|
+
let ConversationDetailArtifact_ = class ConversationDetailArtifact_ {
|
|
72219
|
+
ID;
|
|
72220
|
+
ConversationDetailID;
|
|
72221
|
+
ArtifactVersionID;
|
|
72222
|
+
Direction;
|
|
72223
|
+
_mj__CreatedAt;
|
|
72224
|
+
_mj__UpdatedAt;
|
|
72225
|
+
};
|
|
72226
|
+
__decorate([
|
|
72227
|
+
Field(),
|
|
72228
|
+
MaxLength(16),
|
|
72229
|
+
__metadata("design:type", String)
|
|
72230
|
+
], ConversationDetailArtifact_.prototype, "ID", void 0);
|
|
72231
|
+
__decorate([
|
|
72232
|
+
Field({ description: `Foreign key to ConversationDetail - the conversation message associated with this artifact` }),
|
|
72233
|
+
MaxLength(16),
|
|
72234
|
+
__metadata("design:type", String)
|
|
72235
|
+
], ConversationDetailArtifact_.prototype, "ConversationDetailID", void 0);
|
|
72236
|
+
__decorate([
|
|
72237
|
+
Field({ description: `Foreign key to ArtifactVersion - the specific artifact version linked to this conversation message` }),
|
|
72238
|
+
MaxLength(16),
|
|
72239
|
+
__metadata("design:type", String)
|
|
72240
|
+
], ConversationDetailArtifact_.prototype, "ArtifactVersionID", void 0);
|
|
72241
|
+
__decorate([
|
|
72242
|
+
Field({ description: `Direction of artifact flow: Input (fed to agent) or Output (produced by agent)` }),
|
|
72243
|
+
MaxLength(40),
|
|
72244
|
+
__metadata("design:type", String)
|
|
72245
|
+
], ConversationDetailArtifact_.prototype, "Direction", void 0);
|
|
72246
|
+
__decorate([
|
|
72247
|
+
Field(),
|
|
72248
|
+
MaxLength(10),
|
|
72249
|
+
__metadata("design:type", Date)
|
|
72250
|
+
], ConversationDetailArtifact_.prototype, "_mj__CreatedAt", void 0);
|
|
72251
|
+
__decorate([
|
|
72252
|
+
Field(),
|
|
72253
|
+
MaxLength(10),
|
|
72254
|
+
__metadata("design:type", Date)
|
|
72255
|
+
], ConversationDetailArtifact_.prototype, "_mj__UpdatedAt", void 0);
|
|
72256
|
+
ConversationDetailArtifact_ = __decorate([
|
|
72257
|
+
ObjectType({ description: `Junction table tracking many-to-many relationship between conversation messages and artifact versions, with directionality tracking` })
|
|
72258
|
+
], ConversationDetailArtifact_);
|
|
72259
|
+
export { ConversationDetailArtifact_ };
|
|
72260
|
+
let CreateConversationDetailArtifactInput = class CreateConversationDetailArtifactInput {
|
|
72261
|
+
ID;
|
|
72262
|
+
ConversationDetailID;
|
|
72263
|
+
ArtifactVersionID;
|
|
72264
|
+
Direction;
|
|
72265
|
+
};
|
|
72266
|
+
__decorate([
|
|
72267
|
+
Field({ nullable: true }),
|
|
72268
|
+
__metadata("design:type", String)
|
|
72269
|
+
], CreateConversationDetailArtifactInput.prototype, "ID", void 0);
|
|
72270
|
+
__decorate([
|
|
72271
|
+
Field({ nullable: true }),
|
|
72272
|
+
__metadata("design:type", String)
|
|
72273
|
+
], CreateConversationDetailArtifactInput.prototype, "ConversationDetailID", void 0);
|
|
72274
|
+
__decorate([
|
|
72275
|
+
Field({ nullable: true }),
|
|
72276
|
+
__metadata("design:type", String)
|
|
72277
|
+
], CreateConversationDetailArtifactInput.prototype, "ArtifactVersionID", void 0);
|
|
72278
|
+
__decorate([
|
|
72279
|
+
Field({ nullable: true }),
|
|
72280
|
+
__metadata("design:type", String)
|
|
72281
|
+
], CreateConversationDetailArtifactInput.prototype, "Direction", void 0);
|
|
72282
|
+
CreateConversationDetailArtifactInput = __decorate([
|
|
72283
|
+
InputType()
|
|
72284
|
+
], CreateConversationDetailArtifactInput);
|
|
72285
|
+
export { CreateConversationDetailArtifactInput };
|
|
72286
|
+
let UpdateConversationDetailArtifactInput = class UpdateConversationDetailArtifactInput {
|
|
72287
|
+
ID;
|
|
72288
|
+
ConversationDetailID;
|
|
72289
|
+
ArtifactVersionID;
|
|
72290
|
+
Direction;
|
|
72291
|
+
OldValues___;
|
|
72292
|
+
};
|
|
72293
|
+
__decorate([
|
|
72294
|
+
Field(),
|
|
72295
|
+
__metadata("design:type", String)
|
|
72296
|
+
], UpdateConversationDetailArtifactInput.prototype, "ID", void 0);
|
|
72297
|
+
__decorate([
|
|
72298
|
+
Field({ nullable: true }),
|
|
72299
|
+
__metadata("design:type", String)
|
|
72300
|
+
], UpdateConversationDetailArtifactInput.prototype, "ConversationDetailID", void 0);
|
|
72301
|
+
__decorate([
|
|
72302
|
+
Field({ nullable: true }),
|
|
72303
|
+
__metadata("design:type", String)
|
|
72304
|
+
], UpdateConversationDetailArtifactInput.prototype, "ArtifactVersionID", void 0);
|
|
72305
|
+
__decorate([
|
|
72306
|
+
Field({ nullable: true }),
|
|
72307
|
+
__metadata("design:type", String)
|
|
72308
|
+
], UpdateConversationDetailArtifactInput.prototype, "Direction", void 0);
|
|
72309
|
+
__decorate([
|
|
72310
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
72311
|
+
__metadata("design:type", Array)
|
|
72312
|
+
], UpdateConversationDetailArtifactInput.prototype, "OldValues___", void 0);
|
|
72313
|
+
UpdateConversationDetailArtifactInput = __decorate([
|
|
72314
|
+
InputType()
|
|
72315
|
+
], UpdateConversationDetailArtifactInput);
|
|
72316
|
+
export { UpdateConversationDetailArtifactInput };
|
|
72317
|
+
let RunConversationDetailArtifactViewResult = class RunConversationDetailArtifactViewResult {
|
|
72318
|
+
Results;
|
|
72319
|
+
UserViewRunID;
|
|
72320
|
+
RowCount;
|
|
72321
|
+
TotalRowCount;
|
|
72322
|
+
ExecutionTime;
|
|
72323
|
+
ErrorMessage;
|
|
72324
|
+
Success;
|
|
72325
|
+
};
|
|
72326
|
+
__decorate([
|
|
72327
|
+
Field(() => [ConversationDetailArtifact_]),
|
|
72328
|
+
__metadata("design:type", Array)
|
|
72329
|
+
], RunConversationDetailArtifactViewResult.prototype, "Results", void 0);
|
|
72330
|
+
__decorate([
|
|
72331
|
+
Field(() => String, { nullable: true }),
|
|
72332
|
+
__metadata("design:type", String)
|
|
72333
|
+
], RunConversationDetailArtifactViewResult.prototype, "UserViewRunID", void 0);
|
|
72334
|
+
__decorate([
|
|
72335
|
+
Field(() => Int, { nullable: true }),
|
|
72336
|
+
__metadata("design:type", Number)
|
|
72337
|
+
], RunConversationDetailArtifactViewResult.prototype, "RowCount", void 0);
|
|
72338
|
+
__decorate([
|
|
72339
|
+
Field(() => Int, { nullable: true }),
|
|
72340
|
+
__metadata("design:type", Number)
|
|
72341
|
+
], RunConversationDetailArtifactViewResult.prototype, "TotalRowCount", void 0);
|
|
72342
|
+
__decorate([
|
|
72343
|
+
Field(() => Int, { nullable: true }),
|
|
72344
|
+
__metadata("design:type", Number)
|
|
72345
|
+
], RunConversationDetailArtifactViewResult.prototype, "ExecutionTime", void 0);
|
|
72346
|
+
__decorate([
|
|
72347
|
+
Field({ nullable: true }),
|
|
72348
|
+
__metadata("design:type", String)
|
|
72349
|
+
], RunConversationDetailArtifactViewResult.prototype, "ErrorMessage", void 0);
|
|
72350
|
+
__decorate([
|
|
72351
|
+
Field(() => Boolean, { nullable: false }),
|
|
72352
|
+
__metadata("design:type", Boolean)
|
|
72353
|
+
], RunConversationDetailArtifactViewResult.prototype, "Success", void 0);
|
|
72354
|
+
RunConversationDetailArtifactViewResult = __decorate([
|
|
72355
|
+
ObjectType()
|
|
72356
|
+
], RunConversationDetailArtifactViewResult);
|
|
72357
|
+
export { RunConversationDetailArtifactViewResult };
|
|
72358
|
+
let ConversationDetailArtifactResolver = class ConversationDetailArtifactResolver extends ResolverBase {
|
|
72359
|
+
async RunConversationDetailArtifactViewByID(input, { providers, userPayload }, pubSub) {
|
|
72360
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72361
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
72362
|
+
}
|
|
72363
|
+
async RunConversationDetailArtifactViewByName(input, { providers, userPayload }, pubSub) {
|
|
72364
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72365
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
72366
|
+
}
|
|
72367
|
+
async RunConversationDetailArtifactDynamicView(input, { providers, userPayload }, pubSub) {
|
|
72368
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72369
|
+
input.EntityName = 'MJ: Conversation Detail Artifacts';
|
|
72370
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
72371
|
+
}
|
|
72372
|
+
async ConversationDetailArtifact(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
72373
|
+
this.CheckUserReadPermissions('MJ: Conversation Detail Artifacts', userPayload);
|
|
72374
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72375
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72376
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailArtifacts] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
72377
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72378
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] : {});
|
|
72379
|
+
return result;
|
|
72380
|
+
}
|
|
72381
|
+
async CreateConversationDetailArtifact(input, { providers, userPayload }, pubSub) {
|
|
72382
|
+
const provider = GetReadWriteProvider(providers);
|
|
72383
|
+
return this.CreateRecord('MJ: Conversation Detail Artifacts', input, provider, userPayload, pubSub);
|
|
72384
|
+
}
|
|
72385
|
+
async UpdateConversationDetailArtifact(input, { providers, userPayload }, pubSub) {
|
|
72386
|
+
const provider = GetReadWriteProvider(providers);
|
|
72387
|
+
return this.UpdateRecord('MJ: Conversation Detail Artifacts', input, provider, userPayload, pubSub);
|
|
72388
|
+
}
|
|
72389
|
+
async DeleteConversationDetailArtifact(ID, options, { providers, userPayload }, pubSub) {
|
|
72390
|
+
const provider = GetReadWriteProvider(providers);
|
|
72391
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
72392
|
+
return this.DeleteRecord('MJ: Conversation Detail Artifacts', key, options, provider, userPayload, pubSub);
|
|
72393
|
+
}
|
|
72394
|
+
};
|
|
72395
|
+
__decorate([
|
|
72396
|
+
Query(() => RunConversationDetailArtifactViewResult),
|
|
72397
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
72398
|
+
__param(1, Ctx()),
|
|
72399
|
+
__param(2, PubSub()),
|
|
72400
|
+
__metadata("design:type", Function),
|
|
72401
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
72402
|
+
__metadata("design:returntype", Promise)
|
|
72403
|
+
], ConversationDetailArtifactResolver.prototype, "RunConversationDetailArtifactViewByID", null);
|
|
72404
|
+
__decorate([
|
|
72405
|
+
Query(() => RunConversationDetailArtifactViewResult),
|
|
72406
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
72407
|
+
__param(1, Ctx()),
|
|
72408
|
+
__param(2, PubSub()),
|
|
72409
|
+
__metadata("design:type", Function),
|
|
72410
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
72411
|
+
__metadata("design:returntype", Promise)
|
|
72412
|
+
], ConversationDetailArtifactResolver.prototype, "RunConversationDetailArtifactViewByName", null);
|
|
72413
|
+
__decorate([
|
|
72414
|
+
Query(() => RunConversationDetailArtifactViewResult),
|
|
72415
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
72416
|
+
__param(1, Ctx()),
|
|
72417
|
+
__param(2, PubSub()),
|
|
72418
|
+
__metadata("design:type", Function),
|
|
72419
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
72420
|
+
__metadata("design:returntype", Promise)
|
|
72421
|
+
], ConversationDetailArtifactResolver.prototype, "RunConversationDetailArtifactDynamicView", null);
|
|
72422
|
+
__decorate([
|
|
72423
|
+
Query(() => ConversationDetailArtifact_, { nullable: true }),
|
|
72424
|
+
__param(0, Arg('ID', () => String)),
|
|
72425
|
+
__param(1, Ctx()),
|
|
72426
|
+
__param(2, PubSub()),
|
|
72427
|
+
__metadata("design:type", Function),
|
|
72428
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
72429
|
+
__metadata("design:returntype", Promise)
|
|
72430
|
+
], ConversationDetailArtifactResolver.prototype, "ConversationDetailArtifact", null);
|
|
72431
|
+
__decorate([
|
|
72432
|
+
Mutation(() => ConversationDetailArtifact_),
|
|
72433
|
+
__param(0, Arg('input', () => CreateConversationDetailArtifactInput)),
|
|
72434
|
+
__param(1, Ctx()),
|
|
72435
|
+
__param(2, PubSub()),
|
|
72436
|
+
__metadata("design:type", Function),
|
|
72437
|
+
__metadata("design:paramtypes", [CreateConversationDetailArtifactInput, Object, PubSubEngine]),
|
|
72438
|
+
__metadata("design:returntype", Promise)
|
|
72439
|
+
], ConversationDetailArtifactResolver.prototype, "CreateConversationDetailArtifact", null);
|
|
72440
|
+
__decorate([
|
|
72441
|
+
Mutation(() => ConversationDetailArtifact_),
|
|
72442
|
+
__param(0, Arg('input', () => UpdateConversationDetailArtifactInput)),
|
|
72443
|
+
__param(1, Ctx()),
|
|
72444
|
+
__param(2, PubSub()),
|
|
72445
|
+
__metadata("design:type", Function),
|
|
72446
|
+
__metadata("design:paramtypes", [UpdateConversationDetailArtifactInput, Object, PubSubEngine]),
|
|
72447
|
+
__metadata("design:returntype", Promise)
|
|
72448
|
+
], ConversationDetailArtifactResolver.prototype, "UpdateConversationDetailArtifact", null);
|
|
72449
|
+
__decorate([
|
|
72450
|
+
Mutation(() => ConversationDetailArtifact_),
|
|
72451
|
+
__param(0, Arg('ID', () => String)),
|
|
72452
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
72453
|
+
__param(2, Ctx()),
|
|
72454
|
+
__param(3, PubSub()),
|
|
72455
|
+
__metadata("design:type", Function),
|
|
72456
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
72457
|
+
__metadata("design:returntype", Promise)
|
|
72458
|
+
], ConversationDetailArtifactResolver.prototype, "DeleteConversationDetailArtifact", null);
|
|
72459
|
+
ConversationDetailArtifactResolver = __decorate([
|
|
72460
|
+
Resolver(ConversationDetailArtifact_)
|
|
72461
|
+
], ConversationDetailArtifactResolver);
|
|
72462
|
+
export { ConversationDetailArtifactResolver };
|
|
72095
72463
|
let Task_ = class Task_ {
|
|
72096
72464
|
ID;
|
|
72097
72465
|
ParentID;
|
|
@@ -73532,8 +73900,10 @@ let ArtifactVersion_ = class ArtifactVersion_ {
|
|
|
73532
73900
|
UserID;
|
|
73533
73901
|
_mj__CreatedAt;
|
|
73534
73902
|
_mj__UpdatedAt;
|
|
73903
|
+
ContentHash;
|
|
73535
73904
|
Artifact;
|
|
73536
73905
|
User;
|
|
73906
|
+
MJ_ConversationDetailArtifacts_ArtifactVersionIDArray;
|
|
73537
73907
|
};
|
|
73538
73908
|
__decorate([
|
|
73539
73909
|
Field(),
|
|
@@ -73576,6 +73946,11 @@ __decorate([
|
|
|
73576
73946
|
MaxLength(10),
|
|
73577
73947
|
__metadata("design:type", Date)
|
|
73578
73948
|
], ArtifactVersion_.prototype, "_mj__UpdatedAt", void 0);
|
|
73949
|
+
__decorate([
|
|
73950
|
+
Field({ nullable: true, description: `SHA-256 hash of the Content field for duplicate detection and version comparison` }),
|
|
73951
|
+
MaxLength(1000),
|
|
73952
|
+
__metadata("design:type", String)
|
|
73953
|
+
], ArtifactVersion_.prototype, "ContentHash", void 0);
|
|
73579
73954
|
__decorate([
|
|
73580
73955
|
Field(),
|
|
73581
73956
|
MaxLength(510),
|
|
@@ -73586,6 +73961,10 @@ __decorate([
|
|
|
73586
73961
|
MaxLength(200),
|
|
73587
73962
|
__metadata("design:type", String)
|
|
73588
73963
|
], ArtifactVersion_.prototype, "User", void 0);
|
|
73964
|
+
__decorate([
|
|
73965
|
+
Field(() => [ConversationDetailArtifact_]),
|
|
73966
|
+
__metadata("design:type", Array)
|
|
73967
|
+
], ArtifactVersion_.prototype, "MJ_ConversationDetailArtifacts_ArtifactVersionIDArray", void 0);
|
|
73589
73968
|
ArtifactVersion_ = __decorate([
|
|
73590
73969
|
ObjectType({ description: `Version history for artifacts, tracking all changes over time` })
|
|
73591
73970
|
], ArtifactVersion_);
|
|
@@ -73598,6 +73977,7 @@ let CreateArtifactVersionInput = class CreateArtifactVersionInput {
|
|
|
73598
73977
|
Configuration;
|
|
73599
73978
|
Comments;
|
|
73600
73979
|
UserID;
|
|
73980
|
+
ContentHash;
|
|
73601
73981
|
};
|
|
73602
73982
|
__decorate([
|
|
73603
73983
|
Field({ nullable: true }),
|
|
@@ -73627,6 +74007,10 @@ __decorate([
|
|
|
73627
74007
|
Field({ nullable: true }),
|
|
73628
74008
|
__metadata("design:type", String)
|
|
73629
74009
|
], CreateArtifactVersionInput.prototype, "UserID", void 0);
|
|
74010
|
+
__decorate([
|
|
74011
|
+
Field({ nullable: true }),
|
|
74012
|
+
__metadata("design:type", String)
|
|
74013
|
+
], CreateArtifactVersionInput.prototype, "ContentHash", void 0);
|
|
73630
74014
|
CreateArtifactVersionInput = __decorate([
|
|
73631
74015
|
InputType()
|
|
73632
74016
|
], CreateArtifactVersionInput);
|
|
@@ -73639,6 +74023,7 @@ let UpdateArtifactVersionInput = class UpdateArtifactVersionInput {
|
|
|
73639
74023
|
Configuration;
|
|
73640
74024
|
Comments;
|
|
73641
74025
|
UserID;
|
|
74026
|
+
ContentHash;
|
|
73642
74027
|
OldValues___;
|
|
73643
74028
|
};
|
|
73644
74029
|
__decorate([
|
|
@@ -73669,6 +74054,10 @@ __decorate([
|
|
|
73669
74054
|
Field({ nullable: true }),
|
|
73670
74055
|
__metadata("design:type", String)
|
|
73671
74056
|
], UpdateArtifactVersionInput.prototype, "UserID", void 0);
|
|
74057
|
+
__decorate([
|
|
74058
|
+
Field({ nullable: true }),
|
|
74059
|
+
__metadata("design:type", String)
|
|
74060
|
+
], UpdateArtifactVersionInput.prototype, "ContentHash", void 0);
|
|
73672
74061
|
__decorate([
|
|
73673
74062
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
73674
74063
|
__metadata("design:type", Array)
|
|
@@ -73741,6 +74130,15 @@ let ArtifactVersionResolver = class ArtifactVersionResolver extends ResolverBase
|
|
|
73741
74130
|
const result = this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] : {});
|
|
73742
74131
|
return result;
|
|
73743
74132
|
}
|
|
74133
|
+
async MJ_ConversationDetailArtifacts_ArtifactVersionIDArray(artifactversion_, { dataSources, userPayload, providers }, pubSub) {
|
|
74134
|
+
this.CheckUserReadPermissions('MJ: Conversation Detail Artifacts', userPayload);
|
|
74135
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74136
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
74137
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailArtifacts] WHERE [ArtifactVersionID]='${artifactversion_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
74138
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
74139
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows);
|
|
74140
|
+
return result;
|
|
74141
|
+
}
|
|
73744
74142
|
async CreateArtifactVersion(input, { providers, userPayload }, pubSub) {
|
|
73745
74143
|
const provider = GetReadWriteProvider(providers);
|
|
73746
74144
|
return this.CreateRecord('MJ: Artifact Versions', input, provider, userPayload, pubSub);
|
|
@@ -73791,6 +74189,15 @@ __decorate([
|
|
|
73791
74189
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
73792
74190
|
__metadata("design:returntype", Promise)
|
|
73793
74191
|
], ArtifactVersionResolver.prototype, "ArtifactVersion", null);
|
|
74192
|
+
__decorate([
|
|
74193
|
+
FieldResolver(() => [ConversationDetailArtifact_]),
|
|
74194
|
+
__param(0, Root()),
|
|
74195
|
+
__param(1, Ctx()),
|
|
74196
|
+
__param(2, PubSub()),
|
|
74197
|
+
__metadata("design:type", Function),
|
|
74198
|
+
__metadata("design:paramtypes", [ArtifactVersion_, Object, PubSubEngine]),
|
|
74199
|
+
__metadata("design:returntype", Promise)
|
|
74200
|
+
], ArtifactVersionResolver.prototype, "MJ_ConversationDetailArtifacts_ArtifactVersionIDArray", null);
|
|
73794
74201
|
__decorate([
|
|
73795
74202
|
Mutation(() => ArtifactVersion_),
|
|
73796
74203
|
__param(0, Arg('input', () => CreateArtifactVersionInput)),
|