@mivis/petmart-api 1.2.14 → 1.2.16
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 +27 -6
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -59,12 +59,20 @@ declare namespace Components {
|
|
|
59
59
|
message: string;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export interface
|
|
62
|
+
export interface ISignUpSocialRequest {
|
|
63
63
|
email: string;
|
|
64
|
-
|
|
64
|
+
auth_type: ELoginTypes;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ISignUpSocialResponse = ILoginResponse;
|
|
68
|
+
|
|
69
|
+
export interface ISignUpVkRequest {
|
|
70
|
+
silent_token: string;
|
|
71
|
+
uuid: string;
|
|
72
|
+
auth_type: ELoginTypes;
|
|
65
73
|
}
|
|
66
74
|
|
|
67
|
-
export type
|
|
75
|
+
export type ISignUpVkResponse = ILoginResponse;
|
|
68
76
|
|
|
69
77
|
export enum ERoles {
|
|
70
78
|
ADMIN = 'ADMIN',
|
|
@@ -78,7 +86,7 @@ declare namespace Components {
|
|
|
78
86
|
birthday: Date;
|
|
79
87
|
email: string;
|
|
80
88
|
role: ERoles;
|
|
81
|
-
|
|
89
|
+
vk_id: number;
|
|
82
90
|
createdAt: Date;
|
|
83
91
|
updatedAt: Date;
|
|
84
92
|
}
|
|
@@ -171,7 +179,7 @@ declare namespace Components {
|
|
|
171
179
|
updatedAt: Date;
|
|
172
180
|
}
|
|
173
181
|
|
|
174
|
-
export interface
|
|
182
|
+
export interface IProductQueryRequest {
|
|
175
183
|
skip: string;
|
|
176
184
|
limit: string;
|
|
177
185
|
category_id?: string;
|
|
@@ -179,6 +187,11 @@ declare namespace Components {
|
|
|
179
187
|
name?: string;
|
|
180
188
|
}
|
|
181
189
|
|
|
190
|
+
export interface IProductQueryResponse {
|
|
191
|
+
products: IProduct[];
|
|
192
|
+
count: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
182
195
|
export enum EProductStatus {
|
|
183
196
|
DRAFT = 'DRAFT',
|
|
184
197
|
MODERATION = 'MODERATION',
|
|
@@ -230,6 +243,14 @@ declare namespace Components {
|
|
|
230
243
|
id: string;
|
|
231
244
|
}
|
|
232
245
|
|
|
246
|
+
export interface IDeleteProductRequest {
|
|
247
|
+
delete: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface IDeleteProductResponse {
|
|
251
|
+
message: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
233
254
|
export interface ICreateCart {
|
|
234
255
|
product_id: string;
|
|
235
256
|
count: number;
|
|
@@ -353,7 +374,7 @@ declare namespace Components {
|
|
|
353
374
|
commission?: number;
|
|
354
375
|
}
|
|
355
376
|
|
|
356
|
-
export type TUser_Data = Pick<IUser, 'email' | 'name' | 'tel'
|
|
377
|
+
export type TUser_Data = Pick<IUser, 'email' | 'name' | 'tel'>;
|
|
357
378
|
|
|
358
379
|
export interface IUpdateSeller {
|
|
359
380
|
id: string;
|