@takentrade/takentrade-libs 1.2.3 → 1.2.5

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.
@@ -3,7 +3,7 @@ export declare class ForgotPasscodeDto {
3
3
  phone: PhoneDto;
4
4
  }
5
5
  export declare class PasscodeReset {
6
- otp: string;
6
+ otp: number;
7
7
  newPassword: string;
8
8
  }
9
9
  export declare class SetPasscodeDto {
@@ -26,7 +26,7 @@ class PasscodeReset {
26
26
  exports.PasscodeReset = PasscodeReset;
27
27
  __decorate([
28
28
  (0, swagger_1.ApiProperty)(),
29
- (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNumber)(),
30
30
  (0, class_validator_1.IsNotEmpty)()
31
31
  ], PasscodeReset.prototype, "otp", void 0);
32
32
  __decorate([
@@ -1,3 +1,3 @@
1
1
  export declare class VerifyPhoneNumberDto {
2
- otp: string;
2
+ otp: number;
3
3
  }
@@ -15,6 +15,6 @@ class VerifyPhoneNumberDto {
15
15
  exports.VerifyPhoneNumberDto = VerifyPhoneNumberDto;
16
16
  __decorate([
17
17
  (0, swagger_1.ApiProperty)(),
18
- (0, class_validator_1.IsString)(),
18
+ (0, class_validator_1.IsNumber)(),
19
19
  (0, class_validator_1.IsNotEmpty)()
20
20
  ], VerifyPhoneNumberDto.prototype, "otp", void 0);
@@ -20,4 +20,3 @@ __exportStar(require("./dto"), exports);
20
20
  __exportStar(require("./utils"), exports);
21
21
  __exportStar(require("./circuit-breaker/circuit-breaker.module"), exports);
22
22
  __exportStar(require("./circuit-breaker/circuit-breaker.service"), exports);
23
- // export * from './queue';
@@ -35,3 +35,6 @@ export declare enum NotificationSubcribedNATSSubject {
35
35
  NOTIFICATION_OTP_VOICE = "notification.voice.otp",
36
36
  NOTIFICATION_PUSH = "notification.push"
37
37
  }
38
+ export declare enum NatsRPCSubjects {
39
+ GET_USER_FCM_TOKEN = "users.get.fcm_token"
40
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationSubcribedNATSSubject = exports.OTPNotificationChannel = exports.NotificationTextChannel = void 0;
3
+ exports.NatsRPCSubjects = exports.NotificationSubcribedNATSSubject = exports.OTPNotificationChannel = exports.NotificationTextChannel = void 0;
4
4
  var NotificationTextChannel;
5
5
  (function (NotificationTextChannel) {
6
6
  NotificationTextChannel["sms"] = "sms";
@@ -45,3 +45,7 @@ var NotificationSubcribedNATSSubject;
45
45
  // PUSH
46
46
  NotificationSubcribedNATSSubject["NOTIFICATION_PUSH"] = "notification.push";
47
47
  })(NotificationSubcribedNATSSubject || (exports.NotificationSubcribedNATSSubject = NotificationSubcribedNATSSubject = {}));
48
+ var NatsRPCSubjects;
49
+ (function (NatsRPCSubjects) {
50
+ NatsRPCSubjects["GET_USER_FCM_TOKEN"] = "users.get.fcm_token";
51
+ })(NatsRPCSubjects || (exports.NatsRPCSubjects = NatsRPCSubjects = {}));
@@ -18,7 +18,7 @@ export interface BaseEmailData {
18
18
  currentYear: number;
19
19
  }
20
20
  export interface OTPMailData extends BaseEmailData {
21
- otp: string;
21
+ otp: number;
22
22
  expiration: string;
23
23
  }
24
24
  export interface PasswordResetMailData extends OTPMailData {