forked from Yara724/api
Fixed damagedParts unified structure and resend problems
This commit is contained in:
@@ -41,7 +41,10 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
return `${process.env.URL}/${frontendRoute}?token=${requestId}`;
|
||||
}
|
||||
|
||||
buildBlamePartyLink(requestId: string, partyRole: "FIRST" | "SECOND"): string {
|
||||
buildBlamePartyLink(
|
||||
requestId: string,
|
||||
partyRole: "FIRST" | "SECOND",
|
||||
): string {
|
||||
const route = partyRole === "SECOND" ? "user2" : "user";
|
||||
return `${process.env.URL}/${route}?token=${requestId}`;
|
||||
}
|
||||
@@ -50,7 +53,11 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
return `${process.env.URL}/caseClaim?token=${claimRequestId}`;
|
||||
}
|
||||
|
||||
async sendInviteLink(phoneNumber: string, publicId: string, link: string): Promise<boolean> {
|
||||
async sendInviteLink(
|
||||
phoneNumber: string,
|
||||
publicId: string,
|
||||
link: string,
|
||||
): Promise<boolean> {
|
||||
return this.sendTemplate({
|
||||
template: "yara724-invite-link",
|
||||
receptor: phoneNumber,
|
||||
@@ -132,14 +139,12 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
});
|
||||
}
|
||||
|
||||
async sendThirdPartyExpertStartedReviewNotice(
|
||||
params: {
|
||||
receptor: string;
|
||||
fileKind: "blame" | "claim";
|
||||
publicId: string;
|
||||
expertLastName: string;
|
||||
},
|
||||
): Promise<boolean> {
|
||||
async sendThirdPartyExpertStartedReviewNotice(params: {
|
||||
receptor: string;
|
||||
fileKind: "blame" | "claim";
|
||||
publicId: string;
|
||||
expertLastName: string;
|
||||
}): Promise<boolean> {
|
||||
return this.sendTemplate({
|
||||
template: "yara-expert-lock",
|
||||
receptor: params.receptor,
|
||||
|
||||
Reference in New Issue
Block a user