@mj-biz-apps/tasks-server 1.0.1 → 1.1.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/event-handlers/TaskNotificationHandler.d.ts +22 -0
- package/dist/event-handlers/TaskNotificationHandler.d.ts.map +1 -1
- package/dist/event-handlers/TaskNotificationHandler.js +70 -8
- package/dist/event-handlers/TaskNotificationHandler.js.map +1 -1
- package/dist/generated/generated.d.ts +117 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +748 -82
- package/dist/generated/generated.js.map +1 -1
- package/package.json +13 -13
|
@@ -223,8 +223,8 @@ let mjBizAppsTasksTaskActivityResolver = class mjBizAppsTasksTaskActivityResolve
|
|
|
223
223
|
async mjBizAppsTasksTaskActivity(ID, { userPayload, providers }, pubSub) {
|
|
224
224
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Activities', userPayload);
|
|
225
225
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
226
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskActivities')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
227
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
226
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskActivities')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
227
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
228
228
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Activities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
229
229
|
return result;
|
|
230
230
|
}
|
|
@@ -387,6 +387,10 @@ __decorate([
|
|
|
387
387
|
MaxLength(201),
|
|
388
388
|
__metadata("design:type", String)
|
|
389
389
|
], mjBizAppsTasksTaskAssignment_.prototype, "AssignedByPerson", void 0);
|
|
390
|
+
__decorate([
|
|
391
|
+
Field(() => [mjBizAppsTasksTaskDecision_]),
|
|
392
|
+
__metadata("design:type", Array)
|
|
393
|
+
], mjBizAppsTasksTaskAssignment_.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskAssignmentIDArray", void 0);
|
|
390
394
|
mjBizAppsTasksTaskAssignment_ = __decorate([
|
|
391
395
|
ObjectType()
|
|
392
396
|
], mjBizAppsTasksTaskAssignment_);
|
|
@@ -547,11 +551,19 @@ let mjBizAppsTasksTaskAssignmentResolver = class mjBizAppsTasksTaskAssignmentRes
|
|
|
547
551
|
async mjBizAppsTasksTaskAssignment(ID, { userPayload, providers }, pubSub) {
|
|
548
552
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Assignments', userPayload);
|
|
549
553
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
550
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
551
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
554
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Assignments', userPayload, EntityPermissionType.Read, 'AND');
|
|
555
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
552
556
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Assignments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
553
557
|
return result;
|
|
554
558
|
}
|
|
559
|
+
async mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskAssignmentIDArray(mjbizappstaskstaskassignment_, { userPayload, providers }, pubSub) {
|
|
560
|
+
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Decisions', userPayload);
|
|
561
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
562
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDecisions')} WHERE ${provider.QuoteIdentifier('TaskAssignmentID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Decisions', userPayload, EntityPermissionType.Read, 'AND');
|
|
563
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskassignment_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
564
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Decisions', rows, this.GetUserFromPayload(userPayload));
|
|
565
|
+
return result;
|
|
566
|
+
}
|
|
555
567
|
async CreatemjBizAppsTasksTaskAssignment(input, { providers, userPayload }, pubSub) {
|
|
556
568
|
const provider = GetReadWriteProvider(providers);
|
|
557
569
|
return this.CreateRecord('MJ_BizApps_Tasks: Task Assignments', input, provider, userPayload, pubSub);
|
|
@@ -602,6 +614,15 @@ __decorate([
|
|
|
602
614
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
603
615
|
__metadata("design:returntype", Promise)
|
|
604
616
|
], mjBizAppsTasksTaskAssignmentResolver.prototype, "mjBizAppsTasksTaskAssignment", null);
|
|
617
|
+
__decorate([
|
|
618
|
+
FieldResolver(() => [mjBizAppsTasksTaskDecision_]),
|
|
619
|
+
__param(0, Root()),
|
|
620
|
+
__param(1, Ctx()),
|
|
621
|
+
__param(2, PubSub()),
|
|
622
|
+
__metadata("design:type", Function),
|
|
623
|
+
__metadata("design:paramtypes", [mjBizAppsTasksTaskAssignment_, Object, PubSubEngine]),
|
|
624
|
+
__metadata("design:returntype", Promise)
|
|
625
|
+
], mjBizAppsTasksTaskAssignmentResolver.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskAssignmentIDArray", null);
|
|
605
626
|
__decorate([
|
|
606
627
|
Mutation(() => mjBizAppsTasksTaskAssignment_),
|
|
607
628
|
__param(0, Arg('input', () => CreatemjBizAppsTasksTaskAssignmentInput)),
|
|
@@ -845,32 +866,32 @@ let mjBizAppsTasksTaskCategoryResolver = class mjBizAppsTasksTaskCategoryResolve
|
|
|
845
866
|
async mjBizAppsTasksTaskCategory(ID, { userPayload, providers }, pubSub) {
|
|
846
867
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Categories', userPayload);
|
|
847
868
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
848
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskCategories')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
849
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
869
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskCategories')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
870
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
850
871
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
851
872
|
return result;
|
|
852
873
|
}
|
|
853
874
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplates_CategoryIDArray(mjbizappstaskstaskcategory_, { userPayload, providers }, pubSub) {
|
|
854
875
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Templates', userPayload);
|
|
855
876
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
856
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('CategoryID')}
|
|
857
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
877
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('CategoryID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
878
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskcategory_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
858
879
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Templates', rows, this.GetUserFromPayload(userPayload));
|
|
859
880
|
return result;
|
|
860
881
|
}
|
|
861
882
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskCategories_ParentIDArray(mjbizappstaskstaskcategory_, { userPayload, providers }, pubSub) {
|
|
862
883
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Categories', userPayload);
|
|
863
884
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
864
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskCategories')} WHERE ${provider.QuoteIdentifier('ParentID')}
|
|
865
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
885
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskCategories')} WHERE ${provider.QuoteIdentifier('ParentID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
886
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskcategory_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
866
887
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Categories', rows, this.GetUserFromPayload(userPayload));
|
|
867
888
|
return result;
|
|
868
889
|
}
|
|
869
890
|
async mjBizAppsTasksMJ_BizApps_Tasks_Tasks_CategoryIDArray(mjbizappstaskstaskcategory_, { userPayload, providers }, pubSub) {
|
|
870
891
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Tasks', userPayload);
|
|
871
892
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
872
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('CategoryID')}
|
|
873
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
893
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('CategoryID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
894
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskcategory_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
874
895
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Tasks', rows, this.GetUserFromPayload(userPayload));
|
|
875
896
|
return result;
|
|
876
897
|
}
|
|
@@ -1179,16 +1200,16 @@ let mjBizAppsTasksTaskCommentResolver = class mjBizAppsTasksTaskCommentResolver
|
|
|
1179
1200
|
async mjBizAppsTasksTaskComment(ID, { userPayload, providers }, pubSub) {
|
|
1180
1201
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Comments', userPayload);
|
|
1181
1202
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1182
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
1183
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
1203
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Comments', userPayload, EntityPermissionType.Read, 'AND');
|
|
1204
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1184
1205
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Comments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1185
1206
|
return result;
|
|
1186
1207
|
}
|
|
1187
1208
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskComments_ParentIDArray(mjbizappstaskstaskcomment_, { userPayload, providers }, pubSub) {
|
|
1188
1209
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Comments', userPayload);
|
|
1189
1210
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1190
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('ParentID')}
|
|
1191
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
1211
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('ParentID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Comments', userPayload, EntityPermissionType.Read, 'AND');
|
|
1212
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskcomment_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1192
1213
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Comments', rows, this.GetUserFromPayload(userPayload));
|
|
1193
1214
|
return result;
|
|
1194
1215
|
}
|
|
@@ -1284,6 +1305,594 @@ mjBizAppsTasksTaskCommentResolver = __decorate([
|
|
|
1284
1305
|
], mjBizAppsTasksTaskCommentResolver);
|
|
1285
1306
|
export { mjBizAppsTasksTaskCommentResolver };
|
|
1286
1307
|
//****************************************************************************
|
|
1308
|
+
// ENTITY CLASS for MJ_BizApps_Tasks: Task Decision Outcomes
|
|
1309
|
+
//****************************************************************************
|
|
1310
|
+
let mjBizAppsTasksTaskDecisionOutcome_ = class mjBizAppsTasksTaskDecisionOutcome_ {
|
|
1311
|
+
};
|
|
1312
|
+
__decorate([
|
|
1313
|
+
Field(),
|
|
1314
|
+
MaxLength(36),
|
|
1315
|
+
__metadata("design:type", String)
|
|
1316
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "ID", void 0);
|
|
1317
|
+
__decorate([
|
|
1318
|
+
Field({ description: `Human-readable outcome label (e.g. Approved, Rejected, Approved With Conditions).` }),
|
|
1319
|
+
MaxLength(100),
|
|
1320
|
+
__metadata("design:type", String)
|
|
1321
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "Name", void 0);
|
|
1322
|
+
__decorate([
|
|
1323
|
+
Field({ description: `Stable machine code for the outcome, used by orchestration code to map outcome to task status (e.g. Approved, Rejected, ApprovedWithConditions).` }),
|
|
1324
|
+
MaxLength(50),
|
|
1325
|
+
__metadata("design:type", String)
|
|
1326
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "Code", void 0);
|
|
1327
|
+
__decorate([
|
|
1328
|
+
Field({ nullable: true }),
|
|
1329
|
+
__metadata("design:type", String)
|
|
1330
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "Description", void 0);
|
|
1331
|
+
__decorate([
|
|
1332
|
+
Field(() => Int, { description: `Display ordering for the outcome in decision pickers.` }),
|
|
1333
|
+
__metadata("design:type", Number)
|
|
1334
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "Sequence", void 0);
|
|
1335
|
+
__decorate([
|
|
1336
|
+
Field(() => Boolean, { description: `When 1, recording this outcome closes the approval (terminal). When 0, the decision is interim and the task remains open.` }),
|
|
1337
|
+
__metadata("design:type", Boolean)
|
|
1338
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "IsTerminal", void 0);
|
|
1339
|
+
__decorate([
|
|
1340
|
+
Field(() => Boolean, { description: `When 0, the outcome is hidden from new decision pickers but preserved on historical decisions.` }),
|
|
1341
|
+
__metadata("design:type", Boolean)
|
|
1342
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "IsActive", void 0);
|
|
1343
|
+
__decorate([
|
|
1344
|
+
Field(),
|
|
1345
|
+
__metadata("design:type", Date)
|
|
1346
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "_mj__CreatedAt", void 0);
|
|
1347
|
+
__decorate([
|
|
1348
|
+
Field(),
|
|
1349
|
+
__metadata("design:type", Date)
|
|
1350
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "_mj__UpdatedAt", void 0);
|
|
1351
|
+
__decorate([
|
|
1352
|
+
Field(() => [mjBizAppsTasksTaskDecision_]),
|
|
1353
|
+
__metadata("design:type", Array)
|
|
1354
|
+
], mjBizAppsTasksTaskDecisionOutcome_.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_OutcomeIDArray", void 0);
|
|
1355
|
+
mjBizAppsTasksTaskDecisionOutcome_ = __decorate([
|
|
1356
|
+
ObjectType()
|
|
1357
|
+
], mjBizAppsTasksTaskDecisionOutcome_);
|
|
1358
|
+
export { mjBizAppsTasksTaskDecisionOutcome_ };
|
|
1359
|
+
//****************************************************************************
|
|
1360
|
+
// INPUT TYPE for MJ_BizApps_Tasks: Task Decision Outcomes
|
|
1361
|
+
//****************************************************************************
|
|
1362
|
+
let CreatemjBizAppsTasksTaskDecisionOutcomeInput = class CreatemjBizAppsTasksTaskDecisionOutcomeInput {
|
|
1363
|
+
};
|
|
1364
|
+
__decorate([
|
|
1365
|
+
Field({ nullable: true }),
|
|
1366
|
+
__metadata("design:type", String)
|
|
1367
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "ID", void 0);
|
|
1368
|
+
__decorate([
|
|
1369
|
+
Field({ nullable: true }),
|
|
1370
|
+
__metadata("design:type", String)
|
|
1371
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Name", void 0);
|
|
1372
|
+
__decorate([
|
|
1373
|
+
Field({ nullable: true }),
|
|
1374
|
+
__metadata("design:type", String)
|
|
1375
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Code", void 0);
|
|
1376
|
+
__decorate([
|
|
1377
|
+
Field({ nullable: true }),
|
|
1378
|
+
__metadata("design:type", String)
|
|
1379
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Description", void 0);
|
|
1380
|
+
__decorate([
|
|
1381
|
+
Field(() => Int, { nullable: true }),
|
|
1382
|
+
__metadata("design:type", Number)
|
|
1383
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Sequence", void 0);
|
|
1384
|
+
__decorate([
|
|
1385
|
+
Field(() => Boolean, { nullable: true }),
|
|
1386
|
+
__metadata("design:type", Boolean)
|
|
1387
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "IsTerminal", void 0);
|
|
1388
|
+
__decorate([
|
|
1389
|
+
Field(() => Boolean, { nullable: true }),
|
|
1390
|
+
__metadata("design:type", Boolean)
|
|
1391
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "IsActive", void 0);
|
|
1392
|
+
__decorate([
|
|
1393
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1394
|
+
__metadata("design:type", RestoreContextInput)
|
|
1395
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "RestoreContext___", void 0);
|
|
1396
|
+
CreatemjBizAppsTasksTaskDecisionOutcomeInput = __decorate([
|
|
1397
|
+
InputType()
|
|
1398
|
+
], CreatemjBizAppsTasksTaskDecisionOutcomeInput);
|
|
1399
|
+
export { CreatemjBizAppsTasksTaskDecisionOutcomeInput };
|
|
1400
|
+
//****************************************************************************
|
|
1401
|
+
// INPUT TYPE for MJ_BizApps_Tasks: Task Decision Outcomes
|
|
1402
|
+
//****************************************************************************
|
|
1403
|
+
let UpdatemjBizAppsTasksTaskDecisionOutcomeInput = class UpdatemjBizAppsTasksTaskDecisionOutcomeInput {
|
|
1404
|
+
};
|
|
1405
|
+
__decorate([
|
|
1406
|
+
Field(),
|
|
1407
|
+
__metadata("design:type", String)
|
|
1408
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "ID", void 0);
|
|
1409
|
+
__decorate([
|
|
1410
|
+
Field({ nullable: true }),
|
|
1411
|
+
__metadata("design:type", String)
|
|
1412
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Name", void 0);
|
|
1413
|
+
__decorate([
|
|
1414
|
+
Field({ nullable: true }),
|
|
1415
|
+
__metadata("design:type", String)
|
|
1416
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Code", void 0);
|
|
1417
|
+
__decorate([
|
|
1418
|
+
Field({ nullable: true }),
|
|
1419
|
+
__metadata("design:type", String)
|
|
1420
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Description", void 0);
|
|
1421
|
+
__decorate([
|
|
1422
|
+
Field(() => Int, { nullable: true }),
|
|
1423
|
+
__metadata("design:type", Number)
|
|
1424
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "Sequence", void 0);
|
|
1425
|
+
__decorate([
|
|
1426
|
+
Field(() => Boolean, { nullable: true }),
|
|
1427
|
+
__metadata("design:type", Boolean)
|
|
1428
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "IsTerminal", void 0);
|
|
1429
|
+
__decorate([
|
|
1430
|
+
Field(() => Boolean, { nullable: true }),
|
|
1431
|
+
__metadata("design:type", Boolean)
|
|
1432
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "IsActive", void 0);
|
|
1433
|
+
__decorate([
|
|
1434
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1435
|
+
__metadata("design:type", Array)
|
|
1436
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "OldValues___", void 0);
|
|
1437
|
+
__decorate([
|
|
1438
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1439
|
+
__metadata("design:type", RestoreContextInput)
|
|
1440
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput.prototype, "RestoreContext___", void 0);
|
|
1441
|
+
UpdatemjBizAppsTasksTaskDecisionOutcomeInput = __decorate([
|
|
1442
|
+
InputType()
|
|
1443
|
+
], UpdatemjBizAppsTasksTaskDecisionOutcomeInput);
|
|
1444
|
+
export { UpdatemjBizAppsTasksTaskDecisionOutcomeInput };
|
|
1445
|
+
//****************************************************************************
|
|
1446
|
+
// RESOLVER for MJ_BizApps_Tasks: Task Decision Outcomes
|
|
1447
|
+
//****************************************************************************
|
|
1448
|
+
let RunmjBizAppsTasksTaskDecisionOutcomeViewResult = class RunmjBizAppsTasksTaskDecisionOutcomeViewResult {
|
|
1449
|
+
};
|
|
1450
|
+
__decorate([
|
|
1451
|
+
Field(() => [mjBizAppsTasksTaskDecisionOutcome_]),
|
|
1452
|
+
__metadata("design:type", Array)
|
|
1453
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "Results", void 0);
|
|
1454
|
+
__decorate([
|
|
1455
|
+
Field(() => String, { nullable: true }),
|
|
1456
|
+
__metadata("design:type", String)
|
|
1457
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "UserViewRunID", void 0);
|
|
1458
|
+
__decorate([
|
|
1459
|
+
Field(() => Int, { nullable: true }),
|
|
1460
|
+
__metadata("design:type", Number)
|
|
1461
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "RowCount", void 0);
|
|
1462
|
+
__decorate([
|
|
1463
|
+
Field(() => Int, { nullable: true }),
|
|
1464
|
+
__metadata("design:type", Number)
|
|
1465
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "TotalRowCount", void 0);
|
|
1466
|
+
__decorate([
|
|
1467
|
+
Field(() => Int, { nullable: true }),
|
|
1468
|
+
__metadata("design:type", Number)
|
|
1469
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "ExecutionTime", void 0);
|
|
1470
|
+
__decorate([
|
|
1471
|
+
Field({ nullable: true }),
|
|
1472
|
+
__metadata("design:type", String)
|
|
1473
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "ErrorMessage", void 0);
|
|
1474
|
+
__decorate([
|
|
1475
|
+
Field(() => Boolean, { nullable: false }),
|
|
1476
|
+
__metadata("design:type", Boolean)
|
|
1477
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult.prototype, "Success", void 0);
|
|
1478
|
+
RunmjBizAppsTasksTaskDecisionOutcomeViewResult = __decorate([
|
|
1479
|
+
ObjectType()
|
|
1480
|
+
], RunmjBizAppsTasksTaskDecisionOutcomeViewResult);
|
|
1481
|
+
export { RunmjBizAppsTasksTaskDecisionOutcomeViewResult };
|
|
1482
|
+
let mjBizAppsTasksTaskDecisionOutcomeResolver = class mjBizAppsTasksTaskDecisionOutcomeResolver extends ResolverBase {
|
|
1483
|
+
async RunmjBizAppsTasksTaskDecisionOutcomeViewByID(input, { providers, userPayload }, pubSub) {
|
|
1484
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1485
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1486
|
+
}
|
|
1487
|
+
async RunmjBizAppsTasksTaskDecisionOutcomeViewByName(input, { providers, userPayload }, pubSub) {
|
|
1488
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1489
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1490
|
+
}
|
|
1491
|
+
async RunmjBizAppsTasksTaskDecisionOutcomeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1492
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1493
|
+
input.EntityName = 'MJ_BizApps_Tasks: Task Decision Outcomes';
|
|
1494
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1495
|
+
}
|
|
1496
|
+
async mjBizAppsTasksTaskDecisionOutcome(ID, { userPayload, providers }, pubSub) {
|
|
1497
|
+
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Decision Outcomes', userPayload);
|
|
1498
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1499
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDecisionOutcomes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Decision Outcomes', userPayload, EntityPermissionType.Read, 'AND');
|
|
1500
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1501
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Decision Outcomes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1502
|
+
return result;
|
|
1503
|
+
}
|
|
1504
|
+
async mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_OutcomeIDArray(mjbizappstaskstaskdecisionoutcome_, { userPayload, providers }, pubSub) {
|
|
1505
|
+
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Decisions', userPayload);
|
|
1506
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1507
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDecisions')} WHERE ${provider.QuoteIdentifier('OutcomeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Decisions', userPayload, EntityPermissionType.Read, 'AND');
|
|
1508
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskdecisionoutcome_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1509
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Decisions', rows, this.GetUserFromPayload(userPayload));
|
|
1510
|
+
return result;
|
|
1511
|
+
}
|
|
1512
|
+
async CreatemjBizAppsTasksTaskDecisionOutcome(input, { providers, userPayload }, pubSub) {
|
|
1513
|
+
const provider = GetReadWriteProvider(providers);
|
|
1514
|
+
return this.CreateRecord('MJ_BizApps_Tasks: Task Decision Outcomes', input, provider, userPayload, pubSub);
|
|
1515
|
+
}
|
|
1516
|
+
async UpdatemjBizAppsTasksTaskDecisionOutcome(input, { providers, userPayload }, pubSub) {
|
|
1517
|
+
const provider = GetReadWriteProvider(providers);
|
|
1518
|
+
return this.UpdateRecord('MJ_BizApps_Tasks: Task Decision Outcomes', input, provider, userPayload, pubSub);
|
|
1519
|
+
}
|
|
1520
|
+
async DeletemjBizAppsTasksTaskDecisionOutcome(ID, options, { providers, userPayload }, pubSub) {
|
|
1521
|
+
const provider = GetReadWriteProvider(providers);
|
|
1522
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1523
|
+
return this.DeleteRecord('MJ_BizApps_Tasks: Task Decision Outcomes', key, options, provider, userPayload, pubSub);
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
__decorate([
|
|
1527
|
+
Query(() => RunmjBizAppsTasksTaskDecisionOutcomeViewResult),
|
|
1528
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1529
|
+
__param(1, Ctx()),
|
|
1530
|
+
__param(2, PubSub()),
|
|
1531
|
+
__metadata("design:type", Function),
|
|
1532
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1533
|
+
__metadata("design:returntype", Promise)
|
|
1534
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "RunmjBizAppsTasksTaskDecisionOutcomeViewByID", null);
|
|
1535
|
+
__decorate([
|
|
1536
|
+
Query(() => RunmjBizAppsTasksTaskDecisionOutcomeViewResult),
|
|
1537
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1538
|
+
__param(1, Ctx()),
|
|
1539
|
+
__param(2, PubSub()),
|
|
1540
|
+
__metadata("design:type", Function),
|
|
1541
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1542
|
+
__metadata("design:returntype", Promise)
|
|
1543
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "RunmjBizAppsTasksTaskDecisionOutcomeViewByName", null);
|
|
1544
|
+
__decorate([
|
|
1545
|
+
Query(() => RunmjBizAppsTasksTaskDecisionOutcomeViewResult),
|
|
1546
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1547
|
+
__param(1, Ctx()),
|
|
1548
|
+
__param(2, PubSub()),
|
|
1549
|
+
__metadata("design:type", Function),
|
|
1550
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1551
|
+
__metadata("design:returntype", Promise)
|
|
1552
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "RunmjBizAppsTasksTaskDecisionOutcomeDynamicView", null);
|
|
1553
|
+
__decorate([
|
|
1554
|
+
Query(() => mjBizAppsTasksTaskDecisionOutcome_, { nullable: true }),
|
|
1555
|
+
__param(0, Arg('ID', () => String)),
|
|
1556
|
+
__param(1, Ctx()),
|
|
1557
|
+
__param(2, PubSub()),
|
|
1558
|
+
__metadata("design:type", Function),
|
|
1559
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1560
|
+
__metadata("design:returntype", Promise)
|
|
1561
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "mjBizAppsTasksTaskDecisionOutcome", null);
|
|
1562
|
+
__decorate([
|
|
1563
|
+
FieldResolver(() => [mjBizAppsTasksTaskDecision_]),
|
|
1564
|
+
__param(0, Root()),
|
|
1565
|
+
__param(1, Ctx()),
|
|
1566
|
+
__param(2, PubSub()),
|
|
1567
|
+
__metadata("design:type", Function),
|
|
1568
|
+
__metadata("design:paramtypes", [mjBizAppsTasksTaskDecisionOutcome_, Object, PubSubEngine]),
|
|
1569
|
+
__metadata("design:returntype", Promise)
|
|
1570
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_OutcomeIDArray", null);
|
|
1571
|
+
__decorate([
|
|
1572
|
+
Mutation(() => mjBizAppsTasksTaskDecisionOutcome_),
|
|
1573
|
+
__param(0, Arg('input', () => CreatemjBizAppsTasksTaskDecisionOutcomeInput)),
|
|
1574
|
+
__param(1, Ctx()),
|
|
1575
|
+
__param(2, PubSub()),
|
|
1576
|
+
__metadata("design:type", Function),
|
|
1577
|
+
__metadata("design:paramtypes", [CreatemjBizAppsTasksTaskDecisionOutcomeInput, Object, PubSubEngine]),
|
|
1578
|
+
__metadata("design:returntype", Promise)
|
|
1579
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "CreatemjBizAppsTasksTaskDecisionOutcome", null);
|
|
1580
|
+
__decorate([
|
|
1581
|
+
Mutation(() => mjBizAppsTasksTaskDecisionOutcome_),
|
|
1582
|
+
__param(0, Arg('input', () => UpdatemjBizAppsTasksTaskDecisionOutcomeInput)),
|
|
1583
|
+
__param(1, Ctx()),
|
|
1584
|
+
__param(2, PubSub()),
|
|
1585
|
+
__metadata("design:type", Function),
|
|
1586
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsTasksTaskDecisionOutcomeInput, Object, PubSubEngine]),
|
|
1587
|
+
__metadata("design:returntype", Promise)
|
|
1588
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "UpdatemjBizAppsTasksTaskDecisionOutcome", null);
|
|
1589
|
+
__decorate([
|
|
1590
|
+
Mutation(() => mjBizAppsTasksTaskDecisionOutcome_),
|
|
1591
|
+
__param(0, Arg('ID', () => String)),
|
|
1592
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1593
|
+
__param(2, Ctx()),
|
|
1594
|
+
__param(3, PubSub()),
|
|
1595
|
+
__metadata("design:type", Function),
|
|
1596
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1597
|
+
__metadata("design:returntype", Promise)
|
|
1598
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver.prototype, "DeletemjBizAppsTasksTaskDecisionOutcome", null);
|
|
1599
|
+
mjBizAppsTasksTaskDecisionOutcomeResolver = __decorate([
|
|
1600
|
+
Resolver(mjBizAppsTasksTaskDecisionOutcome_)
|
|
1601
|
+
], mjBizAppsTasksTaskDecisionOutcomeResolver);
|
|
1602
|
+
export { mjBizAppsTasksTaskDecisionOutcomeResolver };
|
|
1603
|
+
//****************************************************************************
|
|
1604
|
+
// ENTITY CLASS for MJ_BizApps_Tasks: Task Decisions
|
|
1605
|
+
//****************************************************************************
|
|
1606
|
+
let mjBizAppsTasksTaskDecision_ = class mjBizAppsTasksTaskDecision_ {
|
|
1607
|
+
};
|
|
1608
|
+
__decorate([
|
|
1609
|
+
Field(),
|
|
1610
|
+
MaxLength(36),
|
|
1611
|
+
__metadata("design:type", String)
|
|
1612
|
+
], mjBizAppsTasksTaskDecision_.prototype, "ID", void 0);
|
|
1613
|
+
__decorate([
|
|
1614
|
+
Field({ description: `The task this decision was recorded against.` }),
|
|
1615
|
+
MaxLength(36),
|
|
1616
|
+
__metadata("design:type", String)
|
|
1617
|
+
], mjBizAppsTasksTaskDecision_.prototype, "TaskID", void 0);
|
|
1618
|
+
__decorate([
|
|
1619
|
+
Field({ description: `The decision outcome (FK to TaskDecisionOutcome).` }),
|
|
1620
|
+
MaxLength(36),
|
|
1621
|
+
__metadata("design:type", String)
|
|
1622
|
+
], mjBizAppsTasksTaskDecision_.prototype, "OutcomeID", void 0);
|
|
1623
|
+
__decorate([
|
|
1624
|
+
Field({ nullable: true, description: `The Person who made the decision.` }),
|
|
1625
|
+
MaxLength(36),
|
|
1626
|
+
__metadata("design:type", String)
|
|
1627
|
+
], mjBizAppsTasksTaskDecision_.prototype, "DecidedByPersonID", void 0);
|
|
1628
|
+
__decorate([
|
|
1629
|
+
Field({ description: `When the decision was recorded.` }),
|
|
1630
|
+
__metadata("design:type", Date)
|
|
1631
|
+
], mjBizAppsTasksTaskDecision_.prototype, "DecidedAt", void 0);
|
|
1632
|
+
__decorate([
|
|
1633
|
+
Field({ nullable: true, description: `Free-text rationale or conditions attached to the decision.` }),
|
|
1634
|
+
__metadata("design:type", String)
|
|
1635
|
+
], mjBizAppsTasksTaskDecision_.prototype, "DecisionNotes", void 0);
|
|
1636
|
+
__decorate([
|
|
1637
|
+
Field({ nullable: true, description: `Optional link to the specific TaskAssignment this decision belongs to, for per-assignee decisions in multi-approver flows. Null for a task-level decision.` }),
|
|
1638
|
+
MaxLength(36),
|
|
1639
|
+
__metadata("design:type", String)
|
|
1640
|
+
], mjBizAppsTasksTaskDecision_.prototype, "TaskAssignmentID", void 0);
|
|
1641
|
+
__decorate([
|
|
1642
|
+
Field(),
|
|
1643
|
+
__metadata("design:type", Date)
|
|
1644
|
+
], mjBizAppsTasksTaskDecision_.prototype, "_mj__CreatedAt", void 0);
|
|
1645
|
+
__decorate([
|
|
1646
|
+
Field(),
|
|
1647
|
+
__metadata("design:type", Date)
|
|
1648
|
+
], mjBizAppsTasksTaskDecision_.prototype, "_mj__UpdatedAt", void 0);
|
|
1649
|
+
__decorate([
|
|
1650
|
+
Field(),
|
|
1651
|
+
MaxLength(255),
|
|
1652
|
+
__metadata("design:type", String)
|
|
1653
|
+
], mjBizAppsTasksTaskDecision_.prototype, "Task", void 0);
|
|
1654
|
+
__decorate([
|
|
1655
|
+
Field(),
|
|
1656
|
+
MaxLength(100),
|
|
1657
|
+
__metadata("design:type", String)
|
|
1658
|
+
], mjBizAppsTasksTaskDecision_.prototype, "Outcome", void 0);
|
|
1659
|
+
__decorate([
|
|
1660
|
+
Field({ nullable: true }),
|
|
1661
|
+
MaxLength(201),
|
|
1662
|
+
__metadata("design:type", String)
|
|
1663
|
+
], mjBizAppsTasksTaskDecision_.prototype, "DecidedByPerson", void 0);
|
|
1664
|
+
mjBizAppsTasksTaskDecision_ = __decorate([
|
|
1665
|
+
ObjectType()
|
|
1666
|
+
], mjBizAppsTasksTaskDecision_);
|
|
1667
|
+
export { mjBizAppsTasksTaskDecision_ };
|
|
1668
|
+
//****************************************************************************
|
|
1669
|
+
// INPUT TYPE for MJ_BizApps_Tasks: Task Decisions
|
|
1670
|
+
//****************************************************************************
|
|
1671
|
+
let CreatemjBizAppsTasksTaskDecisionInput = class CreatemjBizAppsTasksTaskDecisionInput {
|
|
1672
|
+
};
|
|
1673
|
+
__decorate([
|
|
1674
|
+
Field({ nullable: true }),
|
|
1675
|
+
__metadata("design:type", String)
|
|
1676
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "ID", void 0);
|
|
1677
|
+
__decorate([
|
|
1678
|
+
Field({ nullable: true }),
|
|
1679
|
+
__metadata("design:type", String)
|
|
1680
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "TaskID", void 0);
|
|
1681
|
+
__decorate([
|
|
1682
|
+
Field({ nullable: true }),
|
|
1683
|
+
__metadata("design:type", String)
|
|
1684
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "OutcomeID", void 0);
|
|
1685
|
+
__decorate([
|
|
1686
|
+
Field({ nullable: true }),
|
|
1687
|
+
__metadata("design:type", String)
|
|
1688
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "DecidedByPersonID", void 0);
|
|
1689
|
+
__decorate([
|
|
1690
|
+
Field({ nullable: true }),
|
|
1691
|
+
__metadata("design:type", Date)
|
|
1692
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "DecidedAt", void 0);
|
|
1693
|
+
__decorate([
|
|
1694
|
+
Field({ nullable: true }),
|
|
1695
|
+
__metadata("design:type", String)
|
|
1696
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "DecisionNotes", void 0);
|
|
1697
|
+
__decorate([
|
|
1698
|
+
Field({ nullable: true }),
|
|
1699
|
+
__metadata("design:type", String)
|
|
1700
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "TaskAssignmentID", void 0);
|
|
1701
|
+
__decorate([
|
|
1702
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1703
|
+
__metadata("design:type", RestoreContextInput)
|
|
1704
|
+
], CreatemjBizAppsTasksTaskDecisionInput.prototype, "RestoreContext___", void 0);
|
|
1705
|
+
CreatemjBizAppsTasksTaskDecisionInput = __decorate([
|
|
1706
|
+
InputType()
|
|
1707
|
+
], CreatemjBizAppsTasksTaskDecisionInput);
|
|
1708
|
+
export { CreatemjBizAppsTasksTaskDecisionInput };
|
|
1709
|
+
//****************************************************************************
|
|
1710
|
+
// INPUT TYPE for MJ_BizApps_Tasks: Task Decisions
|
|
1711
|
+
//****************************************************************************
|
|
1712
|
+
let UpdatemjBizAppsTasksTaskDecisionInput = class UpdatemjBizAppsTasksTaskDecisionInput {
|
|
1713
|
+
};
|
|
1714
|
+
__decorate([
|
|
1715
|
+
Field(),
|
|
1716
|
+
__metadata("design:type", String)
|
|
1717
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "ID", void 0);
|
|
1718
|
+
__decorate([
|
|
1719
|
+
Field({ nullable: true }),
|
|
1720
|
+
__metadata("design:type", String)
|
|
1721
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "TaskID", void 0);
|
|
1722
|
+
__decorate([
|
|
1723
|
+
Field({ nullable: true }),
|
|
1724
|
+
__metadata("design:type", String)
|
|
1725
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "OutcomeID", void 0);
|
|
1726
|
+
__decorate([
|
|
1727
|
+
Field({ nullable: true }),
|
|
1728
|
+
__metadata("design:type", String)
|
|
1729
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "DecidedByPersonID", void 0);
|
|
1730
|
+
__decorate([
|
|
1731
|
+
Field({ nullable: true }),
|
|
1732
|
+
__metadata("design:type", Date)
|
|
1733
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "DecidedAt", void 0);
|
|
1734
|
+
__decorate([
|
|
1735
|
+
Field({ nullable: true }),
|
|
1736
|
+
__metadata("design:type", String)
|
|
1737
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "DecisionNotes", void 0);
|
|
1738
|
+
__decorate([
|
|
1739
|
+
Field({ nullable: true }),
|
|
1740
|
+
__metadata("design:type", String)
|
|
1741
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "TaskAssignmentID", void 0);
|
|
1742
|
+
__decorate([
|
|
1743
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1744
|
+
__metadata("design:type", Array)
|
|
1745
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "OldValues___", void 0);
|
|
1746
|
+
__decorate([
|
|
1747
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1748
|
+
__metadata("design:type", RestoreContextInput)
|
|
1749
|
+
], UpdatemjBizAppsTasksTaskDecisionInput.prototype, "RestoreContext___", void 0);
|
|
1750
|
+
UpdatemjBizAppsTasksTaskDecisionInput = __decorate([
|
|
1751
|
+
InputType()
|
|
1752
|
+
], UpdatemjBizAppsTasksTaskDecisionInput);
|
|
1753
|
+
export { UpdatemjBizAppsTasksTaskDecisionInput };
|
|
1754
|
+
//****************************************************************************
|
|
1755
|
+
// RESOLVER for MJ_BizApps_Tasks: Task Decisions
|
|
1756
|
+
//****************************************************************************
|
|
1757
|
+
let RunmjBizAppsTasksTaskDecisionViewResult = class RunmjBizAppsTasksTaskDecisionViewResult {
|
|
1758
|
+
};
|
|
1759
|
+
__decorate([
|
|
1760
|
+
Field(() => [mjBizAppsTasksTaskDecision_]),
|
|
1761
|
+
__metadata("design:type", Array)
|
|
1762
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "Results", void 0);
|
|
1763
|
+
__decorate([
|
|
1764
|
+
Field(() => String, { nullable: true }),
|
|
1765
|
+
__metadata("design:type", String)
|
|
1766
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "UserViewRunID", void 0);
|
|
1767
|
+
__decorate([
|
|
1768
|
+
Field(() => Int, { nullable: true }),
|
|
1769
|
+
__metadata("design:type", Number)
|
|
1770
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "RowCount", void 0);
|
|
1771
|
+
__decorate([
|
|
1772
|
+
Field(() => Int, { nullable: true }),
|
|
1773
|
+
__metadata("design:type", Number)
|
|
1774
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "TotalRowCount", void 0);
|
|
1775
|
+
__decorate([
|
|
1776
|
+
Field(() => Int, { nullable: true }),
|
|
1777
|
+
__metadata("design:type", Number)
|
|
1778
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "ExecutionTime", void 0);
|
|
1779
|
+
__decorate([
|
|
1780
|
+
Field({ nullable: true }),
|
|
1781
|
+
__metadata("design:type", String)
|
|
1782
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "ErrorMessage", void 0);
|
|
1783
|
+
__decorate([
|
|
1784
|
+
Field(() => Boolean, { nullable: false }),
|
|
1785
|
+
__metadata("design:type", Boolean)
|
|
1786
|
+
], RunmjBizAppsTasksTaskDecisionViewResult.prototype, "Success", void 0);
|
|
1787
|
+
RunmjBizAppsTasksTaskDecisionViewResult = __decorate([
|
|
1788
|
+
ObjectType()
|
|
1789
|
+
], RunmjBizAppsTasksTaskDecisionViewResult);
|
|
1790
|
+
export { RunmjBizAppsTasksTaskDecisionViewResult };
|
|
1791
|
+
let mjBizAppsTasksTaskDecisionResolver = class mjBizAppsTasksTaskDecisionResolver extends ResolverBase {
|
|
1792
|
+
async RunmjBizAppsTasksTaskDecisionViewByID(input, { providers, userPayload }, pubSub) {
|
|
1793
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1794
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1795
|
+
}
|
|
1796
|
+
async RunmjBizAppsTasksTaskDecisionViewByName(input, { providers, userPayload }, pubSub) {
|
|
1797
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1798
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1799
|
+
}
|
|
1800
|
+
async RunmjBizAppsTasksTaskDecisionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1801
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1802
|
+
input.EntityName = 'MJ_BizApps_Tasks: Task Decisions';
|
|
1803
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1804
|
+
}
|
|
1805
|
+
async mjBizAppsTasksTaskDecision(ID, { userPayload, providers }, pubSub) {
|
|
1806
|
+
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Decisions', userPayload);
|
|
1807
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1808
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDecisions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Decisions', userPayload, EntityPermissionType.Read, 'AND');
|
|
1809
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1810
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Decisions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1811
|
+
return result;
|
|
1812
|
+
}
|
|
1813
|
+
async CreatemjBizAppsTasksTaskDecision(input, { providers, userPayload }, pubSub) {
|
|
1814
|
+
const provider = GetReadWriteProvider(providers);
|
|
1815
|
+
return this.CreateRecord('MJ_BizApps_Tasks: Task Decisions', input, provider, userPayload, pubSub);
|
|
1816
|
+
}
|
|
1817
|
+
async UpdatemjBizAppsTasksTaskDecision(input, { providers, userPayload }, pubSub) {
|
|
1818
|
+
const provider = GetReadWriteProvider(providers);
|
|
1819
|
+
return this.UpdateRecord('MJ_BizApps_Tasks: Task Decisions', input, provider, userPayload, pubSub);
|
|
1820
|
+
}
|
|
1821
|
+
async DeletemjBizAppsTasksTaskDecision(ID, options, { providers, userPayload }, pubSub) {
|
|
1822
|
+
const provider = GetReadWriteProvider(providers);
|
|
1823
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1824
|
+
return this.DeleteRecord('MJ_BizApps_Tasks: Task Decisions', key, options, provider, userPayload, pubSub);
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
__decorate([
|
|
1828
|
+
Query(() => RunmjBizAppsTasksTaskDecisionViewResult),
|
|
1829
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1830
|
+
__param(1, Ctx()),
|
|
1831
|
+
__param(2, PubSub()),
|
|
1832
|
+
__metadata("design:type", Function),
|
|
1833
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1834
|
+
__metadata("design:returntype", Promise)
|
|
1835
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "RunmjBizAppsTasksTaskDecisionViewByID", null);
|
|
1836
|
+
__decorate([
|
|
1837
|
+
Query(() => RunmjBizAppsTasksTaskDecisionViewResult),
|
|
1838
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1839
|
+
__param(1, Ctx()),
|
|
1840
|
+
__param(2, PubSub()),
|
|
1841
|
+
__metadata("design:type", Function),
|
|
1842
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1843
|
+
__metadata("design:returntype", Promise)
|
|
1844
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "RunmjBizAppsTasksTaskDecisionViewByName", null);
|
|
1845
|
+
__decorate([
|
|
1846
|
+
Query(() => RunmjBizAppsTasksTaskDecisionViewResult),
|
|
1847
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1848
|
+
__param(1, Ctx()),
|
|
1849
|
+
__param(2, PubSub()),
|
|
1850
|
+
__metadata("design:type", Function),
|
|
1851
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1852
|
+
__metadata("design:returntype", Promise)
|
|
1853
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "RunmjBizAppsTasksTaskDecisionDynamicView", null);
|
|
1854
|
+
__decorate([
|
|
1855
|
+
Query(() => mjBizAppsTasksTaskDecision_, { nullable: true }),
|
|
1856
|
+
__param(0, Arg('ID', () => String)),
|
|
1857
|
+
__param(1, Ctx()),
|
|
1858
|
+
__param(2, PubSub()),
|
|
1859
|
+
__metadata("design:type", Function),
|
|
1860
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1861
|
+
__metadata("design:returntype", Promise)
|
|
1862
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "mjBizAppsTasksTaskDecision", null);
|
|
1863
|
+
__decorate([
|
|
1864
|
+
Mutation(() => mjBizAppsTasksTaskDecision_),
|
|
1865
|
+
__param(0, Arg('input', () => CreatemjBizAppsTasksTaskDecisionInput)),
|
|
1866
|
+
__param(1, Ctx()),
|
|
1867
|
+
__param(2, PubSub()),
|
|
1868
|
+
__metadata("design:type", Function),
|
|
1869
|
+
__metadata("design:paramtypes", [CreatemjBizAppsTasksTaskDecisionInput, Object, PubSubEngine]),
|
|
1870
|
+
__metadata("design:returntype", Promise)
|
|
1871
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "CreatemjBizAppsTasksTaskDecision", null);
|
|
1872
|
+
__decorate([
|
|
1873
|
+
Mutation(() => mjBizAppsTasksTaskDecision_),
|
|
1874
|
+
__param(0, Arg('input', () => UpdatemjBizAppsTasksTaskDecisionInput)),
|
|
1875
|
+
__param(1, Ctx()),
|
|
1876
|
+
__param(2, PubSub()),
|
|
1877
|
+
__metadata("design:type", Function),
|
|
1878
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsTasksTaskDecisionInput, Object, PubSubEngine]),
|
|
1879
|
+
__metadata("design:returntype", Promise)
|
|
1880
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "UpdatemjBizAppsTasksTaskDecision", null);
|
|
1881
|
+
__decorate([
|
|
1882
|
+
Mutation(() => mjBizAppsTasksTaskDecision_),
|
|
1883
|
+
__param(0, Arg('ID', () => String)),
|
|
1884
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1885
|
+
__param(2, Ctx()),
|
|
1886
|
+
__param(3, PubSub()),
|
|
1887
|
+
__metadata("design:type", Function),
|
|
1888
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1889
|
+
__metadata("design:returntype", Promise)
|
|
1890
|
+
], mjBizAppsTasksTaskDecisionResolver.prototype, "DeletemjBizAppsTasksTaskDecision", null);
|
|
1891
|
+
mjBizAppsTasksTaskDecisionResolver = __decorate([
|
|
1892
|
+
Resolver(mjBizAppsTasksTaskDecision_)
|
|
1893
|
+
], mjBizAppsTasksTaskDecisionResolver);
|
|
1894
|
+
export { mjBizAppsTasksTaskDecisionResolver };
|
|
1895
|
+
//****************************************************************************
|
|
1287
1896
|
// ENTITY CLASS for MJ_BizApps_Tasks: Task Dependencies
|
|
1288
1897
|
//****************************************************************************
|
|
1289
1898
|
let mjBizAppsTasksTaskDependency_ = class mjBizAppsTasksTaskDependency_ {
|
|
@@ -1446,8 +2055,8 @@ let mjBizAppsTasksTaskDependencyResolver = class mjBizAppsTasksTaskDependencyRes
|
|
|
1446
2055
|
async mjBizAppsTasksTaskDependency(ID, { userPayload, providers }, pubSub) {
|
|
1447
2056
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Dependencies', userPayload);
|
|
1448
2057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1449
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
1450
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
2058
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
2059
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1451
2060
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1452
2061
|
return result;
|
|
1453
2062
|
}
|
|
@@ -1709,8 +2318,8 @@ let mjBizAppsTasksTaskLinkResolver = class mjBizAppsTasksTaskLinkResolver extend
|
|
|
1709
2318
|
async mjBizAppsTasksTaskLink(ID, { userPayload, providers }, pubSub) {
|
|
1710
2319
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Links', userPayload);
|
|
1711
2320
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1712
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskLinks')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
1713
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
2321
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskLinks')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
2322
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1714
2323
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1715
2324
|
return result;
|
|
1716
2325
|
}
|
|
@@ -2006,8 +2615,8 @@ let mjBizAppsTasksTaskNotificationConfigResolver = class mjBizAppsTasksTaskNotif
|
|
|
2006
2615
|
async mjBizAppsTasksTaskNotificationConfig(ID, { userPayload, providers }, pubSub) {
|
|
2007
2616
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Notification Configs', userPayload);
|
|
2008
2617
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2009
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationConfigs')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
2010
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
2618
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationConfigs')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Notification Configs', userPayload, EntityPermissionType.Read, 'AND');
|
|
2619
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2011
2620
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Notification Configs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2012
2621
|
return result;
|
|
2013
2622
|
}
|
|
@@ -2268,8 +2877,8 @@ let mjBizAppsTasksTaskNotificationLogResolver = class mjBizAppsTasksTaskNotifica
|
|
|
2268
2877
|
async mjBizAppsTasksTaskNotificationLog(ID, { userPayload, providers }, pubSub) {
|
|
2269
2878
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Notification Logs', userPayload);
|
|
2270
2879
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2271
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationLogs')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
2272
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
2880
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationLogs')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Notification Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
2881
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2273
2882
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Notification Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2274
2883
|
return result;
|
|
2275
2884
|
}
|
|
@@ -2514,24 +3123,24 @@ let mjBizAppsTasksTaskRoleResolver = class mjBizAppsTasksTaskRoleResolver extend
|
|
|
2514
3123
|
async mjBizAppsTasksTaskRole(ID, { userPayload, providers }, pubSub) {
|
|
2515
3124
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Roles', userPayload);
|
|
2516
3125
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2517
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskRoles')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
2518
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3126
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskRoles')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
3127
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2519
3128
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2520
3129
|
return result;
|
|
2521
3130
|
}
|
|
2522
3131
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItemRoles_RoleIDArray(mjbizappstaskstaskrole_, { userPayload, providers }, pubSub) {
|
|
2523
3132
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Roles', userPayload);
|
|
2524
3133
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2525
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('RoleID')}
|
|
2526
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3134
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('RoleID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
3135
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskrole_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2527
3136
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Roles', rows, this.GetUserFromPayload(userPayload));
|
|
2528
3137
|
return result;
|
|
2529
3138
|
}
|
|
2530
3139
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskAssignments_RoleIDArray(mjbizappstaskstaskrole_, { userPayload, providers }, pubSub) {
|
|
2531
3140
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Assignments', userPayload);
|
|
2532
3141
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2533
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('RoleID')}
|
|
2534
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3142
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('RoleID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Assignments', userPayload, EntityPermissionType.Read, 'AND');
|
|
3143
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstaskrole_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2535
3144
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Assignments', rows, this.GetUserFromPayload(userPayload));
|
|
2536
3145
|
return result;
|
|
2537
3146
|
}
|
|
@@ -2785,8 +3394,8 @@ let mjBizAppsTasksTaskTagLinkResolver = class mjBizAppsTasksTaskTagLinkResolver
|
|
|
2785
3394
|
async mjBizAppsTasksTaskTagLink(ID, { userPayload, providers }, pubSub) {
|
|
2786
3395
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Tag Links', userPayload);
|
|
2787
3396
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2788
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
2789
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3397
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Tag Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
3398
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2790
3399
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Tag Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2791
3400
|
return result;
|
|
2792
3401
|
}
|
|
@@ -3028,16 +3637,16 @@ let mjBizAppsTasksTaskTagResolver = class mjBizAppsTasksTaskTagResolver extends
|
|
|
3028
3637
|
async mjBizAppsTasksTaskTag(ID, { userPayload, providers }, pubSub) {
|
|
3029
3638
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Tags', userPayload);
|
|
3030
3639
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3031
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTags')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
3032
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3640
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTags')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
3641
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3033
3642
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3034
3643
|
return result;
|
|
3035
3644
|
}
|
|
3036
3645
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTagLinks_TagIDArray(mjbizappstaskstasktag_, { userPayload, providers }, pubSub) {
|
|
3037
3646
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Tag Links', userPayload);
|
|
3038
3647
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3039
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('TagID')}
|
|
3040
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3648
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('TagID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Tag Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
3649
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktag_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3041
3650
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Tag Links', rows, this.GetUserFromPayload(userPayload));
|
|
3042
3651
|
return result;
|
|
3043
3652
|
}
|
|
@@ -3295,8 +3904,8 @@ let mjBizAppsTasksTaskTemplateItemDependencyResolver = class mjBizAppsTasksTaskT
|
|
|
3295
3904
|
async mjBizAppsTasksTaskTemplateItemDependency(ID, { userPayload, providers }, pubSub) {
|
|
3296
3905
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload);
|
|
3297
3906
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3298
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
3299
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
3907
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
3908
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3300
3909
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3301
3910
|
return result;
|
|
3302
3911
|
}
|
|
@@ -3532,8 +4141,8 @@ let mjBizAppsTasksTaskTemplateItemRoleResolver = class mjBizAppsTasksTaskTemplat
|
|
|
3532
4141
|
async mjBizAppsTasksTaskTemplateItemRole(ID, { userPayload, providers }, pubSub) {
|
|
3533
4142
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Roles', userPayload);
|
|
3534
4143
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3535
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
3536
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4144
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
4145
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3537
4146
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3538
4147
|
return result;
|
|
3539
4148
|
}
|
|
@@ -3864,40 +4473,40 @@ let mjBizAppsTasksTaskTemplateItemResolver = class mjBizAppsTasksTaskTemplateIte
|
|
|
3864
4473
|
async mjBizAppsTasksTaskTemplateItem(ID, { userPayload, providers }, pubSub) {
|
|
3865
4474
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Items', userPayload);
|
|
3866
4475
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3867
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
3868
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4476
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
4477
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3869
4478
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3870
4479
|
return result;
|
|
3871
4480
|
}
|
|
3872
4481
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItems_ParentItemIDArray(mjbizappstaskstasktemplateitem_, { userPayload, providers }, pubSub) {
|
|
3873
4482
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Items', userPayload);
|
|
3874
4483
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3875
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('ParentItemID')}
|
|
3876
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4484
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('ParentItemID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
4485
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktemplateitem_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3877
4486
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Items', rows, this.GetUserFromPayload(userPayload));
|
|
3878
4487
|
return result;
|
|
3879
4488
|
}
|
|
3880
4489
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItemRoles_ItemIDArray(mjbizappstaskstasktemplateitem_, { userPayload, providers }, pubSub) {
|
|
3881
4490
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Roles', userPayload);
|
|
3882
4491
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3883
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('ItemID')}
|
|
3884
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4492
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemRoles')} WHERE ${provider.QuoteIdentifier('ItemID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
4493
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktemplateitem_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3885
4494
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Roles', rows, this.GetUserFromPayload(userPayload));
|
|
3886
4495
|
return result;
|
|
3887
4496
|
}
|
|
3888
4497
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItemDependencies_DependsOnItemIDArray(mjbizappstaskstasktemplateitem_, { userPayload, providers }, pubSub) {
|
|
3889
4498
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload);
|
|
3890
4499
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3891
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnItemID')}
|
|
3892
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4500
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnItemID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
4501
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktemplateitem_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3893
4502
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
3894
4503
|
return result;
|
|
3895
4504
|
}
|
|
3896
4505
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItemDependencies_ItemIDArray(mjbizappstaskstasktemplateitem_, { userPayload, providers }, pubSub) {
|
|
3897
4506
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload);
|
|
3898
4507
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3899
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('ItemID')}
|
|
3900
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4508
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItemDependencies')} WHERE ${provider.QuoteIdentifier('ItemID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Item Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
4509
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktemplateitem_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3901
4510
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Item Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
3902
4511
|
return result;
|
|
3903
4512
|
}
|
|
@@ -4210,16 +4819,16 @@ let mjBizAppsTasksTaskTemplateResolver = class mjBizAppsTasksTaskTemplateResolve
|
|
|
4210
4819
|
async mjBizAppsTasksTaskTemplate(ID, { userPayload, providers }, pubSub) {
|
|
4211
4820
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Templates', userPayload);
|
|
4212
4821
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4213
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
4214
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4822
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
4823
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4215
4824
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Templates', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4216
4825
|
return result;
|
|
4217
4826
|
}
|
|
4218
4827
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplateItems_TemplateIDArray(mjbizappstaskstasktemplate_, { userPayload, providers }, pubSub) {
|
|
4219
4828
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Template Items', userPayload);
|
|
4220
4829
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4221
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('TemplateID')}
|
|
4222
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
4830
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplateItems')} WHERE ${provider.QuoteIdentifier('TemplateID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Template Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
4831
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktemplate_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4223
4832
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Template Items', rows, this.GetUserFromPayload(userPayload));
|
|
4224
4833
|
return result;
|
|
4225
4834
|
}
|
|
@@ -4375,6 +4984,16 @@ __decorate([
|
|
|
4375
4984
|
Field(),
|
|
4376
4985
|
__metadata("design:type", Date)
|
|
4377
4986
|
], mjBizAppsTasksTaskType_.prototype, "_mj__UpdatedAt", void 0);
|
|
4987
|
+
__decorate([
|
|
4988
|
+
Field({ nullable: true, description: `Action invoked when a task of this type transitions to a rejected decision (post-commit, non-blocking). Used by approval workflows.` }),
|
|
4989
|
+
MaxLength(36),
|
|
4990
|
+
__metadata("design:type", String)
|
|
4991
|
+
], mjBizAppsTasksTaskType_.prototype, "OnRejectActionID", void 0);
|
|
4992
|
+
__decorate([
|
|
4993
|
+
Field({ nullable: true, description: `Action invoked when a task of this type transitions to Cancelled (post-commit, non-blocking).` }),
|
|
4994
|
+
MaxLength(36),
|
|
4995
|
+
__metadata("design:type", String)
|
|
4996
|
+
], mjBizAppsTasksTaskType_.prototype, "OnCancelActionID", void 0);
|
|
4378
4997
|
__decorate([
|
|
4379
4998
|
Field({ nullable: true }),
|
|
4380
4999
|
MaxLength(425),
|
|
@@ -4395,6 +5014,16 @@ __decorate([
|
|
|
4395
5014
|
MaxLength(425),
|
|
4396
5015
|
__metadata("design:type", String)
|
|
4397
5016
|
], mjBizAppsTasksTaskType_.prototype, "OnPercentChangeAction", void 0);
|
|
5017
|
+
__decorate([
|
|
5018
|
+
Field({ nullable: true }),
|
|
5019
|
+
MaxLength(425),
|
|
5020
|
+
__metadata("design:type", String)
|
|
5021
|
+
], mjBizAppsTasksTaskType_.prototype, "OnRejectAction", void 0);
|
|
5022
|
+
__decorate([
|
|
5023
|
+
Field({ nullable: true }),
|
|
5024
|
+
MaxLength(425),
|
|
5025
|
+
__metadata("design:type", String)
|
|
5026
|
+
], mjBizAppsTasksTaskType_.prototype, "OnCancelAction", void 0);
|
|
4398
5027
|
__decorate([
|
|
4399
5028
|
Field(() => [mjBizAppsTasksTaskNotificationConfig_]),
|
|
4400
5029
|
__metadata("design:type", Array)
|
|
@@ -4456,6 +5085,14 @@ __decorate([
|
|
|
4456
5085
|
Field(() => Boolean, { nullable: true }),
|
|
4457
5086
|
__metadata("design:type", Boolean)
|
|
4458
5087
|
], CreatemjBizAppsTasksTaskTypeInput.prototype, "IsActive", void 0);
|
|
5088
|
+
__decorate([
|
|
5089
|
+
Field({ nullable: true }),
|
|
5090
|
+
__metadata("design:type", String)
|
|
5091
|
+
], CreatemjBizAppsTasksTaskTypeInput.prototype, "OnRejectActionID", void 0);
|
|
5092
|
+
__decorate([
|
|
5093
|
+
Field({ nullable: true }),
|
|
5094
|
+
__metadata("design:type", String)
|
|
5095
|
+
], CreatemjBizAppsTasksTaskTypeInput.prototype, "OnCancelActionID", void 0);
|
|
4459
5096
|
__decorate([
|
|
4460
5097
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
4461
5098
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -4509,6 +5146,14 @@ __decorate([
|
|
|
4509
5146
|
Field(() => Boolean, { nullable: true }),
|
|
4510
5147
|
__metadata("design:type", Boolean)
|
|
4511
5148
|
], UpdatemjBizAppsTasksTaskTypeInput.prototype, "IsActive", void 0);
|
|
5149
|
+
__decorate([
|
|
5150
|
+
Field({ nullable: true }),
|
|
5151
|
+
__metadata("design:type", String)
|
|
5152
|
+
], UpdatemjBizAppsTasksTaskTypeInput.prototype, "OnRejectActionID", void 0);
|
|
5153
|
+
__decorate([
|
|
5154
|
+
Field({ nullable: true }),
|
|
5155
|
+
__metadata("design:type", String)
|
|
5156
|
+
], UpdatemjBizAppsTasksTaskTypeInput.prototype, "OnCancelActionID", void 0);
|
|
4512
5157
|
__decorate([
|
|
4513
5158
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4514
5159
|
__metadata("design:type", Array)
|
|
@@ -4575,32 +5220,32 @@ let mjBizAppsTasksTaskTypeResolver = class mjBizAppsTasksTaskTypeResolver extend
|
|
|
4575
5220
|
async mjBizAppsTasksTaskType(ID, { userPayload, providers }, pubSub) {
|
|
4576
5221
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Types', userPayload);
|
|
4577
5222
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4578
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTypes')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
4579
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5223
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
5224
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4580
5225
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4581
5226
|
return result;
|
|
4582
5227
|
}
|
|
4583
5228
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskNotificationConfigs_TaskTypeIDArray(mjbizappstaskstasktype_, { userPayload, providers }, pubSub) {
|
|
4584
5229
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Notification Configs', userPayload);
|
|
4585
5230
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4586
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationConfigs')} WHERE ${provider.QuoteIdentifier('TaskTypeID')}
|
|
4587
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5231
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationConfigs')} WHERE ${provider.QuoteIdentifier('TaskTypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Notification Configs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5232
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4588
5233
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Notification Configs', rows, this.GetUserFromPayload(userPayload));
|
|
4589
5234
|
return result;
|
|
4590
5235
|
}
|
|
4591
5236
|
async mjBizAppsTasksMJ_BizApps_Tasks_Tasks_TypeIDArray(mjbizappstaskstasktype_, { userPayload, providers }, pubSub) {
|
|
4592
5237
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Tasks', userPayload);
|
|
4593
5238
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4594
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('TypeID')}
|
|
4595
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5239
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('TypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
5240
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4596
5241
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Tasks', rows, this.GetUserFromPayload(userPayload));
|
|
4597
5242
|
return result;
|
|
4598
5243
|
}
|
|
4599
5244
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTemplates_TypeIDArray(mjbizappstaskstasktype_, { userPayload, providers }, pubSub) {
|
|
4600
5245
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Templates', userPayload);
|
|
4601
5246
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4602
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('TypeID')}
|
|
4603
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5247
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTemplates')} WHERE ${provider.QuoteIdentifier('TypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
5248
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstasktype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
4604
5249
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Templates', rows, this.GetUserFromPayload(userPayload));
|
|
4605
5250
|
return result;
|
|
4606
5251
|
}
|
|
@@ -4871,6 +5516,10 @@ __decorate([
|
|
|
4871
5516
|
Field(() => [mjBizAppsTasksTaskNotificationLog_]),
|
|
4872
5517
|
__metadata("design:type", Array)
|
|
4873
5518
|
], mjBizAppsTasksTask_.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskNotificationLogs_TaskIDArray", void 0);
|
|
5519
|
+
__decorate([
|
|
5520
|
+
Field(() => [mjBizAppsTasksTaskDecision_]),
|
|
5521
|
+
__metadata("design:type", Array)
|
|
5522
|
+
], mjBizAppsTasksTask_.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskIDArray", void 0);
|
|
4874
5523
|
mjBizAppsTasksTask_ = __decorate([
|
|
4875
5524
|
ObjectType()
|
|
4876
5525
|
], mjBizAppsTasksTask_);
|
|
@@ -5111,83 +5760,91 @@ let mjBizAppsTasksTaskResolver = class mjBizAppsTasksTaskResolver extends Resolv
|
|
|
5111
5760
|
async mjBizAppsTasksTask(ID, { userPayload, providers }, pubSub) {
|
|
5112
5761
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Tasks', userPayload);
|
|
5113
5762
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5114
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('ID')}
|
|
5115
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5763
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
5764
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5116
5765
|
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Tasks: Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5117
5766
|
return result;
|
|
5118
5767
|
}
|
|
5119
5768
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskDependencies_DependsOnTaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5120
5769
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Dependencies', userPayload);
|
|
5121
5770
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5122
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnTaskID')}
|
|
5123
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5771
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnTaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
5772
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5124
5773
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
5125
5774
|
return result;
|
|
5126
5775
|
}
|
|
5127
5776
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskDependencies_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5128
5777
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Dependencies', userPayload);
|
|
5129
5778
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5130
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5131
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5779
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
5780
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5132
5781
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
5133
5782
|
return result;
|
|
5134
5783
|
}
|
|
5135
5784
|
async mjBizAppsTasksMJ_BizApps_Tasks_Tasks_ParentIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5136
5785
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Tasks', userPayload);
|
|
5137
5786
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5138
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('ParentID')}
|
|
5139
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5787
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTasks')} WHERE ${provider.QuoteIdentifier('ParentID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
5788
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5140
5789
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Tasks', rows, this.GetUserFromPayload(userPayload));
|
|
5141
5790
|
return result;
|
|
5142
5791
|
}
|
|
5143
5792
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskAssignments_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5144
5793
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Assignments', userPayload);
|
|
5145
5794
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5146
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5147
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5795
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskAssignments')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Assignments', userPayload, EntityPermissionType.Read, 'AND');
|
|
5796
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5148
5797
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Assignments', rows, this.GetUserFromPayload(userPayload));
|
|
5149
5798
|
return result;
|
|
5150
5799
|
}
|
|
5151
5800
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskLinks_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5152
5801
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Links', userPayload);
|
|
5153
5802
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5154
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskLinks')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5155
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5803
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskLinks')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
5804
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5156
5805
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Links', rows, this.GetUserFromPayload(userPayload));
|
|
5157
5806
|
return result;
|
|
5158
5807
|
}
|
|
5159
5808
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskComments_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5160
5809
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Comments', userPayload);
|
|
5161
5810
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5162
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5163
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5811
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskComments')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Comments', userPayload, EntityPermissionType.Read, 'AND');
|
|
5812
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5164
5813
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Comments', rows, this.GetUserFromPayload(userPayload));
|
|
5165
5814
|
return result;
|
|
5166
5815
|
}
|
|
5167
5816
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskActivities_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5168
5817
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Activities', userPayload);
|
|
5169
5818
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5170
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskActivities')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5171
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5819
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskActivities')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
5820
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5172
5821
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Activities', rows, this.GetUserFromPayload(userPayload));
|
|
5173
5822
|
return result;
|
|
5174
5823
|
}
|
|
5175
5824
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskTagLinks_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5176
5825
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Tag Links', userPayload);
|
|
5177
5826
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5178
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5179
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5827
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskTagLinks')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Tag Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
5828
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5180
5829
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Tag Links', rows, this.GetUserFromPayload(userPayload));
|
|
5181
5830
|
return result;
|
|
5182
5831
|
}
|
|
5183
5832
|
async mjBizAppsTasksMJ_BizApps_Tasks_TaskNotificationLogs_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5184
5833
|
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Notification Logs', userPayload);
|
|
5185
5834
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5186
|
-
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationLogs')} WHERE ${provider.QuoteIdentifier('TaskID')}
|
|
5187
|
-
const rows = await provider.ExecuteSQL(sSQL,
|
|
5835
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskNotificationLogs')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Notification Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5836
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5188
5837
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Notification Logs', rows, this.GetUserFromPayload(userPayload));
|
|
5189
5838
|
return result;
|
|
5190
5839
|
}
|
|
5840
|
+
async mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskIDArray(mjbizappstaskstask_, { userPayload, providers }, pubSub) {
|
|
5841
|
+
this.CheckUserReadPermissions('MJ_BizApps_Tasks: Task Decisions', userPayload);
|
|
5842
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5843
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsTasks', 'vwTaskDecisions')} WHERE ${provider.QuoteIdentifier('TaskID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Tasks: Task Decisions', userPayload, EntityPermissionType.Read, 'AND');
|
|
5844
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappstaskstask_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5845
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Tasks: Task Decisions', rows, this.GetUserFromPayload(userPayload));
|
|
5846
|
+
return result;
|
|
5847
|
+
}
|
|
5191
5848
|
async CreatemjBizAppsTasksTask(input, { providers, userPayload }, pubSub) {
|
|
5192
5849
|
const provider = GetReadWriteProvider(providers);
|
|
5193
5850
|
return this.CreateRecord('MJ_BizApps_Tasks: Tasks', input, provider, userPayload, pubSub);
|
|
@@ -5319,6 +5976,15 @@ __decorate([
|
|
|
5319
5976
|
__metadata("design:paramtypes", [mjBizAppsTasksTask_, Object, PubSubEngine]),
|
|
5320
5977
|
__metadata("design:returntype", Promise)
|
|
5321
5978
|
], mjBizAppsTasksTaskResolver.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskNotificationLogs_TaskIDArray", null);
|
|
5979
|
+
__decorate([
|
|
5980
|
+
FieldResolver(() => [mjBizAppsTasksTaskDecision_]),
|
|
5981
|
+
__param(0, Root()),
|
|
5982
|
+
__param(1, Ctx()),
|
|
5983
|
+
__param(2, PubSub()),
|
|
5984
|
+
__metadata("design:type", Function),
|
|
5985
|
+
__metadata("design:paramtypes", [mjBizAppsTasksTask_, Object, PubSubEngine]),
|
|
5986
|
+
__metadata("design:returntype", Promise)
|
|
5987
|
+
], mjBizAppsTasksTaskResolver.prototype, "mjBizAppsTasksMJ_BizApps_Tasks_TaskDecisions_TaskIDArray", null);
|
|
5322
5988
|
__decorate([
|
|
5323
5989
|
Mutation(() => mjBizAppsTasksTask_),
|
|
5324
5990
|
__param(0, Arg('input', () => CreatemjBizAppsTasksTaskInput)),
|