@takentrade/takentrade-libs 4.1.19 → 4.1.20

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.
@@ -6,7 +6,7 @@ export declare class NotificationClient {
6
6
  constructor(natsClient: ClientProxy);
7
7
  private validatePhoneNumber;
8
8
  private validateEmailAddress;
9
- sendSms(to: string, message: string, user_id?: string): Promise<void>;
9
+ sendSms(to: string, message: string, user_id?: string, bypassPreferenceCheck?: boolean): Promise<void>;
10
10
  sendSmsPreference(to: string, message: string, user_id?: string): Promise<void>;
11
11
  /**
12
12
  * This utility method sends an OTP message via the SMS channel.
@@ -29,11 +29,12 @@ let NotificationClient = class NotificationClient {
29
29
  throw new common_1.BadRequestException('Invalid email address');
30
30
  }
31
31
  }
32
- async sendSms(to, message, user_id) {
32
+ async sendSms(to, message, user_id, bypassPreferenceCheck) {
33
33
  this.natsClient.emit(notification_enum_1.NotificationSubcribedNATSSubject.NOTIFICATION_TEXT, {
34
34
  to,
35
35
  message,
36
36
  user_id,
37
+ bypassPreferenceCheck,
37
38
  });
38
39
  }
39
40
  async sendSmsPreference(to, message, user_id) {