@memberjunction/server 2.55.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.
@@ -2114,6 +2114,14 @@ export class AIAgent_ {
2114
2114
  @MaxLength(510)
2115
2115
  DriverClass?: string;
2116
2116
 
2117
+ @Field({nullable: true, description: `Font Awesome icon class (e.g., fa-robot, fa-brain) for the agent. Used as fallback when LogoURL is not set or fails to load.`})
2118
+ @MaxLength(200)
2119
+ IconClass?: string;
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
+
2117
2125
  @Field({nullable: true})
2118
2126
  @MaxLength(510)
2119
2127
  Parent?: string;
@@ -2207,6 +2215,12 @@ export class CreateAIAgentInput {
2207
2215
 
2208
2216
  @Field({ nullable: true })
2209
2217
  DriverClass: string | null;
2218
+
2219
+ @Field({ nullable: true })
2220
+ IconClass: string | null;
2221
+
2222
+ @Field({ nullable: true })
2223
+ ModelSelectionMode?: string;
2210
2224
  }
2211
2225
 
2212
2226
 
@@ -2260,6 +2274,12 @@ export class UpdateAIAgentInput {
2260
2274
  @Field({ nullable: true })
2261
2275
  DriverClass?: string | null;
2262
2276
 
2277
+ @Field({ nullable: true })
2278
+ IconClass?: string | null;
2279
+
2280
+ @Field({ nullable: true })
2281
+ ModelSelectionMode?: string;
2282
+
2263
2283
  @Field(() => [KeyValuePairInput], { nullable: true })
2264
2284
  OldValues___?: KeyValuePairInput[];
2265
2285
  }
@@ -5677,6 +5697,28 @@ export class EmployeeCompanyIntegration_ {
5677
5697
 
5678
5698
  }
5679
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
+
5680
5722
  //****************************************************************************
5681
5723
  // INPUT TYPE for Employee Company Integrations
5682
5724
  //****************************************************************************
@@ -5758,6 +5800,16 @@ export class EmployeeCompanyIntegrationResolver extends ResolverBase {
5758
5800
  return result;
5759
5801
  }
5760
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
+
5761
5813
  @Mutation(() => EmployeeCompanyIntegration_)
5762
5814
  async UpdateEmployeeCompanyIntegration(
5763
5815
  @Arg('input', () => UpdateEmployeeCompanyIntegrationInput) input: UpdateEmployeeCompanyIntegrationInput,
@@ -5768,6 +5820,13 @@ export class EmployeeCompanyIntegrationResolver extends ResolverBase {
5768
5820
  return this.UpdateRecord('Employee Company Integrations', input, connPool, userPayload, pubSub);
5769
5821
  }
5770
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
+
5771
5830
  }
5772
5831
 
5773
5832
  //****************************************************************************
@@ -5801,6 +5860,22 @@ export class EmployeeRole_ {
5801
5860
 
5802
5861
  }
5803
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
+
5804
5879
  //****************************************************************************
5805
5880
  // INPUT TYPE for Employee Roles
5806
5881
  //****************************************************************************
@@ -5876,6 +5951,16 @@ export class EmployeeRoleResolver extends ResolverBase {
5876
5951
  return result;
5877
5952
  }
5878
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
+
5879
5964
  @Mutation(() => EmployeeRole_)
5880
5965
  async UpdateEmployeeRole(
5881
5966
  @Arg('input', () => UpdateEmployeeRoleInput) input: UpdateEmployeeRoleInput,
@@ -5926,6 +6011,22 @@ export class EmployeeSkill_ {
5926
6011
 
5927
6012
  }
5928
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
+
5929
6030
  //****************************************************************************
5930
6031
  // INPUT TYPE for Employee Skills
5931
6032
  //****************************************************************************
@@ -6001,6 +6102,16 @@ export class EmployeeSkillResolver extends ResolverBase {
6001
6102
  return result;
6002
6103
  }
6003
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
+
6004
6115
  @Mutation(() => EmployeeSkill_)
6005
6116
  async UpdateEmployeeSkill(
6006
6117
  @Arg('input', () => UpdateEmployeeSkillInput) input: UpdateEmployeeSkillInput,
@@ -6310,6 +6421,41 @@ export class Skill_ {
6310
6421
  Skills_ParentIDArray: Skill_[]; // Link to Skills
6311
6422
 
6312
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
+
6313
6459
  //****************************************************************************
6314
6460
  // RESOLVER for Skills
6315
6461
  //****************************************************************************
@@ -6397,6 +6543,33 @@ export class SkillResolver extends ResolverBase {
6397
6543
  return result;
6398
6544
  }
6399
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
+
6400
6573
  }
6401
6574
 
6402
6575
  //****************************************************************************
@@ -6445,6 +6618,28 @@ export class IntegrationURLFormat_ {
6445
6618
 
6446
6619
  }
6447
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
+
6448
6643
  //****************************************************************************
6449
6644
  // INPUT TYPE for Integration URL Formats
6450
6645
  //****************************************************************************
@@ -6536,6 +6731,16 @@ export class IntegrationURLFormatResolver extends ResolverBase {
6536
6731
  return result;
6537
6732
  }
6538
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
+
6539
6744
  @Mutation(() => IntegrationURLFormat_)
6540
6745
  async UpdateIntegrationURLFormat(
6541
6746
  @Arg('input', () => UpdateIntegrationURLFormatInput) input: UpdateIntegrationURLFormatInput,
@@ -6609,6 +6814,37 @@ export class Integration_ {
6609
6814
 
6610
6815
  }
6611
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
+
6612
6848
  //****************************************************************************
6613
6849
  // INPUT TYPE for Integrations
6614
6850
  //****************************************************************************
@@ -6739,6 +6975,16 @@ export class IntegrationResolver extends ResolverBase {
6739
6975
  return result;
6740
6976
  }
6741
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
+
6742
6988
  @Mutation(() => Integration_)
6743
6989
  async UpdateIntegration(
6744
6990
  @Arg('input', () => UpdateIntegrationInput) input: UpdateIntegrationInput,
@@ -6863,6 +7109,52 @@ export class CompanyIntegration_ {
6863
7109
 
6864
7110
  }
6865
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
+
6866
7158
  //****************************************************************************
6867
7159
  // INPUT TYPE for Company Integrations
6868
7160
  //****************************************************************************
@@ -7008,6 +7300,16 @@ export class CompanyIntegrationResolver extends ResolverBase {
7008
7300
  return result;
7009
7301
  }
7010
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
+
7011
7313
  @Mutation(() => CompanyIntegration_)
7012
7314
  async UpdateCompanyIntegration(
7013
7315
  @Arg('input', () => UpdateCompanyIntegrationInput) input: UpdateCompanyIntegrationInput,
@@ -9918,6 +10220,34 @@ export class UserRecordLog_ {
9918
10220
 
9919
10221
  }
9920
10222
 
10223
+ //****************************************************************************
10224
+ // INPUT TYPE for User Record Logs
10225
+ //****************************************************************************
10226
+ @InputType()
10227
+ export class CreateUserRecordLogInput {
10228
+ @Field({ nullable: true })
10229
+ ID?: string;
10230
+
10231
+ @Field({ nullable: true })
10232
+ UserID?: string;
10233
+
10234
+ @Field({ nullable: true })
10235
+ EntityID?: string;
10236
+
10237
+ @Field({ nullable: true })
10238
+ RecordID?: string;
10239
+
10240
+ @Field({ nullable: true })
10241
+ EarliestAt?: Date;
10242
+
10243
+ @Field({ nullable: true })
10244
+ LatestAt?: Date;
10245
+
10246
+ @Field(() => Int, { nullable: true })
10247
+ TotalCount?: number;
10248
+ }
10249
+
10250
+
9921
10251
  //****************************************************************************
9922
10252
  // INPUT TYPE for User Record Logs
9923
10253
  //****************************************************************************
@@ -10005,6 +10335,16 @@ export class UserRecordLogResolver extends ResolverBase {
10005
10335
  return result;
10006
10336
  }
10007
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
+
10008
10348
  @Mutation(() => UserRecordLog_)
10009
10349
  async UpdateUserRecordLog(
10010
10350
  @Arg('input', () => UpdateUserRecordLogInput) input: UpdateUserRecordLogInput,
@@ -10015,6 +10355,13 @@ export class UserRecordLogResolver extends ResolverBase {
10015
10355
  return this.UpdateRecord('User Record Logs', input, connPool, userPayload, pubSub);
10016
10356
  }
10017
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
+
10018
10365
  }
10019
10366
 
10020
10367
  //****************************************************************************
@@ -10638,6 +10985,13 @@ export class CompanyIntegrationRunResolver extends ResolverBase {
10638
10985
  return this.UpdateRecord('Company Integration Runs', input, connPool, userPayload, pubSub);
10639
10986
  }
10640
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
+
10641
10995
  }
10642
10996
 
10643
10997
  //****************************************************************************
@@ -10842,6 +11196,13 @@ export class CompanyIntegrationRunDetailResolver extends ResolverBase {
10842
11196
  return this.UpdateRecord('Company Integration Run Details', input, connPool, userPayload, pubSub);
10843
11197
  }
10844
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
+
10845
11206
  }
10846
11207
 
10847
11208
  //****************************************************************************
@@ -11040,6 +11401,13 @@ export class ErrorLogResolver extends ResolverBase {
11040
11401
  return this.UpdateRecord('Error Logs', input, connPool, userPayload, pubSub);
11041
11402
  }
11042
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
+
11043
11411
  }
11044
11412
 
11045
11413
  //****************************************************************************
@@ -12267,6 +12635,13 @@ export class CompanyIntegrationRunAPILogResolver extends ResolverBase {
12267
12635
  return this.UpdateRecord('Company Integration Run API Logs', input, connPool, userPayload, pubSub);
12268
12636
  }
12269
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
+
12270
12645
  }
12271
12646
 
12272
12647
  //****************************************************************************
@@ -12851,6 +13226,13 @@ export class UserViewRunResolver extends ResolverBase {
12851
13226
  return this.UpdateRecord('User View Runs', input, connPool, userPayload, pubSub);
12852
13227
  }
12853
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
+
12854
13236
  }
12855
13237
 
12856
13238
  //****************************************************************************
@@ -12999,6 +13381,13 @@ export class UserViewRunDetailResolver extends ResolverBase {
12999
13381
  return this.UpdateRecord('User View Run Details', input, connPool, userPayload, pubSub);
13000
13382
  }
13001
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
+
13002
13391
  }
13003
13392
 
13004
13393
  //****************************************************************************
@@ -13051,6 +13440,34 @@ export class WorkflowRun_ {
13051
13440
 
13052
13441
  }
13053
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
+
13054
13471
  //****************************************************************************
13055
13472
  // INPUT TYPE for Workflow Runs
13056
13473
  //****************************************************************************
@@ -13138,6 +13555,16 @@ export class WorkflowRunResolver extends ResolverBase {
13138
13555
  return result;
13139
13556
  }
13140
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
+
13141
13568
  @Mutation(() => WorkflowRun_)
13142
13569
  async UpdateWorkflowRun(
13143
13570
  @Arg('input', () => UpdateWorkflowRunInput) input: UpdateWorkflowRunInput,
@@ -13148,6 +13575,13 @@ export class WorkflowRunResolver extends ResolverBase {
13148
13575
  return this.UpdateRecord('Workflow Runs', input, connPool, userPayload, pubSub);
13149
13576
  }
13150
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
+
13151
13585
  }
13152
13586
 
13153
13587
  //****************************************************************************
@@ -13207,6 +13641,40 @@ export class Workflow_ {
13207
13641
 
13208
13642
  }
13209
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
+
13210
13678
  //****************************************************************************
13211
13679
  // INPUT TYPE for Workflows
13212
13680
  //****************************************************************************
@@ -13320,6 +13788,16 @@ export class WorkflowResolver extends ResolverBase {
13320
13788
  return result;
13321
13789
  }
13322
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
+
13323
13801
  @Mutation(() => Workflow_)
13324
13802
  async UpdateWorkflow(
13325
13803
  @Arg('input', () => UpdateWorkflowInput) input: UpdateWorkflowInput,
@@ -13330,6 +13808,13 @@ export class WorkflowResolver extends ResolverBase {
13330
13808
  return this.UpdateRecord('Workflows', input, connPool, userPayload, pubSub);
13331
13809
  }
13332
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
+
13333
13818
  }
13334
13819
 
13335
13820
  //****************************************************************************
@@ -13369,6 +13854,28 @@ export class WorkflowEngine_ {
13369
13854
 
13370
13855
  }
13371
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
+
13372
13879
  //****************************************************************************
13373
13880
  // INPUT TYPE for Workflow Engines
13374
13881
  //****************************************************************************
@@ -13460,6 +13967,16 @@ export class WorkflowEngineResolver extends ResolverBase {
13460
13967
  return result;
13461
13968
  }
13462
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
+
13463
13980
  @Mutation(() => WorkflowEngine_)
13464
13981
  async UpdateWorkflowEngine(
13465
13982
  @Arg('input', () => UpdateWorkflowEngineInput) input: UpdateWorkflowEngineInput,
@@ -13744,6 +14261,13 @@ export class RecordChangeResolver extends ResolverBase {
13744
14261
  return this.UpdateRecord('Record Changes', input, connPool, userPayload, pubSub);
13745
14262
  }
13746
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
+
13747
14271
  }
13748
14272
 
13749
14273
  //****************************************************************************
@@ -13796,6 +14320,25 @@ export class CreateUserRoleInput {
13796
14320
  RoleID?: string;
13797
14321
  }
13798
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
+
13799
14342
  //****************************************************************************
13800
14343
  // RESOLVER for User Roles
13801
14344
  //****************************************************************************
@@ -13873,6 +14416,16 @@ export class UserRoleResolver extends ResolverBase {
13873
14416
  return this.CreateRecord('User Roles', input, connPool, userPayload, pubSub)
13874
14417
  }
13875
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
+
13876
14429
  @Mutation(() => UserRole_)
13877
14430
  async DeleteUserRole(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
13878
14431
  const connPool = GetReadWriteDataSource(dataSources);
@@ -13913,6 +14466,47 @@ export class RowLevelSecurityFilter_ {
13913
14466
  EntityPermissions_ReadRLSFilterIDArray: EntityPermission_[]; // Link to EntityPermissions
13914
14467
 
13915
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
+
13916
14510
  //****************************************************************************
13917
14511
  // RESOLVER for Row Level Security Filters
13918
14512
  //****************************************************************************
@@ -13990,6 +14584,33 @@ export class RowLevelSecurityFilterResolver extends ResolverBase {
13990
14584
  return result;
13991
14585
  }
13992
14586
 
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
+
13993
14614
  }
13994
14615
 
13995
14616
  //****************************************************************************
@@ -14204,6 +14825,13 @@ export class AuditLogResolver extends ResolverBase {
14204
14825
  return this.UpdateRecord('Audit Logs', input, connPool, userPayload, pubSub);
14205
14826
  }
14206
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
+
14207
14835
  }
14208
14836
 
14209
14837
  //****************************************************************************
@@ -14260,6 +14888,59 @@ export class Authorization_ {
14260
14888
  AuditLogTypes_AuthorizationNameArray: AuditLogType_[]; // Link to AuditLogTypes
14261
14889
 
14262
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
+
14263
14944
  //****************************************************************************
14264
14945
  // RESOLVER for Authorizations
14265
14946
  //****************************************************************************
@@ -14377,6 +15058,33 @@ export class AuthorizationResolver extends ResolverBase {
14377
15058
  return result;
14378
15059
  }
14379
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
+
14380
15088
  }
14381
15089
 
14382
15090
  //****************************************************************************
@@ -14417,6 +15125,47 @@ export class AuthorizationRole_ {
14417
15125
  Role: string;
14418
15126
 
14419
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
+
14420
15169
  //****************************************************************************
14421
15170
  // RESOLVER for Authorization Roles
14422
15171
  //****************************************************************************
@@ -14484,6 +15233,33 @@ export class AuthorizationRoleResolver extends ResolverBase {
14484
15233
  return result;
14485
15234
  }
14486
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
+
14487
15263
  }
14488
15264
 
14489
15265
  //****************************************************************************
@@ -14533,6 +15309,53 @@ export class AuditLogType_ {
14533
15309
  AuditLogs_AuditLogTypeNameArray: AuditLog_[]; // Link to AuditLogs
14534
15310
 
14535
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
+
14536
15359
  //****************************************************************************
14537
15360
  // RESOLVER for Audit Log Types
14538
15361
  //****************************************************************************
@@ -14620,6 +15443,33 @@ export class AuditLogTypeResolver extends ResolverBase {
14620
15443
  return result;
14621
15444
  }
14622
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
+
14623
15473
  }
14624
15474
 
14625
15475
  //****************************************************************************
@@ -14671,6 +15521,31 @@ export class EntityFieldValue_ {
14671
15521
 
14672
15522
  }
14673
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
+
14674
15549
  //****************************************************************************
14675
15550
  // INPUT TYPE for Entity Field Values
14676
15551
  //****************************************************************************
@@ -14765,6 +15640,16 @@ export class EntityFieldValueResolver extends ResolverBase {
14765
15640
  return result;
14766
15641
  }
14767
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
+
14768
15653
  @Mutation(() => EntityFieldValue_)
14769
15654
  async UpdateEntityFieldValue(
14770
15655
  @Arg('input', () => UpdateEntityFieldValueInput) input: UpdateEntityFieldValueInput,
@@ -14775,6 +15660,13 @@ export class EntityFieldValueResolver extends ResolverBase {
14775
15660
  return this.UpdateRecord('Entity Field Values', input, connPool, userPayload, pubSub);
14776
15661
  }
14777
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
+
14778
15670
  }
14779
15671
 
14780
15672
  //****************************************************************************
@@ -16065,6 +16957,59 @@ export class QueueType_ {
16065
16957
  Queues_QueueTypeIDArray: Queue_[]; // Link to Queues
16066
16958
 
16067
16959
  }
16960
+
16961
+ //****************************************************************************
16962
+ // INPUT TYPE for Queue Types
16963
+ //****************************************************************************
16964
+ @InputType()
16965
+ export class CreateQueueTypeInput {
16966
+ @Field({ nullable: true })
16967
+ ID?: string;
16968
+
16969
+ @Field({ nullable: true })
16970
+ Name?: string;
16971
+
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
+
16068
17013
  //****************************************************************************
16069
17014
  // RESOLVER for Queue Types
16070
17015
  //****************************************************************************
@@ -16132,6 +17077,33 @@ export class QueueTypeResolver extends ResolverBase {
16132
17077
  return result;
16133
17078
  }
16134
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
+
16135
17107
  }
16136
17108
 
16137
17109
  //****************************************************************************
@@ -16426,6 +17398,13 @@ export class QueueResolver extends ResolverBase {
16426
17398
  return this.UpdateRecord('Queues', input, connPool, userPayload, pubSub);
16427
17399
  }
16428
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
+
16429
17408
  }
16430
17409
 
16431
17410
  //****************************************************************************
@@ -16635,6 +17614,13 @@ export class QueueTaskResolver extends ResolverBase {
16635
17614
  return this.UpdateRecord('Queue Tasks', input, connPool, userPayload, pubSub);
16636
17615
  }
16637
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
+
16638
17624
  }
16639
17625
 
16640
17626
  //****************************************************************************
@@ -16937,6 +17923,41 @@ export class OutputTriggerType_ {
16937
17923
  Reports_OutputTriggerTypeIDArray: Report_[]; // Link to Reports
16938
17924
 
16939
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
+
16940
17961
  //****************************************************************************
16941
17962
  // RESOLVER for Output Trigger Types
16942
17963
  //****************************************************************************
@@ -17004,6 +18025,33 @@ export class OutputTriggerTypeResolver extends ResolverBase {
17004
18025
  return result;
17005
18026
  }
17006
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
+
17007
18055
  }
17008
18056
 
17009
18057
  //****************************************************************************
@@ -17037,6 +18085,47 @@ export class OutputFormatType_ {
17037
18085
  Reports_OutputFormatTypeIDArray: Report_[]; // Link to Reports
17038
18086
 
17039
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
+
17040
18129
  //****************************************************************************
17041
18130
  // RESOLVER for Output Format Types
17042
18131
  //****************************************************************************
@@ -17104,6 +18193,33 @@ export class OutputFormatTypeResolver extends ResolverBase {
17104
18193
  return result;
17105
18194
  }
17106
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
+
17107
18223
  }
17108
18224
 
17109
18225
  //****************************************************************************
@@ -17134,6 +18250,41 @@ export class OutputDeliveryType_ {
17134
18250
  Reports_OutputDeliveryTypeIDArray: Report_[]; // Link to Reports
17135
18251
 
17136
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
+
17137
18288
  //****************************************************************************
17138
18289
  // RESOLVER for Output Delivery Types
17139
18290
  //****************************************************************************
@@ -17201,6 +18352,33 @@ export class OutputDeliveryTypeResolver extends ResolverBase {
17201
18352
  return result;
17202
18353
  }
17203
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
+
17204
18382
  }
17205
18383
 
17206
18384
  //****************************************************************************
@@ -17783,6 +18961,65 @@ export class ResourceType_ {
17783
18961
  ResourcePermissions_ResourceTypeIDArray: ResourcePermission_[]; // Link to ResourcePermissions
17784
18962
 
17785
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
+
17786
19023
  //****************************************************************************
17787
19024
  // RESOLVER for Resource Types
17788
19025
  //****************************************************************************
@@ -17880,6 +19117,33 @@ export class ResourceTypeResolver extends ResolverBase {
17880
19117
  return result;
17881
19118
  }
17882
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
+
17883
19147
  }
17884
19148
 
17885
19149
  //****************************************************************************
@@ -17925,6 +19189,53 @@ export class Tag_ {
17925
19189
  TaggedItems_TagIDArray: TaggedItem_[]; // Link to TaggedItems
17926
19190
 
17927
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
+
17928
19239
  //****************************************************************************
17929
19240
  // RESOLVER for Tags
17930
19241
  //****************************************************************************
@@ -18002,6 +19313,33 @@ export class TagResolver extends ResolverBase {
18002
19313
  return result;
18003
19314
  }
18004
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
+
18005
19343
  }
18006
19344
 
18007
19345
  //****************************************************************************
@@ -18042,6 +19380,47 @@ export class TaggedItem_ {
18042
19380
  Entity: string;
18043
19381
 
18044
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
+
18045
19424
  //****************************************************************************
18046
19425
  // RESOLVER for Tagged Items
18047
19426
  //****************************************************************************
@@ -18099,6 +19478,33 @@ export class TaggedItemResolver extends ResolverBase {
18099
19478
  return result;
18100
19479
  }
18101
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
+
18102
19508
  }
18103
19509
 
18104
19510
  //****************************************************************************
@@ -18504,6 +19910,41 @@ export class Dataset_ {
18504
19910
  DatasetItems_DatasetNameArray: DatasetItem_[]; // Link to DatasetItems
18505
19911
 
18506
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
+
18507
19948
  //****************************************************************************
18508
19949
  // RESOLVER for Datasets
18509
19950
  //****************************************************************************
@@ -18571,6 +20012,33 @@ export class DatasetResolver extends ResolverBase {
18571
20012
  return result;
18572
20013
  }
18573
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
+
18574
20042
  }
18575
20043
 
18576
20044
  //****************************************************************************
@@ -18627,6 +20095,77 @@ export class DatasetItem_ {
18627
20095
  Entity: string;
18628
20096
 
18629
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
+
18630
20169
  //****************************************************************************
18631
20170
  // RESOLVER for Dataset Items
18632
20171
  //****************************************************************************
@@ -18684,6 +20223,33 @@ export class DatasetItemResolver extends ResolverBase {
18684
20223
  return result;
18685
20224
  }
18686
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
+
18687
20253
  }
18688
20254
 
18689
20255
  //****************************************************************************
@@ -19626,6 +21192,13 @@ export class SchemaInfoResolver extends ResolverBase {
19626
21192
  return this.UpdateRecord('Schema Info', input, connPool, userPayload, pubSub);
19627
21193
  }
19628
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
+
19629
21202
  }
19630
21203
 
19631
21204
  //****************************************************************************
@@ -19790,6 +21363,13 @@ export class CompanyIntegrationRecordMapResolver extends ResolverBase {
19790
21363
  return this.UpdateRecord('Company Integration Record Maps', input, connPool, userPayload, pubSub);
19791
21364
  }
19792
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
+
19793
21373
  }
19794
21374
 
19795
21375
  //****************************************************************************
@@ -20046,6 +21626,13 @@ export class RecordMergeLogResolver extends ResolverBase {
20046
21626
  return this.UpdateRecord('Record Merge Logs', input, connPool, userPayload, pubSub);
20047
21627
  }
20048
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
+
20049
21636
  }
20050
21637
 
20051
21638
  //****************************************************************************
@@ -20205,6 +21792,13 @@ export class RecordMergeDeletionLogResolver extends ResolverBase {
20205
21792
  return this.UpdateRecord('Record Merge Deletion Logs', input, connPool, userPayload, pubSub);
20206
21793
  }
20207
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
+
20208
21802
  }
20209
21803
 
20210
21804
  //****************************************************************************
@@ -21604,6 +23198,13 @@ export class EntityDocumentRunResolver extends ResolverBase {
21604
23198
  return this.UpdateRecord('Entity Document Runs', input, connPool, userPayload, pubSub);
21605
23199
  }
21606
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
+
21607
23208
  }
21608
23209
 
21609
23210
  //****************************************************************************
@@ -22006,6 +23607,13 @@ export class EntityRecordDocumentResolver extends ResolverBase {
22006
23607
  return this.UpdateRecord('Entity Record Documents', input, connPool, userPayload, pubSub);
22007
23608
  }
22008
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
+
22009
23617
  }
22010
23618
 
22011
23619
  //****************************************************************************
@@ -22273,6 +23881,13 @@ export class EntityDocumentResolver extends ResolverBase {
22273
23881
  return this.UpdateRecord('Entity Documents', input, connPool, userPayload, pubSub);
22274
23882
  }
22275
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
+
22276
23891
  }
22277
23892
 
22278
23893
  //****************************************************************************
@@ -23570,7 +25185,7 @@ export class File_ {
23570
25185
  ProviderID: string;
23571
25186
 
23572
25187
  @Field({nullable: true})
23573
- @MaxLength(100)
25188
+ @MaxLength(510)
23574
25189
  ContentType?: string;
23575
25190
 
23576
25191
  @Field({nullable: true})
@@ -24310,6 +25925,13 @@ export class VersionInstallationResolver extends ResolverBase {
24310
25925
  return this.UpdateRecord('Version Installations', input, connPool, userPayload, pubSub);
24311
25926
  }
24312
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
+
24313
25935
  }
24314
25936
 
24315
25937
  //****************************************************************************
@@ -24529,6 +26151,13 @@ export class DuplicateRunDetailMatchResolver extends ResolverBase {
24529
26151
  return this.UpdateRecord('Duplicate Run Detail Matches', input, connPool, userPayload, pubSub);
24530
26152
  }
24531
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
+
24532
26161
  }
24533
26162
 
24534
26163
  //****************************************************************************
@@ -25114,6 +26743,13 @@ export class DuplicateRunResolver extends ResolverBase {
25114
26743
  return this.UpdateRecord('Duplicate Runs', input, connPool, userPayload, pubSub);
25115
26744
  }
25116
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
+
25117
26753
  }
25118
26754
 
25119
26755
  //****************************************************************************
@@ -25314,6 +26950,13 @@ export class DuplicateRunDetailResolver extends ResolverBase {
25314
26950
  return this.UpdateRecord('Duplicate Run Details', input, connPool, userPayload, pubSub);
25315
26951
  }
25316
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
+
25317
26960
  }
25318
26961
 
25319
26962
  //****************************************************************************
@@ -26458,6 +28101,10 @@ export class Action_ {
26458
28101
  @MaxLength(16)
26459
28102
  ParentID?: string;
26460
28103
 
28104
+ @Field({nullable: true, description: `Font Awesome icon class (e.g., fa-cog, fa-play, fa-search) for visual representation of the action.`})
28105
+ @MaxLength(200)
28106
+ IconClass?: string;
28107
+
26461
28108
  @Field({nullable: true})
26462
28109
  @MaxLength(510)
26463
28110
  Category?: string;
@@ -26563,6 +28210,9 @@ export class CreateActionInput {
26563
28210
 
26564
28211
  @Field({ nullable: true })
26565
28212
  ParentID: string | null;
28213
+
28214
+ @Field({ nullable: true })
28215
+ IconClass: string | null;
26566
28216
  }
26567
28217
 
26568
28218
 
@@ -26628,6 +28278,9 @@ export class UpdateActionInput {
26628
28278
  @Field({ nullable: true })
26629
28279
  ParentID?: string | null;
26630
28280
 
28281
+ @Field({ nullable: true })
28282
+ IconClass?: string | null;
28283
+
26631
28284
  @Field(() => [KeyValuePairInput], { nullable: true })
26632
28285
  OldValues___?: KeyValuePairInput[];
26633
28286
  }
@@ -29092,6 +30745,13 @@ export class CommunicationRunResolver extends ResolverBase {
29092
30745
  return this.UpdateRecord('Communication Runs', input, connPool, userPayload, pubSub);
29093
30746
  }
29094
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
+
29095
30755
  }
29096
30756
 
29097
30757
  //****************************************************************************
@@ -29495,6 +31155,13 @@ export class CommunicationLogResolver extends ResolverBase {
29495
31155
  return this.UpdateRecord('Communication Logs', input, connPool, userPayload, pubSub);
29496
31156
  }
29497
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
+
29498
31165
  }
29499
31166
 
29500
31167
  //****************************************************************************
@@ -30948,6 +32615,13 @@ export class RecommendationResolver extends ResolverBase {
30948
32615
  return this.UpdateRecord('Recommendations', input, connPool, userPayload, pubSub);
30949
32616
  }
30950
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
+
30951
32625
  }
30952
32626
 
30953
32627
  //****************************************************************************
@@ -31307,6 +32981,13 @@ export class RecommendationRunResolver extends ResolverBase {
31307
32981
  return this.UpdateRecord('Recommendation Runs', input, connPool, userPayload, pubSub);
31308
32982
  }
31309
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
+
31310
32991
  }
31311
32992
 
31312
32993
  //****************************************************************************
@@ -31470,6 +33151,13 @@ export class RecommendationItemResolver extends ResolverBase {
31470
33151
  return this.UpdateRecord('Recommendation Items', input, connPool, userPayload, pubSub);
31471
33152
  }
31472
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
+
31473
33161
  }
31474
33162
 
31475
33163
  //****************************************************************************
@@ -31980,6 +33668,13 @@ export class RecordChangeReplayRunResolver extends ResolverBase {
31980
33668
  return this.UpdateRecord('Record Change Replay Runs', input, connPool, userPayload, pubSub);
31981
33669
  }
31982
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
+
31983
33678
  }
31984
33679
 
31985
33680
  //****************************************************************************
@@ -32303,6 +33998,13 @@ export class EntityRelationshipDisplayComponentResolver extends ResolverBase {
32303
33998
  return this.UpdateRecord('Entity Relationship Display Components', input, connPool, userPayload, pubSub);
32304
33999
  }
32305
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
+
32306
34008
  }
32307
34009
 
32308
34010
  //****************************************************************************
@@ -37621,6 +39323,54 @@ export class AIPromptRun_ {
37621
39323
  @Field(() => Float, {nullable: true, description: `The total cost of all descendant (child and grandchild) prompt runs, excluding this run's own cost. For leaf nodes (no children), this is 0. Updated when child costs change.`})
37622
39324
  DescendantCost?: number;
37623
39325
 
39326
+ @Field(() => Int, {nullable: true, description: `Total number of validation attempts made (including the initial attempt)`})
39327
+ ValidationAttemptCount?: number;
39328
+
39329
+ @Field(() => Int, {nullable: true, description: `Number of validation attempts that passed validation`})
39330
+ SuccessfulValidationCount?: number;
39331
+
39332
+ @Field(() => Boolean, {nullable: true, description: `Whether validation ultimately passed (1) or failed (0)`})
39333
+ FinalValidationPassed?: boolean;
39334
+
39335
+ @Field({nullable: true, description: `Validation behavior used: Strict, Warn, or None`})
39336
+ @MaxLength(100)
39337
+ ValidationBehavior?: string;
39338
+
39339
+ @Field({nullable: true, description: `Retry strategy used: Fixed, Linear, or Exponential`})
39340
+ @MaxLength(100)
39341
+ RetryStrategy?: string;
39342
+
39343
+ @Field(() => Int, {nullable: true, description: `Maximum number of retries configured on the prompt`})
39344
+ MaxRetriesConfigured?: number;
39345
+
39346
+ @Field({nullable: true, description: `The final validation error message if validation failed`})
39347
+ @MaxLength(1000)
39348
+ FinalValidationError?: string;
39349
+
39350
+ @Field(() => Int, {nullable: true, description: `Number of validation errors on the final attempt`})
39351
+ ValidationErrorCount?: number;
39352
+
39353
+ @Field({nullable: true, description: `Most frequent validation error across all attempts`})
39354
+ @MaxLength(510)
39355
+ CommonValidationError?: string;
39356
+
39357
+ @Field({nullable: true, description: `Timestamp of the first validation attempt`})
39358
+ @MaxLength(8)
39359
+ FirstAttemptAt?: Date;
39360
+
39361
+ @Field({nullable: true, description: `Timestamp of the last validation attempt`})
39362
+ @MaxLength(8)
39363
+ LastAttemptAt?: Date;
39364
+
39365
+ @Field(() => Int, {nullable: true, description: `Total time spent on retries in milliseconds (excluding first attempt)`})
39366
+ TotalRetryDurationMS?: number;
39367
+
39368
+ @Field({nullable: true, description: `JSON array containing detailed information about each validation attempt`})
39369
+ ValidationAttempts?: string;
39370
+
39371
+ @Field({nullable: true, description: `JSON object containing summary information about the validation process`})
39372
+ ValidationSummary?: string;
39373
+
37624
39374
  @Field()
37625
39375
  @MaxLength(510)
37626
39376
  Prompt: string;
@@ -37767,6 +39517,48 @@ export class CreateAIPromptRunInput {
37767
39517
 
37768
39518
  @Field(() => Float, { nullable: true })
37769
39519
  DescendantCost: number | null;
39520
+
39521
+ @Field(() => Int, { nullable: true })
39522
+ ValidationAttemptCount: number | null;
39523
+
39524
+ @Field(() => Int, { nullable: true })
39525
+ SuccessfulValidationCount: number | null;
39526
+
39527
+ @Field(() => Boolean, { nullable: true })
39528
+ FinalValidationPassed: boolean | null;
39529
+
39530
+ @Field({ nullable: true })
39531
+ ValidationBehavior: string | null;
39532
+
39533
+ @Field({ nullable: true })
39534
+ RetryStrategy: string | null;
39535
+
39536
+ @Field(() => Int, { nullable: true })
39537
+ MaxRetriesConfigured: number | null;
39538
+
39539
+ @Field({ nullable: true })
39540
+ FinalValidationError: string | null;
39541
+
39542
+ @Field(() => Int, { nullable: true })
39543
+ ValidationErrorCount: number | null;
39544
+
39545
+ @Field({ nullable: true })
39546
+ CommonValidationError: string | null;
39547
+
39548
+ @Field({ nullable: true })
39549
+ FirstAttemptAt: Date | null;
39550
+
39551
+ @Field({ nullable: true })
39552
+ LastAttemptAt: Date | null;
39553
+
39554
+ @Field(() => Int, { nullable: true })
39555
+ TotalRetryDurationMS: number | null;
39556
+
39557
+ @Field({ nullable: true })
39558
+ ValidationAttempts: string | null;
39559
+
39560
+ @Field({ nullable: true })
39561
+ ValidationSummary: string | null;
37770
39562
  }
37771
39563
 
37772
39564
 
@@ -37889,6 +39681,48 @@ export class UpdateAIPromptRunInput {
37889
39681
  @Field(() => Float, { nullable: true })
37890
39682
  DescendantCost?: number | null;
37891
39683
 
39684
+ @Field(() => Int, { nullable: true })
39685
+ ValidationAttemptCount?: number | null;
39686
+
39687
+ @Field(() => Int, { nullable: true })
39688
+ SuccessfulValidationCount?: number | null;
39689
+
39690
+ @Field(() => Boolean, { nullable: true })
39691
+ FinalValidationPassed?: boolean | null;
39692
+
39693
+ @Field({ nullable: true })
39694
+ ValidationBehavior?: string | null;
39695
+
39696
+ @Field({ nullable: true })
39697
+ RetryStrategy?: string | null;
39698
+
39699
+ @Field(() => Int, { nullable: true })
39700
+ MaxRetriesConfigured?: number | null;
39701
+
39702
+ @Field({ nullable: true })
39703
+ FinalValidationError?: string | null;
39704
+
39705
+ @Field(() => Int, { nullable: true })
39706
+ ValidationErrorCount?: number | null;
39707
+
39708
+ @Field({ nullable: true })
39709
+ CommonValidationError?: string | null;
39710
+
39711
+ @Field({ nullable: true })
39712
+ FirstAttemptAt?: Date | null;
39713
+
39714
+ @Field({ nullable: true })
39715
+ LastAttemptAt?: Date | null;
39716
+
39717
+ @Field(() => Int, { nullable: true })
39718
+ TotalRetryDurationMS?: number | null;
39719
+
39720
+ @Field({ nullable: true })
39721
+ ValidationAttempts?: string | null;
39722
+
39723
+ @Field({ nullable: true })
39724
+ ValidationSummary?: string | null;
39725
+
37892
39726
  @Field(() => [KeyValuePairInput], { nullable: true })
37893
39727
  OldValues___?: KeyValuePairInput[];
37894
39728
  }