@mivis/petmart-api 1.2.13 → 1.2.15
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 +20 -5
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare namespace Components {
|
|
|
17
17
|
isSeller: boolean;
|
|
18
18
|
isActivated: boolean;
|
|
19
19
|
role: ERoles;
|
|
20
|
+
isExistPassword: boolean;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export type ISignUpResponse = ITokensResponse;
|
|
@@ -58,12 +59,13 @@ declare namespace Components {
|
|
|
58
59
|
message: string;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
export interface
|
|
62
|
-
email
|
|
63
|
-
|
|
62
|
+
export interface ISignUpSocialRequest {
|
|
63
|
+
email?: string;
|
|
64
|
+
tel?: number;
|
|
65
|
+
auth_type: ELoginTypes;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
export type
|
|
68
|
+
export type ISignUpSocialResponse = ILoginResponse;
|
|
67
69
|
|
|
68
70
|
export enum ERoles {
|
|
69
71
|
ADMIN = 'ADMIN',
|
|
@@ -170,7 +172,7 @@ declare namespace Components {
|
|
|
170
172
|
updatedAt: Date;
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
export interface
|
|
175
|
+
export interface IProductQueryRequest {
|
|
174
176
|
skip: string;
|
|
175
177
|
limit: string;
|
|
176
178
|
category_id?: string;
|
|
@@ -178,6 +180,11 @@ declare namespace Components {
|
|
|
178
180
|
name?: string;
|
|
179
181
|
}
|
|
180
182
|
|
|
183
|
+
export interface IProductQueryResponse {
|
|
184
|
+
products: IProduct[];
|
|
185
|
+
count: number;
|
|
186
|
+
}
|
|
187
|
+
|
|
181
188
|
export enum EProductStatus {
|
|
182
189
|
DRAFT = 'DRAFT',
|
|
183
190
|
MODERATION = 'MODERATION',
|
|
@@ -229,6 +236,14 @@ declare namespace Components {
|
|
|
229
236
|
id: string;
|
|
230
237
|
}
|
|
231
238
|
|
|
239
|
+
export interface IDeleteProductRequest {
|
|
240
|
+
delete: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface IDeleteProductResponse {
|
|
244
|
+
message: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
232
247
|
export interface ICreateCart {
|
|
233
248
|
product_id: string;
|
|
234
249
|
count: number;
|