@mivis/petmart-api 1.1.2 → 1.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +2 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -28,12 +28,9 @@ declare namespace Components {
28
28
  export interface IUser {
29
29
  _id: string;
30
30
  tel: number;
31
- photo: string;
32
31
  name: string;
33
32
  sex: string;
34
33
  birthday: Date;
35
- desc: string;
36
- country: string;
37
34
  email: string;
38
35
  role: 'admin' | 'user';
39
36
  password: string;
@@ -53,12 +50,9 @@ declare namespace Components {
53
50
 
54
51
  export interface IUpdateUser {
55
52
  name: string;
56
- desc: string;
57
53
  tel: string;
58
- photo: string;
59
54
  email: string;
60
55
  birthday: string;
61
- country: string;
62
56
  sex: 'Мужской' | 'Женский';
63
57
  }
64
58
 
@@ -146,18 +140,14 @@ declare namespace Components {
146
140
  }
147
141
  export interface ICart {
148
142
  _id: string;
149
- owner: string;
143
+ owner?: string;
150
144
  product: {
151
145
  _id: string;
152
146
  name: string;
153
147
  photo: string[];
154
148
  };
155
149
  count: number;
156
- variation: IVariation[];
157
- status: string;
158
- date: Date;
159
- deliveryDate: Date;
160
- orderNumber: string;
150
+ variation: IVariation;
161
151
  }
162
152
 
163
153
  export interface ICategory {