@mivis/petmart-api 1.2.8 → 1.2.10

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 +17 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -13,7 +13,7 @@ declare namespace Components {
13
13
  email: string;
14
14
  password: string;
15
15
  }
16
- export interface ILoginResponse {
16
+ export interface ILoginResponse extends ITokensResponse {
17
17
  isSeller?: boolean;
18
18
  isActivated?: boolean;
19
19
  role: ERoles;
@@ -146,6 +146,7 @@ declare namespace Components {
146
146
  export interface IProduct {
147
147
  _id: string;
148
148
  name: string;
149
+ status: EProductStatus;
149
150
  subCategory_id: string;
150
151
  seller_id: string;
151
152
  vendor_code: string;
@@ -162,6 +163,21 @@ declare namespace Components {
162
163
  updatedAt: Date;
163
164
  }
164
165
 
166
+ export interface IProductQueryParams {
167
+ skip: string;
168
+ limit: string;
169
+ category_id?: string;
170
+ subCategory_id?: string;
171
+ name?: string;
172
+ }
173
+
174
+ export enum EProductStatus {
175
+ DRAFT = 'DRAFT',
176
+ MODERATION = 'MODERATION',
177
+ PUBLISHED = 'PUBLISHED',
178
+ REJECTED = 'REJECTED',
179
+ }
180
+
165
181
  export interface IProductResponseWithSubCategory {
166
182
  _id: string;
167
183
  name: string;