@memberjunction/server 2.43.0 → 2.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11797,9 +11797,9 @@ let User_ = class User_ {
11797
11797
  UserNotifications_UserIDArray;
11798
11798
  Templates_UserIDArray;
11799
11799
  UserFavorites_UserIDArray;
11800
- ResourceLinks_UserIDArray;
11801
11800
  ListCategories_UserIDArray;
11802
11801
  ScheduledActions_CreatedByUserIDArray;
11802
+ ResourceLinks_UserIDArray;
11803
11803
  AIAgentRequests_ResponseByUserIDArray;
11804
11804
  MJ_DashboardUserPreferences_UserIDArray;
11805
11805
  MJ_ReportUserStates_UserIDArray;
@@ -12028,10 +12028,6 @@ __decorate([
12028
12028
  Field(() => [UserFavorite_]),
12029
12029
  __metadata("design:type", Array)
12030
12030
  ], User_.prototype, "UserFavorites_UserIDArray", void 0);
12031
- __decorate([
12032
- Field(() => [ResourceLink_]),
12033
- __metadata("design:type", Array)
12034
- ], User_.prototype, "ResourceLinks_UserIDArray", void 0);
12035
12031
  __decorate([
12036
12032
  Field(() => [ListCategory_]),
12037
12033
  __metadata("design:type", Array)
@@ -12040,6 +12036,10 @@ __decorate([
12040
12036
  Field(() => [ScheduledAction_]),
12041
12037
  __metadata("design:type", Array)
12042
12038
  ], User_.prototype, "ScheduledActions_CreatedByUserIDArray", void 0);
12039
+ __decorate([
12040
+ Field(() => [ResourceLink_]),
12041
+ __metadata("design:type", Array)
12042
+ ], User_.prototype, "ResourceLinks_UserIDArray", void 0);
12043
12043
  __decorate([
12044
12044
  Field(() => [AIAgentRequest_]),
12045
12045
  __metadata("design:type", Array)
@@ -12487,13 +12487,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
12487
12487
  const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
12488
12488
  return result;
12489
12489
  }
12490
- async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
12491
- this.CheckUserReadPermissions('Resource Links', userPayload);
12492
- const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
12493
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
12494
- const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
12495
- return result;
12496
- }
12497
12490
  async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
12498
12491
  this.CheckUserReadPermissions('List Categories', userPayload);
12499
12492
  const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
@@ -12508,6 +12501,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
12508
12501
  const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
12509
12502
  return result;
12510
12503
  }
12504
+ async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
12505
+ this.CheckUserReadPermissions('Resource Links', userPayload);
12506
+ const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
12507
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
12508
+ const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
12509
+ return result;
12510
+ }
12511
12511
  async AIAgentRequests_ResponseByUserIDArray(user_, { dataSources, userPayload }, pubSub) {
12512
12512
  this.CheckUserReadPermissions('AI Agent Requests', userPayload);
12513
12513
  const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
@@ -12893,32 +12893,32 @@ __decorate([
12893
12893
  __metadata("design:returntype", Promise)
12894
12894
  ], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
12895
12895
  __decorate([
12896
- FieldResolver(() => [ResourceLink_]),
12896
+ FieldResolver(() => [ListCategory_]),
12897
12897
  __param(0, Root()),
12898
12898
  __param(1, Ctx()),
12899
12899
  __param(2, PubSub()),
12900
12900
  __metadata("design:type", Function),
12901
12901
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
12902
12902
  __metadata("design:returntype", Promise)
12903
- ], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
12903
+ ], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
12904
12904
  __decorate([
12905
- FieldResolver(() => [ListCategory_]),
12905
+ FieldResolver(() => [ScheduledAction_]),
12906
12906
  __param(0, Root()),
12907
12907
  __param(1, Ctx()),
12908
12908
  __param(2, PubSub()),
12909
12909
  __metadata("design:type", Function),
12910
12910
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
12911
12911
  __metadata("design:returntype", Promise)
12912
- ], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
12912
+ ], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
12913
12913
  __decorate([
12914
- FieldResolver(() => [ScheduledAction_]),
12914
+ FieldResolver(() => [ResourceLink_]),
12915
12915
  __param(0, Root()),
12916
12916
  __param(1, Ctx()),
12917
12917
  __param(2, PubSub()),
12918
12918
  __metadata("design:type", Function),
12919
12919
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
12920
12920
  __metadata("design:returntype", Promise)
12921
- ], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
12921
+ ], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
12922
12922
  __decorate([
12923
12923
  FieldResolver(() => [AIAgentRequest_]),
12924
12924
  __param(0, Root()),
@@ -24096,8 +24096,8 @@ let Dashboard_ = class Dashboard_ {
24096
24096
  Thumbnail;
24097
24097
  Scope;
24098
24098
  ApplicationID;
24099
- Code;
24100
24099
  DriverClass;
24100
+ Code;
24101
24101
  User;
24102
24102
  Category;
24103
24103
  Application;
@@ -24162,15 +24162,15 @@ __decorate([
24162
24162
  __metadata("design:type", String)
24163
24163
  ], Dashboard_.prototype, "ApplicationID", void 0);
24164
24164
  __decorate([
24165
- Field({ nullable: true, description: `Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.` }),
24165
+ Field({ nullable: true, description: `Specifies the runtime class that will be used for the Dashboard when Type is set to 'Code'. This class contains the custom logic and implementation for code-based dashboards.` }),
24166
24166
  MaxLength(510),
24167
24167
  __metadata("design:type", String)
24168
- ], Dashboard_.prototype, "Code", void 0);
24168
+ ], Dashboard_.prototype, "DriverClass", void 0);
24169
24169
  __decorate([
24170
- Field({ nullable: true, description: `Specifies the runtime class that will be used for the Dashboard when Type is set to 'Code'. This class contains the custom logic and implementation for code-based dashboards.` }),
24170
+ Field({ nullable: true, description: `Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.` }),
24171
24171
  MaxLength(510),
24172
24172
  __metadata("design:type", String)
24173
- ], Dashboard_.prototype, "DriverClass", void 0);
24173
+ ], Dashboard_.prototype, "Code", void 0);
24174
24174
  __decorate([
24175
24175
  Field(),
24176
24176
  MaxLength(200),
@@ -24208,8 +24208,8 @@ let CreateDashboardInput = class CreateDashboardInput {
24208
24208
  Thumbnail;
24209
24209
  Scope;
24210
24210
  ApplicationID;
24211
- Code;
24212
24211
  DriverClass;
24212
+ Code;
24213
24213
  };
24214
24214
  __decorate([
24215
24215
  Field({ nullable: true }),
@@ -24250,11 +24250,11 @@ __decorate([
24250
24250
  __decorate([
24251
24251
  Field({ nullable: true }),
24252
24252
  __metadata("design:type", String)
24253
- ], CreateDashboardInput.prototype, "Code", void 0);
24253
+ ], CreateDashboardInput.prototype, "DriverClass", void 0);
24254
24254
  __decorate([
24255
24255
  Field({ nullable: true }),
24256
24256
  __metadata("design:type", String)
24257
- ], CreateDashboardInput.prototype, "DriverClass", void 0);
24257
+ ], CreateDashboardInput.prototype, "Code", void 0);
24258
24258
  CreateDashboardInput = __decorate([
24259
24259
  InputType()
24260
24260
  ], CreateDashboardInput);
@@ -24270,8 +24270,8 @@ let UpdateDashboardInput = class UpdateDashboardInput {
24270
24270
  Thumbnail;
24271
24271
  Scope;
24272
24272
  ApplicationID;
24273
- Code;
24274
24273
  DriverClass;
24274
+ Code;
24275
24275
  OldValues___;
24276
24276
  };
24277
24277
  __decorate([
@@ -24317,11 +24317,11 @@ __decorate([
24317
24317
  __decorate([
24318
24318
  Field({ nullable: true }),
24319
24319
  __metadata("design:type", String)
24320
- ], UpdateDashboardInput.prototype, "Code", void 0);
24320
+ ], UpdateDashboardInput.prototype, "DriverClass", void 0);
24321
24321
  __decorate([
24322
24322
  Field({ nullable: true }),
24323
24323
  __metadata("design:type", String)
24324
- ], UpdateDashboardInput.prototype, "DriverClass", void 0);
24324
+ ], UpdateDashboardInput.prototype, "Code", void 0);
24325
24325
  __decorate([
24326
24326
  Field(() => [KeyValuePairInput], { nullable: true }),
24327
24327
  __metadata("design:type", Array)