randmarcomps 1.61.0 → 1.62.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.
@@ -94,6 +94,16 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
94
94
 
95
95
  export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
96
96
 
97
+ declare interface IManufacturerCategory {
98
+ AutoReorder: boolean;
99
+ CategoryCode: string;
100
+ CategoryName: string;
101
+ ManufacturerId: string;
102
+ Niche: string;
103
+ QualificationRequired: boolean;
104
+ Starred: boolean;
105
+ }
106
+
97
107
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
98
108
 
99
109
  export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
@@ -113,6 +123,194 @@ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">
113
123
  onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
114
124
  }
115
125
 
126
+ declare interface IOpportunityDetail {
127
+ Active: boolean;
128
+ BidNumber: string;
129
+ EndDate: string;
130
+ Opportunity: string;
131
+ ManufacturerId: string;
132
+ Price: number;
133
+ Product: IProduct;
134
+ RandmarSKU: string;
135
+ Rebate: number;
136
+ }
137
+
138
+ declare interface IProduct {
139
+ ManufacturerName: string;
140
+ ManufacturerId: string;
141
+ Manufacturer: IProductManufacturer;
142
+ Orders: IProductOrder[];
143
+ Shipments: IProductShipment[];
144
+ Invoices: IProductInvoice[];
145
+ Credits: IProductCredit[];
146
+ Returns: IProductReturn[];
147
+ InstantRebate: IProductInstantRebate;
148
+ Newest: IProductNewest[];
149
+ RetailPricing: IProductRetailPricing[];
150
+ ManufacturerCategory: IManufacturerCategory;
151
+ Opportunities: IOpportunityDetail[];
152
+ Distribution?: {
153
+ Price: number;
154
+ RegularPrice: number;
155
+ MAP: number;
156
+ Inventory: IWarehouseInventory[];
157
+ };
158
+ MPN: string;
159
+ RandmarSKU: string;
160
+ RandmarTitle: string;
161
+ UPC: string;
162
+ UnitWeight: number;
163
+ SkidQuantity: number;
164
+ MasterCarton: number;
165
+ CanBeAllocated: boolean;
166
+ AvailableToBuy: boolean;
167
+ SerialNumber: boolean;
168
+ AutoUpdate: boolean;
169
+ LastMaintainedDate: number;
170
+ Category: string;
171
+ CreatedBy: string;
172
+ ProductType: string;
173
+ ShopifyProduct: object;
174
+ BodyHTML: string;
175
+ Title: string;
176
+ MAP: number;
177
+ State: string;
178
+ OpportunityOnly: boolean;
179
+ Receipts: IReceivingProduct[];
180
+ VoiceoverCaption: string;
181
+ SceneName: string;
182
+ Require3DScan: boolean;
183
+ TransparencyCode: boolean;
184
+ CountryCodeOfOrigin: string | undefined;
185
+ }
186
+
187
+ declare interface IProductCredit {
188
+ RandmarSKU: string;
189
+ QuantityOrdered: number;
190
+ QuantityShipped: number;
191
+ CreditNumber: string;
192
+ Location: string;
193
+ ManufacturerPartNumber: string;
194
+ Category: string;
195
+ ResellerId: string;
196
+ ShipToName: string;
197
+ UnitPrice: number;
198
+ PONumber: string;
199
+ CreditDate: number;
200
+ }
201
+
202
+ declare interface IProductInstantRebate {
203
+ RebateAmount: number;
204
+ StartDate: string;
205
+ EndDate: string;
206
+ MPN: string;
207
+ RandmarTitle: string;
208
+ RandmarSKU: string;
209
+ UPC: string;
210
+ }
211
+
212
+ declare interface IProductInvoice {
213
+ RandmarSKU: string;
214
+ OrderNumber: string;
215
+ QuantityOrdered: number;
216
+ QuantityShipped: number;
217
+ InvoiceNumber: string;
218
+ Location: string;
219
+ ManufacturerPartNumber: string;
220
+ Category: string;
221
+ ResellerId: string;
222
+ ShipToName: string;
223
+ UnitPrice: number;
224
+ PONumber: string;
225
+ InvoiceDate: number;
226
+ }
227
+
228
+ declare interface IProductManufacturer {
229
+ ManufacturerId: string;
230
+ PublicEmail: string;
231
+ PublicName: string;
232
+ Website: string;
233
+ }
234
+
235
+ declare interface IProductNewest {
236
+ MPN: string;
237
+ RandmarTitle: string;
238
+ RandmarSKU: string;
239
+ UPC: string;
240
+ LastMaintainedDate: number;
241
+ }
242
+
243
+ declare interface IProductOrder {
244
+ RandmarSKU: string;
245
+ OrderNumber: string;
246
+ Location: string;
247
+ ResellerId: string;
248
+ QuantityOrdered: number;
249
+ QuantityBackOrdered: number;
250
+ ShipToName: string;
251
+ UnitPrice: number;
252
+ PONumber: string;
253
+ ManufacturerPartNumber: string;
254
+ ShipmentDate: number;
255
+ OrderDate: number;
256
+ }
257
+
258
+ declare interface IProductRetailPricing {
259
+ RetailerName: string;
260
+ Price: number;
261
+ }
262
+
263
+ declare interface IProductReturn {
264
+ RandmarSKU: string;
265
+ Quantity: number;
266
+ InvoiceNumber: string;
267
+ CreditNumber: string;
268
+ WarehouseLocation: string;
269
+ ResellerId: number;
270
+ ContactEmail: string;
271
+ ReasonForReturn: string;
272
+ ReturnNumber: string;
273
+ Status: string;
274
+ RequestDate: string;
275
+ }
276
+
277
+ declare interface IProductShipment {
278
+ ShipmentNumber: string;
279
+ Location: string;
280
+ QuantityOrdered: number;
281
+ QuantityShipped: number;
282
+ UnitPrice: number;
283
+ OrderNumber: string;
284
+ ShipToName: string;
285
+ PONumber: string;
286
+ ManufacturerPartNumber: string;
287
+ RandmarSKU: string;
288
+ ShipmentDate: string;
289
+ }
290
+
291
+ declare interface IReceivingProduct {
292
+ RandmarSKU: string;
293
+ MPN: string;
294
+ Description: string;
295
+ Location: string;
296
+ Quantity: number;
297
+ VendorName: string;
298
+ ReceiptDate: number;
299
+ }
300
+
301
+ declare interface IWarehouseInventory {
302
+ RandmarSKU: string;
303
+ WarehouseId: string;
304
+ WarehouseType: string;
305
+ Name: string;
306
+ City: string;
307
+ Province: string;
308
+ Country: string;
309
+ AvailableQuantity: number;
310
+ PurchaseOrderQuantity: number;
311
+ BinLocation: string;
312
+ }
313
+
116
314
  export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
117
315
 
118
316
  export declare function Layout({ children, rightMenu, routes, footer, handleValidSearch, dashboardTitle, onSignOut, searchPlaceholder }: LayoutProps): JSX.Element;
@@ -146,57 +344,21 @@ export declare interface NavRoute {
146
344
  showInNav?: boolean;
147
345
  }
148
346
 
149
- declare interface Opportunity {
150
- Opportunity: string;
151
- BidNumber: string;
152
- Price: number;
153
- Rebate: number;
154
- EndDate?: string;
155
- Active?: boolean;
156
- }
157
-
158
- export declare function ProductCard({ product, addToCart, syncToShopify, viewProductAction, addToCartAction, syncToShopifyAction, isActionLoading, }: ProductCardProps): JSX.Element;
347
+ export declare function ProductCard({ product, addToCart, syncToShopify, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
159
348
 
160
349
  export declare interface ProductCardProps {
161
- product?: {
162
- RandmarSKU: string;
163
- RandmarTitle: string;
164
- Title?: string;
165
- MPN?: string;
166
- UPC?: string;
167
- UnitWeight?: number;
168
- MAP?: number;
169
- AvailableToBuy?: boolean;
170
- SerialNumber?: boolean;
171
- TransparencyCode?: boolean;
172
- ManufacturerCategory?: {
173
- QualificationRequired?: boolean;
174
- };
175
- AutoUpdate?: boolean;
176
- ShopifyProduct?: object;
177
- Distribution?: {
178
- RegularPrice: number;
179
- Price: number;
180
- Inventory?: {
181
- AvailableQuantity?: number;
182
- }[];
183
- };
184
- Opportunities?: Opportunity[];
185
- InstantRebate?: {
186
- EndDate?: string;
187
- };
188
- ManufacturerId?: string;
189
- ManufacturerName?: string;
190
- };
350
+ product?: IProduct;
191
351
  addToCart?: boolean;
192
352
  syncToShopify?: boolean;
353
+ defaultOpportunityNumber?: string;
193
354
  viewProductAction?: () => void;
194
355
  addToCartAction?: (state: {
195
356
  quantity: number;
196
357
  bidNumber: string | null;
197
358
  }) => void;
359
+ isAddToCartActionLoading?: boolean;
198
360
  syncToShopifyAction?: () => void;
199
- isActionLoading?: boolean;
361
+ isSyncToShopifyActionLoading?: boolean;
200
362
  }
201
363
 
202
364
  export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;