@memberjunction/server 2.4.1 → 2.5.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.
|
@@ -16839,13 +16839,15 @@ let AIModel_ = class AIModel_ {
|
|
|
16839
16839
|
SpeedRank;
|
|
16840
16840
|
CostRank;
|
|
16841
16841
|
ModelSelectionInsights;
|
|
16842
|
+
InputTokenLimit;
|
|
16842
16843
|
AIModelType;
|
|
16843
16844
|
AIActions_DefaultModelIDArray;
|
|
16844
16845
|
EntityDocuments_AIModelIDArray;
|
|
16845
16846
|
AIModelActions_AIModelIDArray;
|
|
16846
16847
|
VectorIndexes_EmbeddingModelIDArray;
|
|
16847
|
-
|
|
16848
|
+
ContentTypes_AIModelIDArray;
|
|
16848
16849
|
AIResultCache_AIModelIDArray;
|
|
16850
|
+
EntityAIActions_AIModelIDArray;
|
|
16849
16851
|
};
|
|
16850
16852
|
__decorate([
|
|
16851
16853
|
Field(),
|
|
@@ -16916,6 +16918,10 @@ __decorate([
|
|
|
16916
16918
|
Field({ nullable: true, description: 'This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.' }),
|
|
16917
16919
|
__metadata("design:type", String)
|
|
16918
16920
|
], AIModel_.prototype, "ModelSelectionInsights", void 0);
|
|
16921
|
+
__decorate([
|
|
16922
|
+
Field(() => Int, { nullable: true, description: 'Stores the maximum number of tokens that fit in the context window for the model.' }),
|
|
16923
|
+
__metadata("design:type", Number)
|
|
16924
|
+
], AIModel_.prototype, "InputTokenLimit", void 0);
|
|
16919
16925
|
__decorate([
|
|
16920
16926
|
Field(),
|
|
16921
16927
|
MaxLength(100),
|
|
@@ -16938,13 +16944,17 @@ __decorate([
|
|
|
16938
16944
|
__metadata("design:type", Array)
|
|
16939
16945
|
], AIModel_.prototype, "VectorIndexes_EmbeddingModelIDArray", void 0);
|
|
16940
16946
|
__decorate([
|
|
16941
|
-
Field(() => [
|
|
16947
|
+
Field(() => [ContentType_]),
|
|
16942
16948
|
__metadata("design:type", Array)
|
|
16943
|
-
], AIModel_.prototype, "
|
|
16949
|
+
], AIModel_.prototype, "ContentTypes_AIModelIDArray", void 0);
|
|
16944
16950
|
__decorate([
|
|
16945
16951
|
Field(() => [AIResultCache_]),
|
|
16946
16952
|
__metadata("design:type", Array)
|
|
16947
16953
|
], AIModel_.prototype, "AIResultCache_AIModelIDArray", void 0);
|
|
16954
|
+
__decorate([
|
|
16955
|
+
Field(() => [EntityAIAction_]),
|
|
16956
|
+
__metadata("design:type", Array)
|
|
16957
|
+
], AIModel_.prototype, "EntityAIActions_AIModelIDArray", void 0);
|
|
16948
16958
|
AIModel_ = __decorate([
|
|
16949
16959
|
ObjectType({ description: 'Catalog of all AI Models configured in the system' })
|
|
16950
16960
|
], AIModel_);
|
|
@@ -16962,6 +16972,7 @@ let CreateAIModelInput = class CreateAIModelInput {
|
|
|
16962
16972
|
SpeedRank;
|
|
16963
16973
|
CostRank;
|
|
16964
16974
|
ModelSelectionInsights;
|
|
16975
|
+
InputTokenLimit;
|
|
16965
16976
|
};
|
|
16966
16977
|
__decorate([
|
|
16967
16978
|
Field(),
|
|
@@ -17011,6 +17022,10 @@ __decorate([
|
|
|
17011
17022
|
Field({ nullable: true }),
|
|
17012
17023
|
__metadata("design:type", String)
|
|
17013
17024
|
], CreateAIModelInput.prototype, "ModelSelectionInsights", void 0);
|
|
17025
|
+
__decorate([
|
|
17026
|
+
Field(() => Int, { nullable: true }),
|
|
17027
|
+
__metadata("design:type", Number)
|
|
17028
|
+
], CreateAIModelInput.prototype, "InputTokenLimit", void 0);
|
|
17014
17029
|
CreateAIModelInput = __decorate([
|
|
17015
17030
|
InputType()
|
|
17016
17031
|
], CreateAIModelInput);
|
|
@@ -17029,6 +17044,7 @@ let UpdateAIModelInput = class UpdateAIModelInput {
|
|
|
17029
17044
|
SpeedRank;
|
|
17030
17045
|
CostRank;
|
|
17031
17046
|
ModelSelectionInsights;
|
|
17047
|
+
InputTokenLimit;
|
|
17032
17048
|
OldValues___;
|
|
17033
17049
|
};
|
|
17034
17050
|
__decorate([
|
|
@@ -17083,6 +17099,10 @@ __decorate([
|
|
|
17083
17099
|
Field({ nullable: true }),
|
|
17084
17100
|
__metadata("design:type", String)
|
|
17085
17101
|
], UpdateAIModelInput.prototype, "ModelSelectionInsights", void 0);
|
|
17102
|
+
__decorate([
|
|
17103
|
+
Field(() => Int, { nullable: true }),
|
|
17104
|
+
__metadata("design:type", Number)
|
|
17105
|
+
], UpdateAIModelInput.prototype, "InputTokenLimit", void 0);
|
|
17086
17106
|
__decorate([
|
|
17087
17107
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
17088
17108
|
__metadata("design:type", Array)
|
|
@@ -17179,10 +17199,10 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
17179
17199
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
17180
17200
|
return result;
|
|
17181
17201
|
}
|
|
17182
|
-
async
|
|
17183
|
-
this.CheckUserReadPermissions('
|
|
17184
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
17185
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
17202
|
+
async ContentTypes_AIModelIDArray(aimodel_, { dataSource, userPayload }, pubSub) {
|
|
17203
|
+
this.CheckUserReadPermissions('Content Types', userPayload);
|
|
17204
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentTypes] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
17205
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Types', await dataSource.query(sSQL));
|
|
17186
17206
|
return result;
|
|
17187
17207
|
}
|
|
17188
17208
|
async AIResultCache_AIModelIDArray(aimodel_, { dataSource, userPayload }, pubSub) {
|
|
@@ -17191,6 +17211,12 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
17191
17211
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL));
|
|
17192
17212
|
return result;
|
|
17193
17213
|
}
|
|
17214
|
+
async EntityAIActions_AIModelIDArray(aimodel_, { dataSource, userPayload }, pubSub) {
|
|
17215
|
+
this.CheckUserReadPermissions('Entity AI Actions', userPayload);
|
|
17216
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityAIActions] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
17217
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
17218
|
+
return result;
|
|
17219
|
+
}
|
|
17194
17220
|
async CreateAIModel(input, { dataSource, userPayload }, pubSub) {
|
|
17195
17221
|
return this.CreateRecord('AI Models', input, dataSource, userPayload, pubSub);
|
|
17196
17222
|
}
|
|
@@ -17283,14 +17309,14 @@ __decorate([
|
|
|
17283
17309
|
__metadata("design:returntype", Promise)
|
|
17284
17310
|
], AIModelResolver.prototype, "VectorIndexes_EmbeddingModelIDArray", null);
|
|
17285
17311
|
__decorate([
|
|
17286
|
-
FieldResolver(() => [
|
|
17312
|
+
FieldResolver(() => [ContentType_]),
|
|
17287
17313
|
__param(0, Root()),
|
|
17288
17314
|
__param(1, Ctx()),
|
|
17289
17315
|
__param(2, PubSub()),
|
|
17290
17316
|
__metadata("design:type", Function),
|
|
17291
17317
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
17292
17318
|
__metadata("design:returntype", Promise)
|
|
17293
|
-
], AIModelResolver.prototype, "
|
|
17319
|
+
], AIModelResolver.prototype, "ContentTypes_AIModelIDArray", null);
|
|
17294
17320
|
__decorate([
|
|
17295
17321
|
FieldResolver(() => [AIResultCache_]),
|
|
17296
17322
|
__param(0, Root()),
|
|
@@ -17300,6 +17326,15 @@ __decorate([
|
|
|
17300
17326
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
17301
17327
|
__metadata("design:returntype", Promise)
|
|
17302
17328
|
], AIModelResolver.prototype, "AIResultCache_AIModelIDArray", null);
|
|
17329
|
+
__decorate([
|
|
17330
|
+
FieldResolver(() => [EntityAIAction_]),
|
|
17331
|
+
__param(0, Root()),
|
|
17332
|
+
__param(1, Ctx()),
|
|
17333
|
+
__param(2, PubSub()),
|
|
17334
|
+
__metadata("design:type", Function),
|
|
17335
|
+
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
17336
|
+
__metadata("design:returntype", Promise)
|
|
17337
|
+
], AIModelResolver.prototype, "EntityAIActions_AIModelIDArray", null);
|
|
17303
17338
|
__decorate([
|
|
17304
17339
|
Mutation(() => AIModel_),
|
|
17305
17340
|
__param(0, Arg('input', () => CreateAIModelInput)),
|
|
@@ -36832,6 +36867,7 @@ let CommunicationProvider_ = class CommunicationProvider_ {
|
|
|
36832
36867
|
SupportsReceiving;
|
|
36833
36868
|
_mj__CreatedAt;
|
|
36834
36869
|
_mj__UpdatedAt;
|
|
36870
|
+
SupportsScheduledSending;
|
|
36835
36871
|
CommunicationLogs_CommunicationProviderIDArray;
|
|
36836
36872
|
CommunicationProviderMessageTypes_CommunicationProviderIDArray;
|
|
36837
36873
|
};
|
|
@@ -36872,6 +36908,10 @@ __decorate([
|
|
|
36872
36908
|
MaxLength(10),
|
|
36873
36909
|
__metadata("design:type", Date)
|
|
36874
36910
|
], CommunicationProvider_.prototype, "_mj__UpdatedAt", void 0);
|
|
36911
|
+
__decorate([
|
|
36912
|
+
Field(() => Boolean, { description: 'Whether or not the provider supports sending messages at a specific time' }),
|
|
36913
|
+
__metadata("design:type", Boolean)
|
|
36914
|
+
], CommunicationProvider_.prototype, "SupportsScheduledSending", void 0);
|
|
36875
36915
|
__decorate([
|
|
36876
36916
|
Field(() => [CommunicationLog_]),
|
|
36877
36917
|
__metadata("design:type", Array)
|
|
@@ -36890,6 +36930,7 @@ let CreateCommunicationProviderInput = class CreateCommunicationProviderInput {
|
|
|
36890
36930
|
Status;
|
|
36891
36931
|
SupportsSending;
|
|
36892
36932
|
SupportsReceiving;
|
|
36933
|
+
SupportsScheduledSending;
|
|
36893
36934
|
};
|
|
36894
36935
|
__decorate([
|
|
36895
36936
|
Field(),
|
|
@@ -36911,6 +36952,10 @@ __decorate([
|
|
|
36911
36952
|
Field(() => Boolean),
|
|
36912
36953
|
__metadata("design:type", Boolean)
|
|
36913
36954
|
], CreateCommunicationProviderInput.prototype, "SupportsReceiving", void 0);
|
|
36955
|
+
__decorate([
|
|
36956
|
+
Field(() => Boolean),
|
|
36957
|
+
__metadata("design:type", Boolean)
|
|
36958
|
+
], CreateCommunicationProviderInput.prototype, "SupportsScheduledSending", void 0);
|
|
36914
36959
|
CreateCommunicationProviderInput = __decorate([
|
|
36915
36960
|
InputType()
|
|
36916
36961
|
], CreateCommunicationProviderInput);
|
|
@@ -36922,6 +36967,7 @@ let UpdateCommunicationProviderInput = class UpdateCommunicationProviderInput {
|
|
|
36922
36967
|
Status;
|
|
36923
36968
|
SupportsSending;
|
|
36924
36969
|
SupportsReceiving;
|
|
36970
|
+
SupportsScheduledSending;
|
|
36925
36971
|
OldValues___;
|
|
36926
36972
|
};
|
|
36927
36973
|
__decorate([
|
|
@@ -36948,6 +36994,10 @@ __decorate([
|
|
|
36948
36994
|
Field(() => Boolean),
|
|
36949
36995
|
__metadata("design:type", Boolean)
|
|
36950
36996
|
], UpdateCommunicationProviderInput.prototype, "SupportsReceiving", void 0);
|
|
36997
|
+
__decorate([
|
|
36998
|
+
Field(() => Boolean),
|
|
36999
|
+
__metadata("design:type", Boolean)
|
|
37000
|
+
], UpdateCommunicationProviderInput.prototype, "SupportsScheduledSending", void 0);
|
|
36951
37001
|
__decorate([
|
|
36952
37002
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
36953
37003
|
__metadata("design:type", Array)
|
|
@@ -39243,6 +39293,7 @@ let TemplateParam_ = class TemplateParam_ {
|
|
|
39243
39293
|
RecordID;
|
|
39244
39294
|
_mj__CreatedAt;
|
|
39245
39295
|
_mj__UpdatedAt;
|
|
39296
|
+
OrderBy;
|
|
39246
39297
|
Template;
|
|
39247
39298
|
Entity;
|
|
39248
39299
|
};
|
|
@@ -39312,6 +39363,10 @@ __decorate([
|
|
|
39312
39363
|
MaxLength(10),
|
|
39313
39364
|
__metadata("design:type", Date)
|
|
39314
39365
|
], TemplateParam_.prototype, "_mj__UpdatedAt", void 0);
|
|
39366
|
+
__decorate([
|
|
39367
|
+
Field({ nullable: true, description: 'This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.' }),
|
|
39368
|
+
__metadata("design:type", String)
|
|
39369
|
+
], TemplateParam_.prototype, "OrderBy", void 0);
|
|
39315
39370
|
__decorate([
|
|
39316
39371
|
Field(),
|
|
39317
39372
|
MaxLength(510),
|
|
@@ -39338,6 +39393,7 @@ let CreateTemplateParamInput = class CreateTemplateParamInput {
|
|
|
39338
39393
|
ExtraFilter;
|
|
39339
39394
|
EntityID;
|
|
39340
39395
|
RecordID;
|
|
39396
|
+
OrderBy;
|
|
39341
39397
|
};
|
|
39342
39398
|
__decorate([
|
|
39343
39399
|
Field(),
|
|
@@ -39383,6 +39439,10 @@ __decorate([
|
|
|
39383
39439
|
Field({ nullable: true }),
|
|
39384
39440
|
__metadata("design:type", String)
|
|
39385
39441
|
], CreateTemplateParamInput.prototype, "RecordID", void 0);
|
|
39442
|
+
__decorate([
|
|
39443
|
+
Field({ nullable: true }),
|
|
39444
|
+
__metadata("design:type", String)
|
|
39445
|
+
], CreateTemplateParamInput.prototype, "OrderBy", void 0);
|
|
39386
39446
|
CreateTemplateParamInput = __decorate([
|
|
39387
39447
|
InputType()
|
|
39388
39448
|
], CreateTemplateParamInput);
|
|
@@ -39400,6 +39460,7 @@ let UpdateTemplateParamInput = class UpdateTemplateParamInput {
|
|
|
39400
39460
|
ExtraFilter;
|
|
39401
39461
|
EntityID;
|
|
39402
39462
|
RecordID;
|
|
39463
|
+
OrderBy;
|
|
39403
39464
|
OldValues___;
|
|
39404
39465
|
};
|
|
39405
39466
|
__decorate([
|
|
@@ -39450,6 +39511,10 @@ __decorate([
|
|
|
39450
39511
|
Field({ nullable: true }),
|
|
39451
39512
|
__metadata("design:type", String)
|
|
39452
39513
|
], UpdateTemplateParamInput.prototype, "RecordID", void 0);
|
|
39514
|
+
__decorate([
|
|
39515
|
+
Field({ nullable: true }),
|
|
39516
|
+
__metadata("design:type", String)
|
|
39517
|
+
], UpdateTemplateParamInput.prototype, "OrderBy", void 0);
|
|
39453
39518
|
__decorate([
|
|
39454
39519
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
39455
39520
|
__metadata("design:type", Array)
|
|
@@ -42262,4 +42327,3016 @@ EntityActionParamResolver = __decorate([
|
|
|
42262
42327
|
Resolver(EntityActionParam_)
|
|
42263
42328
|
], EntityActionParamResolver);
|
|
42264
42329
|
export { EntityActionParamResolver };
|
|
42330
|
+
let ContentProcessRun_ = class ContentProcessRun_ {
|
|
42331
|
+
ID;
|
|
42332
|
+
SourceID;
|
|
42333
|
+
StartTime;
|
|
42334
|
+
EndTime;
|
|
42335
|
+
Status;
|
|
42336
|
+
ProcessedItems;
|
|
42337
|
+
_mj__CreatedAt;
|
|
42338
|
+
_mj__UpdatedAt;
|
|
42339
|
+
Source;
|
|
42340
|
+
};
|
|
42341
|
+
__decorate([
|
|
42342
|
+
Field(),
|
|
42343
|
+
MaxLength(16),
|
|
42344
|
+
__metadata("design:type", String)
|
|
42345
|
+
], ContentProcessRun_.prototype, "ID", void 0);
|
|
42346
|
+
__decorate([
|
|
42347
|
+
Field(),
|
|
42348
|
+
MaxLength(16),
|
|
42349
|
+
__metadata("design:type", String)
|
|
42350
|
+
], ContentProcessRun_.prototype, "SourceID", void 0);
|
|
42351
|
+
__decorate([
|
|
42352
|
+
Field({ nullable: true }),
|
|
42353
|
+
MaxLength(8),
|
|
42354
|
+
__metadata("design:type", Date)
|
|
42355
|
+
], ContentProcessRun_.prototype, "StartTime", void 0);
|
|
42356
|
+
__decorate([
|
|
42357
|
+
Field({ nullable: true }),
|
|
42358
|
+
MaxLength(8),
|
|
42359
|
+
__metadata("design:type", Date)
|
|
42360
|
+
], ContentProcessRun_.prototype, "EndTime", void 0);
|
|
42361
|
+
__decorate([
|
|
42362
|
+
Field({ nullable: true }),
|
|
42363
|
+
MaxLength(200),
|
|
42364
|
+
__metadata("design:type", String)
|
|
42365
|
+
], ContentProcessRun_.prototype, "Status", void 0);
|
|
42366
|
+
__decorate([
|
|
42367
|
+
Field(() => Int, { nullable: true }),
|
|
42368
|
+
__metadata("design:type", Number)
|
|
42369
|
+
], ContentProcessRun_.prototype, "ProcessedItems", void 0);
|
|
42370
|
+
__decorate([
|
|
42371
|
+
Field(),
|
|
42372
|
+
MaxLength(10),
|
|
42373
|
+
__metadata("design:type", Date)
|
|
42374
|
+
], ContentProcessRun_.prototype, "_mj__CreatedAt", void 0);
|
|
42375
|
+
__decorate([
|
|
42376
|
+
Field(),
|
|
42377
|
+
MaxLength(10),
|
|
42378
|
+
__metadata("design:type", Date)
|
|
42379
|
+
], ContentProcessRun_.prototype, "_mj__UpdatedAt", void 0);
|
|
42380
|
+
__decorate([
|
|
42381
|
+
Field({ nullable: true }),
|
|
42382
|
+
MaxLength(510),
|
|
42383
|
+
__metadata("design:type", String)
|
|
42384
|
+
], ContentProcessRun_.prototype, "Source", void 0);
|
|
42385
|
+
ContentProcessRun_ = __decorate([
|
|
42386
|
+
ObjectType()
|
|
42387
|
+
], ContentProcessRun_);
|
|
42388
|
+
export { ContentProcessRun_ };
|
|
42389
|
+
let CreateContentProcessRunInput = class CreateContentProcessRunInput {
|
|
42390
|
+
SourceID;
|
|
42391
|
+
StartTime;
|
|
42392
|
+
EndTime;
|
|
42393
|
+
Status;
|
|
42394
|
+
ProcessedItems;
|
|
42395
|
+
};
|
|
42396
|
+
__decorate([
|
|
42397
|
+
Field(),
|
|
42398
|
+
__metadata("design:type", String)
|
|
42399
|
+
], CreateContentProcessRunInput.prototype, "SourceID", void 0);
|
|
42400
|
+
__decorate([
|
|
42401
|
+
Field({ nullable: true }),
|
|
42402
|
+
__metadata("design:type", Date)
|
|
42403
|
+
], CreateContentProcessRunInput.prototype, "StartTime", void 0);
|
|
42404
|
+
__decorate([
|
|
42405
|
+
Field({ nullable: true }),
|
|
42406
|
+
__metadata("design:type", Date)
|
|
42407
|
+
], CreateContentProcessRunInput.prototype, "EndTime", void 0);
|
|
42408
|
+
__decorate([
|
|
42409
|
+
Field({ nullable: true }),
|
|
42410
|
+
__metadata("design:type", String)
|
|
42411
|
+
], CreateContentProcessRunInput.prototype, "Status", void 0);
|
|
42412
|
+
__decorate([
|
|
42413
|
+
Field(() => Int, { nullable: true }),
|
|
42414
|
+
__metadata("design:type", Number)
|
|
42415
|
+
], CreateContentProcessRunInput.prototype, "ProcessedItems", void 0);
|
|
42416
|
+
CreateContentProcessRunInput = __decorate([
|
|
42417
|
+
InputType()
|
|
42418
|
+
], CreateContentProcessRunInput);
|
|
42419
|
+
export { CreateContentProcessRunInput };
|
|
42420
|
+
let UpdateContentProcessRunInput = class UpdateContentProcessRunInput {
|
|
42421
|
+
ID;
|
|
42422
|
+
SourceID;
|
|
42423
|
+
StartTime;
|
|
42424
|
+
EndTime;
|
|
42425
|
+
Status;
|
|
42426
|
+
ProcessedItems;
|
|
42427
|
+
OldValues___;
|
|
42428
|
+
};
|
|
42429
|
+
__decorate([
|
|
42430
|
+
Field(),
|
|
42431
|
+
__metadata("design:type", String)
|
|
42432
|
+
], UpdateContentProcessRunInput.prototype, "ID", void 0);
|
|
42433
|
+
__decorate([
|
|
42434
|
+
Field(),
|
|
42435
|
+
__metadata("design:type", String)
|
|
42436
|
+
], UpdateContentProcessRunInput.prototype, "SourceID", void 0);
|
|
42437
|
+
__decorate([
|
|
42438
|
+
Field({ nullable: true }),
|
|
42439
|
+
__metadata("design:type", Date)
|
|
42440
|
+
], UpdateContentProcessRunInput.prototype, "StartTime", void 0);
|
|
42441
|
+
__decorate([
|
|
42442
|
+
Field({ nullable: true }),
|
|
42443
|
+
__metadata("design:type", Date)
|
|
42444
|
+
], UpdateContentProcessRunInput.prototype, "EndTime", void 0);
|
|
42445
|
+
__decorate([
|
|
42446
|
+
Field({ nullable: true }),
|
|
42447
|
+
__metadata("design:type", String)
|
|
42448
|
+
], UpdateContentProcessRunInput.prototype, "Status", void 0);
|
|
42449
|
+
__decorate([
|
|
42450
|
+
Field(() => Int, { nullable: true }),
|
|
42451
|
+
__metadata("design:type", Number)
|
|
42452
|
+
], UpdateContentProcessRunInput.prototype, "ProcessedItems", void 0);
|
|
42453
|
+
__decorate([
|
|
42454
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
42455
|
+
__metadata("design:type", Array)
|
|
42456
|
+
], UpdateContentProcessRunInput.prototype, "OldValues___", void 0);
|
|
42457
|
+
UpdateContentProcessRunInput = __decorate([
|
|
42458
|
+
InputType()
|
|
42459
|
+
], UpdateContentProcessRunInput);
|
|
42460
|
+
export { UpdateContentProcessRunInput };
|
|
42461
|
+
let RunContentProcessRunViewResult = class RunContentProcessRunViewResult {
|
|
42462
|
+
Results;
|
|
42463
|
+
UserViewRunID;
|
|
42464
|
+
RowCount;
|
|
42465
|
+
TotalRowCount;
|
|
42466
|
+
ExecutionTime;
|
|
42467
|
+
ErrorMessage;
|
|
42468
|
+
Success;
|
|
42469
|
+
};
|
|
42470
|
+
__decorate([
|
|
42471
|
+
Field(() => [ContentProcessRun_]),
|
|
42472
|
+
__metadata("design:type", Array)
|
|
42473
|
+
], RunContentProcessRunViewResult.prototype, "Results", void 0);
|
|
42474
|
+
__decorate([
|
|
42475
|
+
Field(() => String, { nullable: true }),
|
|
42476
|
+
__metadata("design:type", String)
|
|
42477
|
+
], RunContentProcessRunViewResult.prototype, "UserViewRunID", void 0);
|
|
42478
|
+
__decorate([
|
|
42479
|
+
Field(() => Int, { nullable: true }),
|
|
42480
|
+
__metadata("design:type", Number)
|
|
42481
|
+
], RunContentProcessRunViewResult.prototype, "RowCount", void 0);
|
|
42482
|
+
__decorate([
|
|
42483
|
+
Field(() => Int, { nullable: true }),
|
|
42484
|
+
__metadata("design:type", Number)
|
|
42485
|
+
], RunContentProcessRunViewResult.prototype, "TotalRowCount", void 0);
|
|
42486
|
+
__decorate([
|
|
42487
|
+
Field(() => Int, { nullable: true }),
|
|
42488
|
+
__metadata("design:type", Number)
|
|
42489
|
+
], RunContentProcessRunViewResult.prototype, "ExecutionTime", void 0);
|
|
42490
|
+
__decorate([
|
|
42491
|
+
Field({ nullable: true }),
|
|
42492
|
+
__metadata("design:type", String)
|
|
42493
|
+
], RunContentProcessRunViewResult.prototype, "ErrorMessage", void 0);
|
|
42494
|
+
__decorate([
|
|
42495
|
+
Field(() => Boolean, { nullable: false }),
|
|
42496
|
+
__metadata("design:type", Boolean)
|
|
42497
|
+
], RunContentProcessRunViewResult.prototype, "Success", void 0);
|
|
42498
|
+
RunContentProcessRunViewResult = __decorate([
|
|
42499
|
+
ObjectType()
|
|
42500
|
+
], RunContentProcessRunViewResult);
|
|
42501
|
+
export { RunContentProcessRunViewResult };
|
|
42502
|
+
let ContentProcessRunResolver = class ContentProcessRunResolver extends ResolverBase {
|
|
42503
|
+
async RunContentProcessRunViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
42504
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
42505
|
+
}
|
|
42506
|
+
async RunContentProcessRunViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
42507
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
42508
|
+
}
|
|
42509
|
+
async RunContentProcessRunDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
42510
|
+
input.EntityName = 'Content Process Runs';
|
|
42511
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
42512
|
+
}
|
|
42513
|
+
async ContentProcessRun(ID, { dataSource, userPayload }, pubSub) {
|
|
42514
|
+
this.CheckUserReadPermissions('Content Process Runs', userPayload);
|
|
42515
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentProcessRuns] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Process Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
42516
|
+
const result = this.MapFieldNamesToCodeNames('Content Process Runs', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
42517
|
+
return result;
|
|
42518
|
+
}
|
|
42519
|
+
async CreateContentProcessRun(input, { dataSource, userPayload }, pubSub) {
|
|
42520
|
+
return this.CreateRecord('Content Process Runs', input, dataSource, userPayload, pubSub);
|
|
42521
|
+
}
|
|
42522
|
+
async UpdateContentProcessRun(input, { dataSource, userPayload }, pubSub) {
|
|
42523
|
+
return this.UpdateRecord('Content Process Runs', input, dataSource, userPayload, pubSub);
|
|
42524
|
+
}
|
|
42525
|
+
async DeleteContentProcessRun(ID, options, { dataSource, userPayload }, pubSub) {
|
|
42526
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
42527
|
+
return this.DeleteRecord('Content Process Runs', key, options, dataSource, userPayload, pubSub);
|
|
42528
|
+
}
|
|
42529
|
+
};
|
|
42530
|
+
__decorate([
|
|
42531
|
+
Query(() => RunContentProcessRunViewResult),
|
|
42532
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
42533
|
+
__param(1, Ctx()),
|
|
42534
|
+
__param(2, PubSub()),
|
|
42535
|
+
__metadata("design:type", Function),
|
|
42536
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
42537
|
+
__metadata("design:returntype", Promise)
|
|
42538
|
+
], ContentProcessRunResolver.prototype, "RunContentProcessRunViewByID", null);
|
|
42539
|
+
__decorate([
|
|
42540
|
+
Query(() => RunContentProcessRunViewResult),
|
|
42541
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
42542
|
+
__param(1, Ctx()),
|
|
42543
|
+
__param(2, PubSub()),
|
|
42544
|
+
__metadata("design:type", Function),
|
|
42545
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
42546
|
+
__metadata("design:returntype", Promise)
|
|
42547
|
+
], ContentProcessRunResolver.prototype, "RunContentProcessRunViewByName", null);
|
|
42548
|
+
__decorate([
|
|
42549
|
+
Query(() => RunContentProcessRunViewResult),
|
|
42550
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
42551
|
+
__param(1, Ctx()),
|
|
42552
|
+
__param(2, PubSub()),
|
|
42553
|
+
__metadata("design:type", Function),
|
|
42554
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
42555
|
+
__metadata("design:returntype", Promise)
|
|
42556
|
+
], ContentProcessRunResolver.prototype, "RunContentProcessRunDynamicView", null);
|
|
42557
|
+
__decorate([
|
|
42558
|
+
Query(() => ContentProcessRun_, { nullable: true }),
|
|
42559
|
+
__param(0, Arg('ID', () => String)),
|
|
42560
|
+
__param(1, Ctx()),
|
|
42561
|
+
__param(2, PubSub()),
|
|
42562
|
+
__metadata("design:type", Function),
|
|
42563
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
42564
|
+
__metadata("design:returntype", Promise)
|
|
42565
|
+
], ContentProcessRunResolver.prototype, "ContentProcessRun", null);
|
|
42566
|
+
__decorate([
|
|
42567
|
+
Mutation(() => ContentProcessRun_),
|
|
42568
|
+
__param(0, Arg('input', () => CreateContentProcessRunInput)),
|
|
42569
|
+
__param(1, Ctx()),
|
|
42570
|
+
__param(2, PubSub()),
|
|
42571
|
+
__metadata("design:type", Function),
|
|
42572
|
+
__metadata("design:paramtypes", [CreateContentProcessRunInput, Object, PubSubEngine]),
|
|
42573
|
+
__metadata("design:returntype", Promise)
|
|
42574
|
+
], ContentProcessRunResolver.prototype, "CreateContentProcessRun", null);
|
|
42575
|
+
__decorate([
|
|
42576
|
+
Mutation(() => ContentProcessRun_),
|
|
42577
|
+
__param(0, Arg('input', () => UpdateContentProcessRunInput)),
|
|
42578
|
+
__param(1, Ctx()),
|
|
42579
|
+
__param(2, PubSub()),
|
|
42580
|
+
__metadata("design:type", Function),
|
|
42581
|
+
__metadata("design:paramtypes", [UpdateContentProcessRunInput, Object, PubSubEngine]),
|
|
42582
|
+
__metadata("design:returntype", Promise)
|
|
42583
|
+
], ContentProcessRunResolver.prototype, "UpdateContentProcessRun", null);
|
|
42584
|
+
__decorate([
|
|
42585
|
+
Mutation(() => ContentProcessRun_),
|
|
42586
|
+
__param(0, Arg('ID', () => String)),
|
|
42587
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
42588
|
+
__param(2, Ctx()),
|
|
42589
|
+
__param(3, PubSub()),
|
|
42590
|
+
__metadata("design:type", Function),
|
|
42591
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
42592
|
+
__metadata("design:returntype", Promise)
|
|
42593
|
+
], ContentProcessRunResolver.prototype, "DeleteContentProcessRun", null);
|
|
42594
|
+
ContentProcessRunResolver = __decorate([
|
|
42595
|
+
Resolver(ContentProcessRun_)
|
|
42596
|
+
], ContentProcessRunResolver);
|
|
42597
|
+
export { ContentProcessRunResolver };
|
|
42598
|
+
let ContentSource_ = class ContentSource_ {
|
|
42599
|
+
ID;
|
|
42600
|
+
Name;
|
|
42601
|
+
ContentTypeID;
|
|
42602
|
+
ContentSourceTypeID;
|
|
42603
|
+
ContentFileTypeID;
|
|
42604
|
+
URL;
|
|
42605
|
+
_mj__CreatedAt;
|
|
42606
|
+
_mj__UpdatedAt;
|
|
42607
|
+
ContentType;
|
|
42608
|
+
ContentSourceType;
|
|
42609
|
+
ContentFileType;
|
|
42610
|
+
ContentProcessRuns_SourceIDArray;
|
|
42611
|
+
ContentSourceParams_ContentSourceIDArray;
|
|
42612
|
+
ContentItems_ContentSourceIDArray;
|
|
42613
|
+
};
|
|
42614
|
+
__decorate([
|
|
42615
|
+
Field(),
|
|
42616
|
+
MaxLength(16),
|
|
42617
|
+
__metadata("design:type", String)
|
|
42618
|
+
], ContentSource_.prototype, "ID", void 0);
|
|
42619
|
+
__decorate([
|
|
42620
|
+
Field({ nullable: true }),
|
|
42621
|
+
MaxLength(510),
|
|
42622
|
+
__metadata("design:type", String)
|
|
42623
|
+
], ContentSource_.prototype, "Name", void 0);
|
|
42624
|
+
__decorate([
|
|
42625
|
+
Field(),
|
|
42626
|
+
MaxLength(16),
|
|
42627
|
+
__metadata("design:type", String)
|
|
42628
|
+
], ContentSource_.prototype, "ContentTypeID", void 0);
|
|
42629
|
+
__decorate([
|
|
42630
|
+
Field(),
|
|
42631
|
+
MaxLength(16),
|
|
42632
|
+
__metadata("design:type", String)
|
|
42633
|
+
], ContentSource_.prototype, "ContentSourceTypeID", void 0);
|
|
42634
|
+
__decorate([
|
|
42635
|
+
Field(),
|
|
42636
|
+
MaxLength(16),
|
|
42637
|
+
__metadata("design:type", String)
|
|
42638
|
+
], ContentSource_.prototype, "ContentFileTypeID", void 0);
|
|
42639
|
+
__decorate([
|
|
42640
|
+
Field(),
|
|
42641
|
+
MaxLength(4000),
|
|
42642
|
+
__metadata("design:type", String)
|
|
42643
|
+
], ContentSource_.prototype, "URL", void 0);
|
|
42644
|
+
__decorate([
|
|
42645
|
+
Field(),
|
|
42646
|
+
MaxLength(10),
|
|
42647
|
+
__metadata("design:type", Date)
|
|
42648
|
+
], ContentSource_.prototype, "_mj__CreatedAt", void 0);
|
|
42649
|
+
__decorate([
|
|
42650
|
+
Field(),
|
|
42651
|
+
MaxLength(10),
|
|
42652
|
+
__metadata("design:type", Date)
|
|
42653
|
+
], ContentSource_.prototype, "_mj__UpdatedAt", void 0);
|
|
42654
|
+
__decorate([
|
|
42655
|
+
Field(),
|
|
42656
|
+
MaxLength(510),
|
|
42657
|
+
__metadata("design:type", String)
|
|
42658
|
+
], ContentSource_.prototype, "ContentType", void 0);
|
|
42659
|
+
__decorate([
|
|
42660
|
+
Field(),
|
|
42661
|
+
MaxLength(510),
|
|
42662
|
+
__metadata("design:type", String)
|
|
42663
|
+
], ContentSource_.prototype, "ContentSourceType", void 0);
|
|
42664
|
+
__decorate([
|
|
42665
|
+
Field(),
|
|
42666
|
+
MaxLength(510),
|
|
42667
|
+
__metadata("design:type", String)
|
|
42668
|
+
], ContentSource_.prototype, "ContentFileType", void 0);
|
|
42669
|
+
__decorate([
|
|
42670
|
+
Field(() => [ContentProcessRun_]),
|
|
42671
|
+
__metadata("design:type", Array)
|
|
42672
|
+
], ContentSource_.prototype, "ContentProcessRuns_SourceIDArray", void 0);
|
|
42673
|
+
__decorate([
|
|
42674
|
+
Field(() => [ContentSourceParam_]),
|
|
42675
|
+
__metadata("design:type", Array)
|
|
42676
|
+
], ContentSource_.prototype, "ContentSourceParams_ContentSourceIDArray", void 0);
|
|
42677
|
+
__decorate([
|
|
42678
|
+
Field(() => [ContentItem_]),
|
|
42679
|
+
__metadata("design:type", Array)
|
|
42680
|
+
], ContentSource_.prototype, "ContentItems_ContentSourceIDArray", void 0);
|
|
42681
|
+
ContentSource_ = __decorate([
|
|
42682
|
+
ObjectType()
|
|
42683
|
+
], ContentSource_);
|
|
42684
|
+
export { ContentSource_ };
|
|
42685
|
+
let CreateContentSourceInput = class CreateContentSourceInput {
|
|
42686
|
+
Name;
|
|
42687
|
+
ContentTypeID;
|
|
42688
|
+
ContentSourceTypeID;
|
|
42689
|
+
ContentFileTypeID;
|
|
42690
|
+
URL;
|
|
42691
|
+
};
|
|
42692
|
+
__decorate([
|
|
42693
|
+
Field({ nullable: true }),
|
|
42694
|
+
__metadata("design:type", String)
|
|
42695
|
+
], CreateContentSourceInput.prototype, "Name", void 0);
|
|
42696
|
+
__decorate([
|
|
42697
|
+
Field(),
|
|
42698
|
+
__metadata("design:type", String)
|
|
42699
|
+
], CreateContentSourceInput.prototype, "ContentTypeID", void 0);
|
|
42700
|
+
__decorate([
|
|
42701
|
+
Field(),
|
|
42702
|
+
__metadata("design:type", String)
|
|
42703
|
+
], CreateContentSourceInput.prototype, "ContentSourceTypeID", void 0);
|
|
42704
|
+
__decorate([
|
|
42705
|
+
Field(),
|
|
42706
|
+
__metadata("design:type", String)
|
|
42707
|
+
], CreateContentSourceInput.prototype, "ContentFileTypeID", void 0);
|
|
42708
|
+
__decorate([
|
|
42709
|
+
Field(),
|
|
42710
|
+
__metadata("design:type", String)
|
|
42711
|
+
], CreateContentSourceInput.prototype, "URL", void 0);
|
|
42712
|
+
CreateContentSourceInput = __decorate([
|
|
42713
|
+
InputType()
|
|
42714
|
+
], CreateContentSourceInput);
|
|
42715
|
+
export { CreateContentSourceInput };
|
|
42716
|
+
let UpdateContentSourceInput = class UpdateContentSourceInput {
|
|
42717
|
+
ID;
|
|
42718
|
+
Name;
|
|
42719
|
+
ContentTypeID;
|
|
42720
|
+
ContentSourceTypeID;
|
|
42721
|
+
ContentFileTypeID;
|
|
42722
|
+
URL;
|
|
42723
|
+
OldValues___;
|
|
42724
|
+
};
|
|
42725
|
+
__decorate([
|
|
42726
|
+
Field(),
|
|
42727
|
+
__metadata("design:type", String)
|
|
42728
|
+
], UpdateContentSourceInput.prototype, "ID", void 0);
|
|
42729
|
+
__decorate([
|
|
42730
|
+
Field({ nullable: true }),
|
|
42731
|
+
__metadata("design:type", String)
|
|
42732
|
+
], UpdateContentSourceInput.prototype, "Name", void 0);
|
|
42733
|
+
__decorate([
|
|
42734
|
+
Field(),
|
|
42735
|
+
__metadata("design:type", String)
|
|
42736
|
+
], UpdateContentSourceInput.prototype, "ContentTypeID", void 0);
|
|
42737
|
+
__decorate([
|
|
42738
|
+
Field(),
|
|
42739
|
+
__metadata("design:type", String)
|
|
42740
|
+
], UpdateContentSourceInput.prototype, "ContentSourceTypeID", void 0);
|
|
42741
|
+
__decorate([
|
|
42742
|
+
Field(),
|
|
42743
|
+
__metadata("design:type", String)
|
|
42744
|
+
], UpdateContentSourceInput.prototype, "ContentFileTypeID", void 0);
|
|
42745
|
+
__decorate([
|
|
42746
|
+
Field(),
|
|
42747
|
+
__metadata("design:type", String)
|
|
42748
|
+
], UpdateContentSourceInput.prototype, "URL", void 0);
|
|
42749
|
+
__decorate([
|
|
42750
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
42751
|
+
__metadata("design:type", Array)
|
|
42752
|
+
], UpdateContentSourceInput.prototype, "OldValues___", void 0);
|
|
42753
|
+
UpdateContentSourceInput = __decorate([
|
|
42754
|
+
InputType()
|
|
42755
|
+
], UpdateContentSourceInput);
|
|
42756
|
+
export { UpdateContentSourceInput };
|
|
42757
|
+
let RunContentSourceViewResult = class RunContentSourceViewResult {
|
|
42758
|
+
Results;
|
|
42759
|
+
UserViewRunID;
|
|
42760
|
+
RowCount;
|
|
42761
|
+
TotalRowCount;
|
|
42762
|
+
ExecutionTime;
|
|
42763
|
+
ErrorMessage;
|
|
42764
|
+
Success;
|
|
42765
|
+
};
|
|
42766
|
+
__decorate([
|
|
42767
|
+
Field(() => [ContentSource_]),
|
|
42768
|
+
__metadata("design:type", Array)
|
|
42769
|
+
], RunContentSourceViewResult.prototype, "Results", void 0);
|
|
42770
|
+
__decorate([
|
|
42771
|
+
Field(() => String, { nullable: true }),
|
|
42772
|
+
__metadata("design:type", String)
|
|
42773
|
+
], RunContentSourceViewResult.prototype, "UserViewRunID", void 0);
|
|
42774
|
+
__decorate([
|
|
42775
|
+
Field(() => Int, { nullable: true }),
|
|
42776
|
+
__metadata("design:type", Number)
|
|
42777
|
+
], RunContentSourceViewResult.prototype, "RowCount", void 0);
|
|
42778
|
+
__decorate([
|
|
42779
|
+
Field(() => Int, { nullable: true }),
|
|
42780
|
+
__metadata("design:type", Number)
|
|
42781
|
+
], RunContentSourceViewResult.prototype, "TotalRowCount", void 0);
|
|
42782
|
+
__decorate([
|
|
42783
|
+
Field(() => Int, { nullable: true }),
|
|
42784
|
+
__metadata("design:type", Number)
|
|
42785
|
+
], RunContentSourceViewResult.prototype, "ExecutionTime", void 0);
|
|
42786
|
+
__decorate([
|
|
42787
|
+
Field({ nullable: true }),
|
|
42788
|
+
__metadata("design:type", String)
|
|
42789
|
+
], RunContentSourceViewResult.prototype, "ErrorMessage", void 0);
|
|
42790
|
+
__decorate([
|
|
42791
|
+
Field(() => Boolean, { nullable: false }),
|
|
42792
|
+
__metadata("design:type", Boolean)
|
|
42793
|
+
], RunContentSourceViewResult.prototype, "Success", void 0);
|
|
42794
|
+
RunContentSourceViewResult = __decorate([
|
|
42795
|
+
ObjectType()
|
|
42796
|
+
], RunContentSourceViewResult);
|
|
42797
|
+
export { RunContentSourceViewResult };
|
|
42798
|
+
let ContentSourceResolver = class ContentSourceResolver extends ResolverBase {
|
|
42799
|
+
async RunContentSourceViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
42800
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
42801
|
+
}
|
|
42802
|
+
async RunContentSourceViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
42803
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
42804
|
+
}
|
|
42805
|
+
async RunContentSourceDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
42806
|
+
input.EntityName = 'Content Sources';
|
|
42807
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
42808
|
+
}
|
|
42809
|
+
async ContentSource(ID, { dataSource, userPayload }, pubSub) {
|
|
42810
|
+
this.CheckUserReadPermissions('Content Sources', userPayload);
|
|
42811
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSources] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
42812
|
+
const result = this.MapFieldNamesToCodeNames('Content Sources', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
42813
|
+
return result;
|
|
42814
|
+
}
|
|
42815
|
+
async ContentProcessRuns_SourceIDArray(contentsource_, { dataSource, userPayload }, pubSub) {
|
|
42816
|
+
this.CheckUserReadPermissions('Content Process Runs', userPayload);
|
|
42817
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentProcessRuns] WHERE [SourceID]='${contentsource_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Process Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
42818
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Process Runs', await dataSource.query(sSQL));
|
|
42819
|
+
return result;
|
|
42820
|
+
}
|
|
42821
|
+
async ContentSourceParams_ContentSourceIDArray(contentsource_, { dataSource, userPayload }, pubSub) {
|
|
42822
|
+
this.CheckUserReadPermissions('Content Source Params', userPayload);
|
|
42823
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSourceParams] WHERE [ContentSourceID]='${contentsource_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Source Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
42824
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Source Params', await dataSource.query(sSQL));
|
|
42825
|
+
return result;
|
|
42826
|
+
}
|
|
42827
|
+
async ContentItems_ContentSourceIDArray(contentsource_, { dataSource, userPayload }, pubSub) {
|
|
42828
|
+
this.CheckUserReadPermissions('Content Items', userPayload);
|
|
42829
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItems] WHERE [ContentSourceID]='${contentsource_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
42830
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Items', await dataSource.query(sSQL));
|
|
42831
|
+
return result;
|
|
42832
|
+
}
|
|
42833
|
+
async CreateContentSource(input, { dataSource, userPayload }, pubSub) {
|
|
42834
|
+
return this.CreateRecord('Content Sources', input, dataSource, userPayload, pubSub);
|
|
42835
|
+
}
|
|
42836
|
+
async UpdateContentSource(input, { dataSource, userPayload }, pubSub) {
|
|
42837
|
+
return this.UpdateRecord('Content Sources', input, dataSource, userPayload, pubSub);
|
|
42838
|
+
}
|
|
42839
|
+
async DeleteContentSource(ID, options, { dataSource, userPayload }, pubSub) {
|
|
42840
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
42841
|
+
return this.DeleteRecord('Content Sources', key, options, dataSource, userPayload, pubSub);
|
|
42842
|
+
}
|
|
42843
|
+
};
|
|
42844
|
+
__decorate([
|
|
42845
|
+
Query(() => RunContentSourceViewResult),
|
|
42846
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
42847
|
+
__param(1, Ctx()),
|
|
42848
|
+
__param(2, PubSub()),
|
|
42849
|
+
__metadata("design:type", Function),
|
|
42850
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
42851
|
+
__metadata("design:returntype", Promise)
|
|
42852
|
+
], ContentSourceResolver.prototype, "RunContentSourceViewByID", null);
|
|
42853
|
+
__decorate([
|
|
42854
|
+
Query(() => RunContentSourceViewResult),
|
|
42855
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
42856
|
+
__param(1, Ctx()),
|
|
42857
|
+
__param(2, PubSub()),
|
|
42858
|
+
__metadata("design:type", Function),
|
|
42859
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
42860
|
+
__metadata("design:returntype", Promise)
|
|
42861
|
+
], ContentSourceResolver.prototype, "RunContentSourceViewByName", null);
|
|
42862
|
+
__decorate([
|
|
42863
|
+
Query(() => RunContentSourceViewResult),
|
|
42864
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
42865
|
+
__param(1, Ctx()),
|
|
42866
|
+
__param(2, PubSub()),
|
|
42867
|
+
__metadata("design:type", Function),
|
|
42868
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
42869
|
+
__metadata("design:returntype", Promise)
|
|
42870
|
+
], ContentSourceResolver.prototype, "RunContentSourceDynamicView", null);
|
|
42871
|
+
__decorate([
|
|
42872
|
+
Query(() => ContentSource_, { nullable: true }),
|
|
42873
|
+
__param(0, Arg('ID', () => String)),
|
|
42874
|
+
__param(1, Ctx()),
|
|
42875
|
+
__param(2, PubSub()),
|
|
42876
|
+
__metadata("design:type", Function),
|
|
42877
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
42878
|
+
__metadata("design:returntype", Promise)
|
|
42879
|
+
], ContentSourceResolver.prototype, "ContentSource", null);
|
|
42880
|
+
__decorate([
|
|
42881
|
+
FieldResolver(() => [ContentProcessRun_]),
|
|
42882
|
+
__param(0, Root()),
|
|
42883
|
+
__param(1, Ctx()),
|
|
42884
|
+
__param(2, PubSub()),
|
|
42885
|
+
__metadata("design:type", Function),
|
|
42886
|
+
__metadata("design:paramtypes", [ContentSource_, Object, PubSubEngine]),
|
|
42887
|
+
__metadata("design:returntype", Promise)
|
|
42888
|
+
], ContentSourceResolver.prototype, "ContentProcessRuns_SourceIDArray", null);
|
|
42889
|
+
__decorate([
|
|
42890
|
+
FieldResolver(() => [ContentSourceParam_]),
|
|
42891
|
+
__param(0, Root()),
|
|
42892
|
+
__param(1, Ctx()),
|
|
42893
|
+
__param(2, PubSub()),
|
|
42894
|
+
__metadata("design:type", Function),
|
|
42895
|
+
__metadata("design:paramtypes", [ContentSource_, Object, PubSubEngine]),
|
|
42896
|
+
__metadata("design:returntype", Promise)
|
|
42897
|
+
], ContentSourceResolver.prototype, "ContentSourceParams_ContentSourceIDArray", null);
|
|
42898
|
+
__decorate([
|
|
42899
|
+
FieldResolver(() => [ContentItem_]),
|
|
42900
|
+
__param(0, Root()),
|
|
42901
|
+
__param(1, Ctx()),
|
|
42902
|
+
__param(2, PubSub()),
|
|
42903
|
+
__metadata("design:type", Function),
|
|
42904
|
+
__metadata("design:paramtypes", [ContentSource_, Object, PubSubEngine]),
|
|
42905
|
+
__metadata("design:returntype", Promise)
|
|
42906
|
+
], ContentSourceResolver.prototype, "ContentItems_ContentSourceIDArray", null);
|
|
42907
|
+
__decorate([
|
|
42908
|
+
Mutation(() => ContentSource_),
|
|
42909
|
+
__param(0, Arg('input', () => CreateContentSourceInput)),
|
|
42910
|
+
__param(1, Ctx()),
|
|
42911
|
+
__param(2, PubSub()),
|
|
42912
|
+
__metadata("design:type", Function),
|
|
42913
|
+
__metadata("design:paramtypes", [CreateContentSourceInput, Object, PubSubEngine]),
|
|
42914
|
+
__metadata("design:returntype", Promise)
|
|
42915
|
+
], ContentSourceResolver.prototype, "CreateContentSource", null);
|
|
42916
|
+
__decorate([
|
|
42917
|
+
Mutation(() => ContentSource_),
|
|
42918
|
+
__param(0, Arg('input', () => UpdateContentSourceInput)),
|
|
42919
|
+
__param(1, Ctx()),
|
|
42920
|
+
__param(2, PubSub()),
|
|
42921
|
+
__metadata("design:type", Function),
|
|
42922
|
+
__metadata("design:paramtypes", [UpdateContentSourceInput, Object, PubSubEngine]),
|
|
42923
|
+
__metadata("design:returntype", Promise)
|
|
42924
|
+
], ContentSourceResolver.prototype, "UpdateContentSource", null);
|
|
42925
|
+
__decorate([
|
|
42926
|
+
Mutation(() => ContentSource_),
|
|
42927
|
+
__param(0, Arg('ID', () => String)),
|
|
42928
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
42929
|
+
__param(2, Ctx()),
|
|
42930
|
+
__param(3, PubSub()),
|
|
42931
|
+
__metadata("design:type", Function),
|
|
42932
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
42933
|
+
__metadata("design:returntype", Promise)
|
|
42934
|
+
], ContentSourceResolver.prototype, "DeleteContentSource", null);
|
|
42935
|
+
ContentSourceResolver = __decorate([
|
|
42936
|
+
Resolver(ContentSource_)
|
|
42937
|
+
], ContentSourceResolver);
|
|
42938
|
+
export { ContentSourceResolver };
|
|
42939
|
+
let ContentSourceParam_ = class ContentSourceParam_ {
|
|
42940
|
+
ID;
|
|
42941
|
+
ContentSourceID;
|
|
42942
|
+
ContentSourceTypeParamID;
|
|
42943
|
+
Value;
|
|
42944
|
+
_mj__CreatedAt;
|
|
42945
|
+
_mj__UpdatedAt;
|
|
42946
|
+
ContentSource;
|
|
42947
|
+
};
|
|
42948
|
+
__decorate([
|
|
42949
|
+
Field(),
|
|
42950
|
+
MaxLength(16),
|
|
42951
|
+
__metadata("design:type", String)
|
|
42952
|
+
], ContentSourceParam_.prototype, "ID", void 0);
|
|
42953
|
+
__decorate([
|
|
42954
|
+
Field(),
|
|
42955
|
+
MaxLength(16),
|
|
42956
|
+
__metadata("design:type", String)
|
|
42957
|
+
], ContentSourceParam_.prototype, "ContentSourceID", void 0);
|
|
42958
|
+
__decorate([
|
|
42959
|
+
Field(),
|
|
42960
|
+
MaxLength(16),
|
|
42961
|
+
__metadata("design:type", String)
|
|
42962
|
+
], ContentSourceParam_.prototype, "ContentSourceTypeParamID", void 0);
|
|
42963
|
+
__decorate([
|
|
42964
|
+
Field(),
|
|
42965
|
+
__metadata("design:type", String)
|
|
42966
|
+
], ContentSourceParam_.prototype, "Value", void 0);
|
|
42967
|
+
__decorate([
|
|
42968
|
+
Field(),
|
|
42969
|
+
MaxLength(10),
|
|
42970
|
+
__metadata("design:type", Date)
|
|
42971
|
+
], ContentSourceParam_.prototype, "_mj__CreatedAt", void 0);
|
|
42972
|
+
__decorate([
|
|
42973
|
+
Field(),
|
|
42974
|
+
MaxLength(10),
|
|
42975
|
+
__metadata("design:type", Date)
|
|
42976
|
+
], ContentSourceParam_.prototype, "_mj__UpdatedAt", void 0);
|
|
42977
|
+
__decorate([
|
|
42978
|
+
Field({ nullable: true }),
|
|
42979
|
+
MaxLength(510),
|
|
42980
|
+
__metadata("design:type", String)
|
|
42981
|
+
], ContentSourceParam_.prototype, "ContentSource", void 0);
|
|
42982
|
+
ContentSourceParam_ = __decorate([
|
|
42983
|
+
ObjectType()
|
|
42984
|
+
], ContentSourceParam_);
|
|
42985
|
+
export { ContentSourceParam_ };
|
|
42986
|
+
let CreateContentSourceParamInput = class CreateContentSourceParamInput {
|
|
42987
|
+
ContentSourceID;
|
|
42988
|
+
ContentSourceTypeParamID;
|
|
42989
|
+
Value;
|
|
42990
|
+
};
|
|
42991
|
+
__decorate([
|
|
42992
|
+
Field(),
|
|
42993
|
+
__metadata("design:type", String)
|
|
42994
|
+
], CreateContentSourceParamInput.prototype, "ContentSourceID", void 0);
|
|
42995
|
+
__decorate([
|
|
42996
|
+
Field(),
|
|
42997
|
+
__metadata("design:type", String)
|
|
42998
|
+
], CreateContentSourceParamInput.prototype, "ContentSourceTypeParamID", void 0);
|
|
42999
|
+
__decorate([
|
|
43000
|
+
Field(),
|
|
43001
|
+
__metadata("design:type", String)
|
|
43002
|
+
], CreateContentSourceParamInput.prototype, "Value", void 0);
|
|
43003
|
+
CreateContentSourceParamInput = __decorate([
|
|
43004
|
+
InputType()
|
|
43005
|
+
], CreateContentSourceParamInput);
|
|
43006
|
+
export { CreateContentSourceParamInput };
|
|
43007
|
+
let UpdateContentSourceParamInput = class UpdateContentSourceParamInput {
|
|
43008
|
+
ID;
|
|
43009
|
+
ContentSourceID;
|
|
43010
|
+
ContentSourceTypeParamID;
|
|
43011
|
+
Value;
|
|
43012
|
+
OldValues___;
|
|
43013
|
+
};
|
|
43014
|
+
__decorate([
|
|
43015
|
+
Field(),
|
|
43016
|
+
__metadata("design:type", String)
|
|
43017
|
+
], UpdateContentSourceParamInput.prototype, "ID", void 0);
|
|
43018
|
+
__decorate([
|
|
43019
|
+
Field(),
|
|
43020
|
+
__metadata("design:type", String)
|
|
43021
|
+
], UpdateContentSourceParamInput.prototype, "ContentSourceID", void 0);
|
|
43022
|
+
__decorate([
|
|
43023
|
+
Field(),
|
|
43024
|
+
__metadata("design:type", String)
|
|
43025
|
+
], UpdateContentSourceParamInput.prototype, "ContentSourceTypeParamID", void 0);
|
|
43026
|
+
__decorate([
|
|
43027
|
+
Field(),
|
|
43028
|
+
__metadata("design:type", String)
|
|
43029
|
+
], UpdateContentSourceParamInput.prototype, "Value", void 0);
|
|
43030
|
+
__decorate([
|
|
43031
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
43032
|
+
__metadata("design:type", Array)
|
|
43033
|
+
], UpdateContentSourceParamInput.prototype, "OldValues___", void 0);
|
|
43034
|
+
UpdateContentSourceParamInput = __decorate([
|
|
43035
|
+
InputType()
|
|
43036
|
+
], UpdateContentSourceParamInput);
|
|
43037
|
+
export { UpdateContentSourceParamInput };
|
|
43038
|
+
let RunContentSourceParamViewResult = class RunContentSourceParamViewResult {
|
|
43039
|
+
Results;
|
|
43040
|
+
UserViewRunID;
|
|
43041
|
+
RowCount;
|
|
43042
|
+
TotalRowCount;
|
|
43043
|
+
ExecutionTime;
|
|
43044
|
+
ErrorMessage;
|
|
43045
|
+
Success;
|
|
43046
|
+
};
|
|
43047
|
+
__decorate([
|
|
43048
|
+
Field(() => [ContentSourceParam_]),
|
|
43049
|
+
__metadata("design:type", Array)
|
|
43050
|
+
], RunContentSourceParamViewResult.prototype, "Results", void 0);
|
|
43051
|
+
__decorate([
|
|
43052
|
+
Field(() => String, { nullable: true }),
|
|
43053
|
+
__metadata("design:type", String)
|
|
43054
|
+
], RunContentSourceParamViewResult.prototype, "UserViewRunID", void 0);
|
|
43055
|
+
__decorate([
|
|
43056
|
+
Field(() => Int, { nullable: true }),
|
|
43057
|
+
__metadata("design:type", Number)
|
|
43058
|
+
], RunContentSourceParamViewResult.prototype, "RowCount", void 0);
|
|
43059
|
+
__decorate([
|
|
43060
|
+
Field(() => Int, { nullable: true }),
|
|
43061
|
+
__metadata("design:type", Number)
|
|
43062
|
+
], RunContentSourceParamViewResult.prototype, "TotalRowCount", void 0);
|
|
43063
|
+
__decorate([
|
|
43064
|
+
Field(() => Int, { nullable: true }),
|
|
43065
|
+
__metadata("design:type", Number)
|
|
43066
|
+
], RunContentSourceParamViewResult.prototype, "ExecutionTime", void 0);
|
|
43067
|
+
__decorate([
|
|
43068
|
+
Field({ nullable: true }),
|
|
43069
|
+
__metadata("design:type", String)
|
|
43070
|
+
], RunContentSourceParamViewResult.prototype, "ErrorMessage", void 0);
|
|
43071
|
+
__decorate([
|
|
43072
|
+
Field(() => Boolean, { nullable: false }),
|
|
43073
|
+
__metadata("design:type", Boolean)
|
|
43074
|
+
], RunContentSourceParamViewResult.prototype, "Success", void 0);
|
|
43075
|
+
RunContentSourceParamViewResult = __decorate([
|
|
43076
|
+
ObjectType()
|
|
43077
|
+
], RunContentSourceParamViewResult);
|
|
43078
|
+
export { RunContentSourceParamViewResult };
|
|
43079
|
+
let ContentSourceParamResolver = class ContentSourceParamResolver extends ResolverBase {
|
|
43080
|
+
async RunContentSourceParamViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
43081
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
43082
|
+
}
|
|
43083
|
+
async RunContentSourceParamViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
43084
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
43085
|
+
}
|
|
43086
|
+
async RunContentSourceParamDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
43087
|
+
input.EntityName = 'Content Source Params';
|
|
43088
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
43089
|
+
}
|
|
43090
|
+
async ContentSourceParam(ID, { dataSource, userPayload }, pubSub) {
|
|
43091
|
+
this.CheckUserReadPermissions('Content Source Params', userPayload);
|
|
43092
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSourceParams] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Source Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
43093
|
+
const result = this.MapFieldNamesToCodeNames('Content Source Params', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
43094
|
+
return result;
|
|
43095
|
+
}
|
|
43096
|
+
async CreateContentSourceParam(input, { dataSource, userPayload }, pubSub) {
|
|
43097
|
+
return this.CreateRecord('Content Source Params', input, dataSource, userPayload, pubSub);
|
|
43098
|
+
}
|
|
43099
|
+
async UpdateContentSourceParam(input, { dataSource, userPayload }, pubSub) {
|
|
43100
|
+
return this.UpdateRecord('Content Source Params', input, dataSource, userPayload, pubSub);
|
|
43101
|
+
}
|
|
43102
|
+
async DeleteContentSourceParam(ID, options, { dataSource, userPayload }, pubSub) {
|
|
43103
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
43104
|
+
return this.DeleteRecord('Content Source Params', key, options, dataSource, userPayload, pubSub);
|
|
43105
|
+
}
|
|
43106
|
+
};
|
|
43107
|
+
__decorate([
|
|
43108
|
+
Query(() => RunContentSourceParamViewResult),
|
|
43109
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
43110
|
+
__param(1, Ctx()),
|
|
43111
|
+
__param(2, PubSub()),
|
|
43112
|
+
__metadata("design:type", Function),
|
|
43113
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
43114
|
+
__metadata("design:returntype", Promise)
|
|
43115
|
+
], ContentSourceParamResolver.prototype, "RunContentSourceParamViewByID", null);
|
|
43116
|
+
__decorate([
|
|
43117
|
+
Query(() => RunContentSourceParamViewResult),
|
|
43118
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
43119
|
+
__param(1, Ctx()),
|
|
43120
|
+
__param(2, PubSub()),
|
|
43121
|
+
__metadata("design:type", Function),
|
|
43122
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
43123
|
+
__metadata("design:returntype", Promise)
|
|
43124
|
+
], ContentSourceParamResolver.prototype, "RunContentSourceParamViewByName", null);
|
|
43125
|
+
__decorate([
|
|
43126
|
+
Query(() => RunContentSourceParamViewResult),
|
|
43127
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
43128
|
+
__param(1, Ctx()),
|
|
43129
|
+
__param(2, PubSub()),
|
|
43130
|
+
__metadata("design:type", Function),
|
|
43131
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
43132
|
+
__metadata("design:returntype", Promise)
|
|
43133
|
+
], ContentSourceParamResolver.prototype, "RunContentSourceParamDynamicView", null);
|
|
43134
|
+
__decorate([
|
|
43135
|
+
Query(() => ContentSourceParam_, { nullable: true }),
|
|
43136
|
+
__param(0, Arg('ID', () => String)),
|
|
43137
|
+
__param(1, Ctx()),
|
|
43138
|
+
__param(2, PubSub()),
|
|
43139
|
+
__metadata("design:type", Function),
|
|
43140
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
43141
|
+
__metadata("design:returntype", Promise)
|
|
43142
|
+
], ContentSourceParamResolver.prototype, "ContentSourceParam", null);
|
|
43143
|
+
__decorate([
|
|
43144
|
+
Mutation(() => ContentSourceParam_),
|
|
43145
|
+
__param(0, Arg('input', () => CreateContentSourceParamInput)),
|
|
43146
|
+
__param(1, Ctx()),
|
|
43147
|
+
__param(2, PubSub()),
|
|
43148
|
+
__metadata("design:type", Function),
|
|
43149
|
+
__metadata("design:paramtypes", [CreateContentSourceParamInput, Object, PubSubEngine]),
|
|
43150
|
+
__metadata("design:returntype", Promise)
|
|
43151
|
+
], ContentSourceParamResolver.prototype, "CreateContentSourceParam", null);
|
|
43152
|
+
__decorate([
|
|
43153
|
+
Mutation(() => ContentSourceParam_),
|
|
43154
|
+
__param(0, Arg('input', () => UpdateContentSourceParamInput)),
|
|
43155
|
+
__param(1, Ctx()),
|
|
43156
|
+
__param(2, PubSub()),
|
|
43157
|
+
__metadata("design:type", Function),
|
|
43158
|
+
__metadata("design:paramtypes", [UpdateContentSourceParamInput, Object, PubSubEngine]),
|
|
43159
|
+
__metadata("design:returntype", Promise)
|
|
43160
|
+
], ContentSourceParamResolver.prototype, "UpdateContentSourceParam", null);
|
|
43161
|
+
__decorate([
|
|
43162
|
+
Mutation(() => ContentSourceParam_),
|
|
43163
|
+
__param(0, Arg('ID', () => String)),
|
|
43164
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
43165
|
+
__param(2, Ctx()),
|
|
43166
|
+
__param(3, PubSub()),
|
|
43167
|
+
__metadata("design:type", Function),
|
|
43168
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
43169
|
+
__metadata("design:returntype", Promise)
|
|
43170
|
+
], ContentSourceParamResolver.prototype, "DeleteContentSourceParam", null);
|
|
43171
|
+
ContentSourceParamResolver = __decorate([
|
|
43172
|
+
Resolver(ContentSourceParam_)
|
|
43173
|
+
], ContentSourceParamResolver);
|
|
43174
|
+
export { ContentSourceParamResolver };
|
|
43175
|
+
let ContentSourceType_ = class ContentSourceType_ {
|
|
43176
|
+
ID;
|
|
43177
|
+
Name;
|
|
43178
|
+
Description;
|
|
43179
|
+
_mj__CreatedAt;
|
|
43180
|
+
_mj__UpdatedAt;
|
|
43181
|
+
ContentSources_ContentSourceTypeIDArray;
|
|
43182
|
+
ContentItems_ContentSourceTypeIDArray;
|
|
43183
|
+
};
|
|
43184
|
+
__decorate([
|
|
43185
|
+
Field(),
|
|
43186
|
+
MaxLength(16),
|
|
43187
|
+
__metadata("design:type", String)
|
|
43188
|
+
], ContentSourceType_.prototype, "ID", void 0);
|
|
43189
|
+
__decorate([
|
|
43190
|
+
Field(),
|
|
43191
|
+
MaxLength(510),
|
|
43192
|
+
__metadata("design:type", String)
|
|
43193
|
+
], ContentSourceType_.prototype, "Name", void 0);
|
|
43194
|
+
__decorate([
|
|
43195
|
+
Field({ nullable: true }),
|
|
43196
|
+
MaxLength(2000),
|
|
43197
|
+
__metadata("design:type", String)
|
|
43198
|
+
], ContentSourceType_.prototype, "Description", void 0);
|
|
43199
|
+
__decorate([
|
|
43200
|
+
Field(),
|
|
43201
|
+
MaxLength(10),
|
|
43202
|
+
__metadata("design:type", Date)
|
|
43203
|
+
], ContentSourceType_.prototype, "_mj__CreatedAt", void 0);
|
|
43204
|
+
__decorate([
|
|
43205
|
+
Field(),
|
|
43206
|
+
MaxLength(10),
|
|
43207
|
+
__metadata("design:type", Date)
|
|
43208
|
+
], ContentSourceType_.prototype, "_mj__UpdatedAt", void 0);
|
|
43209
|
+
__decorate([
|
|
43210
|
+
Field(() => [ContentSource_]),
|
|
43211
|
+
__metadata("design:type", Array)
|
|
43212
|
+
], ContentSourceType_.prototype, "ContentSources_ContentSourceTypeIDArray", void 0);
|
|
43213
|
+
__decorate([
|
|
43214
|
+
Field(() => [ContentItem_]),
|
|
43215
|
+
__metadata("design:type", Array)
|
|
43216
|
+
], ContentSourceType_.prototype, "ContentItems_ContentSourceTypeIDArray", void 0);
|
|
43217
|
+
ContentSourceType_ = __decorate([
|
|
43218
|
+
ObjectType()
|
|
43219
|
+
], ContentSourceType_);
|
|
43220
|
+
export { ContentSourceType_ };
|
|
43221
|
+
let CreateContentSourceTypeInput = class CreateContentSourceTypeInput {
|
|
43222
|
+
Name;
|
|
43223
|
+
Description;
|
|
43224
|
+
};
|
|
43225
|
+
__decorate([
|
|
43226
|
+
Field(),
|
|
43227
|
+
__metadata("design:type", String)
|
|
43228
|
+
], CreateContentSourceTypeInput.prototype, "Name", void 0);
|
|
43229
|
+
__decorate([
|
|
43230
|
+
Field({ nullable: true }),
|
|
43231
|
+
__metadata("design:type", String)
|
|
43232
|
+
], CreateContentSourceTypeInput.prototype, "Description", void 0);
|
|
43233
|
+
CreateContentSourceTypeInput = __decorate([
|
|
43234
|
+
InputType()
|
|
43235
|
+
], CreateContentSourceTypeInput);
|
|
43236
|
+
export { CreateContentSourceTypeInput };
|
|
43237
|
+
let UpdateContentSourceTypeInput = class UpdateContentSourceTypeInput {
|
|
43238
|
+
ID;
|
|
43239
|
+
Name;
|
|
43240
|
+
Description;
|
|
43241
|
+
OldValues___;
|
|
43242
|
+
};
|
|
43243
|
+
__decorate([
|
|
43244
|
+
Field(),
|
|
43245
|
+
__metadata("design:type", String)
|
|
43246
|
+
], UpdateContentSourceTypeInput.prototype, "ID", void 0);
|
|
43247
|
+
__decorate([
|
|
43248
|
+
Field(),
|
|
43249
|
+
__metadata("design:type", String)
|
|
43250
|
+
], UpdateContentSourceTypeInput.prototype, "Name", void 0);
|
|
43251
|
+
__decorate([
|
|
43252
|
+
Field({ nullable: true }),
|
|
43253
|
+
__metadata("design:type", String)
|
|
43254
|
+
], UpdateContentSourceTypeInput.prototype, "Description", void 0);
|
|
43255
|
+
__decorate([
|
|
43256
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
43257
|
+
__metadata("design:type", Array)
|
|
43258
|
+
], UpdateContentSourceTypeInput.prototype, "OldValues___", void 0);
|
|
43259
|
+
UpdateContentSourceTypeInput = __decorate([
|
|
43260
|
+
InputType()
|
|
43261
|
+
], UpdateContentSourceTypeInput);
|
|
43262
|
+
export { UpdateContentSourceTypeInput };
|
|
43263
|
+
let RunContentSourceTypeViewResult = class RunContentSourceTypeViewResult {
|
|
43264
|
+
Results;
|
|
43265
|
+
UserViewRunID;
|
|
43266
|
+
RowCount;
|
|
43267
|
+
TotalRowCount;
|
|
43268
|
+
ExecutionTime;
|
|
43269
|
+
ErrorMessage;
|
|
43270
|
+
Success;
|
|
43271
|
+
};
|
|
43272
|
+
__decorate([
|
|
43273
|
+
Field(() => [ContentSourceType_]),
|
|
43274
|
+
__metadata("design:type", Array)
|
|
43275
|
+
], RunContentSourceTypeViewResult.prototype, "Results", void 0);
|
|
43276
|
+
__decorate([
|
|
43277
|
+
Field(() => String, { nullable: true }),
|
|
43278
|
+
__metadata("design:type", String)
|
|
43279
|
+
], RunContentSourceTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
43280
|
+
__decorate([
|
|
43281
|
+
Field(() => Int, { nullable: true }),
|
|
43282
|
+
__metadata("design:type", Number)
|
|
43283
|
+
], RunContentSourceTypeViewResult.prototype, "RowCount", void 0);
|
|
43284
|
+
__decorate([
|
|
43285
|
+
Field(() => Int, { nullable: true }),
|
|
43286
|
+
__metadata("design:type", Number)
|
|
43287
|
+
], RunContentSourceTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
43288
|
+
__decorate([
|
|
43289
|
+
Field(() => Int, { nullable: true }),
|
|
43290
|
+
__metadata("design:type", Number)
|
|
43291
|
+
], RunContentSourceTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
43292
|
+
__decorate([
|
|
43293
|
+
Field({ nullable: true }),
|
|
43294
|
+
__metadata("design:type", String)
|
|
43295
|
+
], RunContentSourceTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
43296
|
+
__decorate([
|
|
43297
|
+
Field(() => Boolean, { nullable: false }),
|
|
43298
|
+
__metadata("design:type", Boolean)
|
|
43299
|
+
], RunContentSourceTypeViewResult.prototype, "Success", void 0);
|
|
43300
|
+
RunContentSourceTypeViewResult = __decorate([
|
|
43301
|
+
ObjectType()
|
|
43302
|
+
], RunContentSourceTypeViewResult);
|
|
43303
|
+
export { RunContentSourceTypeViewResult };
|
|
43304
|
+
let ContentSourceTypeResolver = class ContentSourceTypeResolver extends ResolverBase {
|
|
43305
|
+
async RunContentSourceTypeViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
43306
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
43307
|
+
}
|
|
43308
|
+
async RunContentSourceTypeViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
43309
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
43310
|
+
}
|
|
43311
|
+
async RunContentSourceTypeDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
43312
|
+
input.EntityName = 'Content Source Types';
|
|
43313
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
43314
|
+
}
|
|
43315
|
+
async ContentSourceType(ID, { dataSource, userPayload }, pubSub) {
|
|
43316
|
+
this.CheckUserReadPermissions('Content Source Types', userPayload);
|
|
43317
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSourceTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Source Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
43318
|
+
const result = this.MapFieldNamesToCodeNames('Content Source Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
43319
|
+
return result;
|
|
43320
|
+
}
|
|
43321
|
+
async ContentSources_ContentSourceTypeIDArray(contentsourcetype_, { dataSource, userPayload }, pubSub) {
|
|
43322
|
+
this.CheckUserReadPermissions('Content Sources', userPayload);
|
|
43323
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSources] WHERE [ContentSourceTypeID]='${contentsourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
43324
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Sources', await dataSource.query(sSQL));
|
|
43325
|
+
return result;
|
|
43326
|
+
}
|
|
43327
|
+
async ContentItems_ContentSourceTypeIDArray(contentsourcetype_, { dataSource, userPayload }, pubSub) {
|
|
43328
|
+
this.CheckUserReadPermissions('Content Items', userPayload);
|
|
43329
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItems] WHERE [ContentSourceTypeID]='${contentsourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
43330
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Items', await dataSource.query(sSQL));
|
|
43331
|
+
return result;
|
|
43332
|
+
}
|
|
43333
|
+
async CreateContentSourceType(input, { dataSource, userPayload }, pubSub) {
|
|
43334
|
+
return this.CreateRecord('Content Source Types', input, dataSource, userPayload, pubSub);
|
|
43335
|
+
}
|
|
43336
|
+
async UpdateContentSourceType(input, { dataSource, userPayload }, pubSub) {
|
|
43337
|
+
return this.UpdateRecord('Content Source Types', input, dataSource, userPayload, pubSub);
|
|
43338
|
+
}
|
|
43339
|
+
async DeleteContentSourceType(ID, options, { dataSource, userPayload }, pubSub) {
|
|
43340
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
43341
|
+
return this.DeleteRecord('Content Source Types', key, options, dataSource, userPayload, pubSub);
|
|
43342
|
+
}
|
|
43343
|
+
};
|
|
43344
|
+
__decorate([
|
|
43345
|
+
Query(() => RunContentSourceTypeViewResult),
|
|
43346
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
43347
|
+
__param(1, Ctx()),
|
|
43348
|
+
__param(2, PubSub()),
|
|
43349
|
+
__metadata("design:type", Function),
|
|
43350
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
43351
|
+
__metadata("design:returntype", Promise)
|
|
43352
|
+
], ContentSourceTypeResolver.prototype, "RunContentSourceTypeViewByID", null);
|
|
43353
|
+
__decorate([
|
|
43354
|
+
Query(() => RunContentSourceTypeViewResult),
|
|
43355
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
43356
|
+
__param(1, Ctx()),
|
|
43357
|
+
__param(2, PubSub()),
|
|
43358
|
+
__metadata("design:type", Function),
|
|
43359
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
43360
|
+
__metadata("design:returntype", Promise)
|
|
43361
|
+
], ContentSourceTypeResolver.prototype, "RunContentSourceTypeViewByName", null);
|
|
43362
|
+
__decorate([
|
|
43363
|
+
Query(() => RunContentSourceTypeViewResult),
|
|
43364
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
43365
|
+
__param(1, Ctx()),
|
|
43366
|
+
__param(2, PubSub()),
|
|
43367
|
+
__metadata("design:type", Function),
|
|
43368
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
43369
|
+
__metadata("design:returntype", Promise)
|
|
43370
|
+
], ContentSourceTypeResolver.prototype, "RunContentSourceTypeDynamicView", null);
|
|
43371
|
+
__decorate([
|
|
43372
|
+
Query(() => ContentSourceType_, { nullable: true }),
|
|
43373
|
+
__param(0, Arg('ID', () => String)),
|
|
43374
|
+
__param(1, Ctx()),
|
|
43375
|
+
__param(2, PubSub()),
|
|
43376
|
+
__metadata("design:type", Function),
|
|
43377
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
43378
|
+
__metadata("design:returntype", Promise)
|
|
43379
|
+
], ContentSourceTypeResolver.prototype, "ContentSourceType", null);
|
|
43380
|
+
__decorate([
|
|
43381
|
+
FieldResolver(() => [ContentSource_]),
|
|
43382
|
+
__param(0, Root()),
|
|
43383
|
+
__param(1, Ctx()),
|
|
43384
|
+
__param(2, PubSub()),
|
|
43385
|
+
__metadata("design:type", Function),
|
|
43386
|
+
__metadata("design:paramtypes", [ContentSourceType_, Object, PubSubEngine]),
|
|
43387
|
+
__metadata("design:returntype", Promise)
|
|
43388
|
+
], ContentSourceTypeResolver.prototype, "ContentSources_ContentSourceTypeIDArray", null);
|
|
43389
|
+
__decorate([
|
|
43390
|
+
FieldResolver(() => [ContentItem_]),
|
|
43391
|
+
__param(0, Root()),
|
|
43392
|
+
__param(1, Ctx()),
|
|
43393
|
+
__param(2, PubSub()),
|
|
43394
|
+
__metadata("design:type", Function),
|
|
43395
|
+
__metadata("design:paramtypes", [ContentSourceType_, Object, PubSubEngine]),
|
|
43396
|
+
__metadata("design:returntype", Promise)
|
|
43397
|
+
], ContentSourceTypeResolver.prototype, "ContentItems_ContentSourceTypeIDArray", null);
|
|
43398
|
+
__decorate([
|
|
43399
|
+
Mutation(() => ContentSourceType_),
|
|
43400
|
+
__param(0, Arg('input', () => CreateContentSourceTypeInput)),
|
|
43401
|
+
__param(1, Ctx()),
|
|
43402
|
+
__param(2, PubSub()),
|
|
43403
|
+
__metadata("design:type", Function),
|
|
43404
|
+
__metadata("design:paramtypes", [CreateContentSourceTypeInput, Object, PubSubEngine]),
|
|
43405
|
+
__metadata("design:returntype", Promise)
|
|
43406
|
+
], ContentSourceTypeResolver.prototype, "CreateContentSourceType", null);
|
|
43407
|
+
__decorate([
|
|
43408
|
+
Mutation(() => ContentSourceType_),
|
|
43409
|
+
__param(0, Arg('input', () => UpdateContentSourceTypeInput)),
|
|
43410
|
+
__param(1, Ctx()),
|
|
43411
|
+
__param(2, PubSub()),
|
|
43412
|
+
__metadata("design:type", Function),
|
|
43413
|
+
__metadata("design:paramtypes", [UpdateContentSourceTypeInput, Object, PubSubEngine]),
|
|
43414
|
+
__metadata("design:returntype", Promise)
|
|
43415
|
+
], ContentSourceTypeResolver.prototype, "UpdateContentSourceType", null);
|
|
43416
|
+
__decorate([
|
|
43417
|
+
Mutation(() => ContentSourceType_),
|
|
43418
|
+
__param(0, Arg('ID', () => String)),
|
|
43419
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
43420
|
+
__param(2, Ctx()),
|
|
43421
|
+
__param(3, PubSub()),
|
|
43422
|
+
__metadata("design:type", Function),
|
|
43423
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
43424
|
+
__metadata("design:returntype", Promise)
|
|
43425
|
+
], ContentSourceTypeResolver.prototype, "DeleteContentSourceType", null);
|
|
43426
|
+
ContentSourceTypeResolver = __decorate([
|
|
43427
|
+
Resolver(ContentSourceType_)
|
|
43428
|
+
], ContentSourceTypeResolver);
|
|
43429
|
+
export { ContentSourceTypeResolver };
|
|
43430
|
+
let ContentSourceTypeParam_ = class ContentSourceTypeParam_ {
|
|
43431
|
+
ID;
|
|
43432
|
+
Name;
|
|
43433
|
+
Description;
|
|
43434
|
+
Type;
|
|
43435
|
+
DefaultValue;
|
|
43436
|
+
IsRequired;
|
|
43437
|
+
_mj__CreatedAt;
|
|
43438
|
+
_mj__UpdatedAt;
|
|
43439
|
+
};
|
|
43440
|
+
__decorate([
|
|
43441
|
+
Field(),
|
|
43442
|
+
MaxLength(16),
|
|
43443
|
+
__metadata("design:type", String)
|
|
43444
|
+
], ContentSourceTypeParam_.prototype, "ID", void 0);
|
|
43445
|
+
__decorate([
|
|
43446
|
+
Field(),
|
|
43447
|
+
MaxLength(200),
|
|
43448
|
+
__metadata("design:type", String)
|
|
43449
|
+
], ContentSourceTypeParam_.prototype, "Name", void 0);
|
|
43450
|
+
__decorate([
|
|
43451
|
+
Field({ nullable: true }),
|
|
43452
|
+
__metadata("design:type", String)
|
|
43453
|
+
], ContentSourceTypeParam_.prototype, "Description", void 0);
|
|
43454
|
+
__decorate([
|
|
43455
|
+
Field({ nullable: true }),
|
|
43456
|
+
MaxLength(100),
|
|
43457
|
+
__metadata("design:type", String)
|
|
43458
|
+
], ContentSourceTypeParam_.prototype, "Type", void 0);
|
|
43459
|
+
__decorate([
|
|
43460
|
+
Field({ nullable: true }),
|
|
43461
|
+
__metadata("design:type", String)
|
|
43462
|
+
], ContentSourceTypeParam_.prototype, "DefaultValue", void 0);
|
|
43463
|
+
__decorate([
|
|
43464
|
+
Field(() => Boolean),
|
|
43465
|
+
__metadata("design:type", Boolean)
|
|
43466
|
+
], ContentSourceTypeParam_.prototype, "IsRequired", void 0);
|
|
43467
|
+
__decorate([
|
|
43468
|
+
Field(),
|
|
43469
|
+
MaxLength(10),
|
|
43470
|
+
__metadata("design:type", Date)
|
|
43471
|
+
], ContentSourceTypeParam_.prototype, "_mj__CreatedAt", void 0);
|
|
43472
|
+
__decorate([
|
|
43473
|
+
Field(),
|
|
43474
|
+
MaxLength(10),
|
|
43475
|
+
__metadata("design:type", Date)
|
|
43476
|
+
], ContentSourceTypeParam_.prototype, "_mj__UpdatedAt", void 0);
|
|
43477
|
+
ContentSourceTypeParam_ = __decorate([
|
|
43478
|
+
ObjectType()
|
|
43479
|
+
], ContentSourceTypeParam_);
|
|
43480
|
+
export { ContentSourceTypeParam_ };
|
|
43481
|
+
let CreateContentSourceTypeParamInput = class CreateContentSourceTypeParamInput {
|
|
43482
|
+
Name;
|
|
43483
|
+
Description;
|
|
43484
|
+
Type;
|
|
43485
|
+
DefaultValue;
|
|
43486
|
+
IsRequired;
|
|
43487
|
+
};
|
|
43488
|
+
__decorate([
|
|
43489
|
+
Field(),
|
|
43490
|
+
__metadata("design:type", String)
|
|
43491
|
+
], CreateContentSourceTypeParamInput.prototype, "Name", void 0);
|
|
43492
|
+
__decorate([
|
|
43493
|
+
Field({ nullable: true }),
|
|
43494
|
+
__metadata("design:type", String)
|
|
43495
|
+
], CreateContentSourceTypeParamInput.prototype, "Description", void 0);
|
|
43496
|
+
__decorate([
|
|
43497
|
+
Field({ nullable: true }),
|
|
43498
|
+
__metadata("design:type", String)
|
|
43499
|
+
], CreateContentSourceTypeParamInput.prototype, "Type", void 0);
|
|
43500
|
+
__decorate([
|
|
43501
|
+
Field({ nullable: true }),
|
|
43502
|
+
__metadata("design:type", String)
|
|
43503
|
+
], CreateContentSourceTypeParamInput.prototype, "DefaultValue", void 0);
|
|
43504
|
+
__decorate([
|
|
43505
|
+
Field(() => Boolean),
|
|
43506
|
+
__metadata("design:type", Boolean)
|
|
43507
|
+
], CreateContentSourceTypeParamInput.prototype, "IsRequired", void 0);
|
|
43508
|
+
CreateContentSourceTypeParamInput = __decorate([
|
|
43509
|
+
InputType()
|
|
43510
|
+
], CreateContentSourceTypeParamInput);
|
|
43511
|
+
export { CreateContentSourceTypeParamInput };
|
|
43512
|
+
let UpdateContentSourceTypeParamInput = class UpdateContentSourceTypeParamInput {
|
|
43513
|
+
ID;
|
|
43514
|
+
Name;
|
|
43515
|
+
Description;
|
|
43516
|
+
Type;
|
|
43517
|
+
DefaultValue;
|
|
43518
|
+
IsRequired;
|
|
43519
|
+
OldValues___;
|
|
43520
|
+
};
|
|
43521
|
+
__decorate([
|
|
43522
|
+
Field(),
|
|
43523
|
+
__metadata("design:type", String)
|
|
43524
|
+
], UpdateContentSourceTypeParamInput.prototype, "ID", void 0);
|
|
43525
|
+
__decorate([
|
|
43526
|
+
Field(),
|
|
43527
|
+
__metadata("design:type", String)
|
|
43528
|
+
], UpdateContentSourceTypeParamInput.prototype, "Name", void 0);
|
|
43529
|
+
__decorate([
|
|
43530
|
+
Field({ nullable: true }),
|
|
43531
|
+
__metadata("design:type", String)
|
|
43532
|
+
], UpdateContentSourceTypeParamInput.prototype, "Description", void 0);
|
|
43533
|
+
__decorate([
|
|
43534
|
+
Field({ nullable: true }),
|
|
43535
|
+
__metadata("design:type", String)
|
|
43536
|
+
], UpdateContentSourceTypeParamInput.prototype, "Type", void 0);
|
|
43537
|
+
__decorate([
|
|
43538
|
+
Field({ nullable: true }),
|
|
43539
|
+
__metadata("design:type", String)
|
|
43540
|
+
], UpdateContentSourceTypeParamInput.prototype, "DefaultValue", void 0);
|
|
43541
|
+
__decorate([
|
|
43542
|
+
Field(() => Boolean),
|
|
43543
|
+
__metadata("design:type", Boolean)
|
|
43544
|
+
], UpdateContentSourceTypeParamInput.prototype, "IsRequired", void 0);
|
|
43545
|
+
__decorate([
|
|
43546
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
43547
|
+
__metadata("design:type", Array)
|
|
43548
|
+
], UpdateContentSourceTypeParamInput.prototype, "OldValues___", void 0);
|
|
43549
|
+
UpdateContentSourceTypeParamInput = __decorate([
|
|
43550
|
+
InputType()
|
|
43551
|
+
], UpdateContentSourceTypeParamInput);
|
|
43552
|
+
export { UpdateContentSourceTypeParamInput };
|
|
43553
|
+
let RunContentSourceTypeParamViewResult = class RunContentSourceTypeParamViewResult {
|
|
43554
|
+
Results;
|
|
43555
|
+
UserViewRunID;
|
|
43556
|
+
RowCount;
|
|
43557
|
+
TotalRowCount;
|
|
43558
|
+
ExecutionTime;
|
|
43559
|
+
ErrorMessage;
|
|
43560
|
+
Success;
|
|
43561
|
+
};
|
|
43562
|
+
__decorate([
|
|
43563
|
+
Field(() => [ContentSourceTypeParam_]),
|
|
43564
|
+
__metadata("design:type", Array)
|
|
43565
|
+
], RunContentSourceTypeParamViewResult.prototype, "Results", void 0);
|
|
43566
|
+
__decorate([
|
|
43567
|
+
Field(() => String, { nullable: true }),
|
|
43568
|
+
__metadata("design:type", String)
|
|
43569
|
+
], RunContentSourceTypeParamViewResult.prototype, "UserViewRunID", void 0);
|
|
43570
|
+
__decorate([
|
|
43571
|
+
Field(() => Int, { nullable: true }),
|
|
43572
|
+
__metadata("design:type", Number)
|
|
43573
|
+
], RunContentSourceTypeParamViewResult.prototype, "RowCount", void 0);
|
|
43574
|
+
__decorate([
|
|
43575
|
+
Field(() => Int, { nullable: true }),
|
|
43576
|
+
__metadata("design:type", Number)
|
|
43577
|
+
], RunContentSourceTypeParamViewResult.prototype, "TotalRowCount", void 0);
|
|
43578
|
+
__decorate([
|
|
43579
|
+
Field(() => Int, { nullable: true }),
|
|
43580
|
+
__metadata("design:type", Number)
|
|
43581
|
+
], RunContentSourceTypeParamViewResult.prototype, "ExecutionTime", void 0);
|
|
43582
|
+
__decorate([
|
|
43583
|
+
Field({ nullable: true }),
|
|
43584
|
+
__metadata("design:type", String)
|
|
43585
|
+
], RunContentSourceTypeParamViewResult.prototype, "ErrorMessage", void 0);
|
|
43586
|
+
__decorate([
|
|
43587
|
+
Field(() => Boolean, { nullable: false }),
|
|
43588
|
+
__metadata("design:type", Boolean)
|
|
43589
|
+
], RunContentSourceTypeParamViewResult.prototype, "Success", void 0);
|
|
43590
|
+
RunContentSourceTypeParamViewResult = __decorate([
|
|
43591
|
+
ObjectType()
|
|
43592
|
+
], RunContentSourceTypeParamViewResult);
|
|
43593
|
+
export { RunContentSourceTypeParamViewResult };
|
|
43594
|
+
let ContentSourceTypeParamResolver = class ContentSourceTypeParamResolver extends ResolverBase {
|
|
43595
|
+
async RunContentSourceTypeParamViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
43596
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
43597
|
+
}
|
|
43598
|
+
async RunContentSourceTypeParamViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
43599
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
43600
|
+
}
|
|
43601
|
+
async RunContentSourceTypeParamDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
43602
|
+
input.EntityName = 'Content Source Type Params';
|
|
43603
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
43604
|
+
}
|
|
43605
|
+
async ContentSourceTypeParam(ID, { dataSource, userPayload }, pubSub) {
|
|
43606
|
+
this.CheckUserReadPermissions('Content Source Type Params', userPayload);
|
|
43607
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSourceTypeParams] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Source Type Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
43608
|
+
const result = this.MapFieldNamesToCodeNames('Content Source Type Params', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
43609
|
+
return result;
|
|
43610
|
+
}
|
|
43611
|
+
async CreateContentSourceTypeParam(input, { dataSource, userPayload }, pubSub) {
|
|
43612
|
+
return this.CreateRecord('Content Source Type Params', input, dataSource, userPayload, pubSub);
|
|
43613
|
+
}
|
|
43614
|
+
async UpdateContentSourceTypeParam(input, { dataSource, userPayload }, pubSub) {
|
|
43615
|
+
return this.UpdateRecord('Content Source Type Params', input, dataSource, userPayload, pubSub);
|
|
43616
|
+
}
|
|
43617
|
+
async DeleteContentSourceTypeParam(ID, options, { dataSource, userPayload }, pubSub) {
|
|
43618
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
43619
|
+
return this.DeleteRecord('Content Source Type Params', key, options, dataSource, userPayload, pubSub);
|
|
43620
|
+
}
|
|
43621
|
+
};
|
|
43622
|
+
__decorate([
|
|
43623
|
+
Query(() => RunContentSourceTypeParamViewResult),
|
|
43624
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
43625
|
+
__param(1, Ctx()),
|
|
43626
|
+
__param(2, PubSub()),
|
|
43627
|
+
__metadata("design:type", Function),
|
|
43628
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
43629
|
+
__metadata("design:returntype", Promise)
|
|
43630
|
+
], ContentSourceTypeParamResolver.prototype, "RunContentSourceTypeParamViewByID", null);
|
|
43631
|
+
__decorate([
|
|
43632
|
+
Query(() => RunContentSourceTypeParamViewResult),
|
|
43633
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
43634
|
+
__param(1, Ctx()),
|
|
43635
|
+
__param(2, PubSub()),
|
|
43636
|
+
__metadata("design:type", Function),
|
|
43637
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
43638
|
+
__metadata("design:returntype", Promise)
|
|
43639
|
+
], ContentSourceTypeParamResolver.prototype, "RunContentSourceTypeParamViewByName", null);
|
|
43640
|
+
__decorate([
|
|
43641
|
+
Query(() => RunContentSourceTypeParamViewResult),
|
|
43642
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
43643
|
+
__param(1, Ctx()),
|
|
43644
|
+
__param(2, PubSub()),
|
|
43645
|
+
__metadata("design:type", Function),
|
|
43646
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
43647
|
+
__metadata("design:returntype", Promise)
|
|
43648
|
+
], ContentSourceTypeParamResolver.prototype, "RunContentSourceTypeParamDynamicView", null);
|
|
43649
|
+
__decorate([
|
|
43650
|
+
Query(() => ContentSourceTypeParam_, { nullable: true }),
|
|
43651
|
+
__param(0, Arg('ID', () => String)),
|
|
43652
|
+
__param(1, Ctx()),
|
|
43653
|
+
__param(2, PubSub()),
|
|
43654
|
+
__metadata("design:type", Function),
|
|
43655
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
43656
|
+
__metadata("design:returntype", Promise)
|
|
43657
|
+
], ContentSourceTypeParamResolver.prototype, "ContentSourceTypeParam", null);
|
|
43658
|
+
__decorate([
|
|
43659
|
+
Mutation(() => ContentSourceTypeParam_),
|
|
43660
|
+
__param(0, Arg('input', () => CreateContentSourceTypeParamInput)),
|
|
43661
|
+
__param(1, Ctx()),
|
|
43662
|
+
__param(2, PubSub()),
|
|
43663
|
+
__metadata("design:type", Function),
|
|
43664
|
+
__metadata("design:paramtypes", [CreateContentSourceTypeParamInput, Object, PubSubEngine]),
|
|
43665
|
+
__metadata("design:returntype", Promise)
|
|
43666
|
+
], ContentSourceTypeParamResolver.prototype, "CreateContentSourceTypeParam", null);
|
|
43667
|
+
__decorate([
|
|
43668
|
+
Mutation(() => ContentSourceTypeParam_),
|
|
43669
|
+
__param(0, Arg('input', () => UpdateContentSourceTypeParamInput)),
|
|
43670
|
+
__param(1, Ctx()),
|
|
43671
|
+
__param(2, PubSub()),
|
|
43672
|
+
__metadata("design:type", Function),
|
|
43673
|
+
__metadata("design:paramtypes", [UpdateContentSourceTypeParamInput, Object, PubSubEngine]),
|
|
43674
|
+
__metadata("design:returntype", Promise)
|
|
43675
|
+
], ContentSourceTypeParamResolver.prototype, "UpdateContentSourceTypeParam", null);
|
|
43676
|
+
__decorate([
|
|
43677
|
+
Mutation(() => ContentSourceTypeParam_),
|
|
43678
|
+
__param(0, Arg('ID', () => String)),
|
|
43679
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
43680
|
+
__param(2, Ctx()),
|
|
43681
|
+
__param(3, PubSub()),
|
|
43682
|
+
__metadata("design:type", Function),
|
|
43683
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
43684
|
+
__metadata("design:returntype", Promise)
|
|
43685
|
+
], ContentSourceTypeParamResolver.prototype, "DeleteContentSourceTypeParam", null);
|
|
43686
|
+
ContentSourceTypeParamResolver = __decorate([
|
|
43687
|
+
Resolver(ContentSourceTypeParam_)
|
|
43688
|
+
], ContentSourceTypeParamResolver);
|
|
43689
|
+
export { ContentSourceTypeParamResolver };
|
|
43690
|
+
let ContentType_ = class ContentType_ {
|
|
43691
|
+
ID;
|
|
43692
|
+
Name;
|
|
43693
|
+
Description;
|
|
43694
|
+
AIModelID;
|
|
43695
|
+
MinTags;
|
|
43696
|
+
MaxTags;
|
|
43697
|
+
_mj__CreatedAt;
|
|
43698
|
+
_mj__UpdatedAt;
|
|
43699
|
+
AIModel;
|
|
43700
|
+
ContentSources_ContentTypeIDArray;
|
|
43701
|
+
ContentItems_ContentTypeIDArray;
|
|
43702
|
+
};
|
|
43703
|
+
__decorate([
|
|
43704
|
+
Field(),
|
|
43705
|
+
MaxLength(16),
|
|
43706
|
+
__metadata("design:type", String)
|
|
43707
|
+
], ContentType_.prototype, "ID", void 0);
|
|
43708
|
+
__decorate([
|
|
43709
|
+
Field(),
|
|
43710
|
+
MaxLength(510),
|
|
43711
|
+
__metadata("design:type", String)
|
|
43712
|
+
], ContentType_.prototype, "Name", void 0);
|
|
43713
|
+
__decorate([
|
|
43714
|
+
Field({ nullable: true }),
|
|
43715
|
+
__metadata("design:type", String)
|
|
43716
|
+
], ContentType_.prototype, "Description", void 0);
|
|
43717
|
+
__decorate([
|
|
43718
|
+
Field(),
|
|
43719
|
+
MaxLength(16),
|
|
43720
|
+
__metadata("design:type", String)
|
|
43721
|
+
], ContentType_.prototype, "AIModelID", void 0);
|
|
43722
|
+
__decorate([
|
|
43723
|
+
Field(() => Int),
|
|
43724
|
+
__metadata("design:type", Number)
|
|
43725
|
+
], ContentType_.prototype, "MinTags", void 0);
|
|
43726
|
+
__decorate([
|
|
43727
|
+
Field(() => Int),
|
|
43728
|
+
__metadata("design:type", Number)
|
|
43729
|
+
], ContentType_.prototype, "MaxTags", void 0);
|
|
43730
|
+
__decorate([
|
|
43731
|
+
Field(),
|
|
43732
|
+
MaxLength(10),
|
|
43733
|
+
__metadata("design:type", Date)
|
|
43734
|
+
], ContentType_.prototype, "_mj__CreatedAt", void 0);
|
|
43735
|
+
__decorate([
|
|
43736
|
+
Field(),
|
|
43737
|
+
MaxLength(10),
|
|
43738
|
+
__metadata("design:type", Date)
|
|
43739
|
+
], ContentType_.prototype, "_mj__UpdatedAt", void 0);
|
|
43740
|
+
__decorate([
|
|
43741
|
+
Field(),
|
|
43742
|
+
MaxLength(100),
|
|
43743
|
+
__metadata("design:type", String)
|
|
43744
|
+
], ContentType_.prototype, "AIModel", void 0);
|
|
43745
|
+
__decorate([
|
|
43746
|
+
Field(() => [ContentSource_]),
|
|
43747
|
+
__metadata("design:type", Array)
|
|
43748
|
+
], ContentType_.prototype, "ContentSources_ContentTypeIDArray", void 0);
|
|
43749
|
+
__decorate([
|
|
43750
|
+
Field(() => [ContentItem_]),
|
|
43751
|
+
__metadata("design:type", Array)
|
|
43752
|
+
], ContentType_.prototype, "ContentItems_ContentTypeIDArray", void 0);
|
|
43753
|
+
ContentType_ = __decorate([
|
|
43754
|
+
ObjectType()
|
|
43755
|
+
], ContentType_);
|
|
43756
|
+
export { ContentType_ };
|
|
43757
|
+
let CreateContentTypeInput = class CreateContentTypeInput {
|
|
43758
|
+
Name;
|
|
43759
|
+
Description;
|
|
43760
|
+
AIModelID;
|
|
43761
|
+
MinTags;
|
|
43762
|
+
MaxTags;
|
|
43763
|
+
};
|
|
43764
|
+
__decorate([
|
|
43765
|
+
Field(),
|
|
43766
|
+
__metadata("design:type", String)
|
|
43767
|
+
], CreateContentTypeInput.prototype, "Name", void 0);
|
|
43768
|
+
__decorate([
|
|
43769
|
+
Field({ nullable: true }),
|
|
43770
|
+
__metadata("design:type", String)
|
|
43771
|
+
], CreateContentTypeInput.prototype, "Description", void 0);
|
|
43772
|
+
__decorate([
|
|
43773
|
+
Field(),
|
|
43774
|
+
__metadata("design:type", String)
|
|
43775
|
+
], CreateContentTypeInput.prototype, "AIModelID", void 0);
|
|
43776
|
+
__decorate([
|
|
43777
|
+
Field(() => Int),
|
|
43778
|
+
__metadata("design:type", Number)
|
|
43779
|
+
], CreateContentTypeInput.prototype, "MinTags", void 0);
|
|
43780
|
+
__decorate([
|
|
43781
|
+
Field(() => Int),
|
|
43782
|
+
__metadata("design:type", Number)
|
|
43783
|
+
], CreateContentTypeInput.prototype, "MaxTags", void 0);
|
|
43784
|
+
CreateContentTypeInput = __decorate([
|
|
43785
|
+
InputType()
|
|
43786
|
+
], CreateContentTypeInput);
|
|
43787
|
+
export { CreateContentTypeInput };
|
|
43788
|
+
let UpdateContentTypeInput = class UpdateContentTypeInput {
|
|
43789
|
+
ID;
|
|
43790
|
+
Name;
|
|
43791
|
+
Description;
|
|
43792
|
+
AIModelID;
|
|
43793
|
+
MinTags;
|
|
43794
|
+
MaxTags;
|
|
43795
|
+
OldValues___;
|
|
43796
|
+
};
|
|
43797
|
+
__decorate([
|
|
43798
|
+
Field(),
|
|
43799
|
+
__metadata("design:type", String)
|
|
43800
|
+
], UpdateContentTypeInput.prototype, "ID", void 0);
|
|
43801
|
+
__decorate([
|
|
43802
|
+
Field(),
|
|
43803
|
+
__metadata("design:type", String)
|
|
43804
|
+
], UpdateContentTypeInput.prototype, "Name", void 0);
|
|
43805
|
+
__decorate([
|
|
43806
|
+
Field({ nullable: true }),
|
|
43807
|
+
__metadata("design:type", String)
|
|
43808
|
+
], UpdateContentTypeInput.prototype, "Description", void 0);
|
|
43809
|
+
__decorate([
|
|
43810
|
+
Field(),
|
|
43811
|
+
__metadata("design:type", String)
|
|
43812
|
+
], UpdateContentTypeInput.prototype, "AIModelID", void 0);
|
|
43813
|
+
__decorate([
|
|
43814
|
+
Field(() => Int),
|
|
43815
|
+
__metadata("design:type", Number)
|
|
43816
|
+
], UpdateContentTypeInput.prototype, "MinTags", void 0);
|
|
43817
|
+
__decorate([
|
|
43818
|
+
Field(() => Int),
|
|
43819
|
+
__metadata("design:type", Number)
|
|
43820
|
+
], UpdateContentTypeInput.prototype, "MaxTags", void 0);
|
|
43821
|
+
__decorate([
|
|
43822
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
43823
|
+
__metadata("design:type", Array)
|
|
43824
|
+
], UpdateContentTypeInput.prototype, "OldValues___", void 0);
|
|
43825
|
+
UpdateContentTypeInput = __decorate([
|
|
43826
|
+
InputType()
|
|
43827
|
+
], UpdateContentTypeInput);
|
|
43828
|
+
export { UpdateContentTypeInput };
|
|
43829
|
+
let RunContentTypeViewResult = class RunContentTypeViewResult {
|
|
43830
|
+
Results;
|
|
43831
|
+
UserViewRunID;
|
|
43832
|
+
RowCount;
|
|
43833
|
+
TotalRowCount;
|
|
43834
|
+
ExecutionTime;
|
|
43835
|
+
ErrorMessage;
|
|
43836
|
+
Success;
|
|
43837
|
+
};
|
|
43838
|
+
__decorate([
|
|
43839
|
+
Field(() => [ContentType_]),
|
|
43840
|
+
__metadata("design:type", Array)
|
|
43841
|
+
], RunContentTypeViewResult.prototype, "Results", void 0);
|
|
43842
|
+
__decorate([
|
|
43843
|
+
Field(() => String, { nullable: true }),
|
|
43844
|
+
__metadata("design:type", String)
|
|
43845
|
+
], RunContentTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
43846
|
+
__decorate([
|
|
43847
|
+
Field(() => Int, { nullable: true }),
|
|
43848
|
+
__metadata("design:type", Number)
|
|
43849
|
+
], RunContentTypeViewResult.prototype, "RowCount", void 0);
|
|
43850
|
+
__decorate([
|
|
43851
|
+
Field(() => Int, { nullable: true }),
|
|
43852
|
+
__metadata("design:type", Number)
|
|
43853
|
+
], RunContentTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
43854
|
+
__decorate([
|
|
43855
|
+
Field(() => Int, { nullable: true }),
|
|
43856
|
+
__metadata("design:type", Number)
|
|
43857
|
+
], RunContentTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
43858
|
+
__decorate([
|
|
43859
|
+
Field({ nullable: true }),
|
|
43860
|
+
__metadata("design:type", String)
|
|
43861
|
+
], RunContentTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
43862
|
+
__decorate([
|
|
43863
|
+
Field(() => Boolean, { nullable: false }),
|
|
43864
|
+
__metadata("design:type", Boolean)
|
|
43865
|
+
], RunContentTypeViewResult.prototype, "Success", void 0);
|
|
43866
|
+
RunContentTypeViewResult = __decorate([
|
|
43867
|
+
ObjectType()
|
|
43868
|
+
], RunContentTypeViewResult);
|
|
43869
|
+
export { RunContentTypeViewResult };
|
|
43870
|
+
let ContentTypeResolver = class ContentTypeResolver extends ResolverBase {
|
|
43871
|
+
async RunContentTypeViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
43872
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
43873
|
+
}
|
|
43874
|
+
async RunContentTypeViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
43875
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
43876
|
+
}
|
|
43877
|
+
async RunContentTypeDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
43878
|
+
input.EntityName = 'Content Types';
|
|
43879
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
43880
|
+
}
|
|
43881
|
+
async ContentType(ID, { dataSource, userPayload }, pubSub) {
|
|
43882
|
+
this.CheckUserReadPermissions('Content Types', userPayload);
|
|
43883
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
43884
|
+
const result = this.MapFieldNamesToCodeNames('Content Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
43885
|
+
return result;
|
|
43886
|
+
}
|
|
43887
|
+
async ContentSources_ContentTypeIDArray(contenttype_, { dataSource, userPayload }, pubSub) {
|
|
43888
|
+
this.CheckUserReadPermissions('Content Sources', userPayload);
|
|
43889
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSources] WHERE [ContentTypeID]='${contenttype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
43890
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Sources', await dataSource.query(sSQL));
|
|
43891
|
+
return result;
|
|
43892
|
+
}
|
|
43893
|
+
async ContentItems_ContentTypeIDArray(contenttype_, { dataSource, userPayload }, pubSub) {
|
|
43894
|
+
this.CheckUserReadPermissions('Content Items', userPayload);
|
|
43895
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItems] WHERE [ContentTypeID]='${contenttype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
43896
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Items', await dataSource.query(sSQL));
|
|
43897
|
+
return result;
|
|
43898
|
+
}
|
|
43899
|
+
async CreateContentType(input, { dataSource, userPayload }, pubSub) {
|
|
43900
|
+
return this.CreateRecord('Content Types', input, dataSource, userPayload, pubSub);
|
|
43901
|
+
}
|
|
43902
|
+
async UpdateContentType(input, { dataSource, userPayload }, pubSub) {
|
|
43903
|
+
return this.UpdateRecord('Content Types', input, dataSource, userPayload, pubSub);
|
|
43904
|
+
}
|
|
43905
|
+
async DeleteContentType(ID, options, { dataSource, userPayload }, pubSub) {
|
|
43906
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
43907
|
+
return this.DeleteRecord('Content Types', key, options, dataSource, userPayload, pubSub);
|
|
43908
|
+
}
|
|
43909
|
+
};
|
|
43910
|
+
__decorate([
|
|
43911
|
+
Query(() => RunContentTypeViewResult),
|
|
43912
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
43913
|
+
__param(1, Ctx()),
|
|
43914
|
+
__param(2, PubSub()),
|
|
43915
|
+
__metadata("design:type", Function),
|
|
43916
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
43917
|
+
__metadata("design:returntype", Promise)
|
|
43918
|
+
], ContentTypeResolver.prototype, "RunContentTypeViewByID", null);
|
|
43919
|
+
__decorate([
|
|
43920
|
+
Query(() => RunContentTypeViewResult),
|
|
43921
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
43922
|
+
__param(1, Ctx()),
|
|
43923
|
+
__param(2, PubSub()),
|
|
43924
|
+
__metadata("design:type", Function),
|
|
43925
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
43926
|
+
__metadata("design:returntype", Promise)
|
|
43927
|
+
], ContentTypeResolver.prototype, "RunContentTypeViewByName", null);
|
|
43928
|
+
__decorate([
|
|
43929
|
+
Query(() => RunContentTypeViewResult),
|
|
43930
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
43931
|
+
__param(1, Ctx()),
|
|
43932
|
+
__param(2, PubSub()),
|
|
43933
|
+
__metadata("design:type", Function),
|
|
43934
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
43935
|
+
__metadata("design:returntype", Promise)
|
|
43936
|
+
], ContentTypeResolver.prototype, "RunContentTypeDynamicView", null);
|
|
43937
|
+
__decorate([
|
|
43938
|
+
Query(() => ContentType_, { nullable: true }),
|
|
43939
|
+
__param(0, Arg('ID', () => String)),
|
|
43940
|
+
__param(1, Ctx()),
|
|
43941
|
+
__param(2, PubSub()),
|
|
43942
|
+
__metadata("design:type", Function),
|
|
43943
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
43944
|
+
__metadata("design:returntype", Promise)
|
|
43945
|
+
], ContentTypeResolver.prototype, "ContentType", null);
|
|
43946
|
+
__decorate([
|
|
43947
|
+
FieldResolver(() => [ContentSource_]),
|
|
43948
|
+
__param(0, Root()),
|
|
43949
|
+
__param(1, Ctx()),
|
|
43950
|
+
__param(2, PubSub()),
|
|
43951
|
+
__metadata("design:type", Function),
|
|
43952
|
+
__metadata("design:paramtypes", [ContentType_, Object, PubSubEngine]),
|
|
43953
|
+
__metadata("design:returntype", Promise)
|
|
43954
|
+
], ContentTypeResolver.prototype, "ContentSources_ContentTypeIDArray", null);
|
|
43955
|
+
__decorate([
|
|
43956
|
+
FieldResolver(() => [ContentItem_]),
|
|
43957
|
+
__param(0, Root()),
|
|
43958
|
+
__param(1, Ctx()),
|
|
43959
|
+
__param(2, PubSub()),
|
|
43960
|
+
__metadata("design:type", Function),
|
|
43961
|
+
__metadata("design:paramtypes", [ContentType_, Object, PubSubEngine]),
|
|
43962
|
+
__metadata("design:returntype", Promise)
|
|
43963
|
+
], ContentTypeResolver.prototype, "ContentItems_ContentTypeIDArray", null);
|
|
43964
|
+
__decorate([
|
|
43965
|
+
Mutation(() => ContentType_),
|
|
43966
|
+
__param(0, Arg('input', () => CreateContentTypeInput)),
|
|
43967
|
+
__param(1, Ctx()),
|
|
43968
|
+
__param(2, PubSub()),
|
|
43969
|
+
__metadata("design:type", Function),
|
|
43970
|
+
__metadata("design:paramtypes", [CreateContentTypeInput, Object, PubSubEngine]),
|
|
43971
|
+
__metadata("design:returntype", Promise)
|
|
43972
|
+
], ContentTypeResolver.prototype, "CreateContentType", null);
|
|
43973
|
+
__decorate([
|
|
43974
|
+
Mutation(() => ContentType_),
|
|
43975
|
+
__param(0, Arg('input', () => UpdateContentTypeInput)),
|
|
43976
|
+
__param(1, Ctx()),
|
|
43977
|
+
__param(2, PubSub()),
|
|
43978
|
+
__metadata("design:type", Function),
|
|
43979
|
+
__metadata("design:paramtypes", [UpdateContentTypeInput, Object, PubSubEngine]),
|
|
43980
|
+
__metadata("design:returntype", Promise)
|
|
43981
|
+
], ContentTypeResolver.prototype, "UpdateContentType", null);
|
|
43982
|
+
__decorate([
|
|
43983
|
+
Mutation(() => ContentType_),
|
|
43984
|
+
__param(0, Arg('ID', () => String)),
|
|
43985
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
43986
|
+
__param(2, Ctx()),
|
|
43987
|
+
__param(3, PubSub()),
|
|
43988
|
+
__metadata("design:type", Function),
|
|
43989
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
43990
|
+
__metadata("design:returntype", Promise)
|
|
43991
|
+
], ContentTypeResolver.prototype, "DeleteContentType", null);
|
|
43992
|
+
ContentTypeResolver = __decorate([
|
|
43993
|
+
Resolver(ContentType_)
|
|
43994
|
+
], ContentTypeResolver);
|
|
43995
|
+
export { ContentTypeResolver };
|
|
43996
|
+
let ContentTypeAttribute_ = class ContentTypeAttribute_ {
|
|
43997
|
+
ID;
|
|
43998
|
+
ContentTypeID;
|
|
43999
|
+
Name;
|
|
44000
|
+
Prompt;
|
|
44001
|
+
Description;
|
|
44002
|
+
_mj__CreatedAt;
|
|
44003
|
+
_mj__UpdatedAt;
|
|
44004
|
+
};
|
|
44005
|
+
__decorate([
|
|
44006
|
+
Field(),
|
|
44007
|
+
MaxLength(16),
|
|
44008
|
+
__metadata("design:type", String)
|
|
44009
|
+
], ContentTypeAttribute_.prototype, "ID", void 0);
|
|
44010
|
+
__decorate([
|
|
44011
|
+
Field(),
|
|
44012
|
+
MaxLength(16),
|
|
44013
|
+
__metadata("design:type", String)
|
|
44014
|
+
], ContentTypeAttribute_.prototype, "ContentTypeID", void 0);
|
|
44015
|
+
__decorate([
|
|
44016
|
+
Field(),
|
|
44017
|
+
MaxLength(200),
|
|
44018
|
+
__metadata("design:type", String)
|
|
44019
|
+
], ContentTypeAttribute_.prototype, "Name", void 0);
|
|
44020
|
+
__decorate([
|
|
44021
|
+
Field(),
|
|
44022
|
+
__metadata("design:type", String)
|
|
44023
|
+
], ContentTypeAttribute_.prototype, "Prompt", void 0);
|
|
44024
|
+
__decorate([
|
|
44025
|
+
Field({ nullable: true }),
|
|
44026
|
+
__metadata("design:type", String)
|
|
44027
|
+
], ContentTypeAttribute_.prototype, "Description", void 0);
|
|
44028
|
+
__decorate([
|
|
44029
|
+
Field(),
|
|
44030
|
+
MaxLength(10),
|
|
44031
|
+
__metadata("design:type", Date)
|
|
44032
|
+
], ContentTypeAttribute_.prototype, "_mj__CreatedAt", void 0);
|
|
44033
|
+
__decorate([
|
|
44034
|
+
Field(),
|
|
44035
|
+
MaxLength(10),
|
|
44036
|
+
__metadata("design:type", Date)
|
|
44037
|
+
], ContentTypeAttribute_.prototype, "_mj__UpdatedAt", void 0);
|
|
44038
|
+
ContentTypeAttribute_ = __decorate([
|
|
44039
|
+
ObjectType()
|
|
44040
|
+
], ContentTypeAttribute_);
|
|
44041
|
+
export { ContentTypeAttribute_ };
|
|
44042
|
+
let CreateContentTypeAttributeInput = class CreateContentTypeAttributeInput {
|
|
44043
|
+
ContentTypeID;
|
|
44044
|
+
Name;
|
|
44045
|
+
Prompt;
|
|
44046
|
+
Description;
|
|
44047
|
+
};
|
|
44048
|
+
__decorate([
|
|
44049
|
+
Field(),
|
|
44050
|
+
__metadata("design:type", String)
|
|
44051
|
+
], CreateContentTypeAttributeInput.prototype, "ContentTypeID", void 0);
|
|
44052
|
+
__decorate([
|
|
44053
|
+
Field(),
|
|
44054
|
+
__metadata("design:type", String)
|
|
44055
|
+
], CreateContentTypeAttributeInput.prototype, "Name", void 0);
|
|
44056
|
+
__decorate([
|
|
44057
|
+
Field(),
|
|
44058
|
+
__metadata("design:type", String)
|
|
44059
|
+
], CreateContentTypeAttributeInput.prototype, "Prompt", void 0);
|
|
44060
|
+
__decorate([
|
|
44061
|
+
Field({ nullable: true }),
|
|
44062
|
+
__metadata("design:type", String)
|
|
44063
|
+
], CreateContentTypeAttributeInput.prototype, "Description", void 0);
|
|
44064
|
+
CreateContentTypeAttributeInput = __decorate([
|
|
44065
|
+
InputType()
|
|
44066
|
+
], CreateContentTypeAttributeInput);
|
|
44067
|
+
export { CreateContentTypeAttributeInput };
|
|
44068
|
+
let UpdateContentTypeAttributeInput = class UpdateContentTypeAttributeInput {
|
|
44069
|
+
ID;
|
|
44070
|
+
ContentTypeID;
|
|
44071
|
+
Name;
|
|
44072
|
+
Prompt;
|
|
44073
|
+
Description;
|
|
44074
|
+
OldValues___;
|
|
44075
|
+
};
|
|
44076
|
+
__decorate([
|
|
44077
|
+
Field(),
|
|
44078
|
+
__metadata("design:type", String)
|
|
44079
|
+
], UpdateContentTypeAttributeInput.prototype, "ID", void 0);
|
|
44080
|
+
__decorate([
|
|
44081
|
+
Field(),
|
|
44082
|
+
__metadata("design:type", String)
|
|
44083
|
+
], UpdateContentTypeAttributeInput.prototype, "ContentTypeID", void 0);
|
|
44084
|
+
__decorate([
|
|
44085
|
+
Field(),
|
|
44086
|
+
__metadata("design:type", String)
|
|
44087
|
+
], UpdateContentTypeAttributeInput.prototype, "Name", void 0);
|
|
44088
|
+
__decorate([
|
|
44089
|
+
Field(),
|
|
44090
|
+
__metadata("design:type", String)
|
|
44091
|
+
], UpdateContentTypeAttributeInput.prototype, "Prompt", void 0);
|
|
44092
|
+
__decorate([
|
|
44093
|
+
Field({ nullable: true }),
|
|
44094
|
+
__metadata("design:type", String)
|
|
44095
|
+
], UpdateContentTypeAttributeInput.prototype, "Description", void 0);
|
|
44096
|
+
__decorate([
|
|
44097
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
44098
|
+
__metadata("design:type", Array)
|
|
44099
|
+
], UpdateContentTypeAttributeInput.prototype, "OldValues___", void 0);
|
|
44100
|
+
UpdateContentTypeAttributeInput = __decorate([
|
|
44101
|
+
InputType()
|
|
44102
|
+
], UpdateContentTypeAttributeInput);
|
|
44103
|
+
export { UpdateContentTypeAttributeInput };
|
|
44104
|
+
let RunContentTypeAttributeViewResult = class RunContentTypeAttributeViewResult {
|
|
44105
|
+
Results;
|
|
44106
|
+
UserViewRunID;
|
|
44107
|
+
RowCount;
|
|
44108
|
+
TotalRowCount;
|
|
44109
|
+
ExecutionTime;
|
|
44110
|
+
ErrorMessage;
|
|
44111
|
+
Success;
|
|
44112
|
+
};
|
|
44113
|
+
__decorate([
|
|
44114
|
+
Field(() => [ContentTypeAttribute_]),
|
|
44115
|
+
__metadata("design:type", Array)
|
|
44116
|
+
], RunContentTypeAttributeViewResult.prototype, "Results", void 0);
|
|
44117
|
+
__decorate([
|
|
44118
|
+
Field(() => String, { nullable: true }),
|
|
44119
|
+
__metadata("design:type", String)
|
|
44120
|
+
], RunContentTypeAttributeViewResult.prototype, "UserViewRunID", void 0);
|
|
44121
|
+
__decorate([
|
|
44122
|
+
Field(() => Int, { nullable: true }),
|
|
44123
|
+
__metadata("design:type", Number)
|
|
44124
|
+
], RunContentTypeAttributeViewResult.prototype, "RowCount", void 0);
|
|
44125
|
+
__decorate([
|
|
44126
|
+
Field(() => Int, { nullable: true }),
|
|
44127
|
+
__metadata("design:type", Number)
|
|
44128
|
+
], RunContentTypeAttributeViewResult.prototype, "TotalRowCount", void 0);
|
|
44129
|
+
__decorate([
|
|
44130
|
+
Field(() => Int, { nullable: true }),
|
|
44131
|
+
__metadata("design:type", Number)
|
|
44132
|
+
], RunContentTypeAttributeViewResult.prototype, "ExecutionTime", void 0);
|
|
44133
|
+
__decorate([
|
|
44134
|
+
Field({ nullable: true }),
|
|
44135
|
+
__metadata("design:type", String)
|
|
44136
|
+
], RunContentTypeAttributeViewResult.prototype, "ErrorMessage", void 0);
|
|
44137
|
+
__decorate([
|
|
44138
|
+
Field(() => Boolean, { nullable: false }),
|
|
44139
|
+
__metadata("design:type", Boolean)
|
|
44140
|
+
], RunContentTypeAttributeViewResult.prototype, "Success", void 0);
|
|
44141
|
+
RunContentTypeAttributeViewResult = __decorate([
|
|
44142
|
+
ObjectType()
|
|
44143
|
+
], RunContentTypeAttributeViewResult);
|
|
44144
|
+
export { RunContentTypeAttributeViewResult };
|
|
44145
|
+
let ContentTypeAttributeResolver = class ContentTypeAttributeResolver extends ResolverBase {
|
|
44146
|
+
async RunContentTypeAttributeViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
44147
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
44148
|
+
}
|
|
44149
|
+
async RunContentTypeAttributeViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
44150
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
44151
|
+
}
|
|
44152
|
+
async RunContentTypeAttributeDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
44153
|
+
input.EntityName = 'Content Type Attributes';
|
|
44154
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
44155
|
+
}
|
|
44156
|
+
async ContentTypeAttribute(ID, { dataSource, userPayload }, pubSub) {
|
|
44157
|
+
this.CheckUserReadPermissions('Content Type Attributes', userPayload);
|
|
44158
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentTypeAttributes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Type Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
44159
|
+
const result = this.MapFieldNamesToCodeNames('Content Type Attributes', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
44160
|
+
return result;
|
|
44161
|
+
}
|
|
44162
|
+
async CreateContentTypeAttribute(input, { dataSource, userPayload }, pubSub) {
|
|
44163
|
+
return this.CreateRecord('Content Type Attributes', input, dataSource, userPayload, pubSub);
|
|
44164
|
+
}
|
|
44165
|
+
async UpdateContentTypeAttribute(input, { dataSource, userPayload }, pubSub) {
|
|
44166
|
+
return this.UpdateRecord('Content Type Attributes', input, dataSource, userPayload, pubSub);
|
|
44167
|
+
}
|
|
44168
|
+
async DeleteContentTypeAttribute(ID, options, { dataSource, userPayload }, pubSub) {
|
|
44169
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
44170
|
+
return this.DeleteRecord('Content Type Attributes', key, options, dataSource, userPayload, pubSub);
|
|
44171
|
+
}
|
|
44172
|
+
};
|
|
44173
|
+
__decorate([
|
|
44174
|
+
Query(() => RunContentTypeAttributeViewResult),
|
|
44175
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
44176
|
+
__param(1, Ctx()),
|
|
44177
|
+
__param(2, PubSub()),
|
|
44178
|
+
__metadata("design:type", Function),
|
|
44179
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
44180
|
+
__metadata("design:returntype", Promise)
|
|
44181
|
+
], ContentTypeAttributeResolver.prototype, "RunContentTypeAttributeViewByID", null);
|
|
44182
|
+
__decorate([
|
|
44183
|
+
Query(() => RunContentTypeAttributeViewResult),
|
|
44184
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
44185
|
+
__param(1, Ctx()),
|
|
44186
|
+
__param(2, PubSub()),
|
|
44187
|
+
__metadata("design:type", Function),
|
|
44188
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
44189
|
+
__metadata("design:returntype", Promise)
|
|
44190
|
+
], ContentTypeAttributeResolver.prototype, "RunContentTypeAttributeViewByName", null);
|
|
44191
|
+
__decorate([
|
|
44192
|
+
Query(() => RunContentTypeAttributeViewResult),
|
|
44193
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
44194
|
+
__param(1, Ctx()),
|
|
44195
|
+
__param(2, PubSub()),
|
|
44196
|
+
__metadata("design:type", Function),
|
|
44197
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
44198
|
+
__metadata("design:returntype", Promise)
|
|
44199
|
+
], ContentTypeAttributeResolver.prototype, "RunContentTypeAttributeDynamicView", null);
|
|
44200
|
+
__decorate([
|
|
44201
|
+
Query(() => ContentTypeAttribute_, { nullable: true }),
|
|
44202
|
+
__param(0, Arg('ID', () => String)),
|
|
44203
|
+
__param(1, Ctx()),
|
|
44204
|
+
__param(2, PubSub()),
|
|
44205
|
+
__metadata("design:type", Function),
|
|
44206
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
44207
|
+
__metadata("design:returntype", Promise)
|
|
44208
|
+
], ContentTypeAttributeResolver.prototype, "ContentTypeAttribute", null);
|
|
44209
|
+
__decorate([
|
|
44210
|
+
Mutation(() => ContentTypeAttribute_),
|
|
44211
|
+
__param(0, Arg('input', () => CreateContentTypeAttributeInput)),
|
|
44212
|
+
__param(1, Ctx()),
|
|
44213
|
+
__param(2, PubSub()),
|
|
44214
|
+
__metadata("design:type", Function),
|
|
44215
|
+
__metadata("design:paramtypes", [CreateContentTypeAttributeInput, Object, PubSubEngine]),
|
|
44216
|
+
__metadata("design:returntype", Promise)
|
|
44217
|
+
], ContentTypeAttributeResolver.prototype, "CreateContentTypeAttribute", null);
|
|
44218
|
+
__decorate([
|
|
44219
|
+
Mutation(() => ContentTypeAttribute_),
|
|
44220
|
+
__param(0, Arg('input', () => UpdateContentTypeAttributeInput)),
|
|
44221
|
+
__param(1, Ctx()),
|
|
44222
|
+
__param(2, PubSub()),
|
|
44223
|
+
__metadata("design:type", Function),
|
|
44224
|
+
__metadata("design:paramtypes", [UpdateContentTypeAttributeInput, Object, PubSubEngine]),
|
|
44225
|
+
__metadata("design:returntype", Promise)
|
|
44226
|
+
], ContentTypeAttributeResolver.prototype, "UpdateContentTypeAttribute", null);
|
|
44227
|
+
__decorate([
|
|
44228
|
+
Mutation(() => ContentTypeAttribute_),
|
|
44229
|
+
__param(0, Arg('ID', () => String)),
|
|
44230
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
44231
|
+
__param(2, Ctx()),
|
|
44232
|
+
__param(3, PubSub()),
|
|
44233
|
+
__metadata("design:type", Function),
|
|
44234
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
44235
|
+
__metadata("design:returntype", Promise)
|
|
44236
|
+
], ContentTypeAttributeResolver.prototype, "DeleteContentTypeAttribute", null);
|
|
44237
|
+
ContentTypeAttributeResolver = __decorate([
|
|
44238
|
+
Resolver(ContentTypeAttribute_)
|
|
44239
|
+
], ContentTypeAttributeResolver);
|
|
44240
|
+
export { ContentTypeAttributeResolver };
|
|
44241
|
+
let ContentFileType_ = class ContentFileType_ {
|
|
44242
|
+
ID;
|
|
44243
|
+
Name;
|
|
44244
|
+
FileExtension;
|
|
44245
|
+
_mj__CreatedAt;
|
|
44246
|
+
_mj__UpdatedAt;
|
|
44247
|
+
ContentSources_ContentFileTypeIDArray;
|
|
44248
|
+
ContentItems_ContentFileTypeIDArray;
|
|
44249
|
+
};
|
|
44250
|
+
__decorate([
|
|
44251
|
+
Field(),
|
|
44252
|
+
MaxLength(16),
|
|
44253
|
+
__metadata("design:type", String)
|
|
44254
|
+
], ContentFileType_.prototype, "ID", void 0);
|
|
44255
|
+
__decorate([
|
|
44256
|
+
Field(),
|
|
44257
|
+
MaxLength(510),
|
|
44258
|
+
__metadata("design:type", String)
|
|
44259
|
+
], ContentFileType_.prototype, "Name", void 0);
|
|
44260
|
+
__decorate([
|
|
44261
|
+
Field({ nullable: true }),
|
|
44262
|
+
MaxLength(510),
|
|
44263
|
+
__metadata("design:type", String)
|
|
44264
|
+
], ContentFileType_.prototype, "FileExtension", void 0);
|
|
44265
|
+
__decorate([
|
|
44266
|
+
Field(),
|
|
44267
|
+
MaxLength(10),
|
|
44268
|
+
__metadata("design:type", Date)
|
|
44269
|
+
], ContentFileType_.prototype, "_mj__CreatedAt", void 0);
|
|
44270
|
+
__decorate([
|
|
44271
|
+
Field(),
|
|
44272
|
+
MaxLength(10),
|
|
44273
|
+
__metadata("design:type", Date)
|
|
44274
|
+
], ContentFileType_.prototype, "_mj__UpdatedAt", void 0);
|
|
44275
|
+
__decorate([
|
|
44276
|
+
Field(() => [ContentSource_]),
|
|
44277
|
+
__metadata("design:type", Array)
|
|
44278
|
+
], ContentFileType_.prototype, "ContentSources_ContentFileTypeIDArray", void 0);
|
|
44279
|
+
__decorate([
|
|
44280
|
+
Field(() => [ContentItem_]),
|
|
44281
|
+
__metadata("design:type", Array)
|
|
44282
|
+
], ContentFileType_.prototype, "ContentItems_ContentFileTypeIDArray", void 0);
|
|
44283
|
+
ContentFileType_ = __decorate([
|
|
44284
|
+
ObjectType()
|
|
44285
|
+
], ContentFileType_);
|
|
44286
|
+
export { ContentFileType_ };
|
|
44287
|
+
let CreateContentFileTypeInput = class CreateContentFileTypeInput {
|
|
44288
|
+
Name;
|
|
44289
|
+
FileExtension;
|
|
44290
|
+
};
|
|
44291
|
+
__decorate([
|
|
44292
|
+
Field(),
|
|
44293
|
+
__metadata("design:type", String)
|
|
44294
|
+
], CreateContentFileTypeInput.prototype, "Name", void 0);
|
|
44295
|
+
__decorate([
|
|
44296
|
+
Field({ nullable: true }),
|
|
44297
|
+
__metadata("design:type", String)
|
|
44298
|
+
], CreateContentFileTypeInput.prototype, "FileExtension", void 0);
|
|
44299
|
+
CreateContentFileTypeInput = __decorate([
|
|
44300
|
+
InputType()
|
|
44301
|
+
], CreateContentFileTypeInput);
|
|
44302
|
+
export { CreateContentFileTypeInput };
|
|
44303
|
+
let UpdateContentFileTypeInput = class UpdateContentFileTypeInput {
|
|
44304
|
+
ID;
|
|
44305
|
+
Name;
|
|
44306
|
+
FileExtension;
|
|
44307
|
+
OldValues___;
|
|
44308
|
+
};
|
|
44309
|
+
__decorate([
|
|
44310
|
+
Field(),
|
|
44311
|
+
__metadata("design:type", String)
|
|
44312
|
+
], UpdateContentFileTypeInput.prototype, "ID", void 0);
|
|
44313
|
+
__decorate([
|
|
44314
|
+
Field(),
|
|
44315
|
+
__metadata("design:type", String)
|
|
44316
|
+
], UpdateContentFileTypeInput.prototype, "Name", void 0);
|
|
44317
|
+
__decorate([
|
|
44318
|
+
Field({ nullable: true }),
|
|
44319
|
+
__metadata("design:type", String)
|
|
44320
|
+
], UpdateContentFileTypeInput.prototype, "FileExtension", void 0);
|
|
44321
|
+
__decorate([
|
|
44322
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
44323
|
+
__metadata("design:type", Array)
|
|
44324
|
+
], UpdateContentFileTypeInput.prototype, "OldValues___", void 0);
|
|
44325
|
+
UpdateContentFileTypeInput = __decorate([
|
|
44326
|
+
InputType()
|
|
44327
|
+
], UpdateContentFileTypeInput);
|
|
44328
|
+
export { UpdateContentFileTypeInput };
|
|
44329
|
+
let RunContentFileTypeViewResult = class RunContentFileTypeViewResult {
|
|
44330
|
+
Results;
|
|
44331
|
+
UserViewRunID;
|
|
44332
|
+
RowCount;
|
|
44333
|
+
TotalRowCount;
|
|
44334
|
+
ExecutionTime;
|
|
44335
|
+
ErrorMessage;
|
|
44336
|
+
Success;
|
|
44337
|
+
};
|
|
44338
|
+
__decorate([
|
|
44339
|
+
Field(() => [ContentFileType_]),
|
|
44340
|
+
__metadata("design:type", Array)
|
|
44341
|
+
], RunContentFileTypeViewResult.prototype, "Results", void 0);
|
|
44342
|
+
__decorate([
|
|
44343
|
+
Field(() => String, { nullable: true }),
|
|
44344
|
+
__metadata("design:type", String)
|
|
44345
|
+
], RunContentFileTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
44346
|
+
__decorate([
|
|
44347
|
+
Field(() => Int, { nullable: true }),
|
|
44348
|
+
__metadata("design:type", Number)
|
|
44349
|
+
], RunContentFileTypeViewResult.prototype, "RowCount", void 0);
|
|
44350
|
+
__decorate([
|
|
44351
|
+
Field(() => Int, { nullable: true }),
|
|
44352
|
+
__metadata("design:type", Number)
|
|
44353
|
+
], RunContentFileTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
44354
|
+
__decorate([
|
|
44355
|
+
Field(() => Int, { nullable: true }),
|
|
44356
|
+
__metadata("design:type", Number)
|
|
44357
|
+
], RunContentFileTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
44358
|
+
__decorate([
|
|
44359
|
+
Field({ nullable: true }),
|
|
44360
|
+
__metadata("design:type", String)
|
|
44361
|
+
], RunContentFileTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
44362
|
+
__decorate([
|
|
44363
|
+
Field(() => Boolean, { nullable: false }),
|
|
44364
|
+
__metadata("design:type", Boolean)
|
|
44365
|
+
], RunContentFileTypeViewResult.prototype, "Success", void 0);
|
|
44366
|
+
RunContentFileTypeViewResult = __decorate([
|
|
44367
|
+
ObjectType()
|
|
44368
|
+
], RunContentFileTypeViewResult);
|
|
44369
|
+
export { RunContentFileTypeViewResult };
|
|
44370
|
+
let ContentFileTypeResolver = class ContentFileTypeResolver extends ResolverBase {
|
|
44371
|
+
async RunContentFileTypeViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
44372
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
44373
|
+
}
|
|
44374
|
+
async RunContentFileTypeViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
44375
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
44376
|
+
}
|
|
44377
|
+
async RunContentFileTypeDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
44378
|
+
input.EntityName = 'Content File Types';
|
|
44379
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
44380
|
+
}
|
|
44381
|
+
async ContentFileType(ID, { dataSource, userPayload }, pubSub) {
|
|
44382
|
+
this.CheckUserReadPermissions('Content File Types', userPayload);
|
|
44383
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentFileTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content File Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
44384
|
+
const result = this.MapFieldNamesToCodeNames('Content File Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
44385
|
+
return result;
|
|
44386
|
+
}
|
|
44387
|
+
async ContentSources_ContentFileTypeIDArray(contentfiletype_, { dataSource, userPayload }, pubSub) {
|
|
44388
|
+
this.CheckUserReadPermissions('Content Sources', userPayload);
|
|
44389
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentSources] WHERE [ContentFileTypeID]='${contentfiletype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
44390
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Sources', await dataSource.query(sSQL));
|
|
44391
|
+
return result;
|
|
44392
|
+
}
|
|
44393
|
+
async ContentItems_ContentFileTypeIDArray(contentfiletype_, { dataSource, userPayload }, pubSub) {
|
|
44394
|
+
this.CheckUserReadPermissions('Content Items', userPayload);
|
|
44395
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItems] WHERE [ContentFileTypeID]='${contentfiletype_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
44396
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Items', await dataSource.query(sSQL));
|
|
44397
|
+
return result;
|
|
44398
|
+
}
|
|
44399
|
+
async CreateContentFileType(input, { dataSource, userPayload }, pubSub) {
|
|
44400
|
+
return this.CreateRecord('Content File Types', input, dataSource, userPayload, pubSub);
|
|
44401
|
+
}
|
|
44402
|
+
async UpdateContentFileType(input, { dataSource, userPayload }, pubSub) {
|
|
44403
|
+
return this.UpdateRecord('Content File Types', input, dataSource, userPayload, pubSub);
|
|
44404
|
+
}
|
|
44405
|
+
async DeleteContentFileType(ID, options, { dataSource, userPayload }, pubSub) {
|
|
44406
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
44407
|
+
return this.DeleteRecord('Content File Types', key, options, dataSource, userPayload, pubSub);
|
|
44408
|
+
}
|
|
44409
|
+
};
|
|
44410
|
+
__decorate([
|
|
44411
|
+
Query(() => RunContentFileTypeViewResult),
|
|
44412
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
44413
|
+
__param(1, Ctx()),
|
|
44414
|
+
__param(2, PubSub()),
|
|
44415
|
+
__metadata("design:type", Function),
|
|
44416
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
44417
|
+
__metadata("design:returntype", Promise)
|
|
44418
|
+
], ContentFileTypeResolver.prototype, "RunContentFileTypeViewByID", null);
|
|
44419
|
+
__decorate([
|
|
44420
|
+
Query(() => RunContentFileTypeViewResult),
|
|
44421
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
44422
|
+
__param(1, Ctx()),
|
|
44423
|
+
__param(2, PubSub()),
|
|
44424
|
+
__metadata("design:type", Function),
|
|
44425
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
44426
|
+
__metadata("design:returntype", Promise)
|
|
44427
|
+
], ContentFileTypeResolver.prototype, "RunContentFileTypeViewByName", null);
|
|
44428
|
+
__decorate([
|
|
44429
|
+
Query(() => RunContentFileTypeViewResult),
|
|
44430
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
44431
|
+
__param(1, Ctx()),
|
|
44432
|
+
__param(2, PubSub()),
|
|
44433
|
+
__metadata("design:type", Function),
|
|
44434
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
44435
|
+
__metadata("design:returntype", Promise)
|
|
44436
|
+
], ContentFileTypeResolver.prototype, "RunContentFileTypeDynamicView", null);
|
|
44437
|
+
__decorate([
|
|
44438
|
+
Query(() => ContentFileType_, { nullable: true }),
|
|
44439
|
+
__param(0, Arg('ID', () => String)),
|
|
44440
|
+
__param(1, Ctx()),
|
|
44441
|
+
__param(2, PubSub()),
|
|
44442
|
+
__metadata("design:type", Function),
|
|
44443
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
44444
|
+
__metadata("design:returntype", Promise)
|
|
44445
|
+
], ContentFileTypeResolver.prototype, "ContentFileType", null);
|
|
44446
|
+
__decorate([
|
|
44447
|
+
FieldResolver(() => [ContentSource_]),
|
|
44448
|
+
__param(0, Root()),
|
|
44449
|
+
__param(1, Ctx()),
|
|
44450
|
+
__param(2, PubSub()),
|
|
44451
|
+
__metadata("design:type", Function),
|
|
44452
|
+
__metadata("design:paramtypes", [ContentFileType_, Object, PubSubEngine]),
|
|
44453
|
+
__metadata("design:returntype", Promise)
|
|
44454
|
+
], ContentFileTypeResolver.prototype, "ContentSources_ContentFileTypeIDArray", null);
|
|
44455
|
+
__decorate([
|
|
44456
|
+
FieldResolver(() => [ContentItem_]),
|
|
44457
|
+
__param(0, Root()),
|
|
44458
|
+
__param(1, Ctx()),
|
|
44459
|
+
__param(2, PubSub()),
|
|
44460
|
+
__metadata("design:type", Function),
|
|
44461
|
+
__metadata("design:paramtypes", [ContentFileType_, Object, PubSubEngine]),
|
|
44462
|
+
__metadata("design:returntype", Promise)
|
|
44463
|
+
], ContentFileTypeResolver.prototype, "ContentItems_ContentFileTypeIDArray", null);
|
|
44464
|
+
__decorate([
|
|
44465
|
+
Mutation(() => ContentFileType_),
|
|
44466
|
+
__param(0, Arg('input', () => CreateContentFileTypeInput)),
|
|
44467
|
+
__param(1, Ctx()),
|
|
44468
|
+
__param(2, PubSub()),
|
|
44469
|
+
__metadata("design:type", Function),
|
|
44470
|
+
__metadata("design:paramtypes", [CreateContentFileTypeInput, Object, PubSubEngine]),
|
|
44471
|
+
__metadata("design:returntype", Promise)
|
|
44472
|
+
], ContentFileTypeResolver.prototype, "CreateContentFileType", null);
|
|
44473
|
+
__decorate([
|
|
44474
|
+
Mutation(() => ContentFileType_),
|
|
44475
|
+
__param(0, Arg('input', () => UpdateContentFileTypeInput)),
|
|
44476
|
+
__param(1, Ctx()),
|
|
44477
|
+
__param(2, PubSub()),
|
|
44478
|
+
__metadata("design:type", Function),
|
|
44479
|
+
__metadata("design:paramtypes", [UpdateContentFileTypeInput, Object, PubSubEngine]),
|
|
44480
|
+
__metadata("design:returntype", Promise)
|
|
44481
|
+
], ContentFileTypeResolver.prototype, "UpdateContentFileType", null);
|
|
44482
|
+
__decorate([
|
|
44483
|
+
Mutation(() => ContentFileType_),
|
|
44484
|
+
__param(0, Arg('ID', () => String)),
|
|
44485
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
44486
|
+
__param(2, Ctx()),
|
|
44487
|
+
__param(3, PubSub()),
|
|
44488
|
+
__metadata("design:type", Function),
|
|
44489
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
44490
|
+
__metadata("design:returntype", Promise)
|
|
44491
|
+
], ContentFileTypeResolver.prototype, "DeleteContentFileType", null);
|
|
44492
|
+
ContentFileTypeResolver = __decorate([
|
|
44493
|
+
Resolver(ContentFileType_)
|
|
44494
|
+
], ContentFileTypeResolver);
|
|
44495
|
+
export { ContentFileTypeResolver };
|
|
44496
|
+
let ContentItem_ = class ContentItem_ {
|
|
44497
|
+
ID;
|
|
44498
|
+
ContentSourceID;
|
|
44499
|
+
Name;
|
|
44500
|
+
Description;
|
|
44501
|
+
ContentTypeID;
|
|
44502
|
+
ContentSourceTypeID;
|
|
44503
|
+
ContentFileTypeID;
|
|
44504
|
+
Checksum;
|
|
44505
|
+
URL;
|
|
44506
|
+
Text;
|
|
44507
|
+
_mj__CreatedAt;
|
|
44508
|
+
_mj__UpdatedAt;
|
|
44509
|
+
ContentSource;
|
|
44510
|
+
ContentType;
|
|
44511
|
+
ContentSourceType;
|
|
44512
|
+
ContentFileType;
|
|
44513
|
+
ContentItemAttributes_ContentItemIDArray;
|
|
44514
|
+
ContentItemTags_ItemIDArray;
|
|
44515
|
+
};
|
|
44516
|
+
__decorate([
|
|
44517
|
+
Field(),
|
|
44518
|
+
MaxLength(16),
|
|
44519
|
+
__metadata("design:type", String)
|
|
44520
|
+
], ContentItem_.prototype, "ID", void 0);
|
|
44521
|
+
__decorate([
|
|
44522
|
+
Field(),
|
|
44523
|
+
MaxLength(16),
|
|
44524
|
+
__metadata("design:type", String)
|
|
44525
|
+
], ContentItem_.prototype, "ContentSourceID", void 0);
|
|
44526
|
+
__decorate([
|
|
44527
|
+
Field({ nullable: true }),
|
|
44528
|
+
MaxLength(500),
|
|
44529
|
+
__metadata("design:type", String)
|
|
44530
|
+
], ContentItem_.prototype, "Name", void 0);
|
|
44531
|
+
__decorate([
|
|
44532
|
+
Field({ nullable: true }),
|
|
44533
|
+
__metadata("design:type", String)
|
|
44534
|
+
], ContentItem_.prototype, "Description", void 0);
|
|
44535
|
+
__decorate([
|
|
44536
|
+
Field(),
|
|
44537
|
+
MaxLength(16),
|
|
44538
|
+
__metadata("design:type", String)
|
|
44539
|
+
], ContentItem_.prototype, "ContentTypeID", void 0);
|
|
44540
|
+
__decorate([
|
|
44541
|
+
Field(),
|
|
44542
|
+
MaxLength(16),
|
|
44543
|
+
__metadata("design:type", String)
|
|
44544
|
+
], ContentItem_.prototype, "ContentSourceTypeID", void 0);
|
|
44545
|
+
__decorate([
|
|
44546
|
+
Field(),
|
|
44547
|
+
MaxLength(16),
|
|
44548
|
+
__metadata("design:type", String)
|
|
44549
|
+
], ContentItem_.prototype, "ContentFileTypeID", void 0);
|
|
44550
|
+
__decorate([
|
|
44551
|
+
Field({ nullable: true }),
|
|
44552
|
+
MaxLength(200),
|
|
44553
|
+
__metadata("design:type", String)
|
|
44554
|
+
], ContentItem_.prototype, "Checksum", void 0);
|
|
44555
|
+
__decorate([
|
|
44556
|
+
Field(),
|
|
44557
|
+
MaxLength(4000),
|
|
44558
|
+
__metadata("design:type", String)
|
|
44559
|
+
], ContentItem_.prototype, "URL", void 0);
|
|
44560
|
+
__decorate([
|
|
44561
|
+
Field({ nullable: true }),
|
|
44562
|
+
__metadata("design:type", String)
|
|
44563
|
+
], ContentItem_.prototype, "Text", void 0);
|
|
44564
|
+
__decorate([
|
|
44565
|
+
Field(),
|
|
44566
|
+
MaxLength(10),
|
|
44567
|
+
__metadata("design:type", Date)
|
|
44568
|
+
], ContentItem_.prototype, "_mj__CreatedAt", void 0);
|
|
44569
|
+
__decorate([
|
|
44570
|
+
Field(),
|
|
44571
|
+
MaxLength(10),
|
|
44572
|
+
__metadata("design:type", Date)
|
|
44573
|
+
], ContentItem_.prototype, "_mj__UpdatedAt", void 0);
|
|
44574
|
+
__decorate([
|
|
44575
|
+
Field({ nullable: true }),
|
|
44576
|
+
MaxLength(510),
|
|
44577
|
+
__metadata("design:type", String)
|
|
44578
|
+
], ContentItem_.prototype, "ContentSource", void 0);
|
|
44579
|
+
__decorate([
|
|
44580
|
+
Field(),
|
|
44581
|
+
MaxLength(510),
|
|
44582
|
+
__metadata("design:type", String)
|
|
44583
|
+
], ContentItem_.prototype, "ContentType", void 0);
|
|
44584
|
+
__decorate([
|
|
44585
|
+
Field(),
|
|
44586
|
+
MaxLength(510),
|
|
44587
|
+
__metadata("design:type", String)
|
|
44588
|
+
], ContentItem_.prototype, "ContentSourceType", void 0);
|
|
44589
|
+
__decorate([
|
|
44590
|
+
Field(),
|
|
44591
|
+
MaxLength(510),
|
|
44592
|
+
__metadata("design:type", String)
|
|
44593
|
+
], ContentItem_.prototype, "ContentFileType", void 0);
|
|
44594
|
+
__decorate([
|
|
44595
|
+
Field(() => [ContentItemAttribute_]),
|
|
44596
|
+
__metadata("design:type", Array)
|
|
44597
|
+
], ContentItem_.prototype, "ContentItemAttributes_ContentItemIDArray", void 0);
|
|
44598
|
+
__decorate([
|
|
44599
|
+
Field(() => [ContentItemTag_]),
|
|
44600
|
+
__metadata("design:type", Array)
|
|
44601
|
+
], ContentItem_.prototype, "ContentItemTags_ItemIDArray", void 0);
|
|
44602
|
+
ContentItem_ = __decorate([
|
|
44603
|
+
ObjectType()
|
|
44604
|
+
], ContentItem_);
|
|
44605
|
+
export { ContentItem_ };
|
|
44606
|
+
let CreateContentItemInput = class CreateContentItemInput {
|
|
44607
|
+
ContentSourceID;
|
|
44608
|
+
Name;
|
|
44609
|
+
Description;
|
|
44610
|
+
ContentTypeID;
|
|
44611
|
+
ContentSourceTypeID;
|
|
44612
|
+
ContentFileTypeID;
|
|
44613
|
+
Checksum;
|
|
44614
|
+
URL;
|
|
44615
|
+
Text;
|
|
44616
|
+
};
|
|
44617
|
+
__decorate([
|
|
44618
|
+
Field(),
|
|
44619
|
+
__metadata("design:type", String)
|
|
44620
|
+
], CreateContentItemInput.prototype, "ContentSourceID", void 0);
|
|
44621
|
+
__decorate([
|
|
44622
|
+
Field({ nullable: true }),
|
|
44623
|
+
__metadata("design:type", String)
|
|
44624
|
+
], CreateContentItemInput.prototype, "Name", void 0);
|
|
44625
|
+
__decorate([
|
|
44626
|
+
Field({ nullable: true }),
|
|
44627
|
+
__metadata("design:type", String)
|
|
44628
|
+
], CreateContentItemInput.prototype, "Description", void 0);
|
|
44629
|
+
__decorate([
|
|
44630
|
+
Field(),
|
|
44631
|
+
__metadata("design:type", String)
|
|
44632
|
+
], CreateContentItemInput.prototype, "ContentTypeID", void 0);
|
|
44633
|
+
__decorate([
|
|
44634
|
+
Field(),
|
|
44635
|
+
__metadata("design:type", String)
|
|
44636
|
+
], CreateContentItemInput.prototype, "ContentSourceTypeID", void 0);
|
|
44637
|
+
__decorate([
|
|
44638
|
+
Field(),
|
|
44639
|
+
__metadata("design:type", String)
|
|
44640
|
+
], CreateContentItemInput.prototype, "ContentFileTypeID", void 0);
|
|
44641
|
+
__decorate([
|
|
44642
|
+
Field({ nullable: true }),
|
|
44643
|
+
__metadata("design:type", String)
|
|
44644
|
+
], CreateContentItemInput.prototype, "Checksum", void 0);
|
|
44645
|
+
__decorate([
|
|
44646
|
+
Field(),
|
|
44647
|
+
__metadata("design:type", String)
|
|
44648
|
+
], CreateContentItemInput.prototype, "URL", void 0);
|
|
44649
|
+
__decorate([
|
|
44650
|
+
Field({ nullable: true }),
|
|
44651
|
+
__metadata("design:type", String)
|
|
44652
|
+
], CreateContentItemInput.prototype, "Text", void 0);
|
|
44653
|
+
CreateContentItemInput = __decorate([
|
|
44654
|
+
InputType()
|
|
44655
|
+
], CreateContentItemInput);
|
|
44656
|
+
export { CreateContentItemInput };
|
|
44657
|
+
let UpdateContentItemInput = class UpdateContentItemInput {
|
|
44658
|
+
ID;
|
|
44659
|
+
ContentSourceID;
|
|
44660
|
+
Name;
|
|
44661
|
+
Description;
|
|
44662
|
+
ContentTypeID;
|
|
44663
|
+
ContentSourceTypeID;
|
|
44664
|
+
ContentFileTypeID;
|
|
44665
|
+
Checksum;
|
|
44666
|
+
URL;
|
|
44667
|
+
Text;
|
|
44668
|
+
OldValues___;
|
|
44669
|
+
};
|
|
44670
|
+
__decorate([
|
|
44671
|
+
Field(),
|
|
44672
|
+
__metadata("design:type", String)
|
|
44673
|
+
], UpdateContentItemInput.prototype, "ID", void 0);
|
|
44674
|
+
__decorate([
|
|
44675
|
+
Field(),
|
|
44676
|
+
__metadata("design:type", String)
|
|
44677
|
+
], UpdateContentItemInput.prototype, "ContentSourceID", void 0);
|
|
44678
|
+
__decorate([
|
|
44679
|
+
Field({ nullable: true }),
|
|
44680
|
+
__metadata("design:type", String)
|
|
44681
|
+
], UpdateContentItemInput.prototype, "Name", void 0);
|
|
44682
|
+
__decorate([
|
|
44683
|
+
Field({ nullable: true }),
|
|
44684
|
+
__metadata("design:type", String)
|
|
44685
|
+
], UpdateContentItemInput.prototype, "Description", void 0);
|
|
44686
|
+
__decorate([
|
|
44687
|
+
Field(),
|
|
44688
|
+
__metadata("design:type", String)
|
|
44689
|
+
], UpdateContentItemInput.prototype, "ContentTypeID", void 0);
|
|
44690
|
+
__decorate([
|
|
44691
|
+
Field(),
|
|
44692
|
+
__metadata("design:type", String)
|
|
44693
|
+
], UpdateContentItemInput.prototype, "ContentSourceTypeID", void 0);
|
|
44694
|
+
__decorate([
|
|
44695
|
+
Field(),
|
|
44696
|
+
__metadata("design:type", String)
|
|
44697
|
+
], UpdateContentItemInput.prototype, "ContentFileTypeID", void 0);
|
|
44698
|
+
__decorate([
|
|
44699
|
+
Field({ nullable: true }),
|
|
44700
|
+
__metadata("design:type", String)
|
|
44701
|
+
], UpdateContentItemInput.prototype, "Checksum", void 0);
|
|
44702
|
+
__decorate([
|
|
44703
|
+
Field(),
|
|
44704
|
+
__metadata("design:type", String)
|
|
44705
|
+
], UpdateContentItemInput.prototype, "URL", void 0);
|
|
44706
|
+
__decorate([
|
|
44707
|
+
Field({ nullable: true }),
|
|
44708
|
+
__metadata("design:type", String)
|
|
44709
|
+
], UpdateContentItemInput.prototype, "Text", void 0);
|
|
44710
|
+
__decorate([
|
|
44711
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
44712
|
+
__metadata("design:type", Array)
|
|
44713
|
+
], UpdateContentItemInput.prototype, "OldValues___", void 0);
|
|
44714
|
+
UpdateContentItemInput = __decorate([
|
|
44715
|
+
InputType()
|
|
44716
|
+
], UpdateContentItemInput);
|
|
44717
|
+
export { UpdateContentItemInput };
|
|
44718
|
+
let RunContentItemViewResult = class RunContentItemViewResult {
|
|
44719
|
+
Results;
|
|
44720
|
+
UserViewRunID;
|
|
44721
|
+
RowCount;
|
|
44722
|
+
TotalRowCount;
|
|
44723
|
+
ExecutionTime;
|
|
44724
|
+
ErrorMessage;
|
|
44725
|
+
Success;
|
|
44726
|
+
};
|
|
44727
|
+
__decorate([
|
|
44728
|
+
Field(() => [ContentItem_]),
|
|
44729
|
+
__metadata("design:type", Array)
|
|
44730
|
+
], RunContentItemViewResult.prototype, "Results", void 0);
|
|
44731
|
+
__decorate([
|
|
44732
|
+
Field(() => String, { nullable: true }),
|
|
44733
|
+
__metadata("design:type", String)
|
|
44734
|
+
], RunContentItemViewResult.prototype, "UserViewRunID", void 0);
|
|
44735
|
+
__decorate([
|
|
44736
|
+
Field(() => Int, { nullable: true }),
|
|
44737
|
+
__metadata("design:type", Number)
|
|
44738
|
+
], RunContentItemViewResult.prototype, "RowCount", void 0);
|
|
44739
|
+
__decorate([
|
|
44740
|
+
Field(() => Int, { nullable: true }),
|
|
44741
|
+
__metadata("design:type", Number)
|
|
44742
|
+
], RunContentItemViewResult.prototype, "TotalRowCount", void 0);
|
|
44743
|
+
__decorate([
|
|
44744
|
+
Field(() => Int, { nullable: true }),
|
|
44745
|
+
__metadata("design:type", Number)
|
|
44746
|
+
], RunContentItemViewResult.prototype, "ExecutionTime", void 0);
|
|
44747
|
+
__decorate([
|
|
44748
|
+
Field({ nullable: true }),
|
|
44749
|
+
__metadata("design:type", String)
|
|
44750
|
+
], RunContentItemViewResult.prototype, "ErrorMessage", void 0);
|
|
44751
|
+
__decorate([
|
|
44752
|
+
Field(() => Boolean, { nullable: false }),
|
|
44753
|
+
__metadata("design:type", Boolean)
|
|
44754
|
+
], RunContentItemViewResult.prototype, "Success", void 0);
|
|
44755
|
+
RunContentItemViewResult = __decorate([
|
|
44756
|
+
ObjectType()
|
|
44757
|
+
], RunContentItemViewResult);
|
|
44758
|
+
export { RunContentItemViewResult };
|
|
44759
|
+
let ContentItemResolver = class ContentItemResolver extends ResolverBase {
|
|
44760
|
+
async RunContentItemViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
44761
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
44762
|
+
}
|
|
44763
|
+
async RunContentItemViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
44764
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
44765
|
+
}
|
|
44766
|
+
async RunContentItemDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
44767
|
+
input.EntityName = 'Content Items';
|
|
44768
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
44769
|
+
}
|
|
44770
|
+
async ContentItem(ID, { dataSource, userPayload }, pubSub) {
|
|
44771
|
+
this.CheckUserReadPermissions('Content Items', userPayload);
|
|
44772
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItems] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
44773
|
+
const result = this.MapFieldNamesToCodeNames('Content Items', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
44774
|
+
return result;
|
|
44775
|
+
}
|
|
44776
|
+
async ContentItemAttributes_ContentItemIDArray(contentitem_, { dataSource, userPayload }, pubSub) {
|
|
44777
|
+
this.CheckUserReadPermissions('Content Item Attributes', userPayload);
|
|
44778
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItemAttributes] WHERE [ContentItemID]='${contentitem_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Item Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
44779
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Item Attributes', await dataSource.query(sSQL));
|
|
44780
|
+
return result;
|
|
44781
|
+
}
|
|
44782
|
+
async ContentItemTags_ItemIDArray(contentitem_, { dataSource, userPayload }, pubSub) {
|
|
44783
|
+
this.CheckUserReadPermissions('Content Item Tags', userPayload);
|
|
44784
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItemTags] WHERE [ItemID]='${contentitem_.ID}' ` + this.getRowLevelSecurityWhereClause('Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
44785
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Content Item Tags', await dataSource.query(sSQL));
|
|
44786
|
+
return result;
|
|
44787
|
+
}
|
|
44788
|
+
async CreateContentItem(input, { dataSource, userPayload }, pubSub) {
|
|
44789
|
+
return this.CreateRecord('Content Items', input, dataSource, userPayload, pubSub);
|
|
44790
|
+
}
|
|
44791
|
+
async UpdateContentItem(input, { dataSource, userPayload }, pubSub) {
|
|
44792
|
+
return this.UpdateRecord('Content Items', input, dataSource, userPayload, pubSub);
|
|
44793
|
+
}
|
|
44794
|
+
async DeleteContentItem(ID, options, { dataSource, userPayload }, pubSub) {
|
|
44795
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
44796
|
+
return this.DeleteRecord('Content Items', key, options, dataSource, userPayload, pubSub);
|
|
44797
|
+
}
|
|
44798
|
+
};
|
|
44799
|
+
__decorate([
|
|
44800
|
+
Query(() => RunContentItemViewResult),
|
|
44801
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
44802
|
+
__param(1, Ctx()),
|
|
44803
|
+
__param(2, PubSub()),
|
|
44804
|
+
__metadata("design:type", Function),
|
|
44805
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
44806
|
+
__metadata("design:returntype", Promise)
|
|
44807
|
+
], ContentItemResolver.prototype, "RunContentItemViewByID", null);
|
|
44808
|
+
__decorate([
|
|
44809
|
+
Query(() => RunContentItemViewResult),
|
|
44810
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
44811
|
+
__param(1, Ctx()),
|
|
44812
|
+
__param(2, PubSub()),
|
|
44813
|
+
__metadata("design:type", Function),
|
|
44814
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
44815
|
+
__metadata("design:returntype", Promise)
|
|
44816
|
+
], ContentItemResolver.prototype, "RunContentItemViewByName", null);
|
|
44817
|
+
__decorate([
|
|
44818
|
+
Query(() => RunContentItemViewResult),
|
|
44819
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
44820
|
+
__param(1, Ctx()),
|
|
44821
|
+
__param(2, PubSub()),
|
|
44822
|
+
__metadata("design:type", Function),
|
|
44823
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
44824
|
+
__metadata("design:returntype", Promise)
|
|
44825
|
+
], ContentItemResolver.prototype, "RunContentItemDynamicView", null);
|
|
44826
|
+
__decorate([
|
|
44827
|
+
Query(() => ContentItem_, { nullable: true }),
|
|
44828
|
+
__param(0, Arg('ID', () => String)),
|
|
44829
|
+
__param(1, Ctx()),
|
|
44830
|
+
__param(2, PubSub()),
|
|
44831
|
+
__metadata("design:type", Function),
|
|
44832
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
44833
|
+
__metadata("design:returntype", Promise)
|
|
44834
|
+
], ContentItemResolver.prototype, "ContentItem", null);
|
|
44835
|
+
__decorate([
|
|
44836
|
+
FieldResolver(() => [ContentItemAttribute_]),
|
|
44837
|
+
__param(0, Root()),
|
|
44838
|
+
__param(1, Ctx()),
|
|
44839
|
+
__param(2, PubSub()),
|
|
44840
|
+
__metadata("design:type", Function),
|
|
44841
|
+
__metadata("design:paramtypes", [ContentItem_, Object, PubSubEngine]),
|
|
44842
|
+
__metadata("design:returntype", Promise)
|
|
44843
|
+
], ContentItemResolver.prototype, "ContentItemAttributes_ContentItemIDArray", null);
|
|
44844
|
+
__decorate([
|
|
44845
|
+
FieldResolver(() => [ContentItemTag_]),
|
|
44846
|
+
__param(0, Root()),
|
|
44847
|
+
__param(1, Ctx()),
|
|
44848
|
+
__param(2, PubSub()),
|
|
44849
|
+
__metadata("design:type", Function),
|
|
44850
|
+
__metadata("design:paramtypes", [ContentItem_, Object, PubSubEngine]),
|
|
44851
|
+
__metadata("design:returntype", Promise)
|
|
44852
|
+
], ContentItemResolver.prototype, "ContentItemTags_ItemIDArray", null);
|
|
44853
|
+
__decorate([
|
|
44854
|
+
Mutation(() => ContentItem_),
|
|
44855
|
+
__param(0, Arg('input', () => CreateContentItemInput)),
|
|
44856
|
+
__param(1, Ctx()),
|
|
44857
|
+
__param(2, PubSub()),
|
|
44858
|
+
__metadata("design:type", Function),
|
|
44859
|
+
__metadata("design:paramtypes", [CreateContentItemInput, Object, PubSubEngine]),
|
|
44860
|
+
__metadata("design:returntype", Promise)
|
|
44861
|
+
], ContentItemResolver.prototype, "CreateContentItem", null);
|
|
44862
|
+
__decorate([
|
|
44863
|
+
Mutation(() => ContentItem_),
|
|
44864
|
+
__param(0, Arg('input', () => UpdateContentItemInput)),
|
|
44865
|
+
__param(1, Ctx()),
|
|
44866
|
+
__param(2, PubSub()),
|
|
44867
|
+
__metadata("design:type", Function),
|
|
44868
|
+
__metadata("design:paramtypes", [UpdateContentItemInput, Object, PubSubEngine]),
|
|
44869
|
+
__metadata("design:returntype", Promise)
|
|
44870
|
+
], ContentItemResolver.prototype, "UpdateContentItem", null);
|
|
44871
|
+
__decorate([
|
|
44872
|
+
Mutation(() => ContentItem_),
|
|
44873
|
+
__param(0, Arg('ID', () => String)),
|
|
44874
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
44875
|
+
__param(2, Ctx()),
|
|
44876
|
+
__param(3, PubSub()),
|
|
44877
|
+
__metadata("design:type", Function),
|
|
44878
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
44879
|
+
__metadata("design:returntype", Promise)
|
|
44880
|
+
], ContentItemResolver.prototype, "DeleteContentItem", null);
|
|
44881
|
+
ContentItemResolver = __decorate([
|
|
44882
|
+
Resolver(ContentItem_)
|
|
44883
|
+
], ContentItemResolver);
|
|
44884
|
+
export { ContentItemResolver };
|
|
44885
|
+
let ContentItemAttribute_ = class ContentItemAttribute_ {
|
|
44886
|
+
ID;
|
|
44887
|
+
ContentItemID;
|
|
44888
|
+
Name;
|
|
44889
|
+
Value;
|
|
44890
|
+
_mj__CreatedAt;
|
|
44891
|
+
_mj__UpdatedAt;
|
|
44892
|
+
ContentItem;
|
|
44893
|
+
};
|
|
44894
|
+
__decorate([
|
|
44895
|
+
Field(),
|
|
44896
|
+
MaxLength(16),
|
|
44897
|
+
__metadata("design:type", String)
|
|
44898
|
+
], ContentItemAttribute_.prototype, "ID", void 0);
|
|
44899
|
+
__decorate([
|
|
44900
|
+
Field(),
|
|
44901
|
+
MaxLength(16),
|
|
44902
|
+
__metadata("design:type", String)
|
|
44903
|
+
], ContentItemAttribute_.prototype, "ContentItemID", void 0);
|
|
44904
|
+
__decorate([
|
|
44905
|
+
Field(),
|
|
44906
|
+
MaxLength(200),
|
|
44907
|
+
__metadata("design:type", String)
|
|
44908
|
+
], ContentItemAttribute_.prototype, "Name", void 0);
|
|
44909
|
+
__decorate([
|
|
44910
|
+
Field(),
|
|
44911
|
+
__metadata("design:type", String)
|
|
44912
|
+
], ContentItemAttribute_.prototype, "Value", void 0);
|
|
44913
|
+
__decorate([
|
|
44914
|
+
Field(),
|
|
44915
|
+
MaxLength(10),
|
|
44916
|
+
__metadata("design:type", Date)
|
|
44917
|
+
], ContentItemAttribute_.prototype, "_mj__CreatedAt", void 0);
|
|
44918
|
+
__decorate([
|
|
44919
|
+
Field(),
|
|
44920
|
+
MaxLength(10),
|
|
44921
|
+
__metadata("design:type", Date)
|
|
44922
|
+
], ContentItemAttribute_.prototype, "_mj__UpdatedAt", void 0);
|
|
44923
|
+
__decorate([
|
|
44924
|
+
Field({ nullable: true }),
|
|
44925
|
+
MaxLength(500),
|
|
44926
|
+
__metadata("design:type", String)
|
|
44927
|
+
], ContentItemAttribute_.prototype, "ContentItem", void 0);
|
|
44928
|
+
ContentItemAttribute_ = __decorate([
|
|
44929
|
+
ObjectType()
|
|
44930
|
+
], ContentItemAttribute_);
|
|
44931
|
+
export { ContentItemAttribute_ };
|
|
44932
|
+
let CreateContentItemAttributeInput = class CreateContentItemAttributeInput {
|
|
44933
|
+
ContentItemID;
|
|
44934
|
+
Name;
|
|
44935
|
+
Value;
|
|
44936
|
+
};
|
|
44937
|
+
__decorate([
|
|
44938
|
+
Field(),
|
|
44939
|
+
__metadata("design:type", String)
|
|
44940
|
+
], CreateContentItemAttributeInput.prototype, "ContentItemID", void 0);
|
|
44941
|
+
__decorate([
|
|
44942
|
+
Field(),
|
|
44943
|
+
__metadata("design:type", String)
|
|
44944
|
+
], CreateContentItemAttributeInput.prototype, "Name", void 0);
|
|
44945
|
+
__decorate([
|
|
44946
|
+
Field(),
|
|
44947
|
+
__metadata("design:type", String)
|
|
44948
|
+
], CreateContentItemAttributeInput.prototype, "Value", void 0);
|
|
44949
|
+
CreateContentItemAttributeInput = __decorate([
|
|
44950
|
+
InputType()
|
|
44951
|
+
], CreateContentItemAttributeInput);
|
|
44952
|
+
export { CreateContentItemAttributeInput };
|
|
44953
|
+
let UpdateContentItemAttributeInput = class UpdateContentItemAttributeInput {
|
|
44954
|
+
ID;
|
|
44955
|
+
ContentItemID;
|
|
44956
|
+
Name;
|
|
44957
|
+
Value;
|
|
44958
|
+
OldValues___;
|
|
44959
|
+
};
|
|
44960
|
+
__decorate([
|
|
44961
|
+
Field(),
|
|
44962
|
+
__metadata("design:type", String)
|
|
44963
|
+
], UpdateContentItemAttributeInput.prototype, "ID", void 0);
|
|
44964
|
+
__decorate([
|
|
44965
|
+
Field(),
|
|
44966
|
+
__metadata("design:type", String)
|
|
44967
|
+
], UpdateContentItemAttributeInput.prototype, "ContentItemID", void 0);
|
|
44968
|
+
__decorate([
|
|
44969
|
+
Field(),
|
|
44970
|
+
__metadata("design:type", String)
|
|
44971
|
+
], UpdateContentItemAttributeInput.prototype, "Name", void 0);
|
|
44972
|
+
__decorate([
|
|
44973
|
+
Field(),
|
|
44974
|
+
__metadata("design:type", String)
|
|
44975
|
+
], UpdateContentItemAttributeInput.prototype, "Value", void 0);
|
|
44976
|
+
__decorate([
|
|
44977
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
44978
|
+
__metadata("design:type", Array)
|
|
44979
|
+
], UpdateContentItemAttributeInput.prototype, "OldValues___", void 0);
|
|
44980
|
+
UpdateContentItemAttributeInput = __decorate([
|
|
44981
|
+
InputType()
|
|
44982
|
+
], UpdateContentItemAttributeInput);
|
|
44983
|
+
export { UpdateContentItemAttributeInput };
|
|
44984
|
+
let RunContentItemAttributeViewResult = class RunContentItemAttributeViewResult {
|
|
44985
|
+
Results;
|
|
44986
|
+
UserViewRunID;
|
|
44987
|
+
RowCount;
|
|
44988
|
+
TotalRowCount;
|
|
44989
|
+
ExecutionTime;
|
|
44990
|
+
ErrorMessage;
|
|
44991
|
+
Success;
|
|
44992
|
+
};
|
|
44993
|
+
__decorate([
|
|
44994
|
+
Field(() => [ContentItemAttribute_]),
|
|
44995
|
+
__metadata("design:type", Array)
|
|
44996
|
+
], RunContentItemAttributeViewResult.prototype, "Results", void 0);
|
|
44997
|
+
__decorate([
|
|
44998
|
+
Field(() => String, { nullable: true }),
|
|
44999
|
+
__metadata("design:type", String)
|
|
45000
|
+
], RunContentItemAttributeViewResult.prototype, "UserViewRunID", void 0);
|
|
45001
|
+
__decorate([
|
|
45002
|
+
Field(() => Int, { nullable: true }),
|
|
45003
|
+
__metadata("design:type", Number)
|
|
45004
|
+
], RunContentItemAttributeViewResult.prototype, "RowCount", void 0);
|
|
45005
|
+
__decorate([
|
|
45006
|
+
Field(() => Int, { nullable: true }),
|
|
45007
|
+
__metadata("design:type", Number)
|
|
45008
|
+
], RunContentItemAttributeViewResult.prototype, "TotalRowCount", void 0);
|
|
45009
|
+
__decorate([
|
|
45010
|
+
Field(() => Int, { nullable: true }),
|
|
45011
|
+
__metadata("design:type", Number)
|
|
45012
|
+
], RunContentItemAttributeViewResult.prototype, "ExecutionTime", void 0);
|
|
45013
|
+
__decorate([
|
|
45014
|
+
Field({ nullable: true }),
|
|
45015
|
+
__metadata("design:type", String)
|
|
45016
|
+
], RunContentItemAttributeViewResult.prototype, "ErrorMessage", void 0);
|
|
45017
|
+
__decorate([
|
|
45018
|
+
Field(() => Boolean, { nullable: false }),
|
|
45019
|
+
__metadata("design:type", Boolean)
|
|
45020
|
+
], RunContentItemAttributeViewResult.prototype, "Success", void 0);
|
|
45021
|
+
RunContentItemAttributeViewResult = __decorate([
|
|
45022
|
+
ObjectType()
|
|
45023
|
+
], RunContentItemAttributeViewResult);
|
|
45024
|
+
export { RunContentItemAttributeViewResult };
|
|
45025
|
+
let ContentItemAttributeResolver = class ContentItemAttributeResolver extends ResolverBase {
|
|
45026
|
+
async RunContentItemAttributeViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
45027
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
45028
|
+
}
|
|
45029
|
+
async RunContentItemAttributeViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
45030
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
45031
|
+
}
|
|
45032
|
+
async RunContentItemAttributeDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
45033
|
+
input.EntityName = 'Content Item Attributes';
|
|
45034
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
45035
|
+
}
|
|
45036
|
+
async ContentItemAttribute(ID, { dataSource, userPayload }, pubSub) {
|
|
45037
|
+
this.CheckUserReadPermissions('Content Item Attributes', userPayload);
|
|
45038
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItemAttributes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Item Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
45039
|
+
const result = this.MapFieldNamesToCodeNames('Content Item Attributes', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
45040
|
+
return result;
|
|
45041
|
+
}
|
|
45042
|
+
async CreateContentItemAttribute(input, { dataSource, userPayload }, pubSub) {
|
|
45043
|
+
return this.CreateRecord('Content Item Attributes', input, dataSource, userPayload, pubSub);
|
|
45044
|
+
}
|
|
45045
|
+
async UpdateContentItemAttribute(input, { dataSource, userPayload }, pubSub) {
|
|
45046
|
+
return this.UpdateRecord('Content Item Attributes', input, dataSource, userPayload, pubSub);
|
|
45047
|
+
}
|
|
45048
|
+
async DeleteContentItemAttribute(ID, options, { dataSource, userPayload }, pubSub) {
|
|
45049
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
45050
|
+
return this.DeleteRecord('Content Item Attributes', key, options, dataSource, userPayload, pubSub);
|
|
45051
|
+
}
|
|
45052
|
+
};
|
|
45053
|
+
__decorate([
|
|
45054
|
+
Query(() => RunContentItemAttributeViewResult),
|
|
45055
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
45056
|
+
__param(1, Ctx()),
|
|
45057
|
+
__param(2, PubSub()),
|
|
45058
|
+
__metadata("design:type", Function),
|
|
45059
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
45060
|
+
__metadata("design:returntype", Promise)
|
|
45061
|
+
], ContentItemAttributeResolver.prototype, "RunContentItemAttributeViewByID", null);
|
|
45062
|
+
__decorate([
|
|
45063
|
+
Query(() => RunContentItemAttributeViewResult),
|
|
45064
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
45065
|
+
__param(1, Ctx()),
|
|
45066
|
+
__param(2, PubSub()),
|
|
45067
|
+
__metadata("design:type", Function),
|
|
45068
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
45069
|
+
__metadata("design:returntype", Promise)
|
|
45070
|
+
], ContentItemAttributeResolver.prototype, "RunContentItemAttributeViewByName", null);
|
|
45071
|
+
__decorate([
|
|
45072
|
+
Query(() => RunContentItemAttributeViewResult),
|
|
45073
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
45074
|
+
__param(1, Ctx()),
|
|
45075
|
+
__param(2, PubSub()),
|
|
45076
|
+
__metadata("design:type", Function),
|
|
45077
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
45078
|
+
__metadata("design:returntype", Promise)
|
|
45079
|
+
], ContentItemAttributeResolver.prototype, "RunContentItemAttributeDynamicView", null);
|
|
45080
|
+
__decorate([
|
|
45081
|
+
Query(() => ContentItemAttribute_, { nullable: true }),
|
|
45082
|
+
__param(0, Arg('ID', () => String)),
|
|
45083
|
+
__param(1, Ctx()),
|
|
45084
|
+
__param(2, PubSub()),
|
|
45085
|
+
__metadata("design:type", Function),
|
|
45086
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
45087
|
+
__metadata("design:returntype", Promise)
|
|
45088
|
+
], ContentItemAttributeResolver.prototype, "ContentItemAttribute", null);
|
|
45089
|
+
__decorate([
|
|
45090
|
+
Mutation(() => ContentItemAttribute_),
|
|
45091
|
+
__param(0, Arg('input', () => CreateContentItemAttributeInput)),
|
|
45092
|
+
__param(1, Ctx()),
|
|
45093
|
+
__param(2, PubSub()),
|
|
45094
|
+
__metadata("design:type", Function),
|
|
45095
|
+
__metadata("design:paramtypes", [CreateContentItemAttributeInput, Object, PubSubEngine]),
|
|
45096
|
+
__metadata("design:returntype", Promise)
|
|
45097
|
+
], ContentItemAttributeResolver.prototype, "CreateContentItemAttribute", null);
|
|
45098
|
+
__decorate([
|
|
45099
|
+
Mutation(() => ContentItemAttribute_),
|
|
45100
|
+
__param(0, Arg('input', () => UpdateContentItemAttributeInput)),
|
|
45101
|
+
__param(1, Ctx()),
|
|
45102
|
+
__param(2, PubSub()),
|
|
45103
|
+
__metadata("design:type", Function),
|
|
45104
|
+
__metadata("design:paramtypes", [UpdateContentItemAttributeInput, Object, PubSubEngine]),
|
|
45105
|
+
__metadata("design:returntype", Promise)
|
|
45106
|
+
], ContentItemAttributeResolver.prototype, "UpdateContentItemAttribute", null);
|
|
45107
|
+
__decorate([
|
|
45108
|
+
Mutation(() => ContentItemAttribute_),
|
|
45109
|
+
__param(0, Arg('ID', () => String)),
|
|
45110
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
45111
|
+
__param(2, Ctx()),
|
|
45112
|
+
__param(3, PubSub()),
|
|
45113
|
+
__metadata("design:type", Function),
|
|
45114
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
45115
|
+
__metadata("design:returntype", Promise)
|
|
45116
|
+
], ContentItemAttributeResolver.prototype, "DeleteContentItemAttribute", null);
|
|
45117
|
+
ContentItemAttributeResolver = __decorate([
|
|
45118
|
+
Resolver(ContentItemAttribute_)
|
|
45119
|
+
], ContentItemAttributeResolver);
|
|
45120
|
+
export { ContentItemAttributeResolver };
|
|
45121
|
+
let ContentItemTag_ = class ContentItemTag_ {
|
|
45122
|
+
ID;
|
|
45123
|
+
ItemID;
|
|
45124
|
+
Tag;
|
|
45125
|
+
_mj__CreatedAt;
|
|
45126
|
+
_mj__UpdatedAt;
|
|
45127
|
+
Item;
|
|
45128
|
+
};
|
|
45129
|
+
__decorate([
|
|
45130
|
+
Field(),
|
|
45131
|
+
MaxLength(16),
|
|
45132
|
+
__metadata("design:type", String)
|
|
45133
|
+
], ContentItemTag_.prototype, "ID", void 0);
|
|
45134
|
+
__decorate([
|
|
45135
|
+
Field(),
|
|
45136
|
+
MaxLength(16),
|
|
45137
|
+
__metadata("design:type", String)
|
|
45138
|
+
], ContentItemTag_.prototype, "ItemID", void 0);
|
|
45139
|
+
__decorate([
|
|
45140
|
+
Field(),
|
|
45141
|
+
MaxLength(400),
|
|
45142
|
+
__metadata("design:type", String)
|
|
45143
|
+
], ContentItemTag_.prototype, "Tag", void 0);
|
|
45144
|
+
__decorate([
|
|
45145
|
+
Field(),
|
|
45146
|
+
MaxLength(10),
|
|
45147
|
+
__metadata("design:type", Date)
|
|
45148
|
+
], ContentItemTag_.prototype, "_mj__CreatedAt", void 0);
|
|
45149
|
+
__decorate([
|
|
45150
|
+
Field(),
|
|
45151
|
+
MaxLength(10),
|
|
45152
|
+
__metadata("design:type", Date)
|
|
45153
|
+
], ContentItemTag_.prototype, "_mj__UpdatedAt", void 0);
|
|
45154
|
+
__decorate([
|
|
45155
|
+
Field({ nullable: true }),
|
|
45156
|
+
MaxLength(500),
|
|
45157
|
+
__metadata("design:type", String)
|
|
45158
|
+
], ContentItemTag_.prototype, "Item", void 0);
|
|
45159
|
+
ContentItemTag_ = __decorate([
|
|
45160
|
+
ObjectType()
|
|
45161
|
+
], ContentItemTag_);
|
|
45162
|
+
export { ContentItemTag_ };
|
|
45163
|
+
let CreateContentItemTagInput = class CreateContentItemTagInput {
|
|
45164
|
+
ItemID;
|
|
45165
|
+
Tag;
|
|
45166
|
+
};
|
|
45167
|
+
__decorate([
|
|
45168
|
+
Field(),
|
|
45169
|
+
__metadata("design:type", String)
|
|
45170
|
+
], CreateContentItemTagInput.prototype, "ItemID", void 0);
|
|
45171
|
+
__decorate([
|
|
45172
|
+
Field(),
|
|
45173
|
+
__metadata("design:type", String)
|
|
45174
|
+
], CreateContentItemTagInput.prototype, "Tag", void 0);
|
|
45175
|
+
CreateContentItemTagInput = __decorate([
|
|
45176
|
+
InputType()
|
|
45177
|
+
], CreateContentItemTagInput);
|
|
45178
|
+
export { CreateContentItemTagInput };
|
|
45179
|
+
let UpdateContentItemTagInput = class UpdateContentItemTagInput {
|
|
45180
|
+
ID;
|
|
45181
|
+
ItemID;
|
|
45182
|
+
Tag;
|
|
45183
|
+
OldValues___;
|
|
45184
|
+
};
|
|
45185
|
+
__decorate([
|
|
45186
|
+
Field(),
|
|
45187
|
+
__metadata("design:type", String)
|
|
45188
|
+
], UpdateContentItemTagInput.prototype, "ID", void 0);
|
|
45189
|
+
__decorate([
|
|
45190
|
+
Field(),
|
|
45191
|
+
__metadata("design:type", String)
|
|
45192
|
+
], UpdateContentItemTagInput.prototype, "ItemID", void 0);
|
|
45193
|
+
__decorate([
|
|
45194
|
+
Field(),
|
|
45195
|
+
__metadata("design:type", String)
|
|
45196
|
+
], UpdateContentItemTagInput.prototype, "Tag", void 0);
|
|
45197
|
+
__decorate([
|
|
45198
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
45199
|
+
__metadata("design:type", Array)
|
|
45200
|
+
], UpdateContentItemTagInput.prototype, "OldValues___", void 0);
|
|
45201
|
+
UpdateContentItemTagInput = __decorate([
|
|
45202
|
+
InputType()
|
|
45203
|
+
], UpdateContentItemTagInput);
|
|
45204
|
+
export { UpdateContentItemTagInput };
|
|
45205
|
+
let RunContentItemTagViewResult = class RunContentItemTagViewResult {
|
|
45206
|
+
Results;
|
|
45207
|
+
UserViewRunID;
|
|
45208
|
+
RowCount;
|
|
45209
|
+
TotalRowCount;
|
|
45210
|
+
ExecutionTime;
|
|
45211
|
+
ErrorMessage;
|
|
45212
|
+
Success;
|
|
45213
|
+
};
|
|
45214
|
+
__decorate([
|
|
45215
|
+
Field(() => [ContentItemTag_]),
|
|
45216
|
+
__metadata("design:type", Array)
|
|
45217
|
+
], RunContentItemTagViewResult.prototype, "Results", void 0);
|
|
45218
|
+
__decorate([
|
|
45219
|
+
Field(() => String, { nullable: true }),
|
|
45220
|
+
__metadata("design:type", String)
|
|
45221
|
+
], RunContentItemTagViewResult.prototype, "UserViewRunID", void 0);
|
|
45222
|
+
__decorate([
|
|
45223
|
+
Field(() => Int, { nullable: true }),
|
|
45224
|
+
__metadata("design:type", Number)
|
|
45225
|
+
], RunContentItemTagViewResult.prototype, "RowCount", void 0);
|
|
45226
|
+
__decorate([
|
|
45227
|
+
Field(() => Int, { nullable: true }),
|
|
45228
|
+
__metadata("design:type", Number)
|
|
45229
|
+
], RunContentItemTagViewResult.prototype, "TotalRowCount", void 0);
|
|
45230
|
+
__decorate([
|
|
45231
|
+
Field(() => Int, { nullable: true }),
|
|
45232
|
+
__metadata("design:type", Number)
|
|
45233
|
+
], RunContentItemTagViewResult.prototype, "ExecutionTime", void 0);
|
|
45234
|
+
__decorate([
|
|
45235
|
+
Field({ nullable: true }),
|
|
45236
|
+
__metadata("design:type", String)
|
|
45237
|
+
], RunContentItemTagViewResult.prototype, "ErrorMessage", void 0);
|
|
45238
|
+
__decorate([
|
|
45239
|
+
Field(() => Boolean, { nullable: false }),
|
|
45240
|
+
__metadata("design:type", Boolean)
|
|
45241
|
+
], RunContentItemTagViewResult.prototype, "Success", void 0);
|
|
45242
|
+
RunContentItemTagViewResult = __decorate([
|
|
45243
|
+
ObjectType()
|
|
45244
|
+
], RunContentItemTagViewResult);
|
|
45245
|
+
export { RunContentItemTagViewResult };
|
|
45246
|
+
let ContentItemTagResolver = class ContentItemTagResolver extends ResolverBase {
|
|
45247
|
+
async RunContentItemTagViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
45248
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
45249
|
+
}
|
|
45250
|
+
async RunContentItemTagViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
45251
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
45252
|
+
}
|
|
45253
|
+
async RunContentItemTagDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
45254
|
+
input.EntityName = 'Content Item Tags';
|
|
45255
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
45256
|
+
}
|
|
45257
|
+
async ContentItemTag(ID, { dataSource, userPayload }, pubSub) {
|
|
45258
|
+
this.CheckUserReadPermissions('Content Item Tags', userPayload);
|
|
45259
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwContentItemTags] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
45260
|
+
const result = this.MapFieldNamesToCodeNames('Content Item Tags', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
45261
|
+
return result;
|
|
45262
|
+
}
|
|
45263
|
+
async CreateContentItemTag(input, { dataSource, userPayload }, pubSub) {
|
|
45264
|
+
return this.CreateRecord('Content Item Tags', input, dataSource, userPayload, pubSub);
|
|
45265
|
+
}
|
|
45266
|
+
async UpdateContentItemTag(input, { dataSource, userPayload }, pubSub) {
|
|
45267
|
+
return this.UpdateRecord('Content Item Tags', input, dataSource, userPayload, pubSub);
|
|
45268
|
+
}
|
|
45269
|
+
async DeleteContentItemTag(ID, options, { dataSource, userPayload }, pubSub) {
|
|
45270
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
45271
|
+
return this.DeleteRecord('Content Item Tags', key, options, dataSource, userPayload, pubSub);
|
|
45272
|
+
}
|
|
45273
|
+
};
|
|
45274
|
+
__decorate([
|
|
45275
|
+
Query(() => RunContentItemTagViewResult),
|
|
45276
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
45277
|
+
__param(1, Ctx()),
|
|
45278
|
+
__param(2, PubSub()),
|
|
45279
|
+
__metadata("design:type", Function),
|
|
45280
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
45281
|
+
__metadata("design:returntype", Promise)
|
|
45282
|
+
], ContentItemTagResolver.prototype, "RunContentItemTagViewByID", null);
|
|
45283
|
+
__decorate([
|
|
45284
|
+
Query(() => RunContentItemTagViewResult),
|
|
45285
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
45286
|
+
__param(1, Ctx()),
|
|
45287
|
+
__param(2, PubSub()),
|
|
45288
|
+
__metadata("design:type", Function),
|
|
45289
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
45290
|
+
__metadata("design:returntype", Promise)
|
|
45291
|
+
], ContentItemTagResolver.prototype, "RunContentItemTagViewByName", null);
|
|
45292
|
+
__decorate([
|
|
45293
|
+
Query(() => RunContentItemTagViewResult),
|
|
45294
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
45295
|
+
__param(1, Ctx()),
|
|
45296
|
+
__param(2, PubSub()),
|
|
45297
|
+
__metadata("design:type", Function),
|
|
45298
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
45299
|
+
__metadata("design:returntype", Promise)
|
|
45300
|
+
], ContentItemTagResolver.prototype, "RunContentItemTagDynamicView", null);
|
|
45301
|
+
__decorate([
|
|
45302
|
+
Query(() => ContentItemTag_, { nullable: true }),
|
|
45303
|
+
__param(0, Arg('ID', () => String)),
|
|
45304
|
+
__param(1, Ctx()),
|
|
45305
|
+
__param(2, PubSub()),
|
|
45306
|
+
__metadata("design:type", Function),
|
|
45307
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
45308
|
+
__metadata("design:returntype", Promise)
|
|
45309
|
+
], ContentItemTagResolver.prototype, "ContentItemTag", null);
|
|
45310
|
+
__decorate([
|
|
45311
|
+
Mutation(() => ContentItemTag_),
|
|
45312
|
+
__param(0, Arg('input', () => CreateContentItemTagInput)),
|
|
45313
|
+
__param(1, Ctx()),
|
|
45314
|
+
__param(2, PubSub()),
|
|
45315
|
+
__metadata("design:type", Function),
|
|
45316
|
+
__metadata("design:paramtypes", [CreateContentItemTagInput, Object, PubSubEngine]),
|
|
45317
|
+
__metadata("design:returntype", Promise)
|
|
45318
|
+
], ContentItemTagResolver.prototype, "CreateContentItemTag", null);
|
|
45319
|
+
__decorate([
|
|
45320
|
+
Mutation(() => ContentItemTag_),
|
|
45321
|
+
__param(0, Arg('input', () => UpdateContentItemTagInput)),
|
|
45322
|
+
__param(1, Ctx()),
|
|
45323
|
+
__param(2, PubSub()),
|
|
45324
|
+
__metadata("design:type", Function),
|
|
45325
|
+
__metadata("design:paramtypes", [UpdateContentItemTagInput, Object, PubSubEngine]),
|
|
45326
|
+
__metadata("design:returntype", Promise)
|
|
45327
|
+
], ContentItemTagResolver.prototype, "UpdateContentItemTag", null);
|
|
45328
|
+
__decorate([
|
|
45329
|
+
Mutation(() => ContentItemTag_),
|
|
45330
|
+
__param(0, Arg('ID', () => String)),
|
|
45331
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
45332
|
+
__param(2, Ctx()),
|
|
45333
|
+
__param(3, PubSub()),
|
|
45334
|
+
__metadata("design:type", Function),
|
|
45335
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
45336
|
+
__metadata("design:returntype", Promise)
|
|
45337
|
+
], ContentItemTagResolver.prototype, "DeleteContentItemTag", null);
|
|
45338
|
+
ContentItemTagResolver = __decorate([
|
|
45339
|
+
Resolver(ContentItemTag_)
|
|
45340
|
+
], ContentItemTagResolver);
|
|
45341
|
+
export { ContentItemTagResolver };
|
|
42265
45342
|
//# sourceMappingURL=generated.js.map
|