@royalinvest/dto 0.1.0 → 0.2.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 ADDED
@@ -0,0 +1,5 @@
1
+ import { IUser } from "./user";
2
+ export type IAuth = {
3
+ accessToken: string;
4
+ user: IUser;
5
+ };
package/dist/index.d.ts CHANGED
@@ -8,3 +8,8 @@ export * from "./property";
8
8
  export * from "./state";
9
9
  export * from "./template";
10
10
  export * from "./yes-no";
11
+ export * from "./login";
12
+ export * from "./sign-up";
13
+ export * from "./user";
14
+ export * from "./auth";
15
+ export * from "./notification";
@@ -0,0 +1,4 @@
1
+ export interface ILogin {
2
+ email: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ export interface INotification {
2
+ id?: string;
3
+ user_id?: string;
4
+ payload: IPayload;
5
+ }
6
+ export interface IPayload {
7
+ type: string;
8
+ message: string;
9
+ link?: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ export type ISignUp = {
2
+ id?: string;
3
+ first_name?: string;
4
+ last_name?: string;
5
+ company_name?: string;
6
+ email: string;
7
+ password: string;
8
+ };
package/dist/user.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface IUser {
2
+ id: string;
3
+ displayName: string;
4
+ email: string;
5
+ photoURL: string;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
5
  "main": "./src/index.ts",
6
6
  "type": "module",
@@ -10,6 +10,10 @@
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js"
13
+ },
14
+ "./src": {
15
+ "types": "./src/index.d.ts",
16
+ "import": "./src/index.js"
13
17
  }
14
18
  },
15
19
  "repository": {