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