@seekora-ai/admin-api 1.1.52 → 1.1.54
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/README.md +14 -2
- package/api.ts +991 -20
- package/dist/api.d.ts +972 -136
- package/dist/api.js +304 -13
- package/dist/esm/api.d.ts +972 -136
- package/dist/esm/api.js +295 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.54.tgz +0 -0
- package/seekora-ai-admin-api-1.1.52.tgz +0 -0
package/api.ts
CHANGED
|
@@ -9400,6 +9400,133 @@ export interface DataTypesDocumentResponseWrapper {
|
|
|
9400
9400
|
*/
|
|
9401
9401
|
'status'?: number;
|
|
9402
9402
|
}
|
|
9403
|
+
/**
|
|
9404
|
+
*
|
|
9405
|
+
* @export
|
|
9406
|
+
* @interface DataTypesDropdownRecommendationsConfig
|
|
9407
|
+
*/
|
|
9408
|
+
export interface DataTypesDropdownRecommendationsConfig {
|
|
9409
|
+
/**
|
|
9410
|
+
* Dataset-agnostic field mappings for brands
|
|
9411
|
+
* @type {{ [key: string]: string; }}
|
|
9412
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9413
|
+
*/
|
|
9414
|
+
'brand_field_mappings'?: { [key: string]: string; };
|
|
9415
|
+
/**
|
|
9416
|
+
* Sort method: searches, clicks, conversions
|
|
9417
|
+
* @type {string}
|
|
9418
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9419
|
+
*/
|
|
9420
|
+
'brand_sort_by'?: string;
|
|
9421
|
+
/**
|
|
9422
|
+
* Cache TTL in seconds
|
|
9423
|
+
* @type {number}
|
|
9424
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9425
|
+
*/
|
|
9426
|
+
'cache_ttl_seconds'?: number;
|
|
9427
|
+
/**
|
|
9428
|
+
* Dataset-agnostic field mappings for categories
|
|
9429
|
+
* @type {{ [key: string]: string; }}
|
|
9430
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9431
|
+
*/
|
|
9432
|
+
'category_field_mappings'?: { [key: string]: string; };
|
|
9433
|
+
/**
|
|
9434
|
+
* Enable popular brands section
|
|
9435
|
+
* @type {boolean}
|
|
9436
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9437
|
+
*/
|
|
9438
|
+
'enable_popular_brands'?: boolean;
|
|
9439
|
+
/**
|
|
9440
|
+
* Enable trending products section
|
|
9441
|
+
* @type {boolean}
|
|
9442
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9443
|
+
*/
|
|
9444
|
+
'enable_trending_products'?: boolean;
|
|
9445
|
+
/**
|
|
9446
|
+
* Enable trending search categories section
|
|
9447
|
+
* @type {boolean}
|
|
9448
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9449
|
+
*/
|
|
9450
|
+
'enable_trending_search'?: boolean;
|
|
9451
|
+
/**
|
|
9452
|
+
* Whether dropdown recommendations are enabled
|
|
9453
|
+
* @type {boolean}
|
|
9454
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9455
|
+
*/
|
|
9456
|
+
'enabled'?: boolean;
|
|
9457
|
+
/**
|
|
9458
|
+
* Exclude out of stock products
|
|
9459
|
+
* @type {boolean}
|
|
9460
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9461
|
+
*/
|
|
9462
|
+
'exclude_out_of_stock'?: boolean;
|
|
9463
|
+
/**
|
|
9464
|
+
* Include only in stock products
|
|
9465
|
+
* @type {boolean}
|
|
9466
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9467
|
+
*/
|
|
9468
|
+
'include_only_in_stock'?: boolean;
|
|
9469
|
+
/**
|
|
9470
|
+
* Minimum searches for popular brands
|
|
9471
|
+
* @type {number}
|
|
9472
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9473
|
+
*/
|
|
9474
|
+
'min_brand_searches'?: number;
|
|
9475
|
+
/**
|
|
9476
|
+
* Minimum clicks for trending products
|
|
9477
|
+
* @type {number}
|
|
9478
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9479
|
+
*/
|
|
9480
|
+
'min_product_clicks'?: number;
|
|
9481
|
+
/**
|
|
9482
|
+
* Minimum conversions for trending products
|
|
9483
|
+
* @type {number}
|
|
9484
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9485
|
+
*/
|
|
9486
|
+
'min_product_conversions'?: number;
|
|
9487
|
+
/**
|
|
9488
|
+
* Max number of popular brands
|
|
9489
|
+
* @type {number}
|
|
9490
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9491
|
+
*/
|
|
9492
|
+
'popular_brands_limit'?: number;
|
|
9493
|
+
/**
|
|
9494
|
+
* Dataset-agnostic field mappings for products
|
|
9495
|
+
* @type {{ [key: string]: string; }}
|
|
9496
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9497
|
+
*/
|
|
9498
|
+
'product_field_mappings'?: { [key: string]: string; };
|
|
9499
|
+
/**
|
|
9500
|
+
* Sort method: clicks, conversions, revenue, trend_score
|
|
9501
|
+
* @type {string}
|
|
9502
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9503
|
+
*/
|
|
9504
|
+
'product_sort_by'?: string;
|
|
9505
|
+
/**
|
|
9506
|
+
* Max number of trending products
|
|
9507
|
+
* @type {number}
|
|
9508
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9509
|
+
*/
|
|
9510
|
+
'trending_products_limit'?: number;
|
|
9511
|
+
/**
|
|
9512
|
+
* Max number of trending search categories
|
|
9513
|
+
* @type {number}
|
|
9514
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9515
|
+
*/
|
|
9516
|
+
'trending_search_limit'?: number;
|
|
9517
|
+
/**
|
|
9518
|
+
* Time range in days for trending data
|
|
9519
|
+
* @type {number}
|
|
9520
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9521
|
+
*/
|
|
9522
|
+
'trending_time_range_days'?: number;
|
|
9523
|
+
/**
|
|
9524
|
+
* Use query suggestions config for trending search
|
|
9525
|
+
* @type {boolean}
|
|
9526
|
+
* @memberof DataTypesDropdownRecommendationsConfig
|
|
9527
|
+
*/
|
|
9528
|
+
'use_query_suggestions_config'?: boolean;
|
|
9529
|
+
}
|
|
9403
9530
|
/**
|
|
9404
9531
|
*
|
|
9405
9532
|
* @export
|
|
@@ -11297,6 +11424,12 @@ export interface DataTypesIndexConfig {
|
|
|
11297
11424
|
* @memberof DataTypesIndexConfig
|
|
11298
11425
|
*/
|
|
11299
11426
|
'drop_tokens_threshold'?: number;
|
|
11427
|
+
/**
|
|
11428
|
+
* Dropdown recommendations configuration
|
|
11429
|
+
* @type {DataTypesDropdownRecommendationsConfig}
|
|
11430
|
+
* @memberof DataTypesIndexConfig
|
|
11431
|
+
*/
|
|
11432
|
+
'dropdown_recommendations_config'?: DataTypesDropdownRecommendationsConfig;
|
|
11300
11433
|
/**
|
|
11301
11434
|
*
|
|
11302
11435
|
* @type {string}
|
|
@@ -23319,6 +23452,536 @@ export interface DefaultMenuRoutesUpdateMenuVisibilityResponse {
|
|
|
23319
23452
|
*/
|
|
23320
23453
|
'menuName'?: string;
|
|
23321
23454
|
}
|
|
23455
|
+
/**
|
|
23456
|
+
*
|
|
23457
|
+
* @export
|
|
23458
|
+
* @interface DropdownRecommendationsServiceDropdownConfigResponse
|
|
23459
|
+
*/
|
|
23460
|
+
export interface DropdownRecommendationsServiceDropdownConfigResponse {
|
|
23461
|
+
/**
|
|
23462
|
+
*
|
|
23463
|
+
* @type {DropdownRecommendationsServiceDropdownRecommendationsConfig}
|
|
23464
|
+
* @memberof DropdownRecommendationsServiceDropdownConfigResponse
|
|
23465
|
+
*/
|
|
23466
|
+
'data'?: DropdownRecommendationsServiceDropdownRecommendationsConfig;
|
|
23467
|
+
/**
|
|
23468
|
+
*
|
|
23469
|
+
* @type {string}
|
|
23470
|
+
* @memberof DropdownRecommendationsServiceDropdownConfigResponse
|
|
23471
|
+
*/
|
|
23472
|
+
'message'?: string;
|
|
23473
|
+
/**
|
|
23474
|
+
*
|
|
23475
|
+
* @type {string}
|
|
23476
|
+
* @memberof DropdownRecommendationsServiceDropdownConfigResponse
|
|
23477
|
+
*/
|
|
23478
|
+
'status'?: string;
|
|
23479
|
+
/**
|
|
23480
|
+
*
|
|
23481
|
+
* @type {string}
|
|
23482
|
+
* @memberof DropdownRecommendationsServiceDropdownConfigResponse
|
|
23483
|
+
*/
|
|
23484
|
+
'timestamp'?: string;
|
|
23485
|
+
/**
|
|
23486
|
+
*
|
|
23487
|
+
* @type {string}
|
|
23488
|
+
* @memberof DropdownRecommendationsServiceDropdownConfigResponse
|
|
23489
|
+
*/
|
|
23490
|
+
'version'?: string;
|
|
23491
|
+
}
|
|
23492
|
+
/**
|
|
23493
|
+
*
|
|
23494
|
+
* @export
|
|
23495
|
+
* @interface DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23496
|
+
*/
|
|
23497
|
+
export interface DropdownRecommendationsServiceDropdownRecommendationsAPIResponse {
|
|
23498
|
+
/**
|
|
23499
|
+
*
|
|
23500
|
+
* @type {DropdownRecommendationsServiceDropdownRecommendationsResponse}
|
|
23501
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23502
|
+
*/
|
|
23503
|
+
'data'?: DropdownRecommendationsServiceDropdownRecommendationsResponse;
|
|
23504
|
+
/**
|
|
23505
|
+
*
|
|
23506
|
+
* @type {string}
|
|
23507
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23508
|
+
*/
|
|
23509
|
+
'error'?: string;
|
|
23510
|
+
/**
|
|
23511
|
+
*
|
|
23512
|
+
* @type {string}
|
|
23513
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23514
|
+
*/
|
|
23515
|
+
'status'?: string;
|
|
23516
|
+
/**
|
|
23517
|
+
*
|
|
23518
|
+
* @type {string}
|
|
23519
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23520
|
+
*/
|
|
23521
|
+
'timestamp'?: string;
|
|
23522
|
+
/**
|
|
23523
|
+
*
|
|
23524
|
+
* @type {string}
|
|
23525
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsAPIResponse
|
|
23526
|
+
*/
|
|
23527
|
+
'version'?: string;
|
|
23528
|
+
}
|
|
23529
|
+
/**
|
|
23530
|
+
*
|
|
23531
|
+
* @export
|
|
23532
|
+
* @interface DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23533
|
+
*/
|
|
23534
|
+
export interface DropdownRecommendationsServiceDropdownRecommendationsConfig {
|
|
23535
|
+
/**
|
|
23536
|
+
*
|
|
23537
|
+
* @type {{ [key: string]: string; }}
|
|
23538
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23539
|
+
*/
|
|
23540
|
+
'brand_field_mappings'?: { [key: string]: string; };
|
|
23541
|
+
/**
|
|
23542
|
+
* \'searches\', \'clicks\', \'conversions\'
|
|
23543
|
+
* @type {string}
|
|
23544
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23545
|
+
*/
|
|
23546
|
+
'brand_sort_by'?: string;
|
|
23547
|
+
/**
|
|
23548
|
+
* Caching configuration
|
|
23549
|
+
* @type {number}
|
|
23550
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23551
|
+
*/
|
|
23552
|
+
'cache_ttl_seconds'?: number;
|
|
23553
|
+
/**
|
|
23554
|
+
*
|
|
23555
|
+
* @type {{ [key: string]: string; }}
|
|
23556
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23557
|
+
*/
|
|
23558
|
+
'category_field_mappings'?: { [key: string]: string; };
|
|
23559
|
+
/**
|
|
23560
|
+
*
|
|
23561
|
+
* @type {string}
|
|
23562
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23563
|
+
*/
|
|
23564
|
+
'created_at'?: string;
|
|
23565
|
+
/**
|
|
23566
|
+
*
|
|
23567
|
+
* @type {boolean}
|
|
23568
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23569
|
+
*/
|
|
23570
|
+
'enable_popular_brands'?: boolean;
|
|
23571
|
+
/**
|
|
23572
|
+
*
|
|
23573
|
+
* @type {boolean}
|
|
23574
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23575
|
+
*/
|
|
23576
|
+
'enable_trending_products'?: boolean;
|
|
23577
|
+
/**
|
|
23578
|
+
*
|
|
23579
|
+
* @type {boolean}
|
|
23580
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23581
|
+
*/
|
|
23582
|
+
'enable_trending_search'?: boolean;
|
|
23583
|
+
/**
|
|
23584
|
+
* Feature enable/disable flags
|
|
23585
|
+
* @type {boolean}
|
|
23586
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23587
|
+
*/
|
|
23588
|
+
'enabled'?: boolean;
|
|
23589
|
+
/**
|
|
23590
|
+
* Additional filters
|
|
23591
|
+
* @type {boolean}
|
|
23592
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23593
|
+
*/
|
|
23594
|
+
'exclude_out_of_stock'?: boolean;
|
|
23595
|
+
/**
|
|
23596
|
+
*
|
|
23597
|
+
* @type {boolean}
|
|
23598
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23599
|
+
*/
|
|
23600
|
+
'include_only_in_stock'?: boolean;
|
|
23601
|
+
/**
|
|
23602
|
+
* Brand selection criteria
|
|
23603
|
+
* @type {number}
|
|
23604
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23605
|
+
*/
|
|
23606
|
+
'min_brand_searches'?: number;
|
|
23607
|
+
/**
|
|
23608
|
+
* Product selection criteria
|
|
23609
|
+
* @type {number}
|
|
23610
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23611
|
+
*/
|
|
23612
|
+
'min_product_clicks'?: number;
|
|
23613
|
+
/**
|
|
23614
|
+
*
|
|
23615
|
+
* @type {number}
|
|
23616
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23617
|
+
*/
|
|
23618
|
+
'min_product_conversions'?: number;
|
|
23619
|
+
/**
|
|
23620
|
+
*
|
|
23621
|
+
* @type {number}
|
|
23622
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23623
|
+
*/
|
|
23624
|
+
'popular_brands_limit'?: number;
|
|
23625
|
+
/**
|
|
23626
|
+
* Dataset-agnostic field mappings
|
|
23627
|
+
* @type {{ [key: string]: string; }}
|
|
23628
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23629
|
+
*/
|
|
23630
|
+
'product_field_mappings'?: { [key: string]: string; };
|
|
23631
|
+
/**
|
|
23632
|
+
* \'clicks\', \'conversions\', \'revenue\', \'trend_score\'
|
|
23633
|
+
* @type {string}
|
|
23634
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23635
|
+
*/
|
|
23636
|
+
'product_sort_by'?: string;
|
|
23637
|
+
/**
|
|
23638
|
+
*
|
|
23639
|
+
* @type {number}
|
|
23640
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23641
|
+
*/
|
|
23642
|
+
'trending_products_limit'?: number;
|
|
23643
|
+
/**
|
|
23644
|
+
* Limits for each section
|
|
23645
|
+
* @type {number}
|
|
23646
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23647
|
+
*/
|
|
23648
|
+
'trending_search_limit'?: number;
|
|
23649
|
+
/**
|
|
23650
|
+
* Time range configuration
|
|
23651
|
+
* @type {number}
|
|
23652
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23653
|
+
*/
|
|
23654
|
+
'trending_time_range_days'?: number;
|
|
23655
|
+
/**
|
|
23656
|
+
*
|
|
23657
|
+
* @type {string}
|
|
23658
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23659
|
+
*/
|
|
23660
|
+
'updated_at'?: string;
|
|
23661
|
+
/**
|
|
23662
|
+
* Trending search configuration
|
|
23663
|
+
* @type {boolean}
|
|
23664
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsConfig
|
|
23665
|
+
*/
|
|
23666
|
+
'use_query_suggestions_config'?: boolean;
|
|
23667
|
+
}
|
|
23668
|
+
/**
|
|
23669
|
+
*
|
|
23670
|
+
* @export
|
|
23671
|
+
* @interface DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23672
|
+
*/
|
|
23673
|
+
export interface DropdownRecommendationsServiceDropdownRecommendationsResponse {
|
|
23674
|
+
/**
|
|
23675
|
+
*
|
|
23676
|
+
* @type {Array<DropdownRecommendationsServicePopularBrand>}
|
|
23677
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23678
|
+
*/
|
|
23679
|
+
'popular_brands'?: Array<DropdownRecommendationsServicePopularBrand>;
|
|
23680
|
+
/**
|
|
23681
|
+
*
|
|
23682
|
+
* @type {number}
|
|
23683
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23684
|
+
*/
|
|
23685
|
+
'processing_time_ms'?: number;
|
|
23686
|
+
/**
|
|
23687
|
+
*
|
|
23688
|
+
* @type {string}
|
|
23689
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23690
|
+
*/
|
|
23691
|
+
'timestamp'?: string;
|
|
23692
|
+
/**
|
|
23693
|
+
*
|
|
23694
|
+
* @type {Array<DropdownRecommendationsServiceTrendingProduct>}
|
|
23695
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23696
|
+
*/
|
|
23697
|
+
'trending_products'?: Array<DropdownRecommendationsServiceTrendingProduct>;
|
|
23698
|
+
/**
|
|
23699
|
+
*
|
|
23700
|
+
* @type {Array<DropdownRecommendationsServiceTrendingSearchItem>}
|
|
23701
|
+
* @memberof DropdownRecommendationsServiceDropdownRecommendationsResponse
|
|
23702
|
+
*/
|
|
23703
|
+
'trending_search'?: Array<DropdownRecommendationsServiceTrendingSearchItem>;
|
|
23704
|
+
}
|
|
23705
|
+
/**
|
|
23706
|
+
*
|
|
23707
|
+
* @export
|
|
23708
|
+
* @interface DropdownRecommendationsServicePopularBrand
|
|
23709
|
+
*/
|
|
23710
|
+
export interface DropdownRecommendationsServicePopularBrand {
|
|
23711
|
+
/**
|
|
23712
|
+
*
|
|
23713
|
+
* @type {number}
|
|
23714
|
+
* @memberof DropdownRecommendationsServicePopularBrand
|
|
23715
|
+
*/
|
|
23716
|
+
'clicks'?: number;
|
|
23717
|
+
/**
|
|
23718
|
+
*
|
|
23719
|
+
* @type {number}
|
|
23720
|
+
* @memberof DropdownRecommendationsServicePopularBrand
|
|
23721
|
+
*/
|
|
23722
|
+
'conversions'?: number;
|
|
23723
|
+
/**
|
|
23724
|
+
*
|
|
23725
|
+
* @type {string}
|
|
23726
|
+
* @memberof DropdownRecommendationsServicePopularBrand
|
|
23727
|
+
*/
|
|
23728
|
+
'name'?: string;
|
|
23729
|
+
/**
|
|
23730
|
+
*
|
|
23731
|
+
* @type {number}
|
|
23732
|
+
* @memberof DropdownRecommendationsServicePopularBrand
|
|
23733
|
+
*/
|
|
23734
|
+
'searches'?: number;
|
|
23735
|
+
}
|
|
23736
|
+
/**
|
|
23737
|
+
*
|
|
23738
|
+
* @export
|
|
23739
|
+
* @interface DropdownRecommendationsServiceTrendingProduct
|
|
23740
|
+
*/
|
|
23741
|
+
export interface DropdownRecommendationsServiceTrendingProduct {
|
|
23742
|
+
/**
|
|
23743
|
+
*
|
|
23744
|
+
* @type {string}
|
|
23745
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23746
|
+
*/
|
|
23747
|
+
'brand'?: string;
|
|
23748
|
+
/**
|
|
23749
|
+
*
|
|
23750
|
+
* @type {string}
|
|
23751
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23752
|
+
*/
|
|
23753
|
+
'category'?: string;
|
|
23754
|
+
/**
|
|
23755
|
+
* Analytics metrics
|
|
23756
|
+
* @type {number}
|
|
23757
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23758
|
+
*/
|
|
23759
|
+
'clicks'?: number;
|
|
23760
|
+
/**
|
|
23761
|
+
*
|
|
23762
|
+
* @type {number}
|
|
23763
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23764
|
+
*/
|
|
23765
|
+
'conversions'?: number;
|
|
23766
|
+
/**
|
|
23767
|
+
*
|
|
23768
|
+
* @type {string}
|
|
23769
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23770
|
+
*/
|
|
23771
|
+
'description'?: string;
|
|
23772
|
+
/**
|
|
23773
|
+
*
|
|
23774
|
+
* @type {number}
|
|
23775
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23776
|
+
*/
|
|
23777
|
+
'discount'?: number;
|
|
23778
|
+
/**
|
|
23779
|
+
*
|
|
23780
|
+
* @type {number}
|
|
23781
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23782
|
+
*/
|
|
23783
|
+
'discount_percentage'?: number;
|
|
23784
|
+
/**
|
|
23785
|
+
*
|
|
23786
|
+
* @type {string}
|
|
23787
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23788
|
+
*/
|
|
23789
|
+
'id'?: string;
|
|
23790
|
+
/**
|
|
23791
|
+
*
|
|
23792
|
+
* @type {string}
|
|
23793
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23794
|
+
*/
|
|
23795
|
+
'image'?: string;
|
|
23796
|
+
/**
|
|
23797
|
+
*
|
|
23798
|
+
* @type {boolean}
|
|
23799
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23800
|
+
*/
|
|
23801
|
+
'in_stock'?: boolean;
|
|
23802
|
+
/**
|
|
23803
|
+
*
|
|
23804
|
+
* @type {string}
|
|
23805
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23806
|
+
*/
|
|
23807
|
+
'name'?: string;
|
|
23808
|
+
/**
|
|
23809
|
+
*
|
|
23810
|
+
* @type {number}
|
|
23811
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23812
|
+
*/
|
|
23813
|
+
'price'?: number;
|
|
23814
|
+
/**
|
|
23815
|
+
*
|
|
23816
|
+
* @type {number}
|
|
23817
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23818
|
+
*/
|
|
23819
|
+
'revenue'?: number;
|
|
23820
|
+
/**
|
|
23821
|
+
*
|
|
23822
|
+
* @type {number}
|
|
23823
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23824
|
+
*/
|
|
23825
|
+
'selling_price'?: number;
|
|
23826
|
+
/**
|
|
23827
|
+
*
|
|
23828
|
+
* @type {string}
|
|
23829
|
+
* @memberof DropdownRecommendationsServiceTrendingProduct
|
|
23830
|
+
*/
|
|
23831
|
+
'url'?: string;
|
|
23832
|
+
}
|
|
23833
|
+
/**
|
|
23834
|
+
*
|
|
23835
|
+
* @export
|
|
23836
|
+
* @interface DropdownRecommendationsServiceTrendingSearchItem
|
|
23837
|
+
*/
|
|
23838
|
+
export interface DropdownRecommendationsServiceTrendingSearchItem {
|
|
23839
|
+
/**
|
|
23840
|
+
*
|
|
23841
|
+
* @type {string}
|
|
23842
|
+
* @memberof DropdownRecommendationsServiceTrendingSearchItem
|
|
23843
|
+
*/
|
|
23844
|
+
'category'?: string;
|
|
23845
|
+
/**
|
|
23846
|
+
*
|
|
23847
|
+
* @type {number}
|
|
23848
|
+
* @memberof DropdownRecommendationsServiceTrendingSearchItem
|
|
23849
|
+
*/
|
|
23850
|
+
'popularity'?: number;
|
|
23851
|
+
/**
|
|
23852
|
+
*
|
|
23853
|
+
* @type {string}
|
|
23854
|
+
* @memberof DropdownRecommendationsServiceTrendingSearchItem
|
|
23855
|
+
*/
|
|
23856
|
+
'query'?: string;
|
|
23857
|
+
}
|
|
23858
|
+
/**
|
|
23859
|
+
*
|
|
23860
|
+
* @export
|
|
23861
|
+
* @interface DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23862
|
+
*/
|
|
23863
|
+
export interface DropdownRecommendationsServiceUpdateDropdownConfigRequest {
|
|
23864
|
+
/**
|
|
23865
|
+
*
|
|
23866
|
+
* @type {{ [key: string]: string; }}
|
|
23867
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23868
|
+
*/
|
|
23869
|
+
'brand_field_mappings'?: { [key: string]: string; };
|
|
23870
|
+
/**
|
|
23871
|
+
*
|
|
23872
|
+
* @type {string}
|
|
23873
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23874
|
+
*/
|
|
23875
|
+
'brand_sort_by'?: string;
|
|
23876
|
+
/**
|
|
23877
|
+
*
|
|
23878
|
+
* @type {number}
|
|
23879
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23880
|
+
*/
|
|
23881
|
+
'cache_ttl_seconds'?: number;
|
|
23882
|
+
/**
|
|
23883
|
+
*
|
|
23884
|
+
* @type {{ [key: string]: string; }}
|
|
23885
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23886
|
+
*/
|
|
23887
|
+
'category_field_mappings'?: { [key: string]: string; };
|
|
23888
|
+
/**
|
|
23889
|
+
*
|
|
23890
|
+
* @type {boolean}
|
|
23891
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23892
|
+
*/
|
|
23893
|
+
'enable_popular_brands'?: boolean;
|
|
23894
|
+
/**
|
|
23895
|
+
*
|
|
23896
|
+
* @type {boolean}
|
|
23897
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23898
|
+
*/
|
|
23899
|
+
'enable_trending_products'?: boolean;
|
|
23900
|
+
/**
|
|
23901
|
+
*
|
|
23902
|
+
* @type {boolean}
|
|
23903
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23904
|
+
*/
|
|
23905
|
+
'enable_trending_search'?: boolean;
|
|
23906
|
+
/**
|
|
23907
|
+
*
|
|
23908
|
+
* @type {boolean}
|
|
23909
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23910
|
+
*/
|
|
23911
|
+
'enabled'?: boolean;
|
|
23912
|
+
/**
|
|
23913
|
+
*
|
|
23914
|
+
* @type {boolean}
|
|
23915
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23916
|
+
*/
|
|
23917
|
+
'exclude_out_of_stock'?: boolean;
|
|
23918
|
+
/**
|
|
23919
|
+
*
|
|
23920
|
+
* @type {boolean}
|
|
23921
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23922
|
+
*/
|
|
23923
|
+
'include_only_in_stock'?: boolean;
|
|
23924
|
+
/**
|
|
23925
|
+
*
|
|
23926
|
+
* @type {number}
|
|
23927
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23928
|
+
*/
|
|
23929
|
+
'min_brand_searches'?: number;
|
|
23930
|
+
/**
|
|
23931
|
+
*
|
|
23932
|
+
* @type {number}
|
|
23933
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23934
|
+
*/
|
|
23935
|
+
'min_product_clicks'?: number;
|
|
23936
|
+
/**
|
|
23937
|
+
*
|
|
23938
|
+
* @type {number}
|
|
23939
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23940
|
+
*/
|
|
23941
|
+
'min_product_conversions'?: number;
|
|
23942
|
+
/**
|
|
23943
|
+
*
|
|
23944
|
+
* @type {number}
|
|
23945
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23946
|
+
*/
|
|
23947
|
+
'popular_brands_limit'?: number;
|
|
23948
|
+
/**
|
|
23949
|
+
*
|
|
23950
|
+
* @type {{ [key: string]: string; }}
|
|
23951
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23952
|
+
*/
|
|
23953
|
+
'product_field_mappings'?: { [key: string]: string; };
|
|
23954
|
+
/**
|
|
23955
|
+
*
|
|
23956
|
+
* @type {string}
|
|
23957
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23958
|
+
*/
|
|
23959
|
+
'product_sort_by'?: string;
|
|
23960
|
+
/**
|
|
23961
|
+
*
|
|
23962
|
+
* @type {number}
|
|
23963
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23964
|
+
*/
|
|
23965
|
+
'trending_products_limit'?: number;
|
|
23966
|
+
/**
|
|
23967
|
+
*
|
|
23968
|
+
* @type {number}
|
|
23969
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23970
|
+
*/
|
|
23971
|
+
'trending_search_limit'?: number;
|
|
23972
|
+
/**
|
|
23973
|
+
*
|
|
23974
|
+
* @type {number}
|
|
23975
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23976
|
+
*/
|
|
23977
|
+
'trending_time_range_days'?: number;
|
|
23978
|
+
/**
|
|
23979
|
+
*
|
|
23980
|
+
* @type {boolean}
|
|
23981
|
+
* @memberof DropdownRecommendationsServiceUpdateDropdownConfigRequest
|
|
23982
|
+
*/
|
|
23983
|
+
'use_query_suggestions_config'?: boolean;
|
|
23984
|
+
}
|
|
23322
23985
|
/**
|
|
23323
23986
|
*
|
|
23324
23987
|
* @export
|
|
@@ -24546,17 +25209,17 @@ export interface QuerySuggestionsServiceQuerySuggestionConfig {
|
|
|
24546
25209
|
*/
|
|
24547
25210
|
'show_top_categories'?: number;
|
|
24548
25211
|
/**
|
|
24549
|
-
*
|
|
25212
|
+
* Enable special characters in tokenization (maps to token_separators and symbols_to_index)
|
|
24550
25213
|
* @type {boolean}
|
|
24551
25214
|
* @memberof QuerySuggestionsServiceQuerySuggestionConfig
|
|
24552
25215
|
*/
|
|
24553
|
-
'
|
|
25216
|
+
'special_chars'?: boolean;
|
|
24554
25217
|
/**
|
|
24555
|
-
*
|
|
24556
|
-
* @type {
|
|
25218
|
+
* Whether to sync enabled suggestions to Typesense
|
|
25219
|
+
* @type {boolean}
|
|
24557
25220
|
* @memberof QuerySuggestionsServiceQuerySuggestionConfig
|
|
24558
25221
|
*/
|
|
24559
|
-
'
|
|
25222
|
+
'sync_to_typesense'?: boolean;
|
|
24560
25223
|
/**
|
|
24561
25224
|
* Whether to sync to Typesense
|
|
24562
25225
|
* @type {boolean}
|
|
@@ -25319,11 +25982,17 @@ export interface QuerySuggestionsServiceUpdateSuggestionConfigRequest {
|
|
|
25319
25982
|
*/
|
|
25320
25983
|
'show_top_categories'?: number;
|
|
25321
25984
|
/**
|
|
25322
|
-
*
|
|
25323
|
-
* @type {
|
|
25985
|
+
* Enable special characters in tokenization
|
|
25986
|
+
* @type {boolean}
|
|
25324
25987
|
* @memberof QuerySuggestionsServiceUpdateSuggestionConfigRequest
|
|
25325
25988
|
*/
|
|
25326
|
-
'
|
|
25989
|
+
'special_chars'?: boolean;
|
|
25990
|
+
/**
|
|
25991
|
+
* Enable/disable syncing suggestions to Typesense
|
|
25992
|
+
* @type {boolean}
|
|
25993
|
+
* @memberof QuerySuggestionsServiceUpdateSuggestionConfigRequest
|
|
25994
|
+
*/
|
|
25995
|
+
'sync_to_typesense'?: boolean;
|
|
25327
25996
|
/**
|
|
25328
25997
|
* Typo tolerance
|
|
25329
25998
|
* @type {number}
|
|
@@ -26012,13 +26681,13 @@ export interface SubscriptionRouteCancelPreviewRequest {
|
|
|
26012
26681
|
* @type {string}
|
|
26013
26682
|
* @memberof SubscriptionRouteCancelPreviewRequest
|
|
26014
26683
|
*/
|
|
26015
|
-
'reason'
|
|
26684
|
+
'reason'?: string;
|
|
26016
26685
|
/**
|
|
26017
26686
|
*
|
|
26018
26687
|
* @type {string}
|
|
26019
26688
|
* @memberof SubscriptionRouteCancelPreviewRequest
|
|
26020
26689
|
*/
|
|
26021
|
-
'subscription_id'
|
|
26690
|
+
'subscription_id'?: string;
|
|
26022
26691
|
}
|
|
26023
26692
|
/**
|
|
26024
26693
|
*
|
|
@@ -26037,13 +26706,13 @@ export interface SubscriptionRouteCancelProcessRequest {
|
|
|
26037
26706
|
* @type {string}
|
|
26038
26707
|
* @memberof SubscriptionRouteCancelProcessRequest
|
|
26039
26708
|
*/
|
|
26040
|
-
'reason'
|
|
26709
|
+
'reason'?: string;
|
|
26041
26710
|
/**
|
|
26042
26711
|
*
|
|
26043
26712
|
* @type {string}
|
|
26044
26713
|
* @memberof SubscriptionRouteCancelProcessRequest
|
|
26045
26714
|
*/
|
|
26046
|
-
'subscription_id'
|
|
26715
|
+
'subscription_id'?: string;
|
|
26047
26716
|
}
|
|
26048
26717
|
/**
|
|
26049
26718
|
*
|
|
@@ -30789,7 +31458,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
30789
31458
|
* @param {string} [path] Path filter (partial match)
|
|
30790
31459
|
* @param {string} [storeId] Store ID filter
|
|
30791
31460
|
* @param {number} [page] Page number (default: 1)
|
|
30792
|
-
* @param {number} [perPage] Results per page (default:
|
|
31461
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
30793
31462
|
* @param {*} [options] Override http request option.
|
|
30794
31463
|
* @throws {RequiredError}
|
|
30795
31464
|
*/
|
|
@@ -30856,7 +31525,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
30856
31525
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
30857
31526
|
* @param {string} [method] HTTP method filter
|
|
30858
31527
|
* @param {number} [page] Page number (default: 1)
|
|
30859
|
-
* @param {number} [perPage] Results per page (default:
|
|
31528
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
30860
31529
|
* @param {*} [options] Override http request option.
|
|
30861
31530
|
* @throws {RequiredError}
|
|
30862
31531
|
*/
|
|
@@ -31464,7 +32133,7 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
31464
32133
|
* @param {string} [path] Path filter (partial match)
|
|
31465
32134
|
* @param {string} [storeId] Store ID filter
|
|
31466
32135
|
* @param {number} [page] Page number (default: 1)
|
|
31467
|
-
* @param {number} [perPage] Results per page (default:
|
|
32136
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
31468
32137
|
* @param {*} [options] Override http request option.
|
|
31469
32138
|
* @throws {RequiredError}
|
|
31470
32139
|
*/
|
|
@@ -31482,7 +32151,7 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
31482
32151
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
31483
32152
|
* @param {string} [method] HTTP method filter
|
|
31484
32153
|
* @param {number} [page] Page number (default: 1)
|
|
31485
|
-
* @param {number} [perPage] Results per page (default:
|
|
32154
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
31486
32155
|
* @param {*} [options] Override http request option.
|
|
31487
32156
|
* @throws {RequiredError}
|
|
31488
32157
|
*/
|
|
@@ -31968,7 +32637,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
|
|
|
31968
32637
|
* @param {string} [path] Path filter (partial match)
|
|
31969
32638
|
* @param {string} [storeId] Store ID filter
|
|
31970
32639
|
* @param {number} [page] Page number (default: 1)
|
|
31971
|
-
* @param {number} [perPage] Results per page (default:
|
|
32640
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
31972
32641
|
* @param {*} [options] Override http request option.
|
|
31973
32642
|
* @throws {RequiredError}
|
|
31974
32643
|
*/
|
|
@@ -31983,7 +32652,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
|
|
|
31983
32652
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
31984
32653
|
* @param {string} [method] HTTP method filter
|
|
31985
32654
|
* @param {number} [page] Page number (default: 1)
|
|
31986
|
-
* @param {number} [perPage] Results per page (default:
|
|
32655
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
31987
32656
|
* @param {*} [options] Override http request option.
|
|
31988
32657
|
* @throws {RequiredError}
|
|
31989
32658
|
*/
|
|
@@ -32499,7 +33168,7 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
32499
33168
|
* @param {string} [path] Path filter (partial match)
|
|
32500
33169
|
* @param {string} [storeId] Store ID filter
|
|
32501
33170
|
* @param {number} [page] Page number (default: 1)
|
|
32502
|
-
* @param {number} [perPage] Results per page (default:
|
|
33171
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
32503
33172
|
* @param {*} [options] Override http request option.
|
|
32504
33173
|
* @throws {RequiredError}
|
|
32505
33174
|
* @memberof AnalyticsApi
|
|
@@ -32516,7 +33185,7 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
32516
33185
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
32517
33186
|
* @param {string} [method] HTTP method filter
|
|
32518
33187
|
* @param {number} [page] Page number (default: 1)
|
|
32519
|
-
* @param {number} [perPage] Results per page (default:
|
|
33188
|
+
* @param {number} [perPage] Results per page (default: 100, max: 1000)
|
|
32520
33189
|
* @param {*} [options] Override http request option.
|
|
32521
33190
|
* @throws {RequiredError}
|
|
32522
33191
|
* @memberof AnalyticsApi
|
|
@@ -42094,6 +42763,308 @@ export class DocumentsApi extends BaseAPI {
|
|
|
42094
42763
|
|
|
42095
42764
|
|
|
42096
42765
|
|
|
42766
|
+
/**
|
|
42767
|
+
* DropdownRecommendationsApi - axios parameter creator
|
|
42768
|
+
* @export
|
|
42769
|
+
*/
|
|
42770
|
+
export const DropdownRecommendationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42771
|
+
return {
|
|
42772
|
+
/**
|
|
42773
|
+
* Retrieve configuration settings for dropdown recommendations
|
|
42774
|
+
* @summary Get Dropdown Recommendations Configuration
|
|
42775
|
+
* @param {string} xStoreid Store ID
|
|
42776
|
+
* @param {string} xStoresecret Store Secret
|
|
42777
|
+
* @param {*} [options] Override http request option.
|
|
42778
|
+
* @throws {RequiredError}
|
|
42779
|
+
*/
|
|
42780
|
+
v1DropdownRecommendationsConfigGet: async (xStoreid: string, xStoresecret: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42781
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
42782
|
+
assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoreid', xStoreid)
|
|
42783
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
42784
|
+
assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoresecret', xStoresecret)
|
|
42785
|
+
const localVarPath = `/v1/dropdown-recommendations/config`;
|
|
42786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42788
|
+
let baseOptions;
|
|
42789
|
+
if (configuration) {
|
|
42790
|
+
baseOptions = configuration.baseOptions;
|
|
42791
|
+
}
|
|
42792
|
+
|
|
42793
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42794
|
+
const localVarHeaderParameter = {} as any;
|
|
42795
|
+
const localVarQueryParameter = {} as any;
|
|
42796
|
+
|
|
42797
|
+
|
|
42798
|
+
|
|
42799
|
+
if (xStoreid != null) {
|
|
42800
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
42801
|
+
}
|
|
42802
|
+
if (xStoresecret != null) {
|
|
42803
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
42804
|
+
}
|
|
42805
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42806
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42807
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42808
|
+
|
|
42809
|
+
return {
|
|
42810
|
+
url: toPathString(localVarUrlObj),
|
|
42811
|
+
options: localVarRequestOptions,
|
|
42812
|
+
};
|
|
42813
|
+
},
|
|
42814
|
+
/**
|
|
42815
|
+
* Update configuration settings for dropdown recommendations
|
|
42816
|
+
* @summary Update Dropdown Recommendations Configuration
|
|
42817
|
+
* @param {string} xStoreid Store ID
|
|
42818
|
+
* @param {string} xStoresecret Store Secret
|
|
42819
|
+
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
42820
|
+
* @param {*} [options] Override http request option.
|
|
42821
|
+
* @throws {RequiredError}
|
|
42822
|
+
*/
|
|
42823
|
+
v1DropdownRecommendationsConfigPut: async (xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42824
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
42825
|
+
assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoreid', xStoreid)
|
|
42826
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
42827
|
+
assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoresecret', xStoresecret)
|
|
42828
|
+
// verify required parameter 'dropdownRecommendationsServiceUpdateDropdownConfigRequest' is not null or undefined
|
|
42829
|
+
assertParamExists('v1DropdownRecommendationsConfigPut', 'dropdownRecommendationsServiceUpdateDropdownConfigRequest', dropdownRecommendationsServiceUpdateDropdownConfigRequest)
|
|
42830
|
+
const localVarPath = `/v1/dropdown-recommendations/config`;
|
|
42831
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42833
|
+
let baseOptions;
|
|
42834
|
+
if (configuration) {
|
|
42835
|
+
baseOptions = configuration.baseOptions;
|
|
42836
|
+
}
|
|
42837
|
+
|
|
42838
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
42839
|
+
const localVarHeaderParameter = {} as any;
|
|
42840
|
+
const localVarQueryParameter = {} as any;
|
|
42841
|
+
|
|
42842
|
+
|
|
42843
|
+
|
|
42844
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42845
|
+
|
|
42846
|
+
if (xStoreid != null) {
|
|
42847
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
42848
|
+
}
|
|
42849
|
+
if (xStoresecret != null) {
|
|
42850
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
42851
|
+
}
|
|
42852
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42853
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42854
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42855
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dropdownRecommendationsServiceUpdateDropdownConfigRequest, localVarRequestOptions, configuration)
|
|
42856
|
+
|
|
42857
|
+
return {
|
|
42858
|
+
url: toPathString(localVarUrlObj),
|
|
42859
|
+
options: localVarRequestOptions,
|
|
42860
|
+
};
|
|
42861
|
+
},
|
|
42862
|
+
/**
|
|
42863
|
+
* Retrieve trending search categories, trending products, and popular brands for the dropdown
|
|
42864
|
+
* @summary Get Dropdown Recommendations
|
|
42865
|
+
* @param {string} xStoreid Store ID
|
|
42866
|
+
* @param {string} xStoresecret Store Secret
|
|
42867
|
+
* @param {string} [xUserId] User ID for personalization
|
|
42868
|
+
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
42869
|
+
* @param {*} [options] Override http request option.
|
|
42870
|
+
* @throws {RequiredError}
|
|
42871
|
+
*/
|
|
42872
|
+
v1DropdownRecommendationsGet: async (xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42873
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
42874
|
+
assertParamExists('v1DropdownRecommendationsGet', 'xStoreid', xStoreid)
|
|
42875
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
42876
|
+
assertParamExists('v1DropdownRecommendationsGet', 'xStoresecret', xStoresecret)
|
|
42877
|
+
const localVarPath = `/v1/dropdown-recommendations`;
|
|
42878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42880
|
+
let baseOptions;
|
|
42881
|
+
if (configuration) {
|
|
42882
|
+
baseOptions = configuration.baseOptions;
|
|
42883
|
+
}
|
|
42884
|
+
|
|
42885
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42886
|
+
const localVarHeaderParameter = {} as any;
|
|
42887
|
+
const localVarQueryParameter = {} as any;
|
|
42888
|
+
|
|
42889
|
+
|
|
42890
|
+
|
|
42891
|
+
if (xStoreid != null) {
|
|
42892
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
42893
|
+
}
|
|
42894
|
+
if (xStoresecret != null) {
|
|
42895
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
42896
|
+
}
|
|
42897
|
+
if (xUserId != null) {
|
|
42898
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
42899
|
+
}
|
|
42900
|
+
if (xAnonId != null) {
|
|
42901
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
42902
|
+
}
|
|
42903
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42904
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42905
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42906
|
+
|
|
42907
|
+
return {
|
|
42908
|
+
url: toPathString(localVarUrlObj),
|
|
42909
|
+
options: localVarRequestOptions,
|
|
42910
|
+
};
|
|
42911
|
+
},
|
|
42912
|
+
}
|
|
42913
|
+
};
|
|
42914
|
+
|
|
42915
|
+
/**
|
|
42916
|
+
* DropdownRecommendationsApi - functional programming interface
|
|
42917
|
+
* @export
|
|
42918
|
+
*/
|
|
42919
|
+
export const DropdownRecommendationsApiFp = function(configuration?: Configuration) {
|
|
42920
|
+
const localVarAxiosParamCreator = DropdownRecommendationsApiAxiosParamCreator(configuration)
|
|
42921
|
+
return {
|
|
42922
|
+
/**
|
|
42923
|
+
* Retrieve configuration settings for dropdown recommendations
|
|
42924
|
+
* @summary Get Dropdown Recommendations Configuration
|
|
42925
|
+
* @param {string} xStoreid Store ID
|
|
42926
|
+
* @param {string} xStoresecret Store Secret
|
|
42927
|
+
* @param {*} [options] Override http request option.
|
|
42928
|
+
* @throws {RequiredError}
|
|
42929
|
+
*/
|
|
42930
|
+
async v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse>> {
|
|
42931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options);
|
|
42932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42933
|
+
const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigGet']?.[localVarOperationServerIndex]?.url;
|
|
42934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42935
|
+
},
|
|
42936
|
+
/**
|
|
42937
|
+
* Update configuration settings for dropdown recommendations
|
|
42938
|
+
* @summary Update Dropdown Recommendations Configuration
|
|
42939
|
+
* @param {string} xStoreid Store ID
|
|
42940
|
+
* @param {string} xStoresecret Store Secret
|
|
42941
|
+
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
42942
|
+
* @param {*} [options] Override http request option.
|
|
42943
|
+
* @throws {RequiredError}
|
|
42944
|
+
*/
|
|
42945
|
+
async v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse>> {
|
|
42946
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options);
|
|
42947
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42948
|
+
const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigPut']?.[localVarOperationServerIndex]?.url;
|
|
42949
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42950
|
+
},
|
|
42951
|
+
/**
|
|
42952
|
+
* Retrieve trending search categories, trending products, and popular brands for the dropdown
|
|
42953
|
+
* @summary Get Dropdown Recommendations
|
|
42954
|
+
* @param {string} xStoreid Store ID
|
|
42955
|
+
* @param {string} xStoresecret Store Secret
|
|
42956
|
+
* @param {string} [xUserId] User ID for personalization
|
|
42957
|
+
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
42958
|
+
* @param {*} [options] Override http request option.
|
|
42959
|
+
* @throws {RequiredError}
|
|
42960
|
+
*/
|
|
42961
|
+
async v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DropdownRecommendationsServiceDropdownRecommendationsAPIResponse>> {
|
|
42962
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options);
|
|
42963
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42964
|
+
const localVarOperationServerBasePath = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsGet']?.[localVarOperationServerIndex]?.url;
|
|
42965
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42966
|
+
},
|
|
42967
|
+
}
|
|
42968
|
+
};
|
|
42969
|
+
|
|
42970
|
+
/**
|
|
42971
|
+
* DropdownRecommendationsApi - factory interface
|
|
42972
|
+
* @export
|
|
42973
|
+
*/
|
|
42974
|
+
export const DropdownRecommendationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
42975
|
+
const localVarFp = DropdownRecommendationsApiFp(configuration)
|
|
42976
|
+
return {
|
|
42977
|
+
/**
|
|
42978
|
+
* Retrieve configuration settings for dropdown recommendations
|
|
42979
|
+
* @summary Get Dropdown Recommendations Configuration
|
|
42980
|
+
* @param {string} xStoreid Store ID
|
|
42981
|
+
* @param {string} xStoresecret Store Secret
|
|
42982
|
+
* @param {*} [options] Override http request option.
|
|
42983
|
+
* @throws {RequiredError}
|
|
42984
|
+
*/
|
|
42985
|
+
v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse> {
|
|
42986
|
+
return localVarFp.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
42987
|
+
},
|
|
42988
|
+
/**
|
|
42989
|
+
* Update configuration settings for dropdown recommendations
|
|
42990
|
+
* @summary Update Dropdown Recommendations Configuration
|
|
42991
|
+
* @param {string} xStoreid Store ID
|
|
42992
|
+
* @param {string} xStoresecret Store Secret
|
|
42993
|
+
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
42994
|
+
* @param {*} [options] Override http request option.
|
|
42995
|
+
* @throws {RequiredError}
|
|
42996
|
+
*/
|
|
42997
|
+
v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownConfigResponse> {
|
|
42998
|
+
return localVarFp.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(axios, basePath));
|
|
42999
|
+
},
|
|
43000
|
+
/**
|
|
43001
|
+
* Retrieve trending search categories, trending products, and popular brands for the dropdown
|
|
43002
|
+
* @summary Get Dropdown Recommendations
|
|
43003
|
+
* @param {string} xStoreid Store ID
|
|
43004
|
+
* @param {string} xStoresecret Store Secret
|
|
43005
|
+
* @param {string} [xUserId] User ID for personalization
|
|
43006
|
+
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
43007
|
+
* @param {*} [options] Override http request option.
|
|
43008
|
+
* @throws {RequiredError}
|
|
43009
|
+
*/
|
|
43010
|
+
v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DropdownRecommendationsServiceDropdownRecommendationsAPIResponse> {
|
|
43011
|
+
return localVarFp.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(axios, basePath));
|
|
43012
|
+
},
|
|
43013
|
+
};
|
|
43014
|
+
};
|
|
43015
|
+
|
|
43016
|
+
/**
|
|
43017
|
+
* DropdownRecommendationsApi - object-oriented interface
|
|
43018
|
+
* @export
|
|
43019
|
+
* @class DropdownRecommendationsApi
|
|
43020
|
+
* @extends {BaseAPI}
|
|
43021
|
+
*/
|
|
43022
|
+
export class DropdownRecommendationsApi extends BaseAPI {
|
|
43023
|
+
/**
|
|
43024
|
+
* Retrieve configuration settings for dropdown recommendations
|
|
43025
|
+
* @summary Get Dropdown Recommendations Configuration
|
|
43026
|
+
* @param {string} xStoreid Store ID
|
|
43027
|
+
* @param {string} xStoresecret Store Secret
|
|
43028
|
+
* @param {*} [options] Override http request option.
|
|
43029
|
+
* @throws {RequiredError}
|
|
43030
|
+
* @memberof DropdownRecommendationsApi
|
|
43031
|
+
*/
|
|
43032
|
+
public v1DropdownRecommendationsConfigGet(xStoreid: string, xStoresecret: string, options?: RawAxiosRequestConfig) {
|
|
43033
|
+
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
43034
|
+
}
|
|
43035
|
+
|
|
43036
|
+
/**
|
|
43037
|
+
* Update configuration settings for dropdown recommendations
|
|
43038
|
+
* @summary Update Dropdown Recommendations Configuration
|
|
43039
|
+
* @param {string} xStoreid Store ID
|
|
43040
|
+
* @param {string} xStoresecret Store Secret
|
|
43041
|
+
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
43042
|
+
* @param {*} [options] Override http request option.
|
|
43043
|
+
* @throws {RequiredError}
|
|
43044
|
+
* @memberof DropdownRecommendationsApi
|
|
43045
|
+
*/
|
|
43046
|
+
public v1DropdownRecommendationsConfigPut(xStoreid: string, xStoresecret: string, dropdownRecommendationsServiceUpdateDropdownConfigRequest: DropdownRecommendationsServiceUpdateDropdownConfigRequest, options?: RawAxiosRequestConfig) {
|
|
43047
|
+
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43048
|
+
}
|
|
43049
|
+
|
|
43050
|
+
/**
|
|
43051
|
+
* Retrieve trending search categories, trending products, and popular brands for the dropdown
|
|
43052
|
+
* @summary Get Dropdown Recommendations
|
|
43053
|
+
* @param {string} xStoreid Store ID
|
|
43054
|
+
* @param {string} xStoresecret Store Secret
|
|
43055
|
+
* @param {string} [xUserId] User ID for personalization
|
|
43056
|
+
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
43057
|
+
* @param {*} [options] Override http request option.
|
|
43058
|
+
* @throws {RequiredError}
|
|
43059
|
+
* @memberof DropdownRecommendationsApi
|
|
43060
|
+
*/
|
|
43061
|
+
public v1DropdownRecommendationsGet(xStoreid: string, xStoresecret: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig) {
|
|
43062
|
+
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(this.axios, this.basePath));
|
|
43063
|
+
}
|
|
43064
|
+
}
|
|
43065
|
+
|
|
43066
|
+
|
|
43067
|
+
|
|
42097
43068
|
/**
|
|
42098
43069
|
* ExternalAPINotificationsApi - axios parameter creator
|
|
42099
43070
|
* @export
|