@memberjunction/server 2.56.0 → 2.57.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.
@@ -2118,6 +2118,10 @@ export class AIAgent_ {
2118
2118
  @MaxLength(200)
2119
2119
  IconClass?: string;
2120
2120
 
2121
+ @Field({description: `Controls whether model selection is driven by the Agent Type's system prompt or the Agent's specific prompt. Default is Agent Type for backward compatibility.`})
2122
+ @MaxLength(100)
2123
+ ModelSelectionMode: string;
2124
+
2121
2125
  @Field({nullable: true})
2122
2126
  @MaxLength(510)
2123
2127
  Parent?: string;
@@ -2214,6 +2218,9 @@ export class CreateAIAgentInput {
2214
2218
 
2215
2219
  @Field({ nullable: true })
2216
2220
  IconClass: string | null;
2221
+
2222
+ @Field({ nullable: true })
2223
+ ModelSelectionMode?: string;
2217
2224
  }
2218
2225
 
2219
2226
 
@@ -2270,6 +2277,9 @@ export class UpdateAIAgentInput {
2270
2277
  @Field({ nullable: true })
2271
2278
  IconClass?: string | null;
2272
2279
 
2280
+ @Field({ nullable: true })
2281
+ ModelSelectionMode?: string;
2282
+
2273
2283
  @Field(() => [KeyValuePairInput], { nullable: true })
2274
2284
  OldValues___?: KeyValuePairInput[];
2275
2285
  }
@@ -5687,6 +5697,28 @@ export class EmployeeCompanyIntegration_ {
5687
5697
 
5688
5698
  }
5689
5699
 
5700
+ //****************************************************************************
5701
+ // INPUT TYPE for Employee Company Integrations
5702
+ //****************************************************************************
5703
+ @InputType()
5704
+ export class CreateEmployeeCompanyIntegrationInput {
5705
+ @Field({ nullable: true })
5706
+ ID?: string;
5707
+
5708
+ @Field({ nullable: true })
5709
+ EmployeeID?: string;
5710
+
5711
+ @Field({ nullable: true })
5712
+ CompanyIntegrationID?: string;
5713
+
5714
+ @Field({ nullable: true })
5715
+ ExternalSystemRecordID?: string;
5716
+
5717
+ @Field(() => Boolean, { nullable: true })
5718
+ IsActive?: boolean;
5719
+ }
5720
+
5721
+
5690
5722
  //****************************************************************************
5691
5723
  // INPUT TYPE for Employee Company Integrations
5692
5724
  //****************************************************************************
@@ -5768,6 +5800,16 @@ export class EmployeeCompanyIntegrationResolver extends ResolverBase {
5768
5800
  return result;
5769
5801
  }
5770
5802
 
5803
+ @Mutation(() => EmployeeCompanyIntegration_)
5804
+ async CreateEmployeeCompanyIntegration(
5805
+ @Arg('input', () => CreateEmployeeCompanyIntegrationInput) input: CreateEmployeeCompanyIntegrationInput,
5806
+ @Ctx() { dataSources, userPayload }: AppContext,
5807
+ @PubSub() pubSub: PubSubEngine
5808
+ ) {
5809
+ const connPool = GetReadWriteDataSource(dataSources);
5810
+ return this.CreateRecord('Employee Company Integrations', input, connPool, userPayload, pubSub)
5811
+ }
5812
+
5771
5813
  @Mutation(() => EmployeeCompanyIntegration_)
5772
5814
  async UpdateEmployeeCompanyIntegration(
5773
5815
  @Arg('input', () => UpdateEmployeeCompanyIntegrationInput) input: UpdateEmployeeCompanyIntegrationInput,
@@ -5778,6 +5820,13 @@ export class EmployeeCompanyIntegrationResolver extends ResolverBase {
5778
5820
  return this.UpdateRecord('Employee Company Integrations', input, connPool, userPayload, pubSub);
5779
5821
  }
5780
5822
 
5823
+ @Mutation(() => EmployeeCompanyIntegration_)
5824
+ async DeleteEmployeeCompanyIntegration(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
5825
+ const connPool = GetReadWriteDataSource(dataSources);
5826
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
5827
+ return this.DeleteRecord('Employee Company Integrations', key, options, connPool, userPayload, pubSub);
5828
+ }
5829
+
5781
5830
  }
5782
5831
 
5783
5832
  //****************************************************************************
@@ -5811,6 +5860,22 @@ export class EmployeeRole_ {
5811
5860
 
5812
5861
  }
5813
5862
 
5863
+ //****************************************************************************
5864
+ // INPUT TYPE for Employee Roles
5865
+ //****************************************************************************
5866
+ @InputType()
5867
+ export class CreateEmployeeRoleInput {
5868
+ @Field({ nullable: true })
5869
+ ID?: string;
5870
+
5871
+ @Field({ nullable: true })
5872
+ EmployeeID?: string;
5873
+
5874
+ @Field({ nullable: true })
5875
+ RoleID?: string;
5876
+ }
5877
+
5878
+
5814
5879
  //****************************************************************************
5815
5880
  // INPUT TYPE for Employee Roles
5816
5881
  //****************************************************************************
@@ -5886,6 +5951,16 @@ export class EmployeeRoleResolver extends ResolverBase {
5886
5951
  return result;
5887
5952
  }
5888
5953
 
5954
+ @Mutation(() => EmployeeRole_)
5955
+ async CreateEmployeeRole(
5956
+ @Arg('input', () => CreateEmployeeRoleInput) input: CreateEmployeeRoleInput,
5957
+ @Ctx() { dataSources, userPayload }: AppContext,
5958
+ @PubSub() pubSub: PubSubEngine
5959
+ ) {
5960
+ const connPool = GetReadWriteDataSource(dataSources);
5961
+ return this.CreateRecord('Employee Roles', input, connPool, userPayload, pubSub)
5962
+ }
5963
+
5889
5964
  @Mutation(() => EmployeeRole_)
5890
5965
  async UpdateEmployeeRole(
5891
5966
  @Arg('input', () => UpdateEmployeeRoleInput) input: UpdateEmployeeRoleInput,
@@ -5936,6 +6011,22 @@ export class EmployeeSkill_ {
5936
6011
 
5937
6012
  }
5938
6013
 
6014
+ //****************************************************************************
6015
+ // INPUT TYPE for Employee Skills
6016
+ //****************************************************************************
6017
+ @InputType()
6018
+ export class CreateEmployeeSkillInput {
6019
+ @Field({ nullable: true })
6020
+ ID?: string;
6021
+
6022
+ @Field({ nullable: true })
6023
+ EmployeeID?: string;
6024
+
6025
+ @Field({ nullable: true })
6026
+ SkillID?: string;
6027
+ }
6028
+
6029
+
5939
6030
  //****************************************************************************
5940
6031
  // INPUT TYPE for Employee Skills
5941
6032
  //****************************************************************************
@@ -6011,6 +6102,16 @@ export class EmployeeSkillResolver extends ResolverBase {
6011
6102
  return result;
6012
6103
  }
6013
6104
 
6105
+ @Mutation(() => EmployeeSkill_)
6106
+ async CreateEmployeeSkill(
6107
+ @Arg('input', () => CreateEmployeeSkillInput) input: CreateEmployeeSkillInput,
6108
+ @Ctx() { dataSources, userPayload }: AppContext,
6109
+ @PubSub() pubSub: PubSubEngine
6110
+ ) {
6111
+ const connPool = GetReadWriteDataSource(dataSources);
6112
+ return this.CreateRecord('Employee Skills', input, connPool, userPayload, pubSub)
6113
+ }
6114
+
6014
6115
  @Mutation(() => EmployeeSkill_)
6015
6116
  async UpdateEmployeeSkill(
6016
6117
  @Arg('input', () => UpdateEmployeeSkillInput) input: UpdateEmployeeSkillInput,
@@ -6320,6 +6421,41 @@ export class Skill_ {
6320
6421
  Skills_ParentIDArray: Skill_[]; // Link to Skills
6321
6422
 
6322
6423
  }
6424
+
6425
+ //****************************************************************************
6426
+ // INPUT TYPE for Skills
6427
+ //****************************************************************************
6428
+ @InputType()
6429
+ export class CreateSkillInput {
6430
+ @Field({ nullable: true })
6431
+ ID?: string;
6432
+
6433
+ @Field({ nullable: true })
6434
+ Name?: string;
6435
+
6436
+ @Field({ nullable: true })
6437
+ ParentID: string | null;
6438
+ }
6439
+
6440
+
6441
+ //****************************************************************************
6442
+ // INPUT TYPE for Skills
6443
+ //****************************************************************************
6444
+ @InputType()
6445
+ export class UpdateSkillInput {
6446
+ @Field()
6447
+ ID: string;
6448
+
6449
+ @Field({ nullable: true })
6450
+ Name?: string;
6451
+
6452
+ @Field({ nullable: true })
6453
+ ParentID?: string | null;
6454
+
6455
+ @Field(() => [KeyValuePairInput], { nullable: true })
6456
+ OldValues___?: KeyValuePairInput[];
6457
+ }
6458
+
6323
6459
  //****************************************************************************
6324
6460
  // RESOLVER for Skills
6325
6461
  //****************************************************************************
@@ -6407,6 +6543,33 @@ export class SkillResolver extends ResolverBase {
6407
6543
  return result;
6408
6544
  }
6409
6545
 
6546
+ @Mutation(() => Skill_)
6547
+ async CreateSkill(
6548
+ @Arg('input', () => CreateSkillInput) input: CreateSkillInput,
6549
+ @Ctx() { dataSources, userPayload }: AppContext,
6550
+ @PubSub() pubSub: PubSubEngine
6551
+ ) {
6552
+ const connPool = GetReadWriteDataSource(dataSources);
6553
+ return this.CreateRecord('Skills', input, connPool, userPayload, pubSub)
6554
+ }
6555
+
6556
+ @Mutation(() => Skill_)
6557
+ async UpdateSkill(
6558
+ @Arg('input', () => UpdateSkillInput) input: UpdateSkillInput,
6559
+ @Ctx() { dataSources, userPayload }: AppContext,
6560
+ @PubSub() pubSub: PubSubEngine
6561
+ ) {
6562
+ const connPool = GetReadWriteDataSource(dataSources);
6563
+ return this.UpdateRecord('Skills', input, connPool, userPayload, pubSub);
6564
+ }
6565
+
6566
+ @Mutation(() => Skill_)
6567
+ async DeleteSkill(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
6568
+ const connPool = GetReadWriteDataSource(dataSources);
6569
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
6570
+ return this.DeleteRecord('Skills', key, options, connPool, userPayload, pubSub);
6571
+ }
6572
+
6410
6573
  }
6411
6574
 
6412
6575
  //****************************************************************************
@@ -6455,6 +6618,28 @@ export class IntegrationURLFormat_ {
6455
6618
 
6456
6619
  }
6457
6620
 
6621
+ //****************************************************************************
6622
+ // INPUT TYPE for Integration URL Formats
6623
+ //****************************************************************************
6624
+ @InputType()
6625
+ export class CreateIntegrationURLFormatInput {
6626
+ @Field({ nullable: true })
6627
+ ID?: string;
6628
+
6629
+ @Field({ nullable: true })
6630
+ IntegrationID?: string;
6631
+
6632
+ @Field({ nullable: true })
6633
+ EntityID?: string;
6634
+
6635
+ @Field({ nullable: true })
6636
+ URLFormat?: string;
6637
+
6638
+ @Field({ nullable: true })
6639
+ Comments: string | null;
6640
+ }
6641
+
6642
+
6458
6643
  //****************************************************************************
6459
6644
  // INPUT TYPE for Integration URL Formats
6460
6645
  //****************************************************************************
@@ -6546,6 +6731,16 @@ export class IntegrationURLFormatResolver extends ResolverBase {
6546
6731
  return result;
6547
6732
  }
6548
6733
 
6734
+ @Mutation(() => IntegrationURLFormat_)
6735
+ async CreateIntegrationURLFormat(
6736
+ @Arg('input', () => CreateIntegrationURLFormatInput) input: CreateIntegrationURLFormatInput,
6737
+ @Ctx() { dataSources, userPayload }: AppContext,
6738
+ @PubSub() pubSub: PubSubEngine
6739
+ ) {
6740
+ const connPool = GetReadWriteDataSource(dataSources);
6741
+ return this.CreateRecord('Integration URL Formats', input, connPool, userPayload, pubSub)
6742
+ }
6743
+
6549
6744
  @Mutation(() => IntegrationURLFormat_)
6550
6745
  async UpdateIntegrationURLFormat(
6551
6746
  @Arg('input', () => UpdateIntegrationURLFormatInput) input: UpdateIntegrationURLFormatInput,
@@ -6619,6 +6814,37 @@ export class Integration_ {
6619
6814
 
6620
6815
  }
6621
6816
 
6817
+ //****************************************************************************
6818
+ // INPUT TYPE for Integrations
6819
+ //****************************************************************************
6820
+ @InputType()
6821
+ export class CreateIntegrationInput {
6822
+ @Field({ nullable: true })
6823
+ Name?: string;
6824
+
6825
+ @Field({ nullable: true })
6826
+ Description: string | null;
6827
+
6828
+ @Field({ nullable: true })
6829
+ NavigationBaseURL: string | null;
6830
+
6831
+ @Field({ nullable: true })
6832
+ ClassName: string | null;
6833
+
6834
+ @Field({ nullable: true })
6835
+ ImportPath: string | null;
6836
+
6837
+ @Field(() => Int, { nullable: true })
6838
+ BatchMaxRequestCount?: number;
6839
+
6840
+ @Field(() => Int, { nullable: true })
6841
+ BatchRequestWaitTime?: number;
6842
+
6843
+ @Field({ nullable: true })
6844
+ ID?: string;
6845
+ }
6846
+
6847
+
6622
6848
  //****************************************************************************
6623
6849
  // INPUT TYPE for Integrations
6624
6850
  //****************************************************************************
@@ -6749,6 +6975,16 @@ export class IntegrationResolver extends ResolverBase {
6749
6975
  return result;
6750
6976
  }
6751
6977
 
6978
+ @Mutation(() => Integration_)
6979
+ async CreateIntegration(
6980
+ @Arg('input', () => CreateIntegrationInput) input: CreateIntegrationInput,
6981
+ @Ctx() { dataSources, userPayload }: AppContext,
6982
+ @PubSub() pubSub: PubSubEngine
6983
+ ) {
6984
+ const connPool = GetReadWriteDataSource(dataSources);
6985
+ return this.CreateRecord('Integrations', input, connPool, userPayload, pubSub)
6986
+ }
6987
+
6752
6988
  @Mutation(() => Integration_)
6753
6989
  async UpdateIntegration(
6754
6990
  @Arg('input', () => UpdateIntegrationInput) input: UpdateIntegrationInput,
@@ -6873,6 +7109,52 @@ export class CompanyIntegration_ {
6873
7109
 
6874
7110
  }
6875
7111
 
7112
+ //****************************************************************************
7113
+ // INPUT TYPE for Company Integrations
7114
+ //****************************************************************************
7115
+ @InputType()
7116
+ export class CreateCompanyIntegrationInput {
7117
+ @Field({ nullable: true })
7118
+ ID?: string;
7119
+
7120
+ @Field({ nullable: true })
7121
+ CompanyID?: string;
7122
+
7123
+ @Field({ nullable: true })
7124
+ IntegrationID?: string;
7125
+
7126
+ @Field(() => Boolean, { nullable: true })
7127
+ IsActive: boolean | null;
7128
+
7129
+ @Field({ nullable: true })
7130
+ AccessToken: string | null;
7131
+
7132
+ @Field({ nullable: true })
7133
+ RefreshToken: string | null;
7134
+
7135
+ @Field({ nullable: true })
7136
+ TokenExpirationDate: Date | null;
7137
+
7138
+ @Field({ nullable: true })
7139
+ APIKey: string | null;
7140
+
7141
+ @Field({ nullable: true })
7142
+ ExternalSystemID: string | null;
7143
+
7144
+ @Field(() => Boolean, { nullable: true })
7145
+ IsExternalSystemReadOnly?: boolean;
7146
+
7147
+ @Field({ nullable: true })
7148
+ ClientID: string | null;
7149
+
7150
+ @Field({ nullable: true })
7151
+ ClientSecret: string | null;
7152
+
7153
+ @Field({ nullable: true })
7154
+ CustomAttribute1: string | null;
7155
+ }
7156
+
7157
+
6876
7158
  //****************************************************************************
6877
7159
  // INPUT TYPE for Company Integrations
6878
7160
  //****************************************************************************
@@ -7018,6 +7300,16 @@ export class CompanyIntegrationResolver extends ResolverBase {
7018
7300
  return result;
7019
7301
  }
7020
7302
 
7303
+ @Mutation(() => CompanyIntegration_)
7304
+ async CreateCompanyIntegration(
7305
+ @Arg('input', () => CreateCompanyIntegrationInput) input: CreateCompanyIntegrationInput,
7306
+ @Ctx() { dataSources, userPayload }: AppContext,
7307
+ @PubSub() pubSub: PubSubEngine
7308
+ ) {
7309
+ const connPool = GetReadWriteDataSource(dataSources);
7310
+ return this.CreateRecord('Company Integrations', input, connPool, userPayload, pubSub)
7311
+ }
7312
+
7021
7313
  @Mutation(() => CompanyIntegration_)
7022
7314
  async UpdateCompanyIntegration(
7023
7315
  @Arg('input', () => UpdateCompanyIntegrationInput) input: UpdateCompanyIntegrationInput,
@@ -9932,9 +10224,9 @@ export class UserRecordLog_ {
9932
10224
  // INPUT TYPE for User Record Logs
9933
10225
  //****************************************************************************
9934
10226
  @InputType()
9935
- export class UpdateUserRecordLogInput {
9936
- @Field()
9937
- ID: string;
10227
+ export class CreateUserRecordLogInput {
10228
+ @Field({ nullable: true })
10229
+ ID?: string;
9938
10230
 
9939
10231
  @Field({ nullable: true })
9940
10232
  UserID?: string;
@@ -9953,21 +10245,49 @@ export class UpdateUserRecordLogInput {
9953
10245
 
9954
10246
  @Field(() => Int, { nullable: true })
9955
10247
  TotalCount?: number;
9956
-
9957
- @Field(() => [KeyValuePairInput], { nullable: true })
9958
- OldValues___?: KeyValuePairInput[];
9959
10248
  }
9960
10249
 
10250
+
9961
10251
  //****************************************************************************
9962
- // RESOLVER for User Record Logs
10252
+ // INPUT TYPE for User Record Logs
9963
10253
  //****************************************************************************
9964
- @ObjectType()
9965
- export class RunUserRecordLogViewResult {
9966
- @Field(() => [UserRecordLog_])
9967
- Results: UserRecordLog_[];
10254
+ @InputType()
10255
+ export class UpdateUserRecordLogInput {
10256
+ @Field()
10257
+ ID: string;
9968
10258
 
9969
- @Field(() => String, {nullable: true})
9970
- UserViewRunID?: string;
10259
+ @Field({ nullable: true })
10260
+ UserID?: string;
10261
+
10262
+ @Field({ nullable: true })
10263
+ EntityID?: string;
10264
+
10265
+ @Field({ nullable: true })
10266
+ RecordID?: string;
10267
+
10268
+ @Field({ nullable: true })
10269
+ EarliestAt?: Date;
10270
+
10271
+ @Field({ nullable: true })
10272
+ LatestAt?: Date;
10273
+
10274
+ @Field(() => Int, { nullable: true })
10275
+ TotalCount?: number;
10276
+
10277
+ @Field(() => [KeyValuePairInput], { nullable: true })
10278
+ OldValues___?: KeyValuePairInput[];
10279
+ }
10280
+
10281
+ //****************************************************************************
10282
+ // RESOLVER for User Record Logs
10283
+ //****************************************************************************
10284
+ @ObjectType()
10285
+ export class RunUserRecordLogViewResult {
10286
+ @Field(() => [UserRecordLog_])
10287
+ Results: UserRecordLog_[];
10288
+
10289
+ @Field(() => String, {nullable: true})
10290
+ UserViewRunID?: string;
9971
10291
 
9972
10292
  @Field(() => Int, {nullable: true})
9973
10293
  RowCount: number;
@@ -10015,6 +10335,16 @@ export class UserRecordLogResolver extends ResolverBase {
10015
10335
  return result;
10016
10336
  }
10017
10337
 
10338
+ @Mutation(() => UserRecordLog_)
10339
+ async CreateUserRecordLog(
10340
+ @Arg('input', () => CreateUserRecordLogInput) input: CreateUserRecordLogInput,
10341
+ @Ctx() { dataSources, userPayload }: AppContext,
10342
+ @PubSub() pubSub: PubSubEngine
10343
+ ) {
10344
+ const connPool = GetReadWriteDataSource(dataSources);
10345
+ return this.CreateRecord('User Record Logs', input, connPool, userPayload, pubSub)
10346
+ }
10347
+
10018
10348
  @Mutation(() => UserRecordLog_)
10019
10349
  async UpdateUserRecordLog(
10020
10350
  @Arg('input', () => UpdateUserRecordLogInput) input: UpdateUserRecordLogInput,
@@ -10025,6 +10355,13 @@ export class UserRecordLogResolver extends ResolverBase {
10025
10355
  return this.UpdateRecord('User Record Logs', input, connPool, userPayload, pubSub);
10026
10356
  }
10027
10357
 
10358
+ @Mutation(() => UserRecordLog_)
10359
+ async DeleteUserRecordLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
10360
+ const connPool = GetReadWriteDataSource(dataSources);
10361
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
10362
+ return this.DeleteRecord('User Record Logs', key, options, connPool, userPayload, pubSub);
10363
+ }
10364
+
10028
10365
  }
10029
10366
 
10030
10367
  //****************************************************************************
@@ -10648,6 +10985,13 @@ export class CompanyIntegrationRunResolver extends ResolverBase {
10648
10985
  return this.UpdateRecord('Company Integration Runs', input, connPool, userPayload, pubSub);
10649
10986
  }
10650
10987
 
10988
+ @Mutation(() => CompanyIntegrationRun_)
10989
+ async DeleteCompanyIntegrationRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
10990
+ const connPool = GetReadWriteDataSource(dataSources);
10991
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
10992
+ return this.DeleteRecord('Company Integration Runs', key, options, connPool, userPayload, pubSub);
10993
+ }
10994
+
10651
10995
  }
10652
10996
 
10653
10997
  //****************************************************************************
@@ -10852,6 +11196,13 @@ export class CompanyIntegrationRunDetailResolver extends ResolverBase {
10852
11196
  return this.UpdateRecord('Company Integration Run Details', input, connPool, userPayload, pubSub);
10853
11197
  }
10854
11198
 
11199
+ @Mutation(() => CompanyIntegrationRunDetail_)
11200
+ async DeleteCompanyIntegrationRunDetail(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
11201
+ const connPool = GetReadWriteDataSource(dataSources);
11202
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
11203
+ return this.DeleteRecord('Company Integration Run Details', key, options, connPool, userPayload, pubSub);
11204
+ }
11205
+
10855
11206
  }
10856
11207
 
10857
11208
  //****************************************************************************
@@ -11050,6 +11401,13 @@ export class ErrorLogResolver extends ResolverBase {
11050
11401
  return this.UpdateRecord('Error Logs', input, connPool, userPayload, pubSub);
11051
11402
  }
11052
11403
 
11404
+ @Mutation(() => ErrorLog_)
11405
+ async DeleteErrorLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
11406
+ const connPool = GetReadWriteDataSource(dataSources);
11407
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
11408
+ return this.DeleteRecord('Error Logs', key, options, connPool, userPayload, pubSub);
11409
+ }
11410
+
11053
11411
  }
11054
11412
 
11055
11413
  //****************************************************************************
@@ -12277,6 +12635,13 @@ export class CompanyIntegrationRunAPILogResolver extends ResolverBase {
12277
12635
  return this.UpdateRecord('Company Integration Run API Logs', input, connPool, userPayload, pubSub);
12278
12636
  }
12279
12637
 
12638
+ @Mutation(() => CompanyIntegrationRunAPILog_)
12639
+ async DeleteCompanyIntegrationRunAPILog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
12640
+ const connPool = GetReadWriteDataSource(dataSources);
12641
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
12642
+ return this.DeleteRecord('Company Integration Run API Logs', key, options, connPool, userPayload, pubSub);
12643
+ }
12644
+
12280
12645
  }
12281
12646
 
12282
12647
  //****************************************************************************
@@ -12861,6 +13226,13 @@ export class UserViewRunResolver extends ResolverBase {
12861
13226
  return this.UpdateRecord('User View Runs', input, connPool, userPayload, pubSub);
12862
13227
  }
12863
13228
 
13229
+ @Mutation(() => UserViewRun_)
13230
+ async DeleteUserViewRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13231
+ const connPool = GetReadWriteDataSource(dataSources);
13232
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
13233
+ return this.DeleteRecord('User View Runs', key, options, connPool, userPayload, pubSub);
13234
+ }
13235
+
12864
13236
  }
12865
13237
 
12866
13238
  //****************************************************************************
@@ -13009,6 +13381,13 @@ export class UserViewRunDetailResolver extends ResolverBase {
13009
13381
  return this.UpdateRecord('User View Run Details', input, connPool, userPayload, pubSub);
13010
13382
  }
13011
13383
 
13384
+ @Mutation(() => UserViewRunDetail_)
13385
+ async DeleteUserViewRunDetail(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13386
+ const connPool = GetReadWriteDataSource(dataSources);
13387
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
13388
+ return this.DeleteRecord('User View Run Details', key, options, connPool, userPayload, pubSub);
13389
+ }
13390
+
13012
13391
  }
13013
13392
 
13014
13393
  //****************************************************************************
@@ -13061,6 +13440,34 @@ export class WorkflowRun_ {
13061
13440
 
13062
13441
  }
13063
13442
 
13443
+ //****************************************************************************
13444
+ // INPUT TYPE for Workflow Runs
13445
+ //****************************************************************************
13446
+ @InputType()
13447
+ export class CreateWorkflowRunInput {
13448
+ @Field({ nullable: true })
13449
+ ID?: string;
13450
+
13451
+ @Field({ nullable: true })
13452
+ WorkflowID?: string;
13453
+
13454
+ @Field({ nullable: true })
13455
+ ExternalSystemRecordID?: string;
13456
+
13457
+ @Field({ nullable: true })
13458
+ StartedAt?: Date;
13459
+
13460
+ @Field({ nullable: true })
13461
+ EndedAt: Date | null;
13462
+
13463
+ @Field({ nullable: true })
13464
+ Status?: string;
13465
+
13466
+ @Field({ nullable: true })
13467
+ Results: string | null;
13468
+ }
13469
+
13470
+
13064
13471
  //****************************************************************************
13065
13472
  // INPUT TYPE for Workflow Runs
13066
13473
  //****************************************************************************
@@ -13148,6 +13555,16 @@ export class WorkflowRunResolver extends ResolverBase {
13148
13555
  return result;
13149
13556
  }
13150
13557
 
13558
+ @Mutation(() => WorkflowRun_)
13559
+ async CreateWorkflowRun(
13560
+ @Arg('input', () => CreateWorkflowRunInput) input: CreateWorkflowRunInput,
13561
+ @Ctx() { dataSources, userPayload }: AppContext,
13562
+ @PubSub() pubSub: PubSubEngine
13563
+ ) {
13564
+ const connPool = GetReadWriteDataSource(dataSources);
13565
+ return this.CreateRecord('Workflow Runs', input, connPool, userPayload, pubSub)
13566
+ }
13567
+
13151
13568
  @Mutation(() => WorkflowRun_)
13152
13569
  async UpdateWorkflowRun(
13153
13570
  @Arg('input', () => UpdateWorkflowRunInput) input: UpdateWorkflowRunInput,
@@ -13158,6 +13575,13 @@ export class WorkflowRunResolver extends ResolverBase {
13158
13575
  return this.UpdateRecord('Workflow Runs', input, connPool, userPayload, pubSub);
13159
13576
  }
13160
13577
 
13578
+ @Mutation(() => WorkflowRun_)
13579
+ async DeleteWorkflowRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13580
+ const connPool = GetReadWriteDataSource(dataSources);
13581
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
13582
+ return this.DeleteRecord('Workflow Runs', key, options, connPool, userPayload, pubSub);
13583
+ }
13584
+
13161
13585
  }
13162
13586
 
13163
13587
  //****************************************************************************
@@ -13217,6 +13641,40 @@ export class Workflow_ {
13217
13641
 
13218
13642
  }
13219
13643
 
13644
+ //****************************************************************************
13645
+ // INPUT TYPE for Workflows
13646
+ //****************************************************************************
13647
+ @InputType()
13648
+ export class CreateWorkflowInput {
13649
+ @Field({ nullable: true })
13650
+ ID?: string;
13651
+
13652
+ @Field({ nullable: true })
13653
+ Name?: string;
13654
+
13655
+ @Field({ nullable: true })
13656
+ Description: string | null;
13657
+
13658
+ @Field({ nullable: true })
13659
+ WorkflowEngineID?: string;
13660
+
13661
+ @Field({ nullable: true })
13662
+ ExternalSystemRecordID?: string;
13663
+
13664
+ @Field(() => Boolean, { nullable: true })
13665
+ AutoRunEnabled?: boolean;
13666
+
13667
+ @Field({ nullable: true })
13668
+ AutoRunIntervalUnits: string | null;
13669
+
13670
+ @Field(() => Int, { nullable: true })
13671
+ AutoRunInterval: number | null;
13672
+
13673
+ @Field({ nullable: true })
13674
+ SubclassName: string | null;
13675
+ }
13676
+
13677
+
13220
13678
  //****************************************************************************
13221
13679
  // INPUT TYPE for Workflows
13222
13680
  //****************************************************************************
@@ -13330,6 +13788,16 @@ export class WorkflowResolver extends ResolverBase {
13330
13788
  return result;
13331
13789
  }
13332
13790
 
13791
+ @Mutation(() => Workflow_)
13792
+ async CreateWorkflow(
13793
+ @Arg('input', () => CreateWorkflowInput) input: CreateWorkflowInput,
13794
+ @Ctx() { dataSources, userPayload }: AppContext,
13795
+ @PubSub() pubSub: PubSubEngine
13796
+ ) {
13797
+ const connPool = GetReadWriteDataSource(dataSources);
13798
+ return this.CreateRecord('Workflows', input, connPool, userPayload, pubSub)
13799
+ }
13800
+
13333
13801
  @Mutation(() => Workflow_)
13334
13802
  async UpdateWorkflow(
13335
13803
  @Arg('input', () => UpdateWorkflowInput) input: UpdateWorkflowInput,
@@ -13340,6 +13808,13 @@ export class WorkflowResolver extends ResolverBase {
13340
13808
  return this.UpdateRecord('Workflows', input, connPool, userPayload, pubSub);
13341
13809
  }
13342
13810
 
13811
+ @Mutation(() => Workflow_)
13812
+ async DeleteWorkflow(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13813
+ const connPool = GetReadWriteDataSource(dataSources);
13814
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
13815
+ return this.DeleteRecord('Workflows', key, options, connPool, userPayload, pubSub);
13816
+ }
13817
+
13343
13818
  }
13344
13819
 
13345
13820
  //****************************************************************************
@@ -13379,6 +13854,28 @@ export class WorkflowEngine_ {
13379
13854
 
13380
13855
  }
13381
13856
 
13857
+ //****************************************************************************
13858
+ // INPUT TYPE for Workflow Engines
13859
+ //****************************************************************************
13860
+ @InputType()
13861
+ export class CreateWorkflowEngineInput {
13862
+ @Field({ nullable: true })
13863
+ ID?: string;
13864
+
13865
+ @Field({ nullable: true })
13866
+ Name?: string;
13867
+
13868
+ @Field({ nullable: true })
13869
+ Description: string | null;
13870
+
13871
+ @Field({ nullable: true })
13872
+ DriverPath?: string;
13873
+
13874
+ @Field({ nullable: true })
13875
+ DriverClass?: string;
13876
+ }
13877
+
13878
+
13382
13879
  //****************************************************************************
13383
13880
  // INPUT TYPE for Workflow Engines
13384
13881
  //****************************************************************************
@@ -13470,6 +13967,16 @@ export class WorkflowEngineResolver extends ResolverBase {
13470
13967
  return result;
13471
13968
  }
13472
13969
 
13970
+ @Mutation(() => WorkflowEngine_)
13971
+ async CreateWorkflowEngine(
13972
+ @Arg('input', () => CreateWorkflowEngineInput) input: CreateWorkflowEngineInput,
13973
+ @Ctx() { dataSources, userPayload }: AppContext,
13974
+ @PubSub() pubSub: PubSubEngine
13975
+ ) {
13976
+ const connPool = GetReadWriteDataSource(dataSources);
13977
+ return this.CreateRecord('Workflow Engines', input, connPool, userPayload, pubSub)
13978
+ }
13979
+
13473
13980
  @Mutation(() => WorkflowEngine_)
13474
13981
  async UpdateWorkflowEngine(
13475
13982
  @Arg('input', () => UpdateWorkflowEngineInput) input: UpdateWorkflowEngineInput,
@@ -13754,6 +14261,13 @@ export class RecordChangeResolver extends ResolverBase {
13754
14261
  return this.UpdateRecord('Record Changes', input, connPool, userPayload, pubSub);
13755
14262
  }
13756
14263
 
14264
+ @Mutation(() => RecordChange_)
14265
+ async DeleteRecordChange(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
14266
+ const connPool = GetReadWriteDataSource(dataSources);
14267
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
14268
+ return this.DeleteRecord('Record Changes', key, options, connPool, userPayload, pubSub);
14269
+ }
14270
+
13757
14271
  }
13758
14272
 
13759
14273
  //****************************************************************************
@@ -13806,6 +14320,25 @@ export class CreateUserRoleInput {
13806
14320
  RoleID?: string;
13807
14321
  }
13808
14322
 
14323
+
14324
+ //****************************************************************************
14325
+ // INPUT TYPE for User Roles
14326
+ //****************************************************************************
14327
+ @InputType()
14328
+ export class UpdateUserRoleInput {
14329
+ @Field()
14330
+ ID: string;
14331
+
14332
+ @Field({ nullable: true })
14333
+ UserID?: string;
14334
+
14335
+ @Field({ nullable: true })
14336
+ RoleID?: string;
14337
+
14338
+ @Field(() => [KeyValuePairInput], { nullable: true })
14339
+ OldValues___?: KeyValuePairInput[];
14340
+ }
14341
+
13809
14342
  //****************************************************************************
13810
14343
  // RESOLVER for User Roles
13811
14344
  //****************************************************************************
@@ -13883,6 +14416,16 @@ export class UserRoleResolver extends ResolverBase {
13883
14416
  return this.CreateRecord('User Roles', input, connPool, userPayload, pubSub)
13884
14417
  }
13885
14418
 
14419
+ @Mutation(() => UserRole_)
14420
+ async UpdateUserRole(
14421
+ @Arg('input', () => UpdateUserRoleInput) input: UpdateUserRoleInput,
14422
+ @Ctx() { dataSources, userPayload }: AppContext,
14423
+ @PubSub() pubSub: PubSubEngine
14424
+ ) {
14425
+ const connPool = GetReadWriteDataSource(dataSources);
14426
+ return this.UpdateRecord('User Roles', input, connPool, userPayload, pubSub);
14427
+ }
14428
+
13886
14429
  @Mutation(() => UserRole_)
13887
14430
  async DeleteUserRole(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13888
14431
  const connPool = GetReadWriteDataSource(dataSources);
@@ -13923,6 +14466,47 @@ export class RowLevelSecurityFilter_ {
13923
14466
  EntityPermissions_ReadRLSFilterIDArray: EntityPermission_[]; // Link to EntityPermissions
13924
14467
 
13925
14468
  }
14469
+
14470
+ //****************************************************************************
14471
+ // INPUT TYPE for Row Level Security Filters
14472
+ //****************************************************************************
14473
+ @InputType()
14474
+ export class CreateRowLevelSecurityFilterInput {
14475
+ @Field({ nullable: true })
14476
+ ID?: string;
14477
+
14478
+ @Field({ nullable: true })
14479
+ Name?: string;
14480
+
14481
+ @Field({ nullable: true })
14482
+ Description: string | null;
14483
+
14484
+ @Field({ nullable: true })
14485
+ FilterText: string | null;
14486
+ }
14487
+
14488
+
14489
+ //****************************************************************************
14490
+ // INPUT TYPE for Row Level Security Filters
14491
+ //****************************************************************************
14492
+ @InputType()
14493
+ export class UpdateRowLevelSecurityFilterInput {
14494
+ @Field()
14495
+ ID: string;
14496
+
14497
+ @Field({ nullable: true })
14498
+ Name?: string;
14499
+
14500
+ @Field({ nullable: true })
14501
+ Description?: string | null;
14502
+
14503
+ @Field({ nullable: true })
14504
+ FilterText?: string | null;
14505
+
14506
+ @Field(() => [KeyValuePairInput], { nullable: true })
14507
+ OldValues___?: KeyValuePairInput[];
14508
+ }
14509
+
13926
14510
  //****************************************************************************
13927
14511
  // RESOLVER for Row Level Security Filters
13928
14512
  //****************************************************************************
@@ -14000,15 +14584,42 @@ export class RowLevelSecurityFilterResolver extends ResolverBase {
14000
14584
  return result;
14001
14585
  }
14002
14586
 
14003
- }
14004
-
14005
- //****************************************************************************
14006
- // ENTITY CLASS for Audit Logs
14007
- //****************************************************************************
14008
- @ObjectType()
14009
- export class AuditLog_ {
14010
- @Field()
14011
- @MaxLength(16)
14587
+ @Mutation(() => RowLevelSecurityFilter_)
14588
+ async CreateRowLevelSecurityFilter(
14589
+ @Arg('input', () => CreateRowLevelSecurityFilterInput) input: CreateRowLevelSecurityFilterInput,
14590
+ @Ctx() { dataSources, userPayload }: AppContext,
14591
+ @PubSub() pubSub: PubSubEngine
14592
+ ) {
14593
+ const connPool = GetReadWriteDataSource(dataSources);
14594
+ return this.CreateRecord('Row Level Security Filters', input, connPool, userPayload, pubSub)
14595
+ }
14596
+
14597
+ @Mutation(() => RowLevelSecurityFilter_)
14598
+ async UpdateRowLevelSecurityFilter(
14599
+ @Arg('input', () => UpdateRowLevelSecurityFilterInput) input: UpdateRowLevelSecurityFilterInput,
14600
+ @Ctx() { dataSources, userPayload }: AppContext,
14601
+ @PubSub() pubSub: PubSubEngine
14602
+ ) {
14603
+ const connPool = GetReadWriteDataSource(dataSources);
14604
+ return this.UpdateRecord('Row Level Security Filters', input, connPool, userPayload, pubSub);
14605
+ }
14606
+
14607
+ @Mutation(() => RowLevelSecurityFilter_)
14608
+ async DeleteRowLevelSecurityFilter(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
14609
+ const connPool = GetReadWriteDataSource(dataSources);
14610
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
14611
+ return this.DeleteRecord('Row Level Security Filters', key, options, connPool, userPayload, pubSub);
14612
+ }
14613
+
14614
+ }
14615
+
14616
+ //****************************************************************************
14617
+ // ENTITY CLASS for Audit Logs
14618
+ //****************************************************************************
14619
+ @ObjectType()
14620
+ export class AuditLog_ {
14621
+ @Field()
14622
+ @MaxLength(16)
14012
14623
  ID: string;
14013
14624
 
14014
14625
  @Field()
@@ -14214,6 +14825,13 @@ export class AuditLogResolver extends ResolverBase {
14214
14825
  return this.UpdateRecord('Audit Logs', input, connPool, userPayload, pubSub);
14215
14826
  }
14216
14827
 
14828
+ @Mutation(() => AuditLog_)
14829
+ async DeleteAuditLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
14830
+ const connPool = GetReadWriteDataSource(dataSources);
14831
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
14832
+ return this.DeleteRecord('Audit Logs', key, options, connPool, userPayload, pubSub);
14833
+ }
14834
+
14217
14835
  }
14218
14836
 
14219
14837
  //****************************************************************************
@@ -14270,6 +14888,59 @@ export class Authorization_ {
14270
14888
  AuditLogTypes_AuthorizationNameArray: AuditLogType_[]; // Link to AuditLogTypes
14271
14889
 
14272
14890
  }
14891
+
14892
+ //****************************************************************************
14893
+ // INPUT TYPE for Authorizations
14894
+ //****************************************************************************
14895
+ @InputType()
14896
+ export class CreateAuthorizationInput {
14897
+ @Field({ nullable: true })
14898
+ ID?: string;
14899
+
14900
+ @Field({ nullable: true })
14901
+ ParentID: string | null;
14902
+
14903
+ @Field({ nullable: true })
14904
+ Name?: string;
14905
+
14906
+ @Field(() => Boolean, { nullable: true })
14907
+ IsActive?: boolean;
14908
+
14909
+ @Field(() => Boolean, { nullable: true })
14910
+ UseAuditLog?: boolean;
14911
+
14912
+ @Field({ nullable: true })
14913
+ Description: string | null;
14914
+ }
14915
+
14916
+
14917
+ //****************************************************************************
14918
+ // INPUT TYPE for Authorizations
14919
+ //****************************************************************************
14920
+ @InputType()
14921
+ export class UpdateAuthorizationInput {
14922
+ @Field()
14923
+ ID: string;
14924
+
14925
+ @Field({ nullable: true })
14926
+ ParentID?: string | null;
14927
+
14928
+ @Field({ nullable: true })
14929
+ Name?: string;
14930
+
14931
+ @Field(() => Boolean, { nullable: true })
14932
+ IsActive?: boolean;
14933
+
14934
+ @Field(() => Boolean, { nullable: true })
14935
+ UseAuditLog?: boolean;
14936
+
14937
+ @Field({ nullable: true })
14938
+ Description?: string | null;
14939
+
14940
+ @Field(() => [KeyValuePairInput], { nullable: true })
14941
+ OldValues___?: KeyValuePairInput[];
14942
+ }
14943
+
14273
14944
  //****************************************************************************
14274
14945
  // RESOLVER for Authorizations
14275
14946
  //****************************************************************************
@@ -14387,6 +15058,33 @@ export class AuthorizationResolver extends ResolverBase {
14387
15058
  return result;
14388
15059
  }
14389
15060
 
15061
+ @Mutation(() => Authorization_)
15062
+ async CreateAuthorization(
15063
+ @Arg('input', () => CreateAuthorizationInput) input: CreateAuthorizationInput,
15064
+ @Ctx() { dataSources, userPayload }: AppContext,
15065
+ @PubSub() pubSub: PubSubEngine
15066
+ ) {
15067
+ const connPool = GetReadWriteDataSource(dataSources);
15068
+ return this.CreateRecord('Authorizations', input, connPool, userPayload, pubSub)
15069
+ }
15070
+
15071
+ @Mutation(() => Authorization_)
15072
+ async UpdateAuthorization(
15073
+ @Arg('input', () => UpdateAuthorizationInput) input: UpdateAuthorizationInput,
15074
+ @Ctx() { dataSources, userPayload }: AppContext,
15075
+ @PubSub() pubSub: PubSubEngine
15076
+ ) {
15077
+ const connPool = GetReadWriteDataSource(dataSources);
15078
+ return this.UpdateRecord('Authorizations', input, connPool, userPayload, pubSub);
15079
+ }
15080
+
15081
+ @Mutation(() => Authorization_)
15082
+ async DeleteAuthorization(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
15083
+ const connPool = GetReadWriteDataSource(dataSources);
15084
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
15085
+ return this.DeleteRecord('Authorizations', key, options, connPool, userPayload, pubSub);
15086
+ }
15087
+
14390
15088
  }
14391
15089
 
14392
15090
  //****************************************************************************
@@ -14427,6 +15125,47 @@ export class AuthorizationRole_ {
14427
15125
  Role: string;
14428
15126
 
14429
15127
  }
15128
+
15129
+ //****************************************************************************
15130
+ // INPUT TYPE for Authorization Roles
15131
+ //****************************************************************************
15132
+ @InputType()
15133
+ export class CreateAuthorizationRoleInput {
15134
+ @Field({ nullable: true })
15135
+ ID?: string;
15136
+
15137
+ @Field({ nullable: true })
15138
+ AuthorizationID?: string;
15139
+
15140
+ @Field({ nullable: true })
15141
+ RoleID?: string;
15142
+
15143
+ @Field({ nullable: true })
15144
+ Type?: string;
15145
+ }
15146
+
15147
+
15148
+ //****************************************************************************
15149
+ // INPUT TYPE for Authorization Roles
15150
+ //****************************************************************************
15151
+ @InputType()
15152
+ export class UpdateAuthorizationRoleInput {
15153
+ @Field()
15154
+ ID: string;
15155
+
15156
+ @Field({ nullable: true })
15157
+ AuthorizationID?: string;
15158
+
15159
+ @Field({ nullable: true })
15160
+ RoleID?: string;
15161
+
15162
+ @Field({ nullable: true })
15163
+ Type?: string;
15164
+
15165
+ @Field(() => [KeyValuePairInput], { nullable: true })
15166
+ OldValues___?: KeyValuePairInput[];
15167
+ }
15168
+
14430
15169
  //****************************************************************************
14431
15170
  // RESOLVER for Authorization Roles
14432
15171
  //****************************************************************************
@@ -14494,6 +15233,33 @@ export class AuthorizationRoleResolver extends ResolverBase {
14494
15233
  return result;
14495
15234
  }
14496
15235
 
15236
+ @Mutation(() => AuthorizationRole_)
15237
+ async CreateAuthorizationRole(
15238
+ @Arg('input', () => CreateAuthorizationRoleInput) input: CreateAuthorizationRoleInput,
15239
+ @Ctx() { dataSources, userPayload }: AppContext,
15240
+ @PubSub() pubSub: PubSubEngine
15241
+ ) {
15242
+ const connPool = GetReadWriteDataSource(dataSources);
15243
+ return this.CreateRecord('Authorization Roles', input, connPool, userPayload, pubSub)
15244
+ }
15245
+
15246
+ @Mutation(() => AuthorizationRole_)
15247
+ async UpdateAuthorizationRole(
15248
+ @Arg('input', () => UpdateAuthorizationRoleInput) input: UpdateAuthorizationRoleInput,
15249
+ @Ctx() { dataSources, userPayload }: AppContext,
15250
+ @PubSub() pubSub: PubSubEngine
15251
+ ) {
15252
+ const connPool = GetReadWriteDataSource(dataSources);
15253
+ return this.UpdateRecord('Authorization Roles', input, connPool, userPayload, pubSub);
15254
+ }
15255
+
15256
+ @Mutation(() => AuthorizationRole_)
15257
+ async DeleteAuthorizationRole(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
15258
+ const connPool = GetReadWriteDataSource(dataSources);
15259
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
15260
+ return this.DeleteRecord('Authorization Roles', key, options, connPool, userPayload, pubSub);
15261
+ }
15262
+
14497
15263
  }
14498
15264
 
14499
15265
  //****************************************************************************
@@ -14543,6 +15309,53 @@ export class AuditLogType_ {
14543
15309
  AuditLogs_AuditLogTypeNameArray: AuditLog_[]; // Link to AuditLogs
14544
15310
 
14545
15311
  }
15312
+
15313
+ //****************************************************************************
15314
+ // INPUT TYPE for Audit Log Types
15315
+ //****************************************************************************
15316
+ @InputType()
15317
+ export class CreateAuditLogTypeInput {
15318
+ @Field({ nullable: true })
15319
+ ID?: string;
15320
+
15321
+ @Field({ nullable: true })
15322
+ Name?: string;
15323
+
15324
+ @Field({ nullable: true })
15325
+ Description: string | null;
15326
+
15327
+ @Field({ nullable: true })
15328
+ ParentID: string | null;
15329
+
15330
+ @Field({ nullable: true })
15331
+ AuthorizationID: string | null;
15332
+ }
15333
+
15334
+
15335
+ //****************************************************************************
15336
+ // INPUT TYPE for Audit Log Types
15337
+ //****************************************************************************
15338
+ @InputType()
15339
+ export class UpdateAuditLogTypeInput {
15340
+ @Field()
15341
+ ID: string;
15342
+
15343
+ @Field({ nullable: true })
15344
+ Name?: string;
15345
+
15346
+ @Field({ nullable: true })
15347
+ Description?: string | null;
15348
+
15349
+ @Field({ nullable: true })
15350
+ ParentID?: string | null;
15351
+
15352
+ @Field({ nullable: true })
15353
+ AuthorizationID?: string | null;
15354
+
15355
+ @Field(() => [KeyValuePairInput], { nullable: true })
15356
+ OldValues___?: KeyValuePairInput[];
15357
+ }
15358
+
14546
15359
  //****************************************************************************
14547
15360
  // RESOLVER for Audit Log Types
14548
15361
  //****************************************************************************
@@ -14630,6 +15443,33 @@ export class AuditLogTypeResolver extends ResolverBase {
14630
15443
  return result;
14631
15444
  }
14632
15445
 
15446
+ @Mutation(() => AuditLogType_)
15447
+ async CreateAuditLogType(
15448
+ @Arg('input', () => CreateAuditLogTypeInput) input: CreateAuditLogTypeInput,
15449
+ @Ctx() { dataSources, userPayload }: AppContext,
15450
+ @PubSub() pubSub: PubSubEngine
15451
+ ) {
15452
+ const connPool = GetReadWriteDataSource(dataSources);
15453
+ return this.CreateRecord('Audit Log Types', input, connPool, userPayload, pubSub)
15454
+ }
15455
+
15456
+ @Mutation(() => AuditLogType_)
15457
+ async UpdateAuditLogType(
15458
+ @Arg('input', () => UpdateAuditLogTypeInput) input: UpdateAuditLogTypeInput,
15459
+ @Ctx() { dataSources, userPayload }: AppContext,
15460
+ @PubSub() pubSub: PubSubEngine
15461
+ ) {
15462
+ const connPool = GetReadWriteDataSource(dataSources);
15463
+ return this.UpdateRecord('Audit Log Types', input, connPool, userPayload, pubSub);
15464
+ }
15465
+
15466
+ @Mutation(() => AuditLogType_)
15467
+ async DeleteAuditLogType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
15468
+ const connPool = GetReadWriteDataSource(dataSources);
15469
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
15470
+ return this.DeleteRecord('Audit Log Types', key, options, connPool, userPayload, pubSub);
15471
+ }
15472
+
14633
15473
  }
14634
15474
 
14635
15475
  //****************************************************************************
@@ -14681,6 +15521,31 @@ export class EntityFieldValue_ {
14681
15521
 
14682
15522
  }
14683
15523
 
15524
+ //****************************************************************************
15525
+ // INPUT TYPE for Entity Field Values
15526
+ //****************************************************************************
15527
+ @InputType()
15528
+ export class CreateEntityFieldValueInput {
15529
+ @Field({ nullable: true })
15530
+ ID?: string;
15531
+
15532
+ @Field({ nullable: true })
15533
+ EntityFieldID?: string;
15534
+
15535
+ @Field(() => Int, { nullable: true })
15536
+ Sequence?: number;
15537
+
15538
+ @Field({ nullable: true })
15539
+ Value?: string;
15540
+
15541
+ @Field({ nullable: true })
15542
+ Code: string | null;
15543
+
15544
+ @Field({ nullable: true })
15545
+ Description: string | null;
15546
+ }
15547
+
15548
+
14684
15549
  //****************************************************************************
14685
15550
  // INPUT TYPE for Entity Field Values
14686
15551
  //****************************************************************************
@@ -14775,6 +15640,16 @@ export class EntityFieldValueResolver extends ResolverBase {
14775
15640
  return result;
14776
15641
  }
14777
15642
 
15643
+ @Mutation(() => EntityFieldValue_)
15644
+ async CreateEntityFieldValue(
15645
+ @Arg('input', () => CreateEntityFieldValueInput) input: CreateEntityFieldValueInput,
15646
+ @Ctx() { dataSources, userPayload }: AppContext,
15647
+ @PubSub() pubSub: PubSubEngine
15648
+ ) {
15649
+ const connPool = GetReadWriteDataSource(dataSources);
15650
+ return this.CreateRecord('Entity Field Values', input, connPool, userPayload, pubSub)
15651
+ }
15652
+
14778
15653
  @Mutation(() => EntityFieldValue_)
14779
15654
  async UpdateEntityFieldValue(
14780
15655
  @Arg('input', () => UpdateEntityFieldValueInput) input: UpdateEntityFieldValueInput,
@@ -14785,6 +15660,13 @@ export class EntityFieldValueResolver extends ResolverBase {
14785
15660
  return this.UpdateRecord('Entity Field Values', input, connPool, userPayload, pubSub);
14786
15661
  }
14787
15662
 
15663
+ @Mutation(() => EntityFieldValue_)
15664
+ async DeleteEntityFieldValue(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
15665
+ const connPool = GetReadWriteDataSource(dataSources);
15666
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
15667
+ return this.DeleteRecord('Entity Field Values', key, options, connPool, userPayload, pubSub);
15668
+ }
15669
+
14788
15670
  }
14789
15671
 
14790
15672
  //****************************************************************************
@@ -16075,19 +16957,72 @@ export class QueueType_ {
16075
16957
  Queues_QueueTypeIDArray: Queue_[]; // Link to Queues
16076
16958
 
16077
16959
  }
16960
+
16078
16961
  //****************************************************************************
16079
- // RESOLVER for Queue Types
16962
+ // INPUT TYPE for Queue Types
16080
16963
  //****************************************************************************
16081
- @ObjectType()
16082
- export class RunQueueTypeViewResult {
16083
- @Field(() => [QueueType_])
16084
- Results: QueueType_[];
16964
+ @InputType()
16965
+ export class CreateQueueTypeInput {
16966
+ @Field({ nullable: true })
16967
+ ID?: string;
16085
16968
 
16086
- @Field(() => String, {nullable: true})
16087
- UserViewRunID?: string;
16969
+ @Field({ nullable: true })
16970
+ Name?: string;
16088
16971
 
16089
- @Field(() => Int, {nullable: true})
16090
- RowCount: number;
16972
+ @Field({ nullable: true })
16973
+ Description: string | null;
16974
+
16975
+ @Field({ nullable: true })
16976
+ DriverClass?: string;
16977
+
16978
+ @Field({ nullable: true })
16979
+ DriverImportPath: string | null;
16980
+
16981
+ @Field(() => Boolean, { nullable: true })
16982
+ IsActive?: boolean;
16983
+ }
16984
+
16985
+
16986
+ //****************************************************************************
16987
+ // INPUT TYPE for Queue Types
16988
+ //****************************************************************************
16989
+ @InputType()
16990
+ export class UpdateQueueTypeInput {
16991
+ @Field()
16992
+ ID: string;
16993
+
16994
+ @Field({ nullable: true })
16995
+ Name?: string;
16996
+
16997
+ @Field({ nullable: true })
16998
+ Description?: string | null;
16999
+
17000
+ @Field({ nullable: true })
17001
+ DriverClass?: string;
17002
+
17003
+ @Field({ nullable: true })
17004
+ DriverImportPath?: string | null;
17005
+
17006
+ @Field(() => Boolean, { nullable: true })
17007
+ IsActive?: boolean;
17008
+
17009
+ @Field(() => [KeyValuePairInput], { nullable: true })
17010
+ OldValues___?: KeyValuePairInput[];
17011
+ }
17012
+
17013
+ //****************************************************************************
17014
+ // RESOLVER for Queue Types
17015
+ //****************************************************************************
17016
+ @ObjectType()
17017
+ export class RunQueueTypeViewResult {
17018
+ @Field(() => [QueueType_])
17019
+ Results: QueueType_[];
17020
+
17021
+ @Field(() => String, {nullable: true})
17022
+ UserViewRunID?: string;
17023
+
17024
+ @Field(() => Int, {nullable: true})
17025
+ RowCount: number;
16091
17026
 
16092
17027
  @Field(() => Int, {nullable: true})
16093
17028
  TotalRowCount: number;
@@ -16142,6 +17077,33 @@ export class QueueTypeResolver extends ResolverBase {
16142
17077
  return result;
16143
17078
  }
16144
17079
 
17080
+ @Mutation(() => QueueType_)
17081
+ async CreateQueueType(
17082
+ @Arg('input', () => CreateQueueTypeInput) input: CreateQueueTypeInput,
17083
+ @Ctx() { dataSources, userPayload }: AppContext,
17084
+ @PubSub() pubSub: PubSubEngine
17085
+ ) {
17086
+ const connPool = GetReadWriteDataSource(dataSources);
17087
+ return this.CreateRecord('Queue Types', input, connPool, userPayload, pubSub)
17088
+ }
17089
+
17090
+ @Mutation(() => QueueType_)
17091
+ async UpdateQueueType(
17092
+ @Arg('input', () => UpdateQueueTypeInput) input: UpdateQueueTypeInput,
17093
+ @Ctx() { dataSources, userPayload }: AppContext,
17094
+ @PubSub() pubSub: PubSubEngine
17095
+ ) {
17096
+ const connPool = GetReadWriteDataSource(dataSources);
17097
+ return this.UpdateRecord('Queue Types', input, connPool, userPayload, pubSub);
17098
+ }
17099
+
17100
+ @Mutation(() => QueueType_)
17101
+ async DeleteQueueType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17102
+ const connPool = GetReadWriteDataSource(dataSources);
17103
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17104
+ return this.DeleteRecord('Queue Types', key, options, connPool, userPayload, pubSub);
17105
+ }
17106
+
16145
17107
  }
16146
17108
 
16147
17109
  //****************************************************************************
@@ -16436,6 +17398,13 @@ export class QueueResolver extends ResolverBase {
16436
17398
  return this.UpdateRecord('Queues', input, connPool, userPayload, pubSub);
16437
17399
  }
16438
17400
 
17401
+ @Mutation(() => Queue_)
17402
+ async DeleteQueue(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17403
+ const connPool = GetReadWriteDataSource(dataSources);
17404
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17405
+ return this.DeleteRecord('Queues', key, options, connPool, userPayload, pubSub);
17406
+ }
17407
+
16439
17408
  }
16440
17409
 
16441
17410
  //****************************************************************************
@@ -16645,6 +17614,13 @@ export class QueueTaskResolver extends ResolverBase {
16645
17614
  return this.UpdateRecord('Queue Tasks', input, connPool, userPayload, pubSub);
16646
17615
  }
16647
17616
 
17617
+ @Mutation(() => QueueTask_)
17618
+ async DeleteQueueTask(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17619
+ const connPool = GetReadWriteDataSource(dataSources);
17620
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17621
+ return this.DeleteRecord('Queue Tasks', key, options, connPool, userPayload, pubSub);
17622
+ }
17623
+
16648
17624
  }
16649
17625
 
16650
17626
  //****************************************************************************
@@ -16947,6 +17923,41 @@ export class OutputTriggerType_ {
16947
17923
  Reports_OutputTriggerTypeIDArray: Report_[]; // Link to Reports
16948
17924
 
16949
17925
  }
17926
+
17927
+ //****************************************************************************
17928
+ // INPUT TYPE for Output Trigger Types
17929
+ //****************************************************************************
17930
+ @InputType()
17931
+ export class CreateOutputTriggerTypeInput {
17932
+ @Field({ nullable: true })
17933
+ ID?: string;
17934
+
17935
+ @Field({ nullable: true })
17936
+ Name?: string;
17937
+
17938
+ @Field({ nullable: true })
17939
+ Description: string | null;
17940
+ }
17941
+
17942
+
17943
+ //****************************************************************************
17944
+ // INPUT TYPE for Output Trigger Types
17945
+ //****************************************************************************
17946
+ @InputType()
17947
+ export class UpdateOutputTriggerTypeInput {
17948
+ @Field()
17949
+ ID: string;
17950
+
17951
+ @Field({ nullable: true })
17952
+ Name?: string;
17953
+
17954
+ @Field({ nullable: true })
17955
+ Description?: string | null;
17956
+
17957
+ @Field(() => [KeyValuePairInput], { nullable: true })
17958
+ OldValues___?: KeyValuePairInput[];
17959
+ }
17960
+
16950
17961
  //****************************************************************************
16951
17962
  // RESOLVER for Output Trigger Types
16952
17963
  //****************************************************************************
@@ -17014,6 +18025,33 @@ export class OutputTriggerTypeResolver extends ResolverBase {
17014
18025
  return result;
17015
18026
  }
17016
18027
 
18028
+ @Mutation(() => OutputTriggerType_)
18029
+ async CreateOutputTriggerType(
18030
+ @Arg('input', () => CreateOutputTriggerTypeInput) input: CreateOutputTriggerTypeInput,
18031
+ @Ctx() { dataSources, userPayload }: AppContext,
18032
+ @PubSub() pubSub: PubSubEngine
18033
+ ) {
18034
+ const connPool = GetReadWriteDataSource(dataSources);
18035
+ return this.CreateRecord('Output Trigger Types', input, connPool, userPayload, pubSub)
18036
+ }
18037
+
18038
+ @Mutation(() => OutputTriggerType_)
18039
+ async UpdateOutputTriggerType(
18040
+ @Arg('input', () => UpdateOutputTriggerTypeInput) input: UpdateOutputTriggerTypeInput,
18041
+ @Ctx() { dataSources, userPayload }: AppContext,
18042
+ @PubSub() pubSub: PubSubEngine
18043
+ ) {
18044
+ const connPool = GetReadWriteDataSource(dataSources);
18045
+ return this.UpdateRecord('Output Trigger Types', input, connPool, userPayload, pubSub);
18046
+ }
18047
+
18048
+ @Mutation(() => OutputTriggerType_)
18049
+ async DeleteOutputTriggerType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18050
+ const connPool = GetReadWriteDataSource(dataSources);
18051
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
18052
+ return this.DeleteRecord('Output Trigger Types', key, options, connPool, userPayload, pubSub);
18053
+ }
18054
+
17017
18055
  }
17018
18056
 
17019
18057
  //****************************************************************************
@@ -17047,6 +18085,47 @@ export class OutputFormatType_ {
17047
18085
  Reports_OutputFormatTypeIDArray: Report_[]; // Link to Reports
17048
18086
 
17049
18087
  }
18088
+
18089
+ //****************************************************************************
18090
+ // INPUT TYPE for Output Format Types
18091
+ //****************************************************************************
18092
+ @InputType()
18093
+ export class CreateOutputFormatTypeInput {
18094
+ @Field({ nullable: true })
18095
+ ID?: string;
18096
+
18097
+ @Field({ nullable: true })
18098
+ Name?: string;
18099
+
18100
+ @Field({ nullable: true })
18101
+ Description: string | null;
18102
+
18103
+ @Field({ nullable: true })
18104
+ DisplayFormat: string | null;
18105
+ }
18106
+
18107
+
18108
+ //****************************************************************************
18109
+ // INPUT TYPE for Output Format Types
18110
+ //****************************************************************************
18111
+ @InputType()
18112
+ export class UpdateOutputFormatTypeInput {
18113
+ @Field()
18114
+ ID: string;
18115
+
18116
+ @Field({ nullable: true })
18117
+ Name?: string;
18118
+
18119
+ @Field({ nullable: true })
18120
+ Description?: string | null;
18121
+
18122
+ @Field({ nullable: true })
18123
+ DisplayFormat?: string | null;
18124
+
18125
+ @Field(() => [KeyValuePairInput], { nullable: true })
18126
+ OldValues___?: KeyValuePairInput[];
18127
+ }
18128
+
17050
18129
  //****************************************************************************
17051
18130
  // RESOLVER for Output Format Types
17052
18131
  //****************************************************************************
@@ -17114,6 +18193,33 @@ export class OutputFormatTypeResolver extends ResolverBase {
17114
18193
  return result;
17115
18194
  }
17116
18195
 
18196
+ @Mutation(() => OutputFormatType_)
18197
+ async CreateOutputFormatType(
18198
+ @Arg('input', () => CreateOutputFormatTypeInput) input: CreateOutputFormatTypeInput,
18199
+ @Ctx() { dataSources, userPayload }: AppContext,
18200
+ @PubSub() pubSub: PubSubEngine
18201
+ ) {
18202
+ const connPool = GetReadWriteDataSource(dataSources);
18203
+ return this.CreateRecord('Output Format Types', input, connPool, userPayload, pubSub)
18204
+ }
18205
+
18206
+ @Mutation(() => OutputFormatType_)
18207
+ async UpdateOutputFormatType(
18208
+ @Arg('input', () => UpdateOutputFormatTypeInput) input: UpdateOutputFormatTypeInput,
18209
+ @Ctx() { dataSources, userPayload }: AppContext,
18210
+ @PubSub() pubSub: PubSubEngine
18211
+ ) {
18212
+ const connPool = GetReadWriteDataSource(dataSources);
18213
+ return this.UpdateRecord('Output Format Types', input, connPool, userPayload, pubSub);
18214
+ }
18215
+
18216
+ @Mutation(() => OutputFormatType_)
18217
+ async DeleteOutputFormatType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18218
+ const connPool = GetReadWriteDataSource(dataSources);
18219
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
18220
+ return this.DeleteRecord('Output Format Types', key, options, connPool, userPayload, pubSub);
18221
+ }
18222
+
17117
18223
  }
17118
18224
 
17119
18225
  //****************************************************************************
@@ -17144,6 +18250,41 @@ export class OutputDeliveryType_ {
17144
18250
  Reports_OutputDeliveryTypeIDArray: Report_[]; // Link to Reports
17145
18251
 
17146
18252
  }
18253
+
18254
+ //****************************************************************************
18255
+ // INPUT TYPE for Output Delivery Types
18256
+ //****************************************************************************
18257
+ @InputType()
18258
+ export class CreateOutputDeliveryTypeInput {
18259
+ @Field({ nullable: true })
18260
+ ID?: string;
18261
+
18262
+ @Field({ nullable: true })
18263
+ Name?: string;
18264
+
18265
+ @Field({ nullable: true })
18266
+ Description: string | null;
18267
+ }
18268
+
18269
+
18270
+ //****************************************************************************
18271
+ // INPUT TYPE for Output Delivery Types
18272
+ //****************************************************************************
18273
+ @InputType()
18274
+ export class UpdateOutputDeliveryTypeInput {
18275
+ @Field()
18276
+ ID: string;
18277
+
18278
+ @Field({ nullable: true })
18279
+ Name?: string;
18280
+
18281
+ @Field({ nullable: true })
18282
+ Description?: string | null;
18283
+
18284
+ @Field(() => [KeyValuePairInput], { nullable: true })
18285
+ OldValues___?: KeyValuePairInput[];
18286
+ }
18287
+
17147
18288
  //****************************************************************************
17148
18289
  // RESOLVER for Output Delivery Types
17149
18290
  //****************************************************************************
@@ -17211,6 +18352,33 @@ export class OutputDeliveryTypeResolver extends ResolverBase {
17211
18352
  return result;
17212
18353
  }
17213
18354
 
18355
+ @Mutation(() => OutputDeliveryType_)
18356
+ async CreateOutputDeliveryType(
18357
+ @Arg('input', () => CreateOutputDeliveryTypeInput) input: CreateOutputDeliveryTypeInput,
18358
+ @Ctx() { dataSources, userPayload }: AppContext,
18359
+ @PubSub() pubSub: PubSubEngine
18360
+ ) {
18361
+ const connPool = GetReadWriteDataSource(dataSources);
18362
+ return this.CreateRecord('Output Delivery Types', input, connPool, userPayload, pubSub)
18363
+ }
18364
+
18365
+ @Mutation(() => OutputDeliveryType_)
18366
+ async UpdateOutputDeliveryType(
18367
+ @Arg('input', () => UpdateOutputDeliveryTypeInput) input: UpdateOutputDeliveryTypeInput,
18368
+ @Ctx() { dataSources, userPayload }: AppContext,
18369
+ @PubSub() pubSub: PubSubEngine
18370
+ ) {
18371
+ const connPool = GetReadWriteDataSource(dataSources);
18372
+ return this.UpdateRecord('Output Delivery Types', input, connPool, userPayload, pubSub);
18373
+ }
18374
+
18375
+ @Mutation(() => OutputDeliveryType_)
18376
+ async DeleteOutputDeliveryType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18377
+ const connPool = GetReadWriteDataSource(dataSources);
18378
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
18379
+ return this.DeleteRecord('Output Delivery Types', key, options, connPool, userPayload, pubSub);
18380
+ }
18381
+
17214
18382
  }
17215
18383
 
17216
18384
  //****************************************************************************
@@ -17793,6 +18961,65 @@ export class ResourceType_ {
17793
18961
  ResourcePermissions_ResourceTypeIDArray: ResourcePermission_[]; // Link to ResourcePermissions
17794
18962
 
17795
18963
  }
18964
+
18965
+ //****************************************************************************
18966
+ // INPUT TYPE for Resource Types
18967
+ //****************************************************************************
18968
+ @InputType()
18969
+ export class CreateResourceTypeInput {
18970
+ @Field({ nullable: true })
18971
+ ID?: string;
18972
+
18973
+ @Field({ nullable: true })
18974
+ Name?: string;
18975
+
18976
+ @Field({ nullable: true })
18977
+ DisplayName?: string;
18978
+
18979
+ @Field({ nullable: true })
18980
+ Description: string | null;
18981
+
18982
+ @Field({ nullable: true })
18983
+ Icon: string | null;
18984
+
18985
+ @Field({ nullable: true })
18986
+ EntityID: string | null;
18987
+
18988
+ @Field({ nullable: true })
18989
+ CategoryEntityID: string | null;
18990
+ }
18991
+
18992
+
18993
+ //****************************************************************************
18994
+ // INPUT TYPE for Resource Types
18995
+ //****************************************************************************
18996
+ @InputType()
18997
+ export class UpdateResourceTypeInput {
18998
+ @Field()
18999
+ ID: string;
19000
+
19001
+ @Field({ nullable: true })
19002
+ Name?: string;
19003
+
19004
+ @Field({ nullable: true })
19005
+ DisplayName?: string;
19006
+
19007
+ @Field({ nullable: true })
19008
+ Description?: string | null;
19009
+
19010
+ @Field({ nullable: true })
19011
+ Icon?: string | null;
19012
+
19013
+ @Field({ nullable: true })
19014
+ EntityID?: string | null;
19015
+
19016
+ @Field({ nullable: true })
19017
+ CategoryEntityID?: string | null;
19018
+
19019
+ @Field(() => [KeyValuePairInput], { nullable: true })
19020
+ OldValues___?: KeyValuePairInput[];
19021
+ }
19022
+
17796
19023
  //****************************************************************************
17797
19024
  // RESOLVER for Resource Types
17798
19025
  //****************************************************************************
@@ -17890,6 +19117,33 @@ export class ResourceTypeResolver extends ResolverBase {
17890
19117
  return result;
17891
19118
  }
17892
19119
 
19120
+ @Mutation(() => ResourceType_)
19121
+ async CreateResourceType(
19122
+ @Arg('input', () => CreateResourceTypeInput) input: CreateResourceTypeInput,
19123
+ @Ctx() { dataSources, userPayload }: AppContext,
19124
+ @PubSub() pubSub: PubSubEngine
19125
+ ) {
19126
+ const connPool = GetReadWriteDataSource(dataSources);
19127
+ return this.CreateRecord('Resource Types', input, connPool, userPayload, pubSub)
19128
+ }
19129
+
19130
+ @Mutation(() => ResourceType_)
19131
+ async UpdateResourceType(
19132
+ @Arg('input', () => UpdateResourceTypeInput) input: UpdateResourceTypeInput,
19133
+ @Ctx() { dataSources, userPayload }: AppContext,
19134
+ @PubSub() pubSub: PubSubEngine
19135
+ ) {
19136
+ const connPool = GetReadWriteDataSource(dataSources);
19137
+ return this.UpdateRecord('Resource Types', input, connPool, userPayload, pubSub);
19138
+ }
19139
+
19140
+ @Mutation(() => ResourceType_)
19141
+ async DeleteResourceType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19142
+ const connPool = GetReadWriteDataSource(dataSources);
19143
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
19144
+ return this.DeleteRecord('Resource Types', key, options, connPool, userPayload, pubSub);
19145
+ }
19146
+
17893
19147
  }
17894
19148
 
17895
19149
  //****************************************************************************
@@ -17935,6 +19189,53 @@ export class Tag_ {
17935
19189
  TaggedItems_TagIDArray: TaggedItem_[]; // Link to TaggedItems
17936
19190
 
17937
19191
  }
19192
+
19193
+ //****************************************************************************
19194
+ // INPUT TYPE for Tags
19195
+ //****************************************************************************
19196
+ @InputType()
19197
+ export class CreateTagInput {
19198
+ @Field({ nullable: true })
19199
+ ID?: string;
19200
+
19201
+ @Field({ nullable: true })
19202
+ Name?: string;
19203
+
19204
+ @Field({ nullable: true })
19205
+ ParentID: string | null;
19206
+
19207
+ @Field({ nullable: true })
19208
+ DisplayName?: string;
19209
+
19210
+ @Field({ nullable: true })
19211
+ Description: string | null;
19212
+ }
19213
+
19214
+
19215
+ //****************************************************************************
19216
+ // INPUT TYPE for Tags
19217
+ //****************************************************************************
19218
+ @InputType()
19219
+ export class UpdateTagInput {
19220
+ @Field()
19221
+ ID: string;
19222
+
19223
+ @Field({ nullable: true })
19224
+ Name?: string;
19225
+
19226
+ @Field({ nullable: true })
19227
+ ParentID?: string | null;
19228
+
19229
+ @Field({ nullable: true })
19230
+ DisplayName?: string;
19231
+
19232
+ @Field({ nullable: true })
19233
+ Description?: string | null;
19234
+
19235
+ @Field(() => [KeyValuePairInput], { nullable: true })
19236
+ OldValues___?: KeyValuePairInput[];
19237
+ }
19238
+
17938
19239
  //****************************************************************************
17939
19240
  // RESOLVER for Tags
17940
19241
  //****************************************************************************
@@ -18012,6 +19313,33 @@ export class TagResolver extends ResolverBase {
18012
19313
  return result;
18013
19314
  }
18014
19315
 
19316
+ @Mutation(() => Tag_)
19317
+ async CreateTag(
19318
+ @Arg('input', () => CreateTagInput) input: CreateTagInput,
19319
+ @Ctx() { dataSources, userPayload }: AppContext,
19320
+ @PubSub() pubSub: PubSubEngine
19321
+ ) {
19322
+ const connPool = GetReadWriteDataSource(dataSources);
19323
+ return this.CreateRecord('Tags', input, connPool, userPayload, pubSub)
19324
+ }
19325
+
19326
+ @Mutation(() => Tag_)
19327
+ async UpdateTag(
19328
+ @Arg('input', () => UpdateTagInput) input: UpdateTagInput,
19329
+ @Ctx() { dataSources, userPayload }: AppContext,
19330
+ @PubSub() pubSub: PubSubEngine
19331
+ ) {
19332
+ const connPool = GetReadWriteDataSource(dataSources);
19333
+ return this.UpdateRecord('Tags', input, connPool, userPayload, pubSub);
19334
+ }
19335
+
19336
+ @Mutation(() => Tag_)
19337
+ async DeleteTag(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19338
+ const connPool = GetReadWriteDataSource(dataSources);
19339
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
19340
+ return this.DeleteRecord('Tags', key, options, connPool, userPayload, pubSub);
19341
+ }
19342
+
18015
19343
  }
18016
19344
 
18017
19345
  //****************************************************************************
@@ -18052,6 +19380,47 @@ export class TaggedItem_ {
18052
19380
  Entity: string;
18053
19381
 
18054
19382
  }
19383
+
19384
+ //****************************************************************************
19385
+ // INPUT TYPE for Tagged Items
19386
+ //****************************************************************************
19387
+ @InputType()
19388
+ export class CreateTaggedItemInput {
19389
+ @Field({ nullable: true })
19390
+ ID?: string;
19391
+
19392
+ @Field({ nullable: true })
19393
+ TagID?: string;
19394
+
19395
+ @Field({ nullable: true })
19396
+ EntityID?: string;
19397
+
19398
+ @Field({ nullable: true })
19399
+ RecordID?: string;
19400
+ }
19401
+
19402
+
19403
+ //****************************************************************************
19404
+ // INPUT TYPE for Tagged Items
19405
+ //****************************************************************************
19406
+ @InputType()
19407
+ export class UpdateTaggedItemInput {
19408
+ @Field()
19409
+ ID: string;
19410
+
19411
+ @Field({ nullable: true })
19412
+ TagID?: string;
19413
+
19414
+ @Field({ nullable: true })
19415
+ EntityID?: string;
19416
+
19417
+ @Field({ nullable: true })
19418
+ RecordID?: string;
19419
+
19420
+ @Field(() => [KeyValuePairInput], { nullable: true })
19421
+ OldValues___?: KeyValuePairInput[];
19422
+ }
19423
+
18055
19424
  //****************************************************************************
18056
19425
  // RESOLVER for Tagged Items
18057
19426
  //****************************************************************************
@@ -18109,6 +19478,33 @@ export class TaggedItemResolver extends ResolverBase {
18109
19478
  return result;
18110
19479
  }
18111
19480
 
19481
+ @Mutation(() => TaggedItem_)
19482
+ async CreateTaggedItem(
19483
+ @Arg('input', () => CreateTaggedItemInput) input: CreateTaggedItemInput,
19484
+ @Ctx() { dataSources, userPayload }: AppContext,
19485
+ @PubSub() pubSub: PubSubEngine
19486
+ ) {
19487
+ const connPool = GetReadWriteDataSource(dataSources);
19488
+ return this.CreateRecord('Tagged Items', input, connPool, userPayload, pubSub)
19489
+ }
19490
+
19491
+ @Mutation(() => TaggedItem_)
19492
+ async UpdateTaggedItem(
19493
+ @Arg('input', () => UpdateTaggedItemInput) input: UpdateTaggedItemInput,
19494
+ @Ctx() { dataSources, userPayload }: AppContext,
19495
+ @PubSub() pubSub: PubSubEngine
19496
+ ) {
19497
+ const connPool = GetReadWriteDataSource(dataSources);
19498
+ return this.UpdateRecord('Tagged Items', input, connPool, userPayload, pubSub);
19499
+ }
19500
+
19501
+ @Mutation(() => TaggedItem_)
19502
+ async DeleteTaggedItem(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19503
+ const connPool = GetReadWriteDataSource(dataSources);
19504
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
19505
+ return this.DeleteRecord('Tagged Items', key, options, connPool, userPayload, pubSub);
19506
+ }
19507
+
18112
19508
  }
18113
19509
 
18114
19510
  //****************************************************************************
@@ -18514,6 +19910,41 @@ export class Dataset_ {
18514
19910
  DatasetItems_DatasetNameArray: DatasetItem_[]; // Link to DatasetItems
18515
19911
 
18516
19912
  }
19913
+
19914
+ //****************************************************************************
19915
+ // INPUT TYPE for Datasets
19916
+ //****************************************************************************
19917
+ @InputType()
19918
+ export class CreateDatasetInput {
19919
+ @Field({ nullable: true })
19920
+ ID?: string;
19921
+
19922
+ @Field({ nullable: true })
19923
+ Name?: string;
19924
+
19925
+ @Field({ nullable: true })
19926
+ Description: string | null;
19927
+ }
19928
+
19929
+
19930
+ //****************************************************************************
19931
+ // INPUT TYPE for Datasets
19932
+ //****************************************************************************
19933
+ @InputType()
19934
+ export class UpdateDatasetInput {
19935
+ @Field()
19936
+ ID: string;
19937
+
19938
+ @Field({ nullable: true })
19939
+ Name?: string;
19940
+
19941
+ @Field({ nullable: true })
19942
+ Description?: string | null;
19943
+
19944
+ @Field(() => [KeyValuePairInput], { nullable: true })
19945
+ OldValues___?: KeyValuePairInput[];
19946
+ }
19947
+
18517
19948
  //****************************************************************************
18518
19949
  // RESOLVER for Datasets
18519
19950
  //****************************************************************************
@@ -18581,6 +20012,33 @@ export class DatasetResolver extends ResolverBase {
18581
20012
  return result;
18582
20013
  }
18583
20014
 
20015
+ @Mutation(() => Dataset_)
20016
+ async CreateDataset(
20017
+ @Arg('input', () => CreateDatasetInput) input: CreateDatasetInput,
20018
+ @Ctx() { dataSources, userPayload }: AppContext,
20019
+ @PubSub() pubSub: PubSubEngine
20020
+ ) {
20021
+ const connPool = GetReadWriteDataSource(dataSources);
20022
+ return this.CreateRecord('Datasets', input, connPool, userPayload, pubSub)
20023
+ }
20024
+
20025
+ @Mutation(() => Dataset_)
20026
+ async UpdateDataset(
20027
+ @Arg('input', () => UpdateDatasetInput) input: UpdateDatasetInput,
20028
+ @Ctx() { dataSources, userPayload }: AppContext,
20029
+ @PubSub() pubSub: PubSubEngine
20030
+ ) {
20031
+ const connPool = GetReadWriteDataSource(dataSources);
20032
+ return this.UpdateRecord('Datasets', input, connPool, userPayload, pubSub);
20033
+ }
20034
+
20035
+ @Mutation(() => Dataset_)
20036
+ async DeleteDataset(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20037
+ const connPool = GetReadWriteDataSource(dataSources);
20038
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
20039
+ return this.DeleteRecord('Datasets', key, options, connPool, userPayload, pubSub);
20040
+ }
20041
+
18584
20042
  }
18585
20043
 
18586
20044
  //****************************************************************************
@@ -18637,6 +20095,77 @@ export class DatasetItem_ {
18637
20095
  Entity: string;
18638
20096
 
18639
20097
  }
20098
+
20099
+ //****************************************************************************
20100
+ // INPUT TYPE for Dataset Items
20101
+ //****************************************************************************
20102
+ @InputType()
20103
+ export class CreateDatasetItemInput {
20104
+ @Field({ nullable: true })
20105
+ ID?: string;
20106
+
20107
+ @Field({ nullable: true })
20108
+ Code?: string;
20109
+
20110
+ @Field({ nullable: true })
20111
+ DatasetID?: string;
20112
+
20113
+ @Field(() => Int, { nullable: true })
20114
+ Sequence?: number;
20115
+
20116
+ @Field({ nullable: true })
20117
+ EntityID?: string;
20118
+
20119
+ @Field({ nullable: true })
20120
+ WhereClause: string | null;
20121
+
20122
+ @Field({ nullable: true })
20123
+ DateFieldToCheck?: string;
20124
+
20125
+ @Field({ nullable: true })
20126
+ Description: string | null;
20127
+
20128
+ @Field({ nullable: true })
20129
+ Columns: string | null;
20130
+ }
20131
+
20132
+
20133
+ //****************************************************************************
20134
+ // INPUT TYPE for Dataset Items
20135
+ //****************************************************************************
20136
+ @InputType()
20137
+ export class UpdateDatasetItemInput {
20138
+ @Field()
20139
+ ID: string;
20140
+
20141
+ @Field({ nullable: true })
20142
+ Code?: string;
20143
+
20144
+ @Field({ nullable: true })
20145
+ DatasetID?: string;
20146
+
20147
+ @Field(() => Int, { nullable: true })
20148
+ Sequence?: number;
20149
+
20150
+ @Field({ nullable: true })
20151
+ EntityID?: string;
20152
+
20153
+ @Field({ nullable: true })
20154
+ WhereClause?: string | null;
20155
+
20156
+ @Field({ nullable: true })
20157
+ DateFieldToCheck?: string;
20158
+
20159
+ @Field({ nullable: true })
20160
+ Description?: string | null;
20161
+
20162
+ @Field({ nullable: true })
20163
+ Columns?: string | null;
20164
+
20165
+ @Field(() => [KeyValuePairInput], { nullable: true })
20166
+ OldValues___?: KeyValuePairInput[];
20167
+ }
20168
+
18640
20169
  //****************************************************************************
18641
20170
  // RESOLVER for Dataset Items
18642
20171
  //****************************************************************************
@@ -18694,6 +20223,33 @@ export class DatasetItemResolver extends ResolverBase {
18694
20223
  return result;
18695
20224
  }
18696
20225
 
20226
+ @Mutation(() => DatasetItem_)
20227
+ async CreateDatasetItem(
20228
+ @Arg('input', () => CreateDatasetItemInput) input: CreateDatasetItemInput,
20229
+ @Ctx() { dataSources, userPayload }: AppContext,
20230
+ @PubSub() pubSub: PubSubEngine
20231
+ ) {
20232
+ const connPool = GetReadWriteDataSource(dataSources);
20233
+ return this.CreateRecord('Dataset Items', input, connPool, userPayload, pubSub)
20234
+ }
20235
+
20236
+ @Mutation(() => DatasetItem_)
20237
+ async UpdateDatasetItem(
20238
+ @Arg('input', () => UpdateDatasetItemInput) input: UpdateDatasetItemInput,
20239
+ @Ctx() { dataSources, userPayload }: AppContext,
20240
+ @PubSub() pubSub: PubSubEngine
20241
+ ) {
20242
+ const connPool = GetReadWriteDataSource(dataSources);
20243
+ return this.UpdateRecord('Dataset Items', input, connPool, userPayload, pubSub);
20244
+ }
20245
+
20246
+ @Mutation(() => DatasetItem_)
20247
+ async DeleteDatasetItem(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20248
+ const connPool = GetReadWriteDataSource(dataSources);
20249
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
20250
+ return this.DeleteRecord('Dataset Items', key, options, connPool, userPayload, pubSub);
20251
+ }
20252
+
18697
20253
  }
18698
20254
 
18699
20255
  //****************************************************************************
@@ -19636,6 +21192,13 @@ export class SchemaInfoResolver extends ResolverBase {
19636
21192
  return this.UpdateRecord('Schema Info', input, connPool, userPayload, pubSub);
19637
21193
  }
19638
21194
 
21195
+ @Mutation(() => SchemaInfo_)
21196
+ async DeleteSchemaInfo(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
21197
+ const connPool = GetReadWriteDataSource(dataSources);
21198
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
21199
+ return this.DeleteRecord('Schema Info', key, options, connPool, userPayload, pubSub);
21200
+ }
21201
+
19639
21202
  }
19640
21203
 
19641
21204
  //****************************************************************************
@@ -19800,6 +21363,13 @@ export class CompanyIntegrationRecordMapResolver extends ResolverBase {
19800
21363
  return this.UpdateRecord('Company Integration Record Maps', input, connPool, userPayload, pubSub);
19801
21364
  }
19802
21365
 
21366
+ @Mutation(() => CompanyIntegrationRecordMap_)
21367
+ async DeleteCompanyIntegrationRecordMap(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
21368
+ const connPool = GetReadWriteDataSource(dataSources);
21369
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
21370
+ return this.DeleteRecord('Company Integration Record Maps', key, options, connPool, userPayload, pubSub);
21371
+ }
21372
+
19803
21373
  }
19804
21374
 
19805
21375
  //****************************************************************************
@@ -20056,6 +21626,13 @@ export class RecordMergeLogResolver extends ResolverBase {
20056
21626
  return this.UpdateRecord('Record Merge Logs', input, connPool, userPayload, pubSub);
20057
21627
  }
20058
21628
 
21629
+ @Mutation(() => RecordMergeLog_)
21630
+ async DeleteRecordMergeLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
21631
+ const connPool = GetReadWriteDataSource(dataSources);
21632
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
21633
+ return this.DeleteRecord('Record Merge Logs', key, options, connPool, userPayload, pubSub);
21634
+ }
21635
+
20059
21636
  }
20060
21637
 
20061
21638
  //****************************************************************************
@@ -20215,6 +21792,13 @@ export class RecordMergeDeletionLogResolver extends ResolverBase {
20215
21792
  return this.UpdateRecord('Record Merge Deletion Logs', input, connPool, userPayload, pubSub);
20216
21793
  }
20217
21794
 
21795
+ @Mutation(() => RecordMergeDeletionLog_)
21796
+ async DeleteRecordMergeDeletionLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
21797
+ const connPool = GetReadWriteDataSource(dataSources);
21798
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
21799
+ return this.DeleteRecord('Record Merge Deletion Logs', key, options, connPool, userPayload, pubSub);
21800
+ }
21801
+
20218
21802
  }
20219
21803
 
20220
21804
  //****************************************************************************
@@ -21614,6 +23198,13 @@ export class EntityDocumentRunResolver extends ResolverBase {
21614
23198
  return this.UpdateRecord('Entity Document Runs', input, connPool, userPayload, pubSub);
21615
23199
  }
21616
23200
 
23201
+ @Mutation(() => EntityDocumentRun_)
23202
+ async DeleteEntityDocumentRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23203
+ const connPool = GetReadWriteDataSource(dataSources);
23204
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
23205
+ return this.DeleteRecord('Entity Document Runs', key, options, connPool, userPayload, pubSub);
23206
+ }
23207
+
21617
23208
  }
21618
23209
 
21619
23210
  //****************************************************************************
@@ -22016,6 +23607,13 @@ export class EntityRecordDocumentResolver extends ResolverBase {
22016
23607
  return this.UpdateRecord('Entity Record Documents', input, connPool, userPayload, pubSub);
22017
23608
  }
22018
23609
 
23610
+ @Mutation(() => EntityRecordDocument_)
23611
+ async DeleteEntityRecordDocument(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23612
+ const connPool = GetReadWriteDataSource(dataSources);
23613
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
23614
+ return this.DeleteRecord('Entity Record Documents', key, options, connPool, userPayload, pubSub);
23615
+ }
23616
+
22019
23617
  }
22020
23618
 
22021
23619
  //****************************************************************************
@@ -22283,6 +23881,13 @@ export class EntityDocumentResolver extends ResolverBase {
22283
23881
  return this.UpdateRecord('Entity Documents', input, connPool, userPayload, pubSub);
22284
23882
  }
22285
23883
 
23884
+ @Mutation(() => EntityDocument_)
23885
+ async DeleteEntityDocument(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23886
+ const connPool = GetReadWriteDataSource(dataSources);
23887
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
23888
+ return this.DeleteRecord('Entity Documents', key, options, connPool, userPayload, pubSub);
23889
+ }
23890
+
22286
23891
  }
22287
23892
 
22288
23893
  //****************************************************************************
@@ -23580,7 +25185,7 @@ export class File_ {
23580
25185
  ProviderID: string;
23581
25186
 
23582
25187
  @Field({nullable: true})
23583
- @MaxLength(100)
25188
+ @MaxLength(510)
23584
25189
  ContentType?: string;
23585
25190
 
23586
25191
  @Field({nullable: true})
@@ -24320,6 +25925,13 @@ export class VersionInstallationResolver extends ResolverBase {
24320
25925
  return this.UpdateRecord('Version Installations', input, connPool, userPayload, pubSub);
24321
25926
  }
24322
25927
 
25928
+ @Mutation(() => VersionInstallation_)
25929
+ async DeleteVersionInstallation(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25930
+ const connPool = GetReadWriteDataSource(dataSources);
25931
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25932
+ return this.DeleteRecord('Version Installations', key, options, connPool, userPayload, pubSub);
25933
+ }
25934
+
24323
25935
  }
24324
25936
 
24325
25937
  //****************************************************************************
@@ -24539,6 +26151,13 @@ export class DuplicateRunDetailMatchResolver extends ResolverBase {
24539
26151
  return this.UpdateRecord('Duplicate Run Detail Matches', input, connPool, userPayload, pubSub);
24540
26152
  }
24541
26153
 
26154
+ @Mutation(() => DuplicateRunDetailMatch_)
26155
+ async DeleteDuplicateRunDetailMatch(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26156
+ const connPool = GetReadWriteDataSource(dataSources);
26157
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26158
+ return this.DeleteRecord('Duplicate Run Detail Matches', key, options, connPool, userPayload, pubSub);
26159
+ }
26160
+
24542
26161
  }
24543
26162
 
24544
26163
  //****************************************************************************
@@ -25124,6 +26743,13 @@ export class DuplicateRunResolver extends ResolverBase {
25124
26743
  return this.UpdateRecord('Duplicate Runs', input, connPool, userPayload, pubSub);
25125
26744
  }
25126
26745
 
26746
+ @Mutation(() => DuplicateRun_)
26747
+ async DeleteDuplicateRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26748
+ const connPool = GetReadWriteDataSource(dataSources);
26749
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26750
+ return this.DeleteRecord('Duplicate Runs', key, options, connPool, userPayload, pubSub);
26751
+ }
26752
+
25127
26753
  }
25128
26754
 
25129
26755
  //****************************************************************************
@@ -25324,6 +26950,13 @@ export class DuplicateRunDetailResolver extends ResolverBase {
25324
26950
  return this.UpdateRecord('Duplicate Run Details', input, connPool, userPayload, pubSub);
25325
26951
  }
25326
26952
 
26953
+ @Mutation(() => DuplicateRunDetail_)
26954
+ async DeleteDuplicateRunDetail(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26955
+ const connPool = GetReadWriteDataSource(dataSources);
26956
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26957
+ return this.DeleteRecord('Duplicate Run Details', key, options, connPool, userPayload, pubSub);
26958
+ }
26959
+
25327
26960
  }
25328
26961
 
25329
26962
  //****************************************************************************
@@ -29112,6 +30745,13 @@ export class CommunicationRunResolver extends ResolverBase {
29112
30745
  return this.UpdateRecord('Communication Runs', input, connPool, userPayload, pubSub);
29113
30746
  }
29114
30747
 
30748
+ @Mutation(() => CommunicationRun_)
30749
+ async DeleteCommunicationRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
30750
+ const connPool = GetReadWriteDataSource(dataSources);
30751
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
30752
+ return this.DeleteRecord('Communication Runs', key, options, connPool, userPayload, pubSub);
30753
+ }
30754
+
29115
30755
  }
29116
30756
 
29117
30757
  //****************************************************************************
@@ -29515,6 +31155,13 @@ export class CommunicationLogResolver extends ResolverBase {
29515
31155
  return this.UpdateRecord('Communication Logs', input, connPool, userPayload, pubSub);
29516
31156
  }
29517
31157
 
31158
+ @Mutation(() => CommunicationLog_)
31159
+ async DeleteCommunicationLog(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
31160
+ const connPool = GetReadWriteDataSource(dataSources);
31161
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
31162
+ return this.DeleteRecord('Communication Logs', key, options, connPool, userPayload, pubSub);
31163
+ }
31164
+
29518
31165
  }
29519
31166
 
29520
31167
  //****************************************************************************
@@ -30968,6 +32615,13 @@ export class RecommendationResolver extends ResolverBase {
30968
32615
  return this.UpdateRecord('Recommendations', input, connPool, userPayload, pubSub);
30969
32616
  }
30970
32617
 
32618
+ @Mutation(() => Recommendation_)
32619
+ async DeleteRecommendation(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
32620
+ const connPool = GetReadWriteDataSource(dataSources);
32621
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
32622
+ return this.DeleteRecord('Recommendations', key, options, connPool, userPayload, pubSub);
32623
+ }
32624
+
30971
32625
  }
30972
32626
 
30973
32627
  //****************************************************************************
@@ -31327,6 +32981,13 @@ export class RecommendationRunResolver extends ResolverBase {
31327
32981
  return this.UpdateRecord('Recommendation Runs', input, connPool, userPayload, pubSub);
31328
32982
  }
31329
32983
 
32984
+ @Mutation(() => RecommendationRun_)
32985
+ async DeleteRecommendationRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
32986
+ const connPool = GetReadWriteDataSource(dataSources);
32987
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
32988
+ return this.DeleteRecord('Recommendation Runs', key, options, connPool, userPayload, pubSub);
32989
+ }
32990
+
31330
32991
  }
31331
32992
 
31332
32993
  //****************************************************************************
@@ -31490,6 +33151,13 @@ export class RecommendationItemResolver extends ResolverBase {
31490
33151
  return this.UpdateRecord('Recommendation Items', input, connPool, userPayload, pubSub);
31491
33152
  }
31492
33153
 
33154
+ @Mutation(() => RecommendationItem_)
33155
+ async DeleteRecommendationItem(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
33156
+ const connPool = GetReadWriteDataSource(dataSources);
33157
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
33158
+ return this.DeleteRecord('Recommendation Items', key, options, connPool, userPayload, pubSub);
33159
+ }
33160
+
31493
33161
  }
31494
33162
 
31495
33163
  //****************************************************************************
@@ -32000,6 +33668,13 @@ export class RecordChangeReplayRunResolver extends ResolverBase {
32000
33668
  return this.UpdateRecord('Record Change Replay Runs', input, connPool, userPayload, pubSub);
32001
33669
  }
32002
33670
 
33671
+ @Mutation(() => RecordChangeReplayRun_)
33672
+ async DeleteRecordChangeReplayRun(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
33673
+ const connPool = GetReadWriteDataSource(dataSources);
33674
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
33675
+ return this.DeleteRecord('Record Change Replay Runs', key, options, connPool, userPayload, pubSub);
33676
+ }
33677
+
32003
33678
  }
32004
33679
 
32005
33680
  //****************************************************************************
@@ -32323,6 +33998,13 @@ export class EntityRelationshipDisplayComponentResolver extends ResolverBase {
32323
33998
  return this.UpdateRecord('Entity Relationship Display Components', input, connPool, userPayload, pubSub);
32324
33999
  }
32325
34000
 
34001
+ @Mutation(() => EntityRelationshipDisplayComponent_)
34002
+ async DeleteEntityRelationshipDisplayComponent(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
34003
+ const connPool = GetReadWriteDataSource(dataSources);
34004
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
34005
+ return this.DeleteRecord('Entity Relationship Display Components', key, options, connPool, userPayload, pubSub);
34006
+ }
34007
+
32326
34008
  }
32327
34009
 
32328
34010
  //****************************************************************************