@memberjunction/server 2.80.0 → 2.81.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/dist/generated/generated.d.ts +33 -6
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +155 -19
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +4 -2
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +8 -0
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +67 -13
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +6 -4
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +51 -17
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/package.json +35 -34
- package/src/generated/generated.ts +101 -19
- package/src/generic/ResolverBase.ts +4 -2
- package/src/index.ts +3 -0
- package/src/resolvers/CreateQueryResolver.ts +49 -13
- package/src/resolvers/QueryResolver.ts +43 -14
|
@@ -13900,6 +13900,7 @@ let Entity_ = class Entity_ {
|
|
|
13900
13900
|
RowCount;
|
|
13901
13901
|
RowCountRunAt;
|
|
13902
13902
|
Status;
|
|
13903
|
+
DisplayName;
|
|
13903
13904
|
CodeName;
|
|
13904
13905
|
ClassName;
|
|
13905
13906
|
BaseTableCodeName;
|
|
@@ -14195,6 +14196,11 @@ __decorate([
|
|
|
14195
14196
|
MaxLength(50),
|
|
14196
14197
|
__metadata("design:type", String)
|
|
14197
14198
|
], Entity_.prototype, "Status", void 0);
|
|
14199
|
+
__decorate([
|
|
14200
|
+
Field({ nullable: true, description: `Optional display name for the entity. If not provided, the entity Name will be used for display purposes.` }),
|
|
14201
|
+
MaxLength(510),
|
|
14202
|
+
__metadata("design:type", String)
|
|
14203
|
+
], Entity_.prototype, "DisplayName", void 0);
|
|
14198
14204
|
__decorate([
|
|
14199
14205
|
Field({ nullable: true }),
|
|
14200
14206
|
__metadata("design:type", String)
|
|
@@ -14427,6 +14433,7 @@ let CreateEntityInput = class CreateEntityInput {
|
|
|
14427
14433
|
RowCount;
|
|
14428
14434
|
RowCountRunAt;
|
|
14429
14435
|
Status;
|
|
14436
|
+
DisplayName;
|
|
14430
14437
|
};
|
|
14431
14438
|
__decorate([
|
|
14432
14439
|
Field({ nullable: true }),
|
|
@@ -14636,6 +14643,10 @@ __decorate([
|
|
|
14636
14643
|
Field({ nullable: true }),
|
|
14637
14644
|
__metadata("design:type", String)
|
|
14638
14645
|
], CreateEntityInput.prototype, "Status", void 0);
|
|
14646
|
+
__decorate([
|
|
14647
|
+
Field({ nullable: true }),
|
|
14648
|
+
__metadata("design:type", String)
|
|
14649
|
+
], CreateEntityInput.prototype, "DisplayName", void 0);
|
|
14639
14650
|
CreateEntityInput = __decorate([
|
|
14640
14651
|
InputType()
|
|
14641
14652
|
], CreateEntityInput);
|
|
@@ -14693,6 +14704,7 @@ let UpdateEntityInput = class UpdateEntityInput {
|
|
|
14693
14704
|
RowCount;
|
|
14694
14705
|
RowCountRunAt;
|
|
14695
14706
|
Status;
|
|
14707
|
+
DisplayName;
|
|
14696
14708
|
OldValues___;
|
|
14697
14709
|
};
|
|
14698
14710
|
__decorate([
|
|
@@ -14903,6 +14915,10 @@ __decorate([
|
|
|
14903
14915
|
Field({ nullable: true }),
|
|
14904
14916
|
__metadata("design:type", String)
|
|
14905
14917
|
], UpdateEntityInput.prototype, "Status", void 0);
|
|
14918
|
+
__decorate([
|
|
14919
|
+
Field({ nullable: true }),
|
|
14920
|
+
__metadata("design:type", String)
|
|
14921
|
+
], UpdateEntityInput.prototype, "DisplayName", void 0);
|
|
14906
14922
|
__decorate([
|
|
14907
14923
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
14908
14924
|
__metadata("design:type", Array)
|
|
@@ -36697,6 +36713,10 @@ let QueryCategory_ = class QueryCategory_ {
|
|
|
36697
36713
|
UserID;
|
|
36698
36714
|
_mj__CreatedAt;
|
|
36699
36715
|
_mj__UpdatedAt;
|
|
36716
|
+
DefaultCacheEnabled;
|
|
36717
|
+
DefaultCacheTTLMinutes;
|
|
36718
|
+
DefaultCacheMaxSize;
|
|
36719
|
+
CacheInheritanceEnabled;
|
|
36700
36720
|
Parent;
|
|
36701
36721
|
User;
|
|
36702
36722
|
QueryCategories_ParentIDArray;
|
|
@@ -36736,6 +36756,22 @@ __decorate([
|
|
|
36736
36756
|
MaxLength(10),
|
|
36737
36757
|
__metadata("design:type", Date)
|
|
36738
36758
|
], QueryCategory_.prototype, "_mj__UpdatedAt", void 0);
|
|
36759
|
+
__decorate([
|
|
36760
|
+
Field(() => Boolean, { description: `Default cache setting for queries in this category` }),
|
|
36761
|
+
__metadata("design:type", Boolean)
|
|
36762
|
+
], QueryCategory_.prototype, "DefaultCacheEnabled", void 0);
|
|
36763
|
+
__decorate([
|
|
36764
|
+
Field(() => Int, { nullable: true, description: `Default TTL in minutes for cached results of queries in this category` }),
|
|
36765
|
+
__metadata("design:type", Number)
|
|
36766
|
+
], QueryCategory_.prototype, "DefaultCacheTTLMinutes", void 0);
|
|
36767
|
+
__decorate([
|
|
36768
|
+
Field(() => Int, { nullable: true, description: `Default maximum cache size for queries in this category` }),
|
|
36769
|
+
__metadata("design:type", Number)
|
|
36770
|
+
], QueryCategory_.prototype, "DefaultCacheMaxSize", void 0);
|
|
36771
|
+
__decorate([
|
|
36772
|
+
Field(() => Boolean, { description: `When true, queries without cache config will inherit from this category` }),
|
|
36773
|
+
__metadata("design:type", Boolean)
|
|
36774
|
+
], QueryCategory_.prototype, "CacheInheritanceEnabled", void 0);
|
|
36739
36775
|
__decorate([
|
|
36740
36776
|
Field({ nullable: true }),
|
|
36741
36777
|
MaxLength(100),
|
|
@@ -36764,6 +36800,10 @@ let CreateQueryCategoryInput = class CreateQueryCategoryInput {
|
|
|
36764
36800
|
ParentID;
|
|
36765
36801
|
Description;
|
|
36766
36802
|
UserID;
|
|
36803
|
+
DefaultCacheEnabled;
|
|
36804
|
+
DefaultCacheTTLMinutes;
|
|
36805
|
+
DefaultCacheMaxSize;
|
|
36806
|
+
CacheInheritanceEnabled;
|
|
36767
36807
|
};
|
|
36768
36808
|
__decorate([
|
|
36769
36809
|
Field({ nullable: true }),
|
|
@@ -36785,6 +36825,22 @@ __decorate([
|
|
|
36785
36825
|
Field({ nullable: true }),
|
|
36786
36826
|
__metadata("design:type", String)
|
|
36787
36827
|
], CreateQueryCategoryInput.prototype, "UserID", void 0);
|
|
36828
|
+
__decorate([
|
|
36829
|
+
Field(() => Boolean, { nullable: true }),
|
|
36830
|
+
__metadata("design:type", Boolean)
|
|
36831
|
+
], CreateQueryCategoryInput.prototype, "DefaultCacheEnabled", void 0);
|
|
36832
|
+
__decorate([
|
|
36833
|
+
Field(() => Int, { nullable: true }),
|
|
36834
|
+
__metadata("design:type", Number)
|
|
36835
|
+
], CreateQueryCategoryInput.prototype, "DefaultCacheTTLMinutes", void 0);
|
|
36836
|
+
__decorate([
|
|
36837
|
+
Field(() => Int, { nullable: true }),
|
|
36838
|
+
__metadata("design:type", Number)
|
|
36839
|
+
], CreateQueryCategoryInput.prototype, "DefaultCacheMaxSize", void 0);
|
|
36840
|
+
__decorate([
|
|
36841
|
+
Field(() => Boolean, { nullable: true }),
|
|
36842
|
+
__metadata("design:type", Boolean)
|
|
36843
|
+
], CreateQueryCategoryInput.prototype, "CacheInheritanceEnabled", void 0);
|
|
36788
36844
|
CreateQueryCategoryInput = __decorate([
|
|
36789
36845
|
InputType()
|
|
36790
36846
|
], CreateQueryCategoryInput);
|
|
@@ -36795,6 +36851,10 @@ let UpdateQueryCategoryInput = class UpdateQueryCategoryInput {
|
|
|
36795
36851
|
ParentID;
|
|
36796
36852
|
Description;
|
|
36797
36853
|
UserID;
|
|
36854
|
+
DefaultCacheEnabled;
|
|
36855
|
+
DefaultCacheTTLMinutes;
|
|
36856
|
+
DefaultCacheMaxSize;
|
|
36857
|
+
CacheInheritanceEnabled;
|
|
36798
36858
|
OldValues___;
|
|
36799
36859
|
};
|
|
36800
36860
|
__decorate([
|
|
@@ -36817,6 +36877,22 @@ __decorate([
|
|
|
36817
36877
|
Field({ nullable: true }),
|
|
36818
36878
|
__metadata("design:type", String)
|
|
36819
36879
|
], UpdateQueryCategoryInput.prototype, "UserID", void 0);
|
|
36880
|
+
__decorate([
|
|
36881
|
+
Field(() => Boolean, { nullable: true }),
|
|
36882
|
+
__metadata("design:type", Boolean)
|
|
36883
|
+
], UpdateQueryCategoryInput.prototype, "DefaultCacheEnabled", void 0);
|
|
36884
|
+
__decorate([
|
|
36885
|
+
Field(() => Int, { nullable: true }),
|
|
36886
|
+
__metadata("design:type", Number)
|
|
36887
|
+
], UpdateQueryCategoryInput.prototype, "DefaultCacheTTLMinutes", void 0);
|
|
36888
|
+
__decorate([
|
|
36889
|
+
Field(() => Int, { nullable: true }),
|
|
36890
|
+
__metadata("design:type", Number)
|
|
36891
|
+
], UpdateQueryCategoryInput.prototype, "DefaultCacheMaxSize", void 0);
|
|
36892
|
+
__decorate([
|
|
36893
|
+
Field(() => Boolean, { nullable: true }),
|
|
36894
|
+
__metadata("design:type", Boolean)
|
|
36895
|
+
], UpdateQueryCategoryInput.prototype, "CacheInheritanceEnabled", void 0);
|
|
36820
36896
|
__decorate([
|
|
36821
36897
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
36822
36898
|
__metadata("design:type", Array)
|
|
@@ -37023,6 +37099,10 @@ let Query_ = class Query_ {
|
|
|
37023
37099
|
_mj__CreatedAt;
|
|
37024
37100
|
_mj__UpdatedAt;
|
|
37025
37101
|
UsesTemplate;
|
|
37102
|
+
AuditQueryRuns;
|
|
37103
|
+
CacheEnabled;
|
|
37104
|
+
CacheTTLMinutes;
|
|
37105
|
+
CacheMaxSize;
|
|
37026
37106
|
Category;
|
|
37027
37107
|
QueryFields_QueryIDArray;
|
|
37028
37108
|
QueryPermissions_QueryIDArray;
|
|
@@ -37096,6 +37176,22 @@ __decorate([
|
|
|
37096
37176
|
Field(() => Boolean, { nullable: true, description: `Automatically set to true when the SQL column contains Nunjucks template markers (e.g., {{ paramName }}). This flag is maintained by the QueryEntityServer for performance optimization and discovery purposes. It allows quick filtering of parameterized queries and enables the UI to show parameter inputs only when needed. The system will automatically update this flag when the SQL content changes.` }),
|
|
37097
37177
|
__metadata("design:type", Boolean)
|
|
37098
37178
|
], Query_.prototype, "UsesTemplate", void 0);
|
|
37179
|
+
__decorate([
|
|
37180
|
+
Field(() => Boolean, { description: `When true, all executions of this query will be logged to the Audit Log system for tracking and compliance` }),
|
|
37181
|
+
__metadata("design:type", Boolean)
|
|
37182
|
+
], Query_.prototype, "AuditQueryRuns", void 0);
|
|
37183
|
+
__decorate([
|
|
37184
|
+
Field(() => Boolean, { description: `When true, query results will be cached in memory with TTL expiration` }),
|
|
37185
|
+
__metadata("design:type", Boolean)
|
|
37186
|
+
], Query_.prototype, "CacheEnabled", void 0);
|
|
37187
|
+
__decorate([
|
|
37188
|
+
Field(() => Int, { nullable: true, description: `Time-to-live in minutes for cached query results. NULL uses default TTL.` }),
|
|
37189
|
+
__metadata("design:type", Number)
|
|
37190
|
+
], Query_.prototype, "CacheTTLMinutes", void 0);
|
|
37191
|
+
__decorate([
|
|
37192
|
+
Field(() => Int, { nullable: true, description: `Maximum number of cached result sets for this query. NULL uses default size limit.` }),
|
|
37193
|
+
__metadata("design:type", Number)
|
|
37194
|
+
], Query_.prototype, "CacheMaxSize", void 0);
|
|
37099
37195
|
__decorate([
|
|
37100
37196
|
Field({ nullable: true }),
|
|
37101
37197
|
MaxLength(100),
|
|
@@ -37139,6 +37235,10 @@ let CreateQueryInput = class CreateQueryInput {
|
|
|
37139
37235
|
QualityRank;
|
|
37140
37236
|
ExecutionCostRank;
|
|
37141
37237
|
UsesTemplate;
|
|
37238
|
+
AuditQueryRuns;
|
|
37239
|
+
CacheEnabled;
|
|
37240
|
+
CacheTTLMinutes;
|
|
37241
|
+
CacheMaxSize;
|
|
37142
37242
|
};
|
|
37143
37243
|
__decorate([
|
|
37144
37244
|
Field({ nullable: true }),
|
|
@@ -37192,6 +37292,22 @@ __decorate([
|
|
|
37192
37292
|
Field(() => Boolean, { nullable: true }),
|
|
37193
37293
|
__metadata("design:type", Boolean)
|
|
37194
37294
|
], CreateQueryInput.prototype, "UsesTemplate", void 0);
|
|
37295
|
+
__decorate([
|
|
37296
|
+
Field(() => Boolean, { nullable: true }),
|
|
37297
|
+
__metadata("design:type", Boolean)
|
|
37298
|
+
], CreateQueryInput.prototype, "AuditQueryRuns", void 0);
|
|
37299
|
+
__decorate([
|
|
37300
|
+
Field(() => Boolean, { nullable: true }),
|
|
37301
|
+
__metadata("design:type", Boolean)
|
|
37302
|
+
], CreateQueryInput.prototype, "CacheEnabled", void 0);
|
|
37303
|
+
__decorate([
|
|
37304
|
+
Field(() => Int, { nullable: true }),
|
|
37305
|
+
__metadata("design:type", Number)
|
|
37306
|
+
], CreateQueryInput.prototype, "CacheTTLMinutes", void 0);
|
|
37307
|
+
__decorate([
|
|
37308
|
+
Field(() => Int, { nullable: true }),
|
|
37309
|
+
__metadata("design:type", Number)
|
|
37310
|
+
], CreateQueryInput.prototype, "CacheMaxSize", void 0);
|
|
37195
37311
|
CreateQueryInput = __decorate([
|
|
37196
37312
|
InputType()
|
|
37197
37313
|
], CreateQueryInput);
|
|
@@ -37210,6 +37326,10 @@ let UpdateQueryInput = class UpdateQueryInput {
|
|
|
37210
37326
|
QualityRank;
|
|
37211
37327
|
ExecutionCostRank;
|
|
37212
37328
|
UsesTemplate;
|
|
37329
|
+
AuditQueryRuns;
|
|
37330
|
+
CacheEnabled;
|
|
37331
|
+
CacheTTLMinutes;
|
|
37332
|
+
CacheMaxSize;
|
|
37213
37333
|
OldValues___;
|
|
37214
37334
|
};
|
|
37215
37335
|
__decorate([
|
|
@@ -37264,6 +37384,22 @@ __decorate([
|
|
|
37264
37384
|
Field(() => Boolean, { nullable: true }),
|
|
37265
37385
|
__metadata("design:type", Boolean)
|
|
37266
37386
|
], UpdateQueryInput.prototype, "UsesTemplate", void 0);
|
|
37387
|
+
__decorate([
|
|
37388
|
+
Field(() => Boolean, { nullable: true }),
|
|
37389
|
+
__metadata("design:type", Boolean)
|
|
37390
|
+
], UpdateQueryInput.prototype, "AuditQueryRuns", void 0);
|
|
37391
|
+
__decorate([
|
|
37392
|
+
Field(() => Boolean, { nullable: true }),
|
|
37393
|
+
__metadata("design:type", Boolean)
|
|
37394
|
+
], UpdateQueryInput.prototype, "CacheEnabled", void 0);
|
|
37395
|
+
__decorate([
|
|
37396
|
+
Field(() => Int, { nullable: true }),
|
|
37397
|
+
__metadata("design:type", Number)
|
|
37398
|
+
], UpdateQueryInput.prototype, "CacheTTLMinutes", void 0);
|
|
37399
|
+
__decorate([
|
|
37400
|
+
Field(() => Int, { nullable: true }),
|
|
37401
|
+
__metadata("design:type", Number)
|
|
37402
|
+
], UpdateQueryInput.prototype, "CacheMaxSize", void 0);
|
|
37267
37403
|
__decorate([
|
|
37268
37404
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
37269
37405
|
__metadata("design:type", Array)
|
|
@@ -57366,7 +57502,7 @@ __decorate([
|
|
|
57366
57502
|
__metadata("design:type", Date)
|
|
57367
57503
|
], AIModelVendor_.prototype, "_mj__UpdatedAt", void 0);
|
|
57368
57504
|
__decorate([
|
|
57369
|
-
Field({
|
|
57505
|
+
Field({ description: `References the type/role of the vendor for this model (e.g., model developer, inference provider)` }),
|
|
57370
57506
|
MaxLength(16),
|
|
57371
57507
|
__metadata("design:type", String)
|
|
57372
57508
|
], AIModelVendor_.prototype, "TypeID", void 0);
|
|
@@ -57381,7 +57517,7 @@ __decorate([
|
|
|
57381
57517
|
__metadata("design:type", String)
|
|
57382
57518
|
], AIModelVendor_.prototype, "Vendor", void 0);
|
|
57383
57519
|
__decorate([
|
|
57384
|
-
Field(
|
|
57520
|
+
Field(),
|
|
57385
57521
|
MaxLength(100),
|
|
57386
57522
|
__metadata("design:type", String)
|
|
57387
57523
|
], AIModelVendor_.prototype, "Type", void 0);
|
|
@@ -59316,8 +59452,8 @@ let ConversationArtifact_ = class ConversationArtifact_ {
|
|
|
59316
59452
|
_mj__UpdatedAt;
|
|
59317
59453
|
Conversation;
|
|
59318
59454
|
ArtifactType;
|
|
59319
|
-
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
59320
59455
|
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
59456
|
+
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
59321
59457
|
ConversationDetails_ArtifactIDArray;
|
|
59322
59458
|
};
|
|
59323
59459
|
__decorate([
|
|
@@ -59373,14 +59509,14 @@ __decorate([
|
|
|
59373
59509
|
MaxLength(200),
|
|
59374
59510
|
__metadata("design:type", String)
|
|
59375
59511
|
], ConversationArtifact_.prototype, "ArtifactType", void 0);
|
|
59376
|
-
__decorate([
|
|
59377
|
-
Field(() => [ConversationArtifactPermission_]),
|
|
59378
|
-
__metadata("design:type", Array)
|
|
59379
|
-
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
59380
59512
|
__decorate([
|
|
59381
59513
|
Field(() => [ConversationArtifactVersion_]),
|
|
59382
59514
|
__metadata("design:type", Array)
|
|
59383
59515
|
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
59516
|
+
__decorate([
|
|
59517
|
+
Field(() => [ConversationArtifactPermission_]),
|
|
59518
|
+
__metadata("design:type", Array)
|
|
59519
|
+
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
59384
59520
|
__decorate([
|
|
59385
59521
|
Field(() => [ConversationDetail_]),
|
|
59386
59522
|
__metadata("design:type", Array)
|
|
@@ -59540,22 +59676,22 @@ let ConversationArtifactResolver = class ConversationArtifactResolver extends Re
|
|
|
59540
59676
|
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : {});
|
|
59541
59677
|
return result;
|
|
59542
59678
|
}
|
|
59543
|
-
async
|
|
59544
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
59679
|
+
async MJ_ConversationArtifactVersions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
59680
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
59545
59681
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59546
59682
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
59547
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
59683
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
59548
59684
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
59549
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
59685
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows);
|
|
59550
59686
|
return result;
|
|
59551
59687
|
}
|
|
59552
|
-
async
|
|
59553
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
59688
|
+
async MJ_ConversationArtifactPermissions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
59689
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
59554
59690
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59555
59691
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
59556
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
59692
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
59557
59693
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
59558
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
59694
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows);
|
|
59559
59695
|
return result;
|
|
59560
59696
|
}
|
|
59561
59697
|
async ConversationDetails_ArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -59618,23 +59754,23 @@ __decorate([
|
|
|
59618
59754
|
__metadata("design:returntype", Promise)
|
|
59619
59755
|
], ConversationArtifactResolver.prototype, "ConversationArtifact", null);
|
|
59620
59756
|
__decorate([
|
|
59621
|
-
FieldResolver(() => [
|
|
59757
|
+
FieldResolver(() => [ConversationArtifactVersion_]),
|
|
59622
59758
|
__param(0, Root()),
|
|
59623
59759
|
__param(1, Ctx()),
|
|
59624
59760
|
__param(2, PubSub()),
|
|
59625
59761
|
__metadata("design:type", Function),
|
|
59626
59762
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
59627
59763
|
__metadata("design:returntype", Promise)
|
|
59628
|
-
], ConversationArtifactResolver.prototype, "
|
|
59764
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
59629
59765
|
__decorate([
|
|
59630
|
-
FieldResolver(() => [
|
|
59766
|
+
FieldResolver(() => [ConversationArtifactPermission_]),
|
|
59631
59767
|
__param(0, Root()),
|
|
59632
59768
|
__param(1, Ctx()),
|
|
59633
59769
|
__param(2, PubSub()),
|
|
59634
59770
|
__metadata("design:type", Function),
|
|
59635
59771
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
59636
59772
|
__metadata("design:returntype", Promise)
|
|
59637
|
-
], ConversationArtifactResolver.prototype, "
|
|
59773
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", null);
|
|
59638
59774
|
__decorate([
|
|
59639
59775
|
FieldResolver(() => [ConversationDetail_]),
|
|
59640
59776
|
__param(0, Root()),
|