@kkkarsss/lr-models 1.0.0 → 1.0.2

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.
@@ -11,6 +11,7 @@ export type TGetTasksByUserIdRequestParams = {
11
11
  export type TTaskFilter = {
12
12
  projectId?: TProject['id'];
13
13
  dueDate?: string;
14
+ statuses?: TTask['status'][];
14
15
  };
15
16
  export type TGetTasksByUserIdRequestQuery = TTaskFilter;
16
17
  export type TUpdateTaskStatusRequestBody = {
@@ -1 +1,4 @@
1
1
  export type TGetCurrentUserRequestParams = Record<string, never>;
2
+ export type TGetUserByLoginRequest = {
3
+ login: string;
4
+ };
@@ -0,0 +1,14 @@
1
+ import { TUser } from './user';
2
+ export type TLoginRequest = {
3
+ login: string;
4
+ passwordHash: string;
5
+ };
6
+ export type TRegisterRequest = {
7
+ login: string;
8
+ passwordHash: string;
9
+ name?: string;
10
+ };
11
+ export type TAuthResponse = {
12
+ user: TUser;
13
+ token?: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from './user';
2
+ export * from './auth';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
+ __exportStar(require("./auth"), exports);
@@ -6,4 +6,5 @@ export type TUser = {
6
6
  phone: string;
7
7
  createdAt: Date;
8
8
  code: string;
9
+ login?: string;
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkkarsss/lr-models",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Common models for life-reader project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",