@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
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;