Validator for IntentMandate entities
private
readonly
config: ValidationConfig
checkExpiry(intentMandate: IntentMandate,currentDate?: Date,): Promise<boolean>
Check if IntentMandate has expired
private
initializeDefaultRules(): void
Initialize default validation rules for IntentMandate
validate(intentMandate: IntentMandate): Promise<ValidationResult>
Validate IntentMandate structure and content
validateIntegrity(intentMandate: IntentMandate): Promise<ValidationResult>
Validate the integrity of IntentMandate by checking required fields
checkExpiry(mandate: IntentMandate,currentDate?: Date,): Promise<boolean>
Static method to check IntentMandate expiry with default config
validate(mandate: IntentMandate): Promise<ValidationResult>
Static method to validate IntentMandate with default config
validateIntegrity(mandate: IntentMandate): Promise<ValidationResult>
Static method to validate IntentMandate integrity with default config
withConfig(config: ValidationConfig): IntentMandateValidator
Create a validator with custom configuration