@factorypure/client-helpers 1.0.20 → 1.0.21

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/dist/index.d.ts +110 -17
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -304,8 +304,7 @@ export declare const ResultIgnoreSchema: z.ZodObject<{
304
304
  }, z.core.$strip>;
305
305
  export type ResultIgnoreType = z.infer<typeof ResultIgnoreSchema>;
306
306
  export type ScrapeFiltersType = {
307
- found_id_exclusions: number[] | null;
308
- dayWindow: number | null;
307
+ found_id_exclusions: string[] | null;
309
308
  competitor_exclusions: string[];
310
309
  match_values: string[];
311
310
  skip_skus: string[];
@@ -314,20 +313,7 @@ export type ScrapeFiltersType = {
314
313
  search_exclusions: string[];
315
314
  result_ignore_keys: ResultIgnoreType[];
316
315
  brand_name_alternates: string[];
317
- };
318
- export type FilterOptionsType = {
319
- exclude_linked_variants_enabled?: boolean;
320
- found_id_exclusions_enabled?: boolean;
321
- price_filter_enabled?: boolean;
322
- date_filter_enabled?: boolean;
323
- competitor_filter_enabled?: boolean;
324
- duplicates_filter_enabled?: boolean;
325
- search_index_enabled?: boolean;
326
- skip_skus_enabled?: boolean;
327
- skip_vendors_enabled?: boolean;
328
- wattage_exclusions_enabled?: boolean;
329
- search_exclusions_enabled?: boolean;
330
- exclude_ignored_keys_enabled?: boolean;
316
+ dayWindow: number | null;
331
317
  };
332
318
  export declare const variantScrapeOptionsSchema: z.ZodObject<{
333
319
  search_exclusions: z.ZodArray<z.ZodString>;
@@ -380,7 +366,7 @@ export declare const HIDE_OVERRIDE_REASONS: {
380
366
  export declare const TOO_CHEAP_MULTIPLIER = 0.75;
381
367
  export declare const TOO_EXPENSIVE_MULTIPLIER = 1.15;
382
368
  export declare const filterScrapeResults: ({ scrapeResults, variant, filters, globalScrapeOptions, }: {
383
- scrapeResults: ScrapeResultsType[];
369
+ scrapeResults: ScrapeResultsType[] | ImmersiveScrapeResultsType[];
384
370
  variant: {
385
371
  id: number;
386
372
  title: string;
@@ -500,6 +486,113 @@ export declare const filterScrapeResults: ({ scrapeResults, variant, filters, gl
500
486
  is_immersive?: null | undefined;
501
487
  brand?: null | undefined;
502
488
  company_id?: null | undefined;
489
+ }[] | {
490
+ id: number;
491
+ scrape_id: number;
492
+ variant_id: number;
493
+ position: number;
494
+ title: string;
495
+ found_product_id: string;
496
+ product_link: string;
497
+ immersive_product_page_token: string;
498
+ source: string;
499
+ source_icon: string;
500
+ price: string;
501
+ extracted_price: number;
502
+ old_price: any;
503
+ extracted_old_price: any;
504
+ total: any;
505
+ extracted_total: any;
506
+ rating: any;
507
+ reviews: any;
508
+ details_and_offers: string[] | null;
509
+ tag: any;
510
+ discount: any;
511
+ extensions: any;
512
+ delivery: any;
513
+ delivery_extracted: any;
514
+ created_at: string;
515
+ store_id: number;
516
+ serpapi_thumbnail: string;
517
+ google_product_link: string;
518
+ calculated_sku: string | null;
519
+ calculated_sku_count: number | null;
520
+ raw_sku_results: any;
521
+ parsed_results: string | null;
522
+ lowest_price: number | null;
523
+ highest_price: number | null;
524
+ latest_source_count: number | null;
525
+ largest_source_count: number | null;
526
+ is_immersive: boolean;
527
+ score: number | null;
528
+ ignore_result: boolean;
529
+ ignore_reasons: string[];
530
+ hide_reasons: string[];
531
+ hide_override_reasons: string[];
532
+ brand: string | null;
533
+ company_id: number | null;
534
+ regexUnitResults: {
535
+ inch: {
536
+ value: string;
537
+ source: string;
538
+ normalized: string;
539
+ }[];
540
+ cm: {
541
+ value: string;
542
+ source: string;
543
+ normalized: string;
544
+ }[];
545
+ hp: {
546
+ value: string;
547
+ source: string;
548
+ normalized: string;
549
+ }[];
550
+ cc: {
551
+ value: string;
552
+ source: string;
553
+ normalized: string;
554
+ }[];
555
+ ton: {
556
+ value: string;
557
+ source: string;
558
+ normalized: string;
559
+ }[];
560
+ lbs: {
561
+ value: string;
562
+ source: string;
563
+ normalized: string;
564
+ }[];
565
+ volts: {
566
+ value: string;
567
+ source: string;
568
+ normalized: string;
569
+ }[];
570
+ amp: {
571
+ value: string;
572
+ source: string;
573
+ normalized: string;
574
+ }[];
575
+ watt: {
576
+ value: string;
577
+ source: string;
578
+ normalized: string;
579
+ }[];
580
+ mph: {
581
+ value: string;
582
+ source: string;
583
+ normalized: string;
584
+ }[];
585
+ mile: {
586
+ value: string;
587
+ source: string;
588
+ normalized: string;
589
+ }[];
590
+ ah: {
591
+ value: string;
592
+ source: string;
593
+ normalized: string;
594
+ }[];
595
+ } | null;
503
596
  }[];
504
597
  export declare const getRefurbishedKeywords: (variant: {
505
598
  sku?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorypure/client-helpers",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",