@memberjunction/core-entities 2.69.0 → 2.70.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.
@@ -13664,21 +13664,32 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
13664
13664
  }
13665
13665
  /**
13666
13666
  * Validate() method override for AI Agent Actions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
13667
+ * * MinExecutionsPerRun: This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
13667
13668
  * * MaxExecutionsPerRun: This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
13668
13669
  * * Table-Level: This rule ensures that the minimum number of executions per run cannot be greater than the maximum number of executions per run. If either value is not specified, the rule is considered satisfied.
13669
- * * MinExecutionsPerRun: This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
13670
13670
  * @public
13671
13671
  * @method
13672
13672
  * @override
13673
13673
  */
13674
13674
  Validate() {
13675
13675
  const result = super.Validate();
13676
+ this.ValidateMinExecutionsPerRunIsNonNegative(result);
13676
13677
  this.ValidateMaxExecutionsPerRunGreaterThanZero(result);
13677
13678
  this.ValidateMinExecutionsPerRunLessThanOrEqualToMax(result);
13678
- this.ValidateMinExecutionsPerRunIsNonNegative(result);
13679
13679
  return result;
13680
13680
  }
13681
13681
  /**
13682
+ * This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
13683
+ * @param result - the ValidationResult object to add any errors or warnings to
13684
+ * @public
13685
+ * @method
13686
+ */
13687
+ ValidateMinExecutionsPerRunIsNonNegative(result) {
13688
+ if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
13689
+ result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
13690
+ }
13691
+ }
13692
+ /**
13682
13693
  * This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
13683
13694
  * @param result - the ValidationResult object to add any errors or warnings to
13684
13695
  * @public
@@ -13703,17 +13714,6 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
13703
13714
  }
13704
13715
  }
13705
13716
  /**
13706
- * This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
13707
- * @param result - the ValidationResult object to add any errors or warnings to
13708
- * @public
13709
- * @method
13710
- */
13711
- ValidateMinExecutionsPerRunIsNonNegative(result) {
13712
- if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
13713
- result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
13714
- }
13715
- }
13716
- /**
13717
13717
  * * Field Name: ID
13718
13718
  * * Display Name: ID
13719
13719
  * * SQL Data Type: uniqueidentifier
@@ -14570,85 +14570,85 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
14570
14570
  }
14571
14571
  /**
14572
14572
  * Validate() method override for AI Agents entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
14573
- * * Table-Level: This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
14574
- * * Table-Level: This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
14575
14573
  * * MinExecutionsPerRun: This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
14576
- * * Table-Level: This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
14577
14574
  * * MaxExecutionsPerRun: This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
14575
+ * * Table-Level: This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
14576
+ * * Table-Level: This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
14577
+ * * Table-Level: This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
14578
14578
  * @public
14579
14579
  * @method
14580
14580
  * @override
14581
14581
  */
14582
14582
  Validate() {
14583
14583
  const result = super.Validate();
14584
- this.ValidateParentIDMustBeNullIfExposeAsActionTrue(result);
14585
- this.ValidateEnableContextCompressionRequiresContextFields(result);
14586
14584
  this.ValidateMinExecutionsPerRunIsNonNegative(result);
14587
- this.ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result);
14588
14585
  this.ValidateMaxExecutionsPerRunIsNullOrPositive(result);
14586
+ this.ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result);
14587
+ this.ValidateParentIDMustBeNullIfExposeAsActionTrue(result);
14588
+ this.ValidateEnableContextCompressionRequiresContextFields(result);
14589
14589
  return result;
14590
14590
  }
14591
14591
  /**
14592
- * This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
14592
+ * This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
14593
14593
  * @param result - the ValidationResult object to add any errors or warnings to
14594
14594
  * @public
14595
14595
  * @method
14596
14596
  */
14597
- ValidateParentIDMustBeNullIfExposeAsActionTrue(result) {
14598
- if (this.ParentID !== null && this.ExposeAsAction) {
14599
- result.Errors.push(new core_1.ValidationErrorInfo("ParentID", "ParentID must be empty if this item is exposed as an action.", this.ParentID, core_1.ValidationErrorType.Failure));
14597
+ ValidateMinExecutionsPerRunIsNonNegative(result) {
14598
+ if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
14599
+ result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "If specified, the minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14600
14600
  }
14601
14601
  }
14602
14602
  /**
14603
- * This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
14603
+ * This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
14604
14604
  * @param result - the ValidationResult object to add any errors or warnings to
14605
14605
  * @public
14606
14606
  * @method
14607
14607
  */
14608
- ValidateEnableContextCompressionRequiresContextFields(result) {
14609
- if (this.EnableContextCompression) {
14610
- if (this.ContextCompressionMessageThreshold === null) {
14611
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageThreshold", "Context compression is enabled, so the context compression message threshold is required.", this.ContextCompressionMessageThreshold, core_1.ValidationErrorType.Failure));
14612
- }
14613
- if (this.ContextCompressionPromptID === null) {
14614
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionPromptID", "Context compression is enabled, so the context compression prompt ID is required.", this.ContextCompressionPromptID, core_1.ValidationErrorType.Failure));
14615
- }
14616
- if (this.ContextCompressionMessageRetentionCount === null) {
14617
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageRetentionCount", "Context compression is enabled, so the context compression message retention count is required.", this.ContextCompressionMessageRetentionCount, core_1.ValidationErrorType.Failure));
14618
- }
14608
+ ValidateMaxExecutionsPerRunIsNullOrPositive(result) {
14609
+ if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
14610
+ result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "MaxExecutionsPerRun must be left blank or must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
14619
14611
  }
14620
14612
  }
14621
14613
  /**
14622
- * This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
14614
+ * This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
14623
14615
  * @param result - the ValidationResult object to add any errors or warnings to
14624
14616
  * @public
14625
14617
  * @method
14626
14618
  */
14627
- ValidateMinExecutionsPerRunIsNonNegative(result) {
14628
- if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
14629
- result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "If specified, the minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14619
+ ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result) {
14620
+ if (this.MinExecutionsPerRun !== null && this.MaxExecutionsPerRun !== null && this.MinExecutionsPerRun > this.MaxExecutionsPerRun) {
14621
+ result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run cannot be greater than maximum executions per run.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14630
14622
  }
14631
14623
  }
14632
14624
  /**
14633
- * This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
14625
+ * This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
14634
14626
  * @param result - the ValidationResult object to add any errors or warnings to
14635
14627
  * @public
14636
14628
  * @method
14637
14629
  */
14638
- ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result) {
14639
- if (this.MinExecutionsPerRun !== null && this.MaxExecutionsPerRun !== null && this.MinExecutionsPerRun > this.MaxExecutionsPerRun) {
14640
- result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run cannot be greater than maximum executions per run.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14630
+ ValidateParentIDMustBeNullIfExposeAsActionTrue(result) {
14631
+ if (this.ParentID !== null && this.ExposeAsAction) {
14632
+ result.Errors.push(new core_1.ValidationErrorInfo("ParentID", "ParentID must be empty if this item is exposed as an action.", this.ParentID, core_1.ValidationErrorType.Failure));
14641
14633
  }
14642
14634
  }
14643
14635
  /**
14644
- * This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
14636
+ * This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
14645
14637
  * @param result - the ValidationResult object to add any errors or warnings to
14646
14638
  * @public
14647
14639
  * @method
14648
14640
  */
14649
- ValidateMaxExecutionsPerRunIsNullOrPositive(result) {
14650
- if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
14651
- result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "MaxExecutionsPerRun must be left blank or must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
14641
+ ValidateEnableContextCompressionRequiresContextFields(result) {
14642
+ if (this.EnableContextCompression) {
14643
+ if (this.ContextCompressionMessageThreshold === null) {
14644
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageThreshold", "Context compression is enabled, so the context compression message threshold is required.", this.ContextCompressionMessageThreshold, core_1.ValidationErrorType.Failure));
14645
+ }
14646
+ if (this.ContextCompressionPromptID === null) {
14647
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionPromptID", "Context compression is enabled, so the context compression prompt ID is required.", this.ContextCompressionPromptID, core_1.ValidationErrorType.Failure));
14648
+ }
14649
+ if (this.ContextCompressionMessageRetentionCount === null) {
14650
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageRetentionCount", "Context compression is enabled, so the context compression message retention count is required.", this.ContextCompressionMessageRetentionCount, core_1.ValidationErrorType.Failure));
14651
+ }
14652
14652
  }
14653
14653
  }
14654
14654
  /**