@memberjunction/server 1.1.3 → 1.2.1
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/CHANGELOG.json +187 -1
- package/CHANGELOG.md +44 -2
- package/dist/generated/generated.d.ts +292 -5
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1601 -16
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts +3 -0
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +21 -0
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts +7 -10
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +102 -40
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/package.json +13 -13
- package/src/generated/generated.ts +1223 -15
- package/src/generic/RunViewResolver.ts +21 -0
- package/src/resolvers/AskSkipResolver.ts +132 -52
|
@@ -42,7 +42,8 @@ exports.Queue_ = exports.QueueTypeResolver = exports.RunQueueTypeViewResult = ex
|
|
|
42
42
|
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 = exports.UpdateQueueInput = exports.CreateQueueInput = void 0;
|
|
43
43
|
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_ = exports.WorkspaceItemResolver = exports.RunWorkspaceItemViewResult = void 0;
|
|
44
44
|
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 = exports.RunQueryCategoryViewResult = exports.UpdateQueryCategoryInput = void 0;
|
|
45
|
-
exports.VersionInstallationResolver = exports.RunVersionInstallationViewResult = exports.UpdateVersionInstallationInput = exports.CreateVersionInstallationInput = exports.VersionInstallation_ = exports.FileEntityRecordLinkResolver = exports.RunFileEntityRecordLinkViewResult = exports.UpdateFileEntityRecordLinkInput = exports.CreateFileEntityRecordLinkInput = exports.FileEntityRecordLink_ = exports.FileCategoryResolver = exports.RunFileCategoryViewResult = exports.UpdateFileCategoryInput = exports.CreateFileCategoryInput = exports.FileCategory_ = exports.FileResolver = exports.RunFileViewResult = exports.UpdateFileInput = exports.CreateFileInput = exports.File_ = exports.FileStorageProviderResolver = exports.RunFileStorageProviderViewResult = exports.UpdateFileStorageProviderInput = exports.CreateFileStorageProviderInput = exports.FileStorageProvider_ = 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 = exports.RunDataContextViewResult = exports.UpdateDataContextInput = void 0;
|
|
45
|
+
exports.CreateEntityDocumentSettingInput = exports.EntityDocumentSetting_ = exports.DuplicateRunDetailMatchResolver = exports.RunDuplicateRunDetailMatchViewResult = exports.UpdateDuplicateRunDetailMatchInput = exports.CreateDuplicateRunDetailMatchInput = exports.DuplicateRunDetailMatch_ = exports.VersionInstallationResolver = exports.RunVersionInstallationViewResult = exports.UpdateVersionInstallationInput = exports.CreateVersionInstallationInput = exports.VersionInstallation_ = exports.FileEntityRecordLinkResolver = exports.RunFileEntityRecordLinkViewResult = exports.UpdateFileEntityRecordLinkInput = exports.CreateFileEntityRecordLinkInput = exports.FileEntityRecordLink_ = exports.FileCategoryResolver = exports.RunFileCategoryViewResult = exports.UpdateFileCategoryInput = exports.CreateFileCategoryInput = exports.FileCategory_ = exports.FileResolver = exports.RunFileViewResult = exports.UpdateFileInput = exports.CreateFileInput = exports.File_ = exports.FileStorageProviderResolver = exports.RunFileStorageProviderViewResult = exports.UpdateFileStorageProviderInput = exports.CreateFileStorageProviderInput = exports.FileStorageProvider_ = 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 = exports.RunDataContextViewResult = exports.UpdateDataContextInput = void 0;
|
|
46
|
+
exports.DuplicateRunDetailResolver = exports.RunDuplicateRunDetailViewResult = exports.UpdateDuplicateRunDetailInput = exports.CreateDuplicateRunDetailInput = exports.DuplicateRunDetail_ = exports.DuplicateRunResolver = exports.RunDuplicateRunViewResult = exports.UpdateDuplicateRunInput = exports.CreateDuplicateRunInput = exports.DuplicateRun_ = exports.EntitySettingResolver = exports.RunEntitySettingViewResult = exports.UpdateEntitySettingInput = exports.CreateEntitySettingInput = exports.EntitySetting_ = exports.EntityDocumentSettingResolver = exports.RunEntityDocumentSettingViewResult = exports.UpdateEntityDocumentSettingInput = void 0;
|
|
46
47
|
const server_1 = require("@memberjunction/server");
|
|
47
48
|
const core_1 = require("@memberjunction/core");
|
|
48
49
|
const class_validator_1 = require("class-validator");
|
|
@@ -4028,6 +4029,14 @@ __decorate([
|
|
|
4028
4029
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.UserViewCategory_]),
|
|
4029
4030
|
__metadata("design:type", Array)
|
|
4030
4031
|
], Entity_.prototype, "UserViewCategoriesArray", void 0);
|
|
4032
|
+
__decorate([
|
|
4033
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.EntitySetting_]),
|
|
4034
|
+
__metadata("design:type", Array)
|
|
4035
|
+
], Entity_.prototype, "EntitySettingsArray", void 0);
|
|
4036
|
+
__decorate([
|
|
4037
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
4038
|
+
__metadata("design:type", Array)
|
|
4039
|
+
], Entity_.prototype, "DuplicateRunsArray", void 0);
|
|
4031
4040
|
exports.Entity_ = Entity_ = __decorate([
|
|
4032
4041
|
(0, server_1.ObjectType)({ description: 'Catalog of all entities across all schemas' })
|
|
4033
4042
|
], Entity_);
|
|
@@ -4564,6 +4573,18 @@ let EntityResolverBase = class EntityResolverBase extends server_1.ResolverBase
|
|
|
4564
4573
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
4565
4574
|
return result;
|
|
4566
4575
|
}
|
|
4576
|
+
async EntitySettingsArray(entity_, { dataSource, userPayload }, pubSub) {
|
|
4577
|
+
this.CheckUserReadPermissions('Entity Settings', userPayload);
|
|
4578
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntitySettings] WHERE [EntityID]=${entity_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Settings', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
4579
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Entity Settings', await dataSource.query(sSQL));
|
|
4580
|
+
return result;
|
|
4581
|
+
}
|
|
4582
|
+
async DuplicateRunsArray(entity_, { dataSource, userPayload }, pubSub) {
|
|
4583
|
+
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
4584
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [EntityID]=${entity_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
4585
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
4586
|
+
return result;
|
|
4587
|
+
}
|
|
4567
4588
|
async CreateEntity(input, { dataSource, userPayload }, pubSub) {
|
|
4568
4589
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
4569
4590
|
const entityObject = await new core_1.Metadata().GetEntityObject('Entities', this.GetUserFromPayload(userPayload));
|
|
@@ -4925,6 +4946,24 @@ __decorate([
|
|
|
4925
4946
|
__metadata("design:paramtypes", [Entity_, Object, server_1.PubSubEngine]),
|
|
4926
4947
|
__metadata("design:returntype", Promise)
|
|
4927
4948
|
], EntityResolverBase.prototype, "UserViewCategoriesArray", null);
|
|
4949
|
+
__decorate([
|
|
4950
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.EntitySetting_]),
|
|
4951
|
+
__param(0, (0, server_1.Root)()),
|
|
4952
|
+
__param(1, (0, server_1.Ctx)()),
|
|
4953
|
+
__param(2, (0, server_1.PubSub)()),
|
|
4954
|
+
__metadata("design:type", Function),
|
|
4955
|
+
__metadata("design:paramtypes", [Entity_, Object, server_1.PubSubEngine]),
|
|
4956
|
+
__metadata("design:returntype", Promise)
|
|
4957
|
+
], EntityResolverBase.prototype, "EntitySettingsArray", null);
|
|
4958
|
+
__decorate([
|
|
4959
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
4960
|
+
__param(0, (0, server_1.Root)()),
|
|
4961
|
+
__param(1, (0, server_1.Ctx)()),
|
|
4962
|
+
__param(2, (0, server_1.PubSub)()),
|
|
4963
|
+
__metadata("design:type", Function),
|
|
4964
|
+
__metadata("design:paramtypes", [Entity_, Object, server_1.PubSubEngine]),
|
|
4965
|
+
__metadata("design:returntype", Promise)
|
|
4966
|
+
], EntityResolverBase.prototype, "DuplicateRunsArray", null);
|
|
4928
4967
|
__decorate([
|
|
4929
4968
|
(0, server_1.Mutation)(() => Entity_),
|
|
4930
4969
|
__param(0, (0, server_1.Arg)('input', () => CreateEntityInput)),
|
|
@@ -5141,6 +5180,10 @@ __decorate([
|
|
|
5141
5180
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.QueryCategory_]),
|
|
5142
5181
|
__metadata("design:type", Array)
|
|
5143
5182
|
], User_.prototype, "QueryCategoriesArray", void 0);
|
|
5183
|
+
__decorate([
|
|
5184
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
5185
|
+
__metadata("design:type", Array)
|
|
5186
|
+
], User_.prototype, "DuplicateRunsArray", void 0);
|
|
5144
5187
|
exports.User_ = User_ = __decorate([
|
|
5145
5188
|
(0, server_1.ObjectType)({ description: 'A list of all users who have or had access to the system' })
|
|
5146
5189
|
], User_);
|
|
@@ -5437,6 +5480,12 @@ let UserResolverBase = class UserResolverBase extends server_1.ResolverBase {
|
|
|
5437
5480
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Categories', await dataSource.query(sSQL));
|
|
5438
5481
|
return result;
|
|
5439
5482
|
}
|
|
5483
|
+
async DuplicateRunsArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5484
|
+
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
5485
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [StartedByUserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5486
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
5487
|
+
return result;
|
|
5488
|
+
}
|
|
5440
5489
|
async CreateUser(input, { dataSource, userPayload }, pubSub) {
|
|
5441
5490
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
5442
5491
|
const entityObject = await new core_1.Metadata().GetEntityObject('Users', this.GetUserFromPayload(userPayload));
|
|
@@ -5745,6 +5794,15 @@ __decorate([
|
|
|
5745
5794
|
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5746
5795
|
__metadata("design:returntype", Promise)
|
|
5747
5796
|
], UserResolverBase.prototype, "QueryCategoriesArray", null);
|
|
5797
|
+
__decorate([
|
|
5798
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
5799
|
+
__param(0, (0, server_1.Root)()),
|
|
5800
|
+
__param(1, (0, server_1.Ctx)()),
|
|
5801
|
+
__param(2, (0, server_1.PubSub)()),
|
|
5802
|
+
__metadata("design:type", Function),
|
|
5803
|
+
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5804
|
+
__metadata("design:returntype", Promise)
|
|
5805
|
+
], UserResolverBase.prototype, "DuplicateRunsArray", null);
|
|
5748
5806
|
__decorate([
|
|
5749
5807
|
(0, server_1.Mutation)(() => User_),
|
|
5750
5808
|
__param(0, (0, server_1.Arg)('input', () => CreateUserInput)),
|
|
@@ -9397,6 +9455,10 @@ __decorate([
|
|
|
9397
9455
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.ListDetail_]),
|
|
9398
9456
|
__metadata("design:type", Array)
|
|
9399
9457
|
], List_.prototype, "ListDetailsArray", void 0);
|
|
9458
|
+
__decorate([
|
|
9459
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
9460
|
+
__metadata("design:type", Array)
|
|
9461
|
+
], List_.prototype, "DuplicateRunsArray", void 0);
|
|
9400
9462
|
exports.List_ = List_ = __decorate([
|
|
9401
9463
|
(0, server_1.ObjectType)({ description: 'Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.' })
|
|
9402
9464
|
], List_);
|
|
@@ -9521,6 +9583,12 @@ let ListResolver = class ListResolver extends server_1.ResolverBase {
|
|
|
9521
9583
|
const result = this.ArrayMapFieldNamesToCodeNames('List Details', await dataSource.query(sSQL));
|
|
9522
9584
|
return result;
|
|
9523
9585
|
}
|
|
9586
|
+
async DuplicateRunsArray(list_, { dataSource, userPayload }, pubSub) {
|
|
9587
|
+
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
9588
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [SourceListID]=${list_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
9589
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
9590
|
+
return result;
|
|
9591
|
+
}
|
|
9524
9592
|
async CreateList(input, { dataSource, userPayload }, pubSub) {
|
|
9525
9593
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
9526
9594
|
const entityObject = await new core_1.Metadata().GetEntityObject('Lists', this.GetUserFromPayload(userPayload));
|
|
@@ -9631,6 +9699,15 @@ __decorate([
|
|
|
9631
9699
|
__metadata("design:paramtypes", [List_, Object, server_1.PubSubEngine]),
|
|
9632
9700
|
__metadata("design:returntype", Promise)
|
|
9633
9701
|
], ListResolver.prototype, "ListDetailsArray", null);
|
|
9702
|
+
__decorate([
|
|
9703
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRun_]),
|
|
9704
|
+
__param(0, (0, server_1.Root)()),
|
|
9705
|
+
__param(1, (0, server_1.Ctx)()),
|
|
9706
|
+
__param(2, (0, server_1.PubSub)()),
|
|
9707
|
+
__metadata("design:type", Function),
|
|
9708
|
+
__metadata("design:paramtypes", [List_, Object, server_1.PubSubEngine]),
|
|
9709
|
+
__metadata("design:returntype", Promise)
|
|
9710
|
+
], ListResolver.prototype, "DuplicateRunsArray", null);
|
|
9634
9711
|
__decorate([
|
|
9635
9712
|
(0, server_1.Mutation)(() => List_),
|
|
9636
9713
|
__param(0, (0, server_1.Arg)('input', () => CreateListInput)),
|
|
@@ -12736,8 +12813,12 @@ __decorate([
|
|
|
12736
12813
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.VectorIndex_]),
|
|
12737
12814
|
__metadata("design:type", Array)
|
|
12738
12815
|
], AIModel_.prototype, "VectorIndexesArray", void 0);
|
|
12816
|
+
__decorate([
|
|
12817
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.EntityDocument_]),
|
|
12818
|
+
__metadata("design:type", Array)
|
|
12819
|
+
], AIModel_.prototype, "EntityDocumentsArray", void 0);
|
|
12739
12820
|
exports.AIModel_ = AIModel_ = __decorate([
|
|
12740
|
-
(0, server_1.ObjectType)({ description: 'Catalog of all AI Models configured in the system
|
|
12821
|
+
(0, server_1.ObjectType)({ description: 'Catalog of all AI Models configured in the system' })
|
|
12741
12822
|
], AIModel_);
|
|
12742
12823
|
let UpdateAIModelInput = class UpdateAIModelInput {
|
|
12743
12824
|
};
|
|
@@ -12866,6 +12947,12 @@ let AIModelResolver = class AIModelResolver extends server_1.ResolverBase {
|
|
|
12866
12947
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
12867
12948
|
return result;
|
|
12868
12949
|
}
|
|
12950
|
+
async EntityDocumentsArray(aimodel_, { dataSource, userPayload }, pubSub) {
|
|
12951
|
+
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
12952
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [AIModelID]=${aimodel_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
12953
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
12954
|
+
return result;
|
|
12955
|
+
}
|
|
12869
12956
|
async UpdateAIModel(input, { dataSource, userPayload }, pubSub) {
|
|
12870
12957
|
if (await this.BeforeUpdate(dataSource, input)) {
|
|
12871
12958
|
const entityObject = await new core_1.Metadata().GetEntityObject('AI Models', this.GetUserFromPayload(userPayload));
|
|
@@ -12969,6 +13056,15 @@ __decorate([
|
|
|
12969
13056
|
__metadata("design:paramtypes", [AIModel_, Object, server_1.PubSubEngine]),
|
|
12970
13057
|
__metadata("design:returntype", Promise)
|
|
12971
13058
|
], AIModelResolver.prototype, "VectorIndexesArray", null);
|
|
13059
|
+
__decorate([
|
|
13060
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.EntityDocument_]),
|
|
13061
|
+
__param(0, (0, server_1.Root)()),
|
|
13062
|
+
__param(1, (0, server_1.Ctx)()),
|
|
13063
|
+
__param(2, (0, server_1.PubSub)()),
|
|
13064
|
+
__metadata("design:type", Function),
|
|
13065
|
+
__metadata("design:paramtypes", [AIModel_, Object, server_1.PubSubEngine]),
|
|
13066
|
+
__metadata("design:returntype", Promise)
|
|
13067
|
+
], AIModelResolver.prototype, "EntityDocumentsArray", null);
|
|
12972
13068
|
__decorate([
|
|
12973
13069
|
(0, server_1.Mutation)(() => AIModel_),
|
|
12974
13070
|
__param(0, (0, server_1.Arg)('input', () => UpdateAIModelInput)),
|
|
@@ -17833,8 +17929,9 @@ __decorate([
|
|
|
17833
17929
|
__metadata("design:type", Number)
|
|
17834
17930
|
], Conversation_.prototype, "LinkedEntityID", void 0);
|
|
17835
17931
|
__decorate([
|
|
17836
|
-
(0, server_1.Field)(
|
|
17837
|
-
|
|
17932
|
+
(0, server_1.Field)({ nullable: true }),
|
|
17933
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
17934
|
+
__metadata("design:type", String)
|
|
17838
17935
|
], Conversation_.prototype, "LinkedRecordID", void 0);
|
|
17839
17936
|
__decorate([
|
|
17840
17937
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
@@ -17903,8 +18000,8 @@ __decorate([
|
|
|
17903
18000
|
__metadata("design:type", Number)
|
|
17904
18001
|
], CreateConversationInput.prototype, "LinkedEntityID", void 0);
|
|
17905
18002
|
__decorate([
|
|
17906
|
-
(0, server_1.Field)(
|
|
17907
|
-
__metadata("design:type",
|
|
18003
|
+
(0, server_1.Field)({ nullable: true }),
|
|
18004
|
+
__metadata("design:type", String)
|
|
17908
18005
|
], CreateConversationInput.prototype, "LinkedRecordID", void 0);
|
|
17909
18006
|
__decorate([
|
|
17910
18007
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
@@ -17949,8 +18046,8 @@ __decorate([
|
|
|
17949
18046
|
__metadata("design:type", Number)
|
|
17950
18047
|
], UpdateConversationInput.prototype, "LinkedEntityID", void 0);
|
|
17951
18048
|
__decorate([
|
|
17952
|
-
(0, server_1.Field)(
|
|
17953
|
-
__metadata("design:type",
|
|
18049
|
+
(0, server_1.Field)({ nullable: true }),
|
|
18050
|
+
__metadata("design:type", String)
|
|
17954
18051
|
], UpdateConversationInput.prototype, "LinkedRecordID", void 0);
|
|
17955
18052
|
__decorate([
|
|
17956
18053
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
@@ -19046,6 +19143,10 @@ __decorate([
|
|
|
19046
19143
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.RecordMergeDeletionLog_]),
|
|
19047
19144
|
__metadata("design:type", Array)
|
|
19048
19145
|
], RecordMergeLog_.prototype, "RecordMergeDeletionLogsArray", void 0);
|
|
19146
|
+
__decorate([
|
|
19147
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRunDetailMatch_]),
|
|
19148
|
+
__metadata("design:type", Array)
|
|
19149
|
+
], RecordMergeLog_.prototype, "DuplicateRunDetailMatchesArray", void 0);
|
|
19049
19150
|
exports.RecordMergeLog_ = RecordMergeLog_ = __decorate([
|
|
19050
19151
|
(0, server_1.ObjectType)()
|
|
19051
19152
|
], RecordMergeLog_);
|
|
@@ -19202,6 +19303,12 @@ let RecordMergeLogResolver = class RecordMergeLogResolver extends server_1.Resol
|
|
|
19202
19303
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Merge Deletion Logs', await dataSource.query(sSQL));
|
|
19203
19304
|
return result;
|
|
19204
19305
|
}
|
|
19306
|
+
async DuplicateRunDetailMatchesArray(recordmergelog_, { dataSource, userPayload }, pubSub) {
|
|
19307
|
+
this.CheckUserReadPermissions('Duplicate Run Detail Matches', userPayload);
|
|
19308
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetailMatches] WHERE [RecordMergeLogID]=${recordmergelog_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Run Detail Matches', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
19309
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Detail Matches', await dataSource.query(sSQL));
|
|
19310
|
+
return result;
|
|
19311
|
+
}
|
|
19205
19312
|
async CreateRecordMergeLog(input, { dataSource, userPayload }, pubSub) {
|
|
19206
19313
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
19207
19314
|
const entityObject = await new core_1.Metadata().GetEntityObject('Record Merge Logs', this.GetUserFromPayload(userPayload));
|
|
@@ -19290,6 +19397,15 @@ __decorate([
|
|
|
19290
19397
|
__metadata("design:paramtypes", [RecordMergeLog_, Object, server_1.PubSubEngine]),
|
|
19291
19398
|
__metadata("design:returntype", Promise)
|
|
19292
19399
|
], RecordMergeLogResolver.prototype, "RecordMergeDeletionLogsArray", null);
|
|
19400
|
+
__decorate([
|
|
19401
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRunDetailMatch_]),
|
|
19402
|
+
__param(0, (0, server_1.Root)()),
|
|
19403
|
+
__param(1, (0, server_1.Ctx)()),
|
|
19404
|
+
__param(2, (0, server_1.PubSub)()),
|
|
19405
|
+
__metadata("design:type", Function),
|
|
19406
|
+
__metadata("design:paramtypes", [RecordMergeLog_, Object, server_1.PubSubEngine]),
|
|
19407
|
+
__metadata("design:returntype", Promise)
|
|
19408
|
+
], RecordMergeLogResolver.prototype, "DuplicateRunDetailMatchesArray", null);
|
|
19293
19409
|
__decorate([
|
|
19294
19410
|
(0, server_1.Mutation)(() => RecordMergeLog_),
|
|
19295
19411
|
__param(0, (0, server_1.Arg)('input', () => CreateRecordMergeLogInput)),
|
|
@@ -22078,6 +22194,22 @@ __decorate([
|
|
|
22078
22194
|
(0, server_1.Field)({ nullable: true }),
|
|
22079
22195
|
__metadata("design:type", String)
|
|
22080
22196
|
], EntityDocument_.prototype, "Template", void 0);
|
|
22197
|
+
__decorate([
|
|
22198
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22199
|
+
__metadata("design:type", Number)
|
|
22200
|
+
], EntityDocument_.prototype, "VectorDatabaseID", void 0);
|
|
22201
|
+
__decorate([
|
|
22202
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22203
|
+
__metadata("design:type", Number)
|
|
22204
|
+
], EntityDocument_.prototype, "AIModelID", void 0);
|
|
22205
|
+
__decorate([
|
|
22206
|
+
(0, server_1.Field)(() => server_1.Float, { description: 'Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.' }),
|
|
22207
|
+
__metadata("design:type", Number)
|
|
22208
|
+
], EntityDocument_.prototype, "PotentialMatchThreshold", void 0);
|
|
22209
|
+
__decorate([
|
|
22210
|
+
(0, server_1.Field)(() => server_1.Float, { description: 'Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.' }),
|
|
22211
|
+
__metadata("design:type", Number)
|
|
22212
|
+
], EntityDocument_.prototype, "AbsoluteMatchThreshold", void 0);
|
|
22081
22213
|
__decorate([
|
|
22082
22214
|
(0, server_1.Field)(),
|
|
22083
22215
|
(0, class_validator_1.MaxLength)(8),
|
|
@@ -22088,14 +22220,6 @@ __decorate([
|
|
|
22088
22220
|
(0, class_validator_1.MaxLength)(8),
|
|
22089
22221
|
__metadata("design:type", Date)
|
|
22090
22222
|
], EntityDocument_.prototype, "UpdatedAt", void 0);
|
|
22091
|
-
__decorate([
|
|
22092
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
22093
|
-
__metadata("design:type", Number)
|
|
22094
|
-
], EntityDocument_.prototype, "VectorDatabaseID", void 0);
|
|
22095
|
-
__decorate([
|
|
22096
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
22097
|
-
__metadata("design:type", Number)
|
|
22098
|
-
], EntityDocument_.prototype, "AIModelID", void 0);
|
|
22099
22223
|
__decorate([
|
|
22100
22224
|
(0, server_1.Field)(),
|
|
22101
22225
|
(0, class_validator_1.MaxLength)(510),
|
|
@@ -22110,6 +22234,10 @@ __decorate([
|
|
|
22110
22234
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.EntityDocumentRun_]),
|
|
22111
22235
|
__metadata("design:type", Array)
|
|
22112
22236
|
], EntityDocument_.prototype, "EntityDocumentRunsArray", void 0);
|
|
22237
|
+
__decorate([
|
|
22238
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.EntityDocumentSetting_]),
|
|
22239
|
+
__metadata("design:type", Array)
|
|
22240
|
+
], EntityDocument_.prototype, "EntityDocumentSettingsArray", void 0);
|
|
22113
22241
|
exports.EntityDocument_ = EntityDocument_ = __decorate([
|
|
22114
22242
|
(0, server_1.ObjectType)()
|
|
22115
22243
|
], EntityDocument_);
|
|
@@ -22144,6 +22272,14 @@ __decorate([
|
|
|
22144
22272
|
(0, server_1.Field)(() => server_1.Int),
|
|
22145
22273
|
__metadata("design:type", Number)
|
|
22146
22274
|
], CreateEntityDocumentInput.prototype, "AIModelID", void 0);
|
|
22275
|
+
__decorate([
|
|
22276
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
22277
|
+
__metadata("design:type", Number)
|
|
22278
|
+
], CreateEntityDocumentInput.prototype, "PotentialMatchThreshold", void 0);
|
|
22279
|
+
__decorate([
|
|
22280
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
22281
|
+
__metadata("design:type", Number)
|
|
22282
|
+
], CreateEntityDocumentInput.prototype, "AbsoluteMatchThreshold", void 0);
|
|
22147
22283
|
exports.CreateEntityDocumentInput = CreateEntityDocumentInput = __decorate([
|
|
22148
22284
|
(0, server_1.InputType)()
|
|
22149
22285
|
], CreateEntityDocumentInput);
|
|
@@ -22182,6 +22318,14 @@ __decorate([
|
|
|
22182
22318
|
(0, server_1.Field)(() => server_1.Int),
|
|
22183
22319
|
__metadata("design:type", Number)
|
|
22184
22320
|
], UpdateEntityDocumentInput.prototype, "AIModelID", void 0);
|
|
22321
|
+
__decorate([
|
|
22322
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
22323
|
+
__metadata("design:type", Number)
|
|
22324
|
+
], UpdateEntityDocumentInput.prototype, "PotentialMatchThreshold", void 0);
|
|
22325
|
+
__decorate([
|
|
22326
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
22327
|
+
__metadata("design:type", Number)
|
|
22328
|
+
], UpdateEntityDocumentInput.prototype, "AbsoluteMatchThreshold", void 0);
|
|
22185
22329
|
exports.UpdateEntityDocumentInput = UpdateEntityDocumentInput = __decorate([
|
|
22186
22330
|
(0, server_1.InputType)()
|
|
22187
22331
|
], UpdateEntityDocumentInput);
|
|
@@ -22242,6 +22386,12 @@ let EntityDocumentResolver = class EntityDocumentResolver extends server_1.Resol
|
|
|
22242
22386
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Document Runs', await dataSource.query(sSQL));
|
|
22243
22387
|
return result;
|
|
22244
22388
|
}
|
|
22389
|
+
async EntityDocumentSettingsArray(entitydocument_, { dataSource, userPayload }, pubSub) {
|
|
22390
|
+
this.CheckUserReadPermissions('Entity Document Settings', userPayload);
|
|
22391
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocumentSettings] WHERE [EntityDocumentID]=${entitydocument_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Document Settings', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
22392
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Entity Document Settings', await dataSource.query(sSQL));
|
|
22393
|
+
return result;
|
|
22394
|
+
}
|
|
22245
22395
|
async CreateEntityDocument(input, { dataSource, userPayload }, pubSub) {
|
|
22246
22396
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
22247
22397
|
const entityObject = await new core_1.Metadata().GetEntityObject('Entity Documents', this.GetUserFromPayload(userPayload));
|
|
@@ -22330,6 +22480,15 @@ __decorate([
|
|
|
22330
22480
|
__metadata("design:paramtypes", [EntityDocument_, Object, server_1.PubSubEngine]),
|
|
22331
22481
|
__metadata("design:returntype", Promise)
|
|
22332
22482
|
], EntityDocumentResolver.prototype, "EntityDocumentRunsArray", null);
|
|
22483
|
+
__decorate([
|
|
22484
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.EntityDocumentSetting_]),
|
|
22485
|
+
__param(0, (0, server_1.Root)()),
|
|
22486
|
+
__param(1, (0, server_1.Ctx)()),
|
|
22487
|
+
__param(2, (0, server_1.PubSub)()),
|
|
22488
|
+
__metadata("design:type", Function),
|
|
22489
|
+
__metadata("design:paramtypes", [EntityDocument_, Object, server_1.PubSubEngine]),
|
|
22490
|
+
__metadata("design:returntype", Promise)
|
|
22491
|
+
], EntityDocumentResolver.prototype, "EntityDocumentSettingsArray", null);
|
|
22333
22492
|
__decorate([
|
|
22334
22493
|
(0, server_1.Mutation)(() => EntityDocument_),
|
|
22335
22494
|
__param(0, (0, server_1.Arg)('input', () => CreateEntityDocumentInput)),
|
|
@@ -25345,4 +25504,1430 @@ __decorate([
|
|
|
25345
25504
|
exports.VersionInstallationResolver = VersionInstallationResolver = __decorate([
|
|
25346
25505
|
(0, server_1.Resolver)(VersionInstallation_)
|
|
25347
25506
|
], VersionInstallationResolver);
|
|
25507
|
+
let DuplicateRunDetailMatch_ = class DuplicateRunDetailMatch_ {
|
|
25508
|
+
};
|
|
25509
|
+
exports.DuplicateRunDetailMatch_ = DuplicateRunDetailMatch_;
|
|
25510
|
+
__decorate([
|
|
25511
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25512
|
+
__metadata("design:type", Number)
|
|
25513
|
+
], DuplicateRunDetailMatch_.prototype, "ID", void 0);
|
|
25514
|
+
__decorate([
|
|
25515
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25516
|
+
__metadata("design:type", Number)
|
|
25517
|
+
], DuplicateRunDetailMatch_.prototype, "DuplicateRunDetailID", void 0);
|
|
25518
|
+
__decorate([
|
|
25519
|
+
(0, server_1.Field)(),
|
|
25520
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
25521
|
+
__metadata("design:type", String)
|
|
25522
|
+
], DuplicateRunDetailMatch_.prototype, "MatchRecordID", void 0);
|
|
25523
|
+
__decorate([
|
|
25524
|
+
(0, server_1.Field)(() => server_1.Float, { description: 'Value between 0 and 1 designating the computed probability of a match' }),
|
|
25525
|
+
__metadata("design:type", Number)
|
|
25526
|
+
], DuplicateRunDetailMatch_.prototype, "MatchProbability", void 0);
|
|
25527
|
+
__decorate([
|
|
25528
|
+
(0, server_1.Field)(),
|
|
25529
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25530
|
+
__metadata("design:type", Date)
|
|
25531
|
+
], DuplicateRunDetailMatch_.prototype, "MatchedAt", void 0);
|
|
25532
|
+
__decorate([
|
|
25533
|
+
(0, server_1.Field)(),
|
|
25534
|
+
(0, class_validator_1.MaxLength)(40),
|
|
25535
|
+
__metadata("design:type", String)
|
|
25536
|
+
], DuplicateRunDetailMatch_.prototype, "Action", void 0);
|
|
25537
|
+
__decorate([
|
|
25538
|
+
(0, server_1.Field)(),
|
|
25539
|
+
(0, class_validator_1.MaxLength)(40),
|
|
25540
|
+
__metadata("design:type", String)
|
|
25541
|
+
], DuplicateRunDetailMatch_.prototype, "ApprovalStatus", void 0);
|
|
25542
|
+
__decorate([
|
|
25543
|
+
(0, server_1.Field)(),
|
|
25544
|
+
(0, class_validator_1.MaxLength)(40),
|
|
25545
|
+
__metadata("design:type", String)
|
|
25546
|
+
], DuplicateRunDetailMatch_.prototype, "MergeStatus", void 0);
|
|
25547
|
+
__decorate([
|
|
25548
|
+
(0, server_1.Field)(),
|
|
25549
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25550
|
+
__metadata("design:type", Date)
|
|
25551
|
+
], DuplicateRunDetailMatch_.prototype, "MergedAt", void 0);
|
|
25552
|
+
__decorate([
|
|
25553
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25554
|
+
__metadata("design:type", Number)
|
|
25555
|
+
], DuplicateRunDetailMatch_.prototype, "RecordMergeLogID", void 0);
|
|
25556
|
+
__decorate([
|
|
25557
|
+
(0, server_1.Field)(),
|
|
25558
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25559
|
+
__metadata("design:type", Date)
|
|
25560
|
+
], DuplicateRunDetailMatch_.prototype, "CreatedAt", void 0);
|
|
25561
|
+
__decorate([
|
|
25562
|
+
(0, server_1.Field)(),
|
|
25563
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25564
|
+
__metadata("design:type", Date)
|
|
25565
|
+
], DuplicateRunDetailMatch_.prototype, "UpdatedAt", void 0);
|
|
25566
|
+
exports.DuplicateRunDetailMatch_ = DuplicateRunDetailMatch_ = __decorate([
|
|
25567
|
+
(0, server_1.ObjectType)()
|
|
25568
|
+
], DuplicateRunDetailMatch_);
|
|
25569
|
+
let CreateDuplicateRunDetailMatchInput = class CreateDuplicateRunDetailMatchInput {
|
|
25570
|
+
};
|
|
25571
|
+
exports.CreateDuplicateRunDetailMatchInput = CreateDuplicateRunDetailMatchInput;
|
|
25572
|
+
__decorate([
|
|
25573
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25574
|
+
__metadata("design:type", Number)
|
|
25575
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "DuplicateRunDetailID", void 0);
|
|
25576
|
+
__decorate([
|
|
25577
|
+
(0, server_1.Field)(),
|
|
25578
|
+
__metadata("design:type", String)
|
|
25579
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "MatchRecordID", void 0);
|
|
25580
|
+
__decorate([
|
|
25581
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
25582
|
+
__metadata("design:type", Number)
|
|
25583
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "MatchProbability", void 0);
|
|
25584
|
+
__decorate([
|
|
25585
|
+
(0, server_1.Field)(),
|
|
25586
|
+
__metadata("design:type", Date)
|
|
25587
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "MatchedAt", void 0);
|
|
25588
|
+
__decorate([
|
|
25589
|
+
(0, server_1.Field)(),
|
|
25590
|
+
__metadata("design:type", String)
|
|
25591
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "Action", void 0);
|
|
25592
|
+
__decorate([
|
|
25593
|
+
(0, server_1.Field)(),
|
|
25594
|
+
__metadata("design:type", String)
|
|
25595
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "ApprovalStatus", void 0);
|
|
25596
|
+
__decorate([
|
|
25597
|
+
(0, server_1.Field)(),
|
|
25598
|
+
__metadata("design:type", String)
|
|
25599
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "MergeStatus", void 0);
|
|
25600
|
+
__decorate([
|
|
25601
|
+
(0, server_1.Field)(),
|
|
25602
|
+
__metadata("design:type", Date)
|
|
25603
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "MergedAt", void 0);
|
|
25604
|
+
__decorate([
|
|
25605
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25606
|
+
__metadata("design:type", Number)
|
|
25607
|
+
], CreateDuplicateRunDetailMatchInput.prototype, "RecordMergeLogID", void 0);
|
|
25608
|
+
exports.CreateDuplicateRunDetailMatchInput = CreateDuplicateRunDetailMatchInput = __decorate([
|
|
25609
|
+
(0, server_1.InputType)()
|
|
25610
|
+
], CreateDuplicateRunDetailMatchInput);
|
|
25611
|
+
let UpdateDuplicateRunDetailMatchInput = class UpdateDuplicateRunDetailMatchInput {
|
|
25612
|
+
};
|
|
25613
|
+
exports.UpdateDuplicateRunDetailMatchInput = UpdateDuplicateRunDetailMatchInput;
|
|
25614
|
+
__decorate([
|
|
25615
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25616
|
+
__metadata("design:type", Number)
|
|
25617
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "ID", void 0);
|
|
25618
|
+
__decorate([
|
|
25619
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25620
|
+
__metadata("design:type", Number)
|
|
25621
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "DuplicateRunDetailID", void 0);
|
|
25622
|
+
__decorate([
|
|
25623
|
+
(0, server_1.Field)(),
|
|
25624
|
+
__metadata("design:type", String)
|
|
25625
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "MatchRecordID", void 0);
|
|
25626
|
+
__decorate([
|
|
25627
|
+
(0, server_1.Field)(() => server_1.Float),
|
|
25628
|
+
__metadata("design:type", Number)
|
|
25629
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "MatchProbability", void 0);
|
|
25630
|
+
__decorate([
|
|
25631
|
+
(0, server_1.Field)(),
|
|
25632
|
+
__metadata("design:type", Date)
|
|
25633
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "MatchedAt", void 0);
|
|
25634
|
+
__decorate([
|
|
25635
|
+
(0, server_1.Field)(),
|
|
25636
|
+
__metadata("design:type", String)
|
|
25637
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "Action", void 0);
|
|
25638
|
+
__decorate([
|
|
25639
|
+
(0, server_1.Field)(),
|
|
25640
|
+
__metadata("design:type", String)
|
|
25641
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "ApprovalStatus", void 0);
|
|
25642
|
+
__decorate([
|
|
25643
|
+
(0, server_1.Field)(),
|
|
25644
|
+
__metadata("design:type", String)
|
|
25645
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "MergeStatus", void 0);
|
|
25646
|
+
__decorate([
|
|
25647
|
+
(0, server_1.Field)(),
|
|
25648
|
+
__metadata("design:type", Date)
|
|
25649
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "MergedAt", void 0);
|
|
25650
|
+
__decorate([
|
|
25651
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25652
|
+
__metadata("design:type", Number)
|
|
25653
|
+
], UpdateDuplicateRunDetailMatchInput.prototype, "RecordMergeLogID", void 0);
|
|
25654
|
+
exports.UpdateDuplicateRunDetailMatchInput = UpdateDuplicateRunDetailMatchInput = __decorate([
|
|
25655
|
+
(0, server_1.InputType)()
|
|
25656
|
+
], UpdateDuplicateRunDetailMatchInput);
|
|
25657
|
+
let RunDuplicateRunDetailMatchViewResult = class RunDuplicateRunDetailMatchViewResult {
|
|
25658
|
+
};
|
|
25659
|
+
exports.RunDuplicateRunDetailMatchViewResult = RunDuplicateRunDetailMatchViewResult;
|
|
25660
|
+
__decorate([
|
|
25661
|
+
(0, server_1.Field)(() => [DuplicateRunDetailMatch_]),
|
|
25662
|
+
__metadata("design:type", Array)
|
|
25663
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "Results", void 0);
|
|
25664
|
+
__decorate([
|
|
25665
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25666
|
+
__metadata("design:type", Number)
|
|
25667
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "UserViewRunID", void 0);
|
|
25668
|
+
__decorate([
|
|
25669
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25670
|
+
__metadata("design:type", Number)
|
|
25671
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "RowCount", void 0);
|
|
25672
|
+
__decorate([
|
|
25673
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25674
|
+
__metadata("design:type", Number)
|
|
25675
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "TotalRowCount", void 0);
|
|
25676
|
+
__decorate([
|
|
25677
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25678
|
+
__metadata("design:type", Number)
|
|
25679
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "ExecutionTime", void 0);
|
|
25680
|
+
__decorate([
|
|
25681
|
+
(0, server_1.Field)({ nullable: true }),
|
|
25682
|
+
__metadata("design:type", String)
|
|
25683
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "ErrorMessage", void 0);
|
|
25684
|
+
__decorate([
|
|
25685
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
25686
|
+
__metadata("design:type", Boolean)
|
|
25687
|
+
], RunDuplicateRunDetailMatchViewResult.prototype, "Success", void 0);
|
|
25688
|
+
exports.RunDuplicateRunDetailMatchViewResult = RunDuplicateRunDetailMatchViewResult = __decorate([
|
|
25689
|
+
(0, server_1.ObjectType)()
|
|
25690
|
+
], RunDuplicateRunDetailMatchViewResult);
|
|
25691
|
+
let DuplicateRunDetailMatchResolver = class DuplicateRunDetailMatchResolver extends server_1.ResolverBase {
|
|
25692
|
+
async RunDuplicateRunDetailMatchViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
25693
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
25694
|
+
}
|
|
25695
|
+
async RunDuplicateRunDetailMatchViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
25696
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
25697
|
+
}
|
|
25698
|
+
async RunDuplicateRunDetailMatchDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
25699
|
+
input.EntityName = 'Duplicate Run Detail Matches';
|
|
25700
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
25701
|
+
}
|
|
25702
|
+
async DuplicateRunDetailMatch(ID, { dataSource, userPayload }, pubSub) {
|
|
25703
|
+
this.CheckUserReadPermissions('Duplicate Run Detail Matches', userPayload);
|
|
25704
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetailMatches] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Run Detail Matches', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
25705
|
+
const result = this.MapFieldNamesToCodeNames('Duplicate Run Detail Matches', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
25706
|
+
return result;
|
|
25707
|
+
}
|
|
25708
|
+
async CreateDuplicateRunDetailMatch(input, { dataSource, userPayload }, pubSub) {
|
|
25709
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
25710
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Run Detail Matches', this.GetUserFromPayload(userPayload));
|
|
25711
|
+
await entityObject.NewRecord();
|
|
25712
|
+
entityObject.SetMany(input);
|
|
25713
|
+
if (await entityObject.Save()) {
|
|
25714
|
+
await this.AfterCreate(dataSource, input);
|
|
25715
|
+
return entityObject.GetAll();
|
|
25716
|
+
}
|
|
25717
|
+
else
|
|
25718
|
+
return null;
|
|
25719
|
+
}
|
|
25720
|
+
else
|
|
25721
|
+
return null;
|
|
25722
|
+
}
|
|
25723
|
+
async BeforeCreate(dataSource, input) {
|
|
25724
|
+
return true;
|
|
25725
|
+
}
|
|
25726
|
+
async AfterCreate(dataSource, input) {
|
|
25727
|
+
}
|
|
25728
|
+
async UpdateDuplicateRunDetailMatch(input, { dataSource, userPayload }, pubSub) {
|
|
25729
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
25730
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Run Detail Matches', this.GetUserFromPayload(userPayload));
|
|
25731
|
+
entityObject.LoadFromData(input);
|
|
25732
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
25733
|
+
await this.AfterUpdate(dataSource, input);
|
|
25734
|
+
return entityObject.GetAll();
|
|
25735
|
+
}
|
|
25736
|
+
else
|
|
25737
|
+
return null;
|
|
25738
|
+
}
|
|
25739
|
+
else
|
|
25740
|
+
return null;
|
|
25741
|
+
}
|
|
25742
|
+
async BeforeUpdate(dataSource, input) {
|
|
25743
|
+
const i = input, d = dataSource;
|
|
25744
|
+
return true;
|
|
25745
|
+
}
|
|
25746
|
+
async AfterUpdate(dataSource, input) {
|
|
25747
|
+
const i = input, d = dataSource;
|
|
25748
|
+
}
|
|
25749
|
+
};
|
|
25750
|
+
exports.DuplicateRunDetailMatchResolver = DuplicateRunDetailMatchResolver;
|
|
25751
|
+
__decorate([
|
|
25752
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailMatchViewResult),
|
|
25753
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
25754
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25755
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25756
|
+
__metadata("design:type", Function),
|
|
25757
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
25758
|
+
__metadata("design:returntype", Promise)
|
|
25759
|
+
], DuplicateRunDetailMatchResolver.prototype, "RunDuplicateRunDetailMatchViewByID", null);
|
|
25760
|
+
__decorate([
|
|
25761
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailMatchViewResult),
|
|
25762
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
25763
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25764
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25765
|
+
__metadata("design:type", Function),
|
|
25766
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
25767
|
+
__metadata("design:returntype", Promise)
|
|
25768
|
+
], DuplicateRunDetailMatchResolver.prototype, "RunDuplicateRunDetailMatchViewByName", null);
|
|
25769
|
+
__decorate([
|
|
25770
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailMatchViewResult),
|
|
25771
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
25772
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25773
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25774
|
+
__metadata("design:type", Function),
|
|
25775
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
25776
|
+
__metadata("design:returntype", Promise)
|
|
25777
|
+
], DuplicateRunDetailMatchResolver.prototype, "RunDuplicateRunDetailMatchDynamicView", null);
|
|
25778
|
+
__decorate([
|
|
25779
|
+
(0, server_1.Query)(() => DuplicateRunDetailMatch_, { nullable: true }),
|
|
25780
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
25781
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25782
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25783
|
+
__metadata("design:type", Function),
|
|
25784
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
25785
|
+
__metadata("design:returntype", Promise)
|
|
25786
|
+
], DuplicateRunDetailMatchResolver.prototype, "DuplicateRunDetailMatch", null);
|
|
25787
|
+
__decorate([
|
|
25788
|
+
(0, server_1.Mutation)(() => DuplicateRunDetailMatch_),
|
|
25789
|
+
__param(0, (0, server_1.Arg)('input', () => CreateDuplicateRunDetailMatchInput)),
|
|
25790
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25791
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25792
|
+
__metadata("design:type", Function),
|
|
25793
|
+
__metadata("design:paramtypes", [CreateDuplicateRunDetailMatchInput, Object, server_1.PubSubEngine]),
|
|
25794
|
+
__metadata("design:returntype", Promise)
|
|
25795
|
+
], DuplicateRunDetailMatchResolver.prototype, "CreateDuplicateRunDetailMatch", null);
|
|
25796
|
+
__decorate([
|
|
25797
|
+
(0, server_1.Mutation)(() => DuplicateRunDetailMatch_),
|
|
25798
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateDuplicateRunDetailMatchInput)),
|
|
25799
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25800
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25801
|
+
__metadata("design:type", Function),
|
|
25802
|
+
__metadata("design:paramtypes", [UpdateDuplicateRunDetailMatchInput, Object, server_1.PubSubEngine]),
|
|
25803
|
+
__metadata("design:returntype", Promise)
|
|
25804
|
+
], DuplicateRunDetailMatchResolver.prototype, "UpdateDuplicateRunDetailMatch", null);
|
|
25805
|
+
exports.DuplicateRunDetailMatchResolver = DuplicateRunDetailMatchResolver = __decorate([
|
|
25806
|
+
(0, server_1.Resolver)(DuplicateRunDetailMatch_)
|
|
25807
|
+
], DuplicateRunDetailMatchResolver);
|
|
25808
|
+
let EntityDocumentSetting_ = class EntityDocumentSetting_ {
|
|
25809
|
+
};
|
|
25810
|
+
exports.EntityDocumentSetting_ = EntityDocumentSetting_;
|
|
25811
|
+
__decorate([
|
|
25812
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25813
|
+
__metadata("design:type", Number)
|
|
25814
|
+
], EntityDocumentSetting_.prototype, "ID", void 0);
|
|
25815
|
+
__decorate([
|
|
25816
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25817
|
+
__metadata("design:type", Number)
|
|
25818
|
+
], EntityDocumentSetting_.prototype, "EntityDocumentID", void 0);
|
|
25819
|
+
__decorate([
|
|
25820
|
+
(0, server_1.Field)(),
|
|
25821
|
+
(0, class_validator_1.MaxLength)(200),
|
|
25822
|
+
__metadata("design:type", String)
|
|
25823
|
+
], EntityDocumentSetting_.prototype, "Name", void 0);
|
|
25824
|
+
__decorate([
|
|
25825
|
+
(0, server_1.Field)(),
|
|
25826
|
+
__metadata("design:type", String)
|
|
25827
|
+
], EntityDocumentSetting_.prototype, "Value", void 0);
|
|
25828
|
+
__decorate([
|
|
25829
|
+
(0, server_1.Field)({ nullable: true }),
|
|
25830
|
+
__metadata("design:type", String)
|
|
25831
|
+
], EntityDocumentSetting_.prototype, "Comments", void 0);
|
|
25832
|
+
__decorate([
|
|
25833
|
+
(0, server_1.Field)(),
|
|
25834
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25835
|
+
__metadata("design:type", Date)
|
|
25836
|
+
], EntityDocumentSetting_.prototype, "CreatedAt", void 0);
|
|
25837
|
+
__decorate([
|
|
25838
|
+
(0, server_1.Field)(),
|
|
25839
|
+
(0, class_validator_1.MaxLength)(8),
|
|
25840
|
+
__metadata("design:type", Date)
|
|
25841
|
+
], EntityDocumentSetting_.prototype, "UpdatedAt", void 0);
|
|
25842
|
+
__decorate([
|
|
25843
|
+
(0, server_1.Field)(),
|
|
25844
|
+
(0, class_validator_1.MaxLength)(500),
|
|
25845
|
+
__metadata("design:type", String)
|
|
25846
|
+
], EntityDocumentSetting_.prototype, "EntityDocument", void 0);
|
|
25847
|
+
exports.EntityDocumentSetting_ = EntityDocumentSetting_ = __decorate([
|
|
25848
|
+
(0, server_1.ObjectType)()
|
|
25849
|
+
], EntityDocumentSetting_);
|
|
25850
|
+
let CreateEntityDocumentSettingInput = class CreateEntityDocumentSettingInput {
|
|
25851
|
+
};
|
|
25852
|
+
exports.CreateEntityDocumentSettingInput = CreateEntityDocumentSettingInput;
|
|
25853
|
+
__decorate([
|
|
25854
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25855
|
+
__metadata("design:type", Number)
|
|
25856
|
+
], CreateEntityDocumentSettingInput.prototype, "EntityDocumentID", void 0);
|
|
25857
|
+
__decorate([
|
|
25858
|
+
(0, server_1.Field)(),
|
|
25859
|
+
__metadata("design:type", String)
|
|
25860
|
+
], CreateEntityDocumentSettingInput.prototype, "Name", void 0);
|
|
25861
|
+
__decorate([
|
|
25862
|
+
(0, server_1.Field)(),
|
|
25863
|
+
__metadata("design:type", String)
|
|
25864
|
+
], CreateEntityDocumentSettingInput.prototype, "Value", void 0);
|
|
25865
|
+
__decorate([
|
|
25866
|
+
(0, server_1.Field)({ nullable: true }),
|
|
25867
|
+
__metadata("design:type", String)
|
|
25868
|
+
], CreateEntityDocumentSettingInput.prototype, "Comments", void 0);
|
|
25869
|
+
exports.CreateEntityDocumentSettingInput = CreateEntityDocumentSettingInput = __decorate([
|
|
25870
|
+
(0, server_1.InputType)()
|
|
25871
|
+
], CreateEntityDocumentSettingInput);
|
|
25872
|
+
let UpdateEntityDocumentSettingInput = class UpdateEntityDocumentSettingInput {
|
|
25873
|
+
};
|
|
25874
|
+
exports.UpdateEntityDocumentSettingInput = UpdateEntityDocumentSettingInput;
|
|
25875
|
+
__decorate([
|
|
25876
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25877
|
+
__metadata("design:type", Number)
|
|
25878
|
+
], UpdateEntityDocumentSettingInput.prototype, "ID", void 0);
|
|
25879
|
+
__decorate([
|
|
25880
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
25881
|
+
__metadata("design:type", Number)
|
|
25882
|
+
], UpdateEntityDocumentSettingInput.prototype, "EntityDocumentID", void 0);
|
|
25883
|
+
__decorate([
|
|
25884
|
+
(0, server_1.Field)(),
|
|
25885
|
+
__metadata("design:type", String)
|
|
25886
|
+
], UpdateEntityDocumentSettingInput.prototype, "Name", void 0);
|
|
25887
|
+
__decorate([
|
|
25888
|
+
(0, server_1.Field)(),
|
|
25889
|
+
__metadata("design:type", String)
|
|
25890
|
+
], UpdateEntityDocumentSettingInput.prototype, "Value", void 0);
|
|
25891
|
+
__decorate([
|
|
25892
|
+
(0, server_1.Field)({ nullable: true }),
|
|
25893
|
+
__metadata("design:type", String)
|
|
25894
|
+
], UpdateEntityDocumentSettingInput.prototype, "Comments", void 0);
|
|
25895
|
+
exports.UpdateEntityDocumentSettingInput = UpdateEntityDocumentSettingInput = __decorate([
|
|
25896
|
+
(0, server_1.InputType)()
|
|
25897
|
+
], UpdateEntityDocumentSettingInput);
|
|
25898
|
+
let RunEntityDocumentSettingViewResult = class RunEntityDocumentSettingViewResult {
|
|
25899
|
+
};
|
|
25900
|
+
exports.RunEntityDocumentSettingViewResult = RunEntityDocumentSettingViewResult;
|
|
25901
|
+
__decorate([
|
|
25902
|
+
(0, server_1.Field)(() => [EntityDocumentSetting_]),
|
|
25903
|
+
__metadata("design:type", Array)
|
|
25904
|
+
], RunEntityDocumentSettingViewResult.prototype, "Results", void 0);
|
|
25905
|
+
__decorate([
|
|
25906
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25907
|
+
__metadata("design:type", Number)
|
|
25908
|
+
], RunEntityDocumentSettingViewResult.prototype, "UserViewRunID", void 0);
|
|
25909
|
+
__decorate([
|
|
25910
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25911
|
+
__metadata("design:type", Number)
|
|
25912
|
+
], RunEntityDocumentSettingViewResult.prototype, "RowCount", void 0);
|
|
25913
|
+
__decorate([
|
|
25914
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25915
|
+
__metadata("design:type", Number)
|
|
25916
|
+
], RunEntityDocumentSettingViewResult.prototype, "TotalRowCount", void 0);
|
|
25917
|
+
__decorate([
|
|
25918
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
25919
|
+
__metadata("design:type", Number)
|
|
25920
|
+
], RunEntityDocumentSettingViewResult.prototype, "ExecutionTime", void 0);
|
|
25921
|
+
__decorate([
|
|
25922
|
+
(0, server_1.Field)({ nullable: true }),
|
|
25923
|
+
__metadata("design:type", String)
|
|
25924
|
+
], RunEntityDocumentSettingViewResult.prototype, "ErrorMessage", void 0);
|
|
25925
|
+
__decorate([
|
|
25926
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
25927
|
+
__metadata("design:type", Boolean)
|
|
25928
|
+
], RunEntityDocumentSettingViewResult.prototype, "Success", void 0);
|
|
25929
|
+
exports.RunEntityDocumentSettingViewResult = RunEntityDocumentSettingViewResult = __decorate([
|
|
25930
|
+
(0, server_1.ObjectType)()
|
|
25931
|
+
], RunEntityDocumentSettingViewResult);
|
|
25932
|
+
let EntityDocumentSettingResolver = class EntityDocumentSettingResolver extends server_1.ResolverBase {
|
|
25933
|
+
async RunEntityDocumentSettingViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
25934
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
25935
|
+
}
|
|
25936
|
+
async RunEntityDocumentSettingViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
25937
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
25938
|
+
}
|
|
25939
|
+
async RunEntityDocumentSettingDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
25940
|
+
input.EntityName = 'Entity Document Settings';
|
|
25941
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
25942
|
+
}
|
|
25943
|
+
async EntityDocumentSetting(ID, { dataSource, userPayload }, pubSub) {
|
|
25944
|
+
this.CheckUserReadPermissions('Entity Document Settings', userPayload);
|
|
25945
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocumentSettings] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Entity Document Settings', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
25946
|
+
const result = this.MapFieldNamesToCodeNames('Entity Document Settings', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
25947
|
+
return result;
|
|
25948
|
+
}
|
|
25949
|
+
async CreateEntityDocumentSetting(input, { dataSource, userPayload }, pubSub) {
|
|
25950
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
25951
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Entity Document Settings', this.GetUserFromPayload(userPayload));
|
|
25952
|
+
await entityObject.NewRecord();
|
|
25953
|
+
entityObject.SetMany(input);
|
|
25954
|
+
if (await entityObject.Save()) {
|
|
25955
|
+
await this.AfterCreate(dataSource, input);
|
|
25956
|
+
return entityObject.GetAll();
|
|
25957
|
+
}
|
|
25958
|
+
else
|
|
25959
|
+
return null;
|
|
25960
|
+
}
|
|
25961
|
+
else
|
|
25962
|
+
return null;
|
|
25963
|
+
}
|
|
25964
|
+
async BeforeCreate(dataSource, input) {
|
|
25965
|
+
return true;
|
|
25966
|
+
}
|
|
25967
|
+
async AfterCreate(dataSource, input) {
|
|
25968
|
+
}
|
|
25969
|
+
async UpdateEntityDocumentSetting(input, { dataSource, userPayload }, pubSub) {
|
|
25970
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
25971
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Entity Document Settings', this.GetUserFromPayload(userPayload));
|
|
25972
|
+
entityObject.LoadFromData(input);
|
|
25973
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
25974
|
+
await this.AfterUpdate(dataSource, input);
|
|
25975
|
+
return entityObject.GetAll();
|
|
25976
|
+
}
|
|
25977
|
+
else
|
|
25978
|
+
return null;
|
|
25979
|
+
}
|
|
25980
|
+
else
|
|
25981
|
+
return null;
|
|
25982
|
+
}
|
|
25983
|
+
async BeforeUpdate(dataSource, input) {
|
|
25984
|
+
const i = input, d = dataSource;
|
|
25985
|
+
return true;
|
|
25986
|
+
}
|
|
25987
|
+
async AfterUpdate(dataSource, input) {
|
|
25988
|
+
const i = input, d = dataSource;
|
|
25989
|
+
}
|
|
25990
|
+
};
|
|
25991
|
+
exports.EntityDocumentSettingResolver = EntityDocumentSettingResolver;
|
|
25992
|
+
__decorate([
|
|
25993
|
+
(0, server_1.Query)(() => RunEntityDocumentSettingViewResult),
|
|
25994
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
25995
|
+
__param(1, (0, server_1.Ctx)()),
|
|
25996
|
+
__param(2, (0, server_1.PubSub)()),
|
|
25997
|
+
__metadata("design:type", Function),
|
|
25998
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
25999
|
+
__metadata("design:returntype", Promise)
|
|
26000
|
+
], EntityDocumentSettingResolver.prototype, "RunEntityDocumentSettingViewByID", null);
|
|
26001
|
+
__decorate([
|
|
26002
|
+
(0, server_1.Query)(() => RunEntityDocumentSettingViewResult),
|
|
26003
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
26004
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26005
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26006
|
+
__metadata("design:type", Function),
|
|
26007
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
26008
|
+
__metadata("design:returntype", Promise)
|
|
26009
|
+
], EntityDocumentSettingResolver.prototype, "RunEntityDocumentSettingViewByName", null);
|
|
26010
|
+
__decorate([
|
|
26011
|
+
(0, server_1.Query)(() => RunEntityDocumentSettingViewResult),
|
|
26012
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
26013
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26014
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26015
|
+
__metadata("design:type", Function),
|
|
26016
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
26017
|
+
__metadata("design:returntype", Promise)
|
|
26018
|
+
], EntityDocumentSettingResolver.prototype, "RunEntityDocumentSettingDynamicView", null);
|
|
26019
|
+
__decorate([
|
|
26020
|
+
(0, server_1.Query)(() => EntityDocumentSetting_, { nullable: true }),
|
|
26021
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
26022
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26023
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26024
|
+
__metadata("design:type", Function),
|
|
26025
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
26026
|
+
__metadata("design:returntype", Promise)
|
|
26027
|
+
], EntityDocumentSettingResolver.prototype, "EntityDocumentSetting", null);
|
|
26028
|
+
__decorate([
|
|
26029
|
+
(0, server_1.Mutation)(() => EntityDocumentSetting_),
|
|
26030
|
+
__param(0, (0, server_1.Arg)('input', () => CreateEntityDocumentSettingInput)),
|
|
26031
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26032
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26033
|
+
__metadata("design:type", Function),
|
|
26034
|
+
__metadata("design:paramtypes", [CreateEntityDocumentSettingInput, Object, server_1.PubSubEngine]),
|
|
26035
|
+
__metadata("design:returntype", Promise)
|
|
26036
|
+
], EntityDocumentSettingResolver.prototype, "CreateEntityDocumentSetting", null);
|
|
26037
|
+
__decorate([
|
|
26038
|
+
(0, server_1.Mutation)(() => EntityDocumentSetting_),
|
|
26039
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateEntityDocumentSettingInput)),
|
|
26040
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26041
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26042
|
+
__metadata("design:type", Function),
|
|
26043
|
+
__metadata("design:paramtypes", [UpdateEntityDocumentSettingInput, Object, server_1.PubSubEngine]),
|
|
26044
|
+
__metadata("design:returntype", Promise)
|
|
26045
|
+
], EntityDocumentSettingResolver.prototype, "UpdateEntityDocumentSetting", null);
|
|
26046
|
+
exports.EntityDocumentSettingResolver = EntityDocumentSettingResolver = __decorate([
|
|
26047
|
+
(0, server_1.Resolver)(EntityDocumentSetting_)
|
|
26048
|
+
], EntityDocumentSettingResolver);
|
|
26049
|
+
let EntitySetting_ = class EntitySetting_ {
|
|
26050
|
+
};
|
|
26051
|
+
exports.EntitySetting_ = EntitySetting_;
|
|
26052
|
+
__decorate([
|
|
26053
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26054
|
+
__metadata("design:type", Number)
|
|
26055
|
+
], EntitySetting_.prototype, "ID", void 0);
|
|
26056
|
+
__decorate([
|
|
26057
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26058
|
+
__metadata("design:type", Number)
|
|
26059
|
+
], EntitySetting_.prototype, "EntityID", void 0);
|
|
26060
|
+
__decorate([
|
|
26061
|
+
(0, server_1.Field)(),
|
|
26062
|
+
(0, class_validator_1.MaxLength)(200),
|
|
26063
|
+
__metadata("design:type", String)
|
|
26064
|
+
], EntitySetting_.prototype, "Name", void 0);
|
|
26065
|
+
__decorate([
|
|
26066
|
+
(0, server_1.Field)(),
|
|
26067
|
+
__metadata("design:type", String)
|
|
26068
|
+
], EntitySetting_.prototype, "Value", void 0);
|
|
26069
|
+
__decorate([
|
|
26070
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26071
|
+
__metadata("design:type", String)
|
|
26072
|
+
], EntitySetting_.prototype, "Comments", void 0);
|
|
26073
|
+
__decorate([
|
|
26074
|
+
(0, server_1.Field)(),
|
|
26075
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26076
|
+
__metadata("design:type", Date)
|
|
26077
|
+
], EntitySetting_.prototype, "CreatedAt", void 0);
|
|
26078
|
+
__decorate([
|
|
26079
|
+
(0, server_1.Field)(),
|
|
26080
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26081
|
+
__metadata("design:type", Date)
|
|
26082
|
+
], EntitySetting_.prototype, "UpdatedAt", void 0);
|
|
26083
|
+
__decorate([
|
|
26084
|
+
(0, server_1.Field)(),
|
|
26085
|
+
(0, class_validator_1.MaxLength)(510),
|
|
26086
|
+
__metadata("design:type", String)
|
|
26087
|
+
], EntitySetting_.prototype, "Entity", void 0);
|
|
26088
|
+
exports.EntitySetting_ = EntitySetting_ = __decorate([
|
|
26089
|
+
(0, server_1.ObjectType)()
|
|
26090
|
+
], EntitySetting_);
|
|
26091
|
+
let CreateEntitySettingInput = class CreateEntitySettingInput {
|
|
26092
|
+
};
|
|
26093
|
+
exports.CreateEntitySettingInput = CreateEntitySettingInput;
|
|
26094
|
+
__decorate([
|
|
26095
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26096
|
+
__metadata("design:type", Number)
|
|
26097
|
+
], CreateEntitySettingInput.prototype, "EntityID", void 0);
|
|
26098
|
+
__decorate([
|
|
26099
|
+
(0, server_1.Field)(),
|
|
26100
|
+
__metadata("design:type", String)
|
|
26101
|
+
], CreateEntitySettingInput.prototype, "Name", void 0);
|
|
26102
|
+
__decorate([
|
|
26103
|
+
(0, server_1.Field)(),
|
|
26104
|
+
__metadata("design:type", String)
|
|
26105
|
+
], CreateEntitySettingInput.prototype, "Value", void 0);
|
|
26106
|
+
__decorate([
|
|
26107
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26108
|
+
__metadata("design:type", String)
|
|
26109
|
+
], CreateEntitySettingInput.prototype, "Comments", void 0);
|
|
26110
|
+
exports.CreateEntitySettingInput = CreateEntitySettingInput = __decorate([
|
|
26111
|
+
(0, server_1.InputType)()
|
|
26112
|
+
], CreateEntitySettingInput);
|
|
26113
|
+
let UpdateEntitySettingInput = class UpdateEntitySettingInput {
|
|
26114
|
+
};
|
|
26115
|
+
exports.UpdateEntitySettingInput = UpdateEntitySettingInput;
|
|
26116
|
+
__decorate([
|
|
26117
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26118
|
+
__metadata("design:type", Number)
|
|
26119
|
+
], UpdateEntitySettingInput.prototype, "ID", void 0);
|
|
26120
|
+
__decorate([
|
|
26121
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26122
|
+
__metadata("design:type", Number)
|
|
26123
|
+
], UpdateEntitySettingInput.prototype, "EntityID", void 0);
|
|
26124
|
+
__decorate([
|
|
26125
|
+
(0, server_1.Field)(),
|
|
26126
|
+
__metadata("design:type", String)
|
|
26127
|
+
], UpdateEntitySettingInput.prototype, "Name", void 0);
|
|
26128
|
+
__decorate([
|
|
26129
|
+
(0, server_1.Field)(),
|
|
26130
|
+
__metadata("design:type", String)
|
|
26131
|
+
], UpdateEntitySettingInput.prototype, "Value", void 0);
|
|
26132
|
+
__decorate([
|
|
26133
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26134
|
+
__metadata("design:type", String)
|
|
26135
|
+
], UpdateEntitySettingInput.prototype, "Comments", void 0);
|
|
26136
|
+
exports.UpdateEntitySettingInput = UpdateEntitySettingInput = __decorate([
|
|
26137
|
+
(0, server_1.InputType)()
|
|
26138
|
+
], UpdateEntitySettingInput);
|
|
26139
|
+
let RunEntitySettingViewResult = class RunEntitySettingViewResult {
|
|
26140
|
+
};
|
|
26141
|
+
exports.RunEntitySettingViewResult = RunEntitySettingViewResult;
|
|
26142
|
+
__decorate([
|
|
26143
|
+
(0, server_1.Field)(() => [EntitySetting_]),
|
|
26144
|
+
__metadata("design:type", Array)
|
|
26145
|
+
], RunEntitySettingViewResult.prototype, "Results", void 0);
|
|
26146
|
+
__decorate([
|
|
26147
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26148
|
+
__metadata("design:type", Number)
|
|
26149
|
+
], RunEntitySettingViewResult.prototype, "UserViewRunID", void 0);
|
|
26150
|
+
__decorate([
|
|
26151
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26152
|
+
__metadata("design:type", Number)
|
|
26153
|
+
], RunEntitySettingViewResult.prototype, "RowCount", void 0);
|
|
26154
|
+
__decorate([
|
|
26155
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26156
|
+
__metadata("design:type", Number)
|
|
26157
|
+
], RunEntitySettingViewResult.prototype, "TotalRowCount", void 0);
|
|
26158
|
+
__decorate([
|
|
26159
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26160
|
+
__metadata("design:type", Number)
|
|
26161
|
+
], RunEntitySettingViewResult.prototype, "ExecutionTime", void 0);
|
|
26162
|
+
__decorate([
|
|
26163
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26164
|
+
__metadata("design:type", String)
|
|
26165
|
+
], RunEntitySettingViewResult.prototype, "ErrorMessage", void 0);
|
|
26166
|
+
__decorate([
|
|
26167
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
26168
|
+
__metadata("design:type", Boolean)
|
|
26169
|
+
], RunEntitySettingViewResult.prototype, "Success", void 0);
|
|
26170
|
+
exports.RunEntitySettingViewResult = RunEntitySettingViewResult = __decorate([
|
|
26171
|
+
(0, server_1.ObjectType)()
|
|
26172
|
+
], RunEntitySettingViewResult);
|
|
26173
|
+
let EntitySettingResolver = class EntitySettingResolver extends server_1.ResolverBase {
|
|
26174
|
+
async RunEntitySettingViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
26175
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
26176
|
+
}
|
|
26177
|
+
async RunEntitySettingViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
26178
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
26179
|
+
}
|
|
26180
|
+
async RunEntitySettingDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
26181
|
+
input.EntityName = 'Entity Settings';
|
|
26182
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
26183
|
+
}
|
|
26184
|
+
async EntitySetting(ID, { dataSource, userPayload }, pubSub) {
|
|
26185
|
+
this.CheckUserReadPermissions('Entity Settings', userPayload);
|
|
26186
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntitySettings] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Entity Settings', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
26187
|
+
const result = this.MapFieldNamesToCodeNames('Entity Settings', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
26188
|
+
return result;
|
|
26189
|
+
}
|
|
26190
|
+
async CreateEntitySetting(input, { dataSource, userPayload }, pubSub) {
|
|
26191
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
26192
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Entity Settings', this.GetUserFromPayload(userPayload));
|
|
26193
|
+
await entityObject.NewRecord();
|
|
26194
|
+
entityObject.SetMany(input);
|
|
26195
|
+
if (await entityObject.Save()) {
|
|
26196
|
+
await this.AfterCreate(dataSource, input);
|
|
26197
|
+
return entityObject.GetAll();
|
|
26198
|
+
}
|
|
26199
|
+
else
|
|
26200
|
+
return null;
|
|
26201
|
+
}
|
|
26202
|
+
else
|
|
26203
|
+
return null;
|
|
26204
|
+
}
|
|
26205
|
+
async BeforeCreate(dataSource, input) {
|
|
26206
|
+
return true;
|
|
26207
|
+
}
|
|
26208
|
+
async AfterCreate(dataSource, input) {
|
|
26209
|
+
}
|
|
26210
|
+
async UpdateEntitySetting(input, { dataSource, userPayload }, pubSub) {
|
|
26211
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
26212
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Entity Settings', this.GetUserFromPayload(userPayload));
|
|
26213
|
+
entityObject.LoadFromData(input);
|
|
26214
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
26215
|
+
await this.AfterUpdate(dataSource, input);
|
|
26216
|
+
return entityObject.GetAll();
|
|
26217
|
+
}
|
|
26218
|
+
else
|
|
26219
|
+
return null;
|
|
26220
|
+
}
|
|
26221
|
+
else
|
|
26222
|
+
return null;
|
|
26223
|
+
}
|
|
26224
|
+
async BeforeUpdate(dataSource, input) {
|
|
26225
|
+
const i = input, d = dataSource;
|
|
26226
|
+
return true;
|
|
26227
|
+
}
|
|
26228
|
+
async AfterUpdate(dataSource, input) {
|
|
26229
|
+
const i = input, d = dataSource;
|
|
26230
|
+
}
|
|
26231
|
+
};
|
|
26232
|
+
exports.EntitySettingResolver = EntitySettingResolver;
|
|
26233
|
+
__decorate([
|
|
26234
|
+
(0, server_1.Query)(() => RunEntitySettingViewResult),
|
|
26235
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
26236
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26237
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26238
|
+
__metadata("design:type", Function),
|
|
26239
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
26240
|
+
__metadata("design:returntype", Promise)
|
|
26241
|
+
], EntitySettingResolver.prototype, "RunEntitySettingViewByID", null);
|
|
26242
|
+
__decorate([
|
|
26243
|
+
(0, server_1.Query)(() => RunEntitySettingViewResult),
|
|
26244
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
26245
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26246
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26247
|
+
__metadata("design:type", Function),
|
|
26248
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
26249
|
+
__metadata("design:returntype", Promise)
|
|
26250
|
+
], EntitySettingResolver.prototype, "RunEntitySettingViewByName", null);
|
|
26251
|
+
__decorate([
|
|
26252
|
+
(0, server_1.Query)(() => RunEntitySettingViewResult),
|
|
26253
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
26254
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26255
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26256
|
+
__metadata("design:type", Function),
|
|
26257
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
26258
|
+
__metadata("design:returntype", Promise)
|
|
26259
|
+
], EntitySettingResolver.prototype, "RunEntitySettingDynamicView", null);
|
|
26260
|
+
__decorate([
|
|
26261
|
+
(0, server_1.Query)(() => EntitySetting_, { nullable: true }),
|
|
26262
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
26263
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26264
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26265
|
+
__metadata("design:type", Function),
|
|
26266
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
26267
|
+
__metadata("design:returntype", Promise)
|
|
26268
|
+
], EntitySettingResolver.prototype, "EntitySetting", null);
|
|
26269
|
+
__decorate([
|
|
26270
|
+
(0, server_1.Mutation)(() => EntitySetting_),
|
|
26271
|
+
__param(0, (0, server_1.Arg)('input', () => CreateEntitySettingInput)),
|
|
26272
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26273
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26274
|
+
__metadata("design:type", Function),
|
|
26275
|
+
__metadata("design:paramtypes", [CreateEntitySettingInput, Object, server_1.PubSubEngine]),
|
|
26276
|
+
__metadata("design:returntype", Promise)
|
|
26277
|
+
], EntitySettingResolver.prototype, "CreateEntitySetting", null);
|
|
26278
|
+
__decorate([
|
|
26279
|
+
(0, server_1.Mutation)(() => EntitySetting_),
|
|
26280
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateEntitySettingInput)),
|
|
26281
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26282
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26283
|
+
__metadata("design:type", Function),
|
|
26284
|
+
__metadata("design:paramtypes", [UpdateEntitySettingInput, Object, server_1.PubSubEngine]),
|
|
26285
|
+
__metadata("design:returntype", Promise)
|
|
26286
|
+
], EntitySettingResolver.prototype, "UpdateEntitySetting", null);
|
|
26287
|
+
exports.EntitySettingResolver = EntitySettingResolver = __decorate([
|
|
26288
|
+
(0, server_1.Resolver)(EntitySetting_)
|
|
26289
|
+
], EntitySettingResolver);
|
|
26290
|
+
let DuplicateRun_ = class DuplicateRun_ {
|
|
26291
|
+
};
|
|
26292
|
+
exports.DuplicateRun_ = DuplicateRun_;
|
|
26293
|
+
__decorate([
|
|
26294
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26295
|
+
__metadata("design:type", Number)
|
|
26296
|
+
], DuplicateRun_.prototype, "ID", void 0);
|
|
26297
|
+
__decorate([
|
|
26298
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26299
|
+
__metadata("design:type", Number)
|
|
26300
|
+
], DuplicateRun_.prototype, "EntityID", void 0);
|
|
26301
|
+
__decorate([
|
|
26302
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26303
|
+
__metadata("design:type", Number)
|
|
26304
|
+
], DuplicateRun_.prototype, "StartedByUserID", void 0);
|
|
26305
|
+
__decorate([
|
|
26306
|
+
(0, server_1.Field)(),
|
|
26307
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26308
|
+
__metadata("design:type", Date)
|
|
26309
|
+
], DuplicateRun_.prototype, "StartedAt", void 0);
|
|
26310
|
+
__decorate([
|
|
26311
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26312
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26313
|
+
__metadata("design:type", Date)
|
|
26314
|
+
], DuplicateRun_.prototype, "EndedAt", void 0);
|
|
26315
|
+
__decorate([
|
|
26316
|
+
(0, server_1.Field)(),
|
|
26317
|
+
(0, class_validator_1.MaxLength)(40),
|
|
26318
|
+
__metadata("design:type", String)
|
|
26319
|
+
], DuplicateRun_.prototype, "ApprovalStatus", void 0);
|
|
26320
|
+
__decorate([
|
|
26321
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26322
|
+
__metadata("design:type", String)
|
|
26323
|
+
], DuplicateRun_.prototype, "ApprovalComments", void 0);
|
|
26324
|
+
__decorate([
|
|
26325
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26326
|
+
__metadata("design:type", Number)
|
|
26327
|
+
], DuplicateRun_.prototype, "ApprovedByUserID", void 0);
|
|
26328
|
+
__decorate([
|
|
26329
|
+
(0, server_1.Field)(),
|
|
26330
|
+
(0, class_validator_1.MaxLength)(40),
|
|
26331
|
+
__metadata("design:type", String)
|
|
26332
|
+
], DuplicateRun_.prototype, "ProcessingStatus", void 0);
|
|
26333
|
+
__decorate([
|
|
26334
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26335
|
+
__metadata("design:type", String)
|
|
26336
|
+
], DuplicateRun_.prototype, "ProcessingErrorMessage", void 0);
|
|
26337
|
+
__decorate([
|
|
26338
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26339
|
+
__metadata("design:type", Number)
|
|
26340
|
+
], DuplicateRun_.prototype, "SourceListID", void 0);
|
|
26341
|
+
__decorate([
|
|
26342
|
+
(0, server_1.Field)(),
|
|
26343
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26344
|
+
__metadata("design:type", Date)
|
|
26345
|
+
], DuplicateRun_.prototype, "CreatedAt", void 0);
|
|
26346
|
+
__decorate([
|
|
26347
|
+
(0, server_1.Field)(),
|
|
26348
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26349
|
+
__metadata("design:type", Date)
|
|
26350
|
+
], DuplicateRun_.prototype, "UpdatedAt", void 0);
|
|
26351
|
+
__decorate([
|
|
26352
|
+
(0, server_1.Field)(),
|
|
26353
|
+
(0, class_validator_1.MaxLength)(510),
|
|
26354
|
+
__metadata("design:type", String)
|
|
26355
|
+
], DuplicateRun_.prototype, "Entity", void 0);
|
|
26356
|
+
__decorate([
|
|
26357
|
+
(0, server_1.Field)(),
|
|
26358
|
+
(0, class_validator_1.MaxLength)(200),
|
|
26359
|
+
__metadata("design:type", String)
|
|
26360
|
+
], DuplicateRun_.prototype, "StartedByUser", void 0);
|
|
26361
|
+
__decorate([
|
|
26362
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26363
|
+
(0, class_validator_1.MaxLength)(200),
|
|
26364
|
+
__metadata("design:type", String)
|
|
26365
|
+
], DuplicateRun_.prototype, "ApprovedByUser", void 0);
|
|
26366
|
+
__decorate([
|
|
26367
|
+
(0, server_1.Field)(),
|
|
26368
|
+
(0, class_validator_1.MaxLength)(200),
|
|
26369
|
+
__metadata("design:type", String)
|
|
26370
|
+
], DuplicateRun_.prototype, "SourceList", void 0);
|
|
26371
|
+
__decorate([
|
|
26372
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRunDetail_]),
|
|
26373
|
+
__metadata("design:type", Array)
|
|
26374
|
+
], DuplicateRun_.prototype, "DuplicateRunDetailsArray", void 0);
|
|
26375
|
+
exports.DuplicateRun_ = DuplicateRun_ = __decorate([
|
|
26376
|
+
(0, server_1.ObjectType)()
|
|
26377
|
+
], DuplicateRun_);
|
|
26378
|
+
let CreateDuplicateRunInput = class CreateDuplicateRunInput {
|
|
26379
|
+
};
|
|
26380
|
+
exports.CreateDuplicateRunInput = CreateDuplicateRunInput;
|
|
26381
|
+
__decorate([
|
|
26382
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26383
|
+
__metadata("design:type", Number)
|
|
26384
|
+
], CreateDuplicateRunInput.prototype, "EntityID", void 0);
|
|
26385
|
+
__decorate([
|
|
26386
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26387
|
+
__metadata("design:type", Number)
|
|
26388
|
+
], CreateDuplicateRunInput.prototype, "StartedByUserID", void 0);
|
|
26389
|
+
__decorate([
|
|
26390
|
+
(0, server_1.Field)(),
|
|
26391
|
+
__metadata("design:type", Date)
|
|
26392
|
+
], CreateDuplicateRunInput.prototype, "StartedAt", void 0);
|
|
26393
|
+
__decorate([
|
|
26394
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26395
|
+
__metadata("design:type", Date)
|
|
26396
|
+
], CreateDuplicateRunInput.prototype, "EndedAt", void 0);
|
|
26397
|
+
__decorate([
|
|
26398
|
+
(0, server_1.Field)(),
|
|
26399
|
+
__metadata("design:type", String)
|
|
26400
|
+
], CreateDuplicateRunInput.prototype, "ApprovalStatus", void 0);
|
|
26401
|
+
__decorate([
|
|
26402
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26403
|
+
__metadata("design:type", String)
|
|
26404
|
+
], CreateDuplicateRunInput.prototype, "ApprovalComments", void 0);
|
|
26405
|
+
__decorate([
|
|
26406
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26407
|
+
__metadata("design:type", Number)
|
|
26408
|
+
], CreateDuplicateRunInput.prototype, "ApprovedByUserID", void 0);
|
|
26409
|
+
__decorate([
|
|
26410
|
+
(0, server_1.Field)(),
|
|
26411
|
+
__metadata("design:type", String)
|
|
26412
|
+
], CreateDuplicateRunInput.prototype, "ProcessingStatus", void 0);
|
|
26413
|
+
__decorate([
|
|
26414
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26415
|
+
__metadata("design:type", String)
|
|
26416
|
+
], CreateDuplicateRunInput.prototype, "ProcessingErrorMessage", void 0);
|
|
26417
|
+
__decorate([
|
|
26418
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26419
|
+
__metadata("design:type", Number)
|
|
26420
|
+
], CreateDuplicateRunInput.prototype, "SourceListID", void 0);
|
|
26421
|
+
exports.CreateDuplicateRunInput = CreateDuplicateRunInput = __decorate([
|
|
26422
|
+
(0, server_1.InputType)()
|
|
26423
|
+
], CreateDuplicateRunInput);
|
|
26424
|
+
let UpdateDuplicateRunInput = class UpdateDuplicateRunInput {
|
|
26425
|
+
};
|
|
26426
|
+
exports.UpdateDuplicateRunInput = UpdateDuplicateRunInput;
|
|
26427
|
+
__decorate([
|
|
26428
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26429
|
+
__metadata("design:type", Number)
|
|
26430
|
+
], UpdateDuplicateRunInput.prototype, "ID", void 0);
|
|
26431
|
+
__decorate([
|
|
26432
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26433
|
+
__metadata("design:type", Number)
|
|
26434
|
+
], UpdateDuplicateRunInput.prototype, "EntityID", void 0);
|
|
26435
|
+
__decorate([
|
|
26436
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26437
|
+
__metadata("design:type", Number)
|
|
26438
|
+
], UpdateDuplicateRunInput.prototype, "StartedByUserID", void 0);
|
|
26439
|
+
__decorate([
|
|
26440
|
+
(0, server_1.Field)(),
|
|
26441
|
+
__metadata("design:type", Date)
|
|
26442
|
+
], UpdateDuplicateRunInput.prototype, "StartedAt", void 0);
|
|
26443
|
+
__decorate([
|
|
26444
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26445
|
+
__metadata("design:type", Date)
|
|
26446
|
+
], UpdateDuplicateRunInput.prototype, "EndedAt", void 0);
|
|
26447
|
+
__decorate([
|
|
26448
|
+
(0, server_1.Field)(),
|
|
26449
|
+
__metadata("design:type", String)
|
|
26450
|
+
], UpdateDuplicateRunInput.prototype, "ApprovalStatus", void 0);
|
|
26451
|
+
__decorate([
|
|
26452
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26453
|
+
__metadata("design:type", String)
|
|
26454
|
+
], UpdateDuplicateRunInput.prototype, "ApprovalComments", void 0);
|
|
26455
|
+
__decorate([
|
|
26456
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26457
|
+
__metadata("design:type", Number)
|
|
26458
|
+
], UpdateDuplicateRunInput.prototype, "ApprovedByUserID", void 0);
|
|
26459
|
+
__decorate([
|
|
26460
|
+
(0, server_1.Field)(),
|
|
26461
|
+
__metadata("design:type", String)
|
|
26462
|
+
], UpdateDuplicateRunInput.prototype, "ProcessingStatus", void 0);
|
|
26463
|
+
__decorate([
|
|
26464
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26465
|
+
__metadata("design:type", String)
|
|
26466
|
+
], UpdateDuplicateRunInput.prototype, "ProcessingErrorMessage", void 0);
|
|
26467
|
+
__decorate([
|
|
26468
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26469
|
+
__metadata("design:type", Number)
|
|
26470
|
+
], UpdateDuplicateRunInput.prototype, "SourceListID", void 0);
|
|
26471
|
+
exports.UpdateDuplicateRunInput = UpdateDuplicateRunInput = __decorate([
|
|
26472
|
+
(0, server_1.InputType)()
|
|
26473
|
+
], UpdateDuplicateRunInput);
|
|
26474
|
+
let RunDuplicateRunViewResult = class RunDuplicateRunViewResult {
|
|
26475
|
+
};
|
|
26476
|
+
exports.RunDuplicateRunViewResult = RunDuplicateRunViewResult;
|
|
26477
|
+
__decorate([
|
|
26478
|
+
(0, server_1.Field)(() => [DuplicateRun_]),
|
|
26479
|
+
__metadata("design:type", Array)
|
|
26480
|
+
], RunDuplicateRunViewResult.prototype, "Results", void 0);
|
|
26481
|
+
__decorate([
|
|
26482
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26483
|
+
__metadata("design:type", Number)
|
|
26484
|
+
], RunDuplicateRunViewResult.prototype, "UserViewRunID", void 0);
|
|
26485
|
+
__decorate([
|
|
26486
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26487
|
+
__metadata("design:type", Number)
|
|
26488
|
+
], RunDuplicateRunViewResult.prototype, "RowCount", void 0);
|
|
26489
|
+
__decorate([
|
|
26490
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26491
|
+
__metadata("design:type", Number)
|
|
26492
|
+
], RunDuplicateRunViewResult.prototype, "TotalRowCount", void 0);
|
|
26493
|
+
__decorate([
|
|
26494
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26495
|
+
__metadata("design:type", Number)
|
|
26496
|
+
], RunDuplicateRunViewResult.prototype, "ExecutionTime", void 0);
|
|
26497
|
+
__decorate([
|
|
26498
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26499
|
+
__metadata("design:type", String)
|
|
26500
|
+
], RunDuplicateRunViewResult.prototype, "ErrorMessage", void 0);
|
|
26501
|
+
__decorate([
|
|
26502
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
26503
|
+
__metadata("design:type", Boolean)
|
|
26504
|
+
], RunDuplicateRunViewResult.prototype, "Success", void 0);
|
|
26505
|
+
exports.RunDuplicateRunViewResult = RunDuplicateRunViewResult = __decorate([
|
|
26506
|
+
(0, server_1.ObjectType)()
|
|
26507
|
+
], RunDuplicateRunViewResult);
|
|
26508
|
+
let DuplicateRunResolver = class DuplicateRunResolver extends server_1.ResolverBase {
|
|
26509
|
+
async RunDuplicateRunViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
26510
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
26511
|
+
}
|
|
26512
|
+
async RunDuplicateRunViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
26513
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
26514
|
+
}
|
|
26515
|
+
async RunDuplicateRunDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
26516
|
+
input.EntityName = 'Duplicate Runs';
|
|
26517
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
26518
|
+
}
|
|
26519
|
+
async DuplicateRun(ID, { dataSource, userPayload }, pubSub) {
|
|
26520
|
+
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
26521
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
26522
|
+
const result = this.MapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
26523
|
+
return result;
|
|
26524
|
+
}
|
|
26525
|
+
async DuplicateRunDetailsArray(duplicaterun_, { dataSource, userPayload }, pubSub) {
|
|
26526
|
+
this.CheckUserReadPermissions('Duplicate Run Details', userPayload);
|
|
26527
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetails] WHERE [DuplicateRunID]=${duplicaterun_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Run Details', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
26528
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Details', await dataSource.query(sSQL));
|
|
26529
|
+
return result;
|
|
26530
|
+
}
|
|
26531
|
+
async CreateDuplicateRun(input, { dataSource, userPayload }, pubSub) {
|
|
26532
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
26533
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Runs', this.GetUserFromPayload(userPayload));
|
|
26534
|
+
await entityObject.NewRecord();
|
|
26535
|
+
entityObject.SetMany(input);
|
|
26536
|
+
if (await entityObject.Save()) {
|
|
26537
|
+
await this.AfterCreate(dataSource, input);
|
|
26538
|
+
return entityObject.GetAll();
|
|
26539
|
+
}
|
|
26540
|
+
else
|
|
26541
|
+
return null;
|
|
26542
|
+
}
|
|
26543
|
+
else
|
|
26544
|
+
return null;
|
|
26545
|
+
}
|
|
26546
|
+
async BeforeCreate(dataSource, input) {
|
|
26547
|
+
return true;
|
|
26548
|
+
}
|
|
26549
|
+
async AfterCreate(dataSource, input) {
|
|
26550
|
+
}
|
|
26551
|
+
async UpdateDuplicateRun(input, { dataSource, userPayload }, pubSub) {
|
|
26552
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
26553
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Runs', this.GetUserFromPayload(userPayload));
|
|
26554
|
+
entityObject.LoadFromData(input);
|
|
26555
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
26556
|
+
await this.AfterUpdate(dataSource, input);
|
|
26557
|
+
return entityObject.GetAll();
|
|
26558
|
+
}
|
|
26559
|
+
else
|
|
26560
|
+
return null;
|
|
26561
|
+
}
|
|
26562
|
+
else
|
|
26563
|
+
return null;
|
|
26564
|
+
}
|
|
26565
|
+
async BeforeUpdate(dataSource, input) {
|
|
26566
|
+
const i = input, d = dataSource;
|
|
26567
|
+
return true;
|
|
26568
|
+
}
|
|
26569
|
+
async AfterUpdate(dataSource, input) {
|
|
26570
|
+
const i = input, d = dataSource;
|
|
26571
|
+
}
|
|
26572
|
+
};
|
|
26573
|
+
exports.DuplicateRunResolver = DuplicateRunResolver;
|
|
26574
|
+
__decorate([
|
|
26575
|
+
(0, server_1.Query)(() => RunDuplicateRunViewResult),
|
|
26576
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
26577
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26578
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26579
|
+
__metadata("design:type", Function),
|
|
26580
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
26581
|
+
__metadata("design:returntype", Promise)
|
|
26582
|
+
], DuplicateRunResolver.prototype, "RunDuplicateRunViewByID", null);
|
|
26583
|
+
__decorate([
|
|
26584
|
+
(0, server_1.Query)(() => RunDuplicateRunViewResult),
|
|
26585
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
26586
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26587
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26588
|
+
__metadata("design:type", Function),
|
|
26589
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
26590
|
+
__metadata("design:returntype", Promise)
|
|
26591
|
+
], DuplicateRunResolver.prototype, "RunDuplicateRunViewByName", null);
|
|
26592
|
+
__decorate([
|
|
26593
|
+
(0, server_1.Query)(() => RunDuplicateRunViewResult),
|
|
26594
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
26595
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26596
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26597
|
+
__metadata("design:type", Function),
|
|
26598
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
26599
|
+
__metadata("design:returntype", Promise)
|
|
26600
|
+
], DuplicateRunResolver.prototype, "RunDuplicateRunDynamicView", null);
|
|
26601
|
+
__decorate([
|
|
26602
|
+
(0, server_1.Query)(() => DuplicateRun_, { nullable: true }),
|
|
26603
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
26604
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26605
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26606
|
+
__metadata("design:type", Function),
|
|
26607
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
26608
|
+
__metadata("design:returntype", Promise)
|
|
26609
|
+
], DuplicateRunResolver.prototype, "DuplicateRun", null);
|
|
26610
|
+
__decorate([
|
|
26611
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRunDetail_]),
|
|
26612
|
+
__param(0, (0, server_1.Root)()),
|
|
26613
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26614
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26615
|
+
__metadata("design:type", Function),
|
|
26616
|
+
__metadata("design:paramtypes", [DuplicateRun_, Object, server_1.PubSubEngine]),
|
|
26617
|
+
__metadata("design:returntype", Promise)
|
|
26618
|
+
], DuplicateRunResolver.prototype, "DuplicateRunDetailsArray", null);
|
|
26619
|
+
__decorate([
|
|
26620
|
+
(0, server_1.Mutation)(() => DuplicateRun_),
|
|
26621
|
+
__param(0, (0, server_1.Arg)('input', () => CreateDuplicateRunInput)),
|
|
26622
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26623
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26624
|
+
__metadata("design:type", Function),
|
|
26625
|
+
__metadata("design:paramtypes", [CreateDuplicateRunInput, Object, server_1.PubSubEngine]),
|
|
26626
|
+
__metadata("design:returntype", Promise)
|
|
26627
|
+
], DuplicateRunResolver.prototype, "CreateDuplicateRun", null);
|
|
26628
|
+
__decorate([
|
|
26629
|
+
(0, server_1.Mutation)(() => DuplicateRun_),
|
|
26630
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateDuplicateRunInput)),
|
|
26631
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26632
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26633
|
+
__metadata("design:type", Function),
|
|
26634
|
+
__metadata("design:paramtypes", [UpdateDuplicateRunInput, Object, server_1.PubSubEngine]),
|
|
26635
|
+
__metadata("design:returntype", Promise)
|
|
26636
|
+
], DuplicateRunResolver.prototype, "UpdateDuplicateRun", null);
|
|
26637
|
+
exports.DuplicateRunResolver = DuplicateRunResolver = __decorate([
|
|
26638
|
+
(0, server_1.Resolver)(DuplicateRun_)
|
|
26639
|
+
], DuplicateRunResolver);
|
|
26640
|
+
let DuplicateRunDetail_ = class DuplicateRunDetail_ {
|
|
26641
|
+
};
|
|
26642
|
+
exports.DuplicateRunDetail_ = DuplicateRunDetail_;
|
|
26643
|
+
__decorate([
|
|
26644
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26645
|
+
__metadata("design:type", Number)
|
|
26646
|
+
], DuplicateRunDetail_.prototype, "ID", void 0);
|
|
26647
|
+
__decorate([
|
|
26648
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26649
|
+
__metadata("design:type", Number)
|
|
26650
|
+
], DuplicateRunDetail_.prototype, "DuplicateRunID", void 0);
|
|
26651
|
+
__decorate([
|
|
26652
|
+
(0, server_1.Field)(),
|
|
26653
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
26654
|
+
__metadata("design:type", String)
|
|
26655
|
+
], DuplicateRunDetail_.prototype, "RecordID", void 0);
|
|
26656
|
+
__decorate([
|
|
26657
|
+
(0, server_1.Field)(),
|
|
26658
|
+
(0, class_validator_1.MaxLength)(40),
|
|
26659
|
+
__metadata("design:type", String)
|
|
26660
|
+
], DuplicateRunDetail_.prototype, "MatchStatus", void 0);
|
|
26661
|
+
__decorate([
|
|
26662
|
+
(0, server_1.Field)({ nullable: true, description: 'If MatchStatus=Skipped, this field can be used to store the reason why the record was skipped' }),
|
|
26663
|
+
__metadata("design:type", String)
|
|
26664
|
+
], DuplicateRunDetail_.prototype, "SkippedReason", void 0);
|
|
26665
|
+
__decorate([
|
|
26666
|
+
(0, server_1.Field)({ nullable: true, description: 'If MatchStatus=\'Error\' this field can be used to track the error from that phase of the process for logging/diagnostics.' }),
|
|
26667
|
+
__metadata("design:type", String)
|
|
26668
|
+
], DuplicateRunDetail_.prototype, "MatchErrorMessage", void 0);
|
|
26669
|
+
__decorate([
|
|
26670
|
+
(0, server_1.Field)(),
|
|
26671
|
+
(0, class_validator_1.MaxLength)(40),
|
|
26672
|
+
__metadata("design:type", String)
|
|
26673
|
+
], DuplicateRunDetail_.prototype, "MergeStatus", void 0);
|
|
26674
|
+
__decorate([
|
|
26675
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26676
|
+
__metadata("design:type", String)
|
|
26677
|
+
], DuplicateRunDetail_.prototype, "MergeErrorMessage", void 0);
|
|
26678
|
+
__decorate([
|
|
26679
|
+
(0, server_1.Field)(),
|
|
26680
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26681
|
+
__metadata("design:type", Date)
|
|
26682
|
+
], DuplicateRunDetail_.prototype, "CreatedAt", void 0);
|
|
26683
|
+
__decorate([
|
|
26684
|
+
(0, server_1.Field)(),
|
|
26685
|
+
(0, class_validator_1.MaxLength)(8),
|
|
26686
|
+
__metadata("design:type", Date)
|
|
26687
|
+
], DuplicateRunDetail_.prototype, "UpdatedAt", void 0);
|
|
26688
|
+
__decorate([
|
|
26689
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DuplicateRunDetailMatch_]),
|
|
26690
|
+
__metadata("design:type", Array)
|
|
26691
|
+
], DuplicateRunDetail_.prototype, "DuplicateRunDetailMatchesArray", void 0);
|
|
26692
|
+
exports.DuplicateRunDetail_ = DuplicateRunDetail_ = __decorate([
|
|
26693
|
+
(0, server_1.ObjectType)()
|
|
26694
|
+
], DuplicateRunDetail_);
|
|
26695
|
+
let CreateDuplicateRunDetailInput = class CreateDuplicateRunDetailInput {
|
|
26696
|
+
};
|
|
26697
|
+
exports.CreateDuplicateRunDetailInput = CreateDuplicateRunDetailInput;
|
|
26698
|
+
__decorate([
|
|
26699
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26700
|
+
__metadata("design:type", Number)
|
|
26701
|
+
], CreateDuplicateRunDetailInput.prototype, "DuplicateRunID", void 0);
|
|
26702
|
+
__decorate([
|
|
26703
|
+
(0, server_1.Field)(),
|
|
26704
|
+
__metadata("design:type", String)
|
|
26705
|
+
], CreateDuplicateRunDetailInput.prototype, "RecordID", void 0);
|
|
26706
|
+
__decorate([
|
|
26707
|
+
(0, server_1.Field)(),
|
|
26708
|
+
__metadata("design:type", String)
|
|
26709
|
+
], CreateDuplicateRunDetailInput.prototype, "MatchStatus", void 0);
|
|
26710
|
+
__decorate([
|
|
26711
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26712
|
+
__metadata("design:type", String)
|
|
26713
|
+
], CreateDuplicateRunDetailInput.prototype, "SkippedReason", void 0);
|
|
26714
|
+
__decorate([
|
|
26715
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26716
|
+
__metadata("design:type", String)
|
|
26717
|
+
], CreateDuplicateRunDetailInput.prototype, "MatchErrorMessage", void 0);
|
|
26718
|
+
__decorate([
|
|
26719
|
+
(0, server_1.Field)(),
|
|
26720
|
+
__metadata("design:type", String)
|
|
26721
|
+
], CreateDuplicateRunDetailInput.prototype, "MergeStatus", void 0);
|
|
26722
|
+
__decorate([
|
|
26723
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26724
|
+
__metadata("design:type", String)
|
|
26725
|
+
], CreateDuplicateRunDetailInput.prototype, "MergeErrorMessage", void 0);
|
|
26726
|
+
exports.CreateDuplicateRunDetailInput = CreateDuplicateRunDetailInput = __decorate([
|
|
26727
|
+
(0, server_1.InputType)()
|
|
26728
|
+
], CreateDuplicateRunDetailInput);
|
|
26729
|
+
let UpdateDuplicateRunDetailInput = class UpdateDuplicateRunDetailInput {
|
|
26730
|
+
};
|
|
26731
|
+
exports.UpdateDuplicateRunDetailInput = UpdateDuplicateRunDetailInput;
|
|
26732
|
+
__decorate([
|
|
26733
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26734
|
+
__metadata("design:type", Number)
|
|
26735
|
+
], UpdateDuplicateRunDetailInput.prototype, "ID", void 0);
|
|
26736
|
+
__decorate([
|
|
26737
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
26738
|
+
__metadata("design:type", Number)
|
|
26739
|
+
], UpdateDuplicateRunDetailInput.prototype, "DuplicateRunID", void 0);
|
|
26740
|
+
__decorate([
|
|
26741
|
+
(0, server_1.Field)(),
|
|
26742
|
+
__metadata("design:type", String)
|
|
26743
|
+
], UpdateDuplicateRunDetailInput.prototype, "RecordID", void 0);
|
|
26744
|
+
__decorate([
|
|
26745
|
+
(0, server_1.Field)(),
|
|
26746
|
+
__metadata("design:type", String)
|
|
26747
|
+
], UpdateDuplicateRunDetailInput.prototype, "MatchStatus", void 0);
|
|
26748
|
+
__decorate([
|
|
26749
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26750
|
+
__metadata("design:type", String)
|
|
26751
|
+
], UpdateDuplicateRunDetailInput.prototype, "SkippedReason", void 0);
|
|
26752
|
+
__decorate([
|
|
26753
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26754
|
+
__metadata("design:type", String)
|
|
26755
|
+
], UpdateDuplicateRunDetailInput.prototype, "MatchErrorMessage", void 0);
|
|
26756
|
+
__decorate([
|
|
26757
|
+
(0, server_1.Field)(),
|
|
26758
|
+
__metadata("design:type", String)
|
|
26759
|
+
], UpdateDuplicateRunDetailInput.prototype, "MergeStatus", void 0);
|
|
26760
|
+
__decorate([
|
|
26761
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26762
|
+
__metadata("design:type", String)
|
|
26763
|
+
], UpdateDuplicateRunDetailInput.prototype, "MergeErrorMessage", void 0);
|
|
26764
|
+
exports.UpdateDuplicateRunDetailInput = UpdateDuplicateRunDetailInput = __decorate([
|
|
26765
|
+
(0, server_1.InputType)()
|
|
26766
|
+
], UpdateDuplicateRunDetailInput);
|
|
26767
|
+
let RunDuplicateRunDetailViewResult = class RunDuplicateRunDetailViewResult {
|
|
26768
|
+
};
|
|
26769
|
+
exports.RunDuplicateRunDetailViewResult = RunDuplicateRunDetailViewResult;
|
|
26770
|
+
__decorate([
|
|
26771
|
+
(0, server_1.Field)(() => [DuplicateRunDetail_]),
|
|
26772
|
+
__metadata("design:type", Array)
|
|
26773
|
+
], RunDuplicateRunDetailViewResult.prototype, "Results", void 0);
|
|
26774
|
+
__decorate([
|
|
26775
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26776
|
+
__metadata("design:type", Number)
|
|
26777
|
+
], RunDuplicateRunDetailViewResult.prototype, "UserViewRunID", void 0);
|
|
26778
|
+
__decorate([
|
|
26779
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26780
|
+
__metadata("design:type", Number)
|
|
26781
|
+
], RunDuplicateRunDetailViewResult.prototype, "RowCount", void 0);
|
|
26782
|
+
__decorate([
|
|
26783
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26784
|
+
__metadata("design:type", Number)
|
|
26785
|
+
], RunDuplicateRunDetailViewResult.prototype, "TotalRowCount", void 0);
|
|
26786
|
+
__decorate([
|
|
26787
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
26788
|
+
__metadata("design:type", Number)
|
|
26789
|
+
], RunDuplicateRunDetailViewResult.prototype, "ExecutionTime", void 0);
|
|
26790
|
+
__decorate([
|
|
26791
|
+
(0, server_1.Field)({ nullable: true }),
|
|
26792
|
+
__metadata("design:type", String)
|
|
26793
|
+
], RunDuplicateRunDetailViewResult.prototype, "ErrorMessage", void 0);
|
|
26794
|
+
__decorate([
|
|
26795
|
+
(0, server_1.Field)(() => Boolean, { nullable: false }),
|
|
26796
|
+
__metadata("design:type", Boolean)
|
|
26797
|
+
], RunDuplicateRunDetailViewResult.prototype, "Success", void 0);
|
|
26798
|
+
exports.RunDuplicateRunDetailViewResult = RunDuplicateRunDetailViewResult = __decorate([
|
|
26799
|
+
(0, server_1.ObjectType)()
|
|
26800
|
+
], RunDuplicateRunDetailViewResult);
|
|
26801
|
+
let DuplicateRunDetailResolver = class DuplicateRunDetailResolver extends server_1.ResolverBase {
|
|
26802
|
+
async RunDuplicateRunDetailViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
26803
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
26804
|
+
}
|
|
26805
|
+
async RunDuplicateRunDetailViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
26806
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
26807
|
+
}
|
|
26808
|
+
async RunDuplicateRunDetailDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
26809
|
+
input.EntityName = 'Duplicate Run Details';
|
|
26810
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
26811
|
+
}
|
|
26812
|
+
async DuplicateRunDetail(ID, { dataSource, userPayload }, pubSub) {
|
|
26813
|
+
this.CheckUserReadPermissions('Duplicate Run Details', userPayload);
|
|
26814
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetails] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Run Details', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
26815
|
+
const result = this.MapFieldNamesToCodeNames('Duplicate Run Details', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
26816
|
+
return result;
|
|
26817
|
+
}
|
|
26818
|
+
async DuplicateRunDetailMatchesArray(duplicaterundetail_, { dataSource, userPayload }, pubSub) {
|
|
26819
|
+
this.CheckUserReadPermissions('Duplicate Run Detail Matches', userPayload);
|
|
26820
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetailMatches] WHERE [DuplicateRunDetailID]=${duplicaterundetail_.ID} ` + this.getRowLevelSecurityWhereClause('Duplicate Run Detail Matches', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
26821
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Detail Matches', await dataSource.query(sSQL));
|
|
26822
|
+
return result;
|
|
26823
|
+
}
|
|
26824
|
+
async CreateDuplicateRunDetail(input, { dataSource, userPayload }, pubSub) {
|
|
26825
|
+
if (await this.BeforeCreate(dataSource, input)) {
|
|
26826
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Run Details', this.GetUserFromPayload(userPayload));
|
|
26827
|
+
await entityObject.NewRecord();
|
|
26828
|
+
entityObject.SetMany(input);
|
|
26829
|
+
if (await entityObject.Save()) {
|
|
26830
|
+
await this.AfterCreate(dataSource, input);
|
|
26831
|
+
return entityObject.GetAll();
|
|
26832
|
+
}
|
|
26833
|
+
else
|
|
26834
|
+
return null;
|
|
26835
|
+
}
|
|
26836
|
+
else
|
|
26837
|
+
return null;
|
|
26838
|
+
}
|
|
26839
|
+
async BeforeCreate(dataSource, input) {
|
|
26840
|
+
return true;
|
|
26841
|
+
}
|
|
26842
|
+
async AfterCreate(dataSource, input) {
|
|
26843
|
+
}
|
|
26844
|
+
async UpdateDuplicateRunDetail(input, { dataSource, userPayload }, pubSub) {
|
|
26845
|
+
if (await this.BeforeUpdate(dataSource, input)) {
|
|
26846
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Duplicate Run Details', this.GetUserFromPayload(userPayload));
|
|
26847
|
+
entityObject.LoadFromData(input);
|
|
26848
|
+
if (await entityObject.Save({ IgnoreDirtyState: true })) {
|
|
26849
|
+
await this.AfterUpdate(dataSource, input);
|
|
26850
|
+
return entityObject.GetAll();
|
|
26851
|
+
}
|
|
26852
|
+
else
|
|
26853
|
+
return null;
|
|
26854
|
+
}
|
|
26855
|
+
else
|
|
26856
|
+
return null;
|
|
26857
|
+
}
|
|
26858
|
+
async BeforeUpdate(dataSource, input) {
|
|
26859
|
+
const i = input, d = dataSource;
|
|
26860
|
+
return true;
|
|
26861
|
+
}
|
|
26862
|
+
async AfterUpdate(dataSource, input) {
|
|
26863
|
+
const i = input, d = dataSource;
|
|
26864
|
+
}
|
|
26865
|
+
};
|
|
26866
|
+
exports.DuplicateRunDetailResolver = DuplicateRunDetailResolver;
|
|
26867
|
+
__decorate([
|
|
26868
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailViewResult),
|
|
26869
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByIDInput)),
|
|
26870
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26871
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26872
|
+
__metadata("design:type", Function),
|
|
26873
|
+
__metadata("design:paramtypes", [server_1.RunViewByIDInput, Object, server_1.PubSubEngine]),
|
|
26874
|
+
__metadata("design:returntype", Promise)
|
|
26875
|
+
], DuplicateRunDetailResolver.prototype, "RunDuplicateRunDetailViewByID", null);
|
|
26876
|
+
__decorate([
|
|
26877
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailViewResult),
|
|
26878
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunViewByNameInput)),
|
|
26879
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26880
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26881
|
+
__metadata("design:type", Function),
|
|
26882
|
+
__metadata("design:paramtypes", [server_1.RunViewByNameInput, Object, server_1.PubSubEngine]),
|
|
26883
|
+
__metadata("design:returntype", Promise)
|
|
26884
|
+
], DuplicateRunDetailResolver.prototype, "RunDuplicateRunDetailViewByName", null);
|
|
26885
|
+
__decorate([
|
|
26886
|
+
(0, server_1.Query)(() => RunDuplicateRunDetailViewResult),
|
|
26887
|
+
__param(0, (0, server_1.Arg)('input', () => server_1.RunDynamicViewInput)),
|
|
26888
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26889
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26890
|
+
__metadata("design:type", Function),
|
|
26891
|
+
__metadata("design:paramtypes", [server_1.RunDynamicViewInput, Object, server_1.PubSubEngine]),
|
|
26892
|
+
__metadata("design:returntype", Promise)
|
|
26893
|
+
], DuplicateRunDetailResolver.prototype, "RunDuplicateRunDetailDynamicView", null);
|
|
26894
|
+
__decorate([
|
|
26895
|
+
(0, server_1.Query)(() => DuplicateRunDetail_, { nullable: true }),
|
|
26896
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
26897
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26898
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26899
|
+
__metadata("design:type", Function),
|
|
26900
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
26901
|
+
__metadata("design:returntype", Promise)
|
|
26902
|
+
], DuplicateRunDetailResolver.prototype, "DuplicateRunDetail", null);
|
|
26903
|
+
__decorate([
|
|
26904
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DuplicateRunDetailMatch_]),
|
|
26905
|
+
__param(0, (0, server_1.Root)()),
|
|
26906
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26907
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26908
|
+
__metadata("design:type", Function),
|
|
26909
|
+
__metadata("design:paramtypes", [DuplicateRunDetail_, Object, server_1.PubSubEngine]),
|
|
26910
|
+
__metadata("design:returntype", Promise)
|
|
26911
|
+
], DuplicateRunDetailResolver.prototype, "DuplicateRunDetailMatchesArray", null);
|
|
26912
|
+
__decorate([
|
|
26913
|
+
(0, server_1.Mutation)(() => DuplicateRunDetail_),
|
|
26914
|
+
__param(0, (0, server_1.Arg)('input', () => CreateDuplicateRunDetailInput)),
|
|
26915
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26916
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26917
|
+
__metadata("design:type", Function),
|
|
26918
|
+
__metadata("design:paramtypes", [CreateDuplicateRunDetailInput, Object, server_1.PubSubEngine]),
|
|
26919
|
+
__metadata("design:returntype", Promise)
|
|
26920
|
+
], DuplicateRunDetailResolver.prototype, "CreateDuplicateRunDetail", null);
|
|
26921
|
+
__decorate([
|
|
26922
|
+
(0, server_1.Mutation)(() => DuplicateRunDetail_),
|
|
26923
|
+
__param(0, (0, server_1.Arg)('input', () => UpdateDuplicateRunDetailInput)),
|
|
26924
|
+
__param(1, (0, server_1.Ctx)()),
|
|
26925
|
+
__param(2, (0, server_1.PubSub)()),
|
|
26926
|
+
__metadata("design:type", Function),
|
|
26927
|
+
__metadata("design:paramtypes", [UpdateDuplicateRunDetailInput, Object, server_1.PubSubEngine]),
|
|
26928
|
+
__metadata("design:returntype", Promise)
|
|
26929
|
+
], DuplicateRunDetailResolver.prototype, "UpdateDuplicateRunDetail", null);
|
|
26930
|
+
exports.DuplicateRunDetailResolver = DuplicateRunDetailResolver = __decorate([
|
|
26931
|
+
(0, server_1.Resolver)(DuplicateRunDetail_)
|
|
26932
|
+
], DuplicateRunDetailResolver);
|
|
25348
26933
|
//# sourceMappingURL=generated.js.map
|