@readytomog/contracts 1.1.7 → 1.1.9

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.
@@ -1,6 +1,7 @@
1
1
  import { Roles } from "../../types";
2
2
  export interface CreateUserEvent {
3
3
  email: string;
4
+ password: string;
4
5
  name: string;
5
6
  surname: string;
6
7
  roles: Roles[];
@@ -1 +1,4 @@
1
1
  export * from "./create-user.interface";
2
+ export * from "./update-user.interface";
3
+ export * from "./send-email-otp.interface";
4
+ export * from "./send-sms-otp.interface";
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-user.interface"), exports);
18
+ __exportStar(require("./update-user.interface"), exports);
19
+ __exportStar(require("./send-email-otp.interface"), exports);
20
+ __exportStar(require("./send-sms-otp.interface"), exports);
@@ -0,0 +1,4 @@
1
+ export interface SendEmailOtpEvent {
2
+ otp: number;
3
+ email: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SendSmsOtpEvent {
2
+ otp: number;
3
+ phone: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { Roles } from "../../types";
2
+ export interface UpdateUserEvent {
3
+ email?: string;
4
+ name?: string;
5
+ surname?: string;
6
+ roles?: Roles[];
7
+ isOtpVerified?: boolean;
8
+ isTwoFactorEnabled?: boolean;
9
+ isPhoneVerified?: boolean;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readytomog/contracts",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",