@memberjunction/server 2.42.1 → 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.
- package/README.md +228 -2
- package/dist/generated/generated.d.ts +8 -5
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +45 -29
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +75 -45
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts +19 -0
- package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -0
- package/dist/resolvers/RunAIPromptResolver.js +188 -0
- package/dist/resolvers/RunAIPromptResolver.js.map +1 -0
- package/dist/resolvers/RunTemplateResolver.d.ts +14 -0
- package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -0
- package/dist/resolvers/RunTemplateResolver.js +138 -0
- package/dist/resolvers/RunTemplateResolver.js.map +1 -0
- package/package.json +23 -22
- package/src/generated/generated.ts +30 -20
- package/src/generic/ResolverBase.ts +2 -1
- package/src/index.ts +2 -0
- package/src/resolvers/AskSkipResolver.ts +115 -73
- package/src/resolvers/RunAIPromptResolver.ts +169 -0
- package/src/resolvers/RunTemplateResolver.ts +130 -0
|
@@ -9153,6 +9153,7 @@ let EntityField_ = class EntityField_ {
|
|
|
9153
9153
|
ScopeDefault;
|
|
9154
9154
|
AutoUpdateRelatedEntityInfo;
|
|
9155
9155
|
ValuesToPackWithSchema;
|
|
9156
|
+
Status;
|
|
9156
9157
|
FieldCodeName;
|
|
9157
9158
|
Entity;
|
|
9158
9159
|
SchemaName;
|
|
@@ -9361,6 +9362,11 @@ __decorate([
|
|
|
9361
9362
|
MaxLength(20),
|
|
9362
9363
|
__metadata("design:type", String)
|
|
9363
9364
|
], EntityField_.prototype, "ValuesToPackWithSchema", void 0);
|
|
9365
|
+
__decorate([
|
|
9366
|
+
Field({ description: `Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use` }),
|
|
9367
|
+
MaxLength(50),
|
|
9368
|
+
__metadata("design:type", String)
|
|
9369
|
+
], EntityField_.prototype, "Status", void 0);
|
|
9364
9370
|
__decorate([
|
|
9365
9371
|
Field({ nullable: true }),
|
|
9366
9372
|
__metadata("design:type", String)
|
|
@@ -9459,6 +9465,7 @@ let CreateEntityFieldInput = class CreateEntityFieldInput {
|
|
|
9459
9465
|
ScopeDefault;
|
|
9460
9466
|
AutoUpdateRelatedEntityInfo;
|
|
9461
9467
|
ValuesToPackWithSchema;
|
|
9468
|
+
Status;
|
|
9462
9469
|
};
|
|
9463
9470
|
__decorate([
|
|
9464
9471
|
Field({ nullable: true }),
|
|
@@ -9576,6 +9583,10 @@ __decorate([
|
|
|
9576
9583
|
Field({ nullable: true }),
|
|
9577
9584
|
__metadata("design:type", String)
|
|
9578
9585
|
], CreateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
9586
|
+
__decorate([
|
|
9587
|
+
Field({ nullable: true }),
|
|
9588
|
+
__metadata("design:type", String)
|
|
9589
|
+
], CreateEntityFieldInput.prototype, "Status", void 0);
|
|
9579
9590
|
CreateEntityFieldInput = __decorate([
|
|
9580
9591
|
InputType()
|
|
9581
9592
|
], CreateEntityFieldInput);
|
|
@@ -9611,6 +9622,7 @@ let UpdateEntityFieldInput = class UpdateEntityFieldInput {
|
|
|
9611
9622
|
ScopeDefault;
|
|
9612
9623
|
AutoUpdateRelatedEntityInfo;
|
|
9613
9624
|
ValuesToPackWithSchema;
|
|
9625
|
+
Status;
|
|
9614
9626
|
OldValues___;
|
|
9615
9627
|
};
|
|
9616
9628
|
__decorate([
|
|
@@ -9733,6 +9745,10 @@ __decorate([
|
|
|
9733
9745
|
Field({ nullable: true }),
|
|
9734
9746
|
__metadata("design:type", String)
|
|
9735
9747
|
], UpdateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
9748
|
+
__decorate([
|
|
9749
|
+
Field({ nullable: true }),
|
|
9750
|
+
__metadata("design:type", String)
|
|
9751
|
+
], UpdateEntityFieldInput.prototype, "Status", void 0);
|
|
9736
9752
|
__decorate([
|
|
9737
9753
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9738
9754
|
__metadata("design:type", Array)
|
|
@@ -11781,9 +11797,9 @@ let User_ = class User_ {
|
|
|
11781
11797
|
UserNotifications_UserIDArray;
|
|
11782
11798
|
Templates_UserIDArray;
|
|
11783
11799
|
UserFavorites_UserIDArray;
|
|
11784
|
-
ResourceLinks_UserIDArray;
|
|
11785
11800
|
ListCategories_UserIDArray;
|
|
11786
11801
|
ScheduledActions_CreatedByUserIDArray;
|
|
11802
|
+
ResourceLinks_UserIDArray;
|
|
11787
11803
|
AIAgentRequests_ResponseByUserIDArray;
|
|
11788
11804
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
11789
11805
|
MJ_ReportUserStates_UserIDArray;
|
|
@@ -12012,10 +12028,6 @@ __decorate([
|
|
|
12012
12028
|
Field(() => [UserFavorite_]),
|
|
12013
12029
|
__metadata("design:type", Array)
|
|
12014
12030
|
], User_.prototype, "UserFavorites_UserIDArray", void 0);
|
|
12015
|
-
__decorate([
|
|
12016
|
-
Field(() => [ResourceLink_]),
|
|
12017
|
-
__metadata("design:type", Array)
|
|
12018
|
-
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
12019
12031
|
__decorate([
|
|
12020
12032
|
Field(() => [ListCategory_]),
|
|
12021
12033
|
__metadata("design:type", Array)
|
|
@@ -12024,6 +12036,10 @@ __decorate([
|
|
|
12024
12036
|
Field(() => [ScheduledAction_]),
|
|
12025
12037
|
__metadata("design:type", Array)
|
|
12026
12038
|
], User_.prototype, "ScheduledActions_CreatedByUserIDArray", void 0);
|
|
12039
|
+
__decorate([
|
|
12040
|
+
Field(() => [ResourceLink_]),
|
|
12041
|
+
__metadata("design:type", Array)
|
|
12042
|
+
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
12027
12043
|
__decorate([
|
|
12028
12044
|
Field(() => [AIAgentRequest_]),
|
|
12029
12045
|
__metadata("design:type", Array)
|
|
@@ -12471,13 +12487,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
12471
12487
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
12472
12488
|
return result;
|
|
12473
12489
|
}
|
|
12474
|
-
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
12475
|
-
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
12476
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
12477
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
12478
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
12479
|
-
return result;
|
|
12480
|
-
}
|
|
12481
12490
|
async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
12482
12491
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
12483
12492
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -12492,6 +12501,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
12492
12501
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
|
|
12493
12502
|
return result;
|
|
12494
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
|
+
}
|
|
12495
12511
|
async AIAgentRequests_ResponseByUserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
12496
12512
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
12497
12513
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -12877,32 +12893,32 @@ __decorate([
|
|
|
12877
12893
|
__metadata("design:returntype", Promise)
|
|
12878
12894
|
], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
|
|
12879
12895
|
__decorate([
|
|
12880
|
-
FieldResolver(() => [
|
|
12896
|
+
FieldResolver(() => [ListCategory_]),
|
|
12881
12897
|
__param(0, Root()),
|
|
12882
12898
|
__param(1, Ctx()),
|
|
12883
12899
|
__param(2, PubSub()),
|
|
12884
12900
|
__metadata("design:type", Function),
|
|
12885
12901
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
12886
12902
|
__metadata("design:returntype", Promise)
|
|
12887
|
-
], UserResolverBase.prototype, "
|
|
12903
|
+
], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
|
|
12888
12904
|
__decorate([
|
|
12889
|
-
FieldResolver(() => [
|
|
12905
|
+
FieldResolver(() => [ScheduledAction_]),
|
|
12890
12906
|
__param(0, Root()),
|
|
12891
12907
|
__param(1, Ctx()),
|
|
12892
12908
|
__param(2, PubSub()),
|
|
12893
12909
|
__metadata("design:type", Function),
|
|
12894
12910
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
12895
12911
|
__metadata("design:returntype", Promise)
|
|
12896
|
-
], UserResolverBase.prototype, "
|
|
12912
|
+
], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
|
|
12897
12913
|
__decorate([
|
|
12898
|
-
FieldResolver(() => [
|
|
12914
|
+
FieldResolver(() => [ResourceLink_]),
|
|
12899
12915
|
__param(0, Root()),
|
|
12900
12916
|
__param(1, Ctx()),
|
|
12901
12917
|
__param(2, PubSub()),
|
|
12902
12918
|
__metadata("design:type", Function),
|
|
12903
12919
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
12904
12920
|
__metadata("design:returntype", Promise)
|
|
12905
|
-
], UserResolverBase.prototype, "
|
|
12921
|
+
], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
|
|
12906
12922
|
__decorate([
|
|
12907
12923
|
FieldResolver(() => [AIAgentRequest_]),
|
|
12908
12924
|
__param(0, Root()),
|
|
@@ -24080,8 +24096,8 @@ let Dashboard_ = class Dashboard_ {
|
|
|
24080
24096
|
Thumbnail;
|
|
24081
24097
|
Scope;
|
|
24082
24098
|
ApplicationID;
|
|
24083
|
-
Code;
|
|
24084
24099
|
DriverClass;
|
|
24100
|
+
Code;
|
|
24085
24101
|
User;
|
|
24086
24102
|
Category;
|
|
24087
24103
|
Application;
|
|
@@ -24146,15 +24162,15 @@ __decorate([
|
|
|
24146
24162
|
__metadata("design:type", String)
|
|
24147
24163
|
], Dashboard_.prototype, "ApplicationID", void 0);
|
|
24148
24164
|
__decorate([
|
|
24149
|
-
Field({ nullable: true, description: `
|
|
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.` }),
|
|
24150
24166
|
MaxLength(510),
|
|
24151
24167
|
__metadata("design:type", String)
|
|
24152
|
-
], Dashboard_.prototype, "
|
|
24168
|
+
], Dashboard_.prototype, "DriverClass", void 0);
|
|
24153
24169
|
__decorate([
|
|
24154
|
-
Field({ nullable: true, description: `
|
|
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.` }),
|
|
24155
24171
|
MaxLength(510),
|
|
24156
24172
|
__metadata("design:type", String)
|
|
24157
|
-
], Dashboard_.prototype, "
|
|
24173
|
+
], Dashboard_.prototype, "Code", void 0);
|
|
24158
24174
|
__decorate([
|
|
24159
24175
|
Field(),
|
|
24160
24176
|
MaxLength(200),
|
|
@@ -24192,8 +24208,8 @@ let CreateDashboardInput = class CreateDashboardInput {
|
|
|
24192
24208
|
Thumbnail;
|
|
24193
24209
|
Scope;
|
|
24194
24210
|
ApplicationID;
|
|
24195
|
-
Code;
|
|
24196
24211
|
DriverClass;
|
|
24212
|
+
Code;
|
|
24197
24213
|
};
|
|
24198
24214
|
__decorate([
|
|
24199
24215
|
Field({ nullable: true }),
|
|
@@ -24234,11 +24250,11 @@ __decorate([
|
|
|
24234
24250
|
__decorate([
|
|
24235
24251
|
Field({ nullable: true }),
|
|
24236
24252
|
__metadata("design:type", String)
|
|
24237
|
-
], CreateDashboardInput.prototype, "
|
|
24253
|
+
], CreateDashboardInput.prototype, "DriverClass", void 0);
|
|
24238
24254
|
__decorate([
|
|
24239
24255
|
Field({ nullable: true }),
|
|
24240
24256
|
__metadata("design:type", String)
|
|
24241
|
-
], CreateDashboardInput.prototype, "
|
|
24257
|
+
], CreateDashboardInput.prototype, "Code", void 0);
|
|
24242
24258
|
CreateDashboardInput = __decorate([
|
|
24243
24259
|
InputType()
|
|
24244
24260
|
], CreateDashboardInput);
|
|
@@ -24254,8 +24270,8 @@ let UpdateDashboardInput = class UpdateDashboardInput {
|
|
|
24254
24270
|
Thumbnail;
|
|
24255
24271
|
Scope;
|
|
24256
24272
|
ApplicationID;
|
|
24257
|
-
Code;
|
|
24258
24273
|
DriverClass;
|
|
24274
|
+
Code;
|
|
24259
24275
|
OldValues___;
|
|
24260
24276
|
};
|
|
24261
24277
|
__decorate([
|
|
@@ -24301,11 +24317,11 @@ __decorate([
|
|
|
24301
24317
|
__decorate([
|
|
24302
24318
|
Field({ nullable: true }),
|
|
24303
24319
|
__metadata("design:type", String)
|
|
24304
|
-
], UpdateDashboardInput.prototype, "
|
|
24320
|
+
], UpdateDashboardInput.prototype, "DriverClass", void 0);
|
|
24305
24321
|
__decorate([
|
|
24306
24322
|
Field({ nullable: true }),
|
|
24307
24323
|
__metadata("design:type", String)
|
|
24308
|
-
], UpdateDashboardInput.prototype, "
|
|
24324
|
+
], UpdateDashboardInput.prototype, "Code", void 0);
|
|
24309
24325
|
__decorate([
|
|
24310
24326
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
24311
24327
|
__metadata("design:type", Array)
|