@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.
- package/package.json +1 -1
- package/type.d.ts +2 -12
package/package.json
CHANGED
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
|
|
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 {
|