@mivis/petmart-api 1.2.9 → 1.2.11
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 +25 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -58,6 +58,15 @@ declare namespace Components {
|
|
|
58
58
|
message: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export interface ISignUpGoogleRequest {
|
|
62
|
+
email: string;
|
|
63
|
+
type: ELoginTypes;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface ISignUpGoogleResponse extends ILoginResponse {
|
|
67
|
+
isExistPassword?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
export enum ERoles {
|
|
62
71
|
ADMIN = 'ADMIN',
|
|
63
72
|
USER = 'USER',
|
|
@@ -146,6 +155,7 @@ declare namespace Components {
|
|
|
146
155
|
export interface IProduct {
|
|
147
156
|
_id: string;
|
|
148
157
|
name: string;
|
|
158
|
+
status: EProductStatus;
|
|
149
159
|
subCategory_id: string;
|
|
150
160
|
seller_id: string;
|
|
151
161
|
vendor_code: string;
|
|
@@ -162,6 +172,21 @@ declare namespace Components {
|
|
|
162
172
|
updatedAt: Date;
|
|
163
173
|
}
|
|
164
174
|
|
|
175
|
+
export interface IProductQueryParams {
|
|
176
|
+
skip: string;
|
|
177
|
+
limit: string;
|
|
178
|
+
category_id?: string;
|
|
179
|
+
subCategory_id?: string;
|
|
180
|
+
name?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export enum EProductStatus {
|
|
184
|
+
DRAFT = 'DRAFT',
|
|
185
|
+
MODERATION = 'MODERATION',
|
|
186
|
+
PUBLISHED = 'PUBLISHED',
|
|
187
|
+
REJECTED = 'REJECTED',
|
|
188
|
+
}
|
|
189
|
+
|
|
165
190
|
export interface IProductResponseWithSubCategory {
|
|
166
191
|
_id: string;
|
|
167
192
|
name: string;
|