vr-models 1.0.47 → 1.0.49

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.
@@ -42,7 +42,7 @@ export declare class Payment extends Model<InferAttributes<Payment>, InferCreati
42
42
  amount: number;
43
43
  provider: PaymentProvider;
44
44
  providerReference: CreationOptional<string | null>;
45
- status: CreationOptional<PaymentStatus>;
45
+ status: PaymentStatus;
46
46
  metadata: CreationOptional<Record<string, any>>;
47
47
  readonly createdAt: CreationOptional<Date>;
48
48
  readonly updatedAt: CreationOptional<Date>;
@@ -15,7 +15,7 @@ export interface PhoneContactAttributes {
15
15
  otpAttempts?: number;
16
16
  lastFailedAttemptAt?: Date;
17
17
  isLocked?: boolean;
18
- lockedUntil?: Date;
18
+ lockedUntil: Date | null;
19
19
  carrier?: string;
20
20
  countryCode?: string;
21
21
  deactivatedAt?: Date | null;
@@ -44,7 +44,7 @@ export declare class PhoneContact extends Model<InferAttributes<PhoneContact>, I
44
44
  otpAttempts?: number;
45
45
  lastFailedAttemptAt?: Date;
46
46
  isLocked?: boolean;
47
- lockedUntil?: Date;
47
+ lockedUntil: Date | null;
48
48
  carrier?: string;
49
49
  countryCode?: string;
50
50
  deactivatedAt?: Date | null;
@@ -136,7 +136,7 @@ class PhoneContact extends vr_migrations_1.Model {
136
136
  new Date() > new Date(this.metadata.lockedUntil)) {
137
137
  // Auto-unlock
138
138
  this.metadata.isLocked = false;
139
- this.metadata.lockedUntil = undefined;
139
+ this.metadata.lockedUntil = null;
140
140
  this.save();
141
141
  return false;
142
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",