randmarcomps 1.63.0 → 1.64.0
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/dist/randmarcomps.d.ts +11 -3
- package/dist/randmarcomps.js +205 -204
- package/dist/randmarcomps.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -144,11 +144,13 @@ declare interface IProduct {
|
|
|
144
144
|
Invoices: IProductInvoice[];
|
|
145
145
|
Credits: IProductCredit[];
|
|
146
146
|
Returns: IProductReturn[];
|
|
147
|
+
InstantRebates: IProductInstantRebate[];
|
|
147
148
|
InstantRebate: IProductInstantRebate;
|
|
148
149
|
Newest: IProductNewest[];
|
|
149
150
|
RetailPricing: IProductRetailPricing[];
|
|
150
151
|
ManufacturerCategory: IManufacturerCategory;
|
|
151
152
|
Opportunities: IOpportunityDetail[];
|
|
153
|
+
SalesStatistics: ISalesStatistics[];
|
|
152
154
|
Distribution?: {
|
|
153
155
|
Price: number;
|
|
154
156
|
RegularPrice: number;
|
|
@@ -298,6 +300,12 @@ declare interface IReceivingProduct {
|
|
|
298
300
|
ReceiptDate: number;
|
|
299
301
|
}
|
|
300
302
|
|
|
303
|
+
declare interface ISalesStatistics {
|
|
304
|
+
Day: number;
|
|
305
|
+
Quantity: number;
|
|
306
|
+
ExtendedPrice: number;
|
|
307
|
+
}
|
|
308
|
+
|
|
301
309
|
declare interface IWarehouseInventory {
|
|
302
310
|
RandmarSKU: string;
|
|
303
311
|
WarehouseId: string;
|
|
@@ -344,10 +352,10 @@ export declare interface NavRoute {
|
|
|
344
352
|
showInNav?: boolean;
|
|
345
353
|
}
|
|
346
354
|
|
|
347
|
-
export declare function ProductCard({ product, addToCart, syncToShopify, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
|
|
355
|
+
export declare function ProductCard<T extends Partial<IProduct> = IProduct>({ product, addToCart, syncToShopify, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps<T>): JSX.Element;
|
|
348
356
|
|
|
349
|
-
export declare interface ProductCardProps {
|
|
350
|
-
product?:
|
|
357
|
+
export declare interface ProductCardProps<T extends Partial<IProduct> = IProduct> {
|
|
358
|
+
product?: T;
|
|
351
359
|
addToCart?: boolean;
|
|
352
360
|
syncToShopify?: boolean;
|
|
353
361
|
defaultOpportunityNumber?: string;
|