@memberjunction/server 5.10.1 → 5.12.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-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +1 -0
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/generated/generated.d.ts +220 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1516 -285
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.js +3 -3
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +8 -0
- package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +2 -0
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +11 -0
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +16 -2
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -0
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +20 -0
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +24 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +264 -1
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/package.json +59 -59
- package/src/agents/skip-sdk.ts +1 -0
- package/src/generated/generated.ts +1135 -286
- package/src/generic/ResolverBase.ts +3 -3
- package/src/index.ts +31 -2
- package/src/resolvers/AdhocQueryResolver.ts +8 -0
- package/src/resolvers/CreateQueryResolver.ts +9 -0
- package/src/resolvers/GetDataResolver.ts +18 -2
- package/src/resolvers/QueryResolver.ts +18 -0
- package/src/resolvers/RunAIAgentResolver.ts +301 -2
|
@@ -277,7 +277,7 @@ let MJAccessControlRuleResolver = class MJAccessControlRuleResolver extends Reso
|
|
|
277
277
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
278
278
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAccessControlRules')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Access Control Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
279
279
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
280
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Access Control Rules', rows && rows.length > 0 ? rows[0] :
|
|
280
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Access Control Rules', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
281
281
|
return result;
|
|
282
282
|
}
|
|
283
283
|
async CreateMJAccessControlRule(input, { providers, userPayload }, pubSub) {
|
|
@@ -518,7 +518,7 @@ let MJActionAuthorizationResolver = class MJActionAuthorizationResolver extends
|
|
|
518
518
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
519
519
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionAuthorizations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
520
520
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
521
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Authorizations', rows && rows.length > 0 ? rows[0] :
|
|
521
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Authorizations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
522
522
|
return result;
|
|
523
523
|
}
|
|
524
524
|
async CreateMJActionAuthorization(input, { providers, userPayload }, pubSub) {
|
|
@@ -784,7 +784,7 @@ let MJActionCategoryResolver = class MJActionCategoryResolver extends ResolverBa
|
|
|
784
784
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
785
785
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
786
786
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
787
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Categories', rows && rows.length > 0 ? rows[0] :
|
|
787
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
788
788
|
return result;
|
|
789
789
|
}
|
|
790
790
|
async MJActionCategories_ParentIDArray(mjactioncategory_, { userPayload, providers }, pubSub) {
|
|
@@ -1057,7 +1057,7 @@ let MJActionContextTypeResolver = class MJActionContextTypeResolver extends Reso
|
|
|
1057
1057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1058
1058
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionContextTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Context Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
1059
1059
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1060
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Context Types', rows && rows.length > 0 ? rows[0] :
|
|
1060
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Context Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1061
1061
|
return result;
|
|
1062
1062
|
}
|
|
1063
1063
|
async MJActionContexts_ContextTypeIDArray(mjactioncontexttype_, { userPayload, providers }, pubSub) {
|
|
@@ -1316,7 +1316,7 @@ let MJActionContextResolver = class MJActionContextResolver extends ResolverBase
|
|
|
1316
1316
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1317
1317
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionContexts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
1318
1318
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1319
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Contexts', rows && rows.length > 0 ? rows[0] :
|
|
1319
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Contexts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1320
1320
|
return result;
|
|
1321
1321
|
}
|
|
1322
1322
|
async CreateMJActionContext(input, { providers, userPayload }, pubSub) {
|
|
@@ -1618,7 +1618,7 @@ let MJActionExecutionLogResolver = class MJActionExecutionLogResolver extends Re
|
|
|
1618
1618
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1619
1619
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionExecutionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
1620
1620
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1621
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Execution Logs', rows && rows.length > 0 ? rows[0] :
|
|
1621
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Execution Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1622
1622
|
return result;
|
|
1623
1623
|
}
|
|
1624
1624
|
async CreateMJActionExecutionLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -1863,7 +1863,7 @@ let MJActionFilterResolver = class MJActionFilterResolver extends ResolverBase {
|
|
|
1863
1863
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1864
1864
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
1865
1865
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1866
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Filters', rows && rows.length > 0 ? rows[0] :
|
|
1866
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1867
1867
|
return result;
|
|
1868
1868
|
}
|
|
1869
1869
|
async MJEntityActionFilters_ActionFilterIDArray(mjactionfilter_, { userPayload, providers }, pubSub) {
|
|
@@ -2121,7 +2121,7 @@ let MJActionLibraryResolver = class MJActionLibraryResolver extends ResolverBase
|
|
|
2121
2121
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2122
2122
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
2123
2123
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2124
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Libraries', rows && rows.length > 0 ? rows[0] :
|
|
2124
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2125
2125
|
return result;
|
|
2126
2126
|
}
|
|
2127
2127
|
async CreateMJActionLibrary(input, { providers, userPayload }, pubSub) {
|
|
@@ -2440,7 +2440,7 @@ let MJActionParamResolver = class MJActionParamResolver extends ResolverBase {
|
|
|
2440
2440
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2441
2441
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
2442
2442
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2443
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Params', rows && rows.length > 0 ? rows[0] :
|
|
2443
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2444
2444
|
return result;
|
|
2445
2445
|
}
|
|
2446
2446
|
async MJEntityActionParams_ActionParamIDArray(mjactionparam_, { userPayload, providers }, pubSub) {
|
|
@@ -2722,7 +2722,7 @@ let MJActionResultCodeResolver = class MJActionResultCodeResolver extends Resolv
|
|
|
2722
2722
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2723
2723
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionResultCodes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Result Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
2724
2724
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2725
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Result Codes', rows && rows.length > 0 ? rows[0] :
|
|
2725
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Result Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2726
2726
|
return result;
|
|
2727
2727
|
}
|
|
2728
2728
|
async CreateMJActionResultCode(input, { providers, userPayload }, pubSub) {
|
|
@@ -2915,6 +2915,10 @@ __decorate([
|
|
|
2915
2915
|
MaxLength(36),
|
|
2916
2916
|
__metadata("design:type", String)
|
|
2917
2917
|
], MJAction_.prototype, "DefaultCompactPromptID", void 0);
|
|
2918
|
+
__decorate([
|
|
2919
|
+
Field({ nullable: true, description: `Optional JSON configuration for the action. For integration actions, contains routing info: integrationName, objectName, verb, and optional connectorConfig. Non-integration actions leave this NULL.` }),
|
|
2920
|
+
__metadata("design:type", String)
|
|
2921
|
+
], MJAction_.prototype, "Config", void 0);
|
|
2918
2922
|
__decorate([
|
|
2919
2923
|
Field({ nullable: true }),
|
|
2920
2924
|
MaxLength(255),
|
|
@@ -3081,6 +3085,10 @@ __decorate([
|
|
|
3081
3085
|
Field({ nullable: true }),
|
|
3082
3086
|
__metadata("design:type", String)
|
|
3083
3087
|
], CreateMJActionInput.prototype, "DefaultCompactPromptID", void 0);
|
|
3088
|
+
__decorate([
|
|
3089
|
+
Field({ nullable: true }),
|
|
3090
|
+
__metadata("design:type", String)
|
|
3091
|
+
], CreateMJActionInput.prototype, "Config", void 0);
|
|
3084
3092
|
CreateMJActionInput = __decorate([
|
|
3085
3093
|
InputType()
|
|
3086
3094
|
], CreateMJActionInput);
|
|
@@ -3174,6 +3182,10 @@ __decorate([
|
|
|
3174
3182
|
Field({ nullable: true }),
|
|
3175
3183
|
__metadata("design:type", String)
|
|
3176
3184
|
], UpdateMJActionInput.prototype, "DefaultCompactPromptID", void 0);
|
|
3185
|
+
__decorate([
|
|
3186
|
+
Field({ nullable: true }),
|
|
3187
|
+
__metadata("design:type", String)
|
|
3188
|
+
], UpdateMJActionInput.prototype, "Config", void 0);
|
|
3177
3189
|
__decorate([
|
|
3178
3190
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3179
3191
|
__metadata("design:type", Array)
|
|
@@ -3238,7 +3250,7 @@ let MJActionResolver = class MJActionResolver extends ResolverBase {
|
|
|
3238
3250
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3239
3251
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
3240
3252
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3241
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Actions', rows && rows.length > 0 ? rows[0] :
|
|
3253
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3242
3254
|
return result;
|
|
3243
3255
|
}
|
|
3244
3256
|
async MJActionParams_ActionIDArray(mjaction_, { userPayload, providers }, pubSub) {
|
|
@@ -3710,7 +3722,7 @@ let MJAIActionResolver = class MJAIActionResolver extends ResolverBase {
|
|
|
3710
3722
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3711
3723
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
3712
3724
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3713
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Actions', rows && rows.length > 0 ? rows[0] :
|
|
3725
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3714
3726
|
return result;
|
|
3715
3727
|
}
|
|
3716
3728
|
async AllMJAIActions({ userPayload, providers }, pubSub) {
|
|
@@ -4094,7 +4106,7 @@ let MJAIAgentActionResolver = class MJAIAgentActionResolver extends ResolverBase
|
|
|
4094
4106
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4095
4107
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
4096
4108
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4097
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Actions', rows && rows.length > 0 ? rows[0] :
|
|
4109
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4098
4110
|
return result;
|
|
4099
4111
|
}
|
|
4100
4112
|
async CreateMJAIAgentAction(input, { providers, userPayload }, pubSub) {
|
|
@@ -4335,7 +4347,7 @@ let MJAIAgentArtifactTypeResolver = class MJAIAgentArtifactTypeResolver extends
|
|
|
4335
4347
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4336
4348
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentArtifactTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Artifact Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
4337
4349
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4338
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Artifact Types', rows && rows.length > 0 ? rows[0] :
|
|
4350
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4339
4351
|
return result;
|
|
4340
4352
|
}
|
|
4341
4353
|
async CreateMJAIAgentArtifactType(input, { providers, userPayload }, pubSub) {
|
|
@@ -4421,6 +4433,314 @@ MJAIAgentArtifactTypeResolver = __decorate([
|
|
|
4421
4433
|
], MJAIAgentArtifactTypeResolver);
|
|
4422
4434
|
export { MJAIAgentArtifactTypeResolver };
|
|
4423
4435
|
//****************************************************************************
|
|
4436
|
+
// ENTITY CLASS for MJ: AI Agent Categories
|
|
4437
|
+
//****************************************************************************
|
|
4438
|
+
let MJAIAgentCategory_ = class MJAIAgentCategory_ {
|
|
4439
|
+
};
|
|
4440
|
+
__decorate([
|
|
4441
|
+
Field({ description: `Primary key for the AIAgentCategory record.` }),
|
|
4442
|
+
MaxLength(36),
|
|
4443
|
+
__metadata("design:type", String)
|
|
4444
|
+
], MJAIAgentCategory_.prototype, "ID", void 0);
|
|
4445
|
+
__decorate([
|
|
4446
|
+
Field({ description: `Unique display name for the category (e.g., Research, Customer Support, Data Processing).` }),
|
|
4447
|
+
MaxLength(200),
|
|
4448
|
+
__metadata("design:type", String)
|
|
4449
|
+
], MJAIAgentCategory_.prototype, "Name", void 0);
|
|
4450
|
+
__decorate([
|
|
4451
|
+
Field({ nullable: true, description: `Optional description explaining the purpose and scope of this category.` }),
|
|
4452
|
+
__metadata("design:type", String)
|
|
4453
|
+
], MJAIAgentCategory_.prototype, "Description", void 0);
|
|
4454
|
+
__decorate([
|
|
4455
|
+
Field({ nullable: true, description: `Self-referencing foreign key to the parent category, forming a tree hierarchy. NULL for root categories.` }),
|
|
4456
|
+
MaxLength(36),
|
|
4457
|
+
__metadata("design:type", String)
|
|
4458
|
+
], MJAIAgentCategory_.prototype, "ParentID", void 0);
|
|
4459
|
+
__decorate([
|
|
4460
|
+
Field({ nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining who receives feedback requests for agents in this category. Inherited by child categories that do not define their own strategy.` }),
|
|
4461
|
+
__metadata("design:type", String)
|
|
4462
|
+
], MJAIAgentCategory_.prototype, "AssignmentStrategy", void 0);
|
|
4463
|
+
__decorate([
|
|
4464
|
+
Field({ description: `Whether this category is Active, Disabled, or Pending.` }),
|
|
4465
|
+
MaxLength(20),
|
|
4466
|
+
__metadata("design:type", String)
|
|
4467
|
+
], MJAIAgentCategory_.prototype, "Status", void 0);
|
|
4468
|
+
__decorate([
|
|
4469
|
+
Field(),
|
|
4470
|
+
__metadata("design:type", Date)
|
|
4471
|
+
], MJAIAgentCategory_.prototype, "_mj__CreatedAt", void 0);
|
|
4472
|
+
__decorate([
|
|
4473
|
+
Field(),
|
|
4474
|
+
__metadata("design:type", Date)
|
|
4475
|
+
], MJAIAgentCategory_.prototype, "_mj__UpdatedAt", void 0);
|
|
4476
|
+
__decorate([
|
|
4477
|
+
Field({ nullable: true }),
|
|
4478
|
+
MaxLength(200),
|
|
4479
|
+
__metadata("design:type", String)
|
|
4480
|
+
], MJAIAgentCategory_.prototype, "Parent", void 0);
|
|
4481
|
+
__decorate([
|
|
4482
|
+
Field({ nullable: true }),
|
|
4483
|
+
MaxLength(36),
|
|
4484
|
+
__metadata("design:type", String)
|
|
4485
|
+
], MJAIAgentCategory_.prototype, "RootParentID", void 0);
|
|
4486
|
+
__decorate([
|
|
4487
|
+
Field(() => [MJAIAgentCategory_]),
|
|
4488
|
+
__metadata("design:type", Array)
|
|
4489
|
+
], MJAIAgentCategory_.prototype, "MJAIAgentCategories_ParentIDArray", void 0);
|
|
4490
|
+
__decorate([
|
|
4491
|
+
Field(() => [MJAIAgent_]),
|
|
4492
|
+
__metadata("design:type", Array)
|
|
4493
|
+
], MJAIAgentCategory_.prototype, "MJAIAgents_CategoryIDArray", void 0);
|
|
4494
|
+
MJAIAgentCategory_ = __decorate([
|
|
4495
|
+
ObjectType({ description: `Hierarchical organizational grouping for AI agents. Categories form a tree via the ParentID self-referencing foreign key and can carry inherited assignment strategies.` })
|
|
4496
|
+
], MJAIAgentCategory_);
|
|
4497
|
+
export { MJAIAgentCategory_ };
|
|
4498
|
+
//****************************************************************************
|
|
4499
|
+
// INPUT TYPE for MJ: AI Agent Categories
|
|
4500
|
+
//****************************************************************************
|
|
4501
|
+
let CreateMJAIAgentCategoryInput = class CreateMJAIAgentCategoryInput {
|
|
4502
|
+
};
|
|
4503
|
+
__decorate([
|
|
4504
|
+
Field({ nullable: true }),
|
|
4505
|
+
__metadata("design:type", String)
|
|
4506
|
+
], CreateMJAIAgentCategoryInput.prototype, "ID", void 0);
|
|
4507
|
+
__decorate([
|
|
4508
|
+
Field({ nullable: true }),
|
|
4509
|
+
__metadata("design:type", String)
|
|
4510
|
+
], CreateMJAIAgentCategoryInput.prototype, "Name", void 0);
|
|
4511
|
+
__decorate([
|
|
4512
|
+
Field({ nullable: true }),
|
|
4513
|
+
__metadata("design:type", String)
|
|
4514
|
+
], CreateMJAIAgentCategoryInput.prototype, "Description", void 0);
|
|
4515
|
+
__decorate([
|
|
4516
|
+
Field({ nullable: true }),
|
|
4517
|
+
__metadata("design:type", String)
|
|
4518
|
+
], CreateMJAIAgentCategoryInput.prototype, "ParentID", void 0);
|
|
4519
|
+
__decorate([
|
|
4520
|
+
Field({ nullable: true }),
|
|
4521
|
+
__metadata("design:type", String)
|
|
4522
|
+
], CreateMJAIAgentCategoryInput.prototype, "AssignmentStrategy", void 0);
|
|
4523
|
+
__decorate([
|
|
4524
|
+
Field({ nullable: true }),
|
|
4525
|
+
__metadata("design:type", String)
|
|
4526
|
+
], CreateMJAIAgentCategoryInput.prototype, "Status", void 0);
|
|
4527
|
+
CreateMJAIAgentCategoryInput = __decorate([
|
|
4528
|
+
InputType()
|
|
4529
|
+
], CreateMJAIAgentCategoryInput);
|
|
4530
|
+
export { CreateMJAIAgentCategoryInput };
|
|
4531
|
+
//****************************************************************************
|
|
4532
|
+
// INPUT TYPE for MJ: AI Agent Categories
|
|
4533
|
+
//****************************************************************************
|
|
4534
|
+
let UpdateMJAIAgentCategoryInput = class UpdateMJAIAgentCategoryInput {
|
|
4535
|
+
};
|
|
4536
|
+
__decorate([
|
|
4537
|
+
Field(),
|
|
4538
|
+
__metadata("design:type", String)
|
|
4539
|
+
], UpdateMJAIAgentCategoryInput.prototype, "ID", void 0);
|
|
4540
|
+
__decorate([
|
|
4541
|
+
Field({ nullable: true }),
|
|
4542
|
+
__metadata("design:type", String)
|
|
4543
|
+
], UpdateMJAIAgentCategoryInput.prototype, "Name", void 0);
|
|
4544
|
+
__decorate([
|
|
4545
|
+
Field({ nullable: true }),
|
|
4546
|
+
__metadata("design:type", String)
|
|
4547
|
+
], UpdateMJAIAgentCategoryInput.prototype, "Description", void 0);
|
|
4548
|
+
__decorate([
|
|
4549
|
+
Field({ nullable: true }),
|
|
4550
|
+
__metadata("design:type", String)
|
|
4551
|
+
], UpdateMJAIAgentCategoryInput.prototype, "ParentID", void 0);
|
|
4552
|
+
__decorate([
|
|
4553
|
+
Field({ nullable: true }),
|
|
4554
|
+
__metadata("design:type", String)
|
|
4555
|
+
], UpdateMJAIAgentCategoryInput.prototype, "AssignmentStrategy", void 0);
|
|
4556
|
+
__decorate([
|
|
4557
|
+
Field({ nullable: true }),
|
|
4558
|
+
__metadata("design:type", String)
|
|
4559
|
+
], UpdateMJAIAgentCategoryInput.prototype, "Status", void 0);
|
|
4560
|
+
__decorate([
|
|
4561
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4562
|
+
__metadata("design:type", Array)
|
|
4563
|
+
], UpdateMJAIAgentCategoryInput.prototype, "OldValues___", void 0);
|
|
4564
|
+
UpdateMJAIAgentCategoryInput = __decorate([
|
|
4565
|
+
InputType()
|
|
4566
|
+
], UpdateMJAIAgentCategoryInput);
|
|
4567
|
+
export { UpdateMJAIAgentCategoryInput };
|
|
4568
|
+
//****************************************************************************
|
|
4569
|
+
// RESOLVER for MJ: AI Agent Categories
|
|
4570
|
+
//****************************************************************************
|
|
4571
|
+
let RunMJAIAgentCategoryViewResult = class RunMJAIAgentCategoryViewResult {
|
|
4572
|
+
};
|
|
4573
|
+
__decorate([
|
|
4574
|
+
Field(() => [MJAIAgentCategory_]),
|
|
4575
|
+
__metadata("design:type", Array)
|
|
4576
|
+
], RunMJAIAgentCategoryViewResult.prototype, "Results", void 0);
|
|
4577
|
+
__decorate([
|
|
4578
|
+
Field(() => String, { nullable: true }),
|
|
4579
|
+
__metadata("design:type", String)
|
|
4580
|
+
], RunMJAIAgentCategoryViewResult.prototype, "UserViewRunID", void 0);
|
|
4581
|
+
__decorate([
|
|
4582
|
+
Field(() => Int, { nullable: true }),
|
|
4583
|
+
__metadata("design:type", Number)
|
|
4584
|
+
], RunMJAIAgentCategoryViewResult.prototype, "RowCount", void 0);
|
|
4585
|
+
__decorate([
|
|
4586
|
+
Field(() => Int, { nullable: true }),
|
|
4587
|
+
__metadata("design:type", Number)
|
|
4588
|
+
], RunMJAIAgentCategoryViewResult.prototype, "TotalRowCount", void 0);
|
|
4589
|
+
__decorate([
|
|
4590
|
+
Field(() => Int, { nullable: true }),
|
|
4591
|
+
__metadata("design:type", Number)
|
|
4592
|
+
], RunMJAIAgentCategoryViewResult.prototype, "ExecutionTime", void 0);
|
|
4593
|
+
__decorate([
|
|
4594
|
+
Field({ nullable: true }),
|
|
4595
|
+
__metadata("design:type", String)
|
|
4596
|
+
], RunMJAIAgentCategoryViewResult.prototype, "ErrorMessage", void 0);
|
|
4597
|
+
__decorate([
|
|
4598
|
+
Field(() => Boolean, { nullable: false }),
|
|
4599
|
+
__metadata("design:type", Boolean)
|
|
4600
|
+
], RunMJAIAgentCategoryViewResult.prototype, "Success", void 0);
|
|
4601
|
+
RunMJAIAgentCategoryViewResult = __decorate([
|
|
4602
|
+
ObjectType()
|
|
4603
|
+
], RunMJAIAgentCategoryViewResult);
|
|
4604
|
+
export { RunMJAIAgentCategoryViewResult };
|
|
4605
|
+
let MJAIAgentCategoryResolver = class MJAIAgentCategoryResolver extends ResolverBase {
|
|
4606
|
+
async RunMJAIAgentCategoryViewByID(input, { providers, userPayload }, pubSub) {
|
|
4607
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4608
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
4609
|
+
}
|
|
4610
|
+
async RunMJAIAgentCategoryViewByName(input, { providers, userPayload }, pubSub) {
|
|
4611
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4612
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
4613
|
+
}
|
|
4614
|
+
async RunMJAIAgentCategoryDynamicView(input, { providers, userPayload }, pubSub) {
|
|
4615
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4616
|
+
input.EntityName = 'MJ: AI Agent Categories';
|
|
4617
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
4618
|
+
}
|
|
4619
|
+
async MJAIAgentCategory(ID, { userPayload, providers }, pubSub) {
|
|
4620
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
4621
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4622
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4623
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4624
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4625
|
+
return result;
|
|
4626
|
+
}
|
|
4627
|
+
async MJAIAgentCategories_ParentIDArray(mjaiagentcategory_, { userPayload, providers }, pubSub) {
|
|
4628
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
4629
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4630
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentCategories')} WHERE ${provider.QuoteIdentifier('ParentID')}='${mjaiagentcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4631
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4632
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Categories', rows, this.GetUserFromPayload(userPayload));
|
|
4633
|
+
return result;
|
|
4634
|
+
}
|
|
4635
|
+
async MJAIAgents_CategoryIDArray(mjaiagentcategory_, { userPayload, providers }, pubSub) {
|
|
4636
|
+
this.CheckUserReadPermissions('MJ: AI Agents', userPayload);
|
|
4637
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4638
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('CategoryID')}='${mjaiagentcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
4639
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4640
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
|
|
4641
|
+
return result;
|
|
4642
|
+
}
|
|
4643
|
+
async CreateMJAIAgentCategory(input, { providers, userPayload }, pubSub) {
|
|
4644
|
+
const provider = GetReadWriteProvider(providers);
|
|
4645
|
+
return this.CreateRecord('MJ: AI Agent Categories', input, provider, userPayload, pubSub);
|
|
4646
|
+
}
|
|
4647
|
+
async UpdateMJAIAgentCategory(input, { providers, userPayload }, pubSub) {
|
|
4648
|
+
const provider = GetReadWriteProvider(providers);
|
|
4649
|
+
return this.UpdateRecord('MJ: AI Agent Categories', input, provider, userPayload, pubSub);
|
|
4650
|
+
}
|
|
4651
|
+
async DeleteMJAIAgentCategory(ID, options, { providers, userPayload }, pubSub) {
|
|
4652
|
+
const provider = GetReadWriteProvider(providers);
|
|
4653
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
4654
|
+
return this.DeleteRecord('MJ: AI Agent Categories', key, options, provider, userPayload, pubSub);
|
|
4655
|
+
}
|
|
4656
|
+
};
|
|
4657
|
+
__decorate([
|
|
4658
|
+
Query(() => RunMJAIAgentCategoryViewResult),
|
|
4659
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
4660
|
+
__param(1, Ctx()),
|
|
4661
|
+
__param(2, PubSub()),
|
|
4662
|
+
__metadata("design:type", Function),
|
|
4663
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
4664
|
+
__metadata("design:returntype", Promise)
|
|
4665
|
+
], MJAIAgentCategoryResolver.prototype, "RunMJAIAgentCategoryViewByID", null);
|
|
4666
|
+
__decorate([
|
|
4667
|
+
Query(() => RunMJAIAgentCategoryViewResult),
|
|
4668
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
4669
|
+
__param(1, Ctx()),
|
|
4670
|
+
__param(2, PubSub()),
|
|
4671
|
+
__metadata("design:type", Function),
|
|
4672
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
4673
|
+
__metadata("design:returntype", Promise)
|
|
4674
|
+
], MJAIAgentCategoryResolver.prototype, "RunMJAIAgentCategoryViewByName", null);
|
|
4675
|
+
__decorate([
|
|
4676
|
+
Query(() => RunMJAIAgentCategoryViewResult),
|
|
4677
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
4678
|
+
__param(1, Ctx()),
|
|
4679
|
+
__param(2, PubSub()),
|
|
4680
|
+
__metadata("design:type", Function),
|
|
4681
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
4682
|
+
__metadata("design:returntype", Promise)
|
|
4683
|
+
], MJAIAgentCategoryResolver.prototype, "RunMJAIAgentCategoryDynamicView", null);
|
|
4684
|
+
__decorate([
|
|
4685
|
+
Query(() => MJAIAgentCategory_, { nullable: true }),
|
|
4686
|
+
__param(0, Arg('ID', () => String)),
|
|
4687
|
+
__param(1, Ctx()),
|
|
4688
|
+
__param(2, PubSub()),
|
|
4689
|
+
__metadata("design:type", Function),
|
|
4690
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
4691
|
+
__metadata("design:returntype", Promise)
|
|
4692
|
+
], MJAIAgentCategoryResolver.prototype, "MJAIAgentCategory", null);
|
|
4693
|
+
__decorate([
|
|
4694
|
+
FieldResolver(() => [MJAIAgentCategory_]),
|
|
4695
|
+
__param(0, Root()),
|
|
4696
|
+
__param(1, Ctx()),
|
|
4697
|
+
__param(2, PubSub()),
|
|
4698
|
+
__metadata("design:type", Function),
|
|
4699
|
+
__metadata("design:paramtypes", [MJAIAgentCategory_, Object, PubSubEngine]),
|
|
4700
|
+
__metadata("design:returntype", Promise)
|
|
4701
|
+
], MJAIAgentCategoryResolver.prototype, "MJAIAgentCategories_ParentIDArray", null);
|
|
4702
|
+
__decorate([
|
|
4703
|
+
FieldResolver(() => [MJAIAgent_]),
|
|
4704
|
+
__param(0, Root()),
|
|
4705
|
+
__param(1, Ctx()),
|
|
4706
|
+
__param(2, PubSub()),
|
|
4707
|
+
__metadata("design:type", Function),
|
|
4708
|
+
__metadata("design:paramtypes", [MJAIAgentCategory_, Object, PubSubEngine]),
|
|
4709
|
+
__metadata("design:returntype", Promise)
|
|
4710
|
+
], MJAIAgentCategoryResolver.prototype, "MJAIAgents_CategoryIDArray", null);
|
|
4711
|
+
__decorate([
|
|
4712
|
+
Mutation(() => MJAIAgentCategory_),
|
|
4713
|
+
__param(0, Arg('input', () => CreateMJAIAgentCategoryInput)),
|
|
4714
|
+
__param(1, Ctx()),
|
|
4715
|
+
__param(2, PubSub()),
|
|
4716
|
+
__metadata("design:type", Function),
|
|
4717
|
+
__metadata("design:paramtypes", [CreateMJAIAgentCategoryInput, Object, PubSubEngine]),
|
|
4718
|
+
__metadata("design:returntype", Promise)
|
|
4719
|
+
], MJAIAgentCategoryResolver.prototype, "CreateMJAIAgentCategory", null);
|
|
4720
|
+
__decorate([
|
|
4721
|
+
Mutation(() => MJAIAgentCategory_),
|
|
4722
|
+
__param(0, Arg('input', () => UpdateMJAIAgentCategoryInput)),
|
|
4723
|
+
__param(1, Ctx()),
|
|
4724
|
+
__param(2, PubSub()),
|
|
4725
|
+
__metadata("design:type", Function),
|
|
4726
|
+
__metadata("design:paramtypes", [UpdateMJAIAgentCategoryInput, Object, PubSubEngine]),
|
|
4727
|
+
__metadata("design:returntype", Promise)
|
|
4728
|
+
], MJAIAgentCategoryResolver.prototype, "UpdateMJAIAgentCategory", null);
|
|
4729
|
+
__decorate([
|
|
4730
|
+
Mutation(() => MJAIAgentCategory_),
|
|
4731
|
+
__param(0, Arg('ID', () => String)),
|
|
4732
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
4733
|
+
__param(2, Ctx()),
|
|
4734
|
+
__param(3, PubSub()),
|
|
4735
|
+
__metadata("design:type", Function),
|
|
4736
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
4737
|
+
__metadata("design:returntype", Promise)
|
|
4738
|
+
], MJAIAgentCategoryResolver.prototype, "DeleteMJAIAgentCategory", null);
|
|
4739
|
+
MJAIAgentCategoryResolver = __decorate([
|
|
4740
|
+
Resolver(MJAIAgentCategory_)
|
|
4741
|
+
], MJAIAgentCategoryResolver);
|
|
4742
|
+
export { MJAIAgentCategoryResolver };
|
|
4743
|
+
//****************************************************************************
|
|
4424
4744
|
// ENTITY CLASS for MJ: AI Agent Configurations
|
|
4425
4745
|
//****************************************************************************
|
|
4426
4746
|
let MJAIAgentConfiguration_ = class MJAIAgentConfiguration_ {
|
|
@@ -4639,7 +4959,7 @@ let MJAIAgentConfigurationResolver = class MJAIAgentConfigurationResolver extend
|
|
|
4639
4959
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4640
4960
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentConfigurations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
4641
4961
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4642
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] :
|
|
4962
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4643
4963
|
return result;
|
|
4644
4964
|
}
|
|
4645
4965
|
async CreateMJAIAgentConfiguration(input, { providers, userPayload }, pubSub) {
|
|
@@ -5077,7 +5397,7 @@ let MJAIAgentDataSourceResolver = class MJAIAgentDataSourceResolver extends Reso
|
|
|
5077
5397
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5078
5398
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentDataSources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Data Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
5079
5399
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5080
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows && rows.length > 0 ? rows[0] :
|
|
5400
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5081
5401
|
return result;
|
|
5082
5402
|
}
|
|
5083
5403
|
async CreateMJAIAgentDataSource(input, { providers, userPayload }, pubSub) {
|
|
@@ -5572,7 +5892,7 @@ let MJAIAgentExampleResolver = class MJAIAgentExampleResolver extends ResolverBa
|
|
|
5572
5892
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5573
5893
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentExamples')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Examples', userPayload, EntityPermissionType.Read, 'AND');
|
|
5574
5894
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5575
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Examples', rows && rows.length > 0 ? rows[0] :
|
|
5895
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Examples', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5576
5896
|
return result;
|
|
5577
5897
|
}
|
|
5578
5898
|
async CreateMJAIAgentExample(input, { providers, userPayload }, pubSub) {
|
|
@@ -5832,7 +6152,7 @@ let MJAIAgentLearningCycleResolver = class MJAIAgentLearningCycleResolver extend
|
|
|
5832
6152
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5833
6153
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentLearningCycles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Learning Cycles', userPayload, EntityPermissionType.Read, 'AND');
|
|
5834
6154
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5835
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Learning Cycles', rows && rows.length > 0 ? rows[0] :
|
|
6155
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Learning Cycles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5836
6156
|
return result;
|
|
5837
6157
|
}
|
|
5838
6158
|
async CreateMJAIAgentLearningCycle(input, { providers, userPayload }, pubSub) {
|
|
@@ -6110,7 +6430,7 @@ let MJAIAgentModalityResolver = class MJAIAgentModalityResolver extends Resolver
|
|
|
6110
6430
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6111
6431
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
6112
6432
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6113
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] :
|
|
6433
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6114
6434
|
return result;
|
|
6115
6435
|
}
|
|
6116
6436
|
async CreateMJAIAgentModality(input, { providers, userPayload }, pubSub) {
|
|
@@ -6363,7 +6683,7 @@ let MJAIAgentModelResolver = class MJAIAgentModelResolver extends ResolverBase {
|
|
|
6363
6683
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6364
6684
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
6365
6685
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6366
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Models', rows && rows.length > 0 ? rows[0] :
|
|
6686
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6367
6687
|
return result;
|
|
6368
6688
|
}
|
|
6369
6689
|
async CreateMJAIAgentModel(input, { providers, userPayload }, pubSub) {
|
|
@@ -6610,7 +6930,7 @@ let MJAIAgentNoteTypeResolver = class MJAIAgentNoteTypeResolver extends Resolver
|
|
|
6610
6930
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6611
6931
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentNoteTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Note Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
6612
6932
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6613
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Note Types', rows && rows.length > 0 ? rows[0] :
|
|
6933
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Note Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6614
6934
|
return result;
|
|
6615
6935
|
}
|
|
6616
6936
|
async MJAIAgentNotes_AgentNoteTypeIDArray(mjaiagentnotetype_, { userPayload, providers }, pubSub) {
|
|
@@ -7116,7 +7436,7 @@ let MJAIAgentNoteResolver = class MJAIAgentNoteResolver extends ResolverBase {
|
|
|
7116
7436
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7117
7437
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentNotes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Notes', userPayload, EntityPermissionType.Read, 'AND');
|
|
7118
7438
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7119
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] :
|
|
7439
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7120
7440
|
return result;
|
|
7121
7441
|
}
|
|
7122
7442
|
async CreateMJAIAgentNote(input, { providers, userPayload }, pubSub) {
|
|
@@ -7423,7 +7743,7 @@ let MJAIAgentPermissionResolver = class MJAIAgentPermissionResolver extends Reso
|
|
|
7423
7743
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7424
7744
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
7425
7745
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7426
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows && rows.length > 0 ? rows[0] :
|
|
7746
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7427
7747
|
return result;
|
|
7428
7748
|
}
|
|
7429
7749
|
async CreateMJAIAgentPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -7732,7 +8052,7 @@ let MJAIAgentPromptResolver = class MJAIAgentPromptResolver extends ResolverBase
|
|
|
7732
8052
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7733
8053
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentPrompts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
7734
8054
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7735
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows && rows.length > 0 ? rows[0] :
|
|
8055
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7736
8056
|
return result;
|
|
7737
8057
|
}
|
|
7738
8058
|
async CreateMJAIAgentPrompt(input, { providers, userPayload }, pubSub) {
|
|
@@ -8035,7 +8355,7 @@ let MJAIAgentRelationshipResolver = class MJAIAgentRelationshipResolver extends
|
|
|
8035
8355
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8036
8356
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRelationships')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
8037
8357
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8038
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] :
|
|
8358
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8039
8359
|
return result;
|
|
8040
8360
|
}
|
|
8041
8361
|
async CreateMJAIAgentRelationship(input, { providers, userPayload }, pubSub) {
|
|
@@ -8121,6 +8441,306 @@ MJAIAgentRelationshipResolver = __decorate([
|
|
|
8121
8441
|
], MJAIAgentRelationshipResolver);
|
|
8122
8442
|
export { MJAIAgentRelationshipResolver };
|
|
8123
8443
|
//****************************************************************************
|
|
8444
|
+
// ENTITY CLASS for MJ: AI Agent Request Types
|
|
8445
|
+
//****************************************************************************
|
|
8446
|
+
let MJAIAgentRequestType_ = class MJAIAgentRequestType_ {
|
|
8447
|
+
};
|
|
8448
|
+
__decorate([
|
|
8449
|
+
Field({ description: `Primary key for the AIAgentRequestType record.` }),
|
|
8450
|
+
MaxLength(36),
|
|
8451
|
+
__metadata("design:type", String)
|
|
8452
|
+
], MJAIAgentRequestType_.prototype, "ID", void 0);
|
|
8453
|
+
__decorate([
|
|
8454
|
+
Field({ description: `Unique display name for the request type (e.g., Approval, Information, Choice).` }),
|
|
8455
|
+
MaxLength(100),
|
|
8456
|
+
__metadata("design:type", String)
|
|
8457
|
+
], MJAIAgentRequestType_.prototype, "Name", void 0);
|
|
8458
|
+
__decorate([
|
|
8459
|
+
Field({ nullable: true, description: `Explains when and how this request type should be used by agents.` }),
|
|
8460
|
+
__metadata("design:type", String)
|
|
8461
|
+
], MJAIAgentRequestType_.prototype, "Description", void 0);
|
|
8462
|
+
__decorate([
|
|
8463
|
+
Field({ nullable: true, description: `Font Awesome icon class for UI rendering of this request type.` }),
|
|
8464
|
+
MaxLength(100),
|
|
8465
|
+
__metadata("design:type", String)
|
|
8466
|
+
], MJAIAgentRequestType_.prototype, "Icon", void 0);
|
|
8467
|
+
__decorate([
|
|
8468
|
+
Field(),
|
|
8469
|
+
__metadata("design:type", Date)
|
|
8470
|
+
], MJAIAgentRequestType_.prototype, "_mj__CreatedAt", void 0);
|
|
8471
|
+
__decorate([
|
|
8472
|
+
Field(),
|
|
8473
|
+
__metadata("design:type", Date)
|
|
8474
|
+
], MJAIAgentRequestType_.prototype, "_mj__UpdatedAt", void 0);
|
|
8475
|
+
__decorate([
|
|
8476
|
+
Field({ nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining the default assignment strategy for requests of this type. Used as the lowest-priority fallback in the resolution chain.` }),
|
|
8477
|
+
__metadata("design:type", String)
|
|
8478
|
+
], MJAIAgentRequestType_.prototype, "DefaultAssignmentStrategy", void 0);
|
|
8479
|
+
__decorate([
|
|
8480
|
+
Field(() => Int, { nullable: true, description: `Default priority (1-100) for requests of this type when no explicit priority is provided. NULL means use the system default of 50.` }),
|
|
8481
|
+
__metadata("design:type", Number)
|
|
8482
|
+
], MJAIAgentRequestType_.prototype, "DefaultPriority", void 0);
|
|
8483
|
+
__decorate([
|
|
8484
|
+
Field(() => Int, { nullable: true, description: `Default expiration time in minutes for requests of this type. NULL means requests do not expire by default.` }),
|
|
8485
|
+
__metadata("design:type", Number)
|
|
8486
|
+
], MJAIAgentRequestType_.prototype, "DefaultExpirationMinutes", void 0);
|
|
8487
|
+
__decorate([
|
|
8488
|
+
Field(() => Boolean, { description: `Whether requests of this type require a structured response from the human before the agent can resume. When 0, the agent may proceed with just an acknowledgment.` }),
|
|
8489
|
+
__metadata("design:type", Boolean)
|
|
8490
|
+
], MJAIAgentRequestType_.prototype, "RequiresResponse", void 0);
|
|
8491
|
+
__decorate([
|
|
8492
|
+
Field(() => [MJAIAgentRequest_]),
|
|
8493
|
+
__metadata("design:type", Array)
|
|
8494
|
+
], MJAIAgentRequestType_.prototype, "MJAIAgentRequests_RequestTypeIDArray", void 0);
|
|
8495
|
+
MJAIAgentRequestType_ = __decorate([
|
|
8496
|
+
ObjectType({ description: `Lookup table categorizing the types of requests an agent can make to a human (e.g., Approval, Information, Choice, Review, Custom).` })
|
|
8497
|
+
], MJAIAgentRequestType_);
|
|
8498
|
+
export { MJAIAgentRequestType_ };
|
|
8499
|
+
//****************************************************************************
|
|
8500
|
+
// INPUT TYPE for MJ: AI Agent Request Types
|
|
8501
|
+
//****************************************************************************
|
|
8502
|
+
let CreateMJAIAgentRequestTypeInput = class CreateMJAIAgentRequestTypeInput {
|
|
8503
|
+
};
|
|
8504
|
+
__decorate([
|
|
8505
|
+
Field({ nullable: true }),
|
|
8506
|
+
__metadata("design:type", String)
|
|
8507
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "ID", void 0);
|
|
8508
|
+
__decorate([
|
|
8509
|
+
Field({ nullable: true }),
|
|
8510
|
+
__metadata("design:type", String)
|
|
8511
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "Name", void 0);
|
|
8512
|
+
__decorate([
|
|
8513
|
+
Field({ nullable: true }),
|
|
8514
|
+
__metadata("design:type", String)
|
|
8515
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "Description", void 0);
|
|
8516
|
+
__decorate([
|
|
8517
|
+
Field({ nullable: true }),
|
|
8518
|
+
__metadata("design:type", String)
|
|
8519
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "Icon", void 0);
|
|
8520
|
+
__decorate([
|
|
8521
|
+
Field({ nullable: true }),
|
|
8522
|
+
__metadata("design:type", String)
|
|
8523
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "DefaultAssignmentStrategy", void 0);
|
|
8524
|
+
__decorate([
|
|
8525
|
+
Field(() => Int, { nullable: true }),
|
|
8526
|
+
__metadata("design:type", Number)
|
|
8527
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "DefaultPriority", void 0);
|
|
8528
|
+
__decorate([
|
|
8529
|
+
Field(() => Int, { nullable: true }),
|
|
8530
|
+
__metadata("design:type", Number)
|
|
8531
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "DefaultExpirationMinutes", void 0);
|
|
8532
|
+
__decorate([
|
|
8533
|
+
Field(() => Boolean, { nullable: true }),
|
|
8534
|
+
__metadata("design:type", Boolean)
|
|
8535
|
+
], CreateMJAIAgentRequestTypeInput.prototype, "RequiresResponse", void 0);
|
|
8536
|
+
CreateMJAIAgentRequestTypeInput = __decorate([
|
|
8537
|
+
InputType()
|
|
8538
|
+
], CreateMJAIAgentRequestTypeInput);
|
|
8539
|
+
export { CreateMJAIAgentRequestTypeInput };
|
|
8540
|
+
//****************************************************************************
|
|
8541
|
+
// INPUT TYPE for MJ: AI Agent Request Types
|
|
8542
|
+
//****************************************************************************
|
|
8543
|
+
let UpdateMJAIAgentRequestTypeInput = class UpdateMJAIAgentRequestTypeInput {
|
|
8544
|
+
};
|
|
8545
|
+
__decorate([
|
|
8546
|
+
Field(),
|
|
8547
|
+
__metadata("design:type", String)
|
|
8548
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "ID", void 0);
|
|
8549
|
+
__decorate([
|
|
8550
|
+
Field({ nullable: true }),
|
|
8551
|
+
__metadata("design:type", String)
|
|
8552
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "Name", void 0);
|
|
8553
|
+
__decorate([
|
|
8554
|
+
Field({ nullable: true }),
|
|
8555
|
+
__metadata("design:type", String)
|
|
8556
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "Description", void 0);
|
|
8557
|
+
__decorate([
|
|
8558
|
+
Field({ nullable: true }),
|
|
8559
|
+
__metadata("design:type", String)
|
|
8560
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "Icon", void 0);
|
|
8561
|
+
__decorate([
|
|
8562
|
+
Field({ nullable: true }),
|
|
8563
|
+
__metadata("design:type", String)
|
|
8564
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "DefaultAssignmentStrategy", void 0);
|
|
8565
|
+
__decorate([
|
|
8566
|
+
Field(() => Int, { nullable: true }),
|
|
8567
|
+
__metadata("design:type", Number)
|
|
8568
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "DefaultPriority", void 0);
|
|
8569
|
+
__decorate([
|
|
8570
|
+
Field(() => Int, { nullable: true }),
|
|
8571
|
+
__metadata("design:type", Number)
|
|
8572
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "DefaultExpirationMinutes", void 0);
|
|
8573
|
+
__decorate([
|
|
8574
|
+
Field(() => Boolean, { nullable: true }),
|
|
8575
|
+
__metadata("design:type", Boolean)
|
|
8576
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "RequiresResponse", void 0);
|
|
8577
|
+
__decorate([
|
|
8578
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8579
|
+
__metadata("design:type", Array)
|
|
8580
|
+
], UpdateMJAIAgentRequestTypeInput.prototype, "OldValues___", void 0);
|
|
8581
|
+
UpdateMJAIAgentRequestTypeInput = __decorate([
|
|
8582
|
+
InputType()
|
|
8583
|
+
], UpdateMJAIAgentRequestTypeInput);
|
|
8584
|
+
export { UpdateMJAIAgentRequestTypeInput };
|
|
8585
|
+
//****************************************************************************
|
|
8586
|
+
// RESOLVER for MJ: AI Agent Request Types
|
|
8587
|
+
//****************************************************************************
|
|
8588
|
+
let RunMJAIAgentRequestTypeViewResult = class RunMJAIAgentRequestTypeViewResult {
|
|
8589
|
+
};
|
|
8590
|
+
__decorate([
|
|
8591
|
+
Field(() => [MJAIAgentRequestType_]),
|
|
8592
|
+
__metadata("design:type", Array)
|
|
8593
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "Results", void 0);
|
|
8594
|
+
__decorate([
|
|
8595
|
+
Field(() => String, { nullable: true }),
|
|
8596
|
+
__metadata("design:type", String)
|
|
8597
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
8598
|
+
__decorate([
|
|
8599
|
+
Field(() => Int, { nullable: true }),
|
|
8600
|
+
__metadata("design:type", Number)
|
|
8601
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "RowCount", void 0);
|
|
8602
|
+
__decorate([
|
|
8603
|
+
Field(() => Int, { nullable: true }),
|
|
8604
|
+
__metadata("design:type", Number)
|
|
8605
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
8606
|
+
__decorate([
|
|
8607
|
+
Field(() => Int, { nullable: true }),
|
|
8608
|
+
__metadata("design:type", Number)
|
|
8609
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
8610
|
+
__decorate([
|
|
8611
|
+
Field({ nullable: true }),
|
|
8612
|
+
__metadata("design:type", String)
|
|
8613
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
8614
|
+
__decorate([
|
|
8615
|
+
Field(() => Boolean, { nullable: false }),
|
|
8616
|
+
__metadata("design:type", Boolean)
|
|
8617
|
+
], RunMJAIAgentRequestTypeViewResult.prototype, "Success", void 0);
|
|
8618
|
+
RunMJAIAgentRequestTypeViewResult = __decorate([
|
|
8619
|
+
ObjectType()
|
|
8620
|
+
], RunMJAIAgentRequestTypeViewResult);
|
|
8621
|
+
export { RunMJAIAgentRequestTypeViewResult };
|
|
8622
|
+
let MJAIAgentRequestTypeResolver = class MJAIAgentRequestTypeResolver extends ResolverBase {
|
|
8623
|
+
async RunMJAIAgentRequestTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
8624
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8625
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
8626
|
+
}
|
|
8627
|
+
async RunMJAIAgentRequestTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
8628
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8629
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
8630
|
+
}
|
|
8631
|
+
async RunMJAIAgentRequestTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
8632
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8633
|
+
input.EntityName = 'MJ: AI Agent Request Types';
|
|
8634
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
8635
|
+
}
|
|
8636
|
+
async MJAIAgentRequestType(ID, { userPayload, providers }, pubSub) {
|
|
8637
|
+
this.CheckUserReadPermissions('MJ: AI Agent Request Types', userPayload);
|
|
8638
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8639
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequestTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Request Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
8640
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8641
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Request Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8642
|
+
return result;
|
|
8643
|
+
}
|
|
8644
|
+
async MJAIAgentRequests_RequestTypeIDArray(mjaiagentrequesttype_, { userPayload, providers }, pubSub) {
|
|
8645
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
8646
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8647
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('RequestTypeID')}='${mjaiagentrequesttype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
8648
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8649
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
8650
|
+
return result;
|
|
8651
|
+
}
|
|
8652
|
+
async CreateMJAIAgentRequestType(input, { providers, userPayload }, pubSub) {
|
|
8653
|
+
const provider = GetReadWriteProvider(providers);
|
|
8654
|
+
return this.CreateRecord('MJ: AI Agent Request Types', input, provider, userPayload, pubSub);
|
|
8655
|
+
}
|
|
8656
|
+
async UpdateMJAIAgentRequestType(input, { providers, userPayload }, pubSub) {
|
|
8657
|
+
const provider = GetReadWriteProvider(providers);
|
|
8658
|
+
return this.UpdateRecord('MJ: AI Agent Request Types', input, provider, userPayload, pubSub);
|
|
8659
|
+
}
|
|
8660
|
+
async DeleteMJAIAgentRequestType(ID, options, { providers, userPayload }, pubSub) {
|
|
8661
|
+
const provider = GetReadWriteProvider(providers);
|
|
8662
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
8663
|
+
return this.DeleteRecord('MJ: AI Agent Request Types', key, options, provider, userPayload, pubSub);
|
|
8664
|
+
}
|
|
8665
|
+
};
|
|
8666
|
+
__decorate([
|
|
8667
|
+
Query(() => RunMJAIAgentRequestTypeViewResult),
|
|
8668
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
8669
|
+
__param(1, Ctx()),
|
|
8670
|
+
__param(2, PubSub()),
|
|
8671
|
+
__metadata("design:type", Function),
|
|
8672
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
8673
|
+
__metadata("design:returntype", Promise)
|
|
8674
|
+
], MJAIAgentRequestTypeResolver.prototype, "RunMJAIAgentRequestTypeViewByID", null);
|
|
8675
|
+
__decorate([
|
|
8676
|
+
Query(() => RunMJAIAgentRequestTypeViewResult),
|
|
8677
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
8678
|
+
__param(1, Ctx()),
|
|
8679
|
+
__param(2, PubSub()),
|
|
8680
|
+
__metadata("design:type", Function),
|
|
8681
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
8682
|
+
__metadata("design:returntype", Promise)
|
|
8683
|
+
], MJAIAgentRequestTypeResolver.prototype, "RunMJAIAgentRequestTypeViewByName", null);
|
|
8684
|
+
__decorate([
|
|
8685
|
+
Query(() => RunMJAIAgentRequestTypeViewResult),
|
|
8686
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
8687
|
+
__param(1, Ctx()),
|
|
8688
|
+
__param(2, PubSub()),
|
|
8689
|
+
__metadata("design:type", Function),
|
|
8690
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
8691
|
+
__metadata("design:returntype", Promise)
|
|
8692
|
+
], MJAIAgentRequestTypeResolver.prototype, "RunMJAIAgentRequestTypeDynamicView", null);
|
|
8693
|
+
__decorate([
|
|
8694
|
+
Query(() => MJAIAgentRequestType_, { nullable: true }),
|
|
8695
|
+
__param(0, Arg('ID', () => String)),
|
|
8696
|
+
__param(1, Ctx()),
|
|
8697
|
+
__param(2, PubSub()),
|
|
8698
|
+
__metadata("design:type", Function),
|
|
8699
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
8700
|
+
__metadata("design:returntype", Promise)
|
|
8701
|
+
], MJAIAgentRequestTypeResolver.prototype, "MJAIAgentRequestType", null);
|
|
8702
|
+
__decorate([
|
|
8703
|
+
FieldResolver(() => [MJAIAgentRequest_]),
|
|
8704
|
+
__param(0, Root()),
|
|
8705
|
+
__param(1, Ctx()),
|
|
8706
|
+
__param(2, PubSub()),
|
|
8707
|
+
__metadata("design:type", Function),
|
|
8708
|
+
__metadata("design:paramtypes", [MJAIAgentRequestType_, Object, PubSubEngine]),
|
|
8709
|
+
__metadata("design:returntype", Promise)
|
|
8710
|
+
], MJAIAgentRequestTypeResolver.prototype, "MJAIAgentRequests_RequestTypeIDArray", null);
|
|
8711
|
+
__decorate([
|
|
8712
|
+
Mutation(() => MJAIAgentRequestType_),
|
|
8713
|
+
__param(0, Arg('input', () => CreateMJAIAgentRequestTypeInput)),
|
|
8714
|
+
__param(1, Ctx()),
|
|
8715
|
+
__param(2, PubSub()),
|
|
8716
|
+
__metadata("design:type", Function),
|
|
8717
|
+
__metadata("design:paramtypes", [CreateMJAIAgentRequestTypeInput, Object, PubSubEngine]),
|
|
8718
|
+
__metadata("design:returntype", Promise)
|
|
8719
|
+
], MJAIAgentRequestTypeResolver.prototype, "CreateMJAIAgentRequestType", null);
|
|
8720
|
+
__decorate([
|
|
8721
|
+
Mutation(() => MJAIAgentRequestType_),
|
|
8722
|
+
__param(0, Arg('input', () => UpdateMJAIAgentRequestTypeInput)),
|
|
8723
|
+
__param(1, Ctx()),
|
|
8724
|
+
__param(2, PubSub()),
|
|
8725
|
+
__metadata("design:type", Function),
|
|
8726
|
+
__metadata("design:paramtypes", [UpdateMJAIAgentRequestTypeInput, Object, PubSubEngine]),
|
|
8727
|
+
__metadata("design:returntype", Promise)
|
|
8728
|
+
], MJAIAgentRequestTypeResolver.prototype, "UpdateMJAIAgentRequestType", null);
|
|
8729
|
+
__decorate([
|
|
8730
|
+
Mutation(() => MJAIAgentRequestType_),
|
|
8731
|
+
__param(0, Arg('ID', () => String)),
|
|
8732
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
8733
|
+
__param(2, Ctx()),
|
|
8734
|
+
__param(3, PubSub()),
|
|
8735
|
+
__metadata("design:type", Function),
|
|
8736
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
8737
|
+
__metadata("design:returntype", Promise)
|
|
8738
|
+
], MJAIAgentRequestTypeResolver.prototype, "DeleteMJAIAgentRequestType", null);
|
|
8739
|
+
MJAIAgentRequestTypeResolver = __decorate([
|
|
8740
|
+
Resolver(MJAIAgentRequestType_)
|
|
8741
|
+
], MJAIAgentRequestTypeResolver);
|
|
8742
|
+
export { MJAIAgentRequestTypeResolver };
|
|
8743
|
+
//****************************************************************************
|
|
8124
8744
|
// ENTITY CLASS for MJ: AI Agent Requests
|
|
8125
8745
|
//****************************************************************************
|
|
8126
8746
|
let MJAIAgentRequest_ = class MJAIAgentRequest_ {
|
|
@@ -8178,6 +8798,47 @@ __decorate([
|
|
|
8178
8798
|
Field(),
|
|
8179
8799
|
__metadata("design:type", Date)
|
|
8180
8800
|
], MJAIAgentRequest_.prototype, "_mj__UpdatedAt", void 0);
|
|
8801
|
+
__decorate([
|
|
8802
|
+
Field({ nullable: true, description: `Foreign key to AIAgentRequestType. Categorizes the purpose of this request (Approval, Information, Choice, Review, Custom).` }),
|
|
8803
|
+
MaxLength(36),
|
|
8804
|
+
__metadata("design:type", String)
|
|
8805
|
+
], MJAIAgentRequest_.prototype, "RequestTypeID", void 0);
|
|
8806
|
+
__decorate([
|
|
8807
|
+
Field({ nullable: true, description: `JSON-serialized AgentResponseForm defining the structured input form the agent presents to the human. Uses the same form types as ConversationDetail.ResponseForm.` }),
|
|
8808
|
+
__metadata("design:type", String)
|
|
8809
|
+
], MJAIAgentRequest_.prototype, "ResponseSchema", void 0);
|
|
8810
|
+
__decorate([
|
|
8811
|
+
Field({ nullable: true, description: `JSON structured response data provided by the human, conforming to the ResponseSchema definition.` }),
|
|
8812
|
+
__metadata("design:type", String)
|
|
8813
|
+
], MJAIAgentRequest_.prototype, "ResponseData", void 0);
|
|
8814
|
+
__decorate([
|
|
8815
|
+
Field(() => Int, { description: `Urgency level of the request as an integer from 1 (lowest) to 100 (highest). Default is 50. Suggested ranges: 1-25 Low, 26-50 Normal, 51-75 High, 76-100 Critical. Used for notification routing and dashboard sorting.` }),
|
|
8816
|
+
__metadata("design:type", Number)
|
|
8817
|
+
], MJAIAgentRequest_.prototype, "Priority", void 0);
|
|
8818
|
+
__decorate([
|
|
8819
|
+
Field({ nullable: true, description: `Optional deadline for the human to respond. After this time the request may be marked Expired by a background process.` }),
|
|
8820
|
+
__metadata("design:type", Date)
|
|
8821
|
+
], MJAIAgentRequest_.prototype, "ExpiresAt", void 0);
|
|
8822
|
+
__decorate([
|
|
8823
|
+
Field({ nullable: true, description: `Foreign key to AIAgentRun. The agent run that created this request. Used to trace request origin in run chains.` }),
|
|
8824
|
+
MaxLength(36),
|
|
8825
|
+
__metadata("design:type", String)
|
|
8826
|
+
], MJAIAgentRequest_.prototype, "OriginatingAgentRunID", void 0);
|
|
8827
|
+
__decorate([
|
|
8828
|
+
Field({ nullable: true, description: `Foreign key to AIAgentRunStep. The specific execution step that triggered this request.` }),
|
|
8829
|
+
MaxLength(36),
|
|
8830
|
+
__metadata("design:type", String)
|
|
8831
|
+
], MJAIAgentRequest_.prototype, "OriginatingAgentRunStepID", void 0);
|
|
8832
|
+
__decorate([
|
|
8833
|
+
Field({ nullable: true, description: `Foreign key to AIAgentRun. The new agent run spawned after the human responds. NULL until a response triggers a resuming run.` }),
|
|
8834
|
+
MaxLength(36),
|
|
8835
|
+
__metadata("design:type", String)
|
|
8836
|
+
], MJAIAgentRequest_.prototype, "ResumingAgentRunID", void 0);
|
|
8837
|
+
__decorate([
|
|
8838
|
+
Field({ nullable: true, description: `Identifies where the response originated: Conversation (handled by chat resolver), Dashboard (slide-in panel), or API (external integration). Used by the server-side entity subclass to determine whether agent resumption is needed.` }),
|
|
8839
|
+
MaxLength(20),
|
|
8840
|
+
__metadata("design:type", String)
|
|
8841
|
+
], MJAIAgentRequest_.prototype, "ResponseSource", void 0);
|
|
8181
8842
|
__decorate([
|
|
8182
8843
|
Field({ nullable: true }),
|
|
8183
8844
|
MaxLength(255),
|
|
@@ -8193,6 +8854,26 @@ __decorate([
|
|
|
8193
8854
|
MaxLength(100),
|
|
8194
8855
|
__metadata("design:type", String)
|
|
8195
8856
|
], MJAIAgentRequest_.prototype, "ResponseByUser", void 0);
|
|
8857
|
+
__decorate([
|
|
8858
|
+
Field({ nullable: true }),
|
|
8859
|
+
MaxLength(100),
|
|
8860
|
+
__metadata("design:type", String)
|
|
8861
|
+
], MJAIAgentRequest_.prototype, "RequestType", void 0);
|
|
8862
|
+
__decorate([
|
|
8863
|
+
Field({ nullable: true }),
|
|
8864
|
+
MaxLength(255),
|
|
8865
|
+
__metadata("design:type", String)
|
|
8866
|
+
], MJAIAgentRequest_.prototype, "OriginatingAgentRun", void 0);
|
|
8867
|
+
__decorate([
|
|
8868
|
+
Field({ nullable: true }),
|
|
8869
|
+
MaxLength(255),
|
|
8870
|
+
__metadata("design:type", String)
|
|
8871
|
+
], MJAIAgentRequest_.prototype, "OriginatingAgentRunStep", void 0);
|
|
8872
|
+
__decorate([
|
|
8873
|
+
Field({ nullable: true }),
|
|
8874
|
+
MaxLength(255),
|
|
8875
|
+
__metadata("design:type", String)
|
|
8876
|
+
], MJAIAgentRequest_.prototype, "ResumingAgentRun", void 0);
|
|
8196
8877
|
MJAIAgentRequest_ = __decorate([
|
|
8197
8878
|
ObjectType({ description: `Table to log AI Agent requests, responses, and their statuses.` })
|
|
8198
8879
|
], MJAIAgentRequest_);
|
|
@@ -8242,6 +8923,42 @@ __decorate([
|
|
|
8242
8923
|
Field({ nullable: true }),
|
|
8243
8924
|
__metadata("design:type", String)
|
|
8244
8925
|
], CreateMJAIAgentRequestInput.prototype, "Comments", void 0);
|
|
8926
|
+
__decorate([
|
|
8927
|
+
Field({ nullable: true }),
|
|
8928
|
+
__metadata("design:type", String)
|
|
8929
|
+
], CreateMJAIAgentRequestInput.prototype, "RequestTypeID", void 0);
|
|
8930
|
+
__decorate([
|
|
8931
|
+
Field({ nullable: true }),
|
|
8932
|
+
__metadata("design:type", String)
|
|
8933
|
+
], CreateMJAIAgentRequestInput.prototype, "ResponseSchema", void 0);
|
|
8934
|
+
__decorate([
|
|
8935
|
+
Field({ nullable: true }),
|
|
8936
|
+
__metadata("design:type", String)
|
|
8937
|
+
], CreateMJAIAgentRequestInput.prototype, "ResponseData", void 0);
|
|
8938
|
+
__decorate([
|
|
8939
|
+
Field(() => Int, { nullable: true }),
|
|
8940
|
+
__metadata("design:type", Number)
|
|
8941
|
+
], CreateMJAIAgentRequestInput.prototype, "Priority", void 0);
|
|
8942
|
+
__decorate([
|
|
8943
|
+
Field({ nullable: true }),
|
|
8944
|
+
__metadata("design:type", Date)
|
|
8945
|
+
], CreateMJAIAgentRequestInput.prototype, "ExpiresAt", void 0);
|
|
8946
|
+
__decorate([
|
|
8947
|
+
Field({ nullable: true }),
|
|
8948
|
+
__metadata("design:type", String)
|
|
8949
|
+
], CreateMJAIAgentRequestInput.prototype, "OriginatingAgentRunID", void 0);
|
|
8950
|
+
__decorate([
|
|
8951
|
+
Field({ nullable: true }),
|
|
8952
|
+
__metadata("design:type", String)
|
|
8953
|
+
], CreateMJAIAgentRequestInput.prototype, "OriginatingAgentRunStepID", void 0);
|
|
8954
|
+
__decorate([
|
|
8955
|
+
Field({ nullable: true }),
|
|
8956
|
+
__metadata("design:type", String)
|
|
8957
|
+
], CreateMJAIAgentRequestInput.prototype, "ResumingAgentRunID", void 0);
|
|
8958
|
+
__decorate([
|
|
8959
|
+
Field({ nullable: true }),
|
|
8960
|
+
__metadata("design:type", String)
|
|
8961
|
+
], CreateMJAIAgentRequestInput.prototype, "ResponseSource", void 0);
|
|
8245
8962
|
CreateMJAIAgentRequestInput = __decorate([
|
|
8246
8963
|
InputType()
|
|
8247
8964
|
], CreateMJAIAgentRequestInput);
|
|
@@ -8291,6 +9008,42 @@ __decorate([
|
|
|
8291
9008
|
Field({ nullable: true }),
|
|
8292
9009
|
__metadata("design:type", String)
|
|
8293
9010
|
], UpdateMJAIAgentRequestInput.prototype, "Comments", void 0);
|
|
9011
|
+
__decorate([
|
|
9012
|
+
Field({ nullable: true }),
|
|
9013
|
+
__metadata("design:type", String)
|
|
9014
|
+
], UpdateMJAIAgentRequestInput.prototype, "RequestTypeID", void 0);
|
|
9015
|
+
__decorate([
|
|
9016
|
+
Field({ nullable: true }),
|
|
9017
|
+
__metadata("design:type", String)
|
|
9018
|
+
], UpdateMJAIAgentRequestInput.prototype, "ResponseSchema", void 0);
|
|
9019
|
+
__decorate([
|
|
9020
|
+
Field({ nullable: true }),
|
|
9021
|
+
__metadata("design:type", String)
|
|
9022
|
+
], UpdateMJAIAgentRequestInput.prototype, "ResponseData", void 0);
|
|
9023
|
+
__decorate([
|
|
9024
|
+
Field(() => Int, { nullable: true }),
|
|
9025
|
+
__metadata("design:type", Number)
|
|
9026
|
+
], UpdateMJAIAgentRequestInput.prototype, "Priority", void 0);
|
|
9027
|
+
__decorate([
|
|
9028
|
+
Field({ nullable: true }),
|
|
9029
|
+
__metadata("design:type", Date)
|
|
9030
|
+
], UpdateMJAIAgentRequestInput.prototype, "ExpiresAt", void 0);
|
|
9031
|
+
__decorate([
|
|
9032
|
+
Field({ nullable: true }),
|
|
9033
|
+
__metadata("design:type", String)
|
|
9034
|
+
], UpdateMJAIAgentRequestInput.prototype, "OriginatingAgentRunID", void 0);
|
|
9035
|
+
__decorate([
|
|
9036
|
+
Field({ nullable: true }),
|
|
9037
|
+
__metadata("design:type", String)
|
|
9038
|
+
], UpdateMJAIAgentRequestInput.prototype, "OriginatingAgentRunStepID", void 0);
|
|
9039
|
+
__decorate([
|
|
9040
|
+
Field({ nullable: true }),
|
|
9041
|
+
__metadata("design:type", String)
|
|
9042
|
+
], UpdateMJAIAgentRequestInput.prototype, "ResumingAgentRunID", void 0);
|
|
9043
|
+
__decorate([
|
|
9044
|
+
Field({ nullable: true }),
|
|
9045
|
+
__metadata("design:type", String)
|
|
9046
|
+
], UpdateMJAIAgentRequestInput.prototype, "ResponseSource", void 0);
|
|
8294
9047
|
__decorate([
|
|
8295
9048
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8296
9049
|
__metadata("design:type", Array)
|
|
@@ -8355,7 +9108,7 @@ let MJAIAgentRequestResolver = class MJAIAgentRequestResolver extends ResolverBa
|
|
|
8355
9108
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8356
9109
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
8357
9110
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8358
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Requests', rows && rows.length > 0 ? rows[0] :
|
|
9111
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Requests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8359
9112
|
return result;
|
|
8360
9113
|
}
|
|
8361
9114
|
async CreateMJAIAgentRequest(input, { providers, userPayload }, pubSub) {
|
|
@@ -8767,7 +9520,7 @@ let MJAIAgentRunMediaResolver = class MJAIAgentRunMediaResolver extends Resolver
|
|
|
8767
9520
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8768
9521
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRunMedias')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
8769
9522
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8770
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] :
|
|
9523
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8771
9524
|
return result;
|
|
8772
9525
|
}
|
|
8773
9526
|
async CreateMJAIAgentRunMedia(input, { providers, userPayload }, pubSub) {
|
|
@@ -8976,6 +9729,10 @@ __decorate([
|
|
|
8976
9729
|
Field(() => [MJAIAgentRunStep_]),
|
|
8977
9730
|
__metadata("design:type", Array)
|
|
8978
9731
|
], MJAIAgentRunStep_.prototype, "MJAIAgentRunSteps_ParentIDArray", void 0);
|
|
9732
|
+
__decorate([
|
|
9733
|
+
Field(() => [MJAIAgentRequest_]),
|
|
9734
|
+
__metadata("design:type", Array)
|
|
9735
|
+
], MJAIAgentRunStep_.prototype, "MJAIAgentRequests_OriginatingAgentRunStepIDArray", void 0);
|
|
8979
9736
|
MJAIAgentRunStep_ = __decorate([
|
|
8980
9737
|
ObjectType({ description: `Provides basic, step-by-step tracking of agent execution. Each step represents a discrete action within an agent run, such as prompt execution, tool usage, decision making, or sub-agent coordination.` })
|
|
8981
9738
|
], MJAIAgentRunStep_);
|
|
@@ -9218,7 +9975,7 @@ let MJAIAgentRunStepResolver = class MJAIAgentRunStepResolver extends ResolverBa
|
|
|
9218
9975
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9219
9976
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRunSteps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
9220
9977
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9221
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] :
|
|
9978
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9222
9979
|
return result;
|
|
9223
9980
|
}
|
|
9224
9981
|
async MJAIAgentRunSteps_ParentIDArray(mjaiagentrunstep_, { userPayload, providers }, pubSub) {
|
|
@@ -9229,6 +9986,14 @@ let MJAIAgentRunStepResolver = class MJAIAgentRunStepResolver extends ResolverBa
|
|
|
9229
9986
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows, this.GetUserFromPayload(userPayload));
|
|
9230
9987
|
return result;
|
|
9231
9988
|
}
|
|
9989
|
+
async MJAIAgentRequests_OriginatingAgentRunStepIDArray(mjaiagentrunstep_, { userPayload, providers }, pubSub) {
|
|
9990
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
9991
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9992
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('OriginatingAgentRunStepID')}='${mjaiagentrunstep_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
9993
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9994
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
9995
|
+
return result;
|
|
9996
|
+
}
|
|
9232
9997
|
async CreateMJAIAgentRunStep(input, { providers, userPayload }, pubSub) {
|
|
9233
9998
|
const provider = GetReadWriteProvider(providers);
|
|
9234
9999
|
return this.CreateRecord('MJ: AI Agent Run Steps', input, provider, userPayload, pubSub);
|
|
@@ -9288,6 +10053,15 @@ __decorate([
|
|
|
9288
10053
|
__metadata("design:paramtypes", [MJAIAgentRunStep_, Object, PubSubEngine]),
|
|
9289
10054
|
__metadata("design:returntype", Promise)
|
|
9290
10055
|
], MJAIAgentRunStepResolver.prototype, "MJAIAgentRunSteps_ParentIDArray", null);
|
|
10056
|
+
__decorate([
|
|
10057
|
+
FieldResolver(() => [MJAIAgentRequest_]),
|
|
10058
|
+
__param(0, Root()),
|
|
10059
|
+
__param(1, Ctx()),
|
|
10060
|
+
__param(2, PubSub()),
|
|
10061
|
+
__metadata("design:type", Function),
|
|
10062
|
+
__metadata("design:paramtypes", [MJAIAgentRunStep_, Object, PubSubEngine]),
|
|
10063
|
+
__metadata("design:returntype", Promise)
|
|
10064
|
+
], MJAIAgentRunStepResolver.prototype, "MJAIAgentRequests_OriginatingAgentRunStepIDArray", null);
|
|
9291
10065
|
__decorate([
|
|
9292
10066
|
Mutation(() => MJAIAgentRunStep_),
|
|
9293
10067
|
__param(0, Arg('input', () => CreateMJAIAgentRunStepInput)),
|
|
@@ -9614,6 +10388,14 @@ __decorate([
|
|
|
9614
10388
|
Field(() => [MJAIAgentRunMedia_]),
|
|
9615
10389
|
__metadata("design:type", Array)
|
|
9616
10390
|
], MJAIAgentRun_.prototype, "MJAIAgentRunMedias_AgentRunIDArray", void 0);
|
|
10391
|
+
__decorate([
|
|
10392
|
+
Field(() => [MJAIAgentRequest_]),
|
|
10393
|
+
__metadata("design:type", Array)
|
|
10394
|
+
], MJAIAgentRun_.prototype, "MJAIAgentRequests_OriginatingAgentRunIDArray", void 0);
|
|
10395
|
+
__decorate([
|
|
10396
|
+
Field(() => [MJAIAgentRequest_]),
|
|
10397
|
+
__metadata("design:type", Array)
|
|
10398
|
+
], MJAIAgentRun_.prototype, "MJAIAgentRequests_ResumingAgentRunIDArray", void 0);
|
|
9617
10399
|
__decorate([
|
|
9618
10400
|
Field(() => [MJAIPromptRun_]),
|
|
9619
10401
|
__metadata("design:type", Array)
|
|
@@ -10048,7 +10830,7 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
|
|
|
10048
10830
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10049
10831
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
10050
10832
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10051
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] :
|
|
10833
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10052
10834
|
return result;
|
|
10053
10835
|
}
|
|
10054
10836
|
async MJAIAgentRunSteps_AgentRunIDArray(mjaiagentrun_, { userPayload, providers }, pubSub) {
|
|
@@ -10091,6 +10873,22 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
|
|
|
10091
10873
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
10092
10874
|
return result;
|
|
10093
10875
|
}
|
|
10876
|
+
async MJAIAgentRequests_OriginatingAgentRunIDArray(mjaiagentrun_, { userPayload, providers }, pubSub) {
|
|
10877
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
10878
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10879
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('OriginatingAgentRunID')}='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
10880
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10881
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
10882
|
+
return result;
|
|
10883
|
+
}
|
|
10884
|
+
async MJAIAgentRequests_ResumingAgentRunIDArray(mjaiagentrun_, { userPayload, providers }, pubSub) {
|
|
10885
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
10886
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10887
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('ResumingAgentRunID')}='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
10888
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10889
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
10890
|
+
return result;
|
|
10891
|
+
}
|
|
10094
10892
|
async MJAIPromptRuns_AgentRunIDArray(mjaiagentrun_, { userPayload, providers }, pubSub) {
|
|
10095
10893
|
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
10096
10894
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -10202,6 +11000,24 @@ __decorate([
|
|
|
10202
11000
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
10203
11001
|
__metadata("design:returntype", Promise)
|
|
10204
11002
|
], MJAIAgentRunResolver.prototype, "MJAIAgentRunMedias_AgentRunIDArray", null);
|
|
11003
|
+
__decorate([
|
|
11004
|
+
FieldResolver(() => [MJAIAgentRequest_]),
|
|
11005
|
+
__param(0, Root()),
|
|
11006
|
+
__param(1, Ctx()),
|
|
11007
|
+
__param(2, PubSub()),
|
|
11008
|
+
__metadata("design:type", Function),
|
|
11009
|
+
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
11010
|
+
__metadata("design:returntype", Promise)
|
|
11011
|
+
], MJAIAgentRunResolver.prototype, "MJAIAgentRequests_OriginatingAgentRunIDArray", null);
|
|
11012
|
+
__decorate([
|
|
11013
|
+
FieldResolver(() => [MJAIAgentRequest_]),
|
|
11014
|
+
__param(0, Root()),
|
|
11015
|
+
__param(1, Ctx()),
|
|
11016
|
+
__param(2, PubSub()),
|
|
11017
|
+
__metadata("design:type", Function),
|
|
11018
|
+
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
11019
|
+
__metadata("design:returntype", Promise)
|
|
11020
|
+
], MJAIAgentRunResolver.prototype, "MJAIAgentRequests_ResumingAgentRunIDArray", null);
|
|
10205
11021
|
__decorate([
|
|
10206
11022
|
FieldResolver(() => [MJAIPromptRun_]),
|
|
10207
11023
|
__param(0, Root()),
|
|
@@ -10445,7 +11261,7 @@ let MJAIAgentStepPathResolver = class MJAIAgentStepPathResolver extends Resolver
|
|
|
10445
11261
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10446
11262
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentStepPaths')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Step Paths', userPayload, EntityPermissionType.Read, 'AND');
|
|
10447
11263
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10448
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] :
|
|
11264
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10449
11265
|
return result;
|
|
10450
11266
|
}
|
|
10451
11267
|
async CreateMJAIAgentStepPath(input, { providers, userPayload }, pubSub) {
|
|
@@ -10915,7 +11731,7 @@ let MJAIAgentStepResolver = class MJAIAgentStepResolver extends ResolverBase {
|
|
|
10915
11731
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10916
11732
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentSteps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
10917
11733
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10918
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] :
|
|
11734
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10919
11735
|
return result;
|
|
10920
11736
|
}
|
|
10921
11737
|
async MJAIAgentStepPaths_OriginStepIDArray(mjaiagentstep_, { userPayload, providers }, pubSub) {
|
|
@@ -11098,6 +11914,10 @@ __decorate([
|
|
|
11098
11914
|
Field({ nullable: true, description: `JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.` }),
|
|
11099
11915
|
__metadata("design:type", String)
|
|
11100
11916
|
], MJAIAgentType_.prototype, "PromptParamsSchema", void 0);
|
|
11917
|
+
__decorate([
|
|
11918
|
+
Field({ nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining the default assignment strategy for all agents of this type. Overridden by per-invocation or category-level strategies in the resolution chain.` }),
|
|
11919
|
+
__metadata("design:type", String)
|
|
11920
|
+
], MJAIAgentType_.prototype, "AssignmentStrategy", void 0);
|
|
11101
11921
|
__decorate([
|
|
11102
11922
|
Field({ nullable: true }),
|
|
11103
11923
|
MaxLength(255),
|
|
@@ -11160,6 +11980,10 @@ __decorate([
|
|
|
11160
11980
|
Field({ nullable: true }),
|
|
11161
11981
|
__metadata("design:type", String)
|
|
11162
11982
|
], CreateMJAIAgentTypeInput.prototype, "PromptParamsSchema", void 0);
|
|
11983
|
+
__decorate([
|
|
11984
|
+
Field({ nullable: true }),
|
|
11985
|
+
__metadata("design:type", String)
|
|
11986
|
+
], CreateMJAIAgentTypeInput.prototype, "AssignmentStrategy", void 0);
|
|
11163
11987
|
CreateMJAIAgentTypeInput = __decorate([
|
|
11164
11988
|
InputType()
|
|
11165
11989
|
], CreateMJAIAgentTypeInput);
|
|
@@ -11213,6 +12037,10 @@ __decorate([
|
|
|
11213
12037
|
Field({ nullable: true }),
|
|
11214
12038
|
__metadata("design:type", String)
|
|
11215
12039
|
], UpdateMJAIAgentTypeInput.prototype, "PromptParamsSchema", void 0);
|
|
12040
|
+
__decorate([
|
|
12041
|
+
Field({ nullable: true }),
|
|
12042
|
+
__metadata("design:type", String)
|
|
12043
|
+
], UpdateMJAIAgentTypeInput.prototype, "AssignmentStrategy", void 0);
|
|
11216
12044
|
__decorate([
|
|
11217
12045
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
11218
12046
|
__metadata("design:type", Array)
|
|
@@ -11277,7 +12105,7 @@ let MJAIAgentTypeResolver = class MJAIAgentTypeResolver extends ResolverBase {
|
|
|
11277
12105
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11278
12106
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
11279
12107
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
11280
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Types', rows && rows.length > 0 ? rows[0] :
|
|
12108
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11281
12109
|
return result;
|
|
11282
12110
|
}
|
|
11283
12111
|
async MJAIAgents_TypeIDArray(mjaiagenttype_, { userPayload, providers }, pubSub) {
|
|
@@ -11658,6 +12486,11 @@ __decorate([
|
|
|
11658
12486
|
Field({ nullable: true, description: `JSON configuration for optional reranking of retrieved memory items. Schema: { enabled: boolean, rerankerModelId: string, retrievalMultiplier: number (default 3), minRelevanceThreshold: number (default 0.5), rerankPromptId?: string, contextFields?: string[], fallbackOnError: boolean (default true) }. When null or disabled, vector search results are used directly without reranking.` }),
|
|
11659
12487
|
__metadata("design:type", String)
|
|
11660
12488
|
], MJAIAgent_.prototype, "RerankerConfiguration", void 0);
|
|
12489
|
+
__decorate([
|
|
12490
|
+
Field({ nullable: true, description: `Foreign key to AIAgentCategory. Assigns this agent to an organizational category for grouping, filtering, and inherited assignment strategy resolution.` }),
|
|
12491
|
+
MaxLength(36),
|
|
12492
|
+
__metadata("design:type", String)
|
|
12493
|
+
], MJAIAgent_.prototype, "CategoryID", void 0);
|
|
11661
12494
|
__decorate([
|
|
11662
12495
|
Field({ nullable: true }),
|
|
11663
12496
|
MaxLength(255),
|
|
@@ -11688,6 +12521,11 @@ __decorate([
|
|
|
11688
12521
|
MaxLength(50),
|
|
11689
12522
|
__metadata("design:type", String)
|
|
11690
12523
|
], MJAIAgent_.prototype, "AttachmentStorageProvider", void 0);
|
|
12524
|
+
__decorate([
|
|
12525
|
+
Field({ nullable: true }),
|
|
12526
|
+
MaxLength(200),
|
|
12527
|
+
__metadata("design:type", String)
|
|
12528
|
+
], MJAIAgent_.prototype, "Category", void 0);
|
|
11691
12529
|
__decorate([
|
|
11692
12530
|
Field({ nullable: true }),
|
|
11693
12531
|
MaxLength(36),
|
|
@@ -12026,6 +12864,10 @@ __decorate([
|
|
|
12026
12864
|
Field({ nullable: true }),
|
|
12027
12865
|
__metadata("design:type", String)
|
|
12028
12866
|
], CreateMJAIAgentInput.prototype, "RerankerConfiguration", void 0);
|
|
12867
|
+
__decorate([
|
|
12868
|
+
Field({ nullable: true }),
|
|
12869
|
+
__metadata("design:type", String)
|
|
12870
|
+
], CreateMJAIAgentInput.prototype, "CategoryID", void 0);
|
|
12029
12871
|
CreateMJAIAgentInput = __decorate([
|
|
12030
12872
|
InputType()
|
|
12031
12873
|
], CreateMJAIAgentInput);
|
|
@@ -12271,6 +13113,10 @@ __decorate([
|
|
|
12271
13113
|
Field({ nullable: true }),
|
|
12272
13114
|
__metadata("design:type", String)
|
|
12273
13115
|
], UpdateMJAIAgentInput.prototype, "RerankerConfiguration", void 0);
|
|
13116
|
+
__decorate([
|
|
13117
|
+
Field({ nullable: true }),
|
|
13118
|
+
__metadata("design:type", String)
|
|
13119
|
+
], UpdateMJAIAgentInput.prototype, "CategoryID", void 0);
|
|
12274
13120
|
__decorate([
|
|
12275
13121
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
12276
13122
|
__metadata("design:type", Array)
|
|
@@ -12335,7 +13181,7 @@ let MJAIAgentResolver = class MJAIAgentResolver extends ResolverBase {
|
|
|
12335
13181
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12336
13182
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
12337
13183
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
12338
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agents', rows && rows.length > 0 ? rows[0] :
|
|
13184
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12339
13185
|
return result;
|
|
12340
13186
|
}
|
|
12341
13187
|
async MJAIAgentModels_AgentIDArray(mjaiagent_, { userPayload, providers }, pubSub) {
|
|
@@ -13009,7 +13855,7 @@ let MJAIArchitectureResolver = class MJAIArchitectureResolver extends ResolverBa
|
|
|
13009
13855
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13010
13856
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIArchitectures')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Architectures', userPayload, EntityPermissionType.Read, 'AND');
|
|
13011
13857
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
13012
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] :
|
|
13858
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13013
13859
|
return result;
|
|
13014
13860
|
}
|
|
13015
13861
|
async MJAIArchitectures_ParentArchitectureIDArray(mjaiarchitecture_, { userPayload, providers }, pubSub) {
|
|
@@ -13304,7 +14150,7 @@ let MJAIConfigurationParamResolver = class MJAIConfigurationParamResolver extend
|
|
|
13304
14150
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13305
14151
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIConfigurationParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configuration Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
13306
14152
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
13307
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configuration Params', rows && rows.length > 0 ? rows[0] :
|
|
14153
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configuration Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13308
14154
|
return result;
|
|
13309
14155
|
}
|
|
13310
14156
|
async CreateMJAIConfigurationParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -13669,7 +14515,7 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
13669
14515
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13670
14516
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIConfigurations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
13671
14517
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
13672
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configurations', rows && rows.length > 0 ? rows[0] :
|
|
14518
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13673
14519
|
return result;
|
|
13674
14520
|
}
|
|
13675
14521
|
async MJAIConfigurationParams_ConfigurationIDArray(mjaiconfiguration_, { userPayload, providers }, pubSub) {
|
|
@@ -14107,7 +14953,7 @@ let MJAICredentialBindingResolver = class MJAICredentialBindingResolver extends
|
|
|
14107
14953
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14108
14954
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAICredentialBindings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Credential Bindings', userPayload, EntityPermissionType.Read, 'AND');
|
|
14109
14955
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
14110
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows && rows.length > 0 ? rows[0] :
|
|
14956
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14111
14957
|
return result;
|
|
14112
14958
|
}
|
|
14113
14959
|
async CreateMJAICredentialBinding(input, { providers, userPayload }, pubSub) {
|
|
@@ -14429,7 +15275,7 @@ let MJAIModalityResolver = class MJAIModalityResolver extends ResolverBase {
|
|
|
14429
15275
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14430
15276
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
14431
15277
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
14432
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] :
|
|
15278
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14433
15279
|
return result;
|
|
14434
15280
|
}
|
|
14435
15281
|
async MJAIAgentModalities_ModalityIDArray(mjaimodality_, { userPayload, providers }, pubSub) {
|
|
@@ -14789,7 +15635,7 @@ let MJAIModelActionResolver = class MJAIModelActionResolver extends ResolverBase
|
|
|
14789
15635
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14790
15636
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
14791
15637
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
14792
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Actions', rows && rows.length > 0 ? rows[0] :
|
|
15638
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14793
15639
|
return result;
|
|
14794
15640
|
}
|
|
14795
15641
|
async AllMJAIModelActions({ userPayload, providers }, pubSub) {
|
|
@@ -15071,7 +15917,7 @@ let MJAIModelArchitectureResolver = class MJAIModelArchitectureResolver extends
|
|
|
15071
15917
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15072
15918
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelArchitectures')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Architectures', userPayload, EntityPermissionType.Read, 'AND');
|
|
15073
15919
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15074
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] :
|
|
15920
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15075
15921
|
return result;
|
|
15076
15922
|
}
|
|
15077
15923
|
async CreateMJAIModelArchitecture(input, { providers, userPayload }, pubSub) {
|
|
@@ -15435,7 +16281,7 @@ let MJAIModelCostResolver = class MJAIModelCostResolver extends ResolverBase {
|
|
|
15435
16281
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15436
16282
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelCosts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Costs', userPayload, EntityPermissionType.Read, 'AND');
|
|
15437
16283
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15438
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Costs', rows && rows.length > 0 ? rows[0] :
|
|
16284
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Costs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15439
16285
|
return result;
|
|
15440
16286
|
}
|
|
15441
16287
|
async CreateMJAIModelCost(input, { providers, userPayload }, pubSub) {
|
|
@@ -15762,7 +16608,7 @@ let MJAIModelModalityResolver = class MJAIModelModalityResolver extends Resolver
|
|
|
15762
16608
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15763
16609
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
15764
16610
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15765
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] :
|
|
16611
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15766
16612
|
return result;
|
|
15767
16613
|
}
|
|
15768
16614
|
async CreateMJAIModelModality(input, { providers, userPayload }, pubSub) {
|
|
@@ -15984,7 +16830,7 @@ let MJAIModelPriceTypeResolver = class MJAIModelPriceTypeResolver extends Resolv
|
|
|
15984
16830
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15985
16831
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelPriceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Price Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
15986
16832
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15987
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Types', rows && rows.length > 0 ? rows[0] :
|
|
16833
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15988
16834
|
return result;
|
|
15989
16835
|
}
|
|
15990
16836
|
async MJAIModelCosts_PriceTypeIDArray(mjaimodelpricetype_, { userPayload, providers }, pubSub) {
|
|
@@ -16236,7 +17082,7 @@ let MJAIModelPriceUnitTypeResolver = class MJAIModelPriceUnitTypeResolver extend
|
|
|
16236
17082
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16237
17083
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelPriceUnitTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Price Unit Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
16238
17084
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16239
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Unit Types', rows && rows.length > 0 ? rows[0] :
|
|
17085
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Unit Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16240
17086
|
return result;
|
|
16241
17087
|
}
|
|
16242
17088
|
async MJAIModelCosts_UnitTypeIDArray(mjaimodelpriceunittype_, { userPayload, providers }, pubSub) {
|
|
@@ -16515,7 +17361,7 @@ let MJAIModelTypeResolver = class MJAIModelTypeResolver extends ResolverBase {
|
|
|
16515
17361
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16516
17362
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
16517
17363
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16518
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Types', rows && rows.length > 0 ? rows[0] :
|
|
17364
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16519
17365
|
return result;
|
|
16520
17366
|
}
|
|
16521
17367
|
async AllMJAIModelTypes({ userPayload, providers }, pubSub) {
|
|
@@ -16941,7 +17787,7 @@ let MJAIModelVendorResolver = class MJAIModelVendorResolver extends ResolverBase
|
|
|
16941
17787
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16942
17788
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelVendors')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
16943
17789
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16944
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Vendors', rows && rows.length > 0 ? rows[0] :
|
|
17790
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16945
17791
|
return result;
|
|
16946
17792
|
}
|
|
16947
17793
|
async MJAICredentialBindings_AIModelVendorIDArray(mjaimodelvendor_, { userPayload, providers }, pubSub) {
|
|
@@ -17452,7 +18298,7 @@ let MJAIModelResolver = class MJAIModelResolver extends ResolverBase {
|
|
|
17452
18298
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17453
18299
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
17454
18300
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17455
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Models', rows && rows.length > 0 ? rows[0] :
|
|
18301
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17456
18302
|
return result;
|
|
17457
18303
|
}
|
|
17458
18304
|
async AllMJAIModels({ userPayload, providers }, pubSub) {
|
|
@@ -18074,7 +18920,7 @@ let MJAIPromptCategoryResolver = class MJAIPromptCategoryResolver extends Resolv
|
|
|
18074
18920
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18075
18921
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
18076
18922
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18077
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Categories', rows && rows.length > 0 ? rows[0] :
|
|
18923
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18078
18924
|
return result;
|
|
18079
18925
|
}
|
|
18080
18926
|
async MJAIPrompts_CategoryIDArray(mjaipromptcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -18476,7 +19322,7 @@ let MJAIPromptModelResolver = class MJAIPromptModelResolver extends ResolverBase
|
|
|
18476
19322
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18477
19323
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
18478
19324
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18479
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Models', rows && rows.length > 0 ? rows[0] :
|
|
19325
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18480
19326
|
return result;
|
|
18481
19327
|
}
|
|
18482
19328
|
async MJAICredentialBindings_AIPromptModelIDArray(mjaipromptmodel_, { userPayload, providers }, pubSub) {
|
|
@@ -18878,7 +19724,7 @@ let MJAIPromptRunMediaResolver = class MJAIPromptRunMediaResolver extends Resolv
|
|
|
18878
19724
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18879
19725
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptRunMedias')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
18880
19726
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18881
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] :
|
|
19727
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18882
19728
|
return result;
|
|
18883
19729
|
}
|
|
18884
19730
|
async MJAIAgentRunMedias_SourcePromptRunMediaIDArray(mjaipromptrunmedia_, { userPayload, providers }, pubSub) {
|
|
@@ -20169,7 +21015,7 @@ let MJAIPromptRunResolver = class MJAIPromptRunResolver extends ResolverBase {
|
|
|
20169
21015
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20170
21016
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
20171
21017
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20172
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows && rows.length > 0 ? rows[0] :
|
|
21018
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20173
21019
|
return result;
|
|
20174
21020
|
}
|
|
20175
21021
|
async MJAIPromptRuns_RerunFromPromptRunIDArray(mjaipromptrun_, { userPayload, providers }, pubSub) {
|
|
@@ -20459,7 +21305,7 @@ let MJAIPromptTypeResolver = class MJAIPromptTypeResolver extends ResolverBase {
|
|
|
20459
21305
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20460
21306
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
20461
21307
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20462
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Types', rows && rows.length > 0 ? rows[0] :
|
|
21308
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20463
21309
|
return result;
|
|
20464
21310
|
}
|
|
20465
21311
|
async MJAIPrompts_TypeIDArray(mjaiprompttype_, { userPayload, providers }, pubSub) {
|
|
@@ -21353,7 +22199,7 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
21353
22199
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21354
22200
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPrompts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
21355
22201
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21356
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompts', rows && rows.length > 0 ? rows[0] :
|
|
22202
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21357
22203
|
return result;
|
|
21358
22204
|
}
|
|
21359
22205
|
async MJAIResultCache_AIPromptIDArray(mjaiprompt_, { userPayload, providers }, pubSub) {
|
|
@@ -21965,7 +22811,7 @@ let MJAIResultCacheResolver = class MJAIResultCacheResolver extends ResolverBase
|
|
|
21965
22811
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21966
22812
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIResultCaches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
21967
22813
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21968
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Result Cache', rows && rows.length > 0 ? rows[0] :
|
|
22814
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Result Cache', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21969
22815
|
return result;
|
|
21970
22816
|
}
|
|
21971
22817
|
async CreateMJAIResultCache(input, { providers, userPayload }, pubSub) {
|
|
@@ -22191,7 +23037,7 @@ let MJAIVendorTypeDefinitionResolver = class MJAIVendorTypeDefinitionResolver ex
|
|
|
22191
23037
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22192
23038
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendorTypeDefinitions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendor Type Definitions', userPayload, EntityPermissionType.Read, 'AND');
|
|
22193
23039
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22194
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Type Definitions', rows && rows.length > 0 ? rows[0] :
|
|
23040
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Type Definitions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22195
23041
|
return result;
|
|
22196
23042
|
}
|
|
22197
23043
|
async MJAIModelVendors_TypeIDArray(mjaivendortypedefinition_, { userPayload, providers }, pubSub) {
|
|
@@ -22479,7 +23325,7 @@ let MJAIVendorTypeResolver = class MJAIVendorTypeResolver extends ResolverBase {
|
|
|
22479
23325
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22480
23326
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendorTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendor Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
22481
23327
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22482
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Types', rows && rows.length > 0 ? rows[0] :
|
|
23328
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22483
23329
|
return result;
|
|
22484
23330
|
}
|
|
22485
23331
|
async CreateMJAIVendorType(input, { providers, userPayload }, pubSub) {
|
|
@@ -22747,7 +23593,7 @@ let MJAIVendorResolver = class MJAIVendorResolver extends ResolverBase {
|
|
|
22747
23593
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22748
23594
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendors')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
22749
23595
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22750
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendors', rows && rows.length > 0 ? rows[0] :
|
|
23596
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22751
23597
|
return result;
|
|
22752
23598
|
}
|
|
22753
23599
|
async MJAIModelVendors_VendorIDArray(mjaivendor_, { userPayload, providers }, pubSub) {
|
|
@@ -23162,7 +24008,7 @@ let MJAPIApplicationScopeResolver = class MJAPIApplicationScopeResolver extends
|
|
|
23162
24008
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23163
24009
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIApplicationScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Application Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
23164
24010
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23165
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Application Scopes', rows && rows.length > 0 ? rows[0] :
|
|
24011
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Application Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23166
24012
|
return result;
|
|
23167
24013
|
}
|
|
23168
24014
|
async CreateMJAPIApplicationScope(input, { providers, userPayload }, pubSub) {
|
|
@@ -23405,7 +24251,7 @@ let MJAPIApplicationResolver = class MJAPIApplicationResolver extends ResolverBa
|
|
|
23405
24251
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23406
24252
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
23407
24253
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23408
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] :
|
|
24254
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23409
24255
|
return result;
|
|
23410
24256
|
}
|
|
23411
24257
|
async MJAPIApplicationScopes_ApplicationIDArray(mjapiapplication_, { userPayload, providers }, pubSub) {
|
|
@@ -23685,7 +24531,7 @@ let MJAPIKeyApplicationResolver = class MJAPIKeyApplicationResolver extends Reso
|
|
|
23685
24531
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23686
24532
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
23687
24533
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23688
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Applications', rows && rows.length > 0 ? rows[0] :
|
|
24534
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23689
24535
|
return result;
|
|
23690
24536
|
}
|
|
23691
24537
|
async CreateMJAPIKeyApplication(input, { providers, userPayload }, pubSub) {
|
|
@@ -23964,7 +24810,7 @@ let MJAPIKeyScopeResolver = class MJAPIKeyScopeResolver extends ResolverBase {
|
|
|
23964
24810
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23965
24811
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
23966
24812
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23967
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Scopes', rows && rows.length > 0 ? rows[0] :
|
|
24813
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23968
24814
|
return result;
|
|
23969
24815
|
}
|
|
23970
24816
|
async CreateMJAPIKeyScope(input, { providers, userPayload }, pubSub) {
|
|
@@ -24333,7 +25179,7 @@ let MJAPIKeyUsageLogResolver = class MJAPIKeyUsageLogResolver extends ResolverBa
|
|
|
24333
25179
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24334
25180
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyUsageLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Usage Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
24335
25181
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24336
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows && rows.length > 0 ? rows[0] :
|
|
25182
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24337
25183
|
return result;
|
|
24338
25184
|
}
|
|
24339
25185
|
async CreateMJAPIKeyUsageLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -24650,7 +25496,7 @@ let MJAPIKeyResolver = class MJAPIKeyResolver extends ResolverBase {
|
|
|
24650
25496
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24651
25497
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeys')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
24652
25498
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24653
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Keys', rows && rows.length > 0 ? rows[0] :
|
|
25499
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24654
25500
|
return result;
|
|
24655
25501
|
}
|
|
24656
25502
|
async MJAPIKeyScopes_APIKeyIDArray(mjapikey_, { userPayload, providers }, pubSub) {
|
|
@@ -25018,7 +25864,7 @@ let MJAPIScopeResolver = class MJAPIScopeResolver extends ResolverBase {
|
|
|
25018
25864
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25019
25865
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
25020
25866
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25021
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Scopes', rows && rows.length > 0 ? rows[0] :
|
|
25867
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25022
25868
|
return result;
|
|
25023
25869
|
}
|
|
25024
25870
|
async MJAPIKeyScopes_ScopeIDArray(mjapiscope_, { userPayload, providers }, pubSub) {
|
|
@@ -25339,7 +26185,7 @@ let MJApplicationEntityResolver = class MJApplicationEntityResolver extends Reso
|
|
|
25339
26185
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25340
26186
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
25341
26187
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25342
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Application Entities', rows && rows.length > 0 ? rows[0] :
|
|
26188
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25343
26189
|
return result;
|
|
25344
26190
|
}
|
|
25345
26191
|
async CreateMJApplicationEntity(input, { providers, userPayload }, pubSub) {
|
|
@@ -25587,7 +26433,7 @@ let MJApplicationSettingResolver = class MJApplicationSettingResolver extends Re
|
|
|
25587
26433
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25588
26434
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
25589
26435
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25590
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Application Settings', rows && rows.length > 0 ? rows[0] :
|
|
26436
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25591
26437
|
return result;
|
|
25592
26438
|
}
|
|
25593
26439
|
async CreateMJApplicationSetting(input, { providers, userPayload }, pubSub) {
|
|
@@ -25988,7 +26834,7 @@ let MJApplicationResolver = class MJApplicationResolver extends ResolverBase {
|
|
|
25988
26834
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25989
26835
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
25990
26836
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25991
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Applications', rows && rows.length > 0 ? rows[0] :
|
|
26837
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25992
26838
|
return result;
|
|
25993
26839
|
}
|
|
25994
26840
|
async AllMJApplications({ userPayload, providers }, pubSub) {
|
|
@@ -26384,7 +27230,7 @@ let MJArtifactPermissionResolver = class MJArtifactPermissionResolver extends Re
|
|
|
26384
27230
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26385
27231
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
26386
27232
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26387
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Permissions', rows && rows.length > 0 ? rows[0] :
|
|
27233
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26388
27234
|
return result;
|
|
26389
27235
|
}
|
|
26390
27236
|
async CreateMJArtifactPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -26708,7 +27554,7 @@ let MJArtifactTypeResolver = class MJArtifactTypeResolver extends ResolverBase {
|
|
|
26708
27554
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26709
27555
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
26710
27556
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26711
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Types', rows && rows.length > 0 ? rows[0] :
|
|
27557
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26712
27558
|
return result;
|
|
26713
27559
|
}
|
|
26714
27560
|
async MJConversationArtifacts_ArtifactTypeIDArray(mjartifacttype_, { userPayload, providers }, pubSub) {
|
|
@@ -27047,7 +27893,7 @@ let MJArtifactUseResolver = class MJArtifactUseResolver extends ResolverBase {
|
|
|
27047
27893
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27048
27894
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactUses')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Uses', userPayload, EntityPermissionType.Read, 'AND');
|
|
27049
27895
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27050
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Uses', rows && rows.length > 0 ? rows[0] :
|
|
27896
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Uses', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27051
27897
|
return result;
|
|
27052
27898
|
}
|
|
27053
27899
|
async CreateMJArtifactUse(input, { providers, userPayload }, pubSub) {
|
|
@@ -27309,7 +28155,7 @@ let MJArtifactVersionAttributeResolver = class MJArtifactVersionAttributeResolve
|
|
|
27309
28155
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27310
28156
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactVersionAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Version Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
27311
28157
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27312
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Version Attributes', rows && rows.length > 0 ? rows[0] :
|
|
28158
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Version Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27313
28159
|
return result;
|
|
27314
28160
|
}
|
|
27315
28161
|
async CreateMJArtifactVersionAttribute(input, { providers, userPayload }, pubSub) {
|
|
@@ -27640,7 +28486,7 @@ let MJArtifactVersionResolver = class MJArtifactVersionResolver extends Resolver
|
|
|
27640
28486
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27641
28487
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
27642
28488
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27643
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] :
|
|
28489
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27644
28490
|
return result;
|
|
27645
28491
|
}
|
|
27646
28492
|
async MJArtifactVersionAttributes_ArtifactVersionIDArray(mjartifactversion_, { userPayload, providers }, pubSub) {
|
|
@@ -28013,7 +28859,7 @@ let MJArtifactResolver = class MJArtifactResolver extends ResolverBase {
|
|
|
28013
28859
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28014
28860
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
28015
28861
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28016
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
28862
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28017
28863
|
return result;
|
|
28018
28864
|
}
|
|
28019
28865
|
async MJArtifactVersions_ArtifactIDArray(mjartifact_, { userPayload, providers }, pubSub) {
|
|
@@ -28314,7 +29160,7 @@ let MJAuditLogTypeResolver = class MJAuditLogTypeResolver extends ResolverBase {
|
|
|
28314
29160
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28315
29161
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuditLogTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Audit Log Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
28316
29162
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28317
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Log Types', rows && rows.length > 0 ? rows[0] :
|
|
29163
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Log Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28318
29164
|
return result;
|
|
28319
29165
|
}
|
|
28320
29166
|
async AllMJAuditLogTypes({ userPayload, providers }, pubSub) {
|
|
@@ -28679,7 +29525,7 @@ let MJAuditLogResolver = class MJAuditLogResolver extends ResolverBase {
|
|
|
28679
29525
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28680
29526
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuditLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
28681
29527
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28682
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Logs', rows && rows.length > 0 ? rows[0] :
|
|
29528
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28683
29529
|
return result;
|
|
28684
29530
|
}
|
|
28685
29531
|
async CreateMJAuditLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -28921,7 +29767,7 @@ let MJAuthorizationRoleResolver = class MJAuthorizationRoleResolver extends Reso
|
|
|
28921
29767
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28922
29768
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuthorizationRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
28923
29769
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28924
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Authorization Roles', rows && rows.length > 0 ? rows[0] :
|
|
29770
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorization Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28925
29771
|
return result;
|
|
28926
29772
|
}
|
|
28927
29773
|
async AllMJAuthorizationRoles({ userPayload, providers }, pubSub) {
|
|
@@ -29222,7 +30068,7 @@ let MJAuthorizationResolver = class MJAuthorizationResolver extends ResolverBase
|
|
|
29222
30068
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29223
30069
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuthorizations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
29224
30070
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29225
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Authorizations', rows && rows.length > 0 ? rows[0] :
|
|
30071
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorizations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29226
30072
|
return result;
|
|
29227
30073
|
}
|
|
29228
30074
|
async AllMJAuthorizations({ userPayload, providers }, pubSub) {
|
|
@@ -29564,7 +30410,7 @@ let MJCollectionArtifactResolver = class MJCollectionArtifactResolver extends Re
|
|
|
29564
30410
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29565
30411
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollectionArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
29566
30412
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29567
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
30413
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29568
30414
|
return result;
|
|
29569
30415
|
}
|
|
29570
30416
|
async CreateMJCollectionArtifact(input, { providers, userPayload }, pubSub) {
|
|
@@ -29859,7 +30705,7 @@ let MJCollectionPermissionResolver = class MJCollectionPermissionResolver extend
|
|
|
29859
30705
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29860
30706
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollectionPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
29861
30707
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29862
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] :
|
|
30708
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29863
30709
|
return result;
|
|
29864
30710
|
}
|
|
29865
30711
|
async CreateMJCollectionPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -30186,7 +31032,7 @@ let MJCollectionResolver = class MJCollectionResolver extends ResolverBase {
|
|
|
30186
31032
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30187
31033
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollections')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
30188
31034
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30189
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collections', rows && rows.length > 0 ? rows[0] :
|
|
31035
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30190
31036
|
return result;
|
|
30191
31037
|
}
|
|
30192
31038
|
async MJCollectionArtifacts_CollectionIDArray(mjcollection_, { userPayload, providers }, pubSub) {
|
|
@@ -30499,7 +31345,7 @@ let MJCommunicationBaseMessageTypeResolver = class MJCommunicationBaseMessageTyp
|
|
|
30499
31345
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30500
31346
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationBaseMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Base Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
30501
31347
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30502
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Base Message Types', rows && rows.length > 0 ? rows[0] :
|
|
31348
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Base Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30503
31349
|
return result;
|
|
30504
31350
|
}
|
|
30505
31351
|
async MJCommunicationProviderMessageTypes_CommunicationBaseMessageTypeIDArray(mjcommunicationbasemessagetype_, { userPayload, providers }, pubSub) {
|
|
@@ -30842,7 +31688,7 @@ let MJCommunicationLogResolver = class MJCommunicationLogResolver extends Resolv
|
|
|
30842
31688
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30843
31689
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
30844
31690
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30845
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Logs', rows && rows.length > 0 ? rows[0] :
|
|
31691
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30846
31692
|
return result;
|
|
30847
31693
|
}
|
|
30848
31694
|
async CreateMJCommunicationLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -31113,7 +31959,7 @@ let MJCommunicationProviderMessageTypeResolver = class MJCommunicationProviderMe
|
|
|
31113
31959
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31114
31960
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationProviderMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Provider Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
31115
31961
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31116
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Provider Message Types', rows && rows.length > 0 ? rows[0] :
|
|
31962
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Provider Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31117
31963
|
return result;
|
|
31118
31964
|
}
|
|
31119
31965
|
async MJCommunicationLogs_CommunicationProviderMessageTypeIDArray(mjcommunicationprovidermessagetype_, { userPayload, providers }, pubSub) {
|
|
@@ -31441,7 +32287,7 @@ let MJCommunicationProviderResolver = class MJCommunicationProviderResolver exte
|
|
|
31441
32287
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31442
32288
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
31443
32289
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31444
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Providers', rows && rows.length > 0 ? rows[0] :
|
|
32290
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31445
32291
|
return result;
|
|
31446
32292
|
}
|
|
31447
32293
|
async MJCommunicationProviderMessageTypes_CommunicationProviderIDArray(mjcommunicationprovider_, { userPayload, providers }, pubSub) {
|
|
@@ -31764,7 +32610,7 @@ let MJCommunicationRunResolver = class MJCommunicationRunResolver extends Resolv
|
|
|
31764
32610
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31765
32611
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
31766
32612
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31767
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Runs', rows && rows.length > 0 ? rows[0] :
|
|
32613
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31768
32614
|
return result;
|
|
31769
32615
|
}
|
|
31770
32616
|
async MJCommunicationLogs_CommunicationRunIDArray(mjcommunicationrun_, { userPayload, providers }, pubSub) {
|
|
@@ -32059,7 +32905,7 @@ let MJCompanyResolver = class MJCompanyResolver extends ResolverBase {
|
|
|
32059
32905
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32060
32906
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Companies', userPayload, EntityPermissionType.Read, 'AND');
|
|
32061
32907
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32062
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Companies', rows && rows.length > 0 ? rows[0] :
|
|
32908
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Companies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32063
32909
|
return result;
|
|
32064
32910
|
}
|
|
32065
32911
|
async AllMJCompanies({ userPayload, providers }, pubSub) {
|
|
@@ -32523,7 +33369,7 @@ let MJCompanyIntegrationEntityMapResolver = class MJCompanyIntegrationEntityMapR
|
|
|
32523
33369
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32524
33370
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationEntityMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Entity Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
32525
33371
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32526
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Entity Maps', rows && rows.length > 0 ? rows[0] :
|
|
33372
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Entity Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32527
33373
|
return result;
|
|
32528
33374
|
}
|
|
32529
33375
|
async MJCompanyIntegrationSyncWatermarks_EntityMapIDArray(mjcompanyintegrationentitymap_, { userPayload, providers }, pubSub) {
|
|
@@ -32906,7 +33752,7 @@ let MJCompanyIntegrationFieldMapResolver = class MJCompanyIntegrationFieldMapRes
|
|
|
32906
33752
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32907
33753
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationFieldMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Field Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
32908
33754
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32909
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Field Maps', rows && rows.length > 0 ? rows[0] :
|
|
33755
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Field Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32910
33756
|
return result;
|
|
32911
33757
|
}
|
|
32912
33758
|
async CreateMJCompanyIntegrationFieldMap(input, { providers, userPayload }, pubSub) {
|
|
@@ -33161,7 +34007,7 @@ let MJCompanyIntegrationRecordMapResolver = class MJCompanyIntegrationRecordMapR
|
|
|
33161
34007
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33162
34008
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRecordMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Record Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
33163
34009
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33164
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Record Maps', rows && rows.length > 0 ? rows[0] :
|
|
34010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Record Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33165
34011
|
return result;
|
|
33166
34012
|
}
|
|
33167
34013
|
async CreateMJCompanyIntegrationRecordMap(input, { providers, userPayload }, pubSub) {
|
|
@@ -33433,7 +34279,7 @@ let MJCompanyIntegrationRunAPILogResolver = class MJCompanyIntegrationRunAPILogR
|
|
|
33433
34279
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33434
34280
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRunAPILogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Run API Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
33435
34281
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33436
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run API Logs', rows && rows.length > 0 ? rows[0] :
|
|
34282
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run API Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33437
34283
|
return result;
|
|
33438
34284
|
}
|
|
33439
34285
|
async CreateMJCompanyIntegrationRunAPILog(input, { providers, userPayload }, pubSub) {
|
|
@@ -33719,7 +34565,7 @@ let MJCompanyIntegrationRunDetailResolver = class MJCompanyIntegrationRunDetailR
|
|
|
33719
34565
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33720
34566
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
33721
34567
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33722
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run Details', rows && rows.length > 0 ? rows[0] :
|
|
34568
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33723
34569
|
return result;
|
|
33724
34570
|
}
|
|
33725
34571
|
async MJErrorLogs_CompanyIntegrationRunDetailIDArray(mjcompanyintegrationrundetail_, { userPayload, providers }, pubSub) {
|
|
@@ -34067,7 +34913,7 @@ let MJCompanyIntegrationRunResolver = class MJCompanyIntegrationRunResolver exte
|
|
|
34067
34913
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34068
34914
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
34069
34915
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34070
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Runs', rows && rows.length > 0 ? rows[0] :
|
|
34916
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34071
34917
|
return result;
|
|
34072
34918
|
}
|
|
34073
34919
|
async MJCompanyIntegrationRunAPILogs_CompanyIntegrationRunIDArray(mjcompanyintegrationrun_, { userPayload, providers }, pubSub) {
|
|
@@ -34391,7 +35237,7 @@ let MJCompanyIntegrationSyncWatermarkResolver = class MJCompanyIntegrationSyncWa
|
|
|
34391
35237
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34392
35238
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationSyncWatermarks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Sync Watermarks', userPayload, EntityPermissionType.Read, 'AND');
|
|
34393
35239
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34394
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Sync Watermarks', rows && rows.length > 0 ? rows[0] :
|
|
35240
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Sync Watermarks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34395
35241
|
return result;
|
|
34396
35242
|
}
|
|
34397
35243
|
async CreateMJCompanyIntegrationSyncWatermark(input, { providers, userPayload }, pubSub) {
|
|
@@ -34964,7 +35810,7 @@ let MJCompanyIntegrationResolver = class MJCompanyIntegrationResolver extends Re
|
|
|
34964
35810
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34965
35811
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
34966
35812
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34967
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integrations', rows && rows.length > 0 ? rows[0] :
|
|
35813
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34968
35814
|
return result;
|
|
34969
35815
|
}
|
|
34970
35816
|
async MJLists_CompanyIntegrationIDArray(mjcompanyintegration_, { userPayload, providers }, pubSub) {
|
|
@@ -35278,7 +36124,7 @@ let MJComponentDependencyResolver = class MJComponentDependencyResolver extends
|
|
|
35278
36124
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
35279
36125
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
35280
36126
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
35281
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
36127
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
35282
36128
|
return result;
|
|
35283
36129
|
}
|
|
35284
36130
|
async CreateMJComponentDependency(input, { providers, userPayload }, pubSub) {
|
|
@@ -35628,7 +36474,7 @@ let MJComponentLibraryResolver = class MJComponentLibraryResolver extends Resolv
|
|
|
35628
36474
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
35629
36475
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
35630
36476
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
35631
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] :
|
|
36477
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
35632
36478
|
return result;
|
|
35633
36479
|
}
|
|
35634
36480
|
async MJComponentLibraryLinks_LibraryIDArray(mjcomponentlibrary_, { userPayload, providers }, pubSub) {
|
|
@@ -35887,7 +36733,7 @@ let MJComponentLibraryLinkResolver = class MJComponentLibraryLinkResolver extend
|
|
|
35887
36733
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
35888
36734
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentLibraryLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Library Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
35889
36735
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
35890
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] :
|
|
36736
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
35891
36737
|
return result;
|
|
35892
36738
|
}
|
|
35893
36739
|
async CreateMJComponentLibraryLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -36161,7 +37007,7 @@ let MJComponentRegistryResolver = class MJComponentRegistryResolver extends Reso
|
|
|
36161
37007
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36162
37008
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentRegistries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Registries', userPayload, EntityPermissionType.Read, 'AND');
|
|
36163
37009
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36164
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] :
|
|
37010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36165
37011
|
return result;
|
|
36166
37012
|
}
|
|
36167
37013
|
async MJComponents_SourceRegistryIDArray(mjcomponentregistry_, { userPayload, providers }, pubSub) {
|
|
@@ -36709,7 +37555,7 @@ let MJComponentResolver = class MJComponentResolver extends ResolverBase {
|
|
|
36709
37555
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36710
37556
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Components', userPayload, EntityPermissionType.Read, 'AND');
|
|
36711
37557
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36712
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] :
|
|
37558
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36713
37559
|
return result;
|
|
36714
37560
|
}
|
|
36715
37561
|
async MJComponentLibraryLinks_ComponentIDArray(mjcomponent_, { userPayload, providers }, pubSub) {
|
|
@@ -36987,7 +37833,7 @@ let MJContentFileTypeResolver = class MJContentFileTypeResolver extends Resolver
|
|
|
36987
37833
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36988
37834
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentFileTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content File Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
36989
37835
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36990
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content File Types', rows && rows.length > 0 ? rows[0] :
|
|
37836
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content File Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36991
37837
|
return result;
|
|
36992
37838
|
}
|
|
36993
37839
|
async MJContentSources_ContentFileTypeIDArray(mjcontentfiletype_, { userPayload, providers }, pubSub) {
|
|
@@ -37257,7 +38103,7 @@ let MJContentItemAttributeResolver = class MJContentItemAttributeResolver extend
|
|
|
37257
38103
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37258
38104
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
37259
38105
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37260
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Attributes', rows && rows.length > 0 ? rows[0] :
|
|
38106
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37261
38107
|
return result;
|
|
37262
38108
|
}
|
|
37263
38109
|
async CreateMJContentItemAttribute(input, { providers, userPayload }, pubSub) {
|
|
@@ -37481,7 +38327,7 @@ let MJContentItemTagResolver = class MJContentItemTagResolver extends ResolverBa
|
|
|
37481
38327
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37482
38328
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemTags')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
37483
38329
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37484
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Tags', rows && rows.length > 0 ? rows[0] :
|
|
38330
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37485
38331
|
return result;
|
|
37486
38332
|
}
|
|
37487
38333
|
async CreateMJContentItemTag(input, { providers, userPayload }, pubSub) {
|
|
@@ -37817,7 +38663,7 @@ let MJContentItemResolver = class MJContentItemResolver extends ResolverBase {
|
|
|
37817
38663
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37818
38664
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
37819
38665
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37820
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Items', rows && rows.length > 0 ? rows[0] :
|
|
38666
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37821
38667
|
return result;
|
|
37822
38668
|
}
|
|
37823
38669
|
async MJContentItemAttributes_ContentItemIDArray(mjcontentitem_, { userPayload, providers }, pubSub) {
|
|
@@ -38111,7 +38957,7 @@ let MJContentProcessRunResolver = class MJContentProcessRunResolver extends Reso
|
|
|
38111
38957
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38112
38958
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentProcessRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Process Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
38113
38959
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38114
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Process Runs', rows && rows.length > 0 ? rows[0] :
|
|
38960
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Process Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38115
38961
|
return result;
|
|
38116
38962
|
}
|
|
38117
38963
|
async CreateMJContentProcessRun(input, { providers, userPayload }, pubSub) {
|
|
@@ -38347,7 +39193,7 @@ let MJContentSourceParamResolver = class MJContentSourceParamResolver extends Re
|
|
|
38347
39193
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38348
39194
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
38349
39195
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38350
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Params', rows && rows.length > 0 ? rows[0] :
|
|
39196
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38351
39197
|
return result;
|
|
38352
39198
|
}
|
|
38353
39199
|
async CreateMJContentSourceParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -38602,7 +39448,7 @@ let MJContentSourceTypeParamResolver = class MJContentSourceTypeParamResolver ex
|
|
|
38602
39448
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38603
39449
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceTypeParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Type Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
38604
39450
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38605
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Type Params', rows && rows.length > 0 ? rows[0] :
|
|
39451
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Type Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38606
39452
|
return result;
|
|
38607
39453
|
}
|
|
38608
39454
|
async CreateMJContentSourceTypeParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -38829,7 +39675,7 @@ let MJContentSourceTypeResolver = class MJContentSourceTypeResolver extends Reso
|
|
|
38829
39675
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38830
39676
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
38831
39677
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38832
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Types', rows && rows.length > 0 ? rows[0] :
|
|
39678
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38833
39679
|
return result;
|
|
38834
39680
|
}
|
|
38835
39681
|
async MJContentSources_ContentSourceTypeIDArray(mjcontentsourcetype_, { userPayload, providers }, pubSub) {
|
|
@@ -39148,7 +39994,7 @@ let MJContentSourceResolver = class MJContentSourceResolver extends ResolverBase
|
|
|
39148
39994
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39149
39995
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
39150
39996
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39151
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Sources', rows && rows.length > 0 ? rows[0] :
|
|
39997
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39152
39998
|
return result;
|
|
39153
39999
|
}
|
|
39154
40000
|
async MJContentSourceParams_ContentSourceIDArray(mjcontentsource_, { userPayload, providers }, pubSub) {
|
|
@@ -39442,7 +40288,7 @@ let MJContentTypeAttributeResolver = class MJContentTypeAttributeResolver extend
|
|
|
39442
40288
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39443
40289
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentTypeAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Type Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
39444
40290
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39445
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Type Attributes', rows && rows.length > 0 ? rows[0] :
|
|
40291
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Type Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39446
40292
|
return result;
|
|
39447
40293
|
}
|
|
39448
40294
|
async CreateMJContentTypeAttribute(input, { providers, userPayload }, pubSub) {
|
|
@@ -39710,7 +40556,7 @@ let MJContentTypeResolver = class MJContentTypeResolver extends ResolverBase {
|
|
|
39710
40556
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39711
40557
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
39712
40558
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39713
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Types', rows && rows.length > 0 ? rows[0] :
|
|
40559
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39714
40560
|
return result;
|
|
39715
40561
|
}
|
|
39716
40562
|
async MJContentSources_ContentTypeIDArray(mjcontenttype_, { userPayload, providers }, pubSub) {
|
|
@@ -39981,7 +40827,7 @@ let MJConversationArtifactPermissionResolver = class MJConversationArtifactPermi
|
|
|
39981
40827
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39982
40828
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifactPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
39983
40829
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39984
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows && rows.length > 0 ? rows[0] :
|
|
40830
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39985
40831
|
return result;
|
|
39986
40832
|
}
|
|
39987
40833
|
async CreateMJConversationArtifactPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -40244,7 +41090,7 @@ let MJConversationArtifactVersionResolver = class MJConversationArtifactVersionR
|
|
|
40244
41090
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40245
41091
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifactVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
40246
41092
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40247
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows && rows.length > 0 ? rows[0] :
|
|
41093
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40248
41094
|
return result;
|
|
40249
41095
|
}
|
|
40250
41096
|
async MJConversationDetails_ArtifactVersionIDArray(mjconversationartifactversion_, { userPayload, providers }, pubSub) {
|
|
@@ -40552,7 +41398,7 @@ let MJConversationArtifactResolver = class MJConversationArtifactResolver extend
|
|
|
40552
41398
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40553
41399
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
40554
41400
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40555
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
41401
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40556
41402
|
return result;
|
|
40557
41403
|
}
|
|
40558
41404
|
async MJConversationArtifactPermissions_ConversationArtifactIDArray(mjconversationartifact_, { userPayload, providers }, pubSub) {
|
|
@@ -40844,7 +41690,7 @@ let MJConversationDetailArtifactResolver = class MJConversationDetailArtifactRes
|
|
|
40844
41690
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40845
41691
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
40846
41692
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40847
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
41693
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40848
41694
|
return result;
|
|
40849
41695
|
}
|
|
40850
41696
|
async CreateMJConversationDetailArtifact(input, { providers, userPayload }, pubSub) {
|
|
@@ -41212,7 +42058,7 @@ let MJConversationDetailAttachmentResolver = class MJConversationDetailAttachmen
|
|
|
41212
42058
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41213
42059
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailAttachments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
|
|
41214
42060
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41215
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] :
|
|
42061
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41216
42062
|
return result;
|
|
41217
42063
|
}
|
|
41218
42064
|
async CreateMJConversationDetailAttachment(input, { providers, userPayload }, pubSub) {
|
|
@@ -41464,7 +42310,7 @@ let MJConversationDetailRatingResolver = class MJConversationDetailRatingResolve
|
|
|
41464
42310
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41465
42311
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailRatings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Ratings', userPayload, EntityPermissionType.Read, 'AND');
|
|
41466
42312
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41467
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows && rows.length > 0 ? rows[0] :
|
|
42313
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41468
42314
|
return result;
|
|
41469
42315
|
}
|
|
41470
42316
|
async CreateMJConversationDetailRating(input, { providers, userPayload }, pubSub) {
|
|
@@ -42030,7 +42876,7 @@ let MJConversationDetailResolver = class MJConversationDetailResolver extends Re
|
|
|
42030
42876
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42031
42877
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
42032
42878
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42033
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Details', rows && rows.length > 0 ? rows[0] :
|
|
42879
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42034
42880
|
return result;
|
|
42035
42881
|
}
|
|
42036
42882
|
async MJReports_ConversationDetailIDArray(mjconversationdetail_, { userPayload, providers }, pubSub) {
|
|
@@ -42609,7 +43455,7 @@ let MJConversationResolver = class MJConversationResolver extends ResolverBase {
|
|
|
42609
43455
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42610
43456
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
42611
43457
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42612
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversations', rows && rows.length > 0 ? rows[0] :
|
|
43458
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42613
43459
|
return result;
|
|
42614
43460
|
}
|
|
42615
43461
|
async MJConversationDetails_ConversationIDArray(mjconversation_, { userPayload, providers }, pubSub) {
|
|
@@ -42973,7 +43819,7 @@ let MJCredentialCategoryResolver = class MJCredentialCategoryResolver extends Re
|
|
|
42973
43819
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42974
43820
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentialCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
42975
43821
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42976
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Categories', rows && rows.length > 0 ? rows[0] :
|
|
43822
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42977
43823
|
return result;
|
|
42978
43824
|
}
|
|
42979
43825
|
async MJCredentialCategories_ParentIDArray(mjcredentialcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -43292,7 +44138,7 @@ let MJCredentialTypeResolver = class MJCredentialTypeResolver extends ResolverBa
|
|
|
43292
44138
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43293
44139
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentialTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
43294
44140
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43295
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] :
|
|
44141
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43296
44142
|
return result;
|
|
43297
44143
|
}
|
|
43298
44144
|
async MJCredentials_CredentialTypeIDArray(mjcredentialtype_, { userPayload, providers }, pubSub) {
|
|
@@ -43719,7 +44565,7 @@ let MJCredentialResolver = class MJCredentialResolver extends ResolverBase {
|
|
|
43719
44565
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43720
44566
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentials')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
43721
44567
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43722
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] :
|
|
44568
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43723
44569
|
return result;
|
|
43724
44570
|
}
|
|
43725
44571
|
async MJOAuthTokens_CredentialIDArray(mjcredential_, { userPayload, providers }, pubSub) {
|
|
@@ -44079,7 +44925,7 @@ let MJDashboardCategoryResolver = class MJDashboardCategoryResolver extends Reso
|
|
|
44079
44925
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44080
44926
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
44081
44927
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44082
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Categories', rows && rows.length > 0 ? rows[0] :
|
|
44928
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44083
44929
|
return result;
|
|
44084
44930
|
}
|
|
44085
44931
|
async MJDashboards_CategoryIDArray(mjdashboardcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -44419,7 +45265,7 @@ let MJDashboardCategoryLinkResolver = class MJDashboardCategoryLinkResolver exte
|
|
|
44419
45265
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44420
45266
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategoryLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
44421
45267
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44422
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] :
|
|
45268
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44423
45269
|
return result;
|
|
44424
45270
|
}
|
|
44425
45271
|
async CreateMJDashboardCategoryLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -44714,7 +45560,7 @@ let MJDashboardCategoryPermissionResolver = class MJDashboardCategoryPermissionR
|
|
|
44714
45560
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44715
45561
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategoryPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
44716
45562
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44717
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] :
|
|
45563
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44718
45564
|
return result;
|
|
44719
45565
|
}
|
|
44720
45566
|
async CreateMJDashboardCategoryPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -45007,7 +45853,7 @@ let MJDashboardPartTypeResolver = class MJDashboardPartTypeResolver extends Reso
|
|
|
45007
45853
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45008
45854
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardPartTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Part Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
45009
45855
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45010
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] :
|
|
45856
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45011
45857
|
return result;
|
|
45012
45858
|
}
|
|
45013
45859
|
async CreateMJDashboardPartType(input, { providers, userPayload }, pubSub) {
|
|
@@ -45302,7 +46148,7 @@ let MJDashboardPermissionResolver = class MJDashboardPermissionResolver extends
|
|
|
45302
46148
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45303
46149
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
45304
46150
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45305
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] :
|
|
46151
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45306
46152
|
return result;
|
|
45307
46153
|
}
|
|
45308
46154
|
async CreateMJDashboardPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -45574,7 +46420,7 @@ let MJDashboardUserPreferenceResolver = class MJDashboardUserPreferenceResolver
|
|
|
45574
46420
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45575
46421
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardUserPreferences')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
45576
46422
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45577
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows && rows.length > 0 ? rows[0] :
|
|
46423
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45578
46424
|
return result;
|
|
45579
46425
|
}
|
|
45580
46426
|
async CreateMJDashboardUserPreference(input, { providers, userPayload }, pubSub) {
|
|
@@ -45815,7 +46661,7 @@ let MJDashboardUserStateResolver = class MJDashboardUserStateResolver extends Re
|
|
|
45815
46661
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45816
46662
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardUserStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
45817
46663
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45818
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User States', rows && rows.length > 0 ? rows[0] :
|
|
46664
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45819
46665
|
return result;
|
|
45820
46666
|
}
|
|
45821
46667
|
async CreateMJDashboardUserState(input, { providers, userPayload }, pubSub) {
|
|
@@ -46197,7 +47043,7 @@ let MJDashboardResolver = class MJDashboardResolver extends ResolverBase {
|
|
|
46197
47043
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46198
47044
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboards')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
46199
47045
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46200
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboards', rows && rows.length > 0 ? rows[0] :
|
|
47046
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboards', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46201
47047
|
return result;
|
|
46202
47048
|
}
|
|
46203
47049
|
async MJDashboardUserStates_DashboardIDArray(mjdashboard_, { userPayload, providers }, pubSub) {
|
|
@@ -46617,7 +47463,7 @@ let MJDataContextItemResolver = class MJDataContextItemResolver extends Resolver
|
|
|
46617
47463
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46618
47464
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDataContextItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
46619
47465
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46620
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Data Context Items', rows && rows.length > 0 ? rows[0] :
|
|
47466
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Context Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46621
47467
|
return result;
|
|
46622
47468
|
}
|
|
46623
47469
|
async CreateMJDataContextItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -46877,7 +47723,7 @@ let MJDataContextResolver = class MJDataContextResolver extends ResolverBase {
|
|
|
46877
47723
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46878
47724
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDataContexts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Data Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
46879
47725
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46880
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Data Contexts', rows && rows.length > 0 ? rows[0] :
|
|
47726
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Contexts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46881
47727
|
return result;
|
|
46882
47728
|
}
|
|
46883
47729
|
async MJDataContextItems_DataContextIDArray(mjdatacontext_, { userPayload, providers }, pubSub) {
|
|
@@ -47231,7 +48077,7 @@ let MJDatasetItemResolver = class MJDatasetItemResolver extends ResolverBase {
|
|
|
47231
48077
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47232
48078
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDatasetItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dataset Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
47233
48079
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47234
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dataset Items', rows && rows.length > 0 ? rows[0] :
|
|
48080
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dataset Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47235
48081
|
return result;
|
|
47236
48082
|
}
|
|
47237
48083
|
async CreateMJDatasetItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -47453,7 +48299,7 @@ let MJDatasetResolver = class MJDatasetResolver extends ResolverBase {
|
|
|
47453
48299
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47454
48300
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDatasets')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Datasets', userPayload, EntityPermissionType.Read, 'AND');
|
|
47455
48301
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47456
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Datasets', rows && rows.length > 0 ? rows[0] :
|
|
48302
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Datasets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47457
48303
|
return result;
|
|
47458
48304
|
}
|
|
47459
48305
|
async MJDatasetItems_DatasetIDArray(mjdataset_, { userPayload, providers }, pubSub) {
|
|
@@ -47800,7 +48646,7 @@ let MJDuplicateRunDetailMatchResolver = class MJDuplicateRunDetailMatchResolver
|
|
|
47800
48646
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47801
48647
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRunDetailMatches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Run Detail Matches', userPayload, EntityPermissionType.Read, 'AND');
|
|
47802
48648
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47803
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Detail Matches', rows && rows.length > 0 ? rows[0] :
|
|
48649
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Detail Matches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47804
48650
|
return result;
|
|
47805
48651
|
}
|
|
47806
48652
|
async CreateMJDuplicateRunDetailMatch(input, { providers, userPayload }, pubSub) {
|
|
@@ -48090,7 +48936,7 @@ let MJDuplicateRunDetailResolver = class MJDuplicateRunDetailResolver extends Re
|
|
|
48090
48936
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48091
48937
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
48092
48938
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48093
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Details', rows && rows.length > 0 ? rows[0] :
|
|
48939
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48094
48940
|
return result;
|
|
48095
48941
|
}
|
|
48096
48942
|
async MJDuplicateRunDetailMatches_DuplicateRunDetailIDArray(mjduplicaterundetail_, { userPayload, providers }, pubSub) {
|
|
@@ -48450,7 +49296,7 @@ let MJDuplicateRunResolver = class MJDuplicateRunResolver extends ResolverBase {
|
|
|
48450
49296
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48451
49297
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
48452
49298
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48453
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Runs', rows && rows.length > 0 ? rows[0] :
|
|
49299
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48454
49300
|
return result;
|
|
48455
49301
|
}
|
|
48456
49302
|
async MJDuplicateRunDetails_DuplicateRunIDArray(mjduplicaterun_, { userPayload, providers }, pubSub) {
|
|
@@ -48721,7 +49567,7 @@ let MJEmployeeCompanyIntegrationResolver = class MJEmployeeCompanyIntegrationRes
|
|
|
48721
49567
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48722
49568
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeCompanyIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
48723
49569
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48724
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Company Integrations', rows && rows.length > 0 ? rows[0] :
|
|
49570
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48725
49571
|
return result;
|
|
48726
49572
|
}
|
|
48727
49573
|
async CreateMJEmployeeCompanyIntegration(input, { providers, userPayload }, pubSub) {
|
|
@@ -48950,7 +49796,7 @@ let MJEmployeeRoleResolver = class MJEmployeeRoleResolver extends ResolverBase {
|
|
|
48950
49796
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48951
49797
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
48952
49798
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48953
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Roles', rows && rows.length > 0 ? rows[0] :
|
|
49799
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48954
49800
|
return result;
|
|
48955
49801
|
}
|
|
48956
49802
|
async CreateMJEmployeeRole(input, { providers, userPayload }, pubSub) {
|
|
@@ -49179,7 +50025,7 @@ let MJEmployeeSkillResolver = class MJEmployeeSkillResolver extends ResolverBase
|
|
|
49179
50025
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49180
50026
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeSkills')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
49181
50027
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49182
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Skills', rows && rows.length > 0 ? rows[0] :
|
|
50028
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49183
50029
|
return result;
|
|
49184
50030
|
}
|
|
49185
50031
|
async CreateMJEmployeeSkill(input, { providers, userPayload }, pubSub) {
|
|
@@ -49525,7 +50371,7 @@ let MJEmployeeResolver = class MJEmployeeResolver extends ResolverBase {
|
|
|
49525
50371
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49526
50372
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployees')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employees', userPayload, EntityPermissionType.Read, 'AND');
|
|
49527
50373
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49528
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employees', rows && rows.length > 0 ? rows[0] :
|
|
50374
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employees', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49529
50375
|
return result;
|
|
49530
50376
|
}
|
|
49531
50377
|
async AllMJEmployees({ userPayload, providers }, pubSub) {
|
|
@@ -49909,7 +50755,7 @@ let MJEncryptionAlgorithmResolver = class MJEncryptionAlgorithmResolver extends
|
|
|
49909
50755
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49910
50756
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionAlgorithms')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Algorithms', userPayload, EntityPermissionType.Read, 'AND');
|
|
49911
50757
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49912
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Algorithms', rows && rows.length > 0 ? rows[0] :
|
|
50758
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Algorithms', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49913
50759
|
return result;
|
|
49914
50760
|
}
|
|
49915
50761
|
async MJEncryptionKeys_EncryptionAlgorithmIDArray(mjencryptionalgorithm_, { userPayload, providers }, pubSub) {
|
|
@@ -50211,7 +51057,7 @@ let MJEncryptionKeySourceResolver = class MJEncryptionKeySourceResolver extends
|
|
|
50211
51057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50212
51058
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionKeySources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Key Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
50213
51059
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50214
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Key Sources', rows && rows.length > 0 ? rows[0] :
|
|
51060
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Key Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50215
51061
|
return result;
|
|
50216
51062
|
}
|
|
50217
51063
|
async MJEncryptionKeys_EncryptionKeySourceIDArray(mjencryptionkeysource_, { userPayload, providers }, pubSub) {
|
|
@@ -50574,7 +51420,7 @@ let MJEncryptionKeyResolver = class MJEncryptionKeyResolver extends ResolverBase
|
|
|
50574
51420
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50575
51421
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionKeys')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
50576
51422
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50577
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Keys', rows && rows.length > 0 ? rows[0] :
|
|
51423
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50578
51424
|
return result;
|
|
50579
51425
|
}
|
|
50580
51426
|
async MJEntityFields_EncryptionKeyIDArray(mjencryptionkey_, { userPayload, providers }, pubSub) {
|
|
@@ -51683,7 +52529,7 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
51683
52529
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51684
52530
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
51685
52531
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51686
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entities', rows && rows.length > 0 ? rows[0] :
|
|
52532
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51687
52533
|
return result;
|
|
51688
52534
|
}
|
|
51689
52535
|
async AllMJEntities({ userPayload, providers }, pubSub) {
|
|
@@ -52819,7 +53665,7 @@ let MJEntityActionFilterResolver = class MJEntityActionFilterResolver extends Re
|
|
|
52819
53665
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52820
53666
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
52821
53667
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52822
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Filters', rows && rows.length > 0 ? rows[0] :
|
|
53668
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52823
53669
|
return result;
|
|
52824
53670
|
}
|
|
52825
53671
|
async CreateMJEntityActionFilter(input, { providers, userPayload }, pubSub) {
|
|
@@ -53053,7 +53899,7 @@ let MJEntityActionInvocationTypeResolver = class MJEntityActionInvocationTypeRes
|
|
|
53053
53899
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53054
53900
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionInvocationTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Invocation Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
53055
53901
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53056
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocation Types', rows && rows.length > 0 ? rows[0] :
|
|
53902
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocation Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53057
53903
|
return result;
|
|
53058
53904
|
}
|
|
53059
53905
|
async MJEntityActionInvocations_InvocationTypeIDArray(mjentityactioninvocationtype_, { userPayload, providers }, pubSub) {
|
|
@@ -53312,7 +54158,7 @@ let MJEntityActionInvocationResolver = class MJEntityActionInvocationResolver ex
|
|
|
53312
54158
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53313
54159
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionInvocations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Invocations', userPayload, EntityPermissionType.Read, 'AND');
|
|
53314
54160
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53315
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocations', rows && rows.length > 0 ? rows[0] :
|
|
54161
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53316
54162
|
return result;
|
|
53317
54163
|
}
|
|
53318
54164
|
async CreateMJEntityActionInvocation(input, { providers, userPayload }, pubSub) {
|
|
@@ -53578,7 +54424,7 @@ let MJEntityActionParamResolver = class MJEntityActionParamResolver extends Reso
|
|
|
53578
54424
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53579
54425
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
53580
54426
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53581
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Params', rows && rows.length > 0 ? rows[0] :
|
|
54427
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53582
54428
|
return result;
|
|
53583
54429
|
}
|
|
53584
54430
|
async CreateMJEntityActionParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -53832,7 +54678,7 @@ let MJEntityActionResolver = class MJEntityActionResolver extends ResolverBase {
|
|
|
53832
54678
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53833
54679
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
53834
54680
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53835
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Actions', rows && rows.length > 0 ? rows[0] :
|
|
54681
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53836
54682
|
return result;
|
|
53837
54683
|
}
|
|
53838
54684
|
async MJEntityActionInvocations_EntityActionIDArray(mjentityaction_, { userPayload, providers }, pubSub) {
|
|
@@ -54248,7 +55094,7 @@ let MJEntityAIActionResolver = class MJEntityAIActionResolver extends ResolverBa
|
|
|
54248
55094
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54249
55095
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityAIActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
54250
55096
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54251
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity AI Actions', rows && rows.length > 0 ? rows[0] :
|
|
55097
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54252
55098
|
return result;
|
|
54253
55099
|
}
|
|
54254
55100
|
async AllMJEntityAIActions({ userPayload, providers }, pubSub) {
|
|
@@ -54500,7 +55346,7 @@ let MJEntityCommunicationFieldResolver = class MJEntityCommunicationFieldResolve
|
|
|
54500
55346
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54501
55347
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityCommunicationFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Communication Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
54502
55348
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54503
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Fields', rows && rows.length > 0 ? rows[0] :
|
|
55349
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54504
55350
|
return result;
|
|
54505
55351
|
}
|
|
54506
55352
|
async CreateMJEntityCommunicationField(input, { providers, userPayload }, pubSub) {
|
|
@@ -54745,7 +55591,7 @@ let MJEntityCommunicationMessageTypeResolver = class MJEntityCommunicationMessag
|
|
|
54745
55591
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54746
55592
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityCommunicationMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Communication Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
54747
55593
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54748
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Message Types', rows && rows.length > 0 ? rows[0] :
|
|
55594
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54749
55595
|
return result;
|
|
54750
55596
|
}
|
|
54751
55597
|
async MJEntityCommunicationFields_EntityCommunicationMessageTypeIDArray(mjentitycommunicationmessagetype_, { userPayload, providers }, pubSub) {
|
|
@@ -55010,7 +55856,7 @@ let MJEntityDocumentRunResolver = class MJEntityDocumentRunResolver extends Reso
|
|
|
55010
55856
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55011
55857
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
55012
55858
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55013
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Runs', rows && rows.length > 0 ? rows[0] :
|
|
55859
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55014
55860
|
return result;
|
|
55015
55861
|
}
|
|
55016
55862
|
async CreateMJEntityDocumentRun(input, { providers, userPayload }, pubSub) {
|
|
@@ -55258,7 +56104,7 @@ let MJEntityDocumentSettingResolver = class MJEntityDocumentSettingResolver exte
|
|
|
55258
56104
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55259
56105
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
55260
56106
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55261
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Settings', rows && rows.length > 0 ? rows[0] :
|
|
56107
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55262
56108
|
return result;
|
|
55263
56109
|
}
|
|
55264
56110
|
async CreateMJEntityDocumentSetting(input, { providers, userPayload }, pubSub) {
|
|
@@ -55480,7 +56326,7 @@ let MJEntityDocumentTypeResolver = class MJEntityDocumentTypeResolver extends Re
|
|
|
55480
56326
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55481
56327
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
55482
56328
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55483
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Types', rows && rows.length > 0 ? rows[0] :
|
|
56329
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55484
56330
|
return result;
|
|
55485
56331
|
}
|
|
55486
56332
|
async MJEntityDocuments_TypeIDArray(mjentitydocumenttype_, { userPayload, providers }, pubSub) {
|
|
@@ -55842,7 +56688,7 @@ let MJEntityDocumentResolver = class MJEntityDocumentResolver extends ResolverBa
|
|
|
55842
56688
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55843
56689
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocuments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
55844
56690
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55845
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Documents', rows && rows.length > 0 ? rows[0] :
|
|
56691
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55846
56692
|
return result;
|
|
55847
56693
|
}
|
|
55848
56694
|
async MJEntityDocumentRuns_EntityDocumentIDArray(mjentitydocument_, { userPayload, providers }, pubSub) {
|
|
@@ -56164,7 +57010,7 @@ let MJEntityFieldValueResolver = class MJEntityFieldValueResolver extends Resolv
|
|
|
56164
57010
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56165
57011
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityFieldValues')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Field Values', userPayload, EntityPermissionType.Read, 'AND');
|
|
56166
57012
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56167
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Field Values', rows && rows.length > 0 ? rows[0] :
|
|
57013
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Field Values', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56168
57014
|
return result;
|
|
56169
57015
|
}
|
|
56170
57016
|
async AllMJEntityFieldValues({ userPayload, providers }, pubSub) {
|
|
@@ -57005,7 +57851,7 @@ let MJEntityFieldResolver = class MJEntityFieldResolver extends ResolverBase {
|
|
|
57005
57851
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57006
57852
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
57007
57853
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57008
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Fields', rows && rows.length > 0 ? rows[0] :
|
|
57854
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57009
57855
|
return result;
|
|
57010
57856
|
}
|
|
57011
57857
|
async AllMJEntityFields({ userPayload, providers }, pubSub) {
|
|
@@ -57392,7 +58238,7 @@ let MJEntityPermissionResolver = class MJEntityPermissionResolver extends Resolv
|
|
|
57392
58238
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57393
58239
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
57394
58240
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57395
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Permissions', rows && rows.length > 0 ? rows[0] :
|
|
58241
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57396
58242
|
return result;
|
|
57397
58243
|
}
|
|
57398
58244
|
async AllMJEntityPermissions({ userPayload, providers }, pubSub) {
|
|
@@ -57717,7 +58563,7 @@ let MJEntityRecordDocumentResolver = class MJEntityRecordDocumentResolver extend
|
|
|
57717
58563
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57718
58564
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRecordDocuments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Record Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
57719
58565
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57720
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Record Documents', rows && rows.length > 0 ? rows[0] :
|
|
58566
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Record Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57721
58567
|
return result;
|
|
57722
58568
|
}
|
|
57723
58569
|
async CreateMJEntityRecordDocument(input, { providers, userPayload }, pubSub) {
|
|
@@ -57952,7 +58798,7 @@ let MJEntityRelationshipDisplayComponentResolver = class MJEntityRelationshipDis
|
|
|
57952
58798
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57953
58799
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRelationshipDisplayComponents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Relationship Display Components', userPayload, EntityPermissionType.Read, 'AND');
|
|
57954
58800
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57955
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationship Display Components', rows && rows.length > 0 ? rows[0] :
|
|
58801
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationship Display Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57956
58802
|
return result;
|
|
57957
58803
|
}
|
|
57958
58804
|
async MJEntityRelationships_DisplayComponentIDArray(mjentityrelationshipdisplaycomponent_, { userPayload, providers }, pubSub) {
|
|
@@ -58479,7 +59325,7 @@ let MJEntityRelationshipResolver = class MJEntityRelationshipResolver extends Re
|
|
|
58479
59325
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58480
59326
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRelationships')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
58481
59327
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58482
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationships', rows && rows.length > 0 ? rows[0] :
|
|
59328
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58483
59329
|
return result;
|
|
58484
59330
|
}
|
|
58485
59331
|
async AllMJEntityRelationships({ userPayload, providers }, pubSub) {
|
|
@@ -58743,7 +59589,7 @@ let MJEntitySettingResolver = class MJEntitySettingResolver extends ResolverBase
|
|
|
58743
59589
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58744
59590
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntitySettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
58745
59591
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58746
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Settings', rows && rows.length > 0 ? rows[0] :
|
|
59592
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58747
59593
|
return result;
|
|
58748
59594
|
}
|
|
58749
59595
|
async CreateMJEntitySetting(input, { providers, userPayload }, pubSub) {
|
|
@@ -59013,7 +59859,7 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
59013
59859
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59014
59860
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEnvironments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Environments', userPayload, EntityPermissionType.Read, 'AND');
|
|
59015
59861
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59016
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] :
|
|
59862
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59017
59863
|
return result;
|
|
59018
59864
|
}
|
|
59019
59865
|
async MJArtifacts_EnvironmentIDArray(mjenvironment_, { userPayload, providers }, pubSub) {
|
|
@@ -59437,7 +60283,7 @@ let MJErrorLogResolver = class MJErrorLogResolver extends ResolverBase {
|
|
|
59437
60283
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59438
60284
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwErrorLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Error Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
59439
60285
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59440
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Error Logs', rows && rows.length > 0 ? rows[0] :
|
|
60286
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Error Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59441
60287
|
return result;
|
|
59442
60288
|
}
|
|
59443
60289
|
async CreateMJErrorLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -59741,7 +60587,7 @@ let MJExplorerNavigationItemResolver = class MJExplorerNavigationItemResolver ex
|
|
|
59741
60587
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59742
60588
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwExplorerNavigationItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Explorer Navigation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
59743
60589
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59744
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Explorer Navigation Items', rows && rows.length > 0 ? rows[0] :
|
|
60590
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Explorer Navigation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59745
60591
|
return result;
|
|
59746
60592
|
}
|
|
59747
60593
|
async CreateMJExplorerNavigationItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -59990,7 +60836,7 @@ let MJFileCategoryResolver = class MJFileCategoryResolver extends ResolverBase {
|
|
|
59990
60836
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59991
60837
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
59992
60838
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59993
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Categories', rows && rows.length > 0 ? rows[0] :
|
|
60839
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59994
60840
|
return result;
|
|
59995
60841
|
}
|
|
59996
60842
|
async MJFiles_CategoryIDArray(mjfilecategory_, { userPayload, providers }, pubSub) {
|
|
@@ -60266,7 +61112,7 @@ let MJFileEntityRecordLinkResolver = class MJFileEntityRecordLinkResolver extend
|
|
|
60266
61112
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60267
61113
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileEntityRecordLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Entity Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
60268
61114
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60269
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Entity Record Links', rows && rows.length > 0 ? rows[0] :
|
|
61115
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Entity Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60270
61116
|
return result;
|
|
60271
61117
|
}
|
|
60272
61118
|
async CreateMJFileEntityRecordLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -60520,7 +61366,7 @@ let MJFileStorageAccountResolver = class MJFileStorageAccountResolver extends Re
|
|
|
60520
61366
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60521
61367
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccounts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Accounts', userPayload, EntityPermissionType.Read, 'AND');
|
|
60522
61368
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60523
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] :
|
|
61369
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60524
61370
|
return result;
|
|
60525
61371
|
}
|
|
60526
61372
|
async CreateMJFileStorageAccount(input, { providers, userPayload }, pubSub) {
|
|
@@ -60840,7 +61686,7 @@ let MJFileStorageProviderResolver = class MJFileStorageProviderResolver extends
|
|
|
60840
61686
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60841
61687
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
60842
61688
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60843
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Providers', rows && rows.length > 0 ? rows[0] :
|
|
61689
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60844
61690
|
return result;
|
|
60845
61691
|
}
|
|
60846
61692
|
async MJFiles_ProviderIDArray(mjfilestorageprovider_, { userPayload, providers }, pubSub) {
|
|
@@ -61217,7 +62063,7 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
|
|
|
61217
62063
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61218
62064
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFiles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
61219
62065
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61220
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Files', rows && rows.length > 0 ? rows[0] :
|
|
62066
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Files', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61221
62067
|
return result;
|
|
61222
62068
|
}
|
|
61223
62069
|
async MJFileEntityRecordLinks_FileIDArray(mjfile_, { userPayload, providers }, pubSub) {
|
|
@@ -61534,7 +62380,7 @@ let MJGeneratedCodeCategoryResolver = class MJGeneratedCodeCategoryResolver exte
|
|
|
61534
62380
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61535
62381
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwGeneratedCodeCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Generated Code Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
61536
62382
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61537
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Code Categories', rows && rows.length > 0 ? rows[0] :
|
|
62383
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Code Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61538
62384
|
return result;
|
|
61539
62385
|
}
|
|
61540
62386
|
async MJGeneratedCodes_CategoryIDArray(mjgeneratedcodecategory_, { userPayload, providers }, pubSub) {
|
|
@@ -61914,7 +62760,7 @@ let MJGeneratedCodeResolver = class MJGeneratedCodeResolver extends ResolverBase
|
|
|
61914
62760
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61915
62761
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwGeneratedCodes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
61916
62762
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61917
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Codes', rows && rows.length > 0 ? rows[0] :
|
|
62763
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61918
62764
|
return result;
|
|
61919
62765
|
}
|
|
61920
62766
|
async CreateMJGeneratedCode(input, { providers, userPayload }, pubSub) {
|
|
@@ -62366,7 +63212,7 @@ let MJIntegrationObjectFieldResolver = class MJIntegrationObjectFieldResolver ex
|
|
|
62366
63212
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62367
63213
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
62368
63214
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62369
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] :
|
|
63215
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62370
63216
|
return result;
|
|
62371
63217
|
}
|
|
62372
63218
|
async CreateMJIntegrationObjectField(input, { providers, userPayload }, pubSub) {
|
|
@@ -62541,6 +63387,21 @@ __decorate([
|
|
|
62541
63387
|
Field(),
|
|
62542
63388
|
__metadata("design:type", Date)
|
|
62543
63389
|
], MJIntegrationObject_.prototype, "_mj__UpdatedAt", void 0);
|
|
63390
|
+
__decorate([
|
|
63391
|
+
Field({ nullable: true, description: `API path for create/update operations when different from the read APIPath. If NULL, the read APIPath is used for writes as well.` }),
|
|
63392
|
+
MaxLength(500),
|
|
63393
|
+
__metadata("design:type", String)
|
|
63394
|
+
], MJIntegrationObject_.prototype, "WriteAPIPath", void 0);
|
|
63395
|
+
__decorate([
|
|
63396
|
+
Field({ nullable: true, description: `HTTP method for create operations. Defaults to POST.` }),
|
|
63397
|
+
MaxLength(10),
|
|
63398
|
+
__metadata("design:type", String)
|
|
63399
|
+
], MJIntegrationObject_.prototype, "WriteMethod", void 0);
|
|
63400
|
+
__decorate([
|
|
63401
|
+
Field({ nullable: true, description: `HTTP method for delete operations. Defaults to DELETE.` }),
|
|
63402
|
+
MaxLength(10),
|
|
63403
|
+
__metadata("design:type", String)
|
|
63404
|
+
], MJIntegrationObject_.prototype, "DeleteMethod", void 0);
|
|
62544
63405
|
__decorate([
|
|
62545
63406
|
Field(),
|
|
62546
63407
|
MaxLength(100),
|
|
@@ -62631,6 +63492,18 @@ __decorate([
|
|
|
62631
63492
|
Field({ nullable: true }),
|
|
62632
63493
|
__metadata("design:type", String)
|
|
62633
63494
|
], CreateMJIntegrationObjectInput.prototype, "Status", void 0);
|
|
63495
|
+
__decorate([
|
|
63496
|
+
Field({ nullable: true }),
|
|
63497
|
+
__metadata("design:type", String)
|
|
63498
|
+
], CreateMJIntegrationObjectInput.prototype, "WriteAPIPath", void 0);
|
|
63499
|
+
__decorate([
|
|
63500
|
+
Field({ nullable: true }),
|
|
63501
|
+
__metadata("design:type", String)
|
|
63502
|
+
], CreateMJIntegrationObjectInput.prototype, "WriteMethod", void 0);
|
|
63503
|
+
__decorate([
|
|
63504
|
+
Field({ nullable: true }),
|
|
63505
|
+
__metadata("design:type", String)
|
|
63506
|
+
], CreateMJIntegrationObjectInput.prototype, "DeleteMethod", void 0);
|
|
62634
63507
|
CreateMJIntegrationObjectInput = __decorate([
|
|
62635
63508
|
InputType()
|
|
62636
63509
|
], CreateMJIntegrationObjectInput);
|
|
@@ -62708,6 +63581,18 @@ __decorate([
|
|
|
62708
63581
|
Field({ nullable: true }),
|
|
62709
63582
|
__metadata("design:type", String)
|
|
62710
63583
|
], UpdateMJIntegrationObjectInput.prototype, "Status", void 0);
|
|
63584
|
+
__decorate([
|
|
63585
|
+
Field({ nullable: true }),
|
|
63586
|
+
__metadata("design:type", String)
|
|
63587
|
+
], UpdateMJIntegrationObjectInput.prototype, "WriteAPIPath", void 0);
|
|
63588
|
+
__decorate([
|
|
63589
|
+
Field({ nullable: true }),
|
|
63590
|
+
__metadata("design:type", String)
|
|
63591
|
+
], UpdateMJIntegrationObjectInput.prototype, "WriteMethod", void 0);
|
|
63592
|
+
__decorate([
|
|
63593
|
+
Field({ nullable: true }),
|
|
63594
|
+
__metadata("design:type", String)
|
|
63595
|
+
], UpdateMJIntegrationObjectInput.prototype, "DeleteMethod", void 0);
|
|
62711
63596
|
__decorate([
|
|
62712
63597
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
62713
63598
|
__metadata("design:type", Array)
|
|
@@ -62772,7 +63657,7 @@ let MJIntegrationObjectResolver = class MJIntegrationObjectResolver extends Reso
|
|
|
62772
63657
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62773
63658
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Objects', userPayload, EntityPermissionType.Read, 'AND');
|
|
62774
63659
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62775
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] :
|
|
63660
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62776
63661
|
return result;
|
|
62777
63662
|
}
|
|
62778
63663
|
async MJIntegrationObjectFields_IntegrationObjectIDArray(mjintegrationobject_, { userPayload, providers }, pubSub) {
|
|
@@ -63067,7 +63952,7 @@ let MJIntegrationSourceTypeResolver = class MJIntegrationSourceTypeResolver exte
|
|
|
63067
63952
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63068
63953
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationSourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Source Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
63069
63954
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63070
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Source Types', rows && rows.length > 0 ? rows[0] :
|
|
63955
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63071
63956
|
return result;
|
|
63072
63957
|
}
|
|
63073
63958
|
async MJCompanyIntegrations_SourceTypeIDArray(mjintegrationsourcetype_, { userPayload, providers }, pubSub) {
|
|
@@ -63343,7 +64228,7 @@ let MJIntegrationURLFormatResolver = class MJIntegrationURLFormatResolver extend
|
|
|
63343
64228
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63344
64229
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationURLFormats')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration URL Formats', userPayload, EntityPermissionType.Read, 'AND');
|
|
63345
64230
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63346
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration URL Formats', rows && rows.length > 0 ? rows[0] :
|
|
64231
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration URL Formats', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63347
64232
|
return result;
|
|
63348
64233
|
}
|
|
63349
64234
|
async AllMJIntegrationURLFormats({ userPayload, providers }, pubSub) {
|
|
@@ -63500,6 +64385,10 @@ __decorate([
|
|
|
63500
64385
|
MaxLength(36),
|
|
63501
64386
|
__metadata("design:type", String)
|
|
63502
64387
|
], MJIntegration_.prototype, "CredentialTypeID", void 0);
|
|
64388
|
+
__decorate([
|
|
64389
|
+
Field({ nullable: true, description: `Icon for the integration. Supports Font Awesome CSS classes, image URLs, or base64 data URIs.` }),
|
|
64390
|
+
__metadata("design:type", String)
|
|
64391
|
+
], MJIntegration_.prototype, "Icon", void 0);
|
|
63503
64392
|
__decorate([
|
|
63504
64393
|
Field({ nullable: true }),
|
|
63505
64394
|
MaxLength(100),
|
|
@@ -63566,6 +64455,10 @@ __decorate([
|
|
|
63566
64455
|
Field({ nullable: true }),
|
|
63567
64456
|
__metadata("design:type", String)
|
|
63568
64457
|
], CreateMJIntegrationInput.prototype, "CredentialTypeID", void 0);
|
|
64458
|
+
__decorate([
|
|
64459
|
+
Field({ nullable: true }),
|
|
64460
|
+
__metadata("design:type", String)
|
|
64461
|
+
], CreateMJIntegrationInput.prototype, "Icon", void 0);
|
|
63569
64462
|
CreateMJIntegrationInput = __decorate([
|
|
63570
64463
|
InputType()
|
|
63571
64464
|
], CreateMJIntegrationInput);
|
|
@@ -63611,6 +64504,10 @@ __decorate([
|
|
|
63611
64504
|
Field({ nullable: true }),
|
|
63612
64505
|
__metadata("design:type", String)
|
|
63613
64506
|
], UpdateMJIntegrationInput.prototype, "CredentialTypeID", void 0);
|
|
64507
|
+
__decorate([
|
|
64508
|
+
Field({ nullable: true }),
|
|
64509
|
+
__metadata("design:type", String)
|
|
64510
|
+
], UpdateMJIntegrationInput.prototype, "Icon", void 0);
|
|
63614
64511
|
__decorate([
|
|
63615
64512
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63616
64513
|
__metadata("design:type", Array)
|
|
@@ -63675,7 +64572,7 @@ let MJIntegrationResolver = class MJIntegrationResolver extends ResolverBase {
|
|
|
63675
64572
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63676
64573
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
63677
64574
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63678
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integrations', rows && rows.length > 0 ? rows[0] :
|
|
64575
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63679
64576
|
return result;
|
|
63680
64577
|
}
|
|
63681
64578
|
async AllMJIntegrations({ userPayload, providers }, pubSub) {
|
|
@@ -64022,7 +64919,7 @@ let MJLibraryResolver = class MJLibraryResolver extends ResolverBase {
|
|
|
64022
64919
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64023
64920
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
64024
64921
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64025
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Libraries', rows && rows.length > 0 ? rows[0] :
|
|
64922
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64026
64923
|
return result;
|
|
64027
64924
|
}
|
|
64028
64925
|
async MJActionLibraries_LibraryIDArray(mjlibrary_, { userPayload, providers }, pubSub) {
|
|
@@ -64293,7 +65190,7 @@ let MJLibraryItemResolver = class MJLibraryItemResolver extends ResolverBase {
|
|
|
64293
65190
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64294
65191
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLibraryItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Library Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
64295
65192
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64296
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Library Items', rows && rows.length > 0 ? rows[0] :
|
|
65193
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Library Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64297
65194
|
return result;
|
|
64298
65195
|
}
|
|
64299
65196
|
async CreateMJLibraryItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -64560,7 +65457,7 @@ let MJListCategoryResolver = class MJListCategoryResolver extends ResolverBase {
|
|
|
64560
65457
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64561
65458
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
64562
65459
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64563
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Categories', rows && rows.length > 0 ? rows[0] :
|
|
65460
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64564
65461
|
return result;
|
|
64565
65462
|
}
|
|
64566
65463
|
async MJListCategories_ParentIDArray(mjlistcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -64855,7 +65752,7 @@ let MJListDetailResolver = class MJListDetailResolver extends ResolverBase {
|
|
|
64855
65752
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64856
65753
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
64857
65754
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64858
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Details', rows && rows.length > 0 ? rows[0] :
|
|
65755
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64859
65756
|
return result;
|
|
64860
65757
|
}
|
|
64861
65758
|
async CreateMJListDetail(input, { providers, userPayload }, pubSub) {
|
|
@@ -65148,7 +66045,7 @@ let MJListInvitationResolver = class MJListInvitationResolver extends ResolverBa
|
|
|
65148
66045
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65149
66046
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListInvitations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
65150
66047
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65151
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] :
|
|
66048
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65152
66049
|
return result;
|
|
65153
66050
|
}
|
|
65154
66051
|
async CreateMJListInvitation(input, { providers, userPayload }, pubSub) {
|
|
@@ -65403,7 +66300,7 @@ let MJListShareResolver = class MJListShareResolver extends ResolverBase {
|
|
|
65403
66300
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65404
66301
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListShares')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
65405
66302
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65406
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] :
|
|
66303
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65407
66304
|
return result;
|
|
65408
66305
|
}
|
|
65409
66306
|
async CreateMJListShare(input, { providers, userPayload }, pubSub) {
|
|
@@ -65722,7 +66619,7 @@ let MJListResolver = class MJListResolver extends ResolverBase {
|
|
|
65722
66619
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65723
66620
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLists')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
65724
66621
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65725
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Lists', rows && rows.length > 0 ? rows[0] :
|
|
66622
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Lists', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65726
66623
|
return result;
|
|
65727
66624
|
}
|
|
65728
66625
|
async MJListDetails_ListIDArray(mjlist_, { userPayload, providers }, pubSub) {
|
|
@@ -66073,7 +66970,7 @@ let MJMCPServerConnectionPermissionResolver = class MJMCPServerConnectionPermiss
|
|
|
66073
66970
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66074
66971
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnectionPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
66075
66972
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66076
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] :
|
|
66973
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66077
66974
|
return result;
|
|
66078
66975
|
}
|
|
66079
66976
|
async CreateMJMCPServerConnectionPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -66338,7 +67235,7 @@ let MJMCPServerConnectionToolResolver = class MJMCPServerConnectionToolResolver
|
|
|
66338
67235
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66339
67236
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnectionTools')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
66340
67237
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66341
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] :
|
|
67238
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66342
67239
|
return result;
|
|
66343
67240
|
}
|
|
66344
67241
|
async CreateMJMCPServerConnectionTool(input, { providers, userPayload }, pubSub) {
|
|
@@ -66768,7 +67665,7 @@ let MJMCPServerConnectionResolver = class MJMCPServerConnectionResolver extends
|
|
|
66768
67665
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66769
67666
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnections')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
66770
67667
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66771
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] :
|
|
67668
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66772
67669
|
return result;
|
|
66773
67670
|
}
|
|
66774
67671
|
async MJMCPServerConnectionTools_MCPServerConnectionIDArray(mjmcpserverconnection_, { userPayload, providers }, pubSub) {
|
|
@@ -67236,7 +68133,7 @@ let MJMCPServerToolResolver = class MJMCPServerToolResolver extends ResolverBase
|
|
|
67236
68133
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67237
68134
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerTools')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
67238
68135
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67239
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] :
|
|
68136
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67240
68137
|
return result;
|
|
67241
68138
|
}
|
|
67242
68139
|
async MJMCPServerConnectionTools_MCPServerToolIDArray(mjmcpservertool_, { userPayload, providers }, pubSub) {
|
|
@@ -67756,7 +68653,7 @@ let MJMCPServerResolver = class MJMCPServerResolver extends ResolverBase {
|
|
|
67756
68653
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67757
68654
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServers')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Servers', userPayload, EntityPermissionType.Read, 'AND');
|
|
67758
68655
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67759
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] :
|
|
68656
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67760
68657
|
return result;
|
|
67761
68658
|
}
|
|
67762
68659
|
async MJOAuthClientRegistrations_MCPServerIDArray(mjmcpserver_, { userPayload, providers }, pubSub) {
|
|
@@ -68163,7 +69060,7 @@ let MJMCPToolExecutionLogResolver = class MJMCPToolExecutionLogResolver extends
|
|
|
68163
69060
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68164
69061
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPToolExecutionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
68165
69062
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68166
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] :
|
|
69063
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68167
69064
|
return result;
|
|
68168
69065
|
}
|
|
68169
69066
|
async CreateMJMCPToolExecutionLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -68530,7 +69427,7 @@ let MJOAuthAuthServerMetadataCacheResolver = class MJOAuthAuthServerMetadataCach
|
|
|
68530
69427
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68531
69428
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthAuthServerMetadataCaches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Auth Server Metadata Caches', userPayload, EntityPermissionType.Read, 'AND');
|
|
68532
69429
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68533
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Auth Server Metadata Caches', rows && rows.length > 0 ? rows[0] :
|
|
69430
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Auth Server Metadata Caches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68534
69431
|
return result;
|
|
68535
69432
|
}
|
|
68536
69433
|
async CreateMJOAuthAuthServerMetadataCache(input, { providers, userPayload }, pubSub) {
|
|
@@ -68923,7 +69820,7 @@ let MJOAuthAuthorizationStateResolver = class MJOAuthAuthorizationStateResolver
|
|
|
68923
69820
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68924
69821
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthAuthorizationStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Authorization States', userPayload, EntityPermissionType.Read, 'AND');
|
|
68925
69822
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68926
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows && rows.length > 0 ? rows[0] :
|
|
69823
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68927
69824
|
return result;
|
|
68928
69825
|
}
|
|
68929
69826
|
async CreateMJOAuthAuthorizationState(input, { providers, userPayload }, pubSub) {
|
|
@@ -69313,7 +70210,7 @@ let MJOAuthClientRegistrationResolver = class MJOAuthClientRegistrationResolver
|
|
|
69313
70210
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69314
70211
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthClientRegistrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Client Registrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
69315
70212
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
69316
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Client Registrations', rows && rows.length > 0 ? rows[0] :
|
|
70213
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Client Registrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
69317
70214
|
return result;
|
|
69318
70215
|
}
|
|
69319
70216
|
async CreateMJOAuthClientRegistration(input, { providers, userPayload }, pubSub) {
|
|
@@ -69617,7 +70514,7 @@ let MJOAuthTokenResolver = class MJOAuthTokenResolver extends ResolverBase {
|
|
|
69617
70514
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69618
70515
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthTokens')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Tokens', userPayload, EntityPermissionType.Read, 'AND');
|
|
69619
70516
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
69620
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Tokens', rows && rows.length > 0 ? rows[0] :
|
|
70517
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Tokens', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
69621
70518
|
return result;
|
|
69622
70519
|
}
|
|
69623
70520
|
async CreateMJOAuthToken(input, { providers, userPayload }, pubSub) {
|
|
@@ -69898,7 +70795,7 @@ let MJOpenAppDependencyResolver = class MJOpenAppDependencyResolver extends Reso
|
|
|
69898
70795
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69899
70796
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
69900
70797
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
69901
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
70798
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
69902
70799
|
return result;
|
|
69903
70800
|
}
|
|
69904
70801
|
async CreateMJOpenAppDependency(input, { providers, userPayload }, pubSub) {
|
|
@@ -70263,7 +71160,7 @@ let MJOpenAppInstallHistoryResolver = class MJOpenAppInstallHistoryResolver exte
|
|
|
70263
71160
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70264
71161
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppInstallHistories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
|
|
70265
71162
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
70266
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] :
|
|
71163
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
70267
71164
|
return result;
|
|
70268
71165
|
}
|
|
70269
71166
|
async CreateMJOpenAppInstallHistory(input, { providers, userPayload }, pubSub) {
|
|
@@ -70691,7 +71588,7 @@ let MJOpenAppResolver = class MJOpenAppResolver extends ResolverBase {
|
|
|
70691
71588
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70692
71589
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenApps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open Apps', userPayload, EntityPermissionType.Read, 'AND');
|
|
70693
71590
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
70694
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] :
|
|
71591
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
70695
71592
|
return result;
|
|
70696
71593
|
}
|
|
70697
71594
|
async MJOpenAppDependencies_DependsOnAppIDArray(mjopenapp_, { userPayload, providers }, pubSub) {
|
|
@@ -70964,7 +71861,7 @@ let MJOutputDeliveryTypeResolver = class MJOutputDeliveryTypeResolver extends Re
|
|
|
70964
71861
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70965
71862
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputDeliveryTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Delivery Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
70966
71863
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
70967
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Delivery Types', rows && rows.length > 0 ? rows[0] :
|
|
71864
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Delivery Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
70968
71865
|
return result;
|
|
70969
71866
|
}
|
|
70970
71867
|
async MJReports_OutputDeliveryTypeIDArray(mjoutputdeliverytype_, { userPayload, providers }, pubSub) {
|
|
@@ -71215,7 +72112,7 @@ let MJOutputFormatTypeResolver = class MJOutputFormatTypeResolver extends Resolv
|
|
|
71215
72112
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71216
72113
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputFormatTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Format Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
71217
72114
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
71218
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Format Types', rows && rows.length > 0 ? rows[0] :
|
|
72115
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Format Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
71219
72116
|
return result;
|
|
71220
72117
|
}
|
|
71221
72118
|
async MJReports_OutputFormatTypeIDArray(mjoutputformattype_, { userPayload, providers }, pubSub) {
|
|
@@ -71454,7 +72351,7 @@ let MJOutputTriggerTypeResolver = class MJOutputTriggerTypeResolver extends Reso
|
|
|
71454
72351
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71455
72352
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputTriggerTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Trigger Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
71456
72353
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
71457
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Trigger Types', rows && rows.length > 0 ? rows[0] :
|
|
72354
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Trigger Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
71458
72355
|
return result;
|
|
71459
72356
|
}
|
|
71460
72357
|
async MJReports_OutputTriggerTypeIDArray(mjoutputtriggertype_, { userPayload, providers }, pubSub) {
|
|
@@ -71780,7 +72677,7 @@ let MJProjectResolver = class MJProjectResolver extends ResolverBase {
|
|
|
71780
72677
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71781
72678
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwProjects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
71782
72679
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
71783
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] :
|
|
72680
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
71784
72681
|
return result;
|
|
71785
72682
|
}
|
|
71786
72683
|
async MJProjects_ParentIDArray(mjproject_, { userPayload, providers }, pubSub) {
|
|
@@ -72142,7 +73039,7 @@ let MJPublicLinkResolver = class MJPublicLinkResolver extends ResolverBase {
|
|
|
72142
73039
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72143
73040
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwPublicLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Public Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
72144
73041
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
72145
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] :
|
|
73042
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
72146
73043
|
return result;
|
|
72147
73044
|
}
|
|
72148
73045
|
async CreateMJPublicLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -72330,6 +73227,10 @@ __decorate([
|
|
|
72330
73227
|
MaxLength(36),
|
|
72331
73228
|
__metadata("design:type", String)
|
|
72332
73229
|
], MJQuery_.prototype, "SQLDialectID", void 0);
|
|
73230
|
+
__decorate([
|
|
73231
|
+
Field(() => Boolean, { description: `When true, this query can be referenced by other queries using composition syntax. Only queries that are both Reusable and Approved can be composed into other queries.` }),
|
|
73232
|
+
__metadata("design:type", Boolean)
|
|
73233
|
+
], MJQuery_.prototype, "Reusable", void 0);
|
|
72333
73234
|
__decorate([
|
|
72334
73235
|
Field({ nullable: true }),
|
|
72335
73236
|
MaxLength(50),
|
|
@@ -72361,6 +73262,10 @@ __decorate([
|
|
|
72361
73262
|
Field(() => [MJQueryParameter_]),
|
|
72362
73263
|
__metadata("design:type", Array)
|
|
72363
73264
|
], MJQuery_.prototype, "MJQueryParameters_QueryIDArray", void 0);
|
|
73265
|
+
__decorate([
|
|
73266
|
+
Field(() => [MJQueryDependency_]),
|
|
73267
|
+
__metadata("design:type", Array)
|
|
73268
|
+
], MJQuery_.prototype, "MJQueryDependencies_DependsOnQueryIDArray", void 0);
|
|
72364
73269
|
__decorate([
|
|
72365
73270
|
Field(() => [MJQueryEntity_]),
|
|
72366
73271
|
__metadata("design:type", Array)
|
|
@@ -72369,6 +73274,10 @@ __decorate([
|
|
|
72369
73274
|
Field(() => [MJQuerySQL_]),
|
|
72370
73275
|
__metadata("design:type", Array)
|
|
72371
73276
|
], MJQuery_.prototype, "MJQuerySQLs_QueryIDArray", void 0);
|
|
73277
|
+
__decorate([
|
|
73278
|
+
Field(() => [MJQueryDependency_]),
|
|
73279
|
+
__metadata("design:type", Array)
|
|
73280
|
+
], MJQuery_.prototype, "MJQueryDependencies_QueryIDArray", void 0);
|
|
72372
73281
|
MJQuery_ = __decorate([
|
|
72373
73282
|
ObjectType({ description: `Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.` })
|
|
72374
73283
|
], MJQuery_);
|
|
@@ -72462,6 +73371,10 @@ __decorate([
|
|
|
72462
73371
|
Field({ nullable: true }),
|
|
72463
73372
|
__metadata("design:type", String)
|
|
72464
73373
|
], CreateMJQueryInput.prototype, "SQLDialectID", void 0);
|
|
73374
|
+
__decorate([
|
|
73375
|
+
Field(() => Boolean, { nullable: true }),
|
|
73376
|
+
__metadata("design:type", Boolean)
|
|
73377
|
+
], CreateMJQueryInput.prototype, "Reusable", void 0);
|
|
72465
73378
|
CreateMJQueryInput = __decorate([
|
|
72466
73379
|
InputType()
|
|
72467
73380
|
], CreateMJQueryInput);
|
|
@@ -72555,6 +73468,10 @@ __decorate([
|
|
|
72555
73468
|
Field({ nullable: true }),
|
|
72556
73469
|
__metadata("design:type", String)
|
|
72557
73470
|
], UpdateMJQueryInput.prototype, "SQLDialectID", void 0);
|
|
73471
|
+
__decorate([
|
|
73472
|
+
Field(() => Boolean, { nullable: true }),
|
|
73473
|
+
__metadata("design:type", Boolean)
|
|
73474
|
+
], UpdateMJQueryInput.prototype, "Reusable", void 0);
|
|
72558
73475
|
__decorate([
|
|
72559
73476
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
72560
73477
|
__metadata("design:type", Array)
|
|
@@ -72619,7 +73536,7 @@ let MJQueryResolver = class MJQueryResolver extends ResolverBase {
|
|
|
72619
73536
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72620
73537
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queries', userPayload, EntityPermissionType.Read, 'AND');
|
|
72621
73538
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
72622
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queries', rows && rows.length > 0 ? rows[0] :
|
|
73539
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
72623
73540
|
return result;
|
|
72624
73541
|
}
|
|
72625
73542
|
async MJQueryFields_QueryIDArray(mjquery_, { userPayload, providers }, pubSub) {
|
|
@@ -72654,6 +73571,14 @@ let MJQueryResolver = class MJQueryResolver extends ResolverBase {
|
|
|
72654
73571
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Parameters', rows, this.GetUserFromPayload(userPayload));
|
|
72655
73572
|
return result;
|
|
72656
73573
|
}
|
|
73574
|
+
async MJQueryDependencies_DependsOnQueryIDArray(mjquery_, { userPayload, providers }, pubSub) {
|
|
73575
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
73576
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73577
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnQueryID')}='${mjquery_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
73578
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
73579
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
73580
|
+
return result;
|
|
73581
|
+
}
|
|
72657
73582
|
async MJQueryEntities_QueryIDArray(mjquery_, { userPayload, providers }, pubSub) {
|
|
72658
73583
|
this.CheckUserReadPermissions('MJ: Query Entities', userPayload);
|
|
72659
73584
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -72670,6 +73595,14 @@ let MJQueryResolver = class MJQueryResolver extends ResolverBase {
|
|
|
72670
73595
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query SQLs', rows, this.GetUserFromPayload(userPayload));
|
|
72671
73596
|
return result;
|
|
72672
73597
|
}
|
|
73598
|
+
async MJQueryDependencies_QueryIDArray(mjquery_, { userPayload, providers }, pubSub) {
|
|
73599
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
73600
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73601
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('QueryID')}='${mjquery_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
73602
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
73603
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
73604
|
+
return result;
|
|
73605
|
+
}
|
|
72673
73606
|
async CreateMJQuery(input, { providers, userPayload }, pubSub) {
|
|
72674
73607
|
const provider = GetReadWriteProvider(providers);
|
|
72675
73608
|
return this.CreateRecord('MJ: Queries', input, provider, userPayload, pubSub);
|
|
@@ -72756,6 +73689,15 @@ __decorate([
|
|
|
72756
73689
|
__metadata("design:paramtypes", [MJQuery_, Object, PubSubEngine]),
|
|
72757
73690
|
__metadata("design:returntype", Promise)
|
|
72758
73691
|
], MJQueryResolver.prototype, "MJQueryParameters_QueryIDArray", null);
|
|
73692
|
+
__decorate([
|
|
73693
|
+
FieldResolver(() => [MJQueryDependency_]),
|
|
73694
|
+
__param(0, Root()),
|
|
73695
|
+
__param(1, Ctx()),
|
|
73696
|
+
__param(2, PubSub()),
|
|
73697
|
+
__metadata("design:type", Function),
|
|
73698
|
+
__metadata("design:paramtypes", [MJQuery_, Object, PubSubEngine]),
|
|
73699
|
+
__metadata("design:returntype", Promise)
|
|
73700
|
+
], MJQueryResolver.prototype, "MJQueryDependencies_DependsOnQueryIDArray", null);
|
|
72759
73701
|
__decorate([
|
|
72760
73702
|
FieldResolver(() => [MJQueryEntity_]),
|
|
72761
73703
|
__param(0, Root()),
|
|
@@ -72774,6 +73716,15 @@ __decorate([
|
|
|
72774
73716
|
__metadata("design:paramtypes", [MJQuery_, Object, PubSubEngine]),
|
|
72775
73717
|
__metadata("design:returntype", Promise)
|
|
72776
73718
|
], MJQueryResolver.prototype, "MJQuerySQLs_QueryIDArray", null);
|
|
73719
|
+
__decorate([
|
|
73720
|
+
FieldResolver(() => [MJQueryDependency_]),
|
|
73721
|
+
__param(0, Root()),
|
|
73722
|
+
__param(1, Ctx()),
|
|
73723
|
+
__param(2, PubSub()),
|
|
73724
|
+
__metadata("design:type", Function),
|
|
73725
|
+
__metadata("design:paramtypes", [MJQuery_, Object, PubSubEngine]),
|
|
73726
|
+
__metadata("design:returntype", Promise)
|
|
73727
|
+
], MJQueryResolver.prototype, "MJQueryDependencies_QueryIDArray", null);
|
|
72777
73728
|
__decorate([
|
|
72778
73729
|
Mutation(() => MJQuery_),
|
|
72779
73730
|
__param(0, Arg('input', () => CreateMJQueryInput)),
|
|
@@ -73036,7 +73987,7 @@ let MJQueryCategoryResolver = class MJQueryCategoryResolver extends ResolverBase
|
|
|
73036
73987
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73037
73988
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
73038
73989
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
73039
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Categories', rows && rows.length > 0 ? rows[0] :
|
|
73990
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
73040
73991
|
return result;
|
|
73041
73992
|
}
|
|
73042
73993
|
async MJQueryCategories_ParentIDArray(mjquerycategory_, { userPayload, providers }, pubSub) {
|
|
@@ -73156,6 +74107,286 @@ MJQueryCategoryResolver = __decorate([
|
|
|
73156
74107
|
], MJQueryCategoryResolver);
|
|
73157
74108
|
export { MJQueryCategoryResolver };
|
|
73158
74109
|
//****************************************************************************
|
|
74110
|
+
// ENTITY CLASS for MJ: Query Dependencies
|
|
74111
|
+
//****************************************************************************
|
|
74112
|
+
let MJQueryDependency_ = class MJQueryDependency_ {
|
|
74113
|
+
};
|
|
74114
|
+
__decorate([
|
|
74115
|
+
Field(),
|
|
74116
|
+
MaxLength(36),
|
|
74117
|
+
__metadata("design:type", String)
|
|
74118
|
+
], MJQueryDependency_.prototype, "ID", void 0);
|
|
74119
|
+
__decorate([
|
|
74120
|
+
Field({ description: `Foreign key to the query that contains the composition reference.` }),
|
|
74121
|
+
MaxLength(36),
|
|
74122
|
+
__metadata("design:type", String)
|
|
74123
|
+
], MJQueryDependency_.prototype, "QueryID", void 0);
|
|
74124
|
+
__decorate([
|
|
74125
|
+
Field({ description: `Foreign key to the referenced (depended-upon) query.` }),
|
|
74126
|
+
MaxLength(36),
|
|
74127
|
+
__metadata("design:type", String)
|
|
74128
|
+
], MJQueryDependency_.prototype, "DependsOnQueryID", void 0);
|
|
74129
|
+
__decorate([
|
|
74130
|
+
Field({ description: `The full composition reference path as written in the SQL.` }),
|
|
74131
|
+
MaxLength(500),
|
|
74132
|
+
__metadata("design:type", String)
|
|
74133
|
+
], MJQueryDependency_.prototype, "ReferencePath", void 0);
|
|
74134
|
+
__decorate([
|
|
74135
|
+
Field({ nullable: true, description: `SQL alias used for the composed CTE in the referencing query.` }),
|
|
74136
|
+
MaxLength(100),
|
|
74137
|
+
__metadata("design:type", String)
|
|
74138
|
+
], MJQueryDependency_.prototype, "Alias", void 0);
|
|
74139
|
+
__decorate([
|
|
74140
|
+
Field({ nullable: true, description: `JSON object mapping parameter names to values or pass-through parameter names.` }),
|
|
74141
|
+
__metadata("design:type", String)
|
|
74142
|
+
], MJQueryDependency_.prototype, "ParameterMapping", void 0);
|
|
74143
|
+
__decorate([
|
|
74144
|
+
Field({ description: `How the dependency was detected: Auto (parsed from SQL) or Manual (user-specified).` }),
|
|
74145
|
+
MaxLength(20),
|
|
74146
|
+
__metadata("design:type", String)
|
|
74147
|
+
], MJQueryDependency_.prototype, "DetectionMethod", void 0);
|
|
74148
|
+
__decorate([
|
|
74149
|
+
Field(),
|
|
74150
|
+
__metadata("design:type", Date)
|
|
74151
|
+
], MJQueryDependency_.prototype, "_mj__CreatedAt", void 0);
|
|
74152
|
+
__decorate([
|
|
74153
|
+
Field(),
|
|
74154
|
+
__metadata("design:type", Date)
|
|
74155
|
+
], MJQueryDependency_.prototype, "_mj__UpdatedAt", void 0);
|
|
74156
|
+
__decorate([
|
|
74157
|
+
Field(),
|
|
74158
|
+
MaxLength(255),
|
|
74159
|
+
__metadata("design:type", String)
|
|
74160
|
+
], MJQueryDependency_.prototype, "Query", void 0);
|
|
74161
|
+
__decorate([
|
|
74162
|
+
Field(),
|
|
74163
|
+
MaxLength(255),
|
|
74164
|
+
__metadata("design:type", String)
|
|
74165
|
+
], MJQueryDependency_.prototype, "DependsOnQuery", void 0);
|
|
74166
|
+
MJQueryDependency_ = __decorate([
|
|
74167
|
+
ObjectType({ description: `Tracks which queries reference other queries via composition syntax. Auto-populated by the query save pipeline.` })
|
|
74168
|
+
], MJQueryDependency_);
|
|
74169
|
+
export { MJQueryDependency_ };
|
|
74170
|
+
//****************************************************************************
|
|
74171
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
74172
|
+
//****************************************************************************
|
|
74173
|
+
let CreateMJQueryDependencyInput = class CreateMJQueryDependencyInput {
|
|
74174
|
+
};
|
|
74175
|
+
__decorate([
|
|
74176
|
+
Field({ nullable: true }),
|
|
74177
|
+
__metadata("design:type", String)
|
|
74178
|
+
], CreateMJQueryDependencyInput.prototype, "ID", void 0);
|
|
74179
|
+
__decorate([
|
|
74180
|
+
Field({ nullable: true }),
|
|
74181
|
+
__metadata("design:type", String)
|
|
74182
|
+
], CreateMJQueryDependencyInput.prototype, "QueryID", void 0);
|
|
74183
|
+
__decorate([
|
|
74184
|
+
Field({ nullable: true }),
|
|
74185
|
+
__metadata("design:type", String)
|
|
74186
|
+
], CreateMJQueryDependencyInput.prototype, "DependsOnQueryID", void 0);
|
|
74187
|
+
__decorate([
|
|
74188
|
+
Field({ nullable: true }),
|
|
74189
|
+
__metadata("design:type", String)
|
|
74190
|
+
], CreateMJQueryDependencyInput.prototype, "ReferencePath", void 0);
|
|
74191
|
+
__decorate([
|
|
74192
|
+
Field({ nullable: true }),
|
|
74193
|
+
__metadata("design:type", String)
|
|
74194
|
+
], CreateMJQueryDependencyInput.prototype, "Alias", void 0);
|
|
74195
|
+
__decorate([
|
|
74196
|
+
Field({ nullable: true }),
|
|
74197
|
+
__metadata("design:type", String)
|
|
74198
|
+
], CreateMJQueryDependencyInput.prototype, "ParameterMapping", void 0);
|
|
74199
|
+
__decorate([
|
|
74200
|
+
Field({ nullable: true }),
|
|
74201
|
+
__metadata("design:type", String)
|
|
74202
|
+
], CreateMJQueryDependencyInput.prototype, "DetectionMethod", void 0);
|
|
74203
|
+
CreateMJQueryDependencyInput = __decorate([
|
|
74204
|
+
InputType()
|
|
74205
|
+
], CreateMJQueryDependencyInput);
|
|
74206
|
+
export { CreateMJQueryDependencyInput };
|
|
74207
|
+
//****************************************************************************
|
|
74208
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
74209
|
+
//****************************************************************************
|
|
74210
|
+
let UpdateMJQueryDependencyInput = class UpdateMJQueryDependencyInput {
|
|
74211
|
+
};
|
|
74212
|
+
__decorate([
|
|
74213
|
+
Field(),
|
|
74214
|
+
__metadata("design:type", String)
|
|
74215
|
+
], UpdateMJQueryDependencyInput.prototype, "ID", void 0);
|
|
74216
|
+
__decorate([
|
|
74217
|
+
Field({ nullable: true }),
|
|
74218
|
+
__metadata("design:type", String)
|
|
74219
|
+
], UpdateMJQueryDependencyInput.prototype, "QueryID", void 0);
|
|
74220
|
+
__decorate([
|
|
74221
|
+
Field({ nullable: true }),
|
|
74222
|
+
__metadata("design:type", String)
|
|
74223
|
+
], UpdateMJQueryDependencyInput.prototype, "DependsOnQueryID", void 0);
|
|
74224
|
+
__decorate([
|
|
74225
|
+
Field({ nullable: true }),
|
|
74226
|
+
__metadata("design:type", String)
|
|
74227
|
+
], UpdateMJQueryDependencyInput.prototype, "ReferencePath", void 0);
|
|
74228
|
+
__decorate([
|
|
74229
|
+
Field({ nullable: true }),
|
|
74230
|
+
__metadata("design:type", String)
|
|
74231
|
+
], UpdateMJQueryDependencyInput.prototype, "Alias", void 0);
|
|
74232
|
+
__decorate([
|
|
74233
|
+
Field({ nullable: true }),
|
|
74234
|
+
__metadata("design:type", String)
|
|
74235
|
+
], UpdateMJQueryDependencyInput.prototype, "ParameterMapping", void 0);
|
|
74236
|
+
__decorate([
|
|
74237
|
+
Field({ nullable: true }),
|
|
74238
|
+
__metadata("design:type", String)
|
|
74239
|
+
], UpdateMJQueryDependencyInput.prototype, "DetectionMethod", void 0);
|
|
74240
|
+
__decorate([
|
|
74241
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
74242
|
+
__metadata("design:type", Array)
|
|
74243
|
+
], UpdateMJQueryDependencyInput.prototype, "OldValues___", void 0);
|
|
74244
|
+
UpdateMJQueryDependencyInput = __decorate([
|
|
74245
|
+
InputType()
|
|
74246
|
+
], UpdateMJQueryDependencyInput);
|
|
74247
|
+
export { UpdateMJQueryDependencyInput };
|
|
74248
|
+
//****************************************************************************
|
|
74249
|
+
// RESOLVER for MJ: Query Dependencies
|
|
74250
|
+
//****************************************************************************
|
|
74251
|
+
let RunMJQueryDependencyViewResult = class RunMJQueryDependencyViewResult {
|
|
74252
|
+
};
|
|
74253
|
+
__decorate([
|
|
74254
|
+
Field(() => [MJQueryDependency_]),
|
|
74255
|
+
__metadata("design:type", Array)
|
|
74256
|
+
], RunMJQueryDependencyViewResult.prototype, "Results", void 0);
|
|
74257
|
+
__decorate([
|
|
74258
|
+
Field(() => String, { nullable: true }),
|
|
74259
|
+
__metadata("design:type", String)
|
|
74260
|
+
], RunMJQueryDependencyViewResult.prototype, "UserViewRunID", void 0);
|
|
74261
|
+
__decorate([
|
|
74262
|
+
Field(() => Int, { nullable: true }),
|
|
74263
|
+
__metadata("design:type", Number)
|
|
74264
|
+
], RunMJQueryDependencyViewResult.prototype, "RowCount", void 0);
|
|
74265
|
+
__decorate([
|
|
74266
|
+
Field(() => Int, { nullable: true }),
|
|
74267
|
+
__metadata("design:type", Number)
|
|
74268
|
+
], RunMJQueryDependencyViewResult.prototype, "TotalRowCount", void 0);
|
|
74269
|
+
__decorate([
|
|
74270
|
+
Field(() => Int, { nullable: true }),
|
|
74271
|
+
__metadata("design:type", Number)
|
|
74272
|
+
], RunMJQueryDependencyViewResult.prototype, "ExecutionTime", void 0);
|
|
74273
|
+
__decorate([
|
|
74274
|
+
Field({ nullable: true }),
|
|
74275
|
+
__metadata("design:type", String)
|
|
74276
|
+
], RunMJQueryDependencyViewResult.prototype, "ErrorMessage", void 0);
|
|
74277
|
+
__decorate([
|
|
74278
|
+
Field(() => Boolean, { nullable: false }),
|
|
74279
|
+
__metadata("design:type", Boolean)
|
|
74280
|
+
], RunMJQueryDependencyViewResult.prototype, "Success", void 0);
|
|
74281
|
+
RunMJQueryDependencyViewResult = __decorate([
|
|
74282
|
+
ObjectType()
|
|
74283
|
+
], RunMJQueryDependencyViewResult);
|
|
74284
|
+
export { RunMJQueryDependencyViewResult };
|
|
74285
|
+
let MJQueryDependencyResolver = class MJQueryDependencyResolver extends ResolverBase {
|
|
74286
|
+
async RunMJQueryDependencyViewByID(input, { providers, userPayload }, pubSub) {
|
|
74287
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74288
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
74289
|
+
}
|
|
74290
|
+
async RunMJQueryDependencyViewByName(input, { providers, userPayload }, pubSub) {
|
|
74291
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74292
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
74293
|
+
}
|
|
74294
|
+
async RunMJQueryDependencyDynamicView(input, { providers, userPayload }, pubSub) {
|
|
74295
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74296
|
+
input.EntityName = 'MJ: Query Dependencies';
|
|
74297
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
74298
|
+
}
|
|
74299
|
+
async MJQueryDependency(ID, { userPayload, providers }, pubSub) {
|
|
74300
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
74301
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74302
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
74303
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
74304
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
74305
|
+
return result;
|
|
74306
|
+
}
|
|
74307
|
+
async CreateMJQueryDependency(input, { providers, userPayload }, pubSub) {
|
|
74308
|
+
const provider = GetReadWriteProvider(providers);
|
|
74309
|
+
return this.CreateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub);
|
|
74310
|
+
}
|
|
74311
|
+
async UpdateMJQueryDependency(input, { providers, userPayload }, pubSub) {
|
|
74312
|
+
const provider = GetReadWriteProvider(providers);
|
|
74313
|
+
return this.UpdateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub);
|
|
74314
|
+
}
|
|
74315
|
+
async DeleteMJQueryDependency(ID, options, { providers, userPayload }, pubSub) {
|
|
74316
|
+
const provider = GetReadWriteProvider(providers);
|
|
74317
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
74318
|
+
return this.DeleteRecord('MJ: Query Dependencies', key, options, provider, userPayload, pubSub);
|
|
74319
|
+
}
|
|
74320
|
+
};
|
|
74321
|
+
__decorate([
|
|
74322
|
+
Query(() => RunMJQueryDependencyViewResult),
|
|
74323
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
74324
|
+
__param(1, Ctx()),
|
|
74325
|
+
__param(2, PubSub()),
|
|
74326
|
+
__metadata("design:type", Function),
|
|
74327
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
74328
|
+
__metadata("design:returntype", Promise)
|
|
74329
|
+
], MJQueryDependencyResolver.prototype, "RunMJQueryDependencyViewByID", null);
|
|
74330
|
+
__decorate([
|
|
74331
|
+
Query(() => RunMJQueryDependencyViewResult),
|
|
74332
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
74333
|
+
__param(1, Ctx()),
|
|
74334
|
+
__param(2, PubSub()),
|
|
74335
|
+
__metadata("design:type", Function),
|
|
74336
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
74337
|
+
__metadata("design:returntype", Promise)
|
|
74338
|
+
], MJQueryDependencyResolver.prototype, "RunMJQueryDependencyViewByName", null);
|
|
74339
|
+
__decorate([
|
|
74340
|
+
Query(() => RunMJQueryDependencyViewResult),
|
|
74341
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
74342
|
+
__param(1, Ctx()),
|
|
74343
|
+
__param(2, PubSub()),
|
|
74344
|
+
__metadata("design:type", Function),
|
|
74345
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
74346
|
+
__metadata("design:returntype", Promise)
|
|
74347
|
+
], MJQueryDependencyResolver.prototype, "RunMJQueryDependencyDynamicView", null);
|
|
74348
|
+
__decorate([
|
|
74349
|
+
Query(() => MJQueryDependency_, { nullable: true }),
|
|
74350
|
+
__param(0, Arg('ID', () => String)),
|
|
74351
|
+
__param(1, Ctx()),
|
|
74352
|
+
__param(2, PubSub()),
|
|
74353
|
+
__metadata("design:type", Function),
|
|
74354
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
74355
|
+
__metadata("design:returntype", Promise)
|
|
74356
|
+
], MJQueryDependencyResolver.prototype, "MJQueryDependency", null);
|
|
74357
|
+
__decorate([
|
|
74358
|
+
Mutation(() => MJQueryDependency_),
|
|
74359
|
+
__param(0, Arg('input', () => CreateMJQueryDependencyInput)),
|
|
74360
|
+
__param(1, Ctx()),
|
|
74361
|
+
__param(2, PubSub()),
|
|
74362
|
+
__metadata("design:type", Function),
|
|
74363
|
+
__metadata("design:paramtypes", [CreateMJQueryDependencyInput, Object, PubSubEngine]),
|
|
74364
|
+
__metadata("design:returntype", Promise)
|
|
74365
|
+
], MJQueryDependencyResolver.prototype, "CreateMJQueryDependency", null);
|
|
74366
|
+
__decorate([
|
|
74367
|
+
Mutation(() => MJQueryDependency_),
|
|
74368
|
+
__param(0, Arg('input', () => UpdateMJQueryDependencyInput)),
|
|
74369
|
+
__param(1, Ctx()),
|
|
74370
|
+
__param(2, PubSub()),
|
|
74371
|
+
__metadata("design:type", Function),
|
|
74372
|
+
__metadata("design:paramtypes", [UpdateMJQueryDependencyInput, Object, PubSubEngine]),
|
|
74373
|
+
__metadata("design:returntype", Promise)
|
|
74374
|
+
], MJQueryDependencyResolver.prototype, "UpdateMJQueryDependency", null);
|
|
74375
|
+
__decorate([
|
|
74376
|
+
Mutation(() => MJQueryDependency_),
|
|
74377
|
+
__param(0, Arg('ID', () => String)),
|
|
74378
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
74379
|
+
__param(2, Ctx()),
|
|
74380
|
+
__param(3, PubSub()),
|
|
74381
|
+
__metadata("design:type", Function),
|
|
74382
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
74383
|
+
__metadata("design:returntype", Promise)
|
|
74384
|
+
], MJQueryDependencyResolver.prototype, "DeleteMJQueryDependency", null);
|
|
74385
|
+
MJQueryDependencyResolver = __decorate([
|
|
74386
|
+
Resolver(MJQueryDependency_)
|
|
74387
|
+
], MJQueryDependencyResolver);
|
|
74388
|
+
export { MJQueryDependencyResolver };
|
|
74389
|
+
//****************************************************************************
|
|
73159
74390
|
// ENTITY CLASS for MJ: Query Entities
|
|
73160
74391
|
//****************************************************************************
|
|
73161
74392
|
let MJQueryEntity_ = class MJQueryEntity_ {
|
|
@@ -73324,7 +74555,7 @@ let MJQueryEntityResolver = class MJQueryEntityResolver extends ResolverBase {
|
|
|
73324
74555
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73325
74556
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
73326
74557
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
73327
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Entities', rows && rows.length > 0 ? rows[0] :
|
|
74558
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
73328
74559
|
return result;
|
|
73329
74560
|
}
|
|
73330
74561
|
async CreateMJQueryEntity(input, { providers, userPayload }, pubSub) {
|
|
@@ -73702,7 +74933,7 @@ let MJQueryFieldResolver = class MJQueryFieldResolver extends ResolverBase {
|
|
|
73702
74933
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
73703
74934
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
73704
74935
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
73705
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Fields', rows && rows.length > 0 ? rows[0] :
|
|
74936
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
73706
74937
|
return result;
|
|
73707
74938
|
}
|
|
73708
74939
|
async CreateMJQueryField(input, { providers, userPayload }, pubSub) {
|
|
@@ -74024,7 +75255,7 @@ let MJQueryParameterResolver = class MJQueryParameterResolver extends ResolverBa
|
|
|
74024
75255
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74025
75256
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryParameters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Parameters', userPayload, EntityPermissionType.Read, 'AND');
|
|
74026
75257
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
74027
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Parameters', rows && rows.length > 0 ? rows[0] :
|
|
75258
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Parameters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
74028
75259
|
return result;
|
|
74029
75260
|
}
|
|
74030
75261
|
async CreateMJQueryParameter(input, { providers, userPayload }, pubSub) {
|
|
@@ -74253,7 +75484,7 @@ let MJQueryPermissionResolver = class MJQueryPermissionResolver extends Resolver
|
|
|
74253
75484
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74254
75485
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
74255
75486
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
74256
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Permissions', rows && rows.length > 0 ? rows[0] :
|
|
75487
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
74257
75488
|
return result;
|
|
74258
75489
|
}
|
|
74259
75490
|
async CreateMJQueryPermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -74494,7 +75725,7 @@ let MJQuerySQLResolver = class MJQuerySQLResolver extends ResolverBase {
|
|
|
74494
75725
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74495
75726
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQuerySQLs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query SQLs', userPayload, EntityPermissionType.Read, 'AND');
|
|
74496
75727
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
74497
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query SQLs', rows && rows.length > 0 ? rows[0] :
|
|
75728
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query SQLs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
74498
75729
|
return result;
|
|
74499
75730
|
}
|
|
74500
75731
|
async CreateMJQuerySQL(input, { providers, userPayload }, pubSub) {
|
|
@@ -74802,7 +76033,7 @@ let MJQueueTaskResolver = class MJQueueTaskResolver extends ResolverBase {
|
|
|
74802
76033
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
74803
76034
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueueTasks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queue Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
74804
76035
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
74805
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Tasks', rows && rows.length > 0 ? rows[0] :
|
|
76036
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
74806
76037
|
return result;
|
|
74807
76038
|
}
|
|
74808
76039
|
async CreateMJQueueTask(input, { providers, userPayload }, pubSub) {
|
|
@@ -75062,7 +76293,7 @@ let MJQueueTypeResolver = class MJQueueTypeResolver extends ResolverBase {
|
|
|
75062
76293
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75063
76294
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueueTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queue Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
75064
76295
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
75065
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Types', rows && rows.length > 0 ? rows[0] :
|
|
76296
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75066
76297
|
return result;
|
|
75067
76298
|
}
|
|
75068
76299
|
async MJQueues_QueueTypeIDArray(mjqueuetype_, { userPayload, providers }, pubSub) {
|
|
@@ -75485,7 +76716,7 @@ let MJQueueResolver = class MJQueueResolver extends ResolverBase {
|
|
|
75485
76716
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75486
76717
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueues')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queues', userPayload, EntityPermissionType.Read, 'AND');
|
|
75487
76718
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
75488
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queues', rows && rows.length > 0 ? rows[0] :
|
|
76719
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queues', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75489
76720
|
return result;
|
|
75490
76721
|
}
|
|
75491
76722
|
async MJQueueTasks_QueueIDArray(mjqueue_, { userPayload, providers }, pubSub) {
|
|
@@ -75755,7 +76986,7 @@ let MJRecommendationItemResolver = class MJRecommendationItemResolver extends Re
|
|
|
75755
76986
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75756
76987
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
75757
76988
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
75758
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Items', rows && rows.length > 0 ? rows[0] :
|
|
76989
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75759
76990
|
return result;
|
|
75760
76991
|
}
|
|
75761
76992
|
async CreateMJRecommendationItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -75977,7 +77208,7 @@ let MJRecommendationProviderResolver = class MJRecommendationProviderResolver ex
|
|
|
75977
77208
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75978
77209
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
75979
77210
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
75980
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Providers', rows && rows.length > 0 ? rows[0] :
|
|
77211
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75981
77212
|
return result;
|
|
75982
77213
|
}
|
|
75983
77214
|
async MJRecommendationRuns_RecommendationProviderIDArray(mjrecommendationprovider_, { userPayload, providers }, pubSub) {
|
|
@@ -76276,7 +77507,7 @@ let MJRecommendationRunResolver = class MJRecommendationRunResolver extends Reso
|
|
|
76276
77507
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76277
77508
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
76278
77509
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
76279
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Runs', rows && rows.length > 0 ? rows[0] :
|
|
77510
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
76280
77511
|
return result;
|
|
76281
77512
|
}
|
|
76282
77513
|
async MJRecommendations_RecommendationRunIDArray(mjrecommendationrun_, { userPayload, providers }, pubSub) {
|
|
@@ -76538,7 +77769,7 @@ let MJRecommendationResolver = class MJRecommendationResolver extends ResolverBa
|
|
|
76538
77769
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76539
77770
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendations', userPayload, EntityPermissionType.Read, 'AND');
|
|
76540
77771
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
76541
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendations', rows && rows.length > 0 ? rows[0] :
|
|
77772
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
76542
77773
|
return result;
|
|
76543
77774
|
}
|
|
76544
77775
|
async MJRecommendationItems_RecommendationIDArray(mjrecommendation_, { userPayload, providers }, pubSub) {
|
|
@@ -76807,7 +78038,7 @@ let MJRecordChangeReplayRunResolver = class MJRecordChangeReplayRunResolver exte
|
|
|
76807
78038
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76808
78039
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordChangeReplayRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Change Replay Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
76809
78040
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
76810
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Change Replay Runs', rows && rows.length > 0 ? rows[0] :
|
|
78041
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Change Replay Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
76811
78042
|
return result;
|
|
76812
78043
|
}
|
|
76813
78044
|
async MJRecordChanges_ReplayRunIDArray(mjrecordchangereplayrun_, { userPayload, providers }, pubSub) {
|
|
@@ -77217,7 +78448,7 @@ let MJRecordChangeResolver = class MJRecordChangeResolver extends ResolverBase {
|
|
|
77217
78448
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
77218
78449
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordChanges')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
77219
78450
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
77220
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Changes', rows && rows.length > 0 ? rows[0] :
|
|
78451
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Changes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
77221
78452
|
return result;
|
|
77222
78453
|
}
|
|
77223
78454
|
async MJVersionLabelItems_RecordChangeIDArray(mjrecordchange_, { userPayload, providers }, pubSub) {
|
|
@@ -77526,7 +78757,7 @@ let MJRecordLinkResolver = class MJRecordLinkResolver extends ResolverBase {
|
|
|
77526
78757
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
77527
78758
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
77528
78759
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
77529
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Links', rows && rows.length > 0 ? rows[0] :
|
|
78760
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
77530
78761
|
return result;
|
|
77531
78762
|
}
|
|
77532
78763
|
async CreateMJRecordLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -77775,7 +79006,7 @@ let MJRecordMergeDeletionLogResolver = class MJRecordMergeDeletionLogResolver ex
|
|
|
77775
79006
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
77776
79007
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordMergeDeletionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Merge Deletion Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
77777
79008
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
77778
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Deletion Logs', rows && rows.length > 0 ? rows[0] :
|
|
79009
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Deletion Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
77779
79010
|
return result;
|
|
77780
79011
|
}
|
|
77781
79012
|
async CreateMJRecordMergeDeletionLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -78117,7 +79348,7 @@ let MJRecordMergeLogResolver = class MJRecordMergeLogResolver extends ResolverBa
|
|
|
78117
79348
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
78118
79349
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordMergeLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Merge Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
78119
79350
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
78120
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Logs', rows && rows.length > 0 ? rows[0] :
|
|
79351
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
78121
79352
|
return result;
|
|
78122
79353
|
}
|
|
78123
79354
|
async MJRecordMergeDeletionLogs_RecordMergeLogIDArray(mjrecordmergelog_, { userPayload, providers }, pubSub) {
|
|
@@ -78418,7 +79649,7 @@ let MJReportCategoryResolver = class MJReportCategoryResolver extends ResolverBa
|
|
|
78418
79649
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
78419
79650
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
78420
79651
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
78421
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Categories', rows && rows.length > 0 ? rows[0] :
|
|
79652
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
78422
79653
|
return result;
|
|
78423
79654
|
}
|
|
78424
79655
|
async MJReportCategories_ParentIDArray(mjreportcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -78693,7 +79924,7 @@ let MJReportSnapshotResolver = class MJReportSnapshotResolver extends ResolverBa
|
|
|
78693
79924
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
78694
79925
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportSnapshots')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Snapshots', userPayload, EntityPermissionType.Read, 'AND');
|
|
78695
79926
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
78696
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Snapshots', rows && rows.length > 0 ? rows[0] :
|
|
79927
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Snapshots', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
78697
79928
|
return result;
|
|
78698
79929
|
}
|
|
78699
79930
|
async CreateMJReportSnapshot(input, { providers, userPayload }, pubSub) {
|
|
@@ -78934,7 +80165,7 @@ let MJReportUserStateResolver = class MJReportUserStateResolver extends Resolver
|
|
|
78934
80165
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
78935
80166
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportUserStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
78936
80167
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
78937
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report User States', rows && rows.length > 0 ? rows[0] :
|
|
80168
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
78938
80169
|
return result;
|
|
78939
80170
|
}
|
|
78940
80171
|
async CreateMJReportUserState(input, { providers, userPayload }, pubSub) {
|
|
@@ -79206,7 +80437,7 @@ let MJReportVersionResolver = class MJReportVersionResolver extends ResolverBase
|
|
|
79206
80437
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
79207
80438
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
79208
80439
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
79209
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Versions', rows && rows.length > 0 ? rows[0] :
|
|
80440
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
79210
80441
|
return result;
|
|
79211
80442
|
}
|
|
79212
80443
|
async CreateMJReportVersion(input, { providers, userPayload }, pubSub) {
|
|
@@ -79678,7 +80909,7 @@ let MJReportResolver = class MJReportResolver extends ResolverBase {
|
|
|
79678
80909
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
79679
80910
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReports')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
79680
80911
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
79681
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Reports', rows && rows.length > 0 ? rows[0] :
|
|
80912
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Reports', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
79682
80913
|
return result;
|
|
79683
80914
|
}
|
|
79684
80915
|
async MJReportSnapshots_ReportIDArray(mjreport_, { userPayload, providers }, pubSub) {
|
|
@@ -79984,7 +81215,7 @@ let MJResourceLinkResolver = class MJResourceLinkResolver extends ResolverBase {
|
|
|
79984
81215
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
79985
81216
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourceLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
79986
81217
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
79987
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Links', rows && rows.length > 0 ? rows[0] :
|
|
81218
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
79988
81219
|
return result;
|
|
79989
81220
|
}
|
|
79990
81221
|
async CreateMJResourceLink(input, { providers, userPayload }, pubSub) {
|
|
@@ -80307,7 +81538,7 @@ let MJResourcePermissionResolver = class MJResourcePermissionResolver extends Re
|
|
|
80307
81538
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
80308
81539
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourcePermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
80309
81540
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
80310
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Permissions', rows && rows.length > 0 ? rows[0] :
|
|
81541
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
80311
81542
|
return result;
|
|
80312
81543
|
}
|
|
80313
81544
|
async CreateMJResourcePermission(input, { providers, userPayload }, pubSub) {
|
|
@@ -80616,7 +81847,7 @@ let MJResourceTypeResolver = class MJResourceTypeResolver extends ResolverBase {
|
|
|
80616
81847
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
80617
81848
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
80618
81849
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
80619
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Types', rows && rows.length > 0 ? rows[0] :
|
|
81850
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
80620
81851
|
return result;
|
|
80621
81852
|
}
|
|
80622
81853
|
async MJWorkspaceItems_ResourceTypeIDArray(mjresourcetype_, { userPayload, providers }, pubSub) {
|
|
@@ -80960,7 +82191,7 @@ let MJRoleResolver = class MJRoleResolver extends ResolverBase {
|
|
|
80960
82191
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
80961
82192
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
80962
82193
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
80963
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Roles', rows && rows.length > 0 ? rows[0] :
|
|
82194
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
80964
82195
|
return result;
|
|
80965
82196
|
}
|
|
80966
82197
|
async AllMJRoles({ userPayload, providers }, pubSub) {
|
|
@@ -81358,7 +82589,7 @@ let MJRowLevelSecurityFilterResolver = class MJRowLevelSecurityFilterResolver ex
|
|
|
81358
82589
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
81359
82590
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRowLevelSecurityFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Row Level Security Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
81360
82591
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
81361
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Row Level Security Filters', rows && rows.length > 0 ? rows[0] :
|
|
82592
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Row Level Security Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
81362
82593
|
return result;
|
|
81363
82594
|
}
|
|
81364
82595
|
async AllMJRowLevelSecurityFilters({ userPayload, providers }, pubSub) {
|
|
@@ -81708,7 +82939,7 @@ let MJScheduledActionParamResolver = class MJScheduledActionParamResolver extend
|
|
|
81708
82939
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
81709
82940
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
81710
82941
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
81711
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Action Params', rows && rows.length > 0 ? rows[0] :
|
|
82942
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
81712
82943
|
return result;
|
|
81713
82944
|
}
|
|
81714
82945
|
async CreateMJScheduledActionParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -82081,7 +83312,7 @@ let MJScheduledActionResolver = class MJScheduledActionResolver extends Resolver
|
|
|
82081
83312
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82082
83313
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
82083
83314
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
82084
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Actions', rows && rows.length > 0 ? rows[0] :
|
|
83315
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
82085
83316
|
return result;
|
|
82086
83317
|
}
|
|
82087
83318
|
async MJScheduledActionParams_ScheduledActionIDArray(mjscheduledaction_, { userPayload, providers }, pubSub) {
|
|
@@ -82416,7 +83647,7 @@ let MJScheduledJobRunResolver = class MJScheduledJobRunResolver extends Resolver
|
|
|
82416
83647
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82417
83648
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
82418
83649
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
82419
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] :
|
|
83650
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
82420
83651
|
return result;
|
|
82421
83652
|
}
|
|
82422
83653
|
async MJAIAgentRuns_ScheduledJobRunIDArray(mjscheduledjobrun_, { userPayload, providers }, pubSub) {
|
|
@@ -82706,7 +83937,7 @@ let MJScheduledJobTypeResolver = class MJScheduledJobTypeResolver extends Resolv
|
|
|
82706
83937
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82707
83938
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
82708
83939
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
82709
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] :
|
|
83940
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
82710
83941
|
return result;
|
|
82711
83942
|
}
|
|
82712
83943
|
async MJScheduledJobs_JobTypeIDArray(mjscheduledjobtype_, { userPayload, providers }, pubSub) {
|
|
@@ -83245,7 +84476,7 @@ let MJScheduledJobResolver = class MJScheduledJobResolver extends ResolverBase {
|
|
|
83245
84476
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83246
84477
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
83247
84478
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
83248
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] :
|
|
84479
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
83249
84480
|
return result;
|
|
83250
84481
|
}
|
|
83251
84482
|
async MJScheduledJobRuns_ScheduledJobIDArray(mjscheduledjob_, { userPayload, providers }, pubSub) {
|
|
@@ -83542,7 +84773,7 @@ let MJSchemaInfoResolver = class MJSchemaInfoResolver extends ResolverBase {
|
|
|
83542
84773
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83543
84774
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSchemaInfos')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Schema Info', userPayload, EntityPermissionType.Read, 'AND');
|
|
83544
84775
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
83545
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Schema Info', rows && rows.length > 0 ? rows[0] :
|
|
84776
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Schema Info', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
83546
84777
|
return result;
|
|
83547
84778
|
}
|
|
83548
84779
|
async CreateMJSchemaInfo(input, { providers, userPayload }, pubSub) {
|
|
@@ -83779,7 +85010,7 @@ let MJSkillResolver = class MJSkillResolver extends ResolverBase {
|
|
|
83779
85010
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83780
85011
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSkills')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
83781
85012
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
83782
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Skills', rows && rows.length > 0 ? rows[0] :
|
|
85013
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
83783
85014
|
return result;
|
|
83784
85015
|
}
|
|
83785
85016
|
async AllMJSkills({ userPayload, providers }, pubSub) {
|
|
@@ -84133,7 +85364,7 @@ let MJSQLDialectResolver = class MJSQLDialectResolver extends ResolverBase {
|
|
|
84133
85364
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
84134
85365
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSQLDialects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: SQL Dialects', userPayload, EntityPermissionType.Read, 'AND');
|
|
84135
85366
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
84136
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: SQL Dialects', rows && rows.length > 0 ? rows[0] :
|
|
85367
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: SQL Dialects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
84137
85368
|
return result;
|
|
84138
85369
|
}
|
|
84139
85370
|
async MJQuerySQLs_SQLDialectIDArray(mjsqldialect_, { userPayload, providers }, pubSub) {
|
|
@@ -84409,7 +85640,7 @@ let MJTaggedItemResolver = class MJTaggedItemResolver extends ResolverBase {
|
|
|
84409
85640
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
84410
85641
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaggedItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tagged Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
84411
85642
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
84412
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tagged Items', rows && rows.length > 0 ? rows[0] :
|
|
85643
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tagged Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
84413
85644
|
return result;
|
|
84414
85645
|
}
|
|
84415
85646
|
async CreateMJTaggedItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -84671,7 +85902,7 @@ let MJTagResolver = class MJTagResolver extends ResolverBase {
|
|
|
84671
85902
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
84672
85903
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTags')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
84673
85904
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
84674
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tags', rows && rows.length > 0 ? rows[0] :
|
|
85905
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
84675
85906
|
return result;
|
|
84676
85907
|
}
|
|
84677
85908
|
async MJTags_ParentIDArray(mjtag_, { userPayload, providers }, pubSub) {
|
|
@@ -84947,7 +86178,7 @@ let MJTaskDependencyResolver = class MJTaskDependencyResolver extends ResolverBa
|
|
|
84947
86178
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
84948
86179
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Task Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
84949
86180
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
84950
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Task Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
86181
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
84951
86182
|
return result;
|
|
84952
86183
|
}
|
|
84953
86184
|
async CreateMJTaskDependency(input, { providers, userPayload }, pubSub) {
|
|
@@ -85169,7 +86400,7 @@ let MJTaskTypeResolver = class MJTaskTypeResolver extends ResolverBase {
|
|
|
85169
86400
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85170
86401
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaskTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Task Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
85171
86402
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
85172
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Task Types', rows && rows.length > 0 ? rows[0] :
|
|
86403
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
85173
86404
|
return result;
|
|
85174
86405
|
}
|
|
85175
86406
|
async MJTasks_TypeIDArray(mjtasktype_, { userPayload, providers }, pubSub) {
|
|
@@ -85607,7 +86838,7 @@ let MJTaskResolver = class MJTaskResolver extends ResolverBase {
|
|
|
85607
86838
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85608
86839
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTasks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
85609
86840
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
85610
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tasks', rows && rows.length > 0 ? rows[0] :
|
|
86841
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
85611
86842
|
return result;
|
|
85612
86843
|
}
|
|
85613
86844
|
async MJTaskDependencies_TaskIDArray(mjtask_, { userPayload, providers }, pubSub) {
|
|
@@ -85925,7 +87156,7 @@ let MJTemplateCategoryResolver = class MJTemplateCategoryResolver extends Resolv
|
|
|
85925
87156
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85926
87157
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
85927
87158
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
85928
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Categories', rows && rows.length > 0 ? rows[0] :
|
|
87159
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
85929
87160
|
return result;
|
|
85930
87161
|
}
|
|
85931
87162
|
async MJTemplates_CategoryIDArray(mjtemplatecategory_, { userPayload, providers }, pubSub) {
|
|
@@ -86194,7 +87425,7 @@ let MJTemplateContentTypeResolver = class MJTemplateContentTypeResolver extends
|
|
|
86194
87425
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
86195
87426
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateContentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
86196
87427
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
86197
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Content Types', rows && rows.length > 0 ? rows[0] :
|
|
87428
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
86198
87429
|
return result;
|
|
86199
87430
|
}
|
|
86200
87431
|
async MJTemplateContents_TypeIDArray(mjtemplatecontenttype_, { userPayload, providers }, pubSub) {
|
|
@@ -86480,7 +87711,7 @@ let MJTemplateContentResolver = class MJTemplateContentResolver extends Resolver
|
|
|
86480
87711
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
86481
87712
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateContents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Contents', userPayload, EntityPermissionType.Read, 'AND');
|
|
86482
87713
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
86483
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Contents', rows && rows.length > 0 ? rows[0] :
|
|
87714
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Contents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
86484
87715
|
return result;
|
|
86485
87716
|
}
|
|
86486
87717
|
async MJTemplateParams_TemplateContentIDArray(mjtemplatecontent_, { userPayload, providers }, pubSub) {
|
|
@@ -86869,7 +88100,7 @@ let MJTemplateParamResolver = class MJTemplateParamResolver extends ResolverBase
|
|
|
86869
88100
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
86870
88101
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
86871
88102
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
86872
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Params', rows && rows.length > 0 ? rows[0] :
|
|
88103
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
86873
88104
|
return result;
|
|
86874
88105
|
}
|
|
86875
88106
|
async CreateMJTemplateParam(input, { providers, userPayload }, pubSub) {
|
|
@@ -87195,7 +88426,7 @@ let MJTemplateResolver = class MJTemplateResolver extends ResolverBase {
|
|
|
87195
88426
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87196
88427
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
87197
88428
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87198
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Templates', rows && rows.length > 0 ? rows[0] :
|
|
88429
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Templates', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
87199
88430
|
return result;
|
|
87200
88431
|
}
|
|
87201
88432
|
async MJTemplateParams_TemplateIDArray(mjtemplate_, { userPayload, providers }, pubSub) {
|
|
@@ -87583,7 +88814,7 @@ let MJTestRubricResolver = class MJTestRubricResolver extends ResolverBase {
|
|
|
87583
88814
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87584
88815
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRubrics')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Rubrics', userPayload, EntityPermissionType.Read, 'AND');
|
|
87585
88816
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87586
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] :
|
|
88817
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
87587
88818
|
return result;
|
|
87588
88819
|
}
|
|
87589
88820
|
async CreateMJTestRubric(input, { providers, userPayload }, pubSub) {
|
|
@@ -87872,7 +89103,7 @@ let MJTestRunFeedbackResolver = class MJTestRunFeedbackResolver extends Resolver
|
|
|
87872
89103
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87873
89104
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunFeedbacks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
|
|
87874
89105
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87875
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] :
|
|
89106
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
87876
89107
|
return result;
|
|
87877
89108
|
}
|
|
87878
89109
|
async CreateMJTestRunFeedback(input, { providers, userPayload }, pubSub) {
|
|
@@ -88094,7 +89325,7 @@ let MJTestRunOutputTypeResolver = class MJTestRunOutputTypeResolver extends Reso
|
|
|
88094
89325
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88095
89326
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunOutputTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Output Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
88096
89327
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
88097
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Output Types', rows && rows.length > 0 ? rows[0] :
|
|
89328
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Output Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
88098
89329
|
return result;
|
|
88099
89330
|
}
|
|
88100
89331
|
async MJTestRunOutputs_OutputTypeIDArray(mjtestrunoutputtype_, { userPayload, providers }, pubSub) {
|
|
@@ -88474,7 +89705,7 @@ let MJTestRunOutputResolver = class MJTestRunOutputResolver extends ResolverBase
|
|
|
88474
89705
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88475
89706
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunOutputs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Outputs', userPayload, EntityPermissionType.Read, 'AND');
|
|
88476
89707
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
88477
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Outputs', rows && rows.length > 0 ? rows[0] :
|
|
89708
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Outputs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
88478
89709
|
return result;
|
|
88479
89710
|
}
|
|
88480
89711
|
async CreateMJTestRunOutput(input, { providers, userPayload }, pubSub) {
|
|
@@ -89070,7 +90301,7 @@ let MJTestRunResolver = class MJTestRunResolver extends ResolverBase {
|
|
|
89070
90301
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89071
90302
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
89072
90303
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
89073
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] :
|
|
90304
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
89074
90305
|
return result;
|
|
89075
90306
|
}
|
|
89076
90307
|
async MJTestRunOutputs_TestRunIDArray(mjtestrun_, { userPayload, providers }, pubSub) {
|
|
@@ -89702,7 +90933,7 @@ let MJTestSuiteRunResolver = class MJTestSuiteRunResolver extends ResolverBase {
|
|
|
89702
90933
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89703
90934
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuiteRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
89704
90935
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
89705
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] :
|
|
90936
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
89706
90937
|
return result;
|
|
89707
90938
|
}
|
|
89708
90939
|
async MJTestRuns_TestSuiteRunIDArray(mjtestsuiterun_, { userPayload, providers }, pubSub) {
|
|
@@ -89985,7 +91216,7 @@ let MJTestSuiteTestResolver = class MJTestSuiteTestResolver extends ResolverBase
|
|
|
89985
91216
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89986
91217
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuiteTests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
89987
91218
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
89988
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] :
|
|
91219
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
89989
91220
|
return result;
|
|
89990
91221
|
}
|
|
89991
91222
|
async CreateMJTestSuiteTest(input, { providers, userPayload }, pubSub) {
|
|
@@ -90299,7 +91530,7 @@ let MJTestSuiteResolver = class MJTestSuiteResolver extends ResolverBase {
|
|
|
90299
91530
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90300
91531
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuites')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suites', userPayload, EntityPermissionType.Read, 'AND');
|
|
90301
91532
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
90302
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] :
|
|
91533
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
90303
91534
|
return result;
|
|
90304
91535
|
}
|
|
90305
91536
|
async MJTestSuites_ParentIDArray(mjtestsuite_, { userPayload, providers }, pubSub) {
|
|
@@ -90614,7 +91845,7 @@ let MJTestTypeResolver = class MJTestTypeResolver extends ResolverBase {
|
|
|
90614
91845
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90615
91846
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
90616
91847
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
90617
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] :
|
|
91848
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
90618
91849
|
return result;
|
|
90619
91850
|
}
|
|
90620
91851
|
async MJTests_TypeIDArray(mjtesttype_, { userPayload, providers }, pubSub) {
|
|
@@ -91025,7 +92256,7 @@ let MJTestResolver = class MJTestResolver extends ResolverBase {
|
|
|
91025
92256
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91026
92257
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
91027
92258
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91028
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] :
|
|
92259
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91029
92260
|
return result;
|
|
91030
92261
|
}
|
|
91031
92262
|
async MJTestRuns_TestIDArray(mjtest_, { userPayload, providers }, pubSub) {
|
|
@@ -91305,7 +92536,7 @@ let MJUserApplicationEntityResolver = class MJUserApplicationEntityResolver exte
|
|
|
91305
92536
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91306
92537
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserApplicationEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
91307
92538
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91308
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Application Entities', rows && rows.length > 0 ? rows[0] :
|
|
92539
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91309
92540
|
return result;
|
|
91310
92541
|
}
|
|
91311
92542
|
async CreateMJUserApplicationEntity(input, { providers, userPayload }, pubSub) {
|
|
@@ -91562,7 +92793,7 @@ let MJUserApplicationResolver = class MJUserApplicationResolver extends Resolver
|
|
|
91562
92793
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91563
92794
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
91564
92795
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91565
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Applications', rows && rows.length > 0 ? rows[0] :
|
|
92796
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91566
92797
|
return result;
|
|
91567
92798
|
}
|
|
91568
92799
|
async MJUserApplicationEntities_UserApplicationIDArray(mjuserapplication_, { userPayload, providers }, pubSub) {
|
|
@@ -91826,7 +93057,7 @@ let MJUserFavoriteResolverBase = class MJUserFavoriteResolverBase extends Resolv
|
|
|
91826
93057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91827
93058
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserFavorites')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Favorites', userPayload, EntityPermissionType.Read, 'AND');
|
|
91828
93059
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91829
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Favorites', rows && rows.length > 0 ? rows[0] :
|
|
93060
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Favorites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91830
93061
|
return result;
|
|
91831
93062
|
}
|
|
91832
93063
|
async CreateMJUserFavorite(input, { providers, userPayload }, pubSub) {
|
|
@@ -92103,7 +93334,7 @@ let MJUserNotificationPreferenceResolver = class MJUserNotificationPreferenceRes
|
|
|
92103
93334
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92104
93335
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotificationPreferences')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notification Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
92105
93336
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
92106
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Preferences', rows && rows.length > 0 ? rows[0] :
|
|
93337
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
92107
93338
|
return result;
|
|
92108
93339
|
}
|
|
92109
93340
|
async CreateMJUserNotificationPreference(input, { providers, userPayload }, pubSub) {
|
|
@@ -92464,7 +93695,7 @@ let MJUserNotificationTypeResolver = class MJUserNotificationTypeResolver extend
|
|
|
92464
93695
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92465
93696
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotificationTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notification Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
92466
93697
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
92467
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Types', rows && rows.length > 0 ? rows[0] :
|
|
93698
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
92468
93699
|
return result;
|
|
92469
93700
|
}
|
|
92470
93701
|
async MJUserNotifications_NotificationTypeIDArray(mjusernotificationtype_, { userPayload, providers }, pubSub) {
|
|
@@ -92819,7 +94050,7 @@ let MJUserNotificationResolver = class MJUserNotificationResolver extends Resolv
|
|
|
92819
94050
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92820
94051
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotifications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notifications', userPayload, EntityPermissionType.Read, 'AND');
|
|
92821
94052
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
92822
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notifications', rows && rows.length > 0 ? rows[0] :
|
|
94053
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notifications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
92823
94054
|
return result;
|
|
92824
94055
|
}
|
|
92825
94056
|
async CreateMJUserNotification(input, { providers, userPayload }, pubSub) {
|
|
@@ -93117,7 +94348,7 @@ let MJUserRecordLogResolver = class MJUserRecordLogResolver extends ResolverBase
|
|
|
93117
94348
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
93118
94349
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserRecordLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Record Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
93119
94350
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
93120
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Record Logs', rows && rows.length > 0 ? rows[0] :
|
|
94351
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Record Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
93121
94352
|
return result;
|
|
93122
94353
|
}
|
|
93123
94354
|
async CreateMJUserRecordLog(input, { providers, userPayload }, pubSub) {
|
|
@@ -93346,7 +94577,7 @@ let MJUserRoleResolver = class MJUserRoleResolver extends ResolverBase {
|
|
|
93346
94577
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
93347
94578
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
93348
94579
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
93349
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Roles', rows && rows.length > 0 ? rows[0] :
|
|
94580
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
93350
94581
|
return result;
|
|
93351
94582
|
}
|
|
93352
94583
|
async AllMJUserRoles({ userPayload, providers }, pubSub) {
|
|
@@ -93598,7 +94829,7 @@ let MJUserSettingResolver = class MJUserSettingResolver extends ResolverBase {
|
|
|
93598
94829
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
93599
94830
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
93600
94831
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
93601
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] :
|
|
94832
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
93602
94833
|
return result;
|
|
93603
94834
|
}
|
|
93604
94835
|
async CreateMJUserSetting(input, { providers, userPayload }, pubSub) {
|
|
@@ -93883,7 +95114,7 @@ let MJUserViewCategoryResolver = class MJUserViewCategoryResolver extends Resolv
|
|
|
93883
95114
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
93884
95115
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
93885
95116
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
93886
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Categories', rows && rows.length > 0 ? rows[0] :
|
|
95117
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
93887
95118
|
return result;
|
|
93888
95119
|
}
|
|
93889
95120
|
async MJUserViewCategories_ParentIDArray(mjuserviewcategory_, { userPayload, providers }, pubSub) {
|
|
@@ -94146,7 +95377,7 @@ let MJUserViewRunDetailResolver = class MJUserViewRunDetailResolver extends Reso
|
|
|
94146
95377
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
94147
95378
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
94148
95379
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
94149
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Run Details', rows && rows.length > 0 ? rows[0] :
|
|
95380
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
94150
95381
|
return result;
|
|
94151
95382
|
}
|
|
94152
95383
|
async CreateMJUserViewRunDetail(input, { providers, userPayload }, pubSub) {
|
|
@@ -94391,7 +95622,7 @@ let MJUserViewRunResolver = class MJUserViewRunResolver extends ResolverBase {
|
|
|
94391
95622
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
94392
95623
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
94393
95624
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
94394
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Runs', rows && rows.length > 0 ? rows[0] :
|
|
95625
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
94395
95626
|
return result;
|
|
94396
95627
|
}
|
|
94397
95628
|
async MJUserViewRunDetails_UserViewRunIDArray(mjuserviewrun_, { userPayload, providers }, pubSub) {
|
|
@@ -94887,7 +96118,7 @@ let MJUserViewResolverBase = class MJUserViewResolverBase extends ResolverBase {
|
|
|
94887
96118
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
94888
96119
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViews')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Views', userPayload, EntityPermissionType.Read, 'AND');
|
|
94889
96120
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
94890
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Views', rows && rows.length > 0 ? rows[0] :
|
|
96121
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Views', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
94891
96122
|
return result;
|
|
94892
96123
|
}
|
|
94893
96124
|
async AllMJUserViews({ userPayload, providers }, pubSub) {
|
|
@@ -95676,7 +96907,7 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
95676
96907
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
95677
96908
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUsers')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Users', userPayload, EntityPermissionType.Read, 'AND');
|
|
95678
96909
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
95679
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Users', rows && rows.length > 0 ? rows[0] :
|
|
96910
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Users', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
95680
96911
|
return result;
|
|
95681
96912
|
}
|
|
95682
96913
|
async AllMJUsers({ userPayload, providers }, pubSub) {
|
|
@@ -97355,7 +98586,7 @@ let MJVectorDatabaseResolver = class MJVectorDatabaseResolver extends ResolverBa
|
|
|
97355
98586
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
97356
98587
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVectorDatabases')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Vector Databases', userPayload, EntityPermissionType.Read, 'AND');
|
|
97357
98588
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
97358
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Databases', rows && rows.length > 0 ? rows[0] :
|
|
98589
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Databases', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
97359
98590
|
return result;
|
|
97360
98591
|
}
|
|
97361
98592
|
async MJVectorIndexes_VectorDatabaseIDArray(mjvectordatabase_, { userPayload, providers }, pubSub) {
|
|
@@ -97647,7 +98878,7 @@ let MJVectorIndexResolver = class MJVectorIndexResolver extends ResolverBase {
|
|
|
97647
98878
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
97648
98879
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVectorIndexes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Vector Indexes', userPayload, EntityPermissionType.Read, 'AND');
|
|
97649
98880
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
97650
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Indexes', rows && rows.length > 0 ? rows[0] :
|
|
98881
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Indexes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
97651
98882
|
return result;
|
|
97652
98883
|
}
|
|
97653
98884
|
async MJEntityRecordDocuments_VectorIndexIDArray(mjvectorindex_, { userPayload, providers }, pubSub) {
|
|
@@ -97960,7 +99191,7 @@ let MJVersionInstallationResolver = class MJVersionInstallationResolver extends
|
|
|
97960
99191
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
97961
99192
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionInstallations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Installations', userPayload, EntityPermissionType.Read, 'AND');
|
|
97962
99193
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
97963
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Installations', rows && rows.length > 0 ? rows[0] :
|
|
99194
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Installations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
97964
99195
|
return result;
|
|
97965
99196
|
}
|
|
97966
99197
|
async CreateMJVersionInstallation(input, { providers, userPayload }, pubSub) {
|
|
@@ -98219,7 +99450,7 @@ let MJVersionLabelItemResolver = class MJVersionLabelItemResolver extends Resolv
|
|
|
98219
99450
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
98220
99451
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabelItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Label Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
98221
99452
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
98222
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Items', rows && rows.length > 0 ? rows[0] :
|
|
99453
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
98223
99454
|
return result;
|
|
98224
99455
|
}
|
|
98225
99456
|
async CreateMJVersionLabelItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -98551,7 +99782,7 @@ let MJVersionLabelRestoreResolver = class MJVersionLabelRestoreResolver extends
|
|
|
98551
99782
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
98552
99783
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabelRestores')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Label Restores', userPayload, EntityPermissionType.Read, 'AND');
|
|
98553
99784
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
98554
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Restores', rows && rows.length > 0 ? rows[0] :
|
|
99785
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Restores', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
98555
99786
|
return result;
|
|
98556
99787
|
}
|
|
98557
99788
|
async CreateMJVersionLabelRestore(input, { providers, userPayload }, pubSub) {
|
|
@@ -98920,7 +100151,7 @@ let MJVersionLabelResolver = class MJVersionLabelResolver extends ResolverBase {
|
|
|
98920
100151
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
98921
100152
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Labels', userPayload, EntityPermissionType.Read, 'AND');
|
|
98922
100153
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
98923
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Labels', rows && rows.length > 0 ? rows[0] :
|
|
100154
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Labels', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
98924
100155
|
return result;
|
|
98925
100156
|
}
|
|
98926
100157
|
async MJVersionLabelRestores_VersionLabelIDArray(mjversionlabel_, { userPayload, providers }, pubSub) {
|
|
@@ -99236,7 +100467,7 @@ let MJWorkflowEngineResolver = class MJWorkflowEngineResolver extends ResolverBa
|
|
|
99236
100467
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
99237
100468
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflowEngines')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflow Engines', userPayload, EntityPermissionType.Read, 'AND');
|
|
99238
100469
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
99239
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Engines', rows && rows.length > 0 ? rows[0] :
|
|
100470
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Engines', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
99240
100471
|
return result;
|
|
99241
100472
|
}
|
|
99242
100473
|
async MJWorkflows_WorkflowEngineIDArray(mjworkflowengine_, { userPayload, providers }, pubSub) {
|
|
@@ -99531,7 +100762,7 @@ let MJWorkflowRunResolver = class MJWorkflowRunResolver extends ResolverBase {
|
|
|
99531
100762
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
99532
100763
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflowRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflow Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
99533
100764
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
99534
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Runs', rows && rows.length > 0 ? rows[0] :
|
|
100765
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
99535
100766
|
return result;
|
|
99536
100767
|
}
|
|
99537
100768
|
async CreateMJWorkflowRun(input, { providers, userPayload }, pubSub) {
|
|
@@ -99837,7 +101068,7 @@ let MJWorkflowResolver = class MJWorkflowResolver extends ResolverBase {
|
|
|
99837
101068
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
99838
101069
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflows')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflows', userPayload, EntityPermissionType.Read, 'AND');
|
|
99839
101070
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
99840
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflows', rows && rows.length > 0 ? rows[0] :
|
|
101071
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflows', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
99841
101072
|
return result;
|
|
99842
101073
|
}
|
|
99843
101074
|
async MJReports_OutputWorkflowIDArray(mjworkflow_, { userPayload, providers }, pubSub) {
|
|
@@ -100162,7 +101393,7 @@ let MJWorkspaceItemResolver = class MJWorkspaceItemResolver extends ResolverBase
|
|
|
100162
101393
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
100163
101394
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkspaceItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workspace Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
100164
101395
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
100165
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workspace Items', rows && rows.length > 0 ? rows[0] :
|
|
101396
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspace Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
100166
101397
|
return result;
|
|
100167
101398
|
}
|
|
100168
101399
|
async CreateMJWorkspaceItem(input, { providers, userPayload }, pubSub) {
|
|
@@ -100414,7 +101645,7 @@ let MJWorkspaceResolver = class MJWorkspaceResolver extends ResolverBase {
|
|
|
100414
101645
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
100415
101646
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkspaces')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workspaces', userPayload, EntityPermissionType.Read, 'AND');
|
|
100416
101647
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
100417
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workspaces', rows && rows.length > 0 ? rows[0] :
|
|
101648
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspaces', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
100418
101649
|
return result;
|
|
100419
101650
|
}
|
|
100420
101651
|
async MJWorkspaceItems_WorkspaceIDArray(mjworkspace_, { userPayload, providers }, pubSub) {
|