@memberjunction/server 0.9.261 → 0.9.263
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.
|
@@ -5106,6 +5106,22 @@ __decorate([
|
|
|
5106
5106
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DataContext_]),
|
|
5107
5107
|
__metadata("design:type", Array)
|
|
5108
5108
|
], User_.prototype, "DataContextsArray", void 0);
|
|
5109
|
+
__decorate([
|
|
5110
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.ReportCategory_]),
|
|
5111
|
+
__metadata("design:type", Array)
|
|
5112
|
+
], User_.prototype, "ReportCategoriesArray", void 0);
|
|
5113
|
+
__decorate([
|
|
5114
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.UserViewCategory_]),
|
|
5115
|
+
__metadata("design:type", Array)
|
|
5116
|
+
], User_.prototype, "UserViewCategoriesArray", void 0);
|
|
5117
|
+
__decorate([
|
|
5118
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.DashboardCategory_]),
|
|
5119
|
+
__metadata("design:type", Array)
|
|
5120
|
+
], User_.prototype, "DashboardCategoriesArray", void 0);
|
|
5121
|
+
__decorate([
|
|
5122
|
+
(0, server_1.Field)(() => [mj_core_schema_server_object_types.QueryCategory_]),
|
|
5123
|
+
__metadata("design:type", Array)
|
|
5124
|
+
], User_.prototype, "QueryCategoriesArray", void 0);
|
|
5109
5125
|
exports.User_ = User_ = __decorate([
|
|
5110
5126
|
(0, server_1.ObjectType)({ description: 'A list of all users who have or had access to the system' })
|
|
5111
5127
|
], User_);
|
|
@@ -5378,6 +5394,30 @@ let UserResolverBase = class UserResolverBase extends server_1.ResolverBase {
|
|
|
5378
5394
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Contexts', await dataSource.query(sSQL));
|
|
5379
5395
|
return result;
|
|
5380
5396
|
}
|
|
5397
|
+
async ReportCategoriesArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5398
|
+
this.CheckUserReadPermissions('Report Categories', userPayload);
|
|
5399
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportCategories] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Report Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5400
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Report Categories', await dataSource.query(sSQL));
|
|
5401
|
+
return result;
|
|
5402
|
+
}
|
|
5403
|
+
async UserViewCategoriesArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5404
|
+
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
5405
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewCategories] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5406
|
+
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
5407
|
+
return result;
|
|
5408
|
+
}
|
|
5409
|
+
async DashboardCategoriesArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5410
|
+
this.CheckUserReadPermissions('Dashboard Categories', userPayload);
|
|
5411
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategories] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Dashboard Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5412
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboard Categories', await dataSource.query(sSQL));
|
|
5413
|
+
return result;
|
|
5414
|
+
}
|
|
5415
|
+
async QueryCategoriesArray(user_, { dataSource, userPayload }, pubSub) {
|
|
5416
|
+
this.CheckUserReadPermissions('Query Categories', userPayload);
|
|
5417
|
+
const sSQL = `SELECT * FROM [${core_1.Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryCategories] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Query Categories', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
5418
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Query Categories', await dataSource.query(sSQL));
|
|
5419
|
+
return result;
|
|
5420
|
+
}
|
|
5381
5421
|
async CreateUser(input, { dataSource, userPayload }, pubSub) {
|
|
5382
5422
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
5383
5423
|
const entityObject = await new core_1.Metadata().GetEntityObject('Users', this.GetUserFromPayload(userPayload));
|
|
@@ -5650,6 +5690,42 @@ __decorate([
|
|
|
5650
5690
|
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5651
5691
|
__metadata("design:returntype", Promise)
|
|
5652
5692
|
], UserResolverBase.prototype, "DataContextsArray", null);
|
|
5693
|
+
__decorate([
|
|
5694
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.ReportCategory_]),
|
|
5695
|
+
__param(0, (0, server_1.Root)()),
|
|
5696
|
+
__param(1, (0, server_1.Ctx)()),
|
|
5697
|
+
__param(2, (0, server_1.PubSub)()),
|
|
5698
|
+
__metadata("design:type", Function),
|
|
5699
|
+
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5700
|
+
__metadata("design:returntype", Promise)
|
|
5701
|
+
], UserResolverBase.prototype, "ReportCategoriesArray", null);
|
|
5702
|
+
__decorate([
|
|
5703
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.UserViewCategory_]),
|
|
5704
|
+
__param(0, (0, server_1.Root)()),
|
|
5705
|
+
__param(1, (0, server_1.Ctx)()),
|
|
5706
|
+
__param(2, (0, server_1.PubSub)()),
|
|
5707
|
+
__metadata("design:type", Function),
|
|
5708
|
+
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5709
|
+
__metadata("design:returntype", Promise)
|
|
5710
|
+
], UserResolverBase.prototype, "UserViewCategoriesArray", null);
|
|
5711
|
+
__decorate([
|
|
5712
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.DashboardCategory_]),
|
|
5713
|
+
__param(0, (0, server_1.Root)()),
|
|
5714
|
+
__param(1, (0, server_1.Ctx)()),
|
|
5715
|
+
__param(2, (0, server_1.PubSub)()),
|
|
5716
|
+
__metadata("design:type", Function),
|
|
5717
|
+
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5718
|
+
__metadata("design:returntype", Promise)
|
|
5719
|
+
], UserResolverBase.prototype, "DashboardCategoriesArray", null);
|
|
5720
|
+
__decorate([
|
|
5721
|
+
(0, server_1.FieldResolver)(() => [mj_core_schema_server_object_types.QueryCategory_]),
|
|
5722
|
+
__param(0, (0, server_1.Root)()),
|
|
5723
|
+
__param(1, (0, server_1.Ctx)()),
|
|
5724
|
+
__param(2, (0, server_1.PubSub)()),
|
|
5725
|
+
__metadata("design:type", Function),
|
|
5726
|
+
__metadata("design:paramtypes", [User_, Object, server_1.PubSubEngine]),
|
|
5727
|
+
__metadata("design:returntype", Promise)
|
|
5728
|
+
], UserResolverBase.prototype, "QueryCategoriesArray", null);
|
|
5653
5729
|
__decorate([
|
|
5654
5730
|
(0, server_1.Mutation)(() => User_),
|
|
5655
5731
|
__param(0, (0, server_1.Arg)('input', () => CreateUserInput)),
|
|
@@ -19786,11 +19862,20 @@ __decorate([
|
|
|
19786
19862
|
(0, class_validator_1.MaxLength)(8),
|
|
19787
19863
|
__metadata("design:type", Date)
|
|
19788
19864
|
], QueryCategory_.prototype, "UpdatedAt", void 0);
|
|
19865
|
+
__decorate([
|
|
19866
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
19867
|
+
__metadata("design:type", Number)
|
|
19868
|
+
], QueryCategory_.prototype, "UserID", void 0);
|
|
19789
19869
|
__decorate([
|
|
19790
19870
|
(0, server_1.Field)({ nullable: true }),
|
|
19791
19871
|
(0, class_validator_1.MaxLength)(100),
|
|
19792
19872
|
__metadata("design:type", String)
|
|
19793
19873
|
], QueryCategory_.prototype, "Parent", void 0);
|
|
19874
|
+
__decorate([
|
|
19875
|
+
(0, server_1.Field)(),
|
|
19876
|
+
(0, class_validator_1.MaxLength)(200),
|
|
19877
|
+
__metadata("design:type", String)
|
|
19878
|
+
], QueryCategory_.prototype, "User", void 0);
|
|
19794
19879
|
__decorate([
|
|
19795
19880
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.QueryCategory_]),
|
|
19796
19881
|
__metadata("design:type", Array)
|
|
@@ -19817,6 +19902,10 @@ __decorate([
|
|
|
19817
19902
|
(0, server_1.Field)({ nullable: true }),
|
|
19818
19903
|
__metadata("design:type", String)
|
|
19819
19904
|
], CreateQueryCategoryInput.prototype, "Description", void 0);
|
|
19905
|
+
__decorate([
|
|
19906
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
19907
|
+
__metadata("design:type", Number)
|
|
19908
|
+
], CreateQueryCategoryInput.prototype, "UserID", void 0);
|
|
19820
19909
|
exports.CreateQueryCategoryInput = CreateQueryCategoryInput = __decorate([
|
|
19821
19910
|
(0, server_1.InputType)()
|
|
19822
19911
|
], CreateQueryCategoryInput);
|
|
@@ -19839,6 +19928,10 @@ __decorate([
|
|
|
19839
19928
|
(0, server_1.Field)({ nullable: true }),
|
|
19840
19929
|
__metadata("design:type", String)
|
|
19841
19930
|
], UpdateQueryCategoryInput.prototype, "Description", void 0);
|
|
19931
|
+
__decorate([
|
|
19932
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
19933
|
+
__metadata("design:type", Number)
|
|
19934
|
+
], UpdateQueryCategoryInput.prototype, "UserID", void 0);
|
|
19842
19935
|
exports.UpdateQueryCategoryInput = UpdateQueryCategoryInput = __decorate([
|
|
19843
19936
|
(0, server_1.InputType)()
|
|
19844
19937
|
], UpdateQueryCategoryInput);
|
|
@@ -22774,11 +22867,20 @@ __decorate([
|
|
|
22774
22867
|
(0, server_1.Field)(() => server_1.Int),
|
|
22775
22868
|
__metadata("design:type", Number)
|
|
22776
22869
|
], UserViewCategory_.prototype, "EntityID", void 0);
|
|
22870
|
+
__decorate([
|
|
22871
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22872
|
+
__metadata("design:type", Number)
|
|
22873
|
+
], UserViewCategory_.prototype, "UserID", void 0);
|
|
22777
22874
|
__decorate([
|
|
22778
22875
|
(0, server_1.Field)({ nullable: true }),
|
|
22779
22876
|
(0, class_validator_1.MaxLength)(200),
|
|
22780
22877
|
__metadata("design:type", String)
|
|
22781
22878
|
], UserViewCategory_.prototype, "Parent", void 0);
|
|
22879
|
+
__decorate([
|
|
22880
|
+
(0, server_1.Field)(),
|
|
22881
|
+
(0, class_validator_1.MaxLength)(200),
|
|
22882
|
+
__metadata("design:type", String)
|
|
22883
|
+
], UserViewCategory_.prototype, "User", void 0);
|
|
22782
22884
|
__decorate([
|
|
22783
22885
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.UserViewCategory_]),
|
|
22784
22886
|
__metadata("design:type", Array)
|
|
@@ -22809,6 +22911,10 @@ __decorate([
|
|
|
22809
22911
|
(0, server_1.Field)(() => server_1.Int),
|
|
22810
22912
|
__metadata("design:type", Number)
|
|
22811
22913
|
], CreateUserViewCategoryInput.prototype, "EntityID", void 0);
|
|
22914
|
+
__decorate([
|
|
22915
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22916
|
+
__metadata("design:type", Number)
|
|
22917
|
+
], CreateUserViewCategoryInput.prototype, "UserID", void 0);
|
|
22812
22918
|
exports.CreateUserViewCategoryInput = CreateUserViewCategoryInput = __decorate([
|
|
22813
22919
|
(0, server_1.InputType)()
|
|
22814
22920
|
], CreateUserViewCategoryInput);
|
|
@@ -22835,6 +22941,10 @@ __decorate([
|
|
|
22835
22941
|
(0, server_1.Field)(() => server_1.Int),
|
|
22836
22942
|
__metadata("design:type", Number)
|
|
22837
22943
|
], UpdateUserViewCategoryInput.prototype, "EntityID", void 0);
|
|
22944
|
+
__decorate([
|
|
22945
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
22946
|
+
__metadata("design:type", Number)
|
|
22947
|
+
], UpdateUserViewCategoryInput.prototype, "UserID", void 0);
|
|
22838
22948
|
exports.UpdateUserViewCategoryInput = UpdateUserViewCategoryInput = __decorate([
|
|
22839
22949
|
(0, server_1.InputType)()
|
|
22840
22950
|
], UpdateUserViewCategoryInput);
|
|
@@ -23080,11 +23190,20 @@ __decorate([
|
|
|
23080
23190
|
(0, class_validator_1.MaxLength)(8),
|
|
23081
23191
|
__metadata("design:type", Date)
|
|
23082
23192
|
], DashboardCategory_.prototype, "UpdatedAt", void 0);
|
|
23193
|
+
__decorate([
|
|
23194
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23195
|
+
__metadata("design:type", Number)
|
|
23196
|
+
], DashboardCategory_.prototype, "UserID", void 0);
|
|
23083
23197
|
__decorate([
|
|
23084
23198
|
(0, server_1.Field)({ nullable: true }),
|
|
23085
23199
|
(0, class_validator_1.MaxLength)(200),
|
|
23086
23200
|
__metadata("design:type", String)
|
|
23087
23201
|
], DashboardCategory_.prototype, "Parent", void 0);
|
|
23202
|
+
__decorate([
|
|
23203
|
+
(0, server_1.Field)(),
|
|
23204
|
+
(0, class_validator_1.MaxLength)(200),
|
|
23205
|
+
__metadata("design:type", String)
|
|
23206
|
+
], DashboardCategory_.prototype, "User", void 0);
|
|
23088
23207
|
__decorate([
|
|
23089
23208
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.Dashboard_]),
|
|
23090
23209
|
__metadata("design:type", Array)
|
|
@@ -23111,6 +23230,10 @@ __decorate([
|
|
|
23111
23230
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
23112
23231
|
__metadata("design:type", Number)
|
|
23113
23232
|
], CreateDashboardCategoryInput.prototype, "ParentID", void 0);
|
|
23233
|
+
__decorate([
|
|
23234
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23235
|
+
__metadata("design:type", Number)
|
|
23236
|
+
], CreateDashboardCategoryInput.prototype, "UserID", void 0);
|
|
23114
23237
|
exports.CreateDashboardCategoryInput = CreateDashboardCategoryInput = __decorate([
|
|
23115
23238
|
(0, server_1.InputType)()
|
|
23116
23239
|
], CreateDashboardCategoryInput);
|
|
@@ -23133,6 +23256,10 @@ __decorate([
|
|
|
23133
23256
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
23134
23257
|
__metadata("design:type", Number)
|
|
23135
23258
|
], UpdateDashboardCategoryInput.prototype, "ParentID", void 0);
|
|
23259
|
+
__decorate([
|
|
23260
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23261
|
+
__metadata("design:type", Number)
|
|
23262
|
+
], UpdateDashboardCategoryInput.prototype, "UserID", void 0);
|
|
23136
23263
|
exports.UpdateDashboardCategoryInput = UpdateDashboardCategoryInput = __decorate([
|
|
23137
23264
|
(0, server_1.InputType)()
|
|
23138
23265
|
], UpdateDashboardCategoryInput);
|
|
@@ -23378,11 +23505,20 @@ __decorate([
|
|
|
23378
23505
|
(0, class_validator_1.MaxLength)(8),
|
|
23379
23506
|
__metadata("design:type", Date)
|
|
23380
23507
|
], ReportCategory_.prototype, "UpdatedAt", void 0);
|
|
23508
|
+
__decorate([
|
|
23509
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23510
|
+
__metadata("design:type", Number)
|
|
23511
|
+
], ReportCategory_.prototype, "UserID", void 0);
|
|
23381
23512
|
__decorate([
|
|
23382
23513
|
(0, server_1.Field)({ nullable: true }),
|
|
23383
23514
|
(0, class_validator_1.MaxLength)(200),
|
|
23384
23515
|
__metadata("design:type", String)
|
|
23385
23516
|
], ReportCategory_.prototype, "Parent", void 0);
|
|
23517
|
+
__decorate([
|
|
23518
|
+
(0, server_1.Field)(),
|
|
23519
|
+
(0, class_validator_1.MaxLength)(200),
|
|
23520
|
+
__metadata("design:type", String)
|
|
23521
|
+
], ReportCategory_.prototype, "User", void 0);
|
|
23386
23522
|
__decorate([
|
|
23387
23523
|
(0, server_1.Field)(() => [mj_core_schema_server_object_types.ReportCategory_]),
|
|
23388
23524
|
__metadata("design:type", Array)
|
|
@@ -23409,6 +23545,10 @@ __decorate([
|
|
|
23409
23545
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
23410
23546
|
__metadata("design:type", Number)
|
|
23411
23547
|
], CreateReportCategoryInput.prototype, "ParentID", void 0);
|
|
23548
|
+
__decorate([
|
|
23549
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23550
|
+
__metadata("design:type", Number)
|
|
23551
|
+
], CreateReportCategoryInput.prototype, "UserID", void 0);
|
|
23412
23552
|
exports.CreateReportCategoryInput = CreateReportCategoryInput = __decorate([
|
|
23413
23553
|
(0, server_1.InputType)()
|
|
23414
23554
|
], CreateReportCategoryInput);
|
|
@@ -23431,6 +23571,10 @@ __decorate([
|
|
|
23431
23571
|
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
23432
23572
|
__metadata("design:type", Number)
|
|
23433
23573
|
], UpdateReportCategoryInput.prototype, "ParentID", void 0);
|
|
23574
|
+
__decorate([
|
|
23575
|
+
(0, server_1.Field)(() => server_1.Int),
|
|
23576
|
+
__metadata("design:type", Number)
|
|
23577
|
+
], UpdateReportCategoryInput.prototype, "UserID", void 0);
|
|
23434
23578
|
exports.UpdateReportCategoryInput = UpdateReportCategoryInput = __decorate([
|
|
23435
23579
|
(0, server_1.InputType)()
|
|
23436
23580
|
], UpdateReportCategoryInput);
|