@memberjunction/server 2.75.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +159 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +978 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +12 -3
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +114 -64
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +3 -0
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +4 -4
- package/dist/resolvers/QueryResolver.js +18 -18
- package/package.json +34 -34
- package/src/generated/generated.ts +613 -1
- package/src/resolvers/CreateQueryResolver.ts +94 -60
- package/src/resolvers/GetDataResolver.ts +3 -0
- package/src/resolvers/QueryResolver.ts +14 -14
|
@@ -3407,6 +3407,8 @@ let AIAgent_ = class AIAgent_ {
|
|
|
3407
3407
|
AIAgentLearningCycles_AgentIDArray;
|
|
3408
3408
|
AIAgentModels_AgentIDArray;
|
|
3409
3409
|
AIAgentActions_AgentIDArray;
|
|
3410
|
+
MJ_AIAgentSteps_AgentIDArray;
|
|
3411
|
+
MJ_AIAgentSteps_SubAgentIDArray;
|
|
3410
3412
|
MJ_AIAgentPrompts_AgentIDArray;
|
|
3411
3413
|
MJ_AIAgentRuns_AgentIDArray;
|
|
3412
3414
|
AIAgentNotes_AgentIDArray;
|
|
@@ -3607,6 +3609,14 @@ __decorate([
|
|
|
3607
3609
|
Field(() => [AIAgentAction_]),
|
|
3608
3610
|
__metadata("design:type", Array)
|
|
3609
3611
|
], AIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
|
|
3612
|
+
__decorate([
|
|
3613
|
+
Field(() => [AIAgentStep_]),
|
|
3614
|
+
__metadata("design:type", Array)
|
|
3615
|
+
], AIAgent_.prototype, "MJ_AIAgentSteps_AgentIDArray", void 0);
|
|
3616
|
+
__decorate([
|
|
3617
|
+
Field(() => [AIAgentStep_]),
|
|
3618
|
+
__metadata("design:type", Array)
|
|
3619
|
+
], AIAgent_.prototype, "MJ_AIAgentSteps_SubAgentIDArray", void 0);
|
|
3610
3620
|
__decorate([
|
|
3611
3621
|
Field(() => [AIAgentPrompt_]),
|
|
3612
3622
|
__metadata("design:type", Array)
|
|
@@ -4077,6 +4087,22 @@ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
|
|
|
4077
4087
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Actions', rows);
|
|
4078
4088
|
return result;
|
|
4079
4089
|
}
|
|
4090
|
+
async MJ_AIAgentSteps_AgentIDArray(aiagent_, { dataSources, userPayload }, pubSub) {
|
|
4091
|
+
this.CheckUserReadPermissions('MJ: AI Agent Steps', userPayload);
|
|
4092
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4093
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentSteps] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
4094
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4095
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
|
|
4096
|
+
return result;
|
|
4097
|
+
}
|
|
4098
|
+
async MJ_AIAgentSteps_SubAgentIDArray(aiagent_, { dataSources, userPayload }, pubSub) {
|
|
4099
|
+
this.CheckUserReadPermissions('MJ: AI Agent Steps', userPayload);
|
|
4100
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4101
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentSteps] WHERE [SubAgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
4102
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4103
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
|
|
4104
|
+
return result;
|
|
4105
|
+
}
|
|
4080
4106
|
async MJ_AIAgentPrompts_AgentIDArray(aiagent_, { dataSources, userPayload }, pubSub) {
|
|
4081
4107
|
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
4082
4108
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -4211,6 +4237,24 @@ __decorate([
|
|
|
4211
4237
|
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
4212
4238
|
__metadata("design:returntype", Promise)
|
|
4213
4239
|
], AIAgentResolver.prototype, "AIAgentActions_AgentIDArray", null);
|
|
4240
|
+
__decorate([
|
|
4241
|
+
FieldResolver(() => [AIAgentStep_]),
|
|
4242
|
+
__param(0, Root()),
|
|
4243
|
+
__param(1, Ctx()),
|
|
4244
|
+
__param(2, PubSub()),
|
|
4245
|
+
__metadata("design:type", Function),
|
|
4246
|
+
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
4247
|
+
__metadata("design:returntype", Promise)
|
|
4248
|
+
], AIAgentResolver.prototype, "MJ_AIAgentSteps_AgentIDArray", null);
|
|
4249
|
+
__decorate([
|
|
4250
|
+
FieldResolver(() => [AIAgentStep_]),
|
|
4251
|
+
__param(0, Root()),
|
|
4252
|
+
__param(1, Ctx()),
|
|
4253
|
+
__param(2, PubSub()),
|
|
4254
|
+
__metadata("design:type", Function),
|
|
4255
|
+
__metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
|
|
4256
|
+
__metadata("design:returntype", Promise)
|
|
4257
|
+
], AIAgentResolver.prototype, "MJ_AIAgentSteps_SubAgentIDArray", null);
|
|
4214
4258
|
__decorate([
|
|
4215
4259
|
FieldResolver(() => [AIAgentPrompt_]),
|
|
4216
4260
|
__param(0, Root()),
|
|
@@ -4297,6 +4341,548 @@ AIAgentResolver = __decorate([
|
|
|
4297
4341
|
Resolver(AIAgent_)
|
|
4298
4342
|
], AIAgentResolver);
|
|
4299
4343
|
export { AIAgentResolver };
|
|
4344
|
+
let AIAgentStep_ = class AIAgentStep_ {
|
|
4345
|
+
ID;
|
|
4346
|
+
AgentID;
|
|
4347
|
+
Name;
|
|
4348
|
+
Description;
|
|
4349
|
+
StepType;
|
|
4350
|
+
StartingStep;
|
|
4351
|
+
TimeoutSeconds;
|
|
4352
|
+
RetryCount;
|
|
4353
|
+
OnErrorBehavior;
|
|
4354
|
+
ActionID;
|
|
4355
|
+
SubAgentID;
|
|
4356
|
+
PromptID;
|
|
4357
|
+
ActionOutputMapping;
|
|
4358
|
+
PositionX;
|
|
4359
|
+
PositionY;
|
|
4360
|
+
Width;
|
|
4361
|
+
Height;
|
|
4362
|
+
_mj__CreatedAt;
|
|
4363
|
+
_mj__UpdatedAt;
|
|
4364
|
+
Status;
|
|
4365
|
+
ActionInputMapping;
|
|
4366
|
+
Agent;
|
|
4367
|
+
Action;
|
|
4368
|
+
SubAgent;
|
|
4369
|
+
Prompt;
|
|
4370
|
+
MJ_AIAgentStepPaths_DestinationStepIDArray;
|
|
4371
|
+
MJ_AIAgentStepPaths_OriginStepIDArray;
|
|
4372
|
+
};
|
|
4373
|
+
__decorate([
|
|
4374
|
+
Field(),
|
|
4375
|
+
MaxLength(16),
|
|
4376
|
+
__metadata("design:type", String)
|
|
4377
|
+
], AIAgentStep_.prototype, "ID", void 0);
|
|
4378
|
+
__decorate([
|
|
4379
|
+
Field(),
|
|
4380
|
+
MaxLength(16),
|
|
4381
|
+
__metadata("design:type", String)
|
|
4382
|
+
], AIAgentStep_.prototype, "AgentID", void 0);
|
|
4383
|
+
__decorate([
|
|
4384
|
+
Field(),
|
|
4385
|
+
MaxLength(510),
|
|
4386
|
+
__metadata("design:type", String)
|
|
4387
|
+
], AIAgentStep_.prototype, "Name", void 0);
|
|
4388
|
+
__decorate([
|
|
4389
|
+
Field({ nullable: true }),
|
|
4390
|
+
__metadata("design:type", String)
|
|
4391
|
+
], AIAgentStep_.prototype, "Description", void 0);
|
|
4392
|
+
__decorate([
|
|
4393
|
+
Field({ description: `Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)` }),
|
|
4394
|
+
MaxLength(40),
|
|
4395
|
+
__metadata("design:type", String)
|
|
4396
|
+
], AIAgentStep_.prototype, "StepType", void 0);
|
|
4397
|
+
__decorate([
|
|
4398
|
+
Field(() => Boolean, { description: `If true, this step is executed when the agent starts` }),
|
|
4399
|
+
__metadata("design:type", Boolean)
|
|
4400
|
+
], AIAgentStep_.prototype, "StartingStep", void 0);
|
|
4401
|
+
__decorate([
|
|
4402
|
+
Field(() => Int, { nullable: true }),
|
|
4403
|
+
__metadata("design:type", Number)
|
|
4404
|
+
], AIAgentStep_.prototype, "TimeoutSeconds", void 0);
|
|
4405
|
+
__decorate([
|
|
4406
|
+
Field(() => Int),
|
|
4407
|
+
__metadata("design:type", Number)
|
|
4408
|
+
], AIAgentStep_.prototype, "RetryCount", void 0);
|
|
4409
|
+
__decorate([
|
|
4410
|
+
Field(),
|
|
4411
|
+
MaxLength(40),
|
|
4412
|
+
__metadata("design:type", String)
|
|
4413
|
+
], AIAgentStep_.prototype, "OnErrorBehavior", void 0);
|
|
4414
|
+
__decorate([
|
|
4415
|
+
Field({ nullable: true }),
|
|
4416
|
+
MaxLength(16),
|
|
4417
|
+
__metadata("design:type", String)
|
|
4418
|
+
], AIAgentStep_.prototype, "ActionID", void 0);
|
|
4419
|
+
__decorate([
|
|
4420
|
+
Field({ nullable: true }),
|
|
4421
|
+
MaxLength(16),
|
|
4422
|
+
__metadata("design:type", String)
|
|
4423
|
+
], AIAgentStep_.prototype, "SubAgentID", void 0);
|
|
4424
|
+
__decorate([
|
|
4425
|
+
Field({ nullable: true }),
|
|
4426
|
+
MaxLength(16),
|
|
4427
|
+
__metadata("design:type", String)
|
|
4428
|
+
], AIAgentStep_.prototype, "PromptID", void 0);
|
|
4429
|
+
__decorate([
|
|
4430
|
+
Field({ nullable: true, description: `JSON configuration for mapping action output parameters to payload paths. Example: {"outputParam1": "payload.customer.status", "*": "payload.lastResult"}` }),
|
|
4431
|
+
__metadata("design:type", String)
|
|
4432
|
+
], AIAgentStep_.prototype, "ActionOutputMapping", void 0);
|
|
4433
|
+
__decorate([
|
|
4434
|
+
Field(() => Int),
|
|
4435
|
+
__metadata("design:type", Number)
|
|
4436
|
+
], AIAgentStep_.prototype, "PositionX", void 0);
|
|
4437
|
+
__decorate([
|
|
4438
|
+
Field(() => Int),
|
|
4439
|
+
__metadata("design:type", Number)
|
|
4440
|
+
], AIAgentStep_.prototype, "PositionY", void 0);
|
|
4441
|
+
__decorate([
|
|
4442
|
+
Field(() => Int),
|
|
4443
|
+
__metadata("design:type", Number)
|
|
4444
|
+
], AIAgentStep_.prototype, "Width", void 0);
|
|
4445
|
+
__decorate([
|
|
4446
|
+
Field(() => Int),
|
|
4447
|
+
__metadata("design:type", Number)
|
|
4448
|
+
], AIAgentStep_.prototype, "Height", void 0);
|
|
4449
|
+
__decorate([
|
|
4450
|
+
Field(),
|
|
4451
|
+
MaxLength(10),
|
|
4452
|
+
__metadata("design:type", Date)
|
|
4453
|
+
], AIAgentStep_.prototype, "_mj__CreatedAt", void 0);
|
|
4454
|
+
__decorate([
|
|
4455
|
+
Field(),
|
|
4456
|
+
MaxLength(10),
|
|
4457
|
+
__metadata("design:type", Date)
|
|
4458
|
+
], AIAgentStep_.prototype, "_mj__UpdatedAt", void 0);
|
|
4459
|
+
__decorate([
|
|
4460
|
+
Field({ description: `Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute` }),
|
|
4461
|
+
MaxLength(40),
|
|
4462
|
+
__metadata("design:type", String)
|
|
4463
|
+
], AIAgentStep_.prototype, "Status", void 0);
|
|
4464
|
+
__decorate([
|
|
4465
|
+
Field({ nullable: true, description: `JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}` }),
|
|
4466
|
+
__metadata("design:type", String)
|
|
4467
|
+
], AIAgentStep_.prototype, "ActionInputMapping", void 0);
|
|
4468
|
+
__decorate([
|
|
4469
|
+
Field({ nullable: true }),
|
|
4470
|
+
MaxLength(510),
|
|
4471
|
+
__metadata("design:type", String)
|
|
4472
|
+
], AIAgentStep_.prototype, "Agent", void 0);
|
|
4473
|
+
__decorate([
|
|
4474
|
+
Field({ nullable: true }),
|
|
4475
|
+
MaxLength(850),
|
|
4476
|
+
__metadata("design:type", String)
|
|
4477
|
+
], AIAgentStep_.prototype, "Action", void 0);
|
|
4478
|
+
__decorate([
|
|
4479
|
+
Field({ nullable: true }),
|
|
4480
|
+
MaxLength(510),
|
|
4481
|
+
__metadata("design:type", String)
|
|
4482
|
+
], AIAgentStep_.prototype, "SubAgent", void 0);
|
|
4483
|
+
__decorate([
|
|
4484
|
+
Field({ nullable: true }),
|
|
4485
|
+
MaxLength(510),
|
|
4486
|
+
__metadata("design:type", String)
|
|
4487
|
+
], AIAgentStep_.prototype, "Prompt", void 0);
|
|
4488
|
+
__decorate([
|
|
4489
|
+
Field(() => [AIAgentStepPath_]),
|
|
4490
|
+
__metadata("design:type", Array)
|
|
4491
|
+
], AIAgentStep_.prototype, "MJ_AIAgentStepPaths_DestinationStepIDArray", void 0);
|
|
4492
|
+
__decorate([
|
|
4493
|
+
Field(() => [AIAgentStepPath_]),
|
|
4494
|
+
__metadata("design:type", Array)
|
|
4495
|
+
], AIAgentStep_.prototype, "MJ_AIAgentStepPaths_OriginStepIDArray", void 0);
|
|
4496
|
+
AIAgentStep_ = __decorate([
|
|
4497
|
+
ObjectType({ description: `Defines individual steps (nodes) in a flow-based AI agent execution graph` })
|
|
4498
|
+
], AIAgentStep_);
|
|
4499
|
+
export { AIAgentStep_ };
|
|
4500
|
+
let CreateAIAgentStepInput = class CreateAIAgentStepInput {
|
|
4501
|
+
ID;
|
|
4502
|
+
AgentID;
|
|
4503
|
+
Name;
|
|
4504
|
+
Description;
|
|
4505
|
+
StepType;
|
|
4506
|
+
StartingStep;
|
|
4507
|
+
TimeoutSeconds;
|
|
4508
|
+
RetryCount;
|
|
4509
|
+
OnErrorBehavior;
|
|
4510
|
+
ActionID;
|
|
4511
|
+
SubAgentID;
|
|
4512
|
+
PromptID;
|
|
4513
|
+
ActionOutputMapping;
|
|
4514
|
+
PositionX;
|
|
4515
|
+
PositionY;
|
|
4516
|
+
Width;
|
|
4517
|
+
Height;
|
|
4518
|
+
Status;
|
|
4519
|
+
ActionInputMapping;
|
|
4520
|
+
};
|
|
4521
|
+
__decorate([
|
|
4522
|
+
Field({ nullable: true }),
|
|
4523
|
+
__metadata("design:type", String)
|
|
4524
|
+
], CreateAIAgentStepInput.prototype, "ID", void 0);
|
|
4525
|
+
__decorate([
|
|
4526
|
+
Field({ nullable: true }),
|
|
4527
|
+
__metadata("design:type", String)
|
|
4528
|
+
], CreateAIAgentStepInput.prototype, "AgentID", void 0);
|
|
4529
|
+
__decorate([
|
|
4530
|
+
Field({ nullable: true }),
|
|
4531
|
+
__metadata("design:type", String)
|
|
4532
|
+
], CreateAIAgentStepInput.prototype, "Name", void 0);
|
|
4533
|
+
__decorate([
|
|
4534
|
+
Field({ nullable: true }),
|
|
4535
|
+
__metadata("design:type", String)
|
|
4536
|
+
], CreateAIAgentStepInput.prototype, "Description", void 0);
|
|
4537
|
+
__decorate([
|
|
4538
|
+
Field({ nullable: true }),
|
|
4539
|
+
__metadata("design:type", String)
|
|
4540
|
+
], CreateAIAgentStepInput.prototype, "StepType", void 0);
|
|
4541
|
+
__decorate([
|
|
4542
|
+
Field(() => Boolean, { nullable: true }),
|
|
4543
|
+
__metadata("design:type", Boolean)
|
|
4544
|
+
], CreateAIAgentStepInput.prototype, "StartingStep", void 0);
|
|
4545
|
+
__decorate([
|
|
4546
|
+
Field(() => Int, { nullable: true }),
|
|
4547
|
+
__metadata("design:type", Number)
|
|
4548
|
+
], CreateAIAgentStepInput.prototype, "TimeoutSeconds", void 0);
|
|
4549
|
+
__decorate([
|
|
4550
|
+
Field(() => Int, { nullable: true }),
|
|
4551
|
+
__metadata("design:type", Number)
|
|
4552
|
+
], CreateAIAgentStepInput.prototype, "RetryCount", void 0);
|
|
4553
|
+
__decorate([
|
|
4554
|
+
Field({ nullable: true }),
|
|
4555
|
+
__metadata("design:type", String)
|
|
4556
|
+
], CreateAIAgentStepInput.prototype, "OnErrorBehavior", void 0);
|
|
4557
|
+
__decorate([
|
|
4558
|
+
Field({ nullable: true }),
|
|
4559
|
+
__metadata("design:type", String)
|
|
4560
|
+
], CreateAIAgentStepInput.prototype, "ActionID", void 0);
|
|
4561
|
+
__decorate([
|
|
4562
|
+
Field({ nullable: true }),
|
|
4563
|
+
__metadata("design:type", String)
|
|
4564
|
+
], CreateAIAgentStepInput.prototype, "SubAgentID", void 0);
|
|
4565
|
+
__decorate([
|
|
4566
|
+
Field({ nullable: true }),
|
|
4567
|
+
__metadata("design:type", String)
|
|
4568
|
+
], CreateAIAgentStepInput.prototype, "PromptID", void 0);
|
|
4569
|
+
__decorate([
|
|
4570
|
+
Field({ nullable: true }),
|
|
4571
|
+
__metadata("design:type", String)
|
|
4572
|
+
], CreateAIAgentStepInput.prototype, "ActionOutputMapping", void 0);
|
|
4573
|
+
__decorate([
|
|
4574
|
+
Field(() => Int, { nullable: true }),
|
|
4575
|
+
__metadata("design:type", Number)
|
|
4576
|
+
], CreateAIAgentStepInput.prototype, "PositionX", void 0);
|
|
4577
|
+
__decorate([
|
|
4578
|
+
Field(() => Int, { nullable: true }),
|
|
4579
|
+
__metadata("design:type", Number)
|
|
4580
|
+
], CreateAIAgentStepInput.prototype, "PositionY", void 0);
|
|
4581
|
+
__decorate([
|
|
4582
|
+
Field(() => Int, { nullable: true }),
|
|
4583
|
+
__metadata("design:type", Number)
|
|
4584
|
+
], CreateAIAgentStepInput.prototype, "Width", void 0);
|
|
4585
|
+
__decorate([
|
|
4586
|
+
Field(() => Int, { nullable: true }),
|
|
4587
|
+
__metadata("design:type", Number)
|
|
4588
|
+
], CreateAIAgentStepInput.prototype, "Height", void 0);
|
|
4589
|
+
__decorate([
|
|
4590
|
+
Field({ nullable: true }),
|
|
4591
|
+
__metadata("design:type", String)
|
|
4592
|
+
], CreateAIAgentStepInput.prototype, "Status", void 0);
|
|
4593
|
+
__decorate([
|
|
4594
|
+
Field({ nullable: true }),
|
|
4595
|
+
__metadata("design:type", String)
|
|
4596
|
+
], CreateAIAgentStepInput.prototype, "ActionInputMapping", void 0);
|
|
4597
|
+
CreateAIAgentStepInput = __decorate([
|
|
4598
|
+
InputType()
|
|
4599
|
+
], CreateAIAgentStepInput);
|
|
4600
|
+
export { CreateAIAgentStepInput };
|
|
4601
|
+
let UpdateAIAgentStepInput = class UpdateAIAgentStepInput {
|
|
4602
|
+
ID;
|
|
4603
|
+
AgentID;
|
|
4604
|
+
Name;
|
|
4605
|
+
Description;
|
|
4606
|
+
StepType;
|
|
4607
|
+
StartingStep;
|
|
4608
|
+
TimeoutSeconds;
|
|
4609
|
+
RetryCount;
|
|
4610
|
+
OnErrorBehavior;
|
|
4611
|
+
ActionID;
|
|
4612
|
+
SubAgentID;
|
|
4613
|
+
PromptID;
|
|
4614
|
+
ActionOutputMapping;
|
|
4615
|
+
PositionX;
|
|
4616
|
+
PositionY;
|
|
4617
|
+
Width;
|
|
4618
|
+
Height;
|
|
4619
|
+
Status;
|
|
4620
|
+
ActionInputMapping;
|
|
4621
|
+
OldValues___;
|
|
4622
|
+
};
|
|
4623
|
+
__decorate([
|
|
4624
|
+
Field(),
|
|
4625
|
+
__metadata("design:type", String)
|
|
4626
|
+
], UpdateAIAgentStepInput.prototype, "ID", void 0);
|
|
4627
|
+
__decorate([
|
|
4628
|
+
Field({ nullable: true }),
|
|
4629
|
+
__metadata("design:type", String)
|
|
4630
|
+
], UpdateAIAgentStepInput.prototype, "AgentID", void 0);
|
|
4631
|
+
__decorate([
|
|
4632
|
+
Field({ nullable: true }),
|
|
4633
|
+
__metadata("design:type", String)
|
|
4634
|
+
], UpdateAIAgentStepInput.prototype, "Name", void 0);
|
|
4635
|
+
__decorate([
|
|
4636
|
+
Field({ nullable: true }),
|
|
4637
|
+
__metadata("design:type", String)
|
|
4638
|
+
], UpdateAIAgentStepInput.prototype, "Description", void 0);
|
|
4639
|
+
__decorate([
|
|
4640
|
+
Field({ nullable: true }),
|
|
4641
|
+
__metadata("design:type", String)
|
|
4642
|
+
], UpdateAIAgentStepInput.prototype, "StepType", void 0);
|
|
4643
|
+
__decorate([
|
|
4644
|
+
Field(() => Boolean, { nullable: true }),
|
|
4645
|
+
__metadata("design:type", Boolean)
|
|
4646
|
+
], UpdateAIAgentStepInput.prototype, "StartingStep", void 0);
|
|
4647
|
+
__decorate([
|
|
4648
|
+
Field(() => Int, { nullable: true }),
|
|
4649
|
+
__metadata("design:type", Number)
|
|
4650
|
+
], UpdateAIAgentStepInput.prototype, "TimeoutSeconds", void 0);
|
|
4651
|
+
__decorate([
|
|
4652
|
+
Field(() => Int, { nullable: true }),
|
|
4653
|
+
__metadata("design:type", Number)
|
|
4654
|
+
], UpdateAIAgentStepInput.prototype, "RetryCount", void 0);
|
|
4655
|
+
__decorate([
|
|
4656
|
+
Field({ nullable: true }),
|
|
4657
|
+
__metadata("design:type", String)
|
|
4658
|
+
], UpdateAIAgentStepInput.prototype, "OnErrorBehavior", void 0);
|
|
4659
|
+
__decorate([
|
|
4660
|
+
Field({ nullable: true }),
|
|
4661
|
+
__metadata("design:type", String)
|
|
4662
|
+
], UpdateAIAgentStepInput.prototype, "ActionID", void 0);
|
|
4663
|
+
__decorate([
|
|
4664
|
+
Field({ nullable: true }),
|
|
4665
|
+
__metadata("design:type", String)
|
|
4666
|
+
], UpdateAIAgentStepInput.prototype, "SubAgentID", void 0);
|
|
4667
|
+
__decorate([
|
|
4668
|
+
Field({ nullable: true }),
|
|
4669
|
+
__metadata("design:type", String)
|
|
4670
|
+
], UpdateAIAgentStepInput.prototype, "PromptID", void 0);
|
|
4671
|
+
__decorate([
|
|
4672
|
+
Field({ nullable: true }),
|
|
4673
|
+
__metadata("design:type", String)
|
|
4674
|
+
], UpdateAIAgentStepInput.prototype, "ActionOutputMapping", void 0);
|
|
4675
|
+
__decorate([
|
|
4676
|
+
Field(() => Int, { nullable: true }),
|
|
4677
|
+
__metadata("design:type", Number)
|
|
4678
|
+
], UpdateAIAgentStepInput.prototype, "PositionX", void 0);
|
|
4679
|
+
__decorate([
|
|
4680
|
+
Field(() => Int, { nullable: true }),
|
|
4681
|
+
__metadata("design:type", Number)
|
|
4682
|
+
], UpdateAIAgentStepInput.prototype, "PositionY", void 0);
|
|
4683
|
+
__decorate([
|
|
4684
|
+
Field(() => Int, { nullable: true }),
|
|
4685
|
+
__metadata("design:type", Number)
|
|
4686
|
+
], UpdateAIAgentStepInput.prototype, "Width", void 0);
|
|
4687
|
+
__decorate([
|
|
4688
|
+
Field(() => Int, { nullable: true }),
|
|
4689
|
+
__metadata("design:type", Number)
|
|
4690
|
+
], UpdateAIAgentStepInput.prototype, "Height", void 0);
|
|
4691
|
+
__decorate([
|
|
4692
|
+
Field({ nullable: true }),
|
|
4693
|
+
__metadata("design:type", String)
|
|
4694
|
+
], UpdateAIAgentStepInput.prototype, "Status", void 0);
|
|
4695
|
+
__decorate([
|
|
4696
|
+
Field({ nullable: true }),
|
|
4697
|
+
__metadata("design:type", String)
|
|
4698
|
+
], UpdateAIAgentStepInput.prototype, "ActionInputMapping", void 0);
|
|
4699
|
+
__decorate([
|
|
4700
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4701
|
+
__metadata("design:type", Array)
|
|
4702
|
+
], UpdateAIAgentStepInput.prototype, "OldValues___", void 0);
|
|
4703
|
+
UpdateAIAgentStepInput = __decorate([
|
|
4704
|
+
InputType()
|
|
4705
|
+
], UpdateAIAgentStepInput);
|
|
4706
|
+
export { UpdateAIAgentStepInput };
|
|
4707
|
+
let RunAIAgentStepViewResult = class RunAIAgentStepViewResult {
|
|
4708
|
+
Results;
|
|
4709
|
+
UserViewRunID;
|
|
4710
|
+
RowCount;
|
|
4711
|
+
TotalRowCount;
|
|
4712
|
+
ExecutionTime;
|
|
4713
|
+
ErrorMessage;
|
|
4714
|
+
Success;
|
|
4715
|
+
};
|
|
4716
|
+
__decorate([
|
|
4717
|
+
Field(() => [AIAgentStep_]),
|
|
4718
|
+
__metadata("design:type", Array)
|
|
4719
|
+
], RunAIAgentStepViewResult.prototype, "Results", void 0);
|
|
4720
|
+
__decorate([
|
|
4721
|
+
Field(() => String, { nullable: true }),
|
|
4722
|
+
__metadata("design:type", String)
|
|
4723
|
+
], RunAIAgentStepViewResult.prototype, "UserViewRunID", void 0);
|
|
4724
|
+
__decorate([
|
|
4725
|
+
Field(() => Int, { nullable: true }),
|
|
4726
|
+
__metadata("design:type", Number)
|
|
4727
|
+
], RunAIAgentStepViewResult.prototype, "RowCount", void 0);
|
|
4728
|
+
__decorate([
|
|
4729
|
+
Field(() => Int, { nullable: true }),
|
|
4730
|
+
__metadata("design:type", Number)
|
|
4731
|
+
], RunAIAgentStepViewResult.prototype, "TotalRowCount", void 0);
|
|
4732
|
+
__decorate([
|
|
4733
|
+
Field(() => Int, { nullable: true }),
|
|
4734
|
+
__metadata("design:type", Number)
|
|
4735
|
+
], RunAIAgentStepViewResult.prototype, "ExecutionTime", void 0);
|
|
4736
|
+
__decorate([
|
|
4737
|
+
Field({ nullable: true }),
|
|
4738
|
+
__metadata("design:type", String)
|
|
4739
|
+
], RunAIAgentStepViewResult.prototype, "ErrorMessage", void 0);
|
|
4740
|
+
__decorate([
|
|
4741
|
+
Field(() => Boolean, { nullable: false }),
|
|
4742
|
+
__metadata("design:type", Boolean)
|
|
4743
|
+
], RunAIAgentStepViewResult.prototype, "Success", void 0);
|
|
4744
|
+
RunAIAgentStepViewResult = __decorate([
|
|
4745
|
+
ObjectType()
|
|
4746
|
+
], RunAIAgentStepViewResult);
|
|
4747
|
+
export { RunAIAgentStepViewResult };
|
|
4748
|
+
let AIAgentStepResolver = class AIAgentStepResolver extends ResolverBase {
|
|
4749
|
+
async RunAIAgentStepViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
4750
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4751
|
+
return super.RunViewByIDGeneric(input, connPool, userPayload, pubSub);
|
|
4752
|
+
}
|
|
4753
|
+
async RunAIAgentStepViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
4754
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4755
|
+
return super.RunViewByNameGeneric(input, connPool, userPayload, pubSub);
|
|
4756
|
+
}
|
|
4757
|
+
async RunAIAgentStepDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
4758
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4759
|
+
input.EntityName = 'MJ: AI Agent Steps';
|
|
4760
|
+
return super.RunDynamicViewGeneric(input, connPool, userPayload, pubSub);
|
|
4761
|
+
}
|
|
4762
|
+
async AIAgentStep(ID, { dataSources, userPayload }, pubSub) {
|
|
4763
|
+
this.CheckUserReadPermissions('MJ: AI Agent Steps', userPayload);
|
|
4764
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4765
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentSteps] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
4766
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4767
|
+
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] : {});
|
|
4768
|
+
return result;
|
|
4769
|
+
}
|
|
4770
|
+
async MJ_AIAgentStepPaths_DestinationStepIDArray(aiagentstep_, { dataSources, userPayload }, pubSub) {
|
|
4771
|
+
this.CheckUserReadPermissions('MJ: AI Agent Step Paths', userPayload);
|
|
4772
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4773
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentStepPaths] WHERE [DestinationStepID]='${aiagentstep_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Step Paths', userPayload, EntityPermissionType.Read, 'AND');
|
|
4774
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4775
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows);
|
|
4776
|
+
return result;
|
|
4777
|
+
}
|
|
4778
|
+
async MJ_AIAgentStepPaths_OriginStepIDArray(aiagentstep_, { dataSources, userPayload }, pubSub) {
|
|
4779
|
+
this.CheckUserReadPermissions('MJ: AI Agent Step Paths', userPayload);
|
|
4780
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4781
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentStepPaths] WHERE [OriginStepID]='${aiagentstep_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Step Paths', userPayload, EntityPermissionType.Read, 'AND');
|
|
4782
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4783
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows);
|
|
4784
|
+
return result;
|
|
4785
|
+
}
|
|
4786
|
+
async CreateAIAgentStep(input, { dataSources, userPayload }, pubSub) {
|
|
4787
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
4788
|
+
return this.CreateRecord('MJ: AI Agent Steps', input, connPool, userPayload, pubSub);
|
|
4789
|
+
}
|
|
4790
|
+
async UpdateAIAgentStep(input, { dataSources, userPayload }, pubSub) {
|
|
4791
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
4792
|
+
return this.UpdateRecord('MJ: AI Agent Steps', input, connPool, userPayload, pubSub);
|
|
4793
|
+
}
|
|
4794
|
+
async DeleteAIAgentStep(ID, options, { dataSources, userPayload }, pubSub) {
|
|
4795
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
4796
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
4797
|
+
return this.DeleteRecord('MJ: AI Agent Steps', key, options, connPool, userPayload, pubSub);
|
|
4798
|
+
}
|
|
4799
|
+
};
|
|
4800
|
+
__decorate([
|
|
4801
|
+
Query(() => RunAIAgentStepViewResult),
|
|
4802
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
4803
|
+
__param(1, Ctx()),
|
|
4804
|
+
__param(2, PubSub()),
|
|
4805
|
+
__metadata("design:type", Function),
|
|
4806
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
4807
|
+
__metadata("design:returntype", Promise)
|
|
4808
|
+
], AIAgentStepResolver.prototype, "RunAIAgentStepViewByID", null);
|
|
4809
|
+
__decorate([
|
|
4810
|
+
Query(() => RunAIAgentStepViewResult),
|
|
4811
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
4812
|
+
__param(1, Ctx()),
|
|
4813
|
+
__param(2, PubSub()),
|
|
4814
|
+
__metadata("design:type", Function),
|
|
4815
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
4816
|
+
__metadata("design:returntype", Promise)
|
|
4817
|
+
], AIAgentStepResolver.prototype, "RunAIAgentStepViewByName", null);
|
|
4818
|
+
__decorate([
|
|
4819
|
+
Query(() => RunAIAgentStepViewResult),
|
|
4820
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
4821
|
+
__param(1, Ctx()),
|
|
4822
|
+
__param(2, PubSub()),
|
|
4823
|
+
__metadata("design:type", Function),
|
|
4824
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
4825
|
+
__metadata("design:returntype", Promise)
|
|
4826
|
+
], AIAgentStepResolver.prototype, "RunAIAgentStepDynamicView", null);
|
|
4827
|
+
__decorate([
|
|
4828
|
+
Query(() => AIAgentStep_, { nullable: true }),
|
|
4829
|
+
__param(0, Arg('ID', () => String)),
|
|
4830
|
+
__param(1, Ctx()),
|
|
4831
|
+
__param(2, PubSub()),
|
|
4832
|
+
__metadata("design:type", Function),
|
|
4833
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
4834
|
+
__metadata("design:returntype", Promise)
|
|
4835
|
+
], AIAgentStepResolver.prototype, "AIAgentStep", null);
|
|
4836
|
+
__decorate([
|
|
4837
|
+
FieldResolver(() => [AIAgentStepPath_]),
|
|
4838
|
+
__param(0, Root()),
|
|
4839
|
+
__param(1, Ctx()),
|
|
4840
|
+
__param(2, PubSub()),
|
|
4841
|
+
__metadata("design:type", Function),
|
|
4842
|
+
__metadata("design:paramtypes", [AIAgentStep_, Object, PubSubEngine]),
|
|
4843
|
+
__metadata("design:returntype", Promise)
|
|
4844
|
+
], AIAgentStepResolver.prototype, "MJ_AIAgentStepPaths_DestinationStepIDArray", null);
|
|
4845
|
+
__decorate([
|
|
4846
|
+
FieldResolver(() => [AIAgentStepPath_]),
|
|
4847
|
+
__param(0, Root()),
|
|
4848
|
+
__param(1, Ctx()),
|
|
4849
|
+
__param(2, PubSub()),
|
|
4850
|
+
__metadata("design:type", Function),
|
|
4851
|
+
__metadata("design:paramtypes", [AIAgentStep_, Object, PubSubEngine]),
|
|
4852
|
+
__metadata("design:returntype", Promise)
|
|
4853
|
+
], AIAgentStepResolver.prototype, "MJ_AIAgentStepPaths_OriginStepIDArray", null);
|
|
4854
|
+
__decorate([
|
|
4855
|
+
Mutation(() => AIAgentStep_),
|
|
4856
|
+
__param(0, Arg('input', () => CreateAIAgentStepInput)),
|
|
4857
|
+
__param(1, Ctx()),
|
|
4858
|
+
__param(2, PubSub()),
|
|
4859
|
+
__metadata("design:type", Function),
|
|
4860
|
+
__metadata("design:paramtypes", [CreateAIAgentStepInput, Object, PubSubEngine]),
|
|
4861
|
+
__metadata("design:returntype", Promise)
|
|
4862
|
+
], AIAgentStepResolver.prototype, "CreateAIAgentStep", null);
|
|
4863
|
+
__decorate([
|
|
4864
|
+
Mutation(() => AIAgentStep_),
|
|
4865
|
+
__param(0, Arg('input', () => UpdateAIAgentStepInput)),
|
|
4866
|
+
__param(1, Ctx()),
|
|
4867
|
+
__param(2, PubSub()),
|
|
4868
|
+
__metadata("design:type", Function),
|
|
4869
|
+
__metadata("design:paramtypes", [UpdateAIAgentStepInput, Object, PubSubEngine]),
|
|
4870
|
+
__metadata("design:returntype", Promise)
|
|
4871
|
+
], AIAgentStepResolver.prototype, "UpdateAIAgentStep", null);
|
|
4872
|
+
__decorate([
|
|
4873
|
+
Mutation(() => AIAgentStep_),
|
|
4874
|
+
__param(0, Arg('ID', () => String)),
|
|
4875
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
4876
|
+
__param(2, Ctx()),
|
|
4877
|
+
__param(3, PubSub()),
|
|
4878
|
+
__metadata("design:type", Function),
|
|
4879
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
4880
|
+
__metadata("design:returntype", Promise)
|
|
4881
|
+
], AIAgentStepResolver.prototype, "DeleteAIAgentStep", null);
|
|
4882
|
+
AIAgentStepResolver = __decorate([
|
|
4883
|
+
Resolver(AIAgentStep_)
|
|
4884
|
+
], AIAgentStepResolver);
|
|
4885
|
+
export { AIAgentStepResolver };
|
|
4300
4886
|
let AIModelCost_ = class AIModelCost_ {
|
|
4301
4887
|
ID;
|
|
4302
4888
|
ModelID;
|
|
@@ -5108,6 +5694,9 @@ let AIAgentType_ = class AIAgentType_ {
|
|
|
5108
5694
|
_mj__UpdatedAt;
|
|
5109
5695
|
AgentPromptPlaceholder;
|
|
5110
5696
|
DriverClass;
|
|
5697
|
+
UIFormSectionKey;
|
|
5698
|
+
UIFormKey;
|
|
5699
|
+
UIFormSectionExpandedByDefault;
|
|
5111
5700
|
SystemPrompt;
|
|
5112
5701
|
AIAgents_TypeIDArray;
|
|
5113
5702
|
};
|
|
@@ -5154,6 +5743,20 @@ __decorate([
|
|
|
5154
5743
|
MaxLength(510),
|
|
5155
5744
|
__metadata("design:type", String)
|
|
5156
5745
|
], AIAgentType_.prototype, "DriverClass", void 0);
|
|
5746
|
+
__decorate([
|
|
5747
|
+
Field({ nullable: true, description: `Optional Angular component key name for a subclass of BaseFormSectionComponent that provides a custom form section for this agent type. When specified, this component will be dynamically loaded and displayed as the first expandable section in the AI Agent form. This allows agent types to have specialized UI elements. The class must be registered with the MemberJunction class factory via @RegisterClass` }),
|
|
5748
|
+
MaxLength(1000),
|
|
5749
|
+
__metadata("design:type", String)
|
|
5750
|
+
], AIAgentType_.prototype, "UIFormSectionKey", void 0);
|
|
5751
|
+
__decorate([
|
|
5752
|
+
Field({ nullable: true, description: `Optional Angular component key name for a subclass of BaseFormComponent that will completely overrides the default AI Agent form for this agent type. When specified, this component will be used instead of the standard AI Agent form, allowing for completely custom form implementations. The class must be registered with the MemberJunction class factory via @RegisterClass. If both UIFormClass and UIFormSectionClass are specified, UIFormClass takes precedence.` }),
|
|
5753
|
+
MaxLength(1000),
|
|
5754
|
+
__metadata("design:type", String)
|
|
5755
|
+
], AIAgentType_.prototype, "UIFormKey", void 0);
|
|
5756
|
+
__decorate([
|
|
5757
|
+
Field(() => Boolean, { description: `Determines whether the custom form section (specified by UIFormSectionClass) should be expanded by default when the AI Agent form loads. True means the section starts expanded, False means it starts collapsed. Only applies when UIFormSectionClass is specified. Defaults to 1 (expanded).` }),
|
|
5758
|
+
__metadata("design:type", Boolean)
|
|
5759
|
+
], AIAgentType_.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
5157
5760
|
__decorate([
|
|
5158
5761
|
Field({ nullable: true }),
|
|
5159
5762
|
MaxLength(510),
|
|
@@ -5175,6 +5778,9 @@ let CreateAIAgentTypeInput = class CreateAIAgentTypeInput {
|
|
|
5175
5778
|
IsActive;
|
|
5176
5779
|
AgentPromptPlaceholder;
|
|
5177
5780
|
DriverClass;
|
|
5781
|
+
UIFormSectionKey;
|
|
5782
|
+
UIFormKey;
|
|
5783
|
+
UIFormSectionExpandedByDefault;
|
|
5178
5784
|
};
|
|
5179
5785
|
__decorate([
|
|
5180
5786
|
Field({ nullable: true }),
|
|
@@ -5204,6 +5810,18 @@ __decorate([
|
|
|
5204
5810
|
Field({ nullable: true }),
|
|
5205
5811
|
__metadata("design:type", String)
|
|
5206
5812
|
], CreateAIAgentTypeInput.prototype, "DriverClass", void 0);
|
|
5813
|
+
__decorate([
|
|
5814
|
+
Field({ nullable: true }),
|
|
5815
|
+
__metadata("design:type", String)
|
|
5816
|
+
], CreateAIAgentTypeInput.prototype, "UIFormSectionKey", void 0);
|
|
5817
|
+
__decorate([
|
|
5818
|
+
Field({ nullable: true }),
|
|
5819
|
+
__metadata("design:type", String)
|
|
5820
|
+
], CreateAIAgentTypeInput.prototype, "UIFormKey", void 0);
|
|
5821
|
+
__decorate([
|
|
5822
|
+
Field(() => Boolean, { nullable: true }),
|
|
5823
|
+
__metadata("design:type", Boolean)
|
|
5824
|
+
], CreateAIAgentTypeInput.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
5207
5825
|
CreateAIAgentTypeInput = __decorate([
|
|
5208
5826
|
InputType()
|
|
5209
5827
|
], CreateAIAgentTypeInput);
|
|
@@ -5216,6 +5834,9 @@ let UpdateAIAgentTypeInput = class UpdateAIAgentTypeInput {
|
|
|
5216
5834
|
IsActive;
|
|
5217
5835
|
AgentPromptPlaceholder;
|
|
5218
5836
|
DriverClass;
|
|
5837
|
+
UIFormSectionKey;
|
|
5838
|
+
UIFormKey;
|
|
5839
|
+
UIFormSectionExpandedByDefault;
|
|
5219
5840
|
OldValues___;
|
|
5220
5841
|
};
|
|
5221
5842
|
__decorate([
|
|
@@ -5246,6 +5867,18 @@ __decorate([
|
|
|
5246
5867
|
Field({ nullable: true }),
|
|
5247
5868
|
__metadata("design:type", String)
|
|
5248
5869
|
], UpdateAIAgentTypeInput.prototype, "DriverClass", void 0);
|
|
5870
|
+
__decorate([
|
|
5871
|
+
Field({ nullable: true }),
|
|
5872
|
+
__metadata("design:type", String)
|
|
5873
|
+
], UpdateAIAgentTypeInput.prototype, "UIFormSectionKey", void 0);
|
|
5874
|
+
__decorate([
|
|
5875
|
+
Field({ nullable: true }),
|
|
5876
|
+
__metadata("design:type", String)
|
|
5877
|
+
], UpdateAIAgentTypeInput.prototype, "UIFormKey", void 0);
|
|
5878
|
+
__decorate([
|
|
5879
|
+
Field(() => Boolean, { nullable: true }),
|
|
5880
|
+
__metadata("design:type", Boolean)
|
|
5881
|
+
], UpdateAIAgentTypeInput.prototype, "UIFormSectionExpandedByDefault", void 0);
|
|
5249
5882
|
__decorate([
|
|
5250
5883
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
5251
5884
|
__metadata("design:type", Array)
|
|
@@ -6306,6 +6939,7 @@ let AIPrompt_ = class AIPrompt_ {
|
|
|
6306
6939
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
|
|
6307
6940
|
AIPrompts_ResultSelectorPromptIDArray;
|
|
6308
6941
|
MJ_AIPromptModels_PromptIDArray;
|
|
6942
|
+
MJ_AIAgentSteps_PromptIDArray;
|
|
6309
6943
|
MJ_AIAgentPrompts_PromptIDArray;
|
|
6310
6944
|
MJ_AIPromptRuns_PromptIDArray;
|
|
6311
6945
|
AIAgents_ContextCompressionPromptIDArray;
|
|
@@ -6584,6 +7218,10 @@ __decorate([
|
|
|
6584
7218
|
Field(() => [AIPromptModel_]),
|
|
6585
7219
|
__metadata("design:type", Array)
|
|
6586
7220
|
], AIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
|
|
7221
|
+
__decorate([
|
|
7222
|
+
Field(() => [AIAgentStep_]),
|
|
7223
|
+
__metadata("design:type", Array)
|
|
7224
|
+
], AIPrompt_.prototype, "MJ_AIAgentSteps_PromptIDArray", void 0);
|
|
6587
7225
|
__decorate([
|
|
6588
7226
|
Field(() => [AIAgentPrompt_]),
|
|
6589
7227
|
__metadata("design:type", Array)
|
|
@@ -7208,6 +7846,14 @@ let AIPromptResolver = class AIPromptResolver extends ResolverBase {
|
|
|
7208
7846
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows);
|
|
7209
7847
|
return result;
|
|
7210
7848
|
}
|
|
7849
|
+
async MJ_AIAgentSteps_PromptIDArray(aiprompt_, { dataSources, userPayload }, pubSub) {
|
|
7850
|
+
this.CheckUserReadPermissions('MJ: AI Agent Steps', userPayload);
|
|
7851
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
7852
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentSteps] WHERE [PromptID]='${aiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
7853
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
7854
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
|
|
7855
|
+
return result;
|
|
7856
|
+
}
|
|
7211
7857
|
async MJ_AIAgentPrompts_PromptIDArray(aiprompt_, { dataSources, userPayload }, pubSub) {
|
|
7212
7858
|
this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
|
|
7213
7859
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -7336,6 +7982,15 @@ __decorate([
|
|
|
7336
7982
|
__metadata("design:paramtypes", [AIPrompt_, Object, PubSubEngine]),
|
|
7337
7983
|
__metadata("design:returntype", Promise)
|
|
7338
7984
|
], AIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
|
|
7985
|
+
__decorate([
|
|
7986
|
+
FieldResolver(() => [AIAgentStep_]),
|
|
7987
|
+
__param(0, Root()),
|
|
7988
|
+
__param(1, Ctx()),
|
|
7989
|
+
__param(2, PubSub()),
|
|
7990
|
+
__metadata("design:type", Function),
|
|
7991
|
+
__metadata("design:paramtypes", [AIPrompt_, Object, PubSubEngine]),
|
|
7992
|
+
__metadata("design:returntype", Promise)
|
|
7993
|
+
], AIPromptResolver.prototype, "MJ_AIAgentSteps_PromptIDArray", null);
|
|
7339
7994
|
__decorate([
|
|
7340
7995
|
FieldResolver(() => [AIAgentPrompt_]),
|
|
7341
7996
|
__param(0, Root()),
|
|
@@ -44993,6 +45648,7 @@ let Action_ = class Action_ {
|
|
|
44993
45648
|
AIAgentActions_ActionIDArray;
|
|
44994
45649
|
ActionContexts_ActionIDArray;
|
|
44995
45650
|
EntityActions_ActionIDArray;
|
|
45651
|
+
MJ_AIAgentSteps_ActionIDArray;
|
|
44996
45652
|
ActionExecutionLogs_ActionIDArray;
|
|
44997
45653
|
ActionAuthorizations_ActionIDArray;
|
|
44998
45654
|
Actions_ParentIDArray;
|
|
@@ -45141,6 +45797,10 @@ __decorate([
|
|
|
45141
45797
|
Field(() => [EntityAction_]),
|
|
45142
45798
|
__metadata("design:type", Array)
|
|
45143
45799
|
], Action_.prototype, "EntityActions_ActionIDArray", void 0);
|
|
45800
|
+
__decorate([
|
|
45801
|
+
Field(() => [AIAgentStep_]),
|
|
45802
|
+
__metadata("design:type", Array)
|
|
45803
|
+
], Action_.prototype, "MJ_AIAgentSteps_ActionIDArray", void 0);
|
|
45144
45804
|
__decorate([
|
|
45145
45805
|
Field(() => [ActionExecutionLog_]),
|
|
45146
45806
|
__metadata("design:type", Array)
|
|
@@ -45493,6 +46153,14 @@ let ActionResolver = class ActionResolver extends ResolverBase {
|
|
|
45493
46153
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Actions', rows);
|
|
45494
46154
|
return result;
|
|
45495
46155
|
}
|
|
46156
|
+
async MJ_AIAgentSteps_ActionIDArray(action_, { dataSources, userPayload }, pubSub) {
|
|
46157
|
+
this.CheckUserReadPermissions('MJ: AI Agent Steps', userPayload);
|
|
46158
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
46159
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentSteps] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
46160
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
46161
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
|
|
46162
|
+
return result;
|
|
46163
|
+
}
|
|
45496
46164
|
async ActionExecutionLogs_ActionIDArray(action_, { dataSources, userPayload }, pubSub) {
|
|
45497
46165
|
this.CheckUserReadPermissions('Action Execution Logs', userPayload);
|
|
45498
46166
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -45630,6 +46298,15 @@ __decorate([
|
|
|
45630
46298
|
__metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
|
|
45631
46299
|
__metadata("design:returntype", Promise)
|
|
45632
46300
|
], ActionResolver.prototype, "EntityActions_ActionIDArray", null);
|
|
46301
|
+
__decorate([
|
|
46302
|
+
FieldResolver(() => [AIAgentStep_]),
|
|
46303
|
+
__param(0, Root()),
|
|
46304
|
+
__param(1, Ctx()),
|
|
46305
|
+
__param(2, PubSub()),
|
|
46306
|
+
__metadata("design:type", Function),
|
|
46307
|
+
__metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
|
|
46308
|
+
__metadata("design:returntype", Promise)
|
|
46309
|
+
], ActionResolver.prototype, "MJ_AIAgentSteps_ActionIDArray", null);
|
|
45633
46310
|
__decorate([
|
|
45634
46311
|
FieldResolver(() => [ActionExecutionLog_]),
|
|
45635
46312
|
__param(0, Root()),
|
|
@@ -65041,6 +65718,307 @@ AIModelPriceUnitTypeResolver = __decorate([
|
|
|
65041
65718
|
Resolver(AIModelPriceUnitType_)
|
|
65042
65719
|
], AIModelPriceUnitTypeResolver);
|
|
65043
65720
|
export { AIModelPriceUnitTypeResolver };
|
|
65721
|
+
let AIAgentStepPath_ = class AIAgentStepPath_ {
|
|
65722
|
+
ID;
|
|
65723
|
+
OriginStepID;
|
|
65724
|
+
DestinationStepID;
|
|
65725
|
+
Condition;
|
|
65726
|
+
Priority;
|
|
65727
|
+
Description;
|
|
65728
|
+
PathPoints;
|
|
65729
|
+
_mj__CreatedAt;
|
|
65730
|
+
_mj__UpdatedAt;
|
|
65731
|
+
OriginStep;
|
|
65732
|
+
DestinationStep;
|
|
65733
|
+
};
|
|
65734
|
+
__decorate([
|
|
65735
|
+
Field(),
|
|
65736
|
+
MaxLength(16),
|
|
65737
|
+
__metadata("design:type", String)
|
|
65738
|
+
], AIAgentStepPath_.prototype, "ID", void 0);
|
|
65739
|
+
__decorate([
|
|
65740
|
+
Field(),
|
|
65741
|
+
MaxLength(16),
|
|
65742
|
+
__metadata("design:type", String)
|
|
65743
|
+
], AIAgentStepPath_.prototype, "OriginStepID", void 0);
|
|
65744
|
+
__decorate([
|
|
65745
|
+
Field(),
|
|
65746
|
+
MaxLength(16),
|
|
65747
|
+
__metadata("design:type", String)
|
|
65748
|
+
], AIAgentStepPath_.prototype, "DestinationStepID", void 0);
|
|
65749
|
+
__decorate([
|
|
65750
|
+
Field({ nullable: true, description: `Boolean expression to evaluate. If null, path is always taken. Evaluated against payload and step results.` }),
|
|
65751
|
+
__metadata("design:type", String)
|
|
65752
|
+
], AIAgentStepPath_.prototype, "Condition", void 0);
|
|
65753
|
+
__decorate([
|
|
65754
|
+
Field(() => Int, { description: `Path evaluation priority. Higher values are evaluated first. Use 0 or negative values for default/fallback paths that execute when no other conditions match.` }),
|
|
65755
|
+
__metadata("design:type", Number)
|
|
65756
|
+
], AIAgentStepPath_.prototype, "Priority", void 0);
|
|
65757
|
+
__decorate([
|
|
65758
|
+
Field({ nullable: true }),
|
|
65759
|
+
MaxLength(510),
|
|
65760
|
+
__metadata("design:type", String)
|
|
65761
|
+
], AIAgentStepPath_.prototype, "Description", void 0);
|
|
65762
|
+
__decorate([
|
|
65763
|
+
Field({ nullable: true }),
|
|
65764
|
+
__metadata("design:type", String)
|
|
65765
|
+
], AIAgentStepPath_.prototype, "PathPoints", void 0);
|
|
65766
|
+
__decorate([
|
|
65767
|
+
Field(),
|
|
65768
|
+
MaxLength(10),
|
|
65769
|
+
__metadata("design:type", Date)
|
|
65770
|
+
], AIAgentStepPath_.prototype, "_mj__CreatedAt", void 0);
|
|
65771
|
+
__decorate([
|
|
65772
|
+
Field(),
|
|
65773
|
+
MaxLength(10),
|
|
65774
|
+
__metadata("design:type", Date)
|
|
65775
|
+
], AIAgentStepPath_.prototype, "_mj__UpdatedAt", void 0);
|
|
65776
|
+
__decorate([
|
|
65777
|
+
Field(),
|
|
65778
|
+
MaxLength(510),
|
|
65779
|
+
__metadata("design:type", String)
|
|
65780
|
+
], AIAgentStepPath_.prototype, "OriginStep", void 0);
|
|
65781
|
+
__decorate([
|
|
65782
|
+
Field(),
|
|
65783
|
+
MaxLength(510),
|
|
65784
|
+
__metadata("design:type", String)
|
|
65785
|
+
], AIAgentStepPath_.prototype, "DestinationStep", void 0);
|
|
65786
|
+
AIAgentStepPath_ = __decorate([
|
|
65787
|
+
ObjectType({ description: `Defines paths (edges) between steps in a flow-based AI agent execution graph` })
|
|
65788
|
+
], AIAgentStepPath_);
|
|
65789
|
+
export { AIAgentStepPath_ };
|
|
65790
|
+
let CreateAIAgentStepPathInput = class CreateAIAgentStepPathInput {
|
|
65791
|
+
ID;
|
|
65792
|
+
OriginStepID;
|
|
65793
|
+
DestinationStepID;
|
|
65794
|
+
Condition;
|
|
65795
|
+
Priority;
|
|
65796
|
+
Description;
|
|
65797
|
+
PathPoints;
|
|
65798
|
+
};
|
|
65799
|
+
__decorate([
|
|
65800
|
+
Field({ nullable: true }),
|
|
65801
|
+
__metadata("design:type", String)
|
|
65802
|
+
], CreateAIAgentStepPathInput.prototype, "ID", void 0);
|
|
65803
|
+
__decorate([
|
|
65804
|
+
Field({ nullable: true }),
|
|
65805
|
+
__metadata("design:type", String)
|
|
65806
|
+
], CreateAIAgentStepPathInput.prototype, "OriginStepID", void 0);
|
|
65807
|
+
__decorate([
|
|
65808
|
+
Field({ nullable: true }),
|
|
65809
|
+
__metadata("design:type", String)
|
|
65810
|
+
], CreateAIAgentStepPathInput.prototype, "DestinationStepID", void 0);
|
|
65811
|
+
__decorate([
|
|
65812
|
+
Field({ nullable: true }),
|
|
65813
|
+
__metadata("design:type", String)
|
|
65814
|
+
], CreateAIAgentStepPathInput.prototype, "Condition", void 0);
|
|
65815
|
+
__decorate([
|
|
65816
|
+
Field(() => Int, { nullable: true }),
|
|
65817
|
+
__metadata("design:type", Number)
|
|
65818
|
+
], CreateAIAgentStepPathInput.prototype, "Priority", void 0);
|
|
65819
|
+
__decorate([
|
|
65820
|
+
Field({ nullable: true }),
|
|
65821
|
+
__metadata("design:type", String)
|
|
65822
|
+
], CreateAIAgentStepPathInput.prototype, "Description", void 0);
|
|
65823
|
+
__decorate([
|
|
65824
|
+
Field({ nullable: true }),
|
|
65825
|
+
__metadata("design:type", String)
|
|
65826
|
+
], CreateAIAgentStepPathInput.prototype, "PathPoints", void 0);
|
|
65827
|
+
CreateAIAgentStepPathInput = __decorate([
|
|
65828
|
+
InputType()
|
|
65829
|
+
], CreateAIAgentStepPathInput);
|
|
65830
|
+
export { CreateAIAgentStepPathInput };
|
|
65831
|
+
let UpdateAIAgentStepPathInput = class UpdateAIAgentStepPathInput {
|
|
65832
|
+
ID;
|
|
65833
|
+
OriginStepID;
|
|
65834
|
+
DestinationStepID;
|
|
65835
|
+
Condition;
|
|
65836
|
+
Priority;
|
|
65837
|
+
Description;
|
|
65838
|
+
PathPoints;
|
|
65839
|
+
OldValues___;
|
|
65840
|
+
};
|
|
65841
|
+
__decorate([
|
|
65842
|
+
Field(),
|
|
65843
|
+
__metadata("design:type", String)
|
|
65844
|
+
], UpdateAIAgentStepPathInput.prototype, "ID", void 0);
|
|
65845
|
+
__decorate([
|
|
65846
|
+
Field({ nullable: true }),
|
|
65847
|
+
__metadata("design:type", String)
|
|
65848
|
+
], UpdateAIAgentStepPathInput.prototype, "OriginStepID", void 0);
|
|
65849
|
+
__decorate([
|
|
65850
|
+
Field({ nullable: true }),
|
|
65851
|
+
__metadata("design:type", String)
|
|
65852
|
+
], UpdateAIAgentStepPathInput.prototype, "DestinationStepID", void 0);
|
|
65853
|
+
__decorate([
|
|
65854
|
+
Field({ nullable: true }),
|
|
65855
|
+
__metadata("design:type", String)
|
|
65856
|
+
], UpdateAIAgentStepPathInput.prototype, "Condition", void 0);
|
|
65857
|
+
__decorate([
|
|
65858
|
+
Field(() => Int, { nullable: true }),
|
|
65859
|
+
__metadata("design:type", Number)
|
|
65860
|
+
], UpdateAIAgentStepPathInput.prototype, "Priority", void 0);
|
|
65861
|
+
__decorate([
|
|
65862
|
+
Field({ nullable: true }),
|
|
65863
|
+
__metadata("design:type", String)
|
|
65864
|
+
], UpdateAIAgentStepPathInput.prototype, "Description", void 0);
|
|
65865
|
+
__decorate([
|
|
65866
|
+
Field({ nullable: true }),
|
|
65867
|
+
__metadata("design:type", String)
|
|
65868
|
+
], UpdateAIAgentStepPathInput.prototype, "PathPoints", void 0);
|
|
65869
|
+
__decorate([
|
|
65870
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
65871
|
+
__metadata("design:type", Array)
|
|
65872
|
+
], UpdateAIAgentStepPathInput.prototype, "OldValues___", void 0);
|
|
65873
|
+
UpdateAIAgentStepPathInput = __decorate([
|
|
65874
|
+
InputType()
|
|
65875
|
+
], UpdateAIAgentStepPathInput);
|
|
65876
|
+
export { UpdateAIAgentStepPathInput };
|
|
65877
|
+
let RunAIAgentStepPathViewResult = class RunAIAgentStepPathViewResult {
|
|
65878
|
+
Results;
|
|
65879
|
+
UserViewRunID;
|
|
65880
|
+
RowCount;
|
|
65881
|
+
TotalRowCount;
|
|
65882
|
+
ExecutionTime;
|
|
65883
|
+
ErrorMessage;
|
|
65884
|
+
Success;
|
|
65885
|
+
};
|
|
65886
|
+
__decorate([
|
|
65887
|
+
Field(() => [AIAgentStepPath_]),
|
|
65888
|
+
__metadata("design:type", Array)
|
|
65889
|
+
], RunAIAgentStepPathViewResult.prototype, "Results", void 0);
|
|
65890
|
+
__decorate([
|
|
65891
|
+
Field(() => String, { nullable: true }),
|
|
65892
|
+
__metadata("design:type", String)
|
|
65893
|
+
], RunAIAgentStepPathViewResult.prototype, "UserViewRunID", void 0);
|
|
65894
|
+
__decorate([
|
|
65895
|
+
Field(() => Int, { nullable: true }),
|
|
65896
|
+
__metadata("design:type", Number)
|
|
65897
|
+
], RunAIAgentStepPathViewResult.prototype, "RowCount", void 0);
|
|
65898
|
+
__decorate([
|
|
65899
|
+
Field(() => Int, { nullable: true }),
|
|
65900
|
+
__metadata("design:type", Number)
|
|
65901
|
+
], RunAIAgentStepPathViewResult.prototype, "TotalRowCount", void 0);
|
|
65902
|
+
__decorate([
|
|
65903
|
+
Field(() => Int, { nullable: true }),
|
|
65904
|
+
__metadata("design:type", Number)
|
|
65905
|
+
], RunAIAgentStepPathViewResult.prototype, "ExecutionTime", void 0);
|
|
65906
|
+
__decorate([
|
|
65907
|
+
Field({ nullable: true }),
|
|
65908
|
+
__metadata("design:type", String)
|
|
65909
|
+
], RunAIAgentStepPathViewResult.prototype, "ErrorMessage", void 0);
|
|
65910
|
+
__decorate([
|
|
65911
|
+
Field(() => Boolean, { nullable: false }),
|
|
65912
|
+
__metadata("design:type", Boolean)
|
|
65913
|
+
], RunAIAgentStepPathViewResult.prototype, "Success", void 0);
|
|
65914
|
+
RunAIAgentStepPathViewResult = __decorate([
|
|
65915
|
+
ObjectType()
|
|
65916
|
+
], RunAIAgentStepPathViewResult);
|
|
65917
|
+
export { RunAIAgentStepPathViewResult };
|
|
65918
|
+
let AIAgentStepPathResolver = class AIAgentStepPathResolver extends ResolverBase {
|
|
65919
|
+
async RunAIAgentStepPathViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
65920
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
65921
|
+
return super.RunViewByIDGeneric(input, connPool, userPayload, pubSub);
|
|
65922
|
+
}
|
|
65923
|
+
async RunAIAgentStepPathViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
65924
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
65925
|
+
return super.RunViewByNameGeneric(input, connPool, userPayload, pubSub);
|
|
65926
|
+
}
|
|
65927
|
+
async RunAIAgentStepPathDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
65928
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
65929
|
+
input.EntityName = 'MJ: AI Agent Step Paths';
|
|
65930
|
+
return super.RunDynamicViewGeneric(input, connPool, userPayload, pubSub);
|
|
65931
|
+
}
|
|
65932
|
+
async AIAgentStepPath(ID, { dataSources, userPayload }, pubSub) {
|
|
65933
|
+
this.CheckUserReadPermissions('MJ: AI Agent Step Paths', userPayload);
|
|
65934
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
65935
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentStepPaths] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: AI Agent Step Paths', userPayload, EntityPermissionType.Read, 'AND');
|
|
65936
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
65937
|
+
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] : {});
|
|
65938
|
+
return result;
|
|
65939
|
+
}
|
|
65940
|
+
async CreateAIAgentStepPath(input, { dataSources, userPayload }, pubSub) {
|
|
65941
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
65942
|
+
return this.CreateRecord('MJ: AI Agent Step Paths', input, connPool, userPayload, pubSub);
|
|
65943
|
+
}
|
|
65944
|
+
async UpdateAIAgentStepPath(input, { dataSources, userPayload }, pubSub) {
|
|
65945
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
65946
|
+
return this.UpdateRecord('MJ: AI Agent Step Paths', input, connPool, userPayload, pubSub);
|
|
65947
|
+
}
|
|
65948
|
+
async DeleteAIAgentStepPath(ID, options, { dataSources, userPayload }, pubSub) {
|
|
65949
|
+
const connPool = GetReadWriteDataSource(dataSources);
|
|
65950
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
65951
|
+
return this.DeleteRecord('MJ: AI Agent Step Paths', key, options, connPool, userPayload, pubSub);
|
|
65952
|
+
}
|
|
65953
|
+
};
|
|
65954
|
+
__decorate([
|
|
65955
|
+
Query(() => RunAIAgentStepPathViewResult),
|
|
65956
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
65957
|
+
__param(1, Ctx()),
|
|
65958
|
+
__param(2, PubSub()),
|
|
65959
|
+
__metadata("design:type", Function),
|
|
65960
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
65961
|
+
__metadata("design:returntype", Promise)
|
|
65962
|
+
], AIAgentStepPathResolver.prototype, "RunAIAgentStepPathViewByID", null);
|
|
65963
|
+
__decorate([
|
|
65964
|
+
Query(() => RunAIAgentStepPathViewResult),
|
|
65965
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
65966
|
+
__param(1, Ctx()),
|
|
65967
|
+
__param(2, PubSub()),
|
|
65968
|
+
__metadata("design:type", Function),
|
|
65969
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
65970
|
+
__metadata("design:returntype", Promise)
|
|
65971
|
+
], AIAgentStepPathResolver.prototype, "RunAIAgentStepPathViewByName", null);
|
|
65972
|
+
__decorate([
|
|
65973
|
+
Query(() => RunAIAgentStepPathViewResult),
|
|
65974
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
65975
|
+
__param(1, Ctx()),
|
|
65976
|
+
__param(2, PubSub()),
|
|
65977
|
+
__metadata("design:type", Function),
|
|
65978
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
65979
|
+
__metadata("design:returntype", Promise)
|
|
65980
|
+
], AIAgentStepPathResolver.prototype, "RunAIAgentStepPathDynamicView", null);
|
|
65981
|
+
__decorate([
|
|
65982
|
+
Query(() => AIAgentStepPath_, { nullable: true }),
|
|
65983
|
+
__param(0, Arg('ID', () => String)),
|
|
65984
|
+
__param(1, Ctx()),
|
|
65985
|
+
__param(2, PubSub()),
|
|
65986
|
+
__metadata("design:type", Function),
|
|
65987
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
65988
|
+
__metadata("design:returntype", Promise)
|
|
65989
|
+
], AIAgentStepPathResolver.prototype, "AIAgentStepPath", null);
|
|
65990
|
+
__decorate([
|
|
65991
|
+
Mutation(() => AIAgentStepPath_),
|
|
65992
|
+
__param(0, Arg('input', () => CreateAIAgentStepPathInput)),
|
|
65993
|
+
__param(1, Ctx()),
|
|
65994
|
+
__param(2, PubSub()),
|
|
65995
|
+
__metadata("design:type", Function),
|
|
65996
|
+
__metadata("design:paramtypes", [CreateAIAgentStepPathInput, Object, PubSubEngine]),
|
|
65997
|
+
__metadata("design:returntype", Promise)
|
|
65998
|
+
], AIAgentStepPathResolver.prototype, "CreateAIAgentStepPath", null);
|
|
65999
|
+
__decorate([
|
|
66000
|
+
Mutation(() => AIAgentStepPath_),
|
|
66001
|
+
__param(0, Arg('input', () => UpdateAIAgentStepPathInput)),
|
|
66002
|
+
__param(1, Ctx()),
|
|
66003
|
+
__param(2, PubSub()),
|
|
66004
|
+
__metadata("design:type", Function),
|
|
66005
|
+
__metadata("design:paramtypes", [UpdateAIAgentStepPathInput, Object, PubSubEngine]),
|
|
66006
|
+
__metadata("design:returntype", Promise)
|
|
66007
|
+
], AIAgentStepPathResolver.prototype, "UpdateAIAgentStepPath", null);
|
|
66008
|
+
__decorate([
|
|
66009
|
+
Mutation(() => AIAgentStepPath_),
|
|
66010
|
+
__param(0, Arg('ID', () => String)),
|
|
66011
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
66012
|
+
__param(2, Ctx()),
|
|
66013
|
+
__param(3, PubSub()),
|
|
66014
|
+
__metadata("design:type", Function),
|
|
66015
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
66016
|
+
__metadata("design:returntype", Promise)
|
|
66017
|
+
], AIAgentStepPathResolver.prototype, "DeleteAIAgentStepPath", null);
|
|
66018
|
+
AIAgentStepPathResolver = __decorate([
|
|
66019
|
+
Resolver(AIAgentStepPath_)
|
|
66020
|
+
], AIAgentStepPathResolver);
|
|
66021
|
+
export { AIAgentStepPathResolver };
|
|
65044
66022
|
let AIAgentLearningCycle_ = class AIAgentLearningCycle_ {
|
|
65045
66023
|
ID;
|
|
65046
66024
|
AgentID;
|