@movmo_app/types 1.6.2 → 1.7.0

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.
package/dist/auth.d.ts CHANGED
@@ -20,4 +20,5 @@ export declare enum AuthenticationChallengeResponse {
20
20
  export type LoginUserResponse = {
21
21
  session: string;
22
22
  challengeName?: AuthenticationChallengeName;
23
+ username?: string;
23
24
  };
package/dist/index.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './referrals';
12
12
  export * from './sessions';
13
13
  export * from './booking_passenger';
14
14
  export * from './movmo_flight_offer';
15
+ export * from './locale_preferences';
package/dist/index.js CHANGED
@@ -28,3 +28,4 @@ __exportStar(require("./referrals"), exports);
28
28
  __exportStar(require("./sessions"), exports);
29
29
  __exportStar(require("./booking_passenger"), exports);
30
30
  __exportStar(require("./movmo_flight_offer"), exports);
31
+ __exportStar(require("./locale_preferences"), exports);
@@ -0,0 +1,7 @@
1
+ export type LocalePreferences = {
2
+ user_id: string;
3
+ language_code: string;
4
+ region_code: string;
5
+ currency_code: string;
6
+ updated_at?: string;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,15 @@
2
2
  * OTPDeliveryMethod represents how one-time passcodes are delivered.
3
3
  */
4
4
  export type OTPDeliveryMethod = 'email_and_phone' | 'email_only' | 'phone_only';
5
+ /**
6
+ * SecurityPreferences represents a user's OTP delivery preference settings.
7
+ */
8
+ export type SecurityPreferences = {
9
+ user_id: string;
10
+ otp_delivery_method: OTPDeliveryMethod;
11
+ phone_number_verified: boolean;
12
+ updated_at?: string;
13
+ };
5
14
  /**
6
15
  * AuthEvent represents a recorded authentication event returned by
7
16
  * GET /v1/users/me/auth-events.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movmo_app/types",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "A collection of Movmo's types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",