@mivis/petmart-api 1.2.34 → 1.2.38
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 +24 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -219,11 +219,24 @@ declare namespace Components {
|
|
|
219
219
|
all_fields?: string;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
export interface IUserProductQueryRequest {
|
|
223
|
+
skip: string;
|
|
224
|
+
limit: string;
|
|
225
|
+
subCategory_id?: string;
|
|
226
|
+
seller_id?: string;
|
|
227
|
+
name?: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
222
230
|
export interface IProductQueryResponse {
|
|
223
231
|
products: IProductResponse[];
|
|
224
232
|
count: number;
|
|
225
233
|
}
|
|
226
234
|
|
|
235
|
+
export interface IUserProductQueryResponse {
|
|
236
|
+
products: IProductResponse[];
|
|
237
|
+
subCategories: ISubCategory[];
|
|
238
|
+
}
|
|
239
|
+
|
|
227
240
|
export enum EProductStatus {
|
|
228
241
|
DRAFT = 'DRAFT',
|
|
229
242
|
MODERATION = 'MODERATION',
|
|
@@ -403,6 +416,16 @@ declare namespace Components {
|
|
|
403
416
|
courier: boolean;
|
|
404
417
|
}
|
|
405
418
|
|
|
419
|
+
export enum ESellerStatus {
|
|
420
|
+
NOT_CREATED = 'NOT_CREATED',
|
|
421
|
+
WAITING_APPROVE = 'WAITING_APPROVE',
|
|
422
|
+
APPROVED = 'APPROVED',
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface IUserSellerStatusResponse {
|
|
426
|
+
status: ESellerStatus;
|
|
427
|
+
}
|
|
428
|
+
|
|
406
429
|
export interface ISeller {
|
|
407
430
|
_id: string;
|
|
408
431
|
user_id: {
|
|
@@ -430,6 +453,7 @@ declare namespace Components {
|
|
|
430
453
|
tel: number;
|
|
431
454
|
INN: number;
|
|
432
455
|
shop_name: string;
|
|
456
|
+
send_email?: boolean;
|
|
433
457
|
}
|
|
434
458
|
|
|
435
459
|
export interface ICreateSeller {
|