@seekora-ai/admin-api 1.1.65 → 1.1.67

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/api.ts CHANGED
@@ -2319,6 +2319,12 @@ export interface AnalyticsExtendedKPIResponse {
2319
2319
  * @memberof AnalyticsExtendedKPIResponse
2320
2320
  */
2321
2321
  'start_time'?: string;
2322
+ /**
2323
+ * Store-level breakdown
2324
+ * @type {Array<AnalyticsStoreBreakdown>}
2325
+ * @memberof AnalyticsExtendedKPIResponse
2326
+ */
2327
+ 'store_breakdown'?: Array<AnalyticsStoreBreakdown>;
2322
2328
  /**
2323
2329
  * Can be KPIMetrics or ComparisonMetrics
2324
2330
  * @type {any}
@@ -3339,6 +3345,12 @@ export interface AnalyticsGeoResponse {
3339
3345
  * @memberof AnalyticsGeoResponse
3340
3346
  */
3341
3347
  'start_time'?: string;
3348
+ /**
3349
+ * Store-level breakdown
3350
+ * @type {Array<AnalyticsStoreGeoBreakdown>}
3351
+ * @memberof AnalyticsGeoResponse
3352
+ */
3353
+ 'store_breakdown'?: Array<AnalyticsStoreGeoBreakdown>;
3342
3354
  /**
3343
3355
  *
3344
3356
  * @type {string}
@@ -5820,6 +5832,12 @@ export interface AnalyticsQueryResponse {
5820
5832
  * @memberof AnalyticsQueryResponse
5821
5833
  */
5822
5834
  'start_time'?: string;
5835
+ /**
5836
+ * Store-level breakdown
5837
+ * @type {Array<AnalyticsStoreQueryBreakdown>}
5838
+ * @memberof AnalyticsQueryResponse
5839
+ */
5840
+ 'store_breakdown'?: Array<AnalyticsStoreQueryBreakdown>;
5823
5841
  /**
5824
5842
  *
5825
5843
  * @type {string}
@@ -5926,6 +5944,123 @@ export interface AnalyticsSharedQueryAnalysis {
5926
5944
  */
5927
5945
  'this_item_position'?: number;
5928
5946
  }
5947
+ /**
5948
+ *
5949
+ * @export
5950
+ * @interface AnalyticsStoreBreakdown
5951
+ */
5952
+ export interface AnalyticsStoreBreakdown {
5953
+ /**
5954
+ *
5955
+ * @type {AnalyticsKPIMetrics}
5956
+ * @memberof AnalyticsStoreBreakdown
5957
+ */
5958
+ 'compare_summary'?: AnalyticsKPIMetrics;
5959
+ /**
5960
+ *
5961
+ * @type {number}
5962
+ * @memberof AnalyticsStoreBreakdown
5963
+ */
5964
+ 'store_id'?: number;
5965
+ /**
5966
+ *
5967
+ * @type {string}
5968
+ * @memberof AnalyticsStoreBreakdown
5969
+ */
5970
+ 'store_name'?: string;
5971
+ /**
5972
+ *
5973
+ * @type {AnalyticsKPIMetrics}
5974
+ * @memberof AnalyticsStoreBreakdown
5975
+ */
5976
+ 'summary'?: AnalyticsKPIMetrics;
5977
+ /**
5978
+ * Can be []KPIPointExtended or []ComparisonMetrics
5979
+ * @type {any}
5980
+ * @memberof AnalyticsStoreBreakdown
5981
+ */
5982
+ 'time_series'?: any;
5983
+ /**
5984
+ *
5985
+ * @type {string}
5986
+ * @memberof AnalyticsStoreBreakdown
5987
+ */
5988
+ 'xstoreid'?: string;
5989
+ }
5990
+ /**
5991
+ *
5992
+ * @export
5993
+ * @interface AnalyticsStoreGeoBreakdown
5994
+ */
5995
+ export interface AnalyticsStoreGeoBreakdown {
5996
+ /**
5997
+ * Can be []GeoAnalytic or []ComparisonMetrics
5998
+ * @type {any}
5999
+ * @memberof AnalyticsStoreGeoBreakdown
6000
+ */
6001
+ 'data'?: any;
6002
+ /**
6003
+ *
6004
+ * @type {number}
6005
+ * @memberof AnalyticsStoreGeoBreakdown
6006
+ */
6007
+ 'store_id'?: number;
6008
+ /**
6009
+ *
6010
+ * @type {string}
6011
+ * @memberof AnalyticsStoreGeoBreakdown
6012
+ */
6013
+ 'store_name'?: string;
6014
+ /**
6015
+ *
6016
+ * @type {number}
6017
+ * @memberof AnalyticsStoreGeoBreakdown
6018
+ */
6019
+ 'total'?: number;
6020
+ /**
6021
+ *
6022
+ * @type {string}
6023
+ * @memberof AnalyticsStoreGeoBreakdown
6024
+ */
6025
+ 'xstoreid'?: string;
6026
+ }
6027
+ /**
6028
+ *
6029
+ * @export
6030
+ * @interface AnalyticsStoreQueryBreakdown
6031
+ */
6032
+ export interface AnalyticsStoreQueryBreakdown {
6033
+ /**
6034
+ * Can be []QueryAnalytic or []ComparisonMetrics
6035
+ * @type {any}
6036
+ * @memberof AnalyticsStoreQueryBreakdown
6037
+ */
6038
+ 'data'?: any;
6039
+ /**
6040
+ *
6041
+ * @type {number}
6042
+ * @memberof AnalyticsStoreQueryBreakdown
6043
+ */
6044
+ 'store_id'?: number;
6045
+ /**
6046
+ *
6047
+ * @type {string}
6048
+ * @memberof AnalyticsStoreQueryBreakdown
6049
+ */
6050
+ 'store_name'?: string;
6051
+ /**
6052
+ *
6053
+ * @type {number}
6054
+ * @memberof AnalyticsStoreQueryBreakdown
6055
+ */
6056
+ 'total'?: number;
6057
+ /**
6058
+ *
6059
+ * @type {string}
6060
+ * @memberof AnalyticsStoreQueryBreakdown
6061
+ */
6062
+ 'xstoreid'?: string;
6063
+ }
5929
6064
  /**
5930
6065
  *
5931
6066
  * @export
@@ -9857,6 +9992,12 @@ export interface DataTypesDropdownRecommendationsConfig {
9857
9992
  * @memberof DataTypesDropdownRecommendationsConfig
9858
9993
  */
9859
9994
  'category_field_mappings'?: { [key: string]: string; };
9995
+ /**
9996
+ * Filtered tabs configuration (for tabbed product recommendations)
9997
+ * @type {boolean}
9998
+ * @memberof DataTypesDropdownRecommendationsConfig
9999
+ */
10000
+ 'enable_filtered_tabs'?: boolean;
9860
10001
  /**
9861
10002
  * Enable popular brands section
9862
10003
  * @type {boolean}
@@ -9887,6 +10028,12 @@ export interface DataTypesDropdownRecommendationsConfig {
9887
10028
  * @memberof DataTypesDropdownRecommendationsConfig
9888
10029
  */
9889
10030
  'exclude_out_of_stock'?: boolean;
10031
+ /**
10032
+ * Configuration for each filtered tab
10033
+ * @type {Array<DataTypesFilteredTabConfig>}
10034
+ * @memberof DataTypesDropdownRecommendationsConfig
10035
+ */
10036
+ 'filtered_tabs'?: Array<DataTypesFilteredTabConfig>;
9890
10037
  /**
9891
10038
  * Include only in stock products
9892
10039
  * @type {boolean}
@@ -10607,6 +10754,61 @@ export interface DataTypesFieldMetadata {
10607
10754
  */
10608
10755
  'type'?: string;
10609
10756
  }
10757
+ /**
10758
+ *
10759
+ * @export
10760
+ * @interface DataTypesFilteredTabConfig
10761
+ */
10762
+ export interface DataTypesFilteredTabConfig {
10763
+ /**
10764
+ * Optional description for the tab
10765
+ * @type {string}
10766
+ * @memberof DataTypesFilteredTabConfig
10767
+ */
10768
+ 'description'?: string;
10769
+ /**
10770
+ * Whether this tab is enabled
10771
+ * @type {boolean}
10772
+ * @memberof DataTypesFilteredTabConfig
10773
+ */
10774
+ 'enabled'?: boolean;
10775
+ /**
10776
+ * Facet filters to apply (e.g., {\"brand\": \"Nike\"}, {\"category\": \"Electronics\"})
10777
+ * @type {{ [key: string]: string; }}
10778
+ * @memberof DataTypesFilteredTabConfig
10779
+ */
10780
+ 'filters'?: { [key: string]: string; };
10781
+ /**
10782
+ * Unique tab ID (e.g., \"all\", \"brands\", \"categories\")
10783
+ * @type {string}
10784
+ * @memberof DataTypesFilteredTabConfig
10785
+ */
10786
+ 'id'?: string;
10787
+ /**
10788
+ * Display label for the tab (e.g., \"All Results\", \"Brands\", \"Categories\")
10789
+ * @type {string}
10790
+ * @memberof DataTypesFilteredTabConfig
10791
+ */
10792
+ 'label'?: string;
10793
+ /**
10794
+ * Max number of products to show in this tab (default: 8, max: 50)
10795
+ * @type {number}
10796
+ * @memberof DataTypesFilteredTabConfig
10797
+ */
10798
+ 'limit'?: number;
10799
+ /**
10800
+ * Display order priority (lower = higher priority, default: 0)
10801
+ * @type {number}
10802
+ * @memberof DataTypesFilteredTabConfig
10803
+ */
10804
+ 'priority'?: number;
10805
+ /**
10806
+ * Sort method: \"relevance\", \"popularity\", \"price_asc\", \"price_desc\" (default: \"relevance\")
10807
+ * @type {string}
10808
+ * @memberof DataTypesFilteredTabConfig
10809
+ */
10810
+ 'sort_by'?: string;
10811
+ }
10610
10812
  /**
10611
10813
  *
10612
10814
  * @export
@@ -24387,536 +24589,6 @@ export interface DefaultMenuRoutesUpdateMenuVisibilityResponse {
24387
24589
  */
24388
24590
  'menuName'?: string;
24389
24591
  }
24390
- /**
24391
- *
24392
- * @export
24393
- * @interface DropdownRecommendationsServiceDropdownConfigResponse
24394
- */
24395
- export interface DropdownRecommendationsServiceDropdownConfigResponse {
24396
- /**
24397
- *
24398
- * @type {DropdownRecommendationsServiceDropdownRecommendationsConfig}
24399
- * @memberof DropdownRecommendationsServiceDropdownConfigResponse
24400
- */
24401
- 'data'?: DropdownRecommendationsServiceDropdownRecommendationsConfig;
24402
- /**
24403
- *
24404
- * @type {string}
24405
- * @memberof DropdownRecommendationsServiceDropdownConfigResponse
24406
- */
24407
- 'message'?: string;
24408
- /**
24409
- *
24410
- * @type {string}
24411
- * @memberof DropdownRecommendationsServiceDropdownConfigResponse
24412
- */
24413
- 'status'?: string;
24414
- /**
24415
- *
24416
- * @type {string}
24417
- * @memberof DropdownRecommendationsServiceDropdownConfigResponse
24418
- */
24419
- 'timestamp'?: string;
24420
- /**
24421
- *
24422
- * @type {string}
24423
- * @memberof DropdownRecommendationsServiceDropdownConfigResponse
24424
- */
24425
- 'version'?: string;
24426
- }
24427
- /**
24428
- *
24429
- * @export
24430
- * @interface DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24431
- */
24432
- export interface DropdownRecommendationsServiceDropdownRecommendationsAPIResponse {
24433
- /**
24434
- *
24435
- * @type {DropdownRecommendationsServiceDropdownRecommendationsResponse}
24436
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24437
- */
24438
- 'data'?: DropdownRecommendationsServiceDropdownRecommendationsResponse;
24439
- /**
24440
- *
24441
- * @type {string}
24442
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24443
- */
24444
- 'error'?: string;
24445
- /**
24446
- *
24447
- * @type {string}
24448
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24449
- */
24450
- 'status'?: string;
24451
- /**
24452
- *
24453
- * @type {string}
24454
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24455
- */
24456
- 'timestamp'?: string;
24457
- /**
24458
- *
24459
- * @type {string}
24460
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
24461
- */
24462
- 'version'?: string;
24463
- }
24464
- /**
24465
- *
24466
- * @export
24467
- * @interface DropdownRecommendationsServiceDropdownRecommendationsConfig
24468
- */
24469
- export interface DropdownRecommendationsServiceDropdownRecommendationsConfig {
24470
- /**
24471
- *
24472
- * @type {{ [key: string]: string; }}
24473
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24474
- */
24475
- 'brand_field_mappings'?: { [key: string]: string; };
24476
- /**
24477
- * \'searches\', \'clicks\', \'conversions\'
24478
- * @type {string}
24479
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24480
- */
24481
- 'brand_sort_by'?: string;
24482
- /**
24483
- * Caching configuration
24484
- * @type {number}
24485
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24486
- */
24487
- 'cache_ttl_seconds'?: number;
24488
- /**
24489
- *
24490
- * @type {{ [key: string]: string; }}
24491
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24492
- */
24493
- 'category_field_mappings'?: { [key: string]: string; };
24494
- /**
24495
- *
24496
- * @type {string}
24497
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24498
- */
24499
- 'created_at'?: string;
24500
- /**
24501
- *
24502
- * @type {boolean}
24503
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24504
- */
24505
- 'enable_popular_brands'?: boolean;
24506
- /**
24507
- *
24508
- * @type {boolean}
24509
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24510
- */
24511
- 'enable_trending_products'?: boolean;
24512
- /**
24513
- *
24514
- * @type {boolean}
24515
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24516
- */
24517
- 'enable_trending_search'?: boolean;
24518
- /**
24519
- * Feature enable/disable flags
24520
- * @type {boolean}
24521
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24522
- */
24523
- 'enabled'?: boolean;
24524
- /**
24525
- * Additional filters
24526
- * @type {boolean}
24527
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24528
- */
24529
- 'exclude_out_of_stock'?: boolean;
24530
- /**
24531
- *
24532
- * @type {boolean}
24533
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24534
- */
24535
- 'include_only_in_stock'?: boolean;
24536
- /**
24537
- * Brand selection criteria
24538
- * @type {number}
24539
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24540
- */
24541
- 'min_brand_searches'?: number;
24542
- /**
24543
- * Product selection criteria
24544
- * @type {number}
24545
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24546
- */
24547
- 'min_product_clicks'?: number;
24548
- /**
24549
- *
24550
- * @type {number}
24551
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24552
- */
24553
- 'min_product_conversions'?: number;
24554
- /**
24555
- *
24556
- * @type {number}
24557
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24558
- */
24559
- 'popular_brands_limit'?: number;
24560
- /**
24561
- * Dataset-agnostic field mappings
24562
- * @type {{ [key: string]: string; }}
24563
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24564
- */
24565
- 'product_field_mappings'?: { [key: string]: string; };
24566
- /**
24567
- * \'clicks\', \'conversions\', \'revenue\', \'trend_score\'
24568
- * @type {string}
24569
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24570
- */
24571
- 'product_sort_by'?: string;
24572
- /**
24573
- *
24574
- * @type {number}
24575
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24576
- */
24577
- 'trending_products_limit'?: number;
24578
- /**
24579
- * Limits for each section
24580
- * @type {number}
24581
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24582
- */
24583
- 'trending_search_limit'?: number;
24584
- /**
24585
- * Time range configuration
24586
- * @type {number}
24587
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24588
- */
24589
- 'trending_time_range_days'?: number;
24590
- /**
24591
- *
24592
- * @type {string}
24593
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24594
- */
24595
- 'updated_at'?: string;
24596
- /**
24597
- * Trending search configuration
24598
- * @type {boolean}
24599
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
24600
- */
24601
- 'use_query_suggestions_config'?: boolean;
24602
- }
24603
- /**
24604
- *
24605
- * @export
24606
- * @interface DropdownRecommendationsServiceDropdownRecommendationsResponse
24607
- */
24608
- export interface DropdownRecommendationsServiceDropdownRecommendationsResponse {
24609
- /**
24610
- *
24611
- * @type {Array<DropdownRecommendationsServicePopularBrand>}
24612
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
24613
- */
24614
- 'popular_brands'?: Array<DropdownRecommendationsServicePopularBrand>;
24615
- /**
24616
- *
24617
- * @type {number}
24618
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
24619
- */
24620
- 'processing_time_ms'?: number;
24621
- /**
24622
- *
24623
- * @type {string}
24624
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
24625
- */
24626
- 'timestamp'?: string;
24627
- /**
24628
- *
24629
- * @type {Array<DropdownRecommendationsServiceTrendingProduct>}
24630
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
24631
- */
24632
- 'trending_products'?: Array<DropdownRecommendationsServiceTrendingProduct>;
24633
- /**
24634
- *
24635
- * @type {Array<DropdownRecommendationsServiceTrendingSearchItem>}
24636
- * @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
24637
- */
24638
- 'trending_search'?: Array<DropdownRecommendationsServiceTrendingSearchItem>;
24639
- }
24640
- /**
24641
- *
24642
- * @export
24643
- * @interface DropdownRecommendationsServicePopularBrand
24644
- */
24645
- export interface DropdownRecommendationsServicePopularBrand {
24646
- /**
24647
- *
24648
- * @type {number}
24649
- * @memberof DropdownRecommendationsServicePopularBrand
24650
- */
24651
- 'clicks'?: number;
24652
- /**
24653
- *
24654
- * @type {number}
24655
- * @memberof DropdownRecommendationsServicePopularBrand
24656
- */
24657
- 'conversions'?: number;
24658
- /**
24659
- *
24660
- * @type {string}
24661
- * @memberof DropdownRecommendationsServicePopularBrand
24662
- */
24663
- 'name'?: string;
24664
- /**
24665
- *
24666
- * @type {number}
24667
- * @memberof DropdownRecommendationsServicePopularBrand
24668
- */
24669
- 'searches'?: number;
24670
- }
24671
- /**
24672
- *
24673
- * @export
24674
- * @interface DropdownRecommendationsServiceTrendingProduct
24675
- */
24676
- export interface DropdownRecommendationsServiceTrendingProduct {
24677
- /**
24678
- *
24679
- * @type {string}
24680
- * @memberof DropdownRecommendationsServiceTrendingProduct
24681
- */
24682
- 'brand'?: string;
24683
- /**
24684
- *
24685
- * @type {string}
24686
- * @memberof DropdownRecommendationsServiceTrendingProduct
24687
- */
24688
- 'category'?: string;
24689
- /**
24690
- * Analytics metrics
24691
- * @type {number}
24692
- * @memberof DropdownRecommendationsServiceTrendingProduct
24693
- */
24694
- 'clicks'?: number;
24695
- /**
24696
- *
24697
- * @type {number}
24698
- * @memberof DropdownRecommendationsServiceTrendingProduct
24699
- */
24700
- 'conversions'?: number;
24701
- /**
24702
- *
24703
- * @type {string}
24704
- * @memberof DropdownRecommendationsServiceTrendingProduct
24705
- */
24706
- 'description'?: string;
24707
- /**
24708
- *
24709
- * @type {number}
24710
- * @memberof DropdownRecommendationsServiceTrendingProduct
24711
- */
24712
- 'discount'?: number;
24713
- /**
24714
- *
24715
- * @type {number}
24716
- * @memberof DropdownRecommendationsServiceTrendingProduct
24717
- */
24718
- 'discount_percentage'?: number;
24719
- /**
24720
- *
24721
- * @type {string}
24722
- * @memberof DropdownRecommendationsServiceTrendingProduct
24723
- */
24724
- 'id'?: string;
24725
- /**
24726
- *
24727
- * @type {string}
24728
- * @memberof DropdownRecommendationsServiceTrendingProduct
24729
- */
24730
- 'image'?: string;
24731
- /**
24732
- *
24733
- * @type {boolean}
24734
- * @memberof DropdownRecommendationsServiceTrendingProduct
24735
- */
24736
- 'in_stock'?: boolean;
24737
- /**
24738
- *
24739
- * @type {string}
24740
- * @memberof DropdownRecommendationsServiceTrendingProduct
24741
- */
24742
- 'name'?: string;
24743
- /**
24744
- *
24745
- * @type {number}
24746
- * @memberof DropdownRecommendationsServiceTrendingProduct
24747
- */
24748
- 'price'?: number;
24749
- /**
24750
- *
24751
- * @type {number}
24752
- * @memberof DropdownRecommendationsServiceTrendingProduct
24753
- */
24754
- 'revenue'?: number;
24755
- /**
24756
- *
24757
- * @type {number}
24758
- * @memberof DropdownRecommendationsServiceTrendingProduct
24759
- */
24760
- 'selling_price'?: number;
24761
- /**
24762
- *
24763
- * @type {string}
24764
- * @memberof DropdownRecommendationsServiceTrendingProduct
24765
- */
24766
- 'url'?: string;
24767
- }
24768
- /**
24769
- *
24770
- * @export
24771
- * @interface DropdownRecommendationsServiceTrendingSearchItem
24772
- */
24773
- export interface DropdownRecommendationsServiceTrendingSearchItem {
24774
- /**
24775
- *
24776
- * @type {string}
24777
- * @memberof DropdownRecommendationsServiceTrendingSearchItem
24778
- */
24779
- 'category'?: string;
24780
- /**
24781
- *
24782
- * @type {number}
24783
- * @memberof DropdownRecommendationsServiceTrendingSearchItem
24784
- */
24785
- 'popularity'?: number;
24786
- /**
24787
- *
24788
- * @type {string}
24789
- * @memberof DropdownRecommendationsServiceTrendingSearchItem
24790
- */
24791
- 'query'?: string;
24792
- }
24793
- /**
24794
- *
24795
- * @export
24796
- * @interface DropdownRecommendationsServiceUpdateDropdownConfigRequest
24797
- */
24798
- export interface DropdownRecommendationsServiceUpdateDropdownConfigRequest {
24799
- /**
24800
- *
24801
- * @type {{ [key: string]: string; }}
24802
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24803
- */
24804
- 'brand_field_mappings'?: { [key: string]: string; };
24805
- /**
24806
- *
24807
- * @type {string}
24808
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24809
- */
24810
- 'brand_sort_by'?: string;
24811
- /**
24812
- *
24813
- * @type {number}
24814
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24815
- */
24816
- 'cache_ttl_seconds'?: number;
24817
- /**
24818
- *
24819
- * @type {{ [key: string]: string; }}
24820
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24821
- */
24822
- 'category_field_mappings'?: { [key: string]: string; };
24823
- /**
24824
- *
24825
- * @type {boolean}
24826
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24827
- */
24828
- 'enable_popular_brands'?: boolean;
24829
- /**
24830
- *
24831
- * @type {boolean}
24832
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24833
- */
24834
- 'enable_trending_products'?: boolean;
24835
- /**
24836
- *
24837
- * @type {boolean}
24838
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24839
- */
24840
- 'enable_trending_search'?: boolean;
24841
- /**
24842
- *
24843
- * @type {boolean}
24844
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24845
- */
24846
- 'enabled'?: boolean;
24847
- /**
24848
- *
24849
- * @type {boolean}
24850
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24851
- */
24852
- 'exclude_out_of_stock'?: boolean;
24853
- /**
24854
- *
24855
- * @type {boolean}
24856
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24857
- */
24858
- 'include_only_in_stock'?: boolean;
24859
- /**
24860
- *
24861
- * @type {number}
24862
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24863
- */
24864
- 'min_brand_searches'?: number;
24865
- /**
24866
- *
24867
- * @type {number}
24868
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24869
- */
24870
- 'min_product_clicks'?: number;
24871
- /**
24872
- *
24873
- * @type {number}
24874
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24875
- */
24876
- 'min_product_conversions'?: number;
24877
- /**
24878
- *
24879
- * @type {number}
24880
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24881
- */
24882
- 'popular_brands_limit'?: number;
24883
- /**
24884
- *
24885
- * @type {{ [key: string]: string; }}
24886
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24887
- */
24888
- 'product_field_mappings'?: { [key: string]: string; };
24889
- /**
24890
- *
24891
- * @type {string}
24892
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24893
- */
24894
- 'product_sort_by'?: string;
24895
- /**
24896
- *
24897
- * @type {number}
24898
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24899
- */
24900
- 'trending_products_limit'?: number;
24901
- /**
24902
- *
24903
- * @type {number}
24904
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24905
- */
24906
- 'trending_search_limit'?: number;
24907
- /**
24908
- *
24909
- * @type {number}
24910
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24911
- */
24912
- 'trending_time_range_days'?: number;
24913
- /**
24914
- *
24915
- * @type {boolean}
24916
- * @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
24917
- */
24918
- 'use_query_suggestions_config'?: boolean;
24919
- }
24920
24592
  /**
24921
24593
  *
24922
24594
  * @export
@@ -25638,6 +25310,18 @@ export interface QuerySuggestionsServiceDropdownRecommendations {
25638
25310
  * @memberof QuerySuggestionsServiceDropdownRecommendations
25639
25311
  */
25640
25312
  'cached_at'?: string;
25313
+ /**
25314
+ * Filtered product tabs (e.g., \"All\", \"Brands\", \"Categories\")
25315
+ * @type {Array<QuerySuggestionsServiceFilteredTabResult>}
25316
+ * @memberof QuerySuggestionsServiceDropdownRecommendations
25317
+ */
25318
+ 'filtered_tabs'?: Array<QuerySuggestionsServiceFilteredTabResult>;
25319
+ /**
25320
+ * Item recommendations for query
25321
+ * @type {Array<QuerySuggestionsServiceTrendingProduct>}
25322
+ * @memberof QuerySuggestionsServiceDropdownRecommendations
25323
+ */
25324
+ 'item_recommendations'?: Array<QuerySuggestionsServiceTrendingProduct>;
25641
25325
  /**
25642
25326
  * Popular brands
25643
25327
  * @type {Array<QuerySuggestionsServicePopularBrand>}
@@ -25650,6 +25334,18 @@ export interface QuerySuggestionsServiceDropdownRecommendations {
25650
25334
  * @memberof QuerySuggestionsServiceDropdownRecommendations
25651
25335
  */
25652
25336
  'processing_time_ms'?: number;
25337
+ /**
25338
+ * Related searches for query
25339
+ * @type {Array<QuerySuggestionsServiceQuerySuggestion>}
25340
+ * @memberof QuerySuggestionsServiceDropdownRecommendations
25341
+ */
25342
+ 'related_searches'?: Array<QuerySuggestionsServiceQuerySuggestion>;
25343
+ /**
25344
+ * Top searches (unfiltered)
25345
+ * @type {Array<QuerySuggestionsServiceTrendingSearch>}
25346
+ * @memberof QuerySuggestionsServiceDropdownRecommendations
25347
+ */
25348
+ 'top_searches'?: Array<QuerySuggestionsServiceTrendingSearch>;
25653
25349
  /**
25654
25350
  * Trending products
25655
25351
  * @type {Array<QuerySuggestionsServiceTrendingProduct>}
@@ -25775,6 +25471,43 @@ export interface QuerySuggestionsServiceFacetUsage {
25775
25471
  */
25776
25472
  'value'?: string;
25777
25473
  }
25474
+ /**
25475
+ *
25476
+ * @export
25477
+ * @interface QuerySuggestionsServiceFilteredTabResult
25478
+ */
25479
+ export interface QuerySuggestionsServiceFilteredTabResult {
25480
+ /**
25481
+ * Tab ID (matches FilteredTabConfig.ID)
25482
+ * @type {string}
25483
+ * @memberof QuerySuggestionsServiceFilteredTabResult
25484
+ */
25485
+ 'id'?: string;
25486
+ /**
25487
+ * Display label for the tab
25488
+ * @type {string}
25489
+ * @memberof QuerySuggestionsServiceFilteredTabResult
25490
+ */
25491
+ 'label'?: string;
25492
+ /**
25493
+ * Total number of products found
25494
+ * @type {number}
25495
+ * @memberof QuerySuggestionsServiceFilteredTabResult
25496
+ */
25497
+ 'nb_hits'?: number;
25498
+ /**
25499
+ * Processing time for this tab
25500
+ * @type {number}
25501
+ * @memberof QuerySuggestionsServiceFilteredTabResult
25502
+ */
25503
+ 'processing_time_ms'?: number;
25504
+ /**
25505
+ * Filtered products for this tab
25506
+ * @type {Array<QuerySuggestionsServiceTrendingProduct>}
25507
+ * @memberof QuerySuggestionsServiceFilteredTabResult
25508
+ */
25509
+ 'products'?: Array<QuerySuggestionsServiceTrendingProduct>;
25510
+ }
25778
25511
  /**
25779
25512
  *
25780
25513
  * @export
@@ -30568,7 +30301,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
30568
30301
  * @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
30569
30302
  * @param {string} [analyticsTags] Comma-separated analytics tags to filter
30570
30303
  * @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
30571
- * @param {boolean} [compareMode] Enable comparison mode
30304
+ * @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
30572
30305
  * @param {*} [options] Override http request option.
30573
30306
  * @throws {RequiredError}
30574
30307
  */
@@ -32894,7 +32627,7 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
32894
32627
  * @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
32895
32628
  * @param {string} [analyticsTags] Comma-separated analytics tags to filter
32896
32629
  * @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
32897
- * @param {boolean} [compareMode] Enable comparison mode
32630
+ * @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
32898
32631
  * @param {*} [options] Override http request option.
32899
32632
  * @throws {RequiredError}
32900
32633
  */
@@ -33511,7 +33244,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
33511
33244
  * @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
33512
33245
  * @param {string} [analyticsTags] Comma-separated analytics tags to filter
33513
33246
  * @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
33514
- * @param {boolean} [compareMode] Enable comparison mode
33247
+ * @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
33515
33248
  * @param {*} [options] Override http request option.
33516
33249
  * @throws {RequiredError}
33517
33250
  */
@@ -34058,7 +33791,7 @@ export class AnalyticsApi extends BaseAPI {
34058
33791
  * @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
34059
33792
  * @param {string} [analyticsTags] Comma-separated analytics tags to filter
34060
33793
  * @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
34061
- * @param {boolean} [compareMode] Enable comparison mode
33794
+ * @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
34062
33795
  * @param {*} [options] Override http request option.
34063
33796
  * @throws {RequiredError}
34064
33797
  * @memberof AnalyticsApi
@@ -44894,324 +44627,6 @@ export class DocumentsApi extends BaseAPI {
44894
44627
 
44895
44628
 
44896
44629
 
44897
- /**
44898
- * DropdownRecommendationsApi - axios parameter creator
44899
- * @export
44900
- */
44901
- export const DropdownRecommendationsApiAxiosParamCreator = function (configuration?: Configuration) {
44902
- return {
44903
- /**
44904
- * Retrieve configuration settings for dropdown recommendations
44905
- * @summary Get Dropdown Recommendations Configuration
44906
- * @param {string} xStoreid Store ID
44907
- * @param {string} xStoresecret Store Secret
44908
- * @param {*} [options] Override http request option.
44909
- * @throws {RequiredError}
44910
- */
44911
- v1DropdownRecommendationsConfigGet: async (xStoreid: string, xStoresecret: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44912
- // verify required parameter 'xStoreid' is not null or undefined
44913
- assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoreid', xStoreid)
44914
- // verify required parameter 'xStoresecret' is not null or undefined
44915
- assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoresecret', xStoresecret)
44916
- const localVarPath = `/v1/dropdown-recommendations/config`;
44917
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44918
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44919
- let baseOptions;
44920
- if (configuration) {
44921
- baseOptions = configuration.baseOptions;
44922
- }
44923
-
44924
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44925
- const localVarHeaderParameter = {} as any;
44926
- const localVarQueryParameter = {} as any;
44927
-
44928
-
44929
-
44930
- if (xStoreid != null) {
44931
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
44932
- }
44933
- if (xStoresecret != null) {
44934
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
44935
- }
44936
- setSearchParams(localVarUrlObj, localVarQueryParameter);
44937
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44938
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44939
-
44940
- return {
44941
- url: toPathString(localVarUrlObj),
44942
- options: localVarRequestOptions,
44943
- };
44944
- },
44945
- /**
44946
- * Update configuration settings for dropdown recommendations
44947
- * @summary Update Dropdown Recommendations Configuration
44948
- * @param {string} xStoreid Store ID
44949
- * @param {string} xStoresecret Store Secret
44950
- * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
44951
- * @param {*} [options] Override http request option.
44952
- * @throws {RequiredError}
44953
- */
44954
- v1DropdownRecommendationsConfigPut: async (xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44955
- // verify required parameter 'xStoreid' is not null or undefined
44956
- assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoreid', xStoreid)
44957
- // verify required parameter 'xStoresecret' is not null or undefined
44958
- assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoresecret', xStoresecret)
44959
- // verify required parameter 'dropdownRecommendationsServiceUpdateDropdownConfigRequest' is not null or undefined
44960
- assertParamExists('v1DropdownRecommendationsConfigPut', 'dropdownRecommendationsServiceUpdateDropdownConfigRequest', dropdownRecommendationsServiceUpdateDropdownConfigRequest)
44961
- const localVarPath = `/v1/dropdown-recommendations/config`;
44962
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44963
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44964
- let baseOptions;
44965
- if (configuration) {
44966
- baseOptions = configuration.baseOptions;
44967
- }
44968
-
44969
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
44970
- const localVarHeaderParameter = {} as any;
44971
- const localVarQueryParameter = {} as any;
44972
-
44973
-
44974
-
44975
- localVarHeaderParameter['Content-Type'] = 'application/json';
44976
-
44977
- if (xStoreid != null) {
44978
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
44979
- }
44980
- if (xStoresecret != null) {
44981
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
44982
- }
44983
- setSearchParams(localVarUrlObj, localVarQueryParameter);
44984
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44985
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44986
- localVarRequestOptions.data = serializeDataIfNeeded(dropdownRecommendationsServiceUpdateDropdownConfigRequest, localVarRequestOptions, configuration)
44987
-
44988
- return {
44989
- url: toPathString(localVarUrlObj),
44990
- options: localVarRequestOptions,
44991
- };
44992
- },
44993
- /**
44994
- * Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
44995
- * @summary Get Dropdown Recommendations
44996
- * @param {string} xStoreid Store ID
44997
- * @param {string} xStoresecret Store Secret
44998
- * @param {string} [xUserId] User ID for personalization
44999
- * @param {string} [xAnonId] Anonymous ID for personalization
45000
- * @param {string} [q] Query string for filtering suggestions (prefix match)
45001
- * @param {string} [query] Alternative query parameter for filtering suggestions
45002
- * @param {*} [options] Override http request option.
45003
- * @throws {RequiredError}
45004
- */
45005
- v1DropdownRecommendationsGet: async (xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, q?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45006
- // verify required parameter 'xStoreid' is not null or undefined
45007
- assertParamExists('v1DropdownRecommendationsGet', 'xStoreid', xStoreid)
45008
- // verify required parameter 'xStoresecret' is not null or undefined
45009
- assertParamExists('v1DropdownRecommendationsGet', 'xStoresecret', xStoresecret)
45010
- const localVarPath = `/v1/dropdown-recommendations`;
45011
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
45012
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45013
- let baseOptions;
45014
- if (configuration) {
45015
- baseOptions = configuration.baseOptions;
45016
- }
45017
-
45018
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
45019
- const localVarHeaderParameter = {} as any;
45020
- const localVarQueryParameter = {} as any;
45021
-
45022
- if (q !== undefined) {
45023
- localVarQueryParameter['q'] = q;
45024
- }
45025
-
45026
- if (query !== undefined) {
45027
- localVarQueryParameter['query'] = query;
45028
- }
45029
-
45030
-
45031
-
45032
- if (xStoreid != null) {
45033
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
45034
- }
45035
- if (xStoresecret != null) {
45036
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
45037
- }
45038
- if (xUserId != null) {
45039
- localVarHeaderParameter['x-user-id'] = String(xUserId);
45040
- }
45041
- if (xAnonId != null) {
45042
- localVarHeaderParameter['x-anon-id'] = String(xAnonId);
45043
- }
45044
- setSearchParams(localVarUrlObj, localVarQueryParameter);
45045
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45046
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45047
-
45048
- return {
45049
- url: toPathString(localVarUrlObj),
45050
- options: localVarRequestOptions,
45051
- };
45052
- },
45053
- }
45054
- };
45055
-
45056
- /**
45057
- * DropdownRecommendationsApi - functional programming interface
45058
- * @export
45059
- */
45060
- export const DropdownRecommendationsApiFp = function(configuration?: Configuration) {
45061
- const localVarAxiosParamCreator = DropdownRecommendationsApiAxiosParamCreator(configuration)
45062
- return {
45063
- /**
45064
- * Retrieve configuration settings for dropdown recommendations
45065
- * @summary Get Dropdown Recommendations Configuration
45066
- * @param {string} xStoreid Store ID
45067
- * @param {string} xStoresecret Store Secret
45068
- * @param {*} [options] Override http request option.
45069
- * @throws {RequiredError}
45070
- */
45071
- async v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse>> {
45072
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options);
45073
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
45074
- const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigGet']?.[localVarOperationServerIndex]?.url;
45075
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45076
- },
45077
- /**
45078
- * Update configuration settings for dropdown recommendations
45079
- * @summary Update Dropdown Recommendations Configuration
45080
- * @param {string} xStoreid Store ID
45081
- * @param {string} xStoresecret Store Secret
45082
- * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
45083
- * @param {*} [options] Override http request option.
45084
- * @throws {RequiredError}
45085
- */
45086
- async v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse>> {
45087
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options);
45088
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
45089
- const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigPut']?.[localVarOperationServerIndex]?.url;
45090
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45091
- },
45092
- /**
45093
- * Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
45094
- * @summary Get Dropdown Recommendations
45095
- * @param {string} xStoreid Store ID
45096
- * @param {string} xStoresecret Store Secret
45097
- * @param {string} [xUserId] User ID for personalization
45098
- * @param {string} [xAnonId] Anonymous ID for personalization
45099
- * @param {string} [q] Query string for filtering suggestions (prefix match)
45100
- * @param {string} [query] Alternative query parameter for filtering suggestions
45101
- * @param {*} [options] Override http request option.
45102
- * @throws {RequiredError}
45103
- */
45104
- async v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, q?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownRecommendationsAPIResponse>> {
45105
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options);
45106
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
45107
- const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsGet']?.[localVarOperationServerIndex]?.url;
45108
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45109
- },
45110
- }
45111
- };
45112
-
45113
- /**
45114
- * DropdownRecommendationsApi - factory interface
45115
- * @export
45116
- */
45117
- export const DropdownRecommendationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
45118
- const localVarFp = DropdownRecommendationsApiFp(configuration)
45119
- return {
45120
- /**
45121
- * Retrieve configuration settings for dropdown recommendations
45122
- * @summary Get Dropdown Recommendations Configuration
45123
- * @param {string} xStoreid Store ID
45124
- * @param {string} xStoresecret Store Secret
45125
- * @param {*} [options] Override http request option.
45126
- * @throws {RequiredError}
45127
- */
45128
- v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse> {
45129
- return localVarFp.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
45130
- },
45131
- /**
45132
- * Update configuration settings for dropdown recommendations
45133
- * @summary Update Dropdown Recommendations Configuration
45134
- * @param {string} xStoreid Store ID
45135
- * @param {string} xStoresecret Store Secret
45136
- * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
45137
- * @param {*} [options] Override http request option.
45138
- * @throws {RequiredError}
45139
- */
45140
- v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse> {
45141
- return localVarFp.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(axios, basePath));
45142
- },
45143
- /**
45144
- * Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
45145
- * @summary Get Dropdown Recommendations
45146
- * @param {string} xStoreid Store ID
45147
- * @param {string} xStoresecret Store Secret
45148
- * @param {string} [xUserId] User ID for personalization
45149
- * @param {string} [xAnonId] Anonymous ID for personalization
45150
- * @param {string} [q] Query string for filtering suggestions (prefix match)
45151
- * @param {string} [query] Alternative query parameter for filtering suggestions
45152
- * @param {*} [options] Override http request option.
45153
- * @throws {RequiredError}
45154
- */
45155
- v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, q?: string, query?: string, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownRecommendationsAPIResponse> {
45156
- return localVarFp.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options).then((request) => request(axios, basePath));
45157
- },
45158
- };
45159
- };
45160
-
45161
- /**
45162
- * DropdownRecommendationsApi - object-oriented interface
45163
- * @export
45164
- * @class DropdownRecommendationsApi
45165
- * @extends {BaseAPI}
45166
- */
45167
- export class DropdownRecommendationsApi extends BaseAPI {
45168
- /**
45169
- * Retrieve configuration settings for dropdown recommendations
45170
- * @summary Get Dropdown Recommendations Configuration
45171
- * @param {string} xStoreid Store ID
45172
- * @param {string} xStoresecret Store Secret
45173
- * @param {*} [options] Override http request option.
45174
- * @throws {RequiredError}
45175
- * @memberof DropdownRecommendationsApi
45176
- */
45177
- public v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig) {
45178
- return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
45179
- }
45180
-
45181
- /**
45182
- * Update configuration settings for dropdown recommendations
45183
- * @summary Update Dropdown Recommendations Configuration
45184
- * @param {string} xStoreid Store ID
45185
- * @param {string} xStoresecret Store Secret
45186
- * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
45187
- * @param {*} [options] Override http request option.
45188
- * @throws {RequiredError}
45189
- * @memberof DropdownRecommendationsApi
45190
- */
45191
- public v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig) {
45192
- return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(this.axios, this.basePath));
45193
- }
45194
-
45195
- /**
45196
- * Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
45197
- * @summary Get Dropdown Recommendations
45198
- * @param {string} xStoreid Store ID
45199
- * @param {string} xStoresecret Store Secret
45200
- * @param {string} [xUserId] User ID for personalization
45201
- * @param {string} [xAnonId] Anonymous ID for personalization
45202
- * @param {string} [q] Query string for filtering suggestions (prefix match)
45203
- * @param {string} [query] Alternative query parameter for filtering suggestions
45204
- * @param {*} [options] Override http request option.
45205
- * @throws {RequiredError}
45206
- * @memberof DropdownRecommendationsApi
45207
- */
45208
- public v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, q?: string, query?: string, options?: RawAxiosRequestConfig) {
45209
- return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options).then((request) => request(this.axios, this.basePath));
45210
- }
45211
- }
45212
-
45213
-
45214
-
45215
44630
  /**
45216
44631
  * ExternalAPINotificationsApi - axios parameter creator
45217
44632
  * @export
@@ -57535,6 +56950,43 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
57535
56950
 
57536
56951
 
57537
56952
 
56953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56955
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
56956
+
56957
+ return {
56958
+ url: toPathString(localVarUrlObj),
56959
+ options: localVarRequestOptions,
56960
+ };
56961
+ },
56962
+ /**
56963
+ * Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
56964
+ * @summary Complete Sync: Refresh + Promote + Sync to Typesense
56965
+ * @param {string} xStoreID Store ID
56966
+ * @param {*} [options] Override http request option.
56967
+ * @throws {RequiredError}
56968
+ */
56969
+ adminV1QuerySuggestionsXStoreIDCompleteSyncPost: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56970
+ // verify required parameter 'xStoreID' is not null or undefined
56971
+ assertParamExists('adminV1QuerySuggestionsXStoreIDCompleteSyncPost', 'xStoreID', xStoreID)
56972
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/complete-sync`
56973
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
56974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56976
+ let baseOptions;
56977
+ if (configuration) {
56978
+ baseOptions = configuration.baseOptions;
56979
+ }
56980
+
56981
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
56982
+ const localVarHeaderParameter = {} as any;
56983
+ const localVarQueryParameter = {} as any;
56984
+
56985
+ // authentication BearerAuth required
56986
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
56987
+
56988
+
56989
+
57538
56990
  setSearchParams(localVarUrlObj, localVarQueryParameter);
57539
56991
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57540
56992
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -58622,6 +58074,19 @@ export const QuerySuggestionsManagementApiFp = function(configuration?: Configur
58622
58074
  const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDCachedGet']?.[localVarOperationServerIndex]?.url;
58623
58075
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58624
58076
  },
58077
+ /**
58078
+ * Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
58079
+ * @summary Complete Sync: Refresh + Promote + Sync to Typesense
58080
+ * @param {string} xStoreID Store ID
58081
+ * @param {*} [options] Override http request option.
58082
+ * @throws {RequiredError}
58083
+ */
58084
+ async adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>> {
58085
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options);
58086
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58087
+ const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDCompleteSyncPost']?.[localVarOperationServerIndex]?.url;
58088
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58089
+ },
58625
58090
  /**
58626
58091
  * Retrieve the current configuration for query suggestions for a store
58627
58092
  * @summary Get Query Suggestions Configuration
@@ -59035,6 +58500,16 @@ export const QuerySuggestionsManagementApiFactory = function (configuration?: Co
59035
58500
  adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID: string, page?: number, pageSize?: number, minPopularity?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDCachedGet200Response> {
59036
58501
  return localVarFp.adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(axios, basePath));
59037
58502
  },
58503
+ /**
58504
+ * Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
58505
+ * @summary Complete Sync: Refresh + Promote + Sync to Typesense
58506
+ * @param {string} xStoreID Store ID
58507
+ * @param {*} [options] Override http request option.
58508
+ * @throws {RequiredError}
58509
+ */
58510
+ adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse> {
58511
+ return localVarFp.adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options).then((request) => request(axios, basePath));
58512
+ },
59038
58513
  /**
59039
58514
  * Retrieve the current configuration for query suggestions for a store
59040
58515
  * @summary Get Query Suggestions Configuration
@@ -59398,6 +58873,18 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
59398
58873
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(this.axios, this.basePath));
59399
58874
  }
59400
58875
 
58876
+ /**
58877
+ * Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
58878
+ * @summary Complete Sync: Refresh + Promote + Sync to Typesense
58879
+ * @param {string} xStoreID Store ID
58880
+ * @param {*} [options] Override http request option.
58881
+ * @throws {RequiredError}
58882
+ * @memberof QuerySuggestionsManagementApi
58883
+ */
58884
+ public adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID: string, options?: RawAxiosRequestConfig) {
58885
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
58886
+ }
58887
+
59401
58888
  /**
59402
58889
  * Retrieve the current configuration for query suggestions for a store
59403
58890
  * @summary Get Query Suggestions Configuration
@@ -65981,6 +65468,43 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
65981
65468
 
65982
65469
 
65983
65470
 
65471
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65472
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65473
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65474
+
65475
+ return {
65476
+ url: toPathString(localVarUrlObj),
65477
+ options: localVarRequestOptions,
65478
+ };
65479
+ },
65480
+ /**
65481
+ * Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
65482
+ * @summary Ensure Analytics Collections and Rules for Store
65483
+ * @param {string} xStoreID Store ID
65484
+ * @param {*} [options] Override http request option.
65485
+ * @throws {RequiredError}
65486
+ */
65487
+ adminStoresXStoreIDAnalyticsEnsurePost: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65488
+ // verify required parameter 'xStoreID' is not null or undefined
65489
+ assertParamExists('adminStoresXStoreIDAnalyticsEnsurePost', 'xStoreID', xStoreID)
65490
+ const localVarPath = `/admin/Stores/{xStoreID}/analytics/ensure`
65491
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65492
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65493
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65494
+ let baseOptions;
65495
+ if (configuration) {
65496
+ baseOptions = configuration.baseOptions;
65497
+ }
65498
+
65499
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
65500
+ const localVarHeaderParameter = {} as any;
65501
+ const localVarQueryParameter = {} as any;
65502
+
65503
+ // authentication BearerAuth required
65504
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65505
+
65506
+
65507
+
65984
65508
  setSearchParams(localVarUrlObj, localVarQueryParameter);
65985
65509
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65986
65510
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -66086,138 +65610,291 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
66086
65610
  };
66087
65611
  },
66088
65612
  /**
66089
- * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
66090
- * @summary Get API Usage Logs for Store
65613
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
65614
+ * @summary Get API Usage Logs for Store
65615
+ * @param {string} xStoreID Store ID
65616
+ * @param {string} [startDate] Start date (ISO 8601 format)
65617
+ * @param {string} [endDate] End date (ISO 8601 format)
65618
+ * @param {string} [method] HTTP method filter
65619
+ * @param {string} [path] Path filter (partial match)
65620
+ * @param {string} [statusCode] Status code filter: \&#39;2xx\&#39;, \&#39;4xx\&#39;, \&#39;5xx\&#39;, or specific code like \&#39;200\&#39;, \&#39;404\&#39;
65621
+ * @param {string} [endpointType] Endpoint type filter: \&#39;search\&#39;, \&#39;stores\&#39;, \&#39;analytics\&#39;, \&#39;connectors\&#39;, \&#39;credits\&#39;
65622
+ * @param {string} [responseTime] Response time filter: \&#39;fast\&#39; (&lt;100ms), \&#39;medium\&#39; (100-500ms), \&#39;slow\&#39; (&gt;500ms)
65623
+ * @param {number} [page] Page number (default: 1)
65624
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
65625
+ * @param {*} [options] Override http request option.
65626
+ * @throws {RequiredError}
65627
+ */
65628
+ adminStoresXStoreIDApiUsageGet: async (xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, statusCode?: string, endpointType?: string, responseTime?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65629
+ // verify required parameter 'xStoreID' is not null or undefined
65630
+ assertParamExists('adminStoresXStoreIDApiUsageGet', 'xStoreID', xStoreID)
65631
+ const localVarPath = `/admin/Stores/{xStoreID}/api-usage`
65632
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65633
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65634
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65635
+ let baseOptions;
65636
+ if (configuration) {
65637
+ baseOptions = configuration.baseOptions;
65638
+ }
65639
+
65640
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65641
+ const localVarHeaderParameter = {} as any;
65642
+ const localVarQueryParameter = {} as any;
65643
+
65644
+ // authentication BearerAuth required
65645
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65646
+
65647
+ if (startDate !== undefined) {
65648
+ localVarQueryParameter['start_date'] = startDate;
65649
+ }
65650
+
65651
+ if (endDate !== undefined) {
65652
+ localVarQueryParameter['end_date'] = endDate;
65653
+ }
65654
+
65655
+ if (method !== undefined) {
65656
+ localVarQueryParameter['method'] = method;
65657
+ }
65658
+
65659
+ if (path !== undefined) {
65660
+ localVarQueryParameter['path'] = path;
65661
+ }
65662
+
65663
+ if (statusCode !== undefined) {
65664
+ localVarQueryParameter['status_code'] = statusCode;
65665
+ }
65666
+
65667
+ if (endpointType !== undefined) {
65668
+ localVarQueryParameter['endpoint_type'] = endpointType;
65669
+ }
65670
+
65671
+ if (responseTime !== undefined) {
65672
+ localVarQueryParameter['response_time'] = responseTime;
65673
+ }
65674
+
65675
+ if (page !== undefined) {
65676
+ localVarQueryParameter['page'] = page;
65677
+ }
65678
+
65679
+ if (perPage !== undefined) {
65680
+ localVarQueryParameter['per_page'] = perPage;
65681
+ }
65682
+
65683
+
65684
+
65685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65687
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65688
+
65689
+ return {
65690
+ url: toPathString(localVarUrlObj),
65691
+ options: localVarRequestOptions,
65692
+ };
65693
+ },
65694
+ /**
65695
+ * Retrieves the store configuration using x-store ID, including onboarding status validation
65696
+ * @summary Get Store Config
65697
+ * @param {string} xStoreID X-Store ID
65698
+ * @param {*} [options] Override http request option.
65699
+ * @throws {RequiredError}
65700
+ */
65701
+ adminStoresXStoreIDConfigGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65702
+ // verify required parameter 'xStoreID' is not null or undefined
65703
+ assertParamExists('adminStoresXStoreIDConfigGet', 'xStoreID', xStoreID)
65704
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
65705
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65707
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65708
+ let baseOptions;
65709
+ if (configuration) {
65710
+ baseOptions = configuration.baseOptions;
65711
+ }
65712
+
65713
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65714
+ const localVarHeaderParameter = {} as any;
65715
+ const localVarQueryParameter = {} as any;
65716
+
65717
+ // authentication BearerAuth required
65718
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65719
+
65720
+
65721
+
65722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65724
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65725
+
65726
+ return {
65727
+ url: toPathString(localVarUrlObj),
65728
+ options: localVarRequestOptions,
65729
+ };
65730
+ },
65731
+ /**
65732
+ *
65733
+ * @summary Update Store Config (Partial)
65734
+ * @param {string} xStoreID X-Store ID
65735
+ * @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
65736
+ * @param {*} [options] Override http request option.
65737
+ * @throws {RequiredError}
65738
+ */
65739
+ adminStoresXStoreIDConfigPut: async (xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65740
+ // verify required parameter 'xStoreID' is not null or undefined
65741
+ assertParamExists('adminStoresXStoreIDConfigPut', 'xStoreID', xStoreID)
65742
+ // verify required parameter 'dataTypesIndexConfig' is not null or undefined
65743
+ assertParamExists('adminStoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig)
65744
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
65745
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65747
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65748
+ let baseOptions;
65749
+ if (configuration) {
65750
+ baseOptions = configuration.baseOptions;
65751
+ }
65752
+
65753
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
65754
+ const localVarHeaderParameter = {} as any;
65755
+ const localVarQueryParameter = {} as any;
65756
+
65757
+ // authentication BearerAuth required
65758
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65759
+
65760
+
65761
+
65762
+ localVarHeaderParameter['Content-Type'] = 'application/json';
65763
+
65764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65766
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65767
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesIndexConfig, localVarRequestOptions, configuration)
65768
+
65769
+ return {
65770
+ url: toPathString(localVarUrlObj),
65771
+ options: localVarRequestOptions,
65772
+ };
65773
+ },
65774
+ /**
65775
+ * Get metadata about all configurable fields for store configuration using x-store ID
65776
+ * @summary Get Store Config Schema
65777
+ * @param {string} xStoreID X-Store ID to get field options from
65778
+ * @param {*} [options] Override http request option.
65779
+ * @throws {RequiredError}
65780
+ */
65781
+ adminStoresXStoreIDConfigSchemaGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65782
+ // verify required parameter 'xStoreID' is not null or undefined
65783
+ assertParamExists('adminStoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID)
65784
+ const localVarPath = `/admin/Stores/{xStoreID}/config-schema`
65785
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65786
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65787
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65788
+ let baseOptions;
65789
+ if (configuration) {
65790
+ baseOptions = configuration.baseOptions;
65791
+ }
65792
+
65793
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65794
+ const localVarHeaderParameter = {} as any;
65795
+ const localVarQueryParameter = {} as any;
65796
+
65797
+ // authentication BearerAuth required
65798
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65799
+
65800
+
65801
+
65802
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65804
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65805
+
65806
+ return {
65807
+ url: toPathString(localVarUrlObj),
65808
+ options: localVarRequestOptions,
65809
+ };
65810
+ },
65811
+ /**
65812
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
65813
+ * @summary Get store credentials
65814
+ * @param {string} xStoreID X-Store ID
65815
+ * @param {*} [options] Override http request option.
65816
+ * @throws {RequiredError}
65817
+ */
65818
+ adminStoresXStoreIDCredentialsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65819
+ // verify required parameter 'xStoreID' is not null or undefined
65820
+ assertParamExists('adminStoresXStoreIDCredentialsGet', 'xStoreID', xStoreID)
65821
+ const localVarPath = `/admin/Stores/{xStoreID}/credentials`
65822
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65825
+ let baseOptions;
65826
+ if (configuration) {
65827
+ baseOptions = configuration.baseOptions;
65828
+ }
65829
+
65830
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65831
+ const localVarHeaderParameter = {} as any;
65832
+ const localVarQueryParameter = {} as any;
65833
+
65834
+ // authentication BearerAuth required
65835
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65836
+
65837
+
65838
+
65839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65842
+
65843
+ return {
65844
+ url: toPathString(localVarUrlObj),
65845
+ options: localVarRequestOptions,
65846
+ };
65847
+ },
65848
+ /**
65849
+ * Get default configuration values computed from the store\'s index schema using x-store ID
65850
+ * @summary Get Store Schema-Based Defaults
65851
+ * @param {string} xStoreID X-Store ID
65852
+ * @param {*} [options] Override http request option.
65853
+ * @throws {RequiredError}
65854
+ */
65855
+ adminStoresXStoreIDDefaultsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65856
+ // verify required parameter 'xStoreID' is not null or undefined
65857
+ assertParamExists('adminStoresXStoreIDDefaultsGet', 'xStoreID', xStoreID)
65858
+ const localVarPath = `/admin/Stores/{xStoreID}/defaults`
65859
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
65860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65862
+ let baseOptions;
65863
+ if (configuration) {
65864
+ baseOptions = configuration.baseOptions;
65865
+ }
65866
+
65867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65868
+ const localVarHeaderParameter = {} as any;
65869
+ const localVarQueryParameter = {} as any;
65870
+
65871
+ // authentication BearerAuth required
65872
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65873
+
65874
+
65875
+
65876
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65877
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65878
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65879
+
65880
+ return {
65881
+ url: toPathString(localVarUrlObj),
65882
+ options: localVarRequestOptions,
65883
+ };
65884
+ },
65885
+ /**
65886
+ * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
65887
+ * @summary Sync Popular Items to Typesense
66091
65888
  * @param {string} xStoreID Store ID
66092
- * @param {string} [startDate] Start date (ISO 8601 format)
66093
- * @param {string} [endDate] End date (ISO 8601 format)
66094
- * @param {string} [method] HTTP method filter
66095
- * @param {string} [path] Path filter (partial match)
66096
- * @param {string} [statusCode] Status code filter: \&#39;2xx\&#39;, \&#39;4xx\&#39;, \&#39;5xx\&#39;, or specific code like \&#39;200\&#39;, \&#39;404\&#39;
66097
- * @param {string} [endpointType] Endpoint type filter: \&#39;search\&#39;, \&#39;stores\&#39;, \&#39;analytics\&#39;, \&#39;connectors\&#39;, \&#39;credits\&#39;
66098
- * @param {string} [responseTime] Response time filter: \&#39;fast\&#39; (&lt;100ms), \&#39;medium\&#39; (100-500ms), \&#39;slow\&#39; (&gt;500ms)
66099
- * @param {number} [page] Page number (default: 1)
66100
- * @param {number} [perPage] Results per page (default: 50, max: 1000)
66101
- * @param {*} [options] Override http request option.
66102
- * @throws {RequiredError}
66103
- */
66104
- adminStoresXStoreIDApiUsageGet: async (xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, statusCode?: string, endpointType?: string, responseTime?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66105
- // verify required parameter 'xStoreID' is not null or undefined
66106
- assertParamExists('adminStoresXStoreIDApiUsageGet', 'xStoreID', xStoreID)
66107
- const localVarPath = `/admin/Stores/{xStoreID}/api-usage`
66108
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66109
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66110
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66111
- let baseOptions;
66112
- if (configuration) {
66113
- baseOptions = configuration.baseOptions;
66114
- }
66115
-
66116
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
66117
- const localVarHeaderParameter = {} as any;
66118
- const localVarQueryParameter = {} as any;
66119
-
66120
- // authentication BearerAuth required
66121
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66122
-
66123
- if (startDate !== undefined) {
66124
- localVarQueryParameter['start_date'] = startDate;
66125
- }
66126
-
66127
- if (endDate !== undefined) {
66128
- localVarQueryParameter['end_date'] = endDate;
66129
- }
66130
-
66131
- if (method !== undefined) {
66132
- localVarQueryParameter['method'] = method;
66133
- }
66134
-
66135
- if (path !== undefined) {
66136
- localVarQueryParameter['path'] = path;
66137
- }
66138
-
66139
- if (statusCode !== undefined) {
66140
- localVarQueryParameter['status_code'] = statusCode;
66141
- }
66142
-
66143
- if (endpointType !== undefined) {
66144
- localVarQueryParameter['endpoint_type'] = endpointType;
66145
- }
66146
-
66147
- if (responseTime !== undefined) {
66148
- localVarQueryParameter['response_time'] = responseTime;
66149
- }
66150
-
66151
- if (page !== undefined) {
66152
- localVarQueryParameter['page'] = page;
66153
- }
66154
-
66155
- if (perPage !== undefined) {
66156
- localVarQueryParameter['per_page'] = perPage;
66157
- }
66158
-
66159
-
66160
-
66161
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66162
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66163
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66164
-
66165
- return {
66166
- url: toPathString(localVarUrlObj),
66167
- options: localVarRequestOptions,
66168
- };
66169
- },
66170
- /**
66171
- * Retrieves the store configuration using x-store ID, including onboarding status validation
66172
- * @summary Get Store Config
66173
- * @param {string} xStoreID X-Store ID
66174
- * @param {*} [options] Override http request option.
66175
- * @throws {RequiredError}
66176
- */
66177
- adminStoresXStoreIDConfigGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66178
- // verify required parameter 'xStoreID' is not null or undefined
66179
- assertParamExists('adminStoresXStoreIDConfigGet', 'xStoreID', xStoreID)
66180
- const localVarPath = `/admin/Stores/{xStoreID}/config`
66181
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66182
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66183
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66184
- let baseOptions;
66185
- if (configuration) {
66186
- baseOptions = configuration.baseOptions;
66187
- }
66188
-
66189
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
66190
- const localVarHeaderParameter = {} as any;
66191
- const localVarQueryParameter = {} as any;
66192
-
66193
- // authentication BearerAuth required
66194
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66195
-
66196
-
66197
-
66198
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66199
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66200
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66201
-
66202
- return {
66203
- url: toPathString(localVarUrlObj),
66204
- options: localVarRequestOptions,
66205
- };
66206
- },
66207
- /**
66208
- *
66209
- * @summary Update Store Config (Partial)
66210
- * @param {string} xStoreID X-Store ID
66211
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
65889
+ * @param {number} [limit] Number of items to sync (default: 100)
65890
+ * @param {number} [daysBack] Number of days to look back (default: 30)
66212
65891
  * @param {*} [options] Override http request option.
66213
65892
  * @throws {RequiredError}
66214
65893
  */
66215
- adminStoresXStoreIDConfigPut: async (xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65894
+ adminStoresXStoreIDPopularItemsSyncPost: async (xStoreID: string, limit?: number, daysBack?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66216
65895
  // verify required parameter 'xStoreID' is not null or undefined
66217
- assertParamExists('adminStoresXStoreIDConfigPut', 'xStoreID', xStoreID)
66218
- // verify required parameter 'dataTypesIndexConfig' is not null or undefined
66219
- assertParamExists('adminStoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig)
66220
- const localVarPath = `/admin/Stores/{xStoreID}/config`
65896
+ assertParamExists('adminStoresXStoreIDPopularItemsSyncPost', 'xStoreID', xStoreID)
65897
+ const localVarPath = `/admin/Stores/{xStoreID}/popular-items/sync`
66221
65898
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66222
65899
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
66223
65900
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66226,127 +65903,21 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
66226
65903
  baseOptions = configuration.baseOptions;
66227
65904
  }
66228
65905
 
66229
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
66230
- const localVarHeaderParameter = {} as any;
66231
- const localVarQueryParameter = {} as any;
66232
-
66233
- // authentication BearerAuth required
66234
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66235
-
66236
-
66237
-
66238
- localVarHeaderParameter['Content-Type'] = 'application/json';
66239
-
66240
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66241
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66242
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66243
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesIndexConfig, localVarRequestOptions, configuration)
66244
-
66245
- return {
66246
- url: toPathString(localVarUrlObj),
66247
- options: localVarRequestOptions,
66248
- };
66249
- },
66250
- /**
66251
- * Get metadata about all configurable fields for store configuration using x-store ID
66252
- * @summary Get Store Config Schema
66253
- * @param {string} xStoreID X-Store ID to get field options from
66254
- * @param {*} [options] Override http request option.
66255
- * @throws {RequiredError}
66256
- */
66257
- adminStoresXStoreIDConfigSchemaGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66258
- // verify required parameter 'xStoreID' is not null or undefined
66259
- assertParamExists('adminStoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID)
66260
- const localVarPath = `/admin/Stores/{xStoreID}/config-schema`
66261
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66262
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66263
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66264
- let baseOptions;
66265
- if (configuration) {
66266
- baseOptions = configuration.baseOptions;
66267
- }
66268
-
66269
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65906
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66270
65907
  const localVarHeaderParameter = {} as any;
66271
65908
  const localVarQueryParameter = {} as any;
66272
65909
 
66273
65910
  // authentication BearerAuth required
66274
65911
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66275
65912
 
66276
-
66277
-
66278
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66279
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66280
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66281
-
66282
- return {
66283
- url: toPathString(localVarUrlObj),
66284
- options: localVarRequestOptions,
66285
- };
66286
- },
66287
- /**
66288
- * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
66289
- * @summary Get store credentials
66290
- * @param {string} xStoreID X-Store ID
66291
- * @param {*} [options] Override http request option.
66292
- * @throws {RequiredError}
66293
- */
66294
- adminStoresXStoreIDCredentialsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66295
- // verify required parameter 'xStoreID' is not null or undefined
66296
- assertParamExists('adminStoresXStoreIDCredentialsGet', 'xStoreID', xStoreID)
66297
- const localVarPath = `/admin/Stores/{xStoreID}/credentials`
66298
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66299
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66300
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66301
- let baseOptions;
66302
- if (configuration) {
66303
- baseOptions = configuration.baseOptions;
65913
+ if (limit !== undefined) {
65914
+ localVarQueryParameter['limit'] = limit;
66304
65915
  }
66305
65916
 
66306
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
66307
- const localVarHeaderParameter = {} as any;
66308
- const localVarQueryParameter = {} as any;
66309
-
66310
- // authentication BearerAuth required
66311
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66312
-
66313
-
66314
-
66315
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66316
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66317
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66318
-
66319
- return {
66320
- url: toPathString(localVarUrlObj),
66321
- options: localVarRequestOptions,
66322
- };
66323
- },
66324
- /**
66325
- * Get default configuration values computed from the store\'s index schema using x-store ID
66326
- * @summary Get Store Schema-Based Defaults
66327
- * @param {string} xStoreID X-Store ID
66328
- * @param {*} [options] Override http request option.
66329
- * @throws {RequiredError}
66330
- */
66331
- adminStoresXStoreIDDefaultsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66332
- // verify required parameter 'xStoreID' is not null or undefined
66333
- assertParamExists('adminStoresXStoreIDDefaultsGet', 'xStoreID', xStoreID)
66334
- const localVarPath = `/admin/Stores/{xStoreID}/defaults`
66335
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
66336
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66337
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66338
- let baseOptions;
66339
- if (configuration) {
66340
- baseOptions = configuration.baseOptions;
65917
+ if (daysBack !== undefined) {
65918
+ localVarQueryParameter['days_back'] = daysBack;
66341
65919
  }
66342
65920
 
66343
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
66344
- const localVarHeaderParameter = {} as any;
66345
- const localVarQueryParameter = {} as any;
66346
-
66347
- // authentication BearerAuth required
66348
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66349
-
66350
65921
 
66351
65922
 
66352
65923
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -66622,6 +66193,19 @@ export const StoresApiFp = function(configuration?: Configuration) {
66622
66193
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsDailyStatsGet']?.[localVarOperationServerIndex]?.url;
66623
66194
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66624
66195
  },
66196
+ /**
66197
+ * Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
66198
+ * @summary Ensure Analytics Collections and Rules for Store
66199
+ * @param {string} xStoreID Store ID
66200
+ * @param {*} [options] Override http request option.
66201
+ * @throws {RequiredError}
66202
+ */
66203
+ async adminStoresXStoreIDAnalyticsEnsurePost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
66204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options);
66205
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
66206
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsEnsurePost']?.[localVarOperationServerIndex]?.url;
66207
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66208
+ },
66625
66209
  /**
66626
66210
  * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
66627
66211
  * @summary Get Time Series Data for Store Metrics
@@ -66740,6 +66324,21 @@ export const StoresApiFp = function(configuration?: Configuration) {
66740
66324
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDDefaultsGet']?.[localVarOperationServerIndex]?.url;
66741
66325
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66742
66326
  },
66327
+ /**
66328
+ * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
66329
+ * @summary Sync Popular Items to Typesense
66330
+ * @param {string} xStoreID Store ID
66331
+ * @param {number} [limit] Number of items to sync (default: 100)
66332
+ * @param {number} [daysBack] Number of days to look back (default: 30)
66333
+ * @param {*} [options] Override http request option.
66334
+ * @throws {RequiredError}
66335
+ */
66336
+ async adminStoresXStoreIDPopularItemsSyncPost(xStoreID: string, limit?: number, daysBack?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
66337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options);
66338
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
66339
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDPopularItemsSyncPost']?.[localVarOperationServerIndex]?.url;
66340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66341
+ },
66743
66342
  /**
66744
66343
  * Get schema options for a specific store by xStoreID
66745
66344
  * @summary Get store schema options
@@ -66870,6 +66469,16 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
66870
66469
  adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<StoreRouteDailyStatsResponse> {
66871
66470
  return localVarFp.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(axios, basePath));
66872
66471
  },
66472
+ /**
66473
+ * Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
66474
+ * @summary Ensure Analytics Collections and Rules for Store
66475
+ * @param {string} xStoreID Store ID
66476
+ * @param {*} [options] Override http request option.
66477
+ * @throws {RequiredError}
66478
+ */
66479
+ adminStoresXStoreIDAnalyticsEnsurePost(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
66480
+ return localVarFp.adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options).then((request) => request(axios, basePath));
66481
+ },
66873
66482
  /**
66874
66483
  * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
66875
66484
  * @summary Get Time Series Data for Store Metrics
@@ -66964,6 +66573,18 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
66964
66573
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper> {
66965
66574
  return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
66966
66575
  },
66576
+ /**
66577
+ * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
66578
+ * @summary Sync Popular Items to Typesense
66579
+ * @param {string} xStoreID Store ID
66580
+ * @param {number} [limit] Number of items to sync (default: 100)
66581
+ * @param {number} [daysBack] Number of days to look back (default: 30)
66582
+ * @param {*} [options] Override http request option.
66583
+ * @throws {RequiredError}
66584
+ */
66585
+ adminStoresXStoreIDPopularItemsSyncPost(xStoreID: string, limit?: number, daysBack?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
66586
+ return localVarFp.adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options).then((request) => request(axios, basePath));
66587
+ },
66967
66588
  /**
66968
66589
  * Get schema options for a specific store by xStoreID
66969
66590
  * @summary Get store schema options
@@ -67094,6 +66715,18 @@ export class StoresApi extends BaseAPI {
67094
66715
  return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
67095
66716
  }
67096
66717
 
66718
+ /**
66719
+ * Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
66720
+ * @summary Ensure Analytics Collections and Rules for Store
66721
+ * @param {string} xStoreID Store ID
66722
+ * @param {*} [options] Override http request option.
66723
+ * @throws {RequiredError}
66724
+ * @memberof StoresApi
66725
+ */
66726
+ public adminStoresXStoreIDAnalyticsEnsurePost(xStoreID: string, options?: RawAxiosRequestConfig) {
66727
+ return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options).then((request) => request(this.axios, this.basePath));
66728
+ }
66729
+
67097
66730
  /**
67098
66731
  * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
67099
66732
  * @summary Get Time Series Data for Store Metrics
@@ -67204,6 +66837,20 @@ export class StoresApi extends BaseAPI {
67204
66837
  return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
67205
66838
  }
67206
66839
 
66840
+ /**
66841
+ * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
66842
+ * @summary Sync Popular Items to Typesense
66843
+ * @param {string} xStoreID Store ID
66844
+ * @param {number} [limit] Number of items to sync (default: 100)
66845
+ * @param {number} [daysBack] Number of days to look back (default: 30)
66846
+ * @param {*} [options] Override http request option.
66847
+ * @throws {RequiredError}
66848
+ * @memberof StoresApi
66849
+ */
66850
+ public adminStoresXStoreIDPopularItemsSyncPost(xStoreID: string, limit?: number, daysBack?: number, options?: RawAxiosRequestConfig) {
66851
+ return StoresApiFp(this.configuration).adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options).then((request) => request(this.axios, this.basePath));
66852
+ }
66853
+
67207
66854
  /**
67208
66855
  * Get schema options for a specific store by xStoreID
67209
66856
  * @summary Get store schema options