@memberjunction/server 2.115.0 → 2.116.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.map +1 -1
- package/dist/agents/skip-agent.js +2 -1
- package/dist/agents/skip-agent.js.map +1 -1
- package/dist/agents/skip-sdk.d.ts +0 -1
- package/dist/agents/skip-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +1 -52
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/generated/generated.d.ts +28 -10
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +178 -88
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +2 -2
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +8 -5
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/TaskResolver.js +1 -1
- package/dist/resolvers/TaskResolver.js.map +1 -1
- package/dist/services/TaskOrchestrator.d.ts +2 -1
- package/dist/services/TaskOrchestrator.d.ts.map +1 -1
- package/dist/services/TaskOrchestrator.js +7 -3
- package/dist/services/TaskOrchestrator.js.map +1 -1
- package/package.json +40 -40
- package/src/agents/skip-agent.ts +4 -2
- package/src/agents/skip-sdk.ts +1 -62
- package/src/generated/generated.ts +120 -66
- package/src/resolvers/RunAIAgentResolver.ts +8 -2
- package/src/resolvers/TaskResolver.ts +1 -1
- package/src/services/TaskOrchestrator.ts +6 -3
|
@@ -4070,9 +4070,9 @@ let MJAIConfiguration_ = class MJAIConfiguration_ {
|
|
|
4070
4070
|
DefaultPromptForContextSummarization;
|
|
4071
4071
|
MJ_AIConfigurationParams_ConfigurationIDArray;
|
|
4072
4072
|
MJ_AIAgentPrompts_ConfigurationIDArray;
|
|
4073
|
-
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
4074
4073
|
MJ_AIPromptModels_ConfigurationIDArray;
|
|
4075
4074
|
AIResultCache_ConfigurationIDArray;
|
|
4075
|
+
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
4076
4076
|
MJ_AIAgentRuns_ConfigurationIDArray;
|
|
4077
4077
|
};
|
|
4078
4078
|
__decorate([
|
|
@@ -4136,10 +4136,6 @@ __decorate([
|
|
|
4136
4136
|
Field(() => [MJAIAgentPrompt_]),
|
|
4137
4137
|
__metadata("design:type", Array)
|
|
4138
4138
|
], MJAIConfiguration_.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", void 0);
|
|
4139
|
-
__decorate([
|
|
4140
|
-
Field(() => [MJAIPromptRun_]),
|
|
4141
|
-
__metadata("design:type", Array)
|
|
4142
|
-
], MJAIConfiguration_.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", void 0);
|
|
4143
4139
|
__decorate([
|
|
4144
4140
|
Field(() => [MJAIPromptModel_]),
|
|
4145
4141
|
__metadata("design:type", Array)
|
|
@@ -4148,6 +4144,10 @@ __decorate([
|
|
|
4148
4144
|
Field(() => [MJAIResultCache_]),
|
|
4149
4145
|
__metadata("design:type", Array)
|
|
4150
4146
|
], MJAIConfiguration_.prototype, "AIResultCache_ConfigurationIDArray", void 0);
|
|
4147
|
+
__decorate([
|
|
4148
|
+
Field(() => [MJAIPromptRun_]),
|
|
4149
|
+
__metadata("design:type", Array)
|
|
4150
|
+
], MJAIConfiguration_.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", void 0);
|
|
4151
4151
|
__decorate([
|
|
4152
4152
|
Field(() => [MJAIAgentRun_]),
|
|
4153
4153
|
__metadata("design:type", Array)
|
|
@@ -4325,15 +4325,6 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
4325
4325
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
4326
4326
|
return result;
|
|
4327
4327
|
}
|
|
4328
|
-
async MJ_AIPromptRuns_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4329
|
-
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
4330
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4331
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4332
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [ConfigurationID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4333
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4334
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
4335
|
-
return result;
|
|
4336
|
-
}
|
|
4337
4328
|
async MJ_AIPromptModels_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4338
4329
|
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
4339
4330
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -4352,6 +4343,15 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
4352
4343
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', rows);
|
|
4353
4344
|
return result;
|
|
4354
4345
|
}
|
|
4346
|
+
async MJ_AIPromptRuns_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4347
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
4348
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4349
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4350
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [ConfigurationID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4351
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4352
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
4353
|
+
return result;
|
|
4354
|
+
}
|
|
4355
4355
|
async MJ_AIAgentRuns_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4356
4356
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
4357
4357
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -4430,32 +4430,32 @@ __decorate([
|
|
|
4430
4430
|
__metadata("design:returntype", Promise)
|
|
4431
4431
|
], MJAIConfigurationResolver.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", null);
|
|
4432
4432
|
__decorate([
|
|
4433
|
-
FieldResolver(() => [
|
|
4433
|
+
FieldResolver(() => [MJAIPromptModel_]),
|
|
4434
4434
|
__param(0, Root()),
|
|
4435
4435
|
__param(1, Ctx()),
|
|
4436
4436
|
__param(2, PubSub()),
|
|
4437
4437
|
__metadata("design:type", Function),
|
|
4438
4438
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4439
4439
|
__metadata("design:returntype", Promise)
|
|
4440
|
-
], MJAIConfigurationResolver.prototype, "
|
|
4440
|
+
], MJAIConfigurationResolver.prototype, "MJ_AIPromptModels_ConfigurationIDArray", null);
|
|
4441
4441
|
__decorate([
|
|
4442
|
-
FieldResolver(() => [
|
|
4442
|
+
FieldResolver(() => [MJAIResultCache_]),
|
|
4443
4443
|
__param(0, Root()),
|
|
4444
4444
|
__param(1, Ctx()),
|
|
4445
4445
|
__param(2, PubSub()),
|
|
4446
4446
|
__metadata("design:type", Function),
|
|
4447
4447
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4448
4448
|
__metadata("design:returntype", Promise)
|
|
4449
|
-
], MJAIConfigurationResolver.prototype, "
|
|
4449
|
+
], MJAIConfigurationResolver.prototype, "AIResultCache_ConfigurationIDArray", null);
|
|
4450
4450
|
__decorate([
|
|
4451
|
-
FieldResolver(() => [
|
|
4451
|
+
FieldResolver(() => [MJAIPromptRun_]),
|
|
4452
4452
|
__param(0, Root()),
|
|
4453
4453
|
__param(1, Ctx()),
|
|
4454
4454
|
__param(2, PubSub()),
|
|
4455
4455
|
__metadata("design:type", Function),
|
|
4456
4456
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4457
4457
|
__metadata("design:returntype", Promise)
|
|
4458
|
-
], MJAIConfigurationResolver.prototype, "
|
|
4458
|
+
], MJAIConfigurationResolver.prototype, "MJ_AIPromptRuns_ConfigurationIDArray", null);
|
|
4459
4459
|
__decorate([
|
|
4460
4460
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
4461
4461
|
__param(0, Root()),
|
|
@@ -8159,11 +8159,11 @@ let MJEnvironment_ = class MJEnvironment_ {
|
|
|
8159
8159
|
Settings;
|
|
8160
8160
|
_mj__CreatedAt;
|
|
8161
8161
|
_mj__UpdatedAt;
|
|
8162
|
-
MJ_Projects_EnvironmentIDArray;
|
|
8163
8162
|
MJ_Collections_EnvironmentIDArray;
|
|
8163
|
+
MJ_Projects_EnvironmentIDArray;
|
|
8164
8164
|
MJ_Artifacts_EnvironmentIDArray;
|
|
8165
|
-
MJ_Tasks_EnvironmentIDArray;
|
|
8166
8165
|
Dashboards_EnvironmentIDArray;
|
|
8166
|
+
MJ_Tasks_EnvironmentIDArray;
|
|
8167
8167
|
Reports_EnvironmentIDArray;
|
|
8168
8168
|
Conversations_EnvironmentIDArray;
|
|
8169
8169
|
};
|
|
@@ -8199,26 +8199,26 @@ __decorate([
|
|
|
8199
8199
|
MaxLength(10),
|
|
8200
8200
|
__metadata("design:type", Date)
|
|
8201
8201
|
], MJEnvironment_.prototype, "_mj__UpdatedAt", void 0);
|
|
8202
|
-
__decorate([
|
|
8203
|
-
Field(() => [MJProject_]),
|
|
8204
|
-
__metadata("design:type", Array)
|
|
8205
|
-
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
8206
8202
|
__decorate([
|
|
8207
8203
|
Field(() => [MJCollection_]),
|
|
8208
8204
|
__metadata("design:type", Array)
|
|
8209
8205
|
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
8210
8206
|
__decorate([
|
|
8211
|
-
Field(() => [
|
|
8207
|
+
Field(() => [MJProject_]),
|
|
8212
8208
|
__metadata("design:type", Array)
|
|
8213
|
-
], MJEnvironment_.prototype, "
|
|
8209
|
+
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
8214
8210
|
__decorate([
|
|
8215
|
-
Field(() => [
|
|
8211
|
+
Field(() => [MJArtifact_]),
|
|
8216
8212
|
__metadata("design:type", Array)
|
|
8217
|
-
], MJEnvironment_.prototype, "
|
|
8213
|
+
], MJEnvironment_.prototype, "MJ_Artifacts_EnvironmentIDArray", void 0);
|
|
8218
8214
|
__decorate([
|
|
8219
8215
|
Field(() => [MJDashboard_]),
|
|
8220
8216
|
__metadata("design:type", Array)
|
|
8221
8217
|
], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
|
|
8218
|
+
__decorate([
|
|
8219
|
+
Field(() => [MJTask_]),
|
|
8220
|
+
__metadata("design:type", Array)
|
|
8221
|
+
], MJEnvironment_.prototype, "MJ_Tasks_EnvironmentIDArray", void 0);
|
|
8222
8222
|
__decorate([
|
|
8223
8223
|
Field(() => [MJReport_]),
|
|
8224
8224
|
__metadata("design:type", Array)
|
|
@@ -8362,22 +8362,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
8362
8362
|
const result = this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : {});
|
|
8363
8363
|
return result;
|
|
8364
8364
|
}
|
|
8365
|
-
async
|
|
8366
|
-
this.CheckUserReadPermissions('MJ:
|
|
8365
|
+
async MJ_Collections_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
8366
|
+
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
8367
8367
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8368
8368
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8369
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
8369
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollections] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
8370
8370
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8371
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
8371
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collections', rows);
|
|
8372
8372
|
return result;
|
|
8373
8373
|
}
|
|
8374
|
-
async
|
|
8375
|
-
this.CheckUserReadPermissions('MJ:
|
|
8374
|
+
async MJ_Projects_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
8375
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
8376
8376
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8377
8377
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8378
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
8378
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
8379
8379
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8380
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
8380
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows);
|
|
8381
8381
|
return result;
|
|
8382
8382
|
}
|
|
8383
8383
|
async MJ_Artifacts_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -8389,22 +8389,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
8389
8389
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows);
|
|
8390
8390
|
return result;
|
|
8391
8391
|
}
|
|
8392
|
-
async
|
|
8393
|
-
this.CheckUserReadPermissions('
|
|
8392
|
+
async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
8393
|
+
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
8394
8394
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8395
8395
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8396
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
8396
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
8397
8397
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8398
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
8398
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', rows);
|
|
8399
8399
|
return result;
|
|
8400
8400
|
}
|
|
8401
|
-
async
|
|
8402
|
-
this.CheckUserReadPermissions('
|
|
8401
|
+
async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
8402
|
+
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
8403
8403
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8404
8404
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8405
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
8405
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
8406
8406
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8407
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
8407
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows);
|
|
8408
8408
|
return result;
|
|
8409
8409
|
}
|
|
8410
8410
|
async Reports_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -8476,23 +8476,23 @@ __decorate([
|
|
|
8476
8476
|
__metadata("design:returntype", Promise)
|
|
8477
8477
|
], MJEnvironmentResolver.prototype, "MJEnvironment", null);
|
|
8478
8478
|
__decorate([
|
|
8479
|
-
FieldResolver(() => [
|
|
8479
|
+
FieldResolver(() => [MJCollection_]),
|
|
8480
8480
|
__param(0, Root()),
|
|
8481
8481
|
__param(1, Ctx()),
|
|
8482
8482
|
__param(2, PubSub()),
|
|
8483
8483
|
__metadata("design:type", Function),
|
|
8484
8484
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8485
8485
|
__metadata("design:returntype", Promise)
|
|
8486
|
-
], MJEnvironmentResolver.prototype, "
|
|
8486
|
+
], MJEnvironmentResolver.prototype, "MJ_Collections_EnvironmentIDArray", null);
|
|
8487
8487
|
__decorate([
|
|
8488
|
-
FieldResolver(() => [
|
|
8488
|
+
FieldResolver(() => [MJProject_]),
|
|
8489
8489
|
__param(0, Root()),
|
|
8490
8490
|
__param(1, Ctx()),
|
|
8491
8491
|
__param(2, PubSub()),
|
|
8492
8492
|
__metadata("design:type", Function),
|
|
8493
8493
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8494
8494
|
__metadata("design:returntype", Promise)
|
|
8495
|
-
], MJEnvironmentResolver.prototype, "
|
|
8495
|
+
], MJEnvironmentResolver.prototype, "MJ_Projects_EnvironmentIDArray", null);
|
|
8496
8496
|
__decorate([
|
|
8497
8497
|
FieldResolver(() => [MJArtifact_]),
|
|
8498
8498
|
__param(0, Root()),
|
|
@@ -8503,23 +8503,23 @@ __decorate([
|
|
|
8503
8503
|
__metadata("design:returntype", Promise)
|
|
8504
8504
|
], MJEnvironmentResolver.prototype, "MJ_Artifacts_EnvironmentIDArray", null);
|
|
8505
8505
|
__decorate([
|
|
8506
|
-
FieldResolver(() => [
|
|
8506
|
+
FieldResolver(() => [MJDashboard_]),
|
|
8507
8507
|
__param(0, Root()),
|
|
8508
8508
|
__param(1, Ctx()),
|
|
8509
8509
|
__param(2, PubSub()),
|
|
8510
8510
|
__metadata("design:type", Function),
|
|
8511
8511
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8512
8512
|
__metadata("design:returntype", Promise)
|
|
8513
|
-
], MJEnvironmentResolver.prototype, "
|
|
8513
|
+
], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
|
|
8514
8514
|
__decorate([
|
|
8515
|
-
FieldResolver(() => [
|
|
8515
|
+
FieldResolver(() => [MJTask_]),
|
|
8516
8516
|
__param(0, Root()),
|
|
8517
8517
|
__param(1, Ctx()),
|
|
8518
8518
|
__param(2, PubSub()),
|
|
8519
8519
|
__metadata("design:type", Function),
|
|
8520
8520
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8521
8521
|
__metadata("design:returntype", Promise)
|
|
8522
|
-
], MJEnvironmentResolver.prototype, "
|
|
8522
|
+
], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
|
|
8523
8523
|
__decorate([
|
|
8524
8524
|
FieldResolver(() => [MJReport_]),
|
|
8525
8525
|
__param(0, Root()),
|
|
@@ -16895,6 +16895,9 @@ let MJEntityField_ = class MJEntityField_ {
|
|
|
16895
16895
|
AutoUpdateRelatedEntityInfo;
|
|
16896
16896
|
ValuesToPackWithSchema;
|
|
16897
16897
|
Status;
|
|
16898
|
+
AutoUpdateIsNameField;
|
|
16899
|
+
AutoUpdateDefaultInView;
|
|
16900
|
+
AutoUpdateCategory;
|
|
16898
16901
|
FieldCodeName;
|
|
16899
16902
|
Entity;
|
|
16900
16903
|
SchemaName;
|
|
@@ -17108,6 +17111,18 @@ __decorate([
|
|
|
17108
17111
|
MaxLength(50),
|
|
17109
17112
|
__metadata("design:type", String)
|
|
17110
17113
|
], MJEntityField_.prototype, "Status", void 0);
|
|
17114
|
+
__decorate([
|
|
17115
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update IsNameField; when 0, user has locked this field` }),
|
|
17116
|
+
__metadata("design:type", Boolean)
|
|
17117
|
+
], MJEntityField_.prototype, "AutoUpdateIsNameField", void 0);
|
|
17118
|
+
__decorate([
|
|
17119
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update DefaultInView; when 0, user has locked this field` }),
|
|
17120
|
+
__metadata("design:type", Boolean)
|
|
17121
|
+
], MJEntityField_.prototype, "AutoUpdateDefaultInView", void 0);
|
|
17122
|
+
__decorate([
|
|
17123
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update Category; when 0, user has locked this field` }),
|
|
17124
|
+
__metadata("design:type", Boolean)
|
|
17125
|
+
], MJEntityField_.prototype, "AutoUpdateCategory", void 0);
|
|
17111
17126
|
__decorate([
|
|
17112
17127
|
Field({ nullable: true }),
|
|
17113
17128
|
__metadata("design:type", String)
|
|
@@ -17208,6 +17223,9 @@ let CreateMJEntityFieldInput = class CreateMJEntityFieldInput {
|
|
|
17208
17223
|
AutoUpdateRelatedEntityInfo;
|
|
17209
17224
|
ValuesToPackWithSchema;
|
|
17210
17225
|
Status;
|
|
17226
|
+
AutoUpdateIsNameField;
|
|
17227
|
+
AutoUpdateDefaultInView;
|
|
17228
|
+
AutoUpdateCategory;
|
|
17211
17229
|
};
|
|
17212
17230
|
__decorate([
|
|
17213
17231
|
Field({ nullable: true }),
|
|
@@ -17333,6 +17351,18 @@ __decorate([
|
|
|
17333
17351
|
Field({ nullable: true }),
|
|
17334
17352
|
__metadata("design:type", String)
|
|
17335
17353
|
], CreateMJEntityFieldInput.prototype, "Status", void 0);
|
|
17354
|
+
__decorate([
|
|
17355
|
+
Field(() => Boolean, { nullable: true }),
|
|
17356
|
+
__metadata("design:type", Boolean)
|
|
17357
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateIsNameField", void 0);
|
|
17358
|
+
__decorate([
|
|
17359
|
+
Field(() => Boolean, { nullable: true }),
|
|
17360
|
+
__metadata("design:type", Boolean)
|
|
17361
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateDefaultInView", void 0);
|
|
17362
|
+
__decorate([
|
|
17363
|
+
Field(() => Boolean, { nullable: true }),
|
|
17364
|
+
__metadata("design:type", Boolean)
|
|
17365
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateCategory", void 0);
|
|
17336
17366
|
CreateMJEntityFieldInput = __decorate([
|
|
17337
17367
|
InputType()
|
|
17338
17368
|
], CreateMJEntityFieldInput);
|
|
@@ -17369,6 +17399,9 @@ let UpdateMJEntityFieldInput = class UpdateMJEntityFieldInput {
|
|
|
17369
17399
|
AutoUpdateRelatedEntityInfo;
|
|
17370
17400
|
ValuesToPackWithSchema;
|
|
17371
17401
|
Status;
|
|
17402
|
+
AutoUpdateIsNameField;
|
|
17403
|
+
AutoUpdateDefaultInView;
|
|
17404
|
+
AutoUpdateCategory;
|
|
17372
17405
|
OldValues___;
|
|
17373
17406
|
};
|
|
17374
17407
|
__decorate([
|
|
@@ -17495,6 +17528,18 @@ __decorate([
|
|
|
17495
17528
|
Field({ nullable: true }),
|
|
17496
17529
|
__metadata("design:type", String)
|
|
17497
17530
|
], UpdateMJEntityFieldInput.prototype, "Status", void 0);
|
|
17531
|
+
__decorate([
|
|
17532
|
+
Field(() => Boolean, { nullable: true }),
|
|
17533
|
+
__metadata("design:type", Boolean)
|
|
17534
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateIsNameField", void 0);
|
|
17535
|
+
__decorate([
|
|
17536
|
+
Field(() => Boolean, { nullable: true }),
|
|
17537
|
+
__metadata("design:type", Boolean)
|
|
17538
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateDefaultInView", void 0);
|
|
17539
|
+
__decorate([
|
|
17540
|
+
Field(() => Boolean, { nullable: true }),
|
|
17541
|
+
__metadata("design:type", Boolean)
|
|
17542
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateCategory", void 0);
|
|
17498
17543
|
__decorate([
|
|
17499
17544
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
17500
17545
|
__metadata("design:type", Array)
|
|
@@ -19725,8 +19770,8 @@ let MJUser_ = class MJUser_ {
|
|
|
19725
19770
|
AIAgentRequests_ResponseByUserIDArray;
|
|
19726
19771
|
AIAgentNotes_UserIDArray;
|
|
19727
19772
|
MJ_ReportUserStates_UserIDArray;
|
|
19728
|
-
MJ_DashboardUserPreferences_UserIDArray;
|
|
19729
19773
|
MJ_DashboardUserStates_UserIDArray;
|
|
19774
|
+
MJ_DashboardUserPreferences_UserIDArray;
|
|
19730
19775
|
MJ_ArtifactVersions_UserIDArray;
|
|
19731
19776
|
MJ_PublicLinks_UserIDArray;
|
|
19732
19777
|
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
@@ -20002,14 +20047,14 @@ __decorate([
|
|
|
20002
20047
|
Field(() => [MJReportUserState_]),
|
|
20003
20048
|
__metadata("design:type", Array)
|
|
20004
20049
|
], MJUser_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
20005
|
-
__decorate([
|
|
20006
|
-
Field(() => [MJDashboardUserPreference_]),
|
|
20007
|
-
__metadata("design:type", Array)
|
|
20008
|
-
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
20009
20050
|
__decorate([
|
|
20010
20051
|
Field(() => [MJDashboardUserState_]),
|
|
20011
20052
|
__metadata("design:type", Array)
|
|
20012
20053
|
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
20054
|
+
__decorate([
|
|
20055
|
+
Field(() => [MJDashboardUserPreference_]),
|
|
20056
|
+
__metadata("design:type", Array)
|
|
20057
|
+
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
20013
20058
|
__decorate([
|
|
20014
20059
|
Field(() => [MJArtifactVersion_]),
|
|
20015
20060
|
__metadata("design:type", Array)
|
|
@@ -20656,22 +20701,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20656
20701
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
|
|
20657
20702
|
return result;
|
|
20658
20703
|
}
|
|
20659
|
-
async
|
|
20660
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
20704
|
+
async MJ_DashboardUserStates_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20705
|
+
this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
|
|
20661
20706
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20662
20707
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20663
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20708
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
20664
20709
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20665
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
20710
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
|
|
20666
20711
|
return result;
|
|
20667
20712
|
}
|
|
20668
|
-
async
|
|
20669
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
20713
|
+
async MJ_DashboardUserPreferences_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20714
|
+
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
20670
20715
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20671
20716
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20672
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
20717
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
20673
20718
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20674
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
20719
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
|
|
20675
20720
|
return result;
|
|
20676
20721
|
}
|
|
20677
20722
|
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -21255,23 +21300,23 @@ __decorate([
|
|
|
21255
21300
|
__metadata("design:returntype", Promise)
|
|
21256
21301
|
], MJUserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
21257
21302
|
__decorate([
|
|
21258
|
-
FieldResolver(() => [
|
|
21303
|
+
FieldResolver(() => [MJDashboardUserState_]),
|
|
21259
21304
|
__param(0, Root()),
|
|
21260
21305
|
__param(1, Ctx()),
|
|
21261
21306
|
__param(2, PubSub()),
|
|
21262
21307
|
__metadata("design:type", Function),
|
|
21263
21308
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21264
21309
|
__metadata("design:returntype", Promise)
|
|
21265
|
-
], MJUserResolverBase.prototype, "
|
|
21310
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
21266
21311
|
__decorate([
|
|
21267
|
-
FieldResolver(() => [
|
|
21312
|
+
FieldResolver(() => [MJDashboardUserPreference_]),
|
|
21268
21313
|
__param(0, Root()),
|
|
21269
21314
|
__param(1, Ctx()),
|
|
21270
21315
|
__param(2, PubSub()),
|
|
21271
21316
|
__metadata("design:type", Function),
|
|
21272
21317
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21273
21318
|
__metadata("design:returntype", Promise)
|
|
21274
|
-
], MJUserResolverBase.prototype, "
|
|
21319
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
|
|
21275
21320
|
__decorate([
|
|
21276
21321
|
FieldResolver(() => [MJArtifactVersion_]),
|
|
21277
21322
|
__param(0, Root()),
|
|
@@ -21526,6 +21571,8 @@ let MJEntityRelationship_ = class MJEntityRelationship_ {
|
|
|
21526
21571
|
_mj__CreatedAt;
|
|
21527
21572
|
_mj__UpdatedAt;
|
|
21528
21573
|
AutoUpdateFromSchema;
|
|
21574
|
+
AdditionalFieldsToInclude;
|
|
21575
|
+
AutoUpdateAdditionalFieldsToInclude;
|
|
21529
21576
|
Entity;
|
|
21530
21577
|
EntityBaseTable;
|
|
21531
21578
|
EntityBaseView;
|
|
@@ -21646,6 +21693,14 @@ __decorate([
|
|
|
21646
21693
|
Field(() => Boolean, { description: `Indicates whether this relationship should be automatically updated by CodeGen. When set to 0, the record will not be modified by CodeGen. Defaults to 1.` }),
|
|
21647
21694
|
__metadata("design:type", Boolean)
|
|
21648
21695
|
], MJEntityRelationship_.prototype, "AutoUpdateFromSchema", void 0);
|
|
21696
|
+
__decorate([
|
|
21697
|
+
Field({ nullable: true, description: `JSON array of additional field names to include when joining through this relationship (for junction tables, e.g., ["RoleName", "UserEmail"])` }),
|
|
21698
|
+
__metadata("design:type", String)
|
|
21699
|
+
], MJEntityRelationship_.prototype, "AdditionalFieldsToInclude", void 0);
|
|
21700
|
+
__decorate([
|
|
21701
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update AdditionalFieldsToInclude; when 0, user has locked this field` }),
|
|
21702
|
+
__metadata("design:type", Boolean)
|
|
21703
|
+
], MJEntityRelationship_.prototype, "AutoUpdateAdditionalFieldsToInclude", void 0);
|
|
21649
21704
|
__decorate([
|
|
21650
21705
|
Field(),
|
|
21651
21706
|
MaxLength(510),
|
|
@@ -21718,6 +21773,8 @@ let CreateMJEntityRelationshipInput = class CreateMJEntityRelationshipInput {
|
|
|
21718
21773
|
DisplayComponentID;
|
|
21719
21774
|
DisplayComponentConfiguration;
|
|
21720
21775
|
AutoUpdateFromSchema;
|
|
21776
|
+
AdditionalFieldsToInclude;
|
|
21777
|
+
AutoUpdateAdditionalFieldsToInclude;
|
|
21721
21778
|
};
|
|
21722
21779
|
__decorate([
|
|
21723
21780
|
Field({ nullable: true }),
|
|
@@ -21799,6 +21856,14 @@ __decorate([
|
|
|
21799
21856
|
Field(() => Boolean, { nullable: true }),
|
|
21800
21857
|
__metadata("design:type", Boolean)
|
|
21801
21858
|
], CreateMJEntityRelationshipInput.prototype, "AutoUpdateFromSchema", void 0);
|
|
21859
|
+
__decorate([
|
|
21860
|
+
Field({ nullable: true }),
|
|
21861
|
+
__metadata("design:type", String)
|
|
21862
|
+
], CreateMJEntityRelationshipInput.prototype, "AdditionalFieldsToInclude", void 0);
|
|
21863
|
+
__decorate([
|
|
21864
|
+
Field(() => Boolean, { nullable: true }),
|
|
21865
|
+
__metadata("design:type", Boolean)
|
|
21866
|
+
], CreateMJEntityRelationshipInput.prototype, "AutoUpdateAdditionalFieldsToInclude", void 0);
|
|
21802
21867
|
CreateMJEntityRelationshipInput = __decorate([
|
|
21803
21868
|
InputType()
|
|
21804
21869
|
], CreateMJEntityRelationshipInput);
|
|
@@ -21824,6 +21889,8 @@ let UpdateMJEntityRelationshipInput = class UpdateMJEntityRelationshipInput {
|
|
|
21824
21889
|
DisplayComponentID;
|
|
21825
21890
|
DisplayComponentConfiguration;
|
|
21826
21891
|
AutoUpdateFromSchema;
|
|
21892
|
+
AdditionalFieldsToInclude;
|
|
21893
|
+
AutoUpdateAdditionalFieldsToInclude;
|
|
21827
21894
|
OldValues___;
|
|
21828
21895
|
};
|
|
21829
21896
|
__decorate([
|
|
@@ -21906,6 +21973,14 @@ __decorate([
|
|
|
21906
21973
|
Field(() => Boolean, { nullable: true }),
|
|
21907
21974
|
__metadata("design:type", Boolean)
|
|
21908
21975
|
], UpdateMJEntityRelationshipInput.prototype, "AutoUpdateFromSchema", void 0);
|
|
21976
|
+
__decorate([
|
|
21977
|
+
Field({ nullable: true }),
|
|
21978
|
+
__metadata("design:type", String)
|
|
21979
|
+
], UpdateMJEntityRelationshipInput.prototype, "AdditionalFieldsToInclude", void 0);
|
|
21980
|
+
__decorate([
|
|
21981
|
+
Field(() => Boolean, { nullable: true }),
|
|
21982
|
+
__metadata("design:type", Boolean)
|
|
21983
|
+
], UpdateMJEntityRelationshipInput.prototype, "AutoUpdateAdditionalFieldsToInclude", void 0);
|
|
21909
21984
|
__decorate([
|
|
21910
21985
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
21911
21986
|
__metadata("design:type", Array)
|
|
@@ -39896,6 +39971,7 @@ let MJSchemaInfo_ = class MJSchemaInfo_ {
|
|
|
39896
39971
|
Comments;
|
|
39897
39972
|
_mj__CreatedAt;
|
|
39898
39973
|
_mj__UpdatedAt;
|
|
39974
|
+
Description;
|
|
39899
39975
|
};
|
|
39900
39976
|
__decorate([
|
|
39901
39977
|
Field(),
|
|
@@ -39929,6 +40005,10 @@ __decorate([
|
|
|
39929
40005
|
MaxLength(10),
|
|
39930
40006
|
__metadata("design:type", Date)
|
|
39931
40007
|
], MJSchemaInfo_.prototype, "_mj__UpdatedAt", void 0);
|
|
40008
|
+
__decorate([
|
|
40009
|
+
Field({ nullable: true }),
|
|
40010
|
+
__metadata("design:type", String)
|
|
40011
|
+
], MJSchemaInfo_.prototype, "Description", void 0);
|
|
39932
40012
|
MJSchemaInfo_ = __decorate([
|
|
39933
40013
|
ObjectType({ description: `Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.` })
|
|
39934
40014
|
], MJSchemaInfo_);
|
|
@@ -39939,6 +40019,7 @@ let CreateMJSchemaInfoInput = class CreateMJSchemaInfoInput {
|
|
|
39939
40019
|
EntityIDMin;
|
|
39940
40020
|
EntityIDMax;
|
|
39941
40021
|
Comments;
|
|
40022
|
+
Description;
|
|
39942
40023
|
};
|
|
39943
40024
|
__decorate([
|
|
39944
40025
|
Field({ nullable: true }),
|
|
@@ -39960,6 +40041,10 @@ __decorate([
|
|
|
39960
40041
|
Field({ nullable: true }),
|
|
39961
40042
|
__metadata("design:type", String)
|
|
39962
40043
|
], CreateMJSchemaInfoInput.prototype, "Comments", void 0);
|
|
40044
|
+
__decorate([
|
|
40045
|
+
Field({ nullable: true }),
|
|
40046
|
+
__metadata("design:type", String)
|
|
40047
|
+
], CreateMJSchemaInfoInput.prototype, "Description", void 0);
|
|
39963
40048
|
CreateMJSchemaInfoInput = __decorate([
|
|
39964
40049
|
InputType()
|
|
39965
40050
|
], CreateMJSchemaInfoInput);
|
|
@@ -39970,6 +40055,7 @@ let UpdateMJSchemaInfoInput = class UpdateMJSchemaInfoInput {
|
|
|
39970
40055
|
EntityIDMin;
|
|
39971
40056
|
EntityIDMax;
|
|
39972
40057
|
Comments;
|
|
40058
|
+
Description;
|
|
39973
40059
|
OldValues___;
|
|
39974
40060
|
};
|
|
39975
40061
|
__decorate([
|
|
@@ -39992,6 +40078,10 @@ __decorate([
|
|
|
39992
40078
|
Field({ nullable: true }),
|
|
39993
40079
|
__metadata("design:type", String)
|
|
39994
40080
|
], UpdateMJSchemaInfoInput.prototype, "Comments", void 0);
|
|
40081
|
+
__decorate([
|
|
40082
|
+
Field({ nullable: true }),
|
|
40083
|
+
__metadata("design:type", String)
|
|
40084
|
+
], UpdateMJSchemaInfoInput.prototype, "Description", void 0);
|
|
39995
40085
|
__decorate([
|
|
39996
40086
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
39997
40087
|
__metadata("design:type", Array)
|
|
@@ -67718,8 +67808,8 @@ let MJConversationArtifact_ = class MJConversationArtifact_ {
|
|
|
67718
67808
|
_mj__UpdatedAt;
|
|
67719
67809
|
Conversation;
|
|
67720
67810
|
ArtifactType;
|
|
67721
|
-
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
67722
67811
|
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
67812
|
+
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
67723
67813
|
ConversationDetails_ArtifactIDArray;
|
|
67724
67814
|
};
|
|
67725
67815
|
__decorate([
|
|
@@ -67775,14 +67865,14 @@ __decorate([
|
|
|
67775
67865
|
MaxLength(200),
|
|
67776
67866
|
__metadata("design:type", String)
|
|
67777
67867
|
], MJConversationArtifact_.prototype, "ArtifactType", void 0);
|
|
67778
|
-
__decorate([
|
|
67779
|
-
Field(() => [MJConversationArtifactVersion_]),
|
|
67780
|
-
__metadata("design:type", Array)
|
|
67781
|
-
], MJConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
67782
67868
|
__decorate([
|
|
67783
67869
|
Field(() => [MJConversationArtifactPermission_]),
|
|
67784
67870
|
__metadata("design:type", Array)
|
|
67785
67871
|
], MJConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
67872
|
+
__decorate([
|
|
67873
|
+
Field(() => [MJConversationArtifactVersion_]),
|
|
67874
|
+
__metadata("design:type", Array)
|
|
67875
|
+
], MJConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
67786
67876
|
__decorate([
|
|
67787
67877
|
Field(() => [MJConversationDetail_]),
|
|
67788
67878
|
__metadata("design:type", Array)
|
|
@@ -67942,22 +68032,22 @@ let MJConversationArtifactResolver = class MJConversationArtifactResolver extend
|
|
|
67942
68032
|
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : {});
|
|
67943
68033
|
return result;
|
|
67944
68034
|
}
|
|
67945
|
-
async
|
|
67946
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
68035
|
+
async MJ_ConversationArtifactPermissions_ConversationArtifactIDArray(mjconversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
68036
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
67947
68037
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67948
68038
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
67949
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
68039
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ConversationArtifactID]='${mjconversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
67950
68040
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
67951
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
68041
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows);
|
|
67952
68042
|
return result;
|
|
67953
68043
|
}
|
|
67954
|
-
async
|
|
67955
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
68044
|
+
async MJ_ConversationArtifactVersions_ConversationArtifactIDArray(mjconversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
68045
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
67956
68046
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67957
68047
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
67958
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
68048
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ConversationArtifactID]='${mjconversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
67959
68049
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
67960
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
68050
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows);
|
|
67961
68051
|
return result;
|
|
67962
68052
|
}
|
|
67963
68053
|
async ConversationDetails_ArtifactIDArray(mjconversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -68020,23 +68110,23 @@ __decorate([
|
|
|
68020
68110
|
__metadata("design:returntype", Promise)
|
|
68021
68111
|
], MJConversationArtifactResolver.prototype, "MJConversationArtifact", null);
|
|
68022
68112
|
__decorate([
|
|
68023
|
-
FieldResolver(() => [
|
|
68113
|
+
FieldResolver(() => [MJConversationArtifactPermission_]),
|
|
68024
68114
|
__param(0, Root()),
|
|
68025
68115
|
__param(1, Ctx()),
|
|
68026
68116
|
__param(2, PubSub()),
|
|
68027
68117
|
__metadata("design:type", Function),
|
|
68028
68118
|
__metadata("design:paramtypes", [MJConversationArtifact_, Object, PubSubEngine]),
|
|
68029
68119
|
__metadata("design:returntype", Promise)
|
|
68030
|
-
], MJConversationArtifactResolver.prototype, "
|
|
68120
|
+
], MJConversationArtifactResolver.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", null);
|
|
68031
68121
|
__decorate([
|
|
68032
|
-
FieldResolver(() => [
|
|
68122
|
+
FieldResolver(() => [MJConversationArtifactVersion_]),
|
|
68033
68123
|
__param(0, Root()),
|
|
68034
68124
|
__param(1, Ctx()),
|
|
68035
68125
|
__param(2, PubSub()),
|
|
68036
68126
|
__metadata("design:type", Function),
|
|
68037
68127
|
__metadata("design:paramtypes", [MJConversationArtifact_, Object, PubSubEngine]),
|
|
68038
68128
|
__metadata("design:returntype", Promise)
|
|
68039
|
-
], MJConversationArtifactResolver.prototype, "
|
|
68129
|
+
], MJConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
68040
68130
|
__decorate([
|
|
68041
68131
|
FieldResolver(() => [MJConversationDetail_]),
|
|
68042
68132
|
__param(0, Root()),
|