@mivis/petmart-api 1.2.15 → 1.2.17
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 +45 -7
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -59,19 +59,51 @@ declare namespace Components {
|
|
|
59
59
|
message: string;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export interface
|
|
63
|
-
email
|
|
64
|
-
|
|
62
|
+
export interface ISignUpGoogleRequest {
|
|
63
|
+
email: string;
|
|
64
|
+
auth_type: ELoginTypes;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ISignUpGoogleResponse = ILoginResponse;
|
|
68
|
+
|
|
69
|
+
export interface ISignUpAppleRequest {
|
|
70
|
+
code: string;
|
|
65
71
|
auth_type: ELoginTypes;
|
|
66
72
|
}
|
|
67
73
|
|
|
68
|
-
export type
|
|
74
|
+
export type ISignUpAppleResponse = ILoginResponse;
|
|
75
|
+
|
|
76
|
+
export interface ISignUpVkRequest {
|
|
77
|
+
silent_token: string;
|
|
78
|
+
uuid: string;
|
|
79
|
+
auth_type: ELoginTypes;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type ISignUpVkResponse = ILoginResponse;
|
|
69
83
|
|
|
70
84
|
export enum ERoles {
|
|
71
85
|
ADMIN = 'ADMIN',
|
|
72
86
|
USER = 'USER',
|
|
73
87
|
}
|
|
74
88
|
|
|
89
|
+
export interface IActionsProductRequest {
|
|
90
|
+
toDelete: string;
|
|
91
|
+
toPublish: string;
|
|
92
|
+
toCopy: string;
|
|
93
|
+
toDraft: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export enum EActions {
|
|
97
|
+
DELETE = 'toDelete',
|
|
98
|
+
PUBLISH = 'toPublish',
|
|
99
|
+
COPY = 'toCopy',
|
|
100
|
+
DRAFT = 'toDraft',
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface IActionsProductResponse {
|
|
104
|
+
message: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
75
107
|
export interface IUser {
|
|
76
108
|
_id: string;
|
|
77
109
|
tel: number;
|
|
@@ -79,7 +111,7 @@ declare namespace Components {
|
|
|
79
111
|
birthday: Date;
|
|
80
112
|
email: string;
|
|
81
113
|
role: ERoles;
|
|
82
|
-
|
|
114
|
+
vk_id: number;
|
|
83
115
|
createdAt: Date;
|
|
84
116
|
updatedAt: Date;
|
|
85
117
|
}
|
|
@@ -289,6 +321,7 @@ declare namespace Components {
|
|
|
289
321
|
name: string;
|
|
290
322
|
photo: string;
|
|
291
323
|
};
|
|
324
|
+
status: ESubCategoryStatus;
|
|
292
325
|
createdAt: Date;
|
|
293
326
|
updatedAt: Date;
|
|
294
327
|
}
|
|
@@ -301,7 +334,12 @@ declare namespace Components {
|
|
|
301
334
|
export interface IUpdateSubCategory {
|
|
302
335
|
id: string;
|
|
303
336
|
name: string;
|
|
304
|
-
|
|
337
|
+
status: ESubCategoryStatus;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export enum ESubCategoryStatus {
|
|
341
|
+
MODERATION = 'MODERATION',
|
|
342
|
+
ACTIVE = 'ACTIVE',
|
|
305
343
|
}
|
|
306
344
|
|
|
307
345
|
export interface IBankingDetails {
|
|
@@ -367,7 +405,7 @@ declare namespace Components {
|
|
|
367
405
|
commission?: number;
|
|
368
406
|
}
|
|
369
407
|
|
|
370
|
-
export type TUser_Data = Pick<IUser, 'email' | 'name' | 'tel'
|
|
408
|
+
export type TUser_Data = Pick<IUser, 'email' | 'name' | 'tel'>;
|
|
371
409
|
|
|
372
410
|
export interface IUpdateSeller {
|
|
373
411
|
id: string;
|