@memberjunction/server 0.9.181 → 0.9.182
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/build.log.json +3 -0
- package/dist/generated/generated.js +1004 -445
- package/dist/generated/generated.js.map +1 -1
- package/package.json +9 -9
- package/src/generated/generated.ts +673 -248
|
@@ -17,9 +17,9 @@ exports.RunEntityPermissionViewResult = exports.UpdateEntityPermissionInput = ex
|
|
|
17
17
|
exports.RecordChangeResolver = exports.RunRecordChangeViewResult = exports.CreateRecordChangeInput = exports.RecordChange_ = exports.WorkflowEngineResolver = exports.RunWorkflowEngineViewResult = exports.UpdateWorkflowEngineInput = exports.WorkflowEngine_ = exports.WorkflowResolver = exports.RunWorkflowViewResult = exports.UpdateWorkflowInput = exports.Workflow_ = exports.WorkflowRunResolver = exports.RunWorkflowRunViewResult = exports.UpdateWorkflowRunInput = exports.WorkflowRun_ = exports.UserViewRunDetailResolver = exports.RunUserViewRunDetailViewResult = exports.UpdateUserViewRunDetailInput = exports.CreateUserViewRunDetailInput = exports.UserViewRunDetail_ = exports.UserViewRunResolver = exports.RunUserViewRunViewResult = exports.UpdateUserViewRunInput = exports.CreateUserViewRunInput = exports.UserViewRun_ = exports.ListDetailResolver = exports.RunListDetailViewResult = exports.UpdateListDetailInput = exports.CreateListDetailInput = exports.ListDetail_ = exports.ListResolver = exports.RunListViewResult = exports.UpdateListInput = exports.CreateListInput = exports.List_ = exports.CompanyIntegrationRunAPILogResolver = exports.RunCompanyIntegrationRunAPILogViewResult = exports.UpdateCompanyIntegrationRunAPILogInput = exports.CompanyIntegrationRunAPILog_ = exports.UserApplicationResolver = exports.RunUserApplicationViewResult = exports.UpdateUserApplicationInput = exports.UserApplication_ = exports.UserApplicationEntityResolver = exports.RunUserApplicationEntityViewResult = exports.UpdateUserApplicationEntityInput = exports.CreateUserApplicationEntityInput = exports.UserApplicationEntity_ = exports.EntityPermissionResolver = void 0;
|
|
18
18
|
exports.UpdateQueueInput = exports.CreateQueueInput = exports.Queue_ = exports.QueueTypeResolver = exports.RunQueueTypeViewResult = exports.QueueType_ = exports.AIModelTypeResolver = exports.RunAIModelTypeViewResult = exports.UpdateAIModelTypeInput = exports.AIModelType_ = exports.EntityAIActionResolver = exports.RunEntityAIActionViewResult = exports.UpdateEntityAIActionInput = exports.EntityAIAction_ = exports.AIModelActionResolver = exports.RunAIModelActionViewResult = exports.UpdateAIModelActionInput = exports.AIModelAction_ = exports.AIActionResolver = exports.RunAIActionViewResult = exports.UpdateAIActionInput = exports.AIAction_ = exports.AIModelResolver = exports.RunAIModelViewResult = exports.UpdateAIModelInput = exports.AIModel_ = exports.EntityFieldValueResolver = exports.RunEntityFieldValueViewResult = exports.EntityFieldValue_ = exports.AuditLogTypeResolver = exports.RunAuditLogTypeViewResult = exports.AuditLogType_ = exports.AuthorizationRoleResolver = exports.RunAuthorizationRoleViewResult = exports.AuthorizationRole_ = exports.AuthorizationResolver = exports.RunAuthorizationViewResult = exports.Authorization_ = exports.AuditLogResolver = exports.RunAuditLogViewResult = exports.UpdateAuditLogInput = exports.CreateAuditLogInput = exports.AuditLog_ = exports.RowLevelSecurityFilterResolver = exports.RunRowLevelSecurityFilterViewResult = exports.RowLevelSecurityFilter_ = exports.UserRoleResolver = exports.RunUserRoleViewResult = exports.CreateUserRoleInput = exports.UserRole_ = void 0;
|
|
19
19
|
exports.WorkspaceItemResolver = exports.RunWorkspaceItemViewResult = exports.UpdateWorkspaceItemInput = exports.CreateWorkspaceItemInput = exports.WorkspaceItem_ = exports.WorkspaceResolver = exports.RunWorkspaceViewResult = exports.UpdateWorkspaceInput = exports.CreateWorkspaceInput = exports.Workspace_ = exports.TaggedItemResolver = exports.RunTaggedItemViewResult = exports.TaggedItem_ = exports.TagResolver = exports.RunTagViewResult = exports.Tag_ = exports.ResourceTypeResolver = exports.RunResourceTypeViewResult = exports.ResourceType_ = exports.ReportSnapshotResolver = exports.RunReportSnapshotViewResult = exports.UpdateReportSnapshotInput = exports.CreateReportSnapshotInput = exports.ReportSnapshot_ = exports.ReportResolver = exports.RunReportViewResult = exports.UpdateReportInput = exports.CreateReportInput = exports.Report_ = exports.OutputDeliveryTypeResolver = exports.RunOutputDeliveryTypeViewResult = exports.OutputDeliveryType_ = exports.OutputFormatTypeResolver = exports.RunOutputFormatTypeViewResult = exports.OutputFormatType_ = exports.OutputTriggerTypeResolver = exports.RunOutputTriggerTypeViewResult = exports.OutputTriggerType_ = exports.DashboardResolver = exports.RunDashboardViewResult = exports.UpdateDashboardInput = exports.CreateDashboardInput = exports.Dashboard_ = exports.QueueTaskResolver = exports.RunQueueTaskViewResult = exports.UpdateQueueTaskInput = exports.CreateQueueTaskInput = exports.QueueTask_ = exports.QueueResolver = exports.RunQueueViewResult = void 0;
|
|
20
|
-
exports.
|
|
21
|
-
exports.RunDataContextItemViewResult = exports.UpdateDataContextItemInput = exports.CreateDataContextItemInput = exports.DataContextItem_ = exports.EntityDocumentResolver = exports.RunEntityDocumentViewResult = exports.UpdateEntityDocumentInput = exports.CreateEntityDocumentInput = exports.EntityDocument_ = exports.EntityRecordDocumentResolver = exports.RunEntityRecordDocumentViewResult = exports.UpdateEntityRecordDocumentInput = exports.CreateEntityRecordDocumentInput = exports.EntityRecordDocument_ = exports.VectorDatabaseResolver = exports.RunVectorDatabaseViewResult = exports.UpdateVectorDatabaseInput = exports.CreateVectorDatabaseInput = exports.VectorDatabase_ = exports.EntityDocumentRunResolver = exports.RunEntityDocumentRunViewResult = exports.UpdateEntityDocumentRunInput = exports.CreateEntityDocumentRunInput = exports.EntityDocumentRun_ = exports.EntityDocumentTypeResolver = exports.RunEntityDocumentTypeViewResult = exports.UpdateEntityDocumentTypeInput = exports.CreateEntityDocumentTypeInput = exports.EntityDocumentType_ = exports.VectorIndexResolver = exports.RunVectorIndexViewResult = exports.UpdateVectorIndexInput = exports.CreateVectorIndexInput = exports.VectorIndex_ = exports.QueryPermissionResolver = exports.RunQueryPermissionViewResult = exports.UpdateQueryPermissionInput = exports.CreateQueryPermissionInput = exports.QueryPermission_ = exports.QueryResolver = exports.RunQueryViewResult = exports.UpdateQueryInput = exports.CreateQueryInput = exports.Query_ = exports.QueryCategoryResolver =
|
|
22
|
-
exports.
|
|
20
|
+
exports.RunQueryCategoryViewResult = exports.UpdateQueryCategoryInput = exports.CreateQueryCategoryInput = exports.QueryCategory_ = exports.QueryFieldResolver = exports.RunQueryFieldViewResult = exports.UpdateQueryFieldInput = exports.CreateQueryFieldInput = exports.QueryField_ = exports.RecordMergeDeletionLogResolver = exports.RunRecordMergeDeletionLogViewResult = exports.UpdateRecordMergeDeletionLogInput = exports.CreateRecordMergeDeletionLogInput = exports.RecordMergeDeletionLog_ = exports.RecordMergeLogResolver = exports.RunRecordMergeLogViewResult = exports.UpdateRecordMergeLogInput = exports.CreateRecordMergeLogInput = exports.RecordMergeLog_ = exports.CompanyIntegrationRecordMapResolver = exports.RunCompanyIntegrationRecordMapViewResult = exports.UpdateCompanyIntegrationRecordMapInput = exports.CreateCompanyIntegrationRecordMapInput = exports.CompanyIntegrationRecordMap_ = exports.SchemaInfoResolver = exports.RunSchemaInfoViewResult = exports.UpdateSchemaInfoInput = exports.CreateSchemaInfoInput = exports.SchemaInfo_ = exports.UserNotificationResolver = exports.RunUserNotificationViewResult = exports.UpdateUserNotificationInput = exports.CreateUserNotificationInput = exports.UserNotification_ = exports.ConversationResolver = exports.RunConversationViewResult = exports.UpdateConversationInput = exports.CreateConversationInput = exports.Conversation_ = exports.ConversationDetailResolver = exports.RunConversationDetailViewResult = exports.UpdateConversationDetailInput = exports.CreateConversationDetailInput = exports.ConversationDetail_ = exports.DatasetItemResolver = exports.RunDatasetItemViewResult = exports.DatasetItem_ = exports.DatasetResolver = exports.RunDatasetViewResult = exports.Dataset_ = void 0;
|
|
21
|
+
exports.RunDataContextViewResult = exports.UpdateDataContextInput = exports.CreateDataContextInput = exports.DataContext_ = exports.DataContextItemResolver = exports.RunDataContextItemViewResult = exports.UpdateDataContextItemInput = exports.CreateDataContextItemInput = exports.DataContextItem_ = exports.EntityDocumentResolver = exports.RunEntityDocumentViewResult = exports.UpdateEntityDocumentInput = exports.CreateEntityDocumentInput = exports.EntityDocument_ = exports.EntityRecordDocumentResolver = exports.RunEntityRecordDocumentViewResult = exports.UpdateEntityRecordDocumentInput = exports.CreateEntityRecordDocumentInput = exports.EntityRecordDocument_ = exports.VectorDatabaseResolver = exports.RunVectorDatabaseViewResult = exports.UpdateVectorDatabaseInput = exports.CreateVectorDatabaseInput = exports.VectorDatabase_ = exports.EntityDocumentRunResolver = exports.RunEntityDocumentRunViewResult = exports.UpdateEntityDocumentRunInput = exports.CreateEntityDocumentRunInput = exports.EntityDocumentRun_ = exports.EntityDocumentTypeResolver = exports.RunEntityDocumentTypeViewResult = exports.UpdateEntityDocumentTypeInput = exports.CreateEntityDocumentTypeInput = exports.EntityDocumentType_ = exports.VectorIndexResolver = exports.RunVectorIndexViewResult = exports.UpdateVectorIndexInput = exports.CreateVectorIndexInput = exports.VectorIndex_ = exports.QueryPermissionResolver = exports.RunQueryPermissionViewResult = exports.UpdateQueryPermissionInput = exports.CreateQueryPermissionInput = exports.QueryPermission_ = exports.QueryResolver = exports.RunQueryViewResult = exports.UpdateQueryInput = exports.CreateQueryInput = exports.Query_ = exports.QueryCategoryResolver = void 0;
|
|
22
|
+
exports.ReportCategoryResolver = exports.RunReportCategoryViewResult = exports.UpdateReportCategoryInput = exports.CreateReportCategoryInput = exports.ReportCategory_ = exports.DashboardCategoryResolver = exports.RunDashboardCategoryViewResult = exports.UpdateDashboardCategoryInput = exports.CreateDashboardCategoryInput = exports.DashboardCategory_ = exports.UserViewCategoryResolver = exports.RunUserViewCategoryViewResult = exports.UpdateUserViewCategoryInput = exports.CreateUserViewCategoryInput = exports.UserViewCategory_ = exports.DataContextResolver = void 0;
|
|
23
23
|
const server_1 = require("@memberjunction/server");
|
|
24
24
|
const core_1 = require("@memberjunction/core");
|
|
25
25
|
const class_validator_1 = require("class-validator");
|
|
@@ -4917,10 +4917,6 @@ __decorate([
|
|
|
4917
4917
|
(0, server_1.Field)(() => [Conversation_]),
|
|
4918
4918
|
__metadata("design:type", Array)
|
|
4919
4919
|
], User_.prototype, "ConversationsArray", void 0);
|
|
4920
|
-
__decorate([
|
|
4921
|
-
(0, server_1.Field)(() => [ResourceFolder_]),
|
|
4922
|
-
__metadata("design:type", Array)
|
|
4923
|
-
], User_.prototype, "ResourceFoldersArray", void 0);
|
|
4924
4920
|
__decorate([
|
|
4925
4921
|
(0, server_1.Field)(() => [RecordMergeLog_]),
|
|
4926
4922
|
__metadata("design:type", Array)
|
|
@@ -5189,12 +5185,6 @@ let UserResolverBase = class UserResolverBase extends server_1.ResolverBase {
|
|
|
5189
5185
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversations', await dataSource.query(sSQL));
|
|
5190
5186
|
return result;
|
|
5191
5187
|
}
|
|
5192
|
-
async ResourceFoldersArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5193
|
-
this.CheckUserReadPermissions('Resource Folders', userPayload);
|
|
5194
|
-
const sSQL = `SELECT * FROM [admin].[vwResourceFolders] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Resource Folders', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5195
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Folders', await dataSource.query(sSQL));
|
|
5196
|
-
return result;
|
|
5197
|
-
}
|
|
5198
5188
|
async RecordMergeLogsArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5199
5189
|
this.CheckUserReadPermissions('Record Merge Logs', userPayload);
|
|
5200
5190
|
const sSQL = `SELECT * FROM [admin].[vwRecordMergeLogs] WHERE [InitiatedByUserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Record Merge Logs', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
@@ -5439,15 +5429,6 @@ __decorate([
|
|
|
5439
5429
|
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5440
5430
|
__metadata("design:returntype", Promise)
|
|
5441
5431
|
], UserResolverBase.prototype, "ConversationsArray", null);
|
|
5442
|
-
__decorate([
|
|
5443
|
-
(0, server_1.FieldResolver)(() => [ResourceFolder_]),
|
|
5444
|
-
__param(0, (0, server_1.Root)()),
|
|
5445
|
-
__param(1, (0, server_1.Ctx)()),
|
|
5446
|
-
__param(2, (0, server_1.PubSub)()),
|
|
5447
|
-
__metadata("design:type", Function),
|
|
5448
|
-
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5449
|
-
__metadata("design:returntype", Promise)
|
|
5450
|
-
], UserResolverBase.prototype, "ResourceFoldersArray", null);
|
|
5451
5432
|
__decorate([
|
|
5452
5433
|
(0, server_1.FieldResolver)(() => [RecordMergeLog_]),
|
|
5453
5434
|
__param(0, (0, server_1.Root)()),
|
|
@@ -6181,6 +6162,10 @@ __decorate([
|
|
|
6181
6162
|
(0, server_1.Field)({ nullable: true }),
|
|
6182
6163
|
__metadata("design:type", String)
|
|
6183
6164
|
], UserView_.prototype, "Description", void 0);
|
|
6165
|
+
__decorate([
|
|
6166
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
6167
|
+
__metadata("design:type", Number)
|
|
6168
|
+
], UserView_.prototype, "CategoryID", void 0);
|
|
6184
6169
|
__decorate([
|
|
6185
6170
|
(0, server_1.Field)(() => Boolean),
|
|
6186
6171
|
__metadata("design:type", Boolean)
|
|
@@ -6303,6 +6288,10 @@ __decorate([
|
|
|
6303
6288
|
(0, server_1.Field)({ nullable: true }),
|
|
6304
6289
|
__metadata("design:type", String)
|
|
6305
6290
|
], CreateUserViewInput.prototype, "Description", void 0);
|
|
6291
|
+
__decorate([
|
|
6292
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
6293
|
+
__metadata("design:type", Number)
|
|
6294
|
+
], CreateUserViewInput.prototype, "CategoryID", void 0);
|
|
6306
6295
|
__decorate([
|
|
6307
6296
|
(0, server_1.Field)(() => Boolean),
|
|
6308
6297
|
__metadata("design:type", Boolean)
|
|
@@ -6377,6 +6366,10 @@ __decorate([
|
|
|
6377
6366
|
(0, server_1.Field)({ nullable: true }),
|
|
6378
6367
|
__metadata("design:type", String)
|
|
6379
6368
|
], UpdateUserViewInput.prototype, "Description", void 0);
|
|
6369
|
+
__decorate([
|
|
6370
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
6371
|
+
__metadata("design:type", Number)
|
|
6372
|
+
], UpdateUserViewInput.prototype, "CategoryID", void 0);
|
|
6380
6373
|
__decorate([
|
|
6381
6374
|
(0, server_1.Field)(() => Boolean),
|
|
6382
6375
|
__metadata("design:type", Boolean)
|
|
@@ -14256,6 +14249,10 @@ __decorate([
|
|
|
14256
14249
|
(0, server_1.Field)({ nullable: true }),
|
|
14257
14250
|
__metadata("design:type", String)
|
|
14258
14251
|
], Dashboard_.prototype, "Description", void 0);
|
|
14252
|
+
__decorate([
|
|
14253
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14254
|
+
__metadata("design:type", Number)
|
|
14255
|
+
], Dashboard_.prototype, "CategoryID", void 0);
|
|
14259
14256
|
__decorate([
|
|
14260
14257
|
(0, server_1.Field)(),
|
|
14261
14258
|
__metadata("design:type", String)
|
|
@@ -14264,6 +14261,11 @@ __decorate([
|
|
|
14264
14261
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14265
14262
|
__metadata("design:type", Number)
|
|
14266
14263
|
], Dashboard_.prototype, "UserID", void 0);
|
|
14264
|
+
__decorate([
|
|
14265
|
+
(0, server_1.Field)({ nullable: true }),
|
|
14266
|
+
(0, class_validator_1.MaxLength)(200),
|
|
14267
|
+
__metadata("design:type", String)
|
|
14268
|
+
], Dashboard_.prototype, "Category", void 0);
|
|
14267
14269
|
__decorate([
|
|
14268
14270
|
(0, server_1.Field)({ nullable: true }),
|
|
14269
14271
|
(0, class_validator_1.MaxLength)(200),
|
|
@@ -14283,6 +14285,10 @@ __decorate([
|
|
|
14283
14285
|
(0, server_1.Field)({ nullable: true }),
|
|
14284
14286
|
__metadata("design:type", String)
|
|
14285
14287
|
], CreateDashboardInput.prototype, "Description", void 0);
|
|
14288
|
+
__decorate([
|
|
14289
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14290
|
+
__metadata("design:type", Number)
|
|
14291
|
+
], CreateDashboardInput.prototype, "CategoryID", void 0);
|
|
14286
14292
|
__decorate([
|
|
14287
14293
|
(0, server_1.Field)(),
|
|
14288
14294
|
__metadata("design:type", String)
|
|
@@ -14309,6 +14315,10 @@ __decorate([
|
|
|
14309
14315
|
(0, server_1.Field)({ nullable: true }),
|
|
14310
14316
|
__metadata("design:type", String)
|
|
14311
14317
|
], UpdateDashboardInput.prototype, "Description", void 0);
|
|
14318
|
+
__decorate([
|
|
14319
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14320
|
+
__metadata("design:type", Number)
|
|
14321
|
+
], UpdateDashboardInput.prototype, "CategoryID", void 0);
|
|
14312
14322
|
__decorate([
|
|
14313
14323
|
(0, server_1.Field)(),
|
|
14314
14324
|
__metadata("design:type", String)
|
|
@@ -14916,6 +14926,10 @@ __decorate([
|
|
|
14916
14926
|
(0, server_1.Field)({ nullable: true }),
|
|
14917
14927
|
__metadata("design:type", String)
|
|
14918
14928
|
], Report_.prototype, "Description", void 0);
|
|
14929
|
+
__decorate([
|
|
14930
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14931
|
+
__metadata("design:type", Number)
|
|
14932
|
+
], Report_.prototype, "CategoryID", void 0);
|
|
14919
14933
|
__decorate([
|
|
14920
14934
|
(0, server_1.Field)(() => server_1.Int),
|
|
14921
14935
|
__metadata("design:type", Number)
|
|
@@ -14934,13 +14948,13 @@ __decorate([
|
|
|
14934
14948
|
__metadata("design:type", Number)
|
|
14935
14949
|
], Report_.prototype, "ConversationDetailID", void 0);
|
|
14936
14950
|
__decorate([
|
|
14937
|
-
(0, server_1.Field)({ nullable: true }),
|
|
14938
|
-
__metadata("design:type",
|
|
14939
|
-
], Report_.prototype, "
|
|
14951
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14952
|
+
__metadata("design:type", Number)
|
|
14953
|
+
], Report_.prototype, "DataContextID", void 0);
|
|
14940
14954
|
__decorate([
|
|
14941
14955
|
(0, server_1.Field)({ nullable: true }),
|
|
14942
14956
|
__metadata("design:type", String)
|
|
14943
|
-
], Report_.prototype, "
|
|
14957
|
+
], Report_.prototype, "Configuration", void 0);
|
|
14944
14958
|
__decorate([
|
|
14945
14959
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
14946
14960
|
__metadata("design:type", Number)
|
|
@@ -14981,6 +14995,11 @@ __decorate([
|
|
|
14981
14995
|
(0, class_validator_1.MaxLength)(8),
|
|
14982
14996
|
__metadata("design:type", Date)
|
|
14983
14997
|
], Report_.prototype, "UpdatedAt", void 0);
|
|
14998
|
+
__decorate([
|
|
14999
|
+
(0, server_1.Field)({ nullable: true }),
|
|
15000
|
+
(0, class_validator_1.MaxLength)(200),
|
|
15001
|
+
__metadata("design:type", String)
|
|
15002
|
+
], Report_.prototype, "Category", void 0);
|
|
14984
15003
|
__decorate([
|
|
14985
15004
|
(0, server_1.Field)(),
|
|
14986
15005
|
(0, class_validator_1.MaxLength)(200),
|
|
@@ -14991,6 +15010,11 @@ __decorate([
|
|
|
14991
15010
|
(0, class_validator_1.MaxLength)(200),
|
|
14992
15011
|
__metadata("design:type", String)
|
|
14993
15012
|
], Report_.prototype, "Conversation", void 0);
|
|
15013
|
+
__decorate([
|
|
15014
|
+
(0, server_1.Field)({ nullable: true }),
|
|
15015
|
+
(0, class_validator_1.MaxLength)(510),
|
|
15016
|
+
__metadata("design:type", String)
|
|
15017
|
+
], Report_.prototype, "DataContext", void 0);
|
|
14994
15018
|
__decorate([
|
|
14995
15019
|
(0, server_1.Field)({ nullable: true }),
|
|
14996
15020
|
(0, class_validator_1.MaxLength)(510),
|
|
@@ -15029,6 +15053,10 @@ __decorate([
|
|
|
15029
15053
|
(0, server_1.Field)({ nullable: true }),
|
|
15030
15054
|
__metadata("design:type", String)
|
|
15031
15055
|
], CreateReportInput.prototype, "Description", void 0);
|
|
15056
|
+
__decorate([
|
|
15057
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15058
|
+
__metadata("design:type", Number)
|
|
15059
|
+
], CreateReportInput.prototype, "CategoryID", void 0);
|
|
15032
15060
|
__decorate([
|
|
15033
15061
|
(0, server_1.Field)(() => server_1.Int),
|
|
15034
15062
|
__metadata("design:type", Number)
|
|
@@ -15046,13 +15074,13 @@ __decorate([
|
|
|
15046
15074
|
__metadata("design:type", Number)
|
|
15047
15075
|
], CreateReportInput.prototype, "ConversationDetailID", void 0);
|
|
15048
15076
|
__decorate([
|
|
15049
|
-
(0, server_1.Field)({ nullable: true }),
|
|
15050
|
-
__metadata("design:type",
|
|
15051
|
-
], CreateReportInput.prototype, "
|
|
15077
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15078
|
+
__metadata("design:type", Number)
|
|
15079
|
+
], CreateReportInput.prototype, "DataContextID", void 0);
|
|
15052
15080
|
__decorate([
|
|
15053
15081
|
(0, server_1.Field)({ nullable: true }),
|
|
15054
15082
|
__metadata("design:type", String)
|
|
15055
|
-
], CreateReportInput.prototype, "
|
|
15083
|
+
], CreateReportInput.prototype, "Configuration", void 0);
|
|
15056
15084
|
__decorate([
|
|
15057
15085
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15058
15086
|
__metadata("design:type", Number)
|
|
@@ -15099,6 +15127,10 @@ __decorate([
|
|
|
15099
15127
|
(0, server_1.Field)({ nullable: true }),
|
|
15100
15128
|
__metadata("design:type", String)
|
|
15101
15129
|
], UpdateReportInput.prototype, "Description", void 0);
|
|
15130
|
+
__decorate([
|
|
15131
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15132
|
+
__metadata("design:type", Number)
|
|
15133
|
+
], UpdateReportInput.prototype, "CategoryID", void 0);
|
|
15102
15134
|
__decorate([
|
|
15103
15135
|
(0, server_1.Field)(() => server_1.Int),
|
|
15104
15136
|
__metadata("design:type", Number)
|
|
@@ -15116,13 +15148,13 @@ __decorate([
|
|
|
15116
15148
|
__metadata("design:type", Number)
|
|
15117
15149
|
], UpdateReportInput.prototype, "ConversationDetailID", void 0);
|
|
15118
15150
|
__decorate([
|
|
15119
|
-
(0, server_1.Field)({ nullable: true }),
|
|
15120
|
-
__metadata("design:type",
|
|
15121
|
-
], UpdateReportInput.prototype, "
|
|
15151
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15152
|
+
__metadata("design:type", Number)
|
|
15153
|
+
], UpdateReportInput.prototype, "DataContextID", void 0);
|
|
15122
15154
|
__decorate([
|
|
15123
15155
|
(0, server_1.Field)({ nullable: true }),
|
|
15124
15156
|
__metadata("design:type", String)
|
|
15125
|
-
], UpdateReportInput.prototype, "
|
|
15157
|
+
], UpdateReportInput.prototype, "Configuration", void 0);
|
|
15126
15158
|
__decorate([
|
|
15127
15159
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
15128
15160
|
__metadata("design:type", Number)
|
|
@@ -15659,10 +15691,6 @@ __decorate([
|
|
|
15659
15691
|
(0, server_1.Field)(() => [WorkspaceItem_]),
|
|
15660
15692
|
__metadata("design:type", Array)
|
|
15661
15693
|
], ResourceType_.prototype, "WorkspaceItemsArray", void 0);
|
|
15662
|
-
__decorate([
|
|
15663
|
-
(0, server_1.Field)(() => [ResourceFolder_]),
|
|
15664
|
-
__metadata("design:type", Array)
|
|
15665
|
-
], ResourceType_.prototype, "ResourceFoldersArray", void 0);
|
|
15666
15694
|
exports.ResourceType_ = ResourceType_ = __decorate([
|
|
15667
15695
|
(0, server_1.ObjectType)()
|
|
15668
15696
|
], ResourceType_);
|
|
@@ -15724,12 +15752,6 @@ let ResourceTypeResolver = class ResourceTypeResolver extends server_1.ResolverB
|
|
|
15724
15752
|
const result = this.ArrayMapFieldNamesToCodeNames('Workspace Items', await dataSource.query(sSQL));
|
|
15725
15753
|
return result;
|
|
15726
15754
|
}
|
|
15727
|
-
async ResourceFoldersArray(resourcetype_, { dataSource, userPayload }, pubSub) {
|
|
15728
|
-
this.CheckUserReadPermissions('Resource Folders', userPayload);
|
|
15729
|
-
const sSQL = `SELECT * FROM [admin].[vwResourceFolders] WHERE [ResourceTypeName]=${resourcetype_.ID} ` + this.getRowLevelSecurityWhereClause('Resource Folders', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
15730
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Folders', await dataSource.query(sSQL));
|
|
15731
|
-
return result;
|
|
15732
|
-
}
|
|
15733
15755
|
};
|
|
15734
15756
|
exports.ResourceTypeResolver = ResourceTypeResolver;
|
|
15735
15757
|
__decorate([
|
|
@@ -15777,15 +15799,6 @@ __decorate([
|
|
|
15777
15799
|
__metadata("design:paramtypes", [ResourceType_, Object, server_1.PubSubEngine]),
|
|
15778
15800
|
__metadata("design:returntype", Promise)
|
|
15779
15801
|
], ResourceTypeResolver.prototype, "WorkspaceItemsArray", null);
|
|
15780
|
-
__decorate([
|
|
15781
|
-
(0, server_1.FieldResolver)(() => [ResourceFolder_]),
|
|
15782
|
-
__param(0, (0, server_1.Root)()),
|
|
15783
|
-
__param(1, (0, server_1.Ctx)()),
|
|
15784
|
-
__param(2, (0, server_1.PubSub)()),
|
|
15785
|
-
__metadata("design:type", Function),
|
|
15786
|
-
__metadata("design:paramtypes", [ResourceType_, Object, server_1.PubSubEngine]),
|
|
15787
|
-
__metadata("design:returntype", Promise)
|
|
15788
|
-
], ResourceTypeResolver.prototype, "ResourceFoldersArray", null);
|
|
15789
15802
|
exports.ResourceTypeResolver = ResourceTypeResolver = __decorate([
|
|
15790
15803
|
(0, server_1.Resolver)(ResourceType_)
|
|
15791
15804
|
], ResourceTypeResolver);
|
|
@@ -17908,178 +17921,145 @@ __decorate([
|
|
|
17908
17921
|
exports.UserNotificationResolver = UserNotificationResolver = __decorate([
|
|
17909
17922
|
(0, server_1.Resolver)(UserNotification_)
|
|
17910
17923
|
], UserNotificationResolver);
|
|
17911
|
-
let
|
|
17924
|
+
let SchemaInfo_ = class SchemaInfo_ {
|
|
17912
17925
|
};
|
|
17913
|
-
exports.
|
|
17926
|
+
exports.SchemaInfo_ = SchemaInfo_;
|
|
17914
17927
|
__decorate([
|
|
17915
17928
|
(0, server_1.Field)(() => server_1.Int),
|
|
17916
17929
|
__metadata("design:type", Number)
|
|
17917
|
-
],
|
|
17918
|
-
__decorate([
|
|
17919
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
17920
|
-
__metadata("design:type", Number)
|
|
17921
|
-
], ResourceFolder_.prototype, "ParentID", void 0);
|
|
17930
|
+
], SchemaInfo_.prototype, "ID", void 0);
|
|
17922
17931
|
__decorate([
|
|
17923
17932
|
(0, server_1.Field)(),
|
|
17924
17933
|
(0, class_validator_1.MaxLength)(100),
|
|
17925
17934
|
__metadata("design:type", String)
|
|
17926
|
-
],
|
|
17927
|
-
__decorate([
|
|
17928
|
-
(0, server_1.Field)(),
|
|
17929
|
-
(0, class_validator_1.MaxLength)(510),
|
|
17930
|
-
__metadata("design:type", String)
|
|
17931
|
-
], ResourceFolder_.prototype, "ResourceTypeName", void 0);
|
|
17935
|
+
], SchemaInfo_.prototype, "SchemaName", void 0);
|
|
17932
17936
|
__decorate([
|
|
17933
|
-
(0, server_1.Field)(
|
|
17934
|
-
__metadata("design:type",
|
|
17935
|
-
],
|
|
17937
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
17938
|
+
__metadata("design:type", Number)
|
|
17939
|
+
], SchemaInfo_.prototype, "EntityIDMin", void 0);
|
|
17936
17940
|
__decorate([
|
|
17937
17941
|
(0, server_1.Field)(() => server_1.Int),
|
|
17938
17942
|
__metadata("design:type", Number)
|
|
17939
|
-
],
|
|
17943
|
+
], SchemaInfo_.prototype, "EntityIDMax", void 0);
|
|
17944
|
+
__decorate([
|
|
17945
|
+
(0, server_1.Field)({ nullable: true }),
|
|
17946
|
+
__metadata("design:type", String)
|
|
17947
|
+
], SchemaInfo_.prototype, "Comments", void 0);
|
|
17940
17948
|
__decorate([
|
|
17941
17949
|
(0, server_1.Field)(),
|
|
17942
17950
|
(0, class_validator_1.MaxLength)(8),
|
|
17943
17951
|
__metadata("design:type", Date)
|
|
17944
|
-
],
|
|
17952
|
+
], SchemaInfo_.prototype, "CreatedAt", void 0);
|
|
17945
17953
|
__decorate([
|
|
17946
17954
|
(0, server_1.Field)(),
|
|
17947
17955
|
(0, class_validator_1.MaxLength)(8),
|
|
17948
17956
|
__metadata("design:type", Date)
|
|
17949
|
-
],
|
|
17950
|
-
__decorate([
|
|
17951
|
-
(0, server_1.Field)({ nullable: true }),
|
|
17952
|
-
(0, class_validator_1.MaxLength)(100),
|
|
17953
|
-
__metadata("design:type", String)
|
|
17954
|
-
], ResourceFolder_.prototype, "Parent", void 0);
|
|
17955
|
-
__decorate([
|
|
17956
|
-
(0, server_1.Field)(),
|
|
17957
|
-
(0, class_validator_1.MaxLength)(200),
|
|
17958
|
-
__metadata("design:type", String)
|
|
17959
|
-
], ResourceFolder_.prototype, "User", void 0);
|
|
17960
|
-
__decorate([
|
|
17961
|
-
(0, server_1.Field)(() => [ResourceFolder_]),
|
|
17962
|
-
__metadata("design:type", Array)
|
|
17963
|
-
], ResourceFolder_.prototype, "ResourceFoldersArray", void 0);
|
|
17964
|
-
exports.ResourceFolder_ = ResourceFolder_ = __decorate([
|
|
17957
|
+
], SchemaInfo_.prototype, "UpdatedAt", void 0);
|
|
17958
|
+
exports.SchemaInfo_ = SchemaInfo_ = __decorate([
|
|
17965
17959
|
(0, server_1.ObjectType)()
|
|
17966
|
-
],
|
|
17967
|
-
let
|
|
17960
|
+
], SchemaInfo_);
|
|
17961
|
+
let CreateSchemaInfoInput = class CreateSchemaInfoInput {
|
|
17968
17962
|
};
|
|
17969
|
-
exports.
|
|
17970
|
-
__decorate([
|
|
17971
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
17972
|
-
__metadata("design:type", Number)
|
|
17973
|
-
], CreateResourceFolderInput.prototype, "ParentID", void 0);
|
|
17974
|
-
__decorate([
|
|
17975
|
-
(0, server_1.Field)(),
|
|
17976
|
-
__metadata("design:type", String)
|
|
17977
|
-
], CreateResourceFolderInput.prototype, "Name", void 0);
|
|
17963
|
+
exports.CreateSchemaInfoInput = CreateSchemaInfoInput;
|
|
17978
17964
|
__decorate([
|
|
17979
17965
|
(0, server_1.Field)(),
|
|
17980
17966
|
__metadata("design:type", String)
|
|
17981
|
-
],
|
|
17967
|
+
], CreateSchemaInfoInput.prototype, "SchemaName", void 0);
|
|
17982
17968
|
__decorate([
|
|
17983
|
-
(0, server_1.Field)(
|
|
17984
|
-
__metadata("design:type",
|
|
17985
|
-
],
|
|
17969
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
17970
|
+
__metadata("design:type", Number)
|
|
17971
|
+
], CreateSchemaInfoInput.prototype, "EntityIDMin", void 0);
|
|
17986
17972
|
__decorate([
|
|
17987
17973
|
(0, server_1.Field)(() => server_1.Int),
|
|
17988
17974
|
__metadata("design:type", Number)
|
|
17989
|
-
],
|
|
17990
|
-
|
|
17975
|
+
], CreateSchemaInfoInput.prototype, "EntityIDMax", void 0);
|
|
17976
|
+
__decorate([
|
|
17977
|
+
(0, server_1.Field)({ nullable: true }),
|
|
17978
|
+
__metadata("design:type", String)
|
|
17979
|
+
], CreateSchemaInfoInput.prototype, "Comments", void 0);
|
|
17980
|
+
exports.CreateSchemaInfoInput = CreateSchemaInfoInput = __decorate([
|
|
17991
17981
|
(0, server_1.InputType)()
|
|
17992
|
-
],
|
|
17993
|
-
let
|
|
17982
|
+
], CreateSchemaInfoInput);
|
|
17983
|
+
let UpdateSchemaInfoInput = class UpdateSchemaInfoInput {
|
|
17994
17984
|
};
|
|
17995
|
-
exports.
|
|
17985
|
+
exports.UpdateSchemaInfoInput = UpdateSchemaInfoInput;
|
|
17996
17986
|
__decorate([
|
|
17997
17987
|
(0, server_1.Field)(() => server_1.Int),
|
|
17998
17988
|
__metadata("design:type", Number)
|
|
17999
|
-
],
|
|
18000
|
-
__decorate([
|
|
18001
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18002
|
-
__metadata("design:type", Number)
|
|
18003
|
-
], UpdateResourceFolderInput.prototype, "ParentID", void 0);
|
|
18004
|
-
__decorate([
|
|
18005
|
-
(0, server_1.Field)(),
|
|
18006
|
-
__metadata("design:type", String)
|
|
18007
|
-
], UpdateResourceFolderInput.prototype, "Name", void 0);
|
|
17989
|
+
], UpdateSchemaInfoInput.prototype, "ID", void 0);
|
|
18008
17990
|
__decorate([
|
|
18009
17991
|
(0, server_1.Field)(),
|
|
18010
17992
|
__metadata("design:type", String)
|
|
18011
|
-
],
|
|
17993
|
+
], UpdateSchemaInfoInput.prototype, "SchemaName", void 0);
|
|
18012
17994
|
__decorate([
|
|
18013
|
-
(0, server_1.Field)(
|
|
18014
|
-
__metadata("design:type",
|
|
18015
|
-
],
|
|
17995
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
17996
|
+
__metadata("design:type", Number)
|
|
17997
|
+
], UpdateSchemaInfoInput.prototype, "EntityIDMin", void 0);
|
|
18016
17998
|
__decorate([
|
|
18017
17999
|
(0, server_1.Field)(() => server_1.Int),
|
|
18018
18000
|
__metadata("design:type", Number)
|
|
18019
|
-
],
|
|
18020
|
-
|
|
18001
|
+
], UpdateSchemaInfoInput.prototype, "EntityIDMax", void 0);
|
|
18002
|
+
__decorate([
|
|
18003
|
+
(0, server_1.Field)({ nullable: true }),
|
|
18004
|
+
__metadata("design:type", String)
|
|
18005
|
+
], UpdateSchemaInfoInput.prototype, "Comments", void 0);
|
|
18006
|
+
exports.UpdateSchemaInfoInput = UpdateSchemaInfoInput = __decorate([
|
|
18021
18007
|
(0, server_1.InputType)()
|
|
18022
|
-
],
|
|
18023
|
-
let
|
|
18008
|
+
], UpdateSchemaInfoInput);
|
|
18009
|
+
let RunSchemaInfoViewResult = class RunSchemaInfoViewResult {
|
|
18024
18010
|
};
|
|
18025
|
-
exports.
|
|
18011
|
+
exports.RunSchemaInfoViewResult = RunSchemaInfoViewResult;
|
|
18026
18012
|
__decorate([
|
|
18027
|
-
(0, server_1.Field)(() => [
|
|
18013
|
+
(0, server_1.Field)(() => [SchemaInfo_]),
|
|
18028
18014
|
__metadata("design:type", Array)
|
|
18029
|
-
],
|
|
18015
|
+
], RunSchemaInfoViewResult.prototype, "Results", void 0);
|
|
18030
18016
|
__decorate([
|
|
18031
18017
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18032
18018
|
__metadata("design:type", Number)
|
|
18033
|
-
],
|
|
18019
|
+
], RunSchemaInfoViewResult.prototype, "UserViewRunID", void 0);
|
|
18034
18020
|
__decorate([
|
|
18035
18021
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18036
18022
|
__metadata("design:type", Number)
|
|
18037
|
-
],
|
|
18023
|
+
], RunSchemaInfoViewResult.prototype, "RowCount", void 0);
|
|
18038
18024
|
__decorate([
|
|
18039
18025
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18040
18026
|
__metadata("design:type", Number)
|
|
18041
|
-
],
|
|
18027
|
+
], RunSchemaInfoViewResult.prototype, "TotalRowCount", void 0);
|
|
18042
18028
|
__decorate([
|
|
18043
18029
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18044
18030
|
__metadata("design:type", Number)
|
|
18045
|
-
],
|
|
18031
|
+
], RunSchemaInfoViewResult.prototype, "ExecutionTime", void 0);
|
|
18046
18032
|
__decorate([
|
|
18047
18033
|
(0, server_1.Field)({ nullable: true }),
|
|
18048
18034
|
__metadata("design:type", String)
|
|
18049
|
-
],
|
|
18035
|
+
], RunSchemaInfoViewResult.prototype, "ErrorMessage", void 0);
|
|
18050
18036
|
__decorate([
|
|
18051
18037
|
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
18052
18038
|
__metadata("design:type", Boolean)
|
|
18053
|
-
],
|
|
18054
|
-
exports.
|
|
18039
|
+
], RunSchemaInfoViewResult.prototype, "Success", void 0);
|
|
18040
|
+
exports.RunSchemaInfoViewResult = RunSchemaInfoViewResult = __decorate([
|
|
18055
18041
|
(0, server_1.ObjectType)()
|
|
18056
|
-
],
|
|
18057
|
-
let
|
|
18058
|
-
async
|
|
18042
|
+
], RunSchemaInfoViewResult);
|
|
18043
|
+
let SchemaInfoResolver = class SchemaInfoResolver extends server_1.ResolverBase {
|
|
18044
|
+
async RunSchemaInfoViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
18059
18045
|
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
18060
18046
|
}
|
|
18061
|
-
async
|
|
18047
|
+
async RunSchemaInfoViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
18062
18048
|
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
18063
18049
|
}
|
|
18064
|
-
async
|
|
18065
|
-
input.EntityName = '
|
|
18050
|
+
async RunSchemaInfoDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
18051
|
+
input.EntityName = 'Schema Info';
|
|
18066
18052
|
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
18067
18053
|
}
|
|
18068
|
-
async
|
|
18069
|
-
this.CheckUserReadPermissions('
|
|
18070
|
-
const sSQL = `SELECT * FROM [admin].[
|
|
18071
|
-
const result = this.MapFieldNamesToCodeNames('
|
|
18072
|
-
return result;
|
|
18073
|
-
}
|
|
18074
|
-
async ResourceFoldersArray(resourcefolder_, { dataSource, userPayload }, pubSub) {
|
|
18075
|
-
this.CheckUserReadPermissions('Resource Folders', userPayload);
|
|
18076
|
-
const sSQL = `SELECT * FROM [admin].[vwResourceFolders] WHERE [ParentID]=${resourcefolder_.ID} ` + this.getRowLevelSecurityWhereClause('Resource Folders', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
18077
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Folders', await dataSource.query(sSQL));
|
|
18054
|
+
async SchemaInfo(ID, { dataSource, userPayload }, pubSub) {
|
|
18055
|
+
this.CheckUserReadPermissions('Schema Info', userPayload);
|
|
18056
|
+
const sSQL = `SELECT * FROM [admin].[vwSchemaInfos] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Schema Info', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
18057
|
+
const result = this.MapFieldNamesToCodeNames('Schema Info', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
18078
18058
|
return result;
|
|
18079
18059
|
}
|
|
18080
|
-
async
|
|
18060
|
+
async CreateSchemaInfo(input, { dataSource, userPayload }, pubSub) {
|
|
18081
18061
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
18082
|
-
const entityObject = await new core_1.Metadata().GetEntityObject('
|
|
18062
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Schema Info', this.GetUserFromPayload(userPayload));
|
|
18083
18063
|
await entityObject.NewRecord();
|
|
18084
18064
|
entityObject.SetMany(input);
|
|
18085
18065
|
if (await entityObject.Save()) {
|
|
@@ -18097,9 +18077,9 @@ let ResourceFolderResolver = class ResourceFolderResolver extends server_1.Resol
|
|
|
18097
18077
|
}
|
|
18098
18078
|
async AfterCreate(dataSource, input) {
|
|
18099
18079
|
}
|
|
18100
|
-
async
|
|
18080
|
+
async UpdateSchemaInfo(input, { dataSource, userPayload }, pubSub) {
|
|
18101
18081
|
if (await this.BeforeUpdate(dataSource, input)) {
|
|
18102
|
-
const entityObject = await new core_1.Metadata().GetEntityObject('
|
|
18082
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Schema Info', this.GetUserFromPayload(userPayload));
|
|
18103
18083
|
entityObject.LoadFromData(input);
|
|
18104
18084
|
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
18105
18085
|
await this.AfterUpdate(dataSource, input);
|
|
@@ -18119,364 +18099,119 @@ let ResourceFolderResolver = class ResourceFolderResolver extends server_1.Resol
|
|
|
18119
18099
|
const i = input, d = dataSource;
|
|
18120
18100
|
}
|
|
18121
18101
|
};
|
|
18122
|
-
exports.
|
|
18102
|
+
exports.SchemaInfoResolver = SchemaInfoResolver;
|
|
18123
18103
|
__decorate([
|
|
18124
|
-
(0, server_1.Query)(() =>
|
|
18104
|
+
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18125
18105
|
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
18126
18106
|
__param(1, (0, server_1.Ctx)()),
|
|
18127
18107
|
__param(2, (0, server_1.PubSub)()),
|
|
18128
18108
|
__metadata("design:type", Function),
|
|
18129
18109
|
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
18130
18110
|
__metadata("design:returntype", Promise)
|
|
18131
|
-
],
|
|
18111
|
+
], SchemaInfoResolver.prototype, "RunSchemaInfoViewByID", null);
|
|
18132
18112
|
__decorate([
|
|
18133
|
-
(0, server_1.Query)(() =>
|
|
18113
|
+
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18134
18114
|
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
18135
18115
|
__param(1, (0, server_1.Ctx)()),
|
|
18136
18116
|
__param(2, (0, server_1.PubSub)()),
|
|
18137
18117
|
__metadata("design:type", Function),
|
|
18138
18118
|
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
18139
18119
|
__metadata("design:returntype", Promise)
|
|
18140
|
-
],
|
|
18120
|
+
], SchemaInfoResolver.prototype, "RunSchemaInfoViewByName", null);
|
|
18141
18121
|
__decorate([
|
|
18142
|
-
(0, server_1.Query)(() =>
|
|
18122
|
+
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18143
18123
|
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
18144
18124
|
__param(1, (0, server_1.Ctx)()),
|
|
18145
18125
|
__param(2, (0, server_1.PubSub)()),
|
|
18146
18126
|
__metadata("design:type", Function),
|
|
18147
18127
|
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
18148
18128
|
__metadata("design:returntype", Promise)
|
|
18149
|
-
],
|
|
18129
|
+
], SchemaInfoResolver.prototype, "RunSchemaInfoDynamicView", null);
|
|
18150
18130
|
__decorate([
|
|
18151
|
-
(0, server_1.Query)(() =>
|
|
18131
|
+
(0, server_1.Query)(() => SchemaInfo_, { nullable: true }),
|
|
18152
18132
|
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
18153
18133
|
__param(1, (0, server_1.Ctx)()),
|
|
18154
18134
|
__param(2, (0, server_1.PubSub)()),
|
|
18155
18135
|
__metadata("design:type", Function),
|
|
18156
18136
|
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
18157
18137
|
__metadata("design:returntype", Promise)
|
|
18158
|
-
],
|
|
18159
|
-
__decorate([
|
|
18160
|
-
(0, server_1.FieldResolver)(() => [ResourceFolder_]),
|
|
18161
|
-
__param(0, (0, server_1.Root)()),
|
|
18162
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18163
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18164
|
-
__metadata("design:type", Function),
|
|
18165
|
-
__metadata("design:paramtypes", [ResourceFolder_, Object, server_1.PubSubEngine]),
|
|
18166
|
-
__metadata("design:returntype", Promise)
|
|
18167
|
-
], ResourceFolderResolver.prototype, "ResourceFoldersArray", null);
|
|
18138
|
+
], SchemaInfoResolver.prototype, "SchemaInfo", null);
|
|
18168
18139
|
__decorate([
|
|
18169
|
-
(0, server_1.Mutation)(() =>
|
|
18170
|
-
__param(0, (0, server_1.Arg)('input', () =>
|
|
18140
|
+
(0, server_1.Mutation)(() => SchemaInfo_),
|
|
18141
|
+
__param(0, (0, server_1.Arg)('input', () => CreateSchemaInfoInput)),
|
|
18171
18142
|
__param(1, (0, server_1.Ctx)()),
|
|
18172
18143
|
__param(2, (0, server_1.PubSub)()),
|
|
18173
18144
|
__metadata("design:type", Function),
|
|
18174
|
-
__metadata("design:paramtypes", [
|
|
18145
|
+
__metadata("design:paramtypes", [CreateSchemaInfoInput, Object, server_1.PubSubEngine]),
|
|
18175
18146
|
__metadata("design:returntype", Promise)
|
|
18176
|
-
],
|
|
18147
|
+
], SchemaInfoResolver.prototype, "CreateSchemaInfo", null);
|
|
18177
18148
|
__decorate([
|
|
18178
|
-
(0, server_1.Mutation)(() =>
|
|
18179
|
-
__param(0, (0, server_1.Arg)('input', () =>
|
|
18149
|
+
(0, server_1.Mutation)(() => SchemaInfo_),
|
|
18150
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateSchemaInfoInput)),
|
|
18180
18151
|
__param(1, (0, server_1.Ctx)()),
|
|
18181
18152
|
__param(2, (0, server_1.PubSub)()),
|
|
18182
18153
|
__metadata("design:type", Function),
|
|
18183
|
-
__metadata("design:paramtypes", [
|
|
18154
|
+
__metadata("design:paramtypes", [UpdateSchemaInfoInput, Object, server_1.PubSubEngine]),
|
|
18184
18155
|
__metadata("design:returntype", Promise)
|
|
18185
|
-
],
|
|
18186
|
-
exports.
|
|
18187
|
-
(0, server_1.Resolver)(
|
|
18188
|
-
],
|
|
18189
|
-
let
|
|
18156
|
+
], SchemaInfoResolver.prototype, "UpdateSchemaInfo", null);
|
|
18157
|
+
exports.SchemaInfoResolver = SchemaInfoResolver = __decorate([
|
|
18158
|
+
(0, server_1.Resolver)(SchemaInfo_)
|
|
18159
|
+
], SchemaInfoResolver);
|
|
18160
|
+
let CompanyIntegrationRecordMap_ = class CompanyIntegrationRecordMap_ {
|
|
18190
18161
|
};
|
|
18191
|
-
exports.
|
|
18162
|
+
exports.CompanyIntegrationRecordMap_ = CompanyIntegrationRecordMap_;
|
|
18192
18163
|
__decorate([
|
|
18193
18164
|
(0, server_1.Field)(() => server_1.Int),
|
|
18194
18165
|
__metadata("design:type", Number)
|
|
18195
|
-
],
|
|
18196
|
-
__decorate([
|
|
18197
|
-
(0, server_1.Field)(),
|
|
18198
|
-
(0, class_validator_1.MaxLength)(100),
|
|
18199
|
-
__metadata("design:type", String)
|
|
18200
|
-
], SchemaInfo_.prototype, "SchemaName", void 0);
|
|
18166
|
+
], CompanyIntegrationRecordMap_.prototype, "ID", void 0);
|
|
18201
18167
|
__decorate([
|
|
18202
18168
|
(0, server_1.Field)(() => server_1.Int),
|
|
18203
18169
|
__metadata("design:type", Number)
|
|
18204
|
-
],
|
|
18170
|
+
], CompanyIntegrationRecordMap_.prototype, "CompanyIntegrationID", void 0);
|
|
18171
|
+
__decorate([
|
|
18172
|
+
(0, server_1.Field)(),
|
|
18173
|
+
(0, class_validator_1.MaxLength)(200),
|
|
18174
|
+
__metadata("design:type", String)
|
|
18175
|
+
], CompanyIntegrationRecordMap_.prototype, "ExternalSystemRecordID", void 0);
|
|
18205
18176
|
__decorate([
|
|
18206
18177
|
(0, server_1.Field)(() => server_1.Int),
|
|
18207
18178
|
__metadata("design:type", Number)
|
|
18208
|
-
],
|
|
18179
|
+
], CompanyIntegrationRecordMap_.prototype, "EntityID", void 0);
|
|
18209
18180
|
__decorate([
|
|
18210
|
-
(0, server_1.Field)(
|
|
18181
|
+
(0, server_1.Field)(),
|
|
18182
|
+
(0, class_validator_1.MaxLength)(510),
|
|
18211
18183
|
__metadata("design:type", String)
|
|
18212
|
-
],
|
|
18184
|
+
], CompanyIntegrationRecordMap_.prototype, "EntityRecordID", void 0);
|
|
18213
18185
|
__decorate([
|
|
18214
18186
|
(0, server_1.Field)(),
|
|
18215
18187
|
(0, class_validator_1.MaxLength)(8),
|
|
18216
18188
|
__metadata("design:type", Date)
|
|
18217
|
-
],
|
|
18189
|
+
], CompanyIntegrationRecordMap_.prototype, "CreatedAt", void 0);
|
|
18218
18190
|
__decorate([
|
|
18219
18191
|
(0, server_1.Field)(),
|
|
18220
18192
|
(0, class_validator_1.MaxLength)(8),
|
|
18221
18193
|
__metadata("design:type", Date)
|
|
18222
|
-
],
|
|
18223
|
-
exports.
|
|
18194
|
+
], CompanyIntegrationRecordMap_.prototype, "UpdatedAt", void 0);
|
|
18195
|
+
exports.CompanyIntegrationRecordMap_ = CompanyIntegrationRecordMap_ = __decorate([
|
|
18224
18196
|
(0, server_1.ObjectType)()
|
|
18225
|
-
],
|
|
18226
|
-
let
|
|
18197
|
+
], CompanyIntegrationRecordMap_);
|
|
18198
|
+
let CreateCompanyIntegrationRecordMapInput = class CreateCompanyIntegrationRecordMapInput {
|
|
18227
18199
|
};
|
|
18228
|
-
exports.
|
|
18229
|
-
__decorate([
|
|
18230
|
-
(0, server_1.Field)(),
|
|
18231
|
-
__metadata("design:type", String)
|
|
18232
|
-
], CreateSchemaInfoInput.prototype, "SchemaName", void 0);
|
|
18200
|
+
exports.CreateCompanyIntegrationRecordMapInput = CreateCompanyIntegrationRecordMapInput;
|
|
18233
18201
|
__decorate([
|
|
18234
18202
|
(0, server_1.Field)(() => server_1.Int),
|
|
18235
18203
|
__metadata("design:type", Number)
|
|
18236
|
-
],
|
|
18204
|
+
], CreateCompanyIntegrationRecordMapInput.prototype, "CompanyIntegrationID", void 0);
|
|
18205
|
+
__decorate([
|
|
18206
|
+
(0, server_1.Field)(),
|
|
18207
|
+
__metadata("design:type", String)
|
|
18208
|
+
], CreateCompanyIntegrationRecordMapInput.prototype, "ExternalSystemRecordID", void 0);
|
|
18237
18209
|
__decorate([
|
|
18238
18210
|
(0, server_1.Field)(() => server_1.Int),
|
|
18239
18211
|
__metadata("design:type", Number)
|
|
18240
|
-
],
|
|
18212
|
+
], CreateCompanyIntegrationRecordMapInput.prototype, "EntityID", void 0);
|
|
18241
18213
|
__decorate([
|
|
18242
|
-
(0, server_1.Field)(
|
|
18243
|
-
__metadata("design:type", String)
|
|
18244
|
-
], CreateSchemaInfoInput.prototype, "Comments", void 0);
|
|
18245
|
-
exports.CreateSchemaInfoInput = CreateSchemaInfoInput = __decorate([
|
|
18246
|
-
(0, server_1.InputType)()
|
|
18247
|
-
], CreateSchemaInfoInput);
|
|
18248
|
-
let UpdateSchemaInfoInput = class UpdateSchemaInfoInput {
|
|
18249
|
-
};
|
|
18250
|
-
exports.UpdateSchemaInfoInput = UpdateSchemaInfoInput;
|
|
18251
|
-
__decorate([
|
|
18252
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18253
|
-
__metadata("design:type", Number)
|
|
18254
|
-
], UpdateSchemaInfoInput.prototype, "ID", void 0);
|
|
18255
|
-
__decorate([
|
|
18256
|
-
(0, server_1.Field)(),
|
|
18257
|
-
__metadata("design:type", String)
|
|
18258
|
-
], UpdateSchemaInfoInput.prototype, "SchemaName", void 0);
|
|
18259
|
-
__decorate([
|
|
18260
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18261
|
-
__metadata("design:type", Number)
|
|
18262
|
-
], UpdateSchemaInfoInput.prototype, "EntityIDMin", void 0);
|
|
18263
|
-
__decorate([
|
|
18264
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18265
|
-
__metadata("design:type", Number)
|
|
18266
|
-
], UpdateSchemaInfoInput.prototype, "EntityIDMax", void 0);
|
|
18267
|
-
__decorate([
|
|
18268
|
-
(0, server_1.Field)({ nullable: true }),
|
|
18269
|
-
__metadata("design:type", String)
|
|
18270
|
-
], UpdateSchemaInfoInput.prototype, "Comments", void 0);
|
|
18271
|
-
exports.UpdateSchemaInfoInput = UpdateSchemaInfoInput = __decorate([
|
|
18272
|
-
(0, server_1.InputType)()
|
|
18273
|
-
], UpdateSchemaInfoInput);
|
|
18274
|
-
let RunSchemaInfoViewResult = class RunSchemaInfoViewResult {
|
|
18275
|
-
};
|
|
18276
|
-
exports.RunSchemaInfoViewResult = RunSchemaInfoViewResult;
|
|
18277
|
-
__decorate([
|
|
18278
|
-
(0, server_1.Field)(() => [SchemaInfo_]),
|
|
18279
|
-
__metadata("design:type", Array)
|
|
18280
|
-
], RunSchemaInfoViewResult.prototype, "Results", void 0);
|
|
18281
|
-
__decorate([
|
|
18282
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18283
|
-
__metadata("design:type", Number)
|
|
18284
|
-
], RunSchemaInfoViewResult.prototype, "UserViewRunID", void 0);
|
|
18285
|
-
__decorate([
|
|
18286
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18287
|
-
__metadata("design:type", Number)
|
|
18288
|
-
], RunSchemaInfoViewResult.prototype, "RowCount", void 0);
|
|
18289
|
-
__decorate([
|
|
18290
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18291
|
-
__metadata("design:type", Number)
|
|
18292
|
-
], RunSchemaInfoViewResult.prototype, "TotalRowCount", void 0);
|
|
18293
|
-
__decorate([
|
|
18294
|
-
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
18295
|
-
__metadata("design:type", Number)
|
|
18296
|
-
], RunSchemaInfoViewResult.prototype, "ExecutionTime", void 0);
|
|
18297
|
-
__decorate([
|
|
18298
|
-
(0, server_1.Field)({ nullable: true }),
|
|
18299
|
-
__metadata("design:type", String)
|
|
18300
|
-
], RunSchemaInfoViewResult.prototype, "ErrorMessage", void 0);
|
|
18301
|
-
__decorate([
|
|
18302
|
-
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
18303
|
-
__metadata("design:type", Boolean)
|
|
18304
|
-
], RunSchemaInfoViewResult.prototype, "Success", void 0);
|
|
18305
|
-
exports.RunSchemaInfoViewResult = RunSchemaInfoViewResult = __decorate([
|
|
18306
|
-
(0, server_1.ObjectType)()
|
|
18307
|
-
], RunSchemaInfoViewResult);
|
|
18308
|
-
let SchemaInfoResolver = class SchemaInfoResolver extends server_1.ResolverBase {
|
|
18309
|
-
async RunSchemaInfoViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
18310
|
-
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
18311
|
-
}
|
|
18312
|
-
async RunSchemaInfoViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
18313
|
-
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
18314
|
-
}
|
|
18315
|
-
async RunSchemaInfoDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
18316
|
-
input.EntityName = 'Schema Info';
|
|
18317
|
-
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
18318
|
-
}
|
|
18319
|
-
async SchemaInfo(ID, { dataSource, userPayload }, pubSub) {
|
|
18320
|
-
this.CheckUserReadPermissions('Schema Info', userPayload);
|
|
18321
|
-
const sSQL = `SELECT * FROM [admin].[vwSchemaInfos] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Schema Info', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
18322
|
-
const result = this.MapFieldNamesToCodeNames('Schema Info', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
18323
|
-
return result;
|
|
18324
|
-
}
|
|
18325
|
-
async CreateSchemaInfo(input, { dataSource, userPayload }, pubSub) {
|
|
18326
|
-
if (await this.BeforeCreate(dataSource, input)) {
|
|
18327
|
-
const entityObject = await new core_1.Metadata().GetEntityObject('Schema Info', this.GetUserFromPayload(userPayload));
|
|
18328
|
-
await entityObject.NewRecord();
|
|
18329
|
-
entityObject.SetMany(input);
|
|
18330
|
-
if (await entityObject.Save()) {
|
|
18331
|
-
await this.AfterCreate(dataSource, input);
|
|
18332
|
-
return entityObject.GetAll();
|
|
18333
|
-
}
|
|
18334
|
-
else
|
|
18335
|
-
return null;
|
|
18336
|
-
}
|
|
18337
|
-
else
|
|
18338
|
-
return null;
|
|
18339
|
-
}
|
|
18340
|
-
async BeforeCreate(dataSource, input) {
|
|
18341
|
-
return true;
|
|
18342
|
-
}
|
|
18343
|
-
async AfterCreate(dataSource, input) {
|
|
18344
|
-
}
|
|
18345
|
-
async UpdateSchemaInfo(input, { dataSource, userPayload }, pubSub) {
|
|
18346
|
-
if (await this.BeforeUpdate(dataSource, input)) {
|
|
18347
|
-
const entityObject = await new core_1.Metadata().GetEntityObject('Schema Info', this.GetUserFromPayload(userPayload));
|
|
18348
|
-
entityObject.LoadFromData(input);
|
|
18349
|
-
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
18350
|
-
await this.AfterUpdate(dataSource, input);
|
|
18351
|
-
return entityObject.GetAll();
|
|
18352
|
-
}
|
|
18353
|
-
else
|
|
18354
|
-
return null;
|
|
18355
|
-
}
|
|
18356
|
-
else
|
|
18357
|
-
return null;
|
|
18358
|
-
}
|
|
18359
|
-
async BeforeUpdate(dataSource, input) {
|
|
18360
|
-
const i = input, d = dataSource;
|
|
18361
|
-
return true;
|
|
18362
|
-
}
|
|
18363
|
-
async AfterUpdate(dataSource, input) {
|
|
18364
|
-
const i = input, d = dataSource;
|
|
18365
|
-
}
|
|
18366
|
-
};
|
|
18367
|
-
exports.SchemaInfoResolver = SchemaInfoResolver;
|
|
18368
|
-
__decorate([
|
|
18369
|
-
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18370
|
-
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
18371
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18372
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18373
|
-
__metadata("design:type", Function),
|
|
18374
|
-
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
18375
|
-
__metadata("design:returntype", Promise)
|
|
18376
|
-
], SchemaInfoResolver.prototype, "RunSchemaInfoViewByID", null);
|
|
18377
|
-
__decorate([
|
|
18378
|
-
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18379
|
-
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
18380
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18381
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18382
|
-
__metadata("design:type", Function),
|
|
18383
|
-
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
18384
|
-
__metadata("design:returntype", Promise)
|
|
18385
|
-
], SchemaInfoResolver.prototype, "RunSchemaInfoViewByName", null);
|
|
18386
|
-
__decorate([
|
|
18387
|
-
(0, server_1.Query)(() => RunSchemaInfoViewResult),
|
|
18388
|
-
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
18389
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18390
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18391
|
-
__metadata("design:type", Function),
|
|
18392
|
-
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
18393
|
-
__metadata("design:returntype", Promise)
|
|
18394
|
-
], SchemaInfoResolver.prototype, "RunSchemaInfoDynamicView", null);
|
|
18395
|
-
__decorate([
|
|
18396
|
-
(0, server_1.Query)(() => SchemaInfo_, { nullable: true }),
|
|
18397
|
-
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
18398
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18399
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18400
|
-
__metadata("design:type", Function),
|
|
18401
|
-
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
18402
|
-
__metadata("design:returntype", Promise)
|
|
18403
|
-
], SchemaInfoResolver.prototype, "SchemaInfo", null);
|
|
18404
|
-
__decorate([
|
|
18405
|
-
(0, server_1.Mutation)(() => SchemaInfo_),
|
|
18406
|
-
__param(0, (0, server_1.Arg)('input', () => CreateSchemaInfoInput)),
|
|
18407
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18408
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18409
|
-
__metadata("design:type", Function),
|
|
18410
|
-
__metadata("design:paramtypes", [CreateSchemaInfoInput, Object, server_1.PubSubEngine]),
|
|
18411
|
-
__metadata("design:returntype", Promise)
|
|
18412
|
-
], SchemaInfoResolver.prototype, "CreateSchemaInfo", null);
|
|
18413
|
-
__decorate([
|
|
18414
|
-
(0, server_1.Mutation)(() => SchemaInfo_),
|
|
18415
|
-
__param(0, (0, server_1.Arg)('input', () => UpdateSchemaInfoInput)),
|
|
18416
|
-
__param(1, (0, server_1.Ctx)()),
|
|
18417
|
-
__param(2, (0, server_1.PubSub)()),
|
|
18418
|
-
__metadata("design:type", Function),
|
|
18419
|
-
__metadata("design:paramtypes", [UpdateSchemaInfoInput, Object, server_1.PubSubEngine]),
|
|
18420
|
-
__metadata("design:returntype", Promise)
|
|
18421
|
-
], SchemaInfoResolver.prototype, "UpdateSchemaInfo", null);
|
|
18422
|
-
exports.SchemaInfoResolver = SchemaInfoResolver = __decorate([
|
|
18423
|
-
(0, server_1.Resolver)(SchemaInfo_)
|
|
18424
|
-
], SchemaInfoResolver);
|
|
18425
|
-
let CompanyIntegrationRecordMap_ = class CompanyIntegrationRecordMap_ {
|
|
18426
|
-
};
|
|
18427
|
-
exports.CompanyIntegrationRecordMap_ = CompanyIntegrationRecordMap_;
|
|
18428
|
-
__decorate([
|
|
18429
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18430
|
-
__metadata("design:type", Number)
|
|
18431
|
-
], CompanyIntegrationRecordMap_.prototype, "ID", void 0);
|
|
18432
|
-
__decorate([
|
|
18433
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18434
|
-
__metadata("design:type", Number)
|
|
18435
|
-
], CompanyIntegrationRecordMap_.prototype, "CompanyIntegrationID", void 0);
|
|
18436
|
-
__decorate([
|
|
18437
|
-
(0, server_1.Field)(),
|
|
18438
|
-
(0, class_validator_1.MaxLength)(200),
|
|
18439
|
-
__metadata("design:type", String)
|
|
18440
|
-
], CompanyIntegrationRecordMap_.prototype, "ExternalSystemRecordID", void 0);
|
|
18441
|
-
__decorate([
|
|
18442
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18443
|
-
__metadata("design:type", Number)
|
|
18444
|
-
], CompanyIntegrationRecordMap_.prototype, "EntityID", void 0);
|
|
18445
|
-
__decorate([
|
|
18446
|
-
(0, server_1.Field)(),
|
|
18447
|
-
(0, class_validator_1.MaxLength)(510),
|
|
18448
|
-
__metadata("design:type", String)
|
|
18449
|
-
], CompanyIntegrationRecordMap_.prototype, "EntityRecordID", void 0);
|
|
18450
|
-
__decorate([
|
|
18451
|
-
(0, server_1.Field)(),
|
|
18452
|
-
(0, class_validator_1.MaxLength)(8),
|
|
18453
|
-
__metadata("design:type", Date)
|
|
18454
|
-
], CompanyIntegrationRecordMap_.prototype, "CreatedAt", void 0);
|
|
18455
|
-
__decorate([
|
|
18456
|
-
(0, server_1.Field)(),
|
|
18457
|
-
(0, class_validator_1.MaxLength)(8),
|
|
18458
|
-
__metadata("design:type", Date)
|
|
18459
|
-
], CompanyIntegrationRecordMap_.prototype, "UpdatedAt", void 0);
|
|
18460
|
-
exports.CompanyIntegrationRecordMap_ = CompanyIntegrationRecordMap_ = __decorate([
|
|
18461
|
-
(0, server_1.ObjectType)()
|
|
18462
|
-
], CompanyIntegrationRecordMap_);
|
|
18463
|
-
let CreateCompanyIntegrationRecordMapInput = class CreateCompanyIntegrationRecordMapInput {
|
|
18464
|
-
};
|
|
18465
|
-
exports.CreateCompanyIntegrationRecordMapInput = CreateCompanyIntegrationRecordMapInput;
|
|
18466
|
-
__decorate([
|
|
18467
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18468
|
-
__metadata("design:type", Number)
|
|
18469
|
-
], CreateCompanyIntegrationRecordMapInput.prototype, "CompanyIntegrationID", void 0);
|
|
18470
|
-
__decorate([
|
|
18471
|
-
(0, server_1.Field)(),
|
|
18472
|
-
__metadata("design:type", String)
|
|
18473
|
-
], CreateCompanyIntegrationRecordMapInput.prototype, "ExternalSystemRecordID", void 0);
|
|
18474
|
-
__decorate([
|
|
18475
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
18476
|
-
__metadata("design:type", Number)
|
|
18477
|
-
], CreateCompanyIntegrationRecordMapInput.prototype, "EntityID", void 0);
|
|
18478
|
-
__decorate([
|
|
18479
|
-
(0, server_1.Field)(),
|
|
18214
|
+
(0, server_1.Field)(),
|
|
18480
18215
|
__metadata("design:type", String)
|
|
18481
18216
|
], CreateCompanyIntegrationRecordMapInput.prototype, "EntityRecordID", void 0);
|
|
18482
18217
|
exports.CreateCompanyIntegrationRecordMapInput = CreateCompanyIntegrationRecordMapInput = __decorate([
|
|
@@ -22284,6 +22019,10 @@ __decorate([
|
|
|
22284
22019
|
(0, server_1.Field)(() => [DataContextItem_]),
|
|
22285
22020
|
__metadata("design:type", Array)
|
|
22286
22021
|
], DataContext_.prototype, "DataContextItemsArray", void 0);
|
|
22022
|
+
__decorate([
|
|
22023
|
+
(0, server_1.Field)(() => [Report_]),
|
|
22024
|
+
__metadata("design:type", Array)
|
|
22025
|
+
], DataContext_.prototype, "ReportsArray", void 0);
|
|
22287
22026
|
exports.DataContext_ = DataContext_ = __decorate([
|
|
22288
22027
|
(0, server_1.ObjectType)({ description: 'Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.' })
|
|
22289
22028
|
], DataContext_);
|
|
@@ -22392,6 +22131,12 @@ let DataContextResolver = class DataContextResolver extends server_1.ResolverBas
|
|
|
22392
22131
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
22393
22132
|
return result;
|
|
22394
22133
|
}
|
|
22134
|
+
async ReportsArray(datacontext_, { dataSource, userPayload }, pubSub) {
|
|
22135
|
+
this.CheckUserReadPermissions('Reports', userPayload);
|
|
22136
|
+
const sSQL = `SELECT * FROM [admin].[vwReports] WHERE [DataContextID]=${datacontext_.ID} ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22137
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
22138
|
+
return result;
|
|
22139
|
+
}
|
|
22395
22140
|
async CreateDataContext(input, { dataSource, userPayload }, pubSub) {
|
|
22396
22141
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
22397
22142
|
const entityObject = await new core_1.Metadata().GetEntityObject('Data Contexts', this.GetUserFromPayload(userPayload));
|
|
@@ -22480,6 +22225,15 @@ __decorate([
|
|
|
22480
22225
|
__metadata("design:paramtypes", [DataContext_, Object, server_1.PubSubEngine]),
|
|
22481
22226
|
__metadata("design:returntype", Promise)
|
|
22482
22227
|
], DataContextResolver.prototype, "DataContextItemsArray", null);
|
|
22228
|
+
__decorate([
|
|
22229
|
+
(0, server_1.FieldResolver)(() => [Report_]),
|
|
22230
|
+
__param(0, (0, server_1.Root)()),
|
|
22231
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22232
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22233
|
+
__metadata("design:type", Function),
|
|
22234
|
+
__metadata("design:paramtypes", [DataContext_, Object, server_1.PubSubEngine]),
|
|
22235
|
+
__metadata("design:returntype", Promise)
|
|
22236
|
+
], DataContextResolver.prototype, "ReportsArray", null);
|
|
22483
22237
|
__decorate([
|
|
22484
22238
|
(0, server_1.Mutation)(() => DataContext_),
|
|
22485
22239
|
__param(0, (0, server_1.Arg)('input', () => CreateDataContextInput)),
|
|
@@ -22501,4 +22255,809 @@ __decorate([
|
|
|
22501
22255
|
exports.DataContextResolver = DataContextResolver = __decorate([
|
|
22502
22256
|
(0, server_1.Resolver)(DataContext_)
|
|
22503
22257
|
], DataContextResolver);
|
|
22258
|
+
let UserViewCategory_ = class UserViewCategory_ {
|
|
22259
|
+
};
|
|
22260
|
+
exports.UserViewCategory_ = UserViewCategory_;
|
|
22261
|
+
__decorate([
|
|
22262
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22263
|
+
__metadata("design:type", Number)
|
|
22264
|
+
], UserViewCategory_.prototype, "ID", void 0);
|
|
22265
|
+
__decorate([
|
|
22266
|
+
(0, server_1.Field)(),
|
|
22267
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22268
|
+
__metadata("design:type", String)
|
|
22269
|
+
], UserViewCategory_.prototype, "Name", void 0);
|
|
22270
|
+
__decorate([
|
|
22271
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22272
|
+
__metadata("design:type", String)
|
|
22273
|
+
], UserViewCategory_.prototype, "Description", void 0);
|
|
22274
|
+
__decorate([
|
|
22275
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22276
|
+
__metadata("design:type", Number)
|
|
22277
|
+
], UserViewCategory_.prototype, "ParentID", void 0);
|
|
22278
|
+
__decorate([
|
|
22279
|
+
(0, server_1.Field)(),
|
|
22280
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22281
|
+
__metadata("design:type", Date)
|
|
22282
|
+
], UserViewCategory_.prototype, "CreatedAt", void 0);
|
|
22283
|
+
__decorate([
|
|
22284
|
+
(0, server_1.Field)(),
|
|
22285
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22286
|
+
__metadata("design:type", Date)
|
|
22287
|
+
], UserViewCategory_.prototype, "UpdatedAt", void 0);
|
|
22288
|
+
__decorate([
|
|
22289
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22290
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22291
|
+
__metadata("design:type", String)
|
|
22292
|
+
], UserViewCategory_.prototype, "Parent", void 0);
|
|
22293
|
+
__decorate([
|
|
22294
|
+
(0, server_1.Field)(() => [UserViewCategory_]),
|
|
22295
|
+
__metadata("design:type", Array)
|
|
22296
|
+
], UserViewCategory_.prototype, "UserViewCategoriesArray", void 0);
|
|
22297
|
+
__decorate([
|
|
22298
|
+
(0, server_1.Field)(() => [UserView_]),
|
|
22299
|
+
__metadata("design:type", Array)
|
|
22300
|
+
], UserViewCategory_.prototype, "UserViewsArray", void 0);
|
|
22301
|
+
exports.UserViewCategory_ = UserViewCategory_ = __decorate([
|
|
22302
|
+
(0, server_1.ObjectType)()
|
|
22303
|
+
], UserViewCategory_);
|
|
22304
|
+
let CreateUserViewCategoryInput = class CreateUserViewCategoryInput {
|
|
22305
|
+
};
|
|
22306
|
+
exports.CreateUserViewCategoryInput = CreateUserViewCategoryInput;
|
|
22307
|
+
__decorate([
|
|
22308
|
+
(0, server_1.Field)(),
|
|
22309
|
+
__metadata("design:type", String)
|
|
22310
|
+
], CreateUserViewCategoryInput.prototype, "Name", void 0);
|
|
22311
|
+
__decorate([
|
|
22312
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22313
|
+
__metadata("design:type", String)
|
|
22314
|
+
], CreateUserViewCategoryInput.prototype, "Description", void 0);
|
|
22315
|
+
__decorate([
|
|
22316
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22317
|
+
__metadata("design:type", Number)
|
|
22318
|
+
], CreateUserViewCategoryInput.prototype, "ParentID", void 0);
|
|
22319
|
+
exports.CreateUserViewCategoryInput = CreateUserViewCategoryInput = __decorate([
|
|
22320
|
+
(0, server_1.InputType)()
|
|
22321
|
+
], CreateUserViewCategoryInput);
|
|
22322
|
+
let UpdateUserViewCategoryInput = class UpdateUserViewCategoryInput {
|
|
22323
|
+
};
|
|
22324
|
+
exports.UpdateUserViewCategoryInput = UpdateUserViewCategoryInput;
|
|
22325
|
+
__decorate([
|
|
22326
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22327
|
+
__metadata("design:type", Number)
|
|
22328
|
+
], UpdateUserViewCategoryInput.prototype, "ID", void 0);
|
|
22329
|
+
__decorate([
|
|
22330
|
+
(0, server_1.Field)(),
|
|
22331
|
+
__metadata("design:type", String)
|
|
22332
|
+
], UpdateUserViewCategoryInput.prototype, "Name", void 0);
|
|
22333
|
+
__decorate([
|
|
22334
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22335
|
+
__metadata("design:type", String)
|
|
22336
|
+
], UpdateUserViewCategoryInput.prototype, "Description", void 0);
|
|
22337
|
+
__decorate([
|
|
22338
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22339
|
+
__metadata("design:type", Number)
|
|
22340
|
+
], UpdateUserViewCategoryInput.prototype, "ParentID", void 0);
|
|
22341
|
+
exports.UpdateUserViewCategoryInput = UpdateUserViewCategoryInput = __decorate([
|
|
22342
|
+
(0, server_1.InputType)()
|
|
22343
|
+
], UpdateUserViewCategoryInput);
|
|
22344
|
+
let RunUserViewCategoryViewResult = class RunUserViewCategoryViewResult {
|
|
22345
|
+
};
|
|
22346
|
+
exports.RunUserViewCategoryViewResult = RunUserViewCategoryViewResult;
|
|
22347
|
+
__decorate([
|
|
22348
|
+
(0, server_1.Field)(() => [UserViewCategory_]),
|
|
22349
|
+
__metadata("design:type", Array)
|
|
22350
|
+
], RunUserViewCategoryViewResult.prototype, "Results", void 0);
|
|
22351
|
+
__decorate([
|
|
22352
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22353
|
+
__metadata("design:type", Number)
|
|
22354
|
+
], RunUserViewCategoryViewResult.prototype, "UserViewRunID", void 0);
|
|
22355
|
+
__decorate([
|
|
22356
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22357
|
+
__metadata("design:type", Number)
|
|
22358
|
+
], RunUserViewCategoryViewResult.prototype, "RowCount", void 0);
|
|
22359
|
+
__decorate([
|
|
22360
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22361
|
+
__metadata("design:type", Number)
|
|
22362
|
+
], RunUserViewCategoryViewResult.prototype, "TotalRowCount", void 0);
|
|
22363
|
+
__decorate([
|
|
22364
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22365
|
+
__metadata("design:type", Number)
|
|
22366
|
+
], RunUserViewCategoryViewResult.prototype, "ExecutionTime", void 0);
|
|
22367
|
+
__decorate([
|
|
22368
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22369
|
+
__metadata("design:type", String)
|
|
22370
|
+
], RunUserViewCategoryViewResult.prototype, "ErrorMessage", void 0);
|
|
22371
|
+
__decorate([
|
|
22372
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
22373
|
+
__metadata("design:type", Boolean)
|
|
22374
|
+
], RunUserViewCategoryViewResult.prototype, "Success", void 0);
|
|
22375
|
+
exports.RunUserViewCategoryViewResult = RunUserViewCategoryViewResult = __decorate([
|
|
22376
|
+
(0, server_1.ObjectType)()
|
|
22377
|
+
], RunUserViewCategoryViewResult);
|
|
22378
|
+
let UserViewCategoryResolver = class UserViewCategoryResolver extends server_1.ResolverBase {
|
|
22379
|
+
async RunUserViewCategoryViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
22380
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
22381
|
+
}
|
|
22382
|
+
async RunUserViewCategoryViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
22383
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
22384
|
+
}
|
|
22385
|
+
async RunUserViewCategoryDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
22386
|
+
input.EntityName = 'User View Categories';
|
|
22387
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
22388
|
+
}
|
|
22389
|
+
async UserViewCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
22390
|
+
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
22391
|
+
const sSQL = `SELECT * FROM [admin].[vwUserViewCategories] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22392
|
+
const result = this.MapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
22393
|
+
return result;
|
|
22394
|
+
}
|
|
22395
|
+
async UserViewCategoriesArray(userviewcategory_, { dataSource, userPayload }, pubSub) {
|
|
22396
|
+
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
22397
|
+
const sSQL = `SELECT * FROM [admin].[vwUserViewCategories] WHERE [ParentID]=${userviewcategory_.ID} ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22398
|
+
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
22399
|
+
return result;
|
|
22400
|
+
}
|
|
22401
|
+
async UserViewsArray(userviewcategory_, { dataSource, userPayload }, pubSub) {
|
|
22402
|
+
this.CheckUserReadPermissions('User Views', userPayload);
|
|
22403
|
+
const sSQL = `SELECT * FROM [admin].[vwUserViews] WHERE [CategoryID]=${userviewcategory_.ID} ` + this.getRowLevelSecurityWhereClause('User Views', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22404
|
+
const result = this.ArrayMapFieldNamesToCodeNames('User Views', await dataSource.query(sSQL));
|
|
22405
|
+
return result;
|
|
22406
|
+
}
|
|
22407
|
+
async CreateUserViewCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22408
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
22409
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('User View Categories', this.GetUserFromPayload(userPayload));
|
|
22410
|
+
await entityObject.NewRecord();
|
|
22411
|
+
entityObject.SetMany(input);
|
|
22412
|
+
if (await entityObject.Save()) {
|
|
22413
|
+
await this.AfterCreate(dataSource, input);
|
|
22414
|
+
return entityObject.GetAll();
|
|
22415
|
+
}
|
|
22416
|
+
else
|
|
22417
|
+
return null;
|
|
22418
|
+
}
|
|
22419
|
+
else
|
|
22420
|
+
return null;
|
|
22421
|
+
}
|
|
22422
|
+
async BeforeCreate(dataSource, input) {
|
|
22423
|
+
return true;
|
|
22424
|
+
}
|
|
22425
|
+
async AfterCreate(dataSource, input) {
|
|
22426
|
+
}
|
|
22427
|
+
async UpdateUserViewCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22428
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
22429
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('User View Categories', this.GetUserFromPayload(userPayload));
|
|
22430
|
+
entityObject.LoadFromData(input);
|
|
22431
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
22432
|
+
await this.AfterUpdate(dataSource, input);
|
|
22433
|
+
return entityObject.GetAll();
|
|
22434
|
+
}
|
|
22435
|
+
else
|
|
22436
|
+
return null;
|
|
22437
|
+
}
|
|
22438
|
+
else
|
|
22439
|
+
return null;
|
|
22440
|
+
}
|
|
22441
|
+
async BeforeUpdate(dataSource, input) {
|
|
22442
|
+
const i = input, d = dataSource;
|
|
22443
|
+
return true;
|
|
22444
|
+
}
|
|
22445
|
+
async AfterUpdate(dataSource, input) {
|
|
22446
|
+
const i = input, d = dataSource;
|
|
22447
|
+
}
|
|
22448
|
+
};
|
|
22449
|
+
exports.UserViewCategoryResolver = UserViewCategoryResolver;
|
|
22450
|
+
__decorate([
|
|
22451
|
+
(0, server_1.Query)(() => RunUserViewCategoryViewResult),
|
|
22452
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
22453
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22454
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22455
|
+
__metadata("design:type", Function),
|
|
22456
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
22457
|
+
__metadata("design:returntype", Promise)
|
|
22458
|
+
], UserViewCategoryResolver.prototype, "RunUserViewCategoryViewByID", null);
|
|
22459
|
+
__decorate([
|
|
22460
|
+
(0, server_1.Query)(() => RunUserViewCategoryViewResult),
|
|
22461
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
22462
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22463
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22464
|
+
__metadata("design:type", Function),
|
|
22465
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
22466
|
+
__metadata("design:returntype", Promise)
|
|
22467
|
+
], UserViewCategoryResolver.prototype, "RunUserViewCategoryViewByName", null);
|
|
22468
|
+
__decorate([
|
|
22469
|
+
(0, server_1.Query)(() => RunUserViewCategoryViewResult),
|
|
22470
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
22471
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22472
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22473
|
+
__metadata("design:type", Function),
|
|
22474
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
22475
|
+
__metadata("design:returntype", Promise)
|
|
22476
|
+
], UserViewCategoryResolver.prototype, "RunUserViewCategoryDynamicView", null);
|
|
22477
|
+
__decorate([
|
|
22478
|
+
(0, server_1.Query)(() => UserViewCategory_, { nullable: true }),
|
|
22479
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
22480
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22481
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22482
|
+
__metadata("design:type", Function),
|
|
22483
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
22484
|
+
__metadata("design:returntype", Promise)
|
|
22485
|
+
], UserViewCategoryResolver.prototype, "UserViewCategory", null);
|
|
22486
|
+
__decorate([
|
|
22487
|
+
(0, server_1.FieldResolver)(() => [UserViewCategory_]),
|
|
22488
|
+
__param(0, (0, server_1.Root)()),
|
|
22489
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22490
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22491
|
+
__metadata("design:type", Function),
|
|
22492
|
+
__metadata("design:paramtypes", [UserViewCategory_, Object, server_1.PubSubEngine]),
|
|
22493
|
+
__metadata("design:returntype", Promise)
|
|
22494
|
+
], UserViewCategoryResolver.prototype, "UserViewCategoriesArray", null);
|
|
22495
|
+
__decorate([
|
|
22496
|
+
(0, server_1.FieldResolver)(() => [UserView_]),
|
|
22497
|
+
__param(0, (0, server_1.Root)()),
|
|
22498
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22499
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22500
|
+
__metadata("design:type", Function),
|
|
22501
|
+
__metadata("design:paramtypes", [UserViewCategory_, Object, server_1.PubSubEngine]),
|
|
22502
|
+
__metadata("design:returntype", Promise)
|
|
22503
|
+
], UserViewCategoryResolver.prototype, "UserViewsArray", null);
|
|
22504
|
+
__decorate([
|
|
22505
|
+
(0, server_1.Mutation)(() => UserViewCategory_),
|
|
22506
|
+
__param(0, (0, server_1.Arg)('input', () => CreateUserViewCategoryInput)),
|
|
22507
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22508
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22509
|
+
__metadata("design:type", Function),
|
|
22510
|
+
__metadata("design:paramtypes", [CreateUserViewCategoryInput, Object, server_1.PubSubEngine]),
|
|
22511
|
+
__metadata("design:returntype", Promise)
|
|
22512
|
+
], UserViewCategoryResolver.prototype, "CreateUserViewCategory", null);
|
|
22513
|
+
__decorate([
|
|
22514
|
+
(0, server_1.Mutation)(() => UserViewCategory_),
|
|
22515
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateUserViewCategoryInput)),
|
|
22516
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22517
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22518
|
+
__metadata("design:type", Function),
|
|
22519
|
+
__metadata("design:paramtypes", [UpdateUserViewCategoryInput, Object, server_1.PubSubEngine]),
|
|
22520
|
+
__metadata("design:returntype", Promise)
|
|
22521
|
+
], UserViewCategoryResolver.prototype, "UpdateUserViewCategory", null);
|
|
22522
|
+
exports.UserViewCategoryResolver = UserViewCategoryResolver = __decorate([
|
|
22523
|
+
(0, server_1.Resolver)(UserViewCategory_)
|
|
22524
|
+
], UserViewCategoryResolver);
|
|
22525
|
+
let DashboardCategory_ = class DashboardCategory_ {
|
|
22526
|
+
};
|
|
22527
|
+
exports.DashboardCategory_ = DashboardCategory_;
|
|
22528
|
+
__decorate([
|
|
22529
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22530
|
+
__metadata("design:type", Number)
|
|
22531
|
+
], DashboardCategory_.prototype, "ID", void 0);
|
|
22532
|
+
__decorate([
|
|
22533
|
+
(0, server_1.Field)(),
|
|
22534
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22535
|
+
__metadata("design:type", String)
|
|
22536
|
+
], DashboardCategory_.prototype, "Name", void 0);
|
|
22537
|
+
__decorate([
|
|
22538
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22539
|
+
__metadata("design:type", String)
|
|
22540
|
+
], DashboardCategory_.prototype, "Description", void 0);
|
|
22541
|
+
__decorate([
|
|
22542
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22543
|
+
__metadata("design:type", Number)
|
|
22544
|
+
], DashboardCategory_.prototype, "ParentID", void 0);
|
|
22545
|
+
__decorate([
|
|
22546
|
+
(0, server_1.Field)(),
|
|
22547
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22548
|
+
__metadata("design:type", Date)
|
|
22549
|
+
], DashboardCategory_.prototype, "CreatedAt", void 0);
|
|
22550
|
+
__decorate([
|
|
22551
|
+
(0, server_1.Field)(),
|
|
22552
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22553
|
+
__metadata("design:type", Date)
|
|
22554
|
+
], DashboardCategory_.prototype, "UpdatedAt", void 0);
|
|
22555
|
+
__decorate([
|
|
22556
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22557
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22558
|
+
__metadata("design:type", String)
|
|
22559
|
+
], DashboardCategory_.prototype, "Parent", void 0);
|
|
22560
|
+
__decorate([
|
|
22561
|
+
(0, server_1.Field)(() => [Dashboard_]),
|
|
22562
|
+
__metadata("design:type", Array)
|
|
22563
|
+
], DashboardCategory_.prototype, "DashboardsArray", void 0);
|
|
22564
|
+
__decorate([
|
|
22565
|
+
(0, server_1.Field)(() => [DashboardCategory_]),
|
|
22566
|
+
__metadata("design:type", Array)
|
|
22567
|
+
], DashboardCategory_.prototype, "DashboardCategoriesArray", void 0);
|
|
22568
|
+
exports.DashboardCategory_ = DashboardCategory_ = __decorate([
|
|
22569
|
+
(0, server_1.ObjectType)()
|
|
22570
|
+
], DashboardCategory_);
|
|
22571
|
+
let CreateDashboardCategoryInput = class CreateDashboardCategoryInput {
|
|
22572
|
+
};
|
|
22573
|
+
exports.CreateDashboardCategoryInput = CreateDashboardCategoryInput;
|
|
22574
|
+
__decorate([
|
|
22575
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22576
|
+
__metadata("design:type", Number)
|
|
22577
|
+
], CreateDashboardCategoryInput.prototype, "ID", void 0);
|
|
22578
|
+
__decorate([
|
|
22579
|
+
(0, server_1.Field)(),
|
|
22580
|
+
__metadata("design:type", String)
|
|
22581
|
+
], CreateDashboardCategoryInput.prototype, "Name", void 0);
|
|
22582
|
+
__decorate([
|
|
22583
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22584
|
+
__metadata("design:type", String)
|
|
22585
|
+
], CreateDashboardCategoryInput.prototype, "Description", void 0);
|
|
22586
|
+
__decorate([
|
|
22587
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22588
|
+
__metadata("design:type", Number)
|
|
22589
|
+
], CreateDashboardCategoryInput.prototype, "ParentID", void 0);
|
|
22590
|
+
exports.CreateDashboardCategoryInput = CreateDashboardCategoryInput = __decorate([
|
|
22591
|
+
(0, server_1.InputType)()
|
|
22592
|
+
], CreateDashboardCategoryInput);
|
|
22593
|
+
let UpdateDashboardCategoryInput = class UpdateDashboardCategoryInput {
|
|
22594
|
+
};
|
|
22595
|
+
exports.UpdateDashboardCategoryInput = UpdateDashboardCategoryInput;
|
|
22596
|
+
__decorate([
|
|
22597
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22598
|
+
__metadata("design:type", Number)
|
|
22599
|
+
], UpdateDashboardCategoryInput.prototype, "ID", void 0);
|
|
22600
|
+
__decorate([
|
|
22601
|
+
(0, server_1.Field)(),
|
|
22602
|
+
__metadata("design:type", String)
|
|
22603
|
+
], UpdateDashboardCategoryInput.prototype, "Name", void 0);
|
|
22604
|
+
__decorate([
|
|
22605
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22606
|
+
__metadata("design:type", String)
|
|
22607
|
+
], UpdateDashboardCategoryInput.prototype, "Description", void 0);
|
|
22608
|
+
__decorate([
|
|
22609
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22610
|
+
__metadata("design:type", Number)
|
|
22611
|
+
], UpdateDashboardCategoryInput.prototype, "ParentID", void 0);
|
|
22612
|
+
exports.UpdateDashboardCategoryInput = UpdateDashboardCategoryInput = __decorate([
|
|
22613
|
+
(0, server_1.InputType)()
|
|
22614
|
+
], UpdateDashboardCategoryInput);
|
|
22615
|
+
let RunDashboardCategoryViewResult = class RunDashboardCategoryViewResult {
|
|
22616
|
+
};
|
|
22617
|
+
exports.RunDashboardCategoryViewResult = RunDashboardCategoryViewResult;
|
|
22618
|
+
__decorate([
|
|
22619
|
+
(0, server_1.Field)(() => [DashboardCategory_]),
|
|
22620
|
+
__metadata("design:type", Array)
|
|
22621
|
+
], RunDashboardCategoryViewResult.prototype, "Results", void 0);
|
|
22622
|
+
__decorate([
|
|
22623
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22624
|
+
__metadata("design:type", Number)
|
|
22625
|
+
], RunDashboardCategoryViewResult.prototype, "UserViewRunID", void 0);
|
|
22626
|
+
__decorate([
|
|
22627
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22628
|
+
__metadata("design:type", Number)
|
|
22629
|
+
], RunDashboardCategoryViewResult.prototype, "RowCount", void 0);
|
|
22630
|
+
__decorate([
|
|
22631
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22632
|
+
__metadata("design:type", Number)
|
|
22633
|
+
], RunDashboardCategoryViewResult.prototype, "TotalRowCount", void 0);
|
|
22634
|
+
__decorate([
|
|
22635
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22636
|
+
__metadata("design:type", Number)
|
|
22637
|
+
], RunDashboardCategoryViewResult.prototype, "ExecutionTime", void 0);
|
|
22638
|
+
__decorate([
|
|
22639
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22640
|
+
__metadata("design:type", String)
|
|
22641
|
+
], RunDashboardCategoryViewResult.prototype, "ErrorMessage", void 0);
|
|
22642
|
+
__decorate([
|
|
22643
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
22644
|
+
__metadata("design:type", Boolean)
|
|
22645
|
+
], RunDashboardCategoryViewResult.prototype, "Success", void 0);
|
|
22646
|
+
exports.RunDashboardCategoryViewResult = RunDashboardCategoryViewResult = __decorate([
|
|
22647
|
+
(0, server_1.ObjectType)()
|
|
22648
|
+
], RunDashboardCategoryViewResult);
|
|
22649
|
+
let DashboardCategoryResolver = class DashboardCategoryResolver extends server_1.ResolverBase {
|
|
22650
|
+
async RunDashboardCategoryViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
22651
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
22652
|
+
}
|
|
22653
|
+
async RunDashboardCategoryViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
22654
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
22655
|
+
}
|
|
22656
|
+
async RunDashboardCategoryDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
22657
|
+
input.EntityName = 'Dashboard Categories';
|
|
22658
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
22659
|
+
}
|
|
22660
|
+
async DashboardCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
22661
|
+
this.CheckUserReadPermissions('Dashboard Categories', userPayload);
|
|
22662
|
+
const sSQL = `SELECT * FROM [admin].[vwDashboardCategories] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Dashboard Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22663
|
+
const result = this.MapFieldNamesToCodeNames('Dashboard Categories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
22664
|
+
return result;
|
|
22665
|
+
}
|
|
22666
|
+
async DashboardsArray(dashboardcategory_, { dataSource, userPayload }, pubSub) {
|
|
22667
|
+
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
22668
|
+
const sSQL = `SELECT * FROM [admin].[vwDashboards] WHERE [CategoryID]=${dashboardcategory_.ID} ` + this.getRowLevelSecurityWhereClause('Dashboards', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22669
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', await dataSource.query(sSQL));
|
|
22670
|
+
return result;
|
|
22671
|
+
}
|
|
22672
|
+
async DashboardCategoriesArray(dashboardcategory_, { dataSource, userPayload }, pubSub) {
|
|
22673
|
+
this.CheckUserReadPermissions('Dashboard Categories', userPayload);
|
|
22674
|
+
const sSQL = `SELECT * FROM [admin].[vwDashboardCategories] WHERE [ParentID]=${dashboardcategory_.ID} ` + this.getRowLevelSecurityWhereClause('Dashboard Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22675
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboard Categories', await dataSource.query(sSQL));
|
|
22676
|
+
return result;
|
|
22677
|
+
}
|
|
22678
|
+
async CreateDashboardCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22679
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
22680
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Dashboard Categories', this.GetUserFromPayload(userPayload));
|
|
22681
|
+
await entityObject.NewRecord();
|
|
22682
|
+
entityObject.SetMany(input);
|
|
22683
|
+
if (await entityObject.Save()) {
|
|
22684
|
+
await this.AfterCreate(dataSource, input);
|
|
22685
|
+
return entityObject.GetAll();
|
|
22686
|
+
}
|
|
22687
|
+
else
|
|
22688
|
+
return null;
|
|
22689
|
+
}
|
|
22690
|
+
else
|
|
22691
|
+
return null;
|
|
22692
|
+
}
|
|
22693
|
+
async BeforeCreate(dataSource, input) {
|
|
22694
|
+
return true;
|
|
22695
|
+
}
|
|
22696
|
+
async AfterCreate(dataSource, input) {
|
|
22697
|
+
}
|
|
22698
|
+
async UpdateDashboardCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22699
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
22700
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Dashboard Categories', this.GetUserFromPayload(userPayload));
|
|
22701
|
+
entityObject.LoadFromData(input);
|
|
22702
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
22703
|
+
await this.AfterUpdate(dataSource, input);
|
|
22704
|
+
return entityObject.GetAll();
|
|
22705
|
+
}
|
|
22706
|
+
else
|
|
22707
|
+
return null;
|
|
22708
|
+
}
|
|
22709
|
+
else
|
|
22710
|
+
return null;
|
|
22711
|
+
}
|
|
22712
|
+
async BeforeUpdate(dataSource, input) {
|
|
22713
|
+
const i = input, d = dataSource;
|
|
22714
|
+
return true;
|
|
22715
|
+
}
|
|
22716
|
+
async AfterUpdate(dataSource, input) {
|
|
22717
|
+
const i = input, d = dataSource;
|
|
22718
|
+
}
|
|
22719
|
+
};
|
|
22720
|
+
exports.DashboardCategoryResolver = DashboardCategoryResolver;
|
|
22721
|
+
__decorate([
|
|
22722
|
+
(0, server_1.Query)(() => RunDashboardCategoryViewResult),
|
|
22723
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
22724
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22725
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22726
|
+
__metadata("design:type", Function),
|
|
22727
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
22728
|
+
__metadata("design:returntype", Promise)
|
|
22729
|
+
], DashboardCategoryResolver.prototype, "RunDashboardCategoryViewByID", null);
|
|
22730
|
+
__decorate([
|
|
22731
|
+
(0, server_1.Query)(() => RunDashboardCategoryViewResult),
|
|
22732
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
22733
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22734
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22735
|
+
__metadata("design:type", Function),
|
|
22736
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
22737
|
+
__metadata("design:returntype", Promise)
|
|
22738
|
+
], DashboardCategoryResolver.prototype, "RunDashboardCategoryViewByName", null);
|
|
22739
|
+
__decorate([
|
|
22740
|
+
(0, server_1.Query)(() => RunDashboardCategoryViewResult),
|
|
22741
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
22742
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22743
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22744
|
+
__metadata("design:type", Function),
|
|
22745
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
22746
|
+
__metadata("design:returntype", Promise)
|
|
22747
|
+
], DashboardCategoryResolver.prototype, "RunDashboardCategoryDynamicView", null);
|
|
22748
|
+
__decorate([
|
|
22749
|
+
(0, server_1.Query)(() => DashboardCategory_, { nullable: true }),
|
|
22750
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
22751
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22752
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22753
|
+
__metadata("design:type", Function),
|
|
22754
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
22755
|
+
__metadata("design:returntype", Promise)
|
|
22756
|
+
], DashboardCategoryResolver.prototype, "DashboardCategory", null);
|
|
22757
|
+
__decorate([
|
|
22758
|
+
(0, server_1.FieldResolver)(() => [Dashboard_]),
|
|
22759
|
+
__param(0, (0, server_1.Root)()),
|
|
22760
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22761
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22762
|
+
__metadata("design:type", Function),
|
|
22763
|
+
__metadata("design:paramtypes", [DashboardCategory_, Object, server_1.PubSubEngine]),
|
|
22764
|
+
__metadata("design:returntype", Promise)
|
|
22765
|
+
], DashboardCategoryResolver.prototype, "DashboardsArray", null);
|
|
22766
|
+
__decorate([
|
|
22767
|
+
(0, server_1.FieldResolver)(() => [DashboardCategory_]),
|
|
22768
|
+
__param(0, (0, server_1.Root)()),
|
|
22769
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22770
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22771
|
+
__metadata("design:type", Function),
|
|
22772
|
+
__metadata("design:paramtypes", [DashboardCategory_, Object, server_1.PubSubEngine]),
|
|
22773
|
+
__metadata("design:returntype", Promise)
|
|
22774
|
+
], DashboardCategoryResolver.prototype, "DashboardCategoriesArray", null);
|
|
22775
|
+
__decorate([
|
|
22776
|
+
(0, server_1.Mutation)(() => DashboardCategory_),
|
|
22777
|
+
__param(0, (0, server_1.Arg)('input', () => CreateDashboardCategoryInput)),
|
|
22778
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22779
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22780
|
+
__metadata("design:type", Function),
|
|
22781
|
+
__metadata("design:paramtypes", [CreateDashboardCategoryInput, Object, server_1.PubSubEngine]),
|
|
22782
|
+
__metadata("design:returntype", Promise)
|
|
22783
|
+
], DashboardCategoryResolver.prototype, "CreateDashboardCategory", null);
|
|
22784
|
+
__decorate([
|
|
22785
|
+
(0, server_1.Mutation)(() => DashboardCategory_),
|
|
22786
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateDashboardCategoryInput)),
|
|
22787
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22788
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22789
|
+
__metadata("design:type", Function),
|
|
22790
|
+
__metadata("design:paramtypes", [UpdateDashboardCategoryInput, Object, server_1.PubSubEngine]),
|
|
22791
|
+
__metadata("design:returntype", Promise)
|
|
22792
|
+
], DashboardCategoryResolver.prototype, "UpdateDashboardCategory", null);
|
|
22793
|
+
exports.DashboardCategoryResolver = DashboardCategoryResolver = __decorate([
|
|
22794
|
+
(0, server_1.Resolver)(DashboardCategory_)
|
|
22795
|
+
], DashboardCategoryResolver);
|
|
22796
|
+
let ReportCategory_ = class ReportCategory_ {
|
|
22797
|
+
};
|
|
22798
|
+
exports.ReportCategory_ = ReportCategory_;
|
|
22799
|
+
__decorate([
|
|
22800
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22801
|
+
__metadata("design:type", Number)
|
|
22802
|
+
], ReportCategory_.prototype, "ID", void 0);
|
|
22803
|
+
__decorate([
|
|
22804
|
+
(0, server_1.Field)(),
|
|
22805
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22806
|
+
__metadata("design:type", String)
|
|
22807
|
+
], ReportCategory_.prototype, "Name", void 0);
|
|
22808
|
+
__decorate([
|
|
22809
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22810
|
+
__metadata("design:type", String)
|
|
22811
|
+
], ReportCategory_.prototype, "Description", void 0);
|
|
22812
|
+
__decorate([
|
|
22813
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22814
|
+
__metadata("design:type", Number)
|
|
22815
|
+
], ReportCategory_.prototype, "ParentID", void 0);
|
|
22816
|
+
__decorate([
|
|
22817
|
+
(0, server_1.Field)(),
|
|
22818
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22819
|
+
__metadata("design:type", Date)
|
|
22820
|
+
], ReportCategory_.prototype, "CreatedAt", void 0);
|
|
22821
|
+
__decorate([
|
|
22822
|
+
(0, server_1.Field)(),
|
|
22823
|
+
(0, class_validator_1.MaxLength)(8),
|
|
22824
|
+
__metadata("design:type", Date)
|
|
22825
|
+
], ReportCategory_.prototype, "UpdatedAt", void 0);
|
|
22826
|
+
__decorate([
|
|
22827
|
+
(0, server_1.Field)(),
|
|
22828
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22829
|
+
__metadata("design:type", String)
|
|
22830
|
+
], ReportCategory_.prototype, "Parent", void 0);
|
|
22831
|
+
__decorate([
|
|
22832
|
+
(0, server_1.Field)(() => [ReportCategory_]),
|
|
22833
|
+
__metadata("design:type", Array)
|
|
22834
|
+
], ReportCategory_.prototype, "ReportCategoriesArray", void 0);
|
|
22835
|
+
__decorate([
|
|
22836
|
+
(0, server_1.Field)(() => [Report_]),
|
|
22837
|
+
__metadata("design:type", Array)
|
|
22838
|
+
], ReportCategory_.prototype, "ReportsArray", void 0);
|
|
22839
|
+
exports.ReportCategory_ = ReportCategory_ = __decorate([
|
|
22840
|
+
(0, server_1.ObjectType)()
|
|
22841
|
+
], ReportCategory_);
|
|
22842
|
+
let CreateReportCategoryInput = class CreateReportCategoryInput {
|
|
22843
|
+
};
|
|
22844
|
+
exports.CreateReportCategoryInput = CreateReportCategoryInput;
|
|
22845
|
+
__decorate([
|
|
22846
|
+
(0, server_1.Field)(),
|
|
22847
|
+
__metadata("design:type", String)
|
|
22848
|
+
], CreateReportCategoryInput.prototype, "Name", void 0);
|
|
22849
|
+
__decorate([
|
|
22850
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22851
|
+
__metadata("design:type", String)
|
|
22852
|
+
], CreateReportCategoryInput.prototype, "Description", void 0);
|
|
22853
|
+
__decorate([
|
|
22854
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22855
|
+
__metadata("design:type", Number)
|
|
22856
|
+
], CreateReportCategoryInput.prototype, "ParentID", void 0);
|
|
22857
|
+
exports.CreateReportCategoryInput = CreateReportCategoryInput = __decorate([
|
|
22858
|
+
(0, server_1.InputType)()
|
|
22859
|
+
], CreateReportCategoryInput);
|
|
22860
|
+
let UpdateReportCategoryInput = class UpdateReportCategoryInput {
|
|
22861
|
+
};
|
|
22862
|
+
exports.UpdateReportCategoryInput = UpdateReportCategoryInput;
|
|
22863
|
+
__decorate([
|
|
22864
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22865
|
+
__metadata("design:type", Number)
|
|
22866
|
+
], UpdateReportCategoryInput.prototype, "ID", void 0);
|
|
22867
|
+
__decorate([
|
|
22868
|
+
(0, server_1.Field)(),
|
|
22869
|
+
__metadata("design:type", String)
|
|
22870
|
+
], UpdateReportCategoryInput.prototype, "Name", void 0);
|
|
22871
|
+
__decorate([
|
|
22872
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22873
|
+
__metadata("design:type", String)
|
|
22874
|
+
], UpdateReportCategoryInput.prototype, "Description", void 0);
|
|
22875
|
+
__decorate([
|
|
22876
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22877
|
+
__metadata("design:type", Number)
|
|
22878
|
+
], UpdateReportCategoryInput.prototype, "ParentID", void 0);
|
|
22879
|
+
exports.UpdateReportCategoryInput = UpdateReportCategoryInput = __decorate([
|
|
22880
|
+
(0, server_1.InputType)()
|
|
22881
|
+
], UpdateReportCategoryInput);
|
|
22882
|
+
let RunReportCategoryViewResult = class RunReportCategoryViewResult {
|
|
22883
|
+
};
|
|
22884
|
+
exports.RunReportCategoryViewResult = RunReportCategoryViewResult;
|
|
22885
|
+
__decorate([
|
|
22886
|
+
(0, server_1.Field)(() => [ReportCategory_]),
|
|
22887
|
+
__metadata("design:type", Array)
|
|
22888
|
+
], RunReportCategoryViewResult.prototype, "Results", void 0);
|
|
22889
|
+
__decorate([
|
|
22890
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22891
|
+
__metadata("design:type", Number)
|
|
22892
|
+
], RunReportCategoryViewResult.prototype, "UserViewRunID", void 0);
|
|
22893
|
+
__decorate([
|
|
22894
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22895
|
+
__metadata("design:type", Number)
|
|
22896
|
+
], RunReportCategoryViewResult.prototype, "RowCount", void 0);
|
|
22897
|
+
__decorate([
|
|
22898
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22899
|
+
__metadata("design:type", Number)
|
|
22900
|
+
], RunReportCategoryViewResult.prototype, "TotalRowCount", void 0);
|
|
22901
|
+
__decorate([
|
|
22902
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22903
|
+
__metadata("design:type", Number)
|
|
22904
|
+
], RunReportCategoryViewResult.prototype, "ExecutionTime", void 0);
|
|
22905
|
+
__decorate([
|
|
22906
|
+
(0, server_1.Field)({ nullable: true }),
|
|
22907
|
+
__metadata("design:type", String)
|
|
22908
|
+
], RunReportCategoryViewResult.prototype, "ErrorMessage", void 0);
|
|
22909
|
+
__decorate([
|
|
22910
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
22911
|
+
__metadata("design:type", Boolean)
|
|
22912
|
+
], RunReportCategoryViewResult.prototype, "Success", void 0);
|
|
22913
|
+
exports.RunReportCategoryViewResult = RunReportCategoryViewResult = __decorate([
|
|
22914
|
+
(0, server_1.ObjectType)()
|
|
22915
|
+
], RunReportCategoryViewResult);
|
|
22916
|
+
let ReportCategoryResolver = class ReportCategoryResolver extends server_1.ResolverBase {
|
|
22917
|
+
async RunReportCategoryViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
22918
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
22919
|
+
}
|
|
22920
|
+
async RunReportCategoryViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
22921
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
22922
|
+
}
|
|
22923
|
+
async RunReportCategoryDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
22924
|
+
input.EntityName = 'Report Categories';
|
|
22925
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
22926
|
+
}
|
|
22927
|
+
async ReportCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
22928
|
+
this.CheckUserReadPermissions('Report Categories', userPayload);
|
|
22929
|
+
const sSQL = `SELECT * FROM [admin].[vwReportCategories] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Report Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22930
|
+
const result = this.MapFieldNamesToCodeNames('Report Categories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
22931
|
+
return result;
|
|
22932
|
+
}
|
|
22933
|
+
async ReportCategoriesArray(reportcategory_, { dataSource, userPayload }, pubSub) {
|
|
22934
|
+
this.CheckUserReadPermissions('Report Categories', userPayload);
|
|
22935
|
+
const sSQL = `SELECT * FROM [admin].[vwReportCategories] WHERE [ParentID]=${reportcategory_.ID} ` + this.getRowLevelSecurityWhereClause('Report Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22936
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Report Categories', await dataSource.query(sSQL));
|
|
22937
|
+
return result;
|
|
22938
|
+
}
|
|
22939
|
+
async ReportsArray(reportcategory_, { dataSource, userPayload }, pubSub) {
|
|
22940
|
+
this.CheckUserReadPermissions('Reports', userPayload);
|
|
22941
|
+
const sSQL = `SELECT * FROM [admin].[vwReports] WHERE [CategoryID]=${reportcategory_.ID} ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22942
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
22943
|
+
return result;
|
|
22944
|
+
}
|
|
22945
|
+
async CreateReportCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22946
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
22947
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Report Categories', this.GetUserFromPayload(userPayload));
|
|
22948
|
+
await entityObject.NewRecord();
|
|
22949
|
+
entityObject.SetMany(input);
|
|
22950
|
+
if (await entityObject.Save()) {
|
|
22951
|
+
await this.AfterCreate(dataSource, input);
|
|
22952
|
+
return entityObject.GetAll();
|
|
22953
|
+
}
|
|
22954
|
+
else
|
|
22955
|
+
return null;
|
|
22956
|
+
}
|
|
22957
|
+
else
|
|
22958
|
+
return null;
|
|
22959
|
+
}
|
|
22960
|
+
async BeforeCreate(dataSource, input) {
|
|
22961
|
+
return true;
|
|
22962
|
+
}
|
|
22963
|
+
async AfterCreate(dataSource, input) {
|
|
22964
|
+
}
|
|
22965
|
+
async UpdateReportCategory(input, { dataSource, userPayload }, pubSub) {
|
|
22966
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
22967
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Report Categories', this.GetUserFromPayload(userPayload));
|
|
22968
|
+
entityObject.LoadFromData(input);
|
|
22969
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
22970
|
+
await this.AfterUpdate(dataSource, input);
|
|
22971
|
+
return entityObject.GetAll();
|
|
22972
|
+
}
|
|
22973
|
+
else
|
|
22974
|
+
return null;
|
|
22975
|
+
}
|
|
22976
|
+
else
|
|
22977
|
+
return null;
|
|
22978
|
+
}
|
|
22979
|
+
async BeforeUpdate(dataSource, input) {
|
|
22980
|
+
const i = input, d = dataSource;
|
|
22981
|
+
return true;
|
|
22982
|
+
}
|
|
22983
|
+
async AfterUpdate(dataSource, input) {
|
|
22984
|
+
const i = input, d = dataSource;
|
|
22985
|
+
}
|
|
22986
|
+
};
|
|
22987
|
+
exports.ReportCategoryResolver = ReportCategoryResolver;
|
|
22988
|
+
__decorate([
|
|
22989
|
+
(0, server_1.Query)(() => RunReportCategoryViewResult),
|
|
22990
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
22991
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22992
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22993
|
+
__metadata("design:type", Function),
|
|
22994
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
22995
|
+
__metadata("design:returntype", Promise)
|
|
22996
|
+
], ReportCategoryResolver.prototype, "RunReportCategoryViewByID", null);
|
|
22997
|
+
__decorate([
|
|
22998
|
+
(0, server_1.Query)(() => RunReportCategoryViewResult),
|
|
22999
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
23000
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23001
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23002
|
+
__metadata("design:type", Function),
|
|
23003
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
23004
|
+
__metadata("design:returntype", Promise)
|
|
23005
|
+
], ReportCategoryResolver.prototype, "RunReportCategoryViewByName", null);
|
|
23006
|
+
__decorate([
|
|
23007
|
+
(0, server_1.Query)(() => RunReportCategoryViewResult),
|
|
23008
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
23009
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23010
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23011
|
+
__metadata("design:type", Function),
|
|
23012
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
23013
|
+
__metadata("design:returntype", Promise)
|
|
23014
|
+
], ReportCategoryResolver.prototype, "RunReportCategoryDynamicView", null);
|
|
23015
|
+
__decorate([
|
|
23016
|
+
(0, server_1.Query)(() => ReportCategory_, { nullable: true }),
|
|
23017
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
23018
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23019
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23020
|
+
__metadata("design:type", Function),
|
|
23021
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
23022
|
+
__metadata("design:returntype", Promise)
|
|
23023
|
+
], ReportCategoryResolver.prototype, "ReportCategory", null);
|
|
23024
|
+
__decorate([
|
|
23025
|
+
(0, server_1.FieldResolver)(() => [ReportCategory_]),
|
|
23026
|
+
__param(0, (0, server_1.Root)()),
|
|
23027
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23028
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23029
|
+
__metadata("design:type", Function),
|
|
23030
|
+
__metadata("design:paramtypes", [ReportCategory_, Object, server_1.PubSubEngine]),
|
|
23031
|
+
__metadata("design:returntype", Promise)
|
|
23032
|
+
], ReportCategoryResolver.prototype, "ReportCategoriesArray", null);
|
|
23033
|
+
__decorate([
|
|
23034
|
+
(0, server_1.FieldResolver)(() => [Report_]),
|
|
23035
|
+
__param(0, (0, server_1.Root)()),
|
|
23036
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23037
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23038
|
+
__metadata("design:type", Function),
|
|
23039
|
+
__metadata("design:paramtypes", [ReportCategory_, Object, server_1.PubSubEngine]),
|
|
23040
|
+
__metadata("design:returntype", Promise)
|
|
23041
|
+
], ReportCategoryResolver.prototype, "ReportsArray", null);
|
|
23042
|
+
__decorate([
|
|
23043
|
+
(0, server_1.Mutation)(() => ReportCategory_),
|
|
23044
|
+
__param(0, (0, server_1.Arg)('input', () => CreateReportCategoryInput)),
|
|
23045
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23046
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23047
|
+
__metadata("design:type", Function),
|
|
23048
|
+
__metadata("design:paramtypes", [CreateReportCategoryInput, Object, server_1.PubSubEngine]),
|
|
23049
|
+
__metadata("design:returntype", Promise)
|
|
23050
|
+
], ReportCategoryResolver.prototype, "CreateReportCategory", null);
|
|
23051
|
+
__decorate([
|
|
23052
|
+
(0, server_1.Mutation)(() => ReportCategory_),
|
|
23053
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateReportCategoryInput)),
|
|
23054
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23055
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23056
|
+
__metadata("design:type", Function),
|
|
23057
|
+
__metadata("design:paramtypes", [UpdateReportCategoryInput, Object, server_1.PubSubEngine]),
|
|
23058
|
+
__metadata("design:returntype", Promise)
|
|
23059
|
+
], ReportCategoryResolver.prototype, "UpdateReportCategory", null);
|
|
23060
|
+
exports.ReportCategoryResolver = ReportCategoryResolver = __decorate([
|
|
23061
|
+
(0, server_1.Resolver)(ReportCategory_)
|
|
23062
|
+
], ReportCategoryResolver);
|
|
22504
23063
|
//# sourceMappingURL=generated.js.map
|