Added required documents for blame, added 2 sms

This commit is contained in:
SepehrYahyaee
2026-04-25 15:14:44 +03:30
parent 5618d120e3
commit 9c87927e6c
6 changed files with 102 additions and 5 deletions

View File

@@ -94,6 +94,36 @@ export class SmsOrchestrationService implements OnModuleInit {
}
}
async sendThirdPartyAgreementSignNotice(params: {
receptor: string;
publicId: string;
link: string;
}): Promise<boolean> {
return this.sendTemplate({
template: "yara-blame-agreement",
receptor: params.receptor,
token: params.publicId,
token2: params.link,
});
}
async sendThirdPartyExpertStartedReviewNotice(
params: {
receptor: string;
publicId: string;
expertLastName: string;
},
): Promise<boolean> {
return this.sendTemplate({
template:
process.env.SMS_TEMPLATE_THIRD_PARTY_EXPERT_LOCK ||
"yara-blame-expert-lock",
receptor: params.receptor,
token: params.publicId,
token2: params.expertLastName || "کارشناس",
});
}
private async sendTemplate(args: TemplateArgs): Promise<boolean> {
try {
await this.smsGatewayService.verifyLookUp(args);