vr-models 1.0.61 → 1.0.62

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.
@@ -2,7 +2,7 @@ import { Model, InferAttributes, InferCreationAttributes, CreationOptional, NonA
2
2
  import type { User } from "./user.models";
3
3
  export declare const CONTACT_TYPES: readonly ["EMAIL", "PHONE", "WHATSAPP"];
4
4
  export type ContactType = (typeof CONTACT_TYPES)[number];
5
- export declare const VERIFICATION_METHODS: readonly ["OTP", "0AUTH", "EMAIL", "MANUAL"];
5
+ export declare const VERIFICATION_METHODS: readonly ["SMS", "0AUTH", "EMAIL", "MANUAL"];
6
6
  export type VerificationMethod = (typeof VERIFICATION_METHODS)[number];
7
7
  export interface VerificationMetadata {
8
8
  lastOtpSentAt?: Date;
@@ -6,7 +6,7 @@ const vr_migrations_1 = require("vr-migrations");
6
6
  // ==================== CONTACT TYPES ====================
7
7
  exports.CONTACT_TYPES = ["EMAIL", "PHONE", "WHATSAPP"];
8
8
  exports.VERIFICATION_METHODS = [
9
- "OTP",
9
+ "SMS",
10
10
  "0AUTH",
11
11
  "EMAIL",
12
12
  "MANUAL",
@@ -32,6 +32,7 @@ class Contact extends vr_migrations_1.Model {
32
32
  verificationMethod: {
33
33
  type: vr_migrations_1.DataTypes.ENUM(...exports.VERIFICATION_METHODS),
34
34
  allowNull: false,
35
+ defaultValue: "MANUAL",
35
36
  },
36
37
  userId: {
37
38
  type: vr_migrations_1.DataTypes.UUID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",