@mivis/petmart-api 1.2.163 → 1.2.164
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 +21 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -340,6 +340,27 @@ declare namespace Components {
|
|
|
340
340
|
updatedAt: Date;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
type TOptionalProperties = Pick<
|
|
344
|
+
IProductResponse,
|
|
345
|
+
| 'category_id'
|
|
346
|
+
| 'subCategory_id'
|
|
347
|
+
| 'vendor_code'
|
|
348
|
+
| 'desc'
|
|
349
|
+
| 'characteristic'
|
|
350
|
+
| 'dimension'
|
|
351
|
+
| 'tax'
|
|
352
|
+
| 'photo'
|
|
353
|
+
>;
|
|
354
|
+
|
|
355
|
+
type TRemainingProductResponseProperties = Omit<
|
|
356
|
+
IProductResponse,
|
|
357
|
+
keyof TOptionalProperties
|
|
358
|
+
>;
|
|
359
|
+
|
|
360
|
+
export interface IProductDraftResponse
|
|
361
|
+
extends TRemainingProductResponseProperties,
|
|
362
|
+
Partial<TOptionalProperties> {}
|
|
363
|
+
|
|
343
364
|
export interface IProductWithReviewResponse {
|
|
344
365
|
product: IProductResponse;
|
|
345
366
|
reviewsData: IReviewsData;
|