@seekora-ai/admin-api 1.0.28 → 1.0.30
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 +34 -2
- package/api.ts +1797 -106
- package/dist/api.d.ts +1241 -44
- package/dist/api.js +973 -68
- package/dist/esm/api.d.ts +1241 -44
- package/dist/esm/api.js +961 -64
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.30.tgz +0 -0
- package/seekora-ai-admin-api-1.0.28.tgz +0 -0
package/api.ts
CHANGED
|
@@ -355,6 +355,19 @@ export interface DataTypesAPICallsListResponse {
|
|
|
355
355
|
*/
|
|
356
356
|
'status'?: number;
|
|
357
357
|
}
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @export
|
|
361
|
+
* @interface DataTypesAddWordsToCustomListRequest
|
|
362
|
+
*/
|
|
363
|
+
export interface DataTypesAddWordsToCustomListRequest {
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @type {Array<string>}
|
|
367
|
+
* @memberof DataTypesAddWordsToCustomListRequest
|
|
368
|
+
*/
|
|
369
|
+
'words': Array<string>;
|
|
370
|
+
}
|
|
358
371
|
/**
|
|
359
372
|
*
|
|
360
373
|
* @export
|
|
@@ -433,6 +446,12 @@ export interface DataTypesAdminSearchRequest {
|
|
|
433
446
|
* @memberof DataTypesAdminSearchRequest
|
|
434
447
|
*/
|
|
435
448
|
'synonym_sets'?: Array<string>;
|
|
449
|
+
/**
|
|
450
|
+
* If true, returns only display fields instead of full document (used in public API only)
|
|
451
|
+
* @type {boolean}
|
|
452
|
+
* @memberof DataTypesAdminSearchRequest
|
|
453
|
+
*/
|
|
454
|
+
'widget_mode'?: boolean;
|
|
436
455
|
}
|
|
437
456
|
/**
|
|
438
457
|
*
|
|
@@ -459,6 +478,111 @@ export interface DataTypesAutocompleteSuggestion {
|
|
|
459
478
|
*/
|
|
460
479
|
'text'?: string;
|
|
461
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @export
|
|
484
|
+
* @interface DataTypesCombinedSearchResponse
|
|
485
|
+
*/
|
|
486
|
+
export interface DataTypesCombinedSearchResponse {
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @type {object}
|
|
490
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
491
|
+
*/
|
|
492
|
+
'facets'?: object;
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @type {number}
|
|
496
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
497
|
+
*/
|
|
498
|
+
'page'?: number;
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @type {number}
|
|
502
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
503
|
+
*/
|
|
504
|
+
'per_page'?: number;
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @type {Array<DataTypesCombinedSearchResult>}
|
|
508
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
509
|
+
*/
|
|
510
|
+
'results'?: Array<DataTypesCombinedSearchResult>;
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @type {Array<DataTypesAutocompleteSuggestion>}
|
|
514
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
515
|
+
*/
|
|
516
|
+
'suggestions'?: Array<DataTypesAutocompleteSuggestion>;
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* @type {number}
|
|
520
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
521
|
+
*/
|
|
522
|
+
'total_results'?: number;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @export
|
|
527
|
+
* @interface DataTypesCombinedSearchResponseWrapper
|
|
528
|
+
*/
|
|
529
|
+
export interface DataTypesCombinedSearchResponseWrapper {
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {DataTypesCombinedSearchResponse}
|
|
533
|
+
* @memberof DataTypesCombinedSearchResponseWrapper
|
|
534
|
+
*/
|
|
535
|
+
'data'?: DataTypesCombinedSearchResponse;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof DataTypesCombinedSearchResponseWrapper
|
|
540
|
+
*/
|
|
541
|
+
'message'?: string;
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @type {number}
|
|
545
|
+
* @memberof DataTypesCombinedSearchResponseWrapper
|
|
546
|
+
*/
|
|
547
|
+
'status'?: number;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @export
|
|
552
|
+
* @interface DataTypesCombinedSearchResult
|
|
553
|
+
*/
|
|
554
|
+
export interface DataTypesCombinedSearchResult {
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {{ [key: string]: any; }}
|
|
558
|
+
* @memberof DataTypesCombinedSearchResult
|
|
559
|
+
*/
|
|
560
|
+
'document'?: { [key: string]: any; };
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {{ [key: string]: any; }}
|
|
564
|
+
* @memberof DataTypesCombinedSearchResult
|
|
565
|
+
*/
|
|
566
|
+
'highlight'?: { [key: string]: any; };
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof DataTypesCombinedSearchResult
|
|
571
|
+
*/
|
|
572
|
+
'id'?: string;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {number}
|
|
576
|
+
* @memberof DataTypesCombinedSearchResult
|
|
577
|
+
*/
|
|
578
|
+
'score'?: number;
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {DataTypesWidgetSearchResult}
|
|
582
|
+
* @memberof DataTypesCombinedSearchResult
|
|
583
|
+
*/
|
|
584
|
+
'widget'?: DataTypesWidgetSearchResult;
|
|
585
|
+
}
|
|
462
586
|
/**
|
|
463
587
|
*
|
|
464
588
|
* @export
|
|
@@ -584,6 +708,57 @@ export interface DataTypesConsumptionSummary {
|
|
|
584
708
|
*/
|
|
585
709
|
'unique_endpoints'?: number;
|
|
586
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @export
|
|
714
|
+
* @interface DataTypesCreateCustomWordListRequest
|
|
715
|
+
*/
|
|
716
|
+
export interface DataTypesCreateCustomWordListRequest {
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @type {string}
|
|
720
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
721
|
+
*/
|
|
722
|
+
'description'?: string;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {string}
|
|
726
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
727
|
+
*/
|
|
728
|
+
'lang': string;
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @type {string}
|
|
732
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
733
|
+
*/
|
|
734
|
+
'locale': string;
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
739
|
+
*/
|
|
740
|
+
'name': string;
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @type {string}
|
|
744
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
745
|
+
*/
|
|
746
|
+
'type': DataTypesCreateCustomWordListRequestTypeEnum;
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @type {Array<string>}
|
|
750
|
+
* @memberof DataTypesCreateCustomWordListRequest
|
|
751
|
+
*/
|
|
752
|
+
'words': Array<string>;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export const DataTypesCreateCustomWordListRequestTypeEnum = {
|
|
756
|
+
Stopwords: 'stopwords',
|
|
757
|
+
Synonyms: 'synonyms'
|
|
758
|
+
} as const;
|
|
759
|
+
|
|
760
|
+
export type DataTypesCreateCustomWordListRequestTypeEnum = typeof DataTypesCreateCustomWordListRequestTypeEnum[keyof typeof DataTypesCreateCustomWordListRequestTypeEnum];
|
|
761
|
+
|
|
587
762
|
/**
|
|
588
763
|
*
|
|
589
764
|
* @export
|
|
@@ -1685,6 +1860,179 @@ export const DataTypesCreditTransactionTransactionTypeEnum = {
|
|
|
1685
1860
|
|
|
1686
1861
|
export type DataTypesCreditTransactionTransactionTypeEnum = typeof DataTypesCreditTransactionTransactionTypeEnum[keyof typeof DataTypesCreditTransactionTransactionTypeEnum];
|
|
1687
1862
|
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @export
|
|
1866
|
+
* @interface DataTypesCustomWordListResponseWrapper
|
|
1867
|
+
*/
|
|
1868
|
+
export interface DataTypesCustomWordListResponseWrapper {
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @type {DataTypesCustomWordListWithWords}
|
|
1872
|
+
* @memberof DataTypesCustomWordListResponseWrapper
|
|
1873
|
+
*/
|
|
1874
|
+
'data'?: DataTypesCustomWordListWithWords;
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @type {string}
|
|
1878
|
+
* @memberof DataTypesCustomWordListResponseWrapper
|
|
1879
|
+
*/
|
|
1880
|
+
'message'?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
*
|
|
1883
|
+
* @type {number}
|
|
1884
|
+
* @memberof DataTypesCustomWordListResponseWrapper
|
|
1885
|
+
*/
|
|
1886
|
+
'status'?: number;
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
*
|
|
1890
|
+
* @export
|
|
1891
|
+
* @interface DataTypesCustomWordListWithWords
|
|
1892
|
+
*/
|
|
1893
|
+
export interface DataTypesCustomWordListWithWords {
|
|
1894
|
+
/**
|
|
1895
|
+
*
|
|
1896
|
+
* @type {string}
|
|
1897
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1898
|
+
*/
|
|
1899
|
+
'created_at'?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @type {number}
|
|
1903
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1904
|
+
*/
|
|
1905
|
+
'custom_wordlistid'?: number;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1910
|
+
*/
|
|
1911
|
+
'description'?: string;
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1916
|
+
*/
|
|
1917
|
+
'lang'?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
*
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1922
|
+
*/
|
|
1923
|
+
'locale'?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1928
|
+
*/
|
|
1929
|
+
'name'?: string;
|
|
1930
|
+
/**
|
|
1931
|
+
*
|
|
1932
|
+
* @type {number}
|
|
1933
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1934
|
+
*/
|
|
1935
|
+
'storeid'?: number;
|
|
1936
|
+
/**
|
|
1937
|
+
*
|
|
1938
|
+
* @type {string}
|
|
1939
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1940
|
+
*/
|
|
1941
|
+
'type'?: string;
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @type {string}
|
|
1945
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1946
|
+
*/
|
|
1947
|
+
'updated_at'?: string;
|
|
1948
|
+
/**
|
|
1949
|
+
*
|
|
1950
|
+
* @type {Array<DataTypesCustomWordWithStatus>}
|
|
1951
|
+
* @memberof DataTypesCustomWordListWithWords
|
|
1952
|
+
*/
|
|
1953
|
+
'words'?: Array<DataTypesCustomWordWithStatus>;
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
*
|
|
1957
|
+
* @export
|
|
1958
|
+
* @interface DataTypesCustomWordListsResponse
|
|
1959
|
+
*/
|
|
1960
|
+
export interface DataTypesCustomWordListsResponse {
|
|
1961
|
+
/**
|
|
1962
|
+
*
|
|
1963
|
+
* @type {Array<DataTypesCustomWordListWithWords>}
|
|
1964
|
+
* @memberof DataTypesCustomWordListsResponse
|
|
1965
|
+
*/
|
|
1966
|
+
'custom_wordlists'?: Array<DataTypesCustomWordListWithWords>;
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @type {number}
|
|
1970
|
+
* @memberof DataTypesCustomWordListsResponse
|
|
1971
|
+
*/
|
|
1972
|
+
'limit'?: number;
|
|
1973
|
+
/**
|
|
1974
|
+
*
|
|
1975
|
+
* @type {number}
|
|
1976
|
+
* @memberof DataTypesCustomWordListsResponse
|
|
1977
|
+
*/
|
|
1978
|
+
'page'?: number;
|
|
1979
|
+
/**
|
|
1980
|
+
*
|
|
1981
|
+
* @type {number}
|
|
1982
|
+
* @memberof DataTypesCustomWordListsResponse
|
|
1983
|
+
*/
|
|
1984
|
+
'total'?: number;
|
|
1985
|
+
/**
|
|
1986
|
+
*
|
|
1987
|
+
* @type {number}
|
|
1988
|
+
* @memberof DataTypesCustomWordListsResponse
|
|
1989
|
+
*/
|
|
1990
|
+
'total_pages'?: number;
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
*
|
|
1994
|
+
* @export
|
|
1995
|
+
* @interface DataTypesCustomWordListsResponseWrapper
|
|
1996
|
+
*/
|
|
1997
|
+
export interface DataTypesCustomWordListsResponseWrapper {
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @type {DataTypesCustomWordListsResponse}
|
|
2001
|
+
* @memberof DataTypesCustomWordListsResponseWrapper
|
|
2002
|
+
*/
|
|
2003
|
+
'data'?: DataTypesCustomWordListsResponse;
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @type {string}
|
|
2007
|
+
* @memberof DataTypesCustomWordListsResponseWrapper
|
|
2008
|
+
*/
|
|
2009
|
+
'message'?: string;
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @type {number}
|
|
2013
|
+
* @memberof DataTypesCustomWordListsResponseWrapper
|
|
2014
|
+
*/
|
|
2015
|
+
'status'?: number;
|
|
2016
|
+
}
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @export
|
|
2020
|
+
* @interface DataTypesCustomWordWithStatus
|
|
2021
|
+
*/
|
|
2022
|
+
export interface DataTypesCustomWordWithStatus {
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @type {number}
|
|
2026
|
+
* @memberof DataTypesCustomWordWithStatus
|
|
2027
|
+
*/
|
|
2028
|
+
'custom_wordid'?: number;
|
|
2029
|
+
/**
|
|
2030
|
+
*
|
|
2031
|
+
* @type {string}
|
|
2032
|
+
* @memberof DataTypesCustomWordWithStatus
|
|
2033
|
+
*/
|
|
2034
|
+
'word'?: string;
|
|
2035
|
+
}
|
|
1688
2036
|
/**
|
|
1689
2037
|
*
|
|
1690
2038
|
* @export
|
|
@@ -2349,7 +2697,13 @@ export interface DataTypesIndexConfig {
|
|
|
2349
2697
|
'highlight_start_tag'?: string;
|
|
2350
2698
|
/**
|
|
2351
2699
|
*
|
|
2352
|
-
* @type {
|
|
2700
|
+
* @type {string}
|
|
2701
|
+
* @memberof DataTypesIndexConfig
|
|
2702
|
+
*/
|
|
2703
|
+
'image_url'?: string;
|
|
2704
|
+
/**
|
|
2705
|
+
*
|
|
2706
|
+
* @type {Array<string>}
|
|
2353
2707
|
* @memberof DataTypesIndexConfig
|
|
2354
2708
|
*/
|
|
2355
2709
|
'include_fields'?: Array<string>;
|
|
@@ -2413,6 +2767,12 @@ export interface DataTypesIndexConfig {
|
|
|
2413
2767
|
* @memberof DataTypesIndexConfig
|
|
2414
2768
|
*/
|
|
2415
2769
|
'preset'?: string;
|
|
2770
|
+
/**
|
|
2771
|
+
*
|
|
2772
|
+
* @type {string}
|
|
2773
|
+
* @memberof DataTypesIndexConfig
|
|
2774
|
+
*/
|
|
2775
|
+
'primary_text'?: string;
|
|
2416
2776
|
/**
|
|
2417
2777
|
*
|
|
2418
2778
|
* @type {boolean}
|
|
@@ -2455,6 +2815,12 @@ export interface DataTypesIndexConfig {
|
|
|
2455
2815
|
* @memberof DataTypesIndexConfig
|
|
2456
2816
|
*/
|
|
2457
2817
|
'search_strategy'?: string;
|
|
2818
|
+
/**
|
|
2819
|
+
*
|
|
2820
|
+
* @type {string}
|
|
2821
|
+
* @memberof DataTypesIndexConfig
|
|
2822
|
+
*/
|
|
2823
|
+
'secondary_text'?: string;
|
|
2458
2824
|
/**
|
|
2459
2825
|
*
|
|
2460
2826
|
* @type {boolean}
|
|
@@ -2491,6 +2857,12 @@ export interface DataTypesIndexConfig {
|
|
|
2491
2857
|
* @memberof DataTypesIndexConfig
|
|
2492
2858
|
*/
|
|
2493
2859
|
'synonyms'?: Array<DataTypesSynonymEntry>;
|
|
2860
|
+
/**
|
|
2861
|
+
*
|
|
2862
|
+
* @type {string}
|
|
2863
|
+
* @memberof DataTypesIndexConfig
|
|
2864
|
+
*/
|
|
2865
|
+
'tertiary_text'?: string;
|
|
2494
2866
|
/**
|
|
2495
2867
|
* Optional: Search-only scoped API key
|
|
2496
2868
|
* @type {string}
|
|
@@ -2628,6 +3000,93 @@ export interface DataTypesJobStatusResponseWrapper {
|
|
|
2628
3000
|
*/
|
|
2629
3001
|
'status'?: number;
|
|
2630
3002
|
}
|
|
3003
|
+
/**
|
|
3004
|
+
*
|
|
3005
|
+
* @export
|
|
3006
|
+
* @interface DataTypesLanguage
|
|
3007
|
+
*/
|
|
3008
|
+
export interface DataTypesLanguage {
|
|
3009
|
+
/**
|
|
3010
|
+
*
|
|
3011
|
+
* @type {string}
|
|
3012
|
+
* @memberof DataTypesLanguage
|
|
3013
|
+
*/
|
|
3014
|
+
'lang'?: string;
|
|
3015
|
+
/**
|
|
3016
|
+
*
|
|
3017
|
+
* @type {string}
|
|
3018
|
+
* @memberof DataTypesLanguage
|
|
3019
|
+
*/
|
|
3020
|
+
'locale'?: string;
|
|
3021
|
+
/**
|
|
3022
|
+
*
|
|
3023
|
+
* @type {number}
|
|
3024
|
+
* @memberof DataTypesLanguage
|
|
3025
|
+
*/
|
|
3026
|
+
'word_count'?: number;
|
|
3027
|
+
}
|
|
3028
|
+
/**
|
|
3029
|
+
*
|
|
3030
|
+
* @export
|
|
3031
|
+
* @interface DataTypesLanguagesResponse
|
|
3032
|
+
*/
|
|
3033
|
+
export interface DataTypesLanguagesResponse {
|
|
3034
|
+
/**
|
|
3035
|
+
*
|
|
3036
|
+
* @type {Array<DataTypesLanguage>}
|
|
3037
|
+
* @memberof DataTypesLanguagesResponse
|
|
3038
|
+
*/
|
|
3039
|
+
'languages'?: Array<DataTypesLanguage>;
|
|
3040
|
+
/**
|
|
3041
|
+
*
|
|
3042
|
+
* @type {number}
|
|
3043
|
+
* @memberof DataTypesLanguagesResponse
|
|
3044
|
+
*/
|
|
3045
|
+
'limit'?: number;
|
|
3046
|
+
/**
|
|
3047
|
+
*
|
|
3048
|
+
* @type {number}
|
|
3049
|
+
* @memberof DataTypesLanguagesResponse
|
|
3050
|
+
*/
|
|
3051
|
+
'page'?: number;
|
|
3052
|
+
/**
|
|
3053
|
+
*
|
|
3054
|
+
* @type {number}
|
|
3055
|
+
* @memberof DataTypesLanguagesResponse
|
|
3056
|
+
*/
|
|
3057
|
+
'total'?: number;
|
|
3058
|
+
/**
|
|
3059
|
+
*
|
|
3060
|
+
* @type {number}
|
|
3061
|
+
* @memberof DataTypesLanguagesResponse
|
|
3062
|
+
*/
|
|
3063
|
+
'total_pages'?: number;
|
|
3064
|
+
}
|
|
3065
|
+
/**
|
|
3066
|
+
*
|
|
3067
|
+
* @export
|
|
3068
|
+
* @interface DataTypesLanguagesResponseWrapper
|
|
3069
|
+
*/
|
|
3070
|
+
export interface DataTypesLanguagesResponseWrapper {
|
|
3071
|
+
/**
|
|
3072
|
+
*
|
|
3073
|
+
* @type {DataTypesLanguagesResponse}
|
|
3074
|
+
* @memberof DataTypesLanguagesResponseWrapper
|
|
3075
|
+
*/
|
|
3076
|
+
'data'?: DataTypesLanguagesResponse;
|
|
3077
|
+
/**
|
|
3078
|
+
*
|
|
3079
|
+
* @type {string}
|
|
3080
|
+
* @memberof DataTypesLanguagesResponseWrapper
|
|
3081
|
+
*/
|
|
3082
|
+
'message'?: string;
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @type {number}
|
|
3086
|
+
* @memberof DataTypesLanguagesResponseWrapper
|
|
3087
|
+
*/
|
|
3088
|
+
'status'?: number;
|
|
3089
|
+
}
|
|
2631
3090
|
/**
|
|
2632
3091
|
*
|
|
2633
3092
|
* @export
|
|
@@ -4507,6 +4966,12 @@ export interface DataTypesPublicSearchRequest {
|
|
|
4507
4966
|
* @memberof DataTypesPublicSearchRequest
|
|
4508
4967
|
*/
|
|
4509
4968
|
'synonym_sets'?: Array<string>;
|
|
4969
|
+
/**
|
|
4970
|
+
* If true, returns only display fields instead of full document (used in public API only)
|
|
4971
|
+
* @type {boolean}
|
|
4972
|
+
* @memberof DataTypesPublicSearchRequest
|
|
4973
|
+
*/
|
|
4974
|
+
'widget_mode'?: boolean;
|
|
4510
4975
|
}
|
|
4511
4976
|
/**
|
|
4512
4977
|
*
|
|
@@ -4576,6 +5041,19 @@ export interface DataTypesPurchaseCreditsResponse {
|
|
|
4576
5041
|
*/
|
|
4577
5042
|
'updated_balance'?: DataTypesCreditBalance;
|
|
4578
5043
|
}
|
|
5044
|
+
/**
|
|
5045
|
+
*
|
|
5046
|
+
* @export
|
|
5047
|
+
* @interface DataTypesRemoveWordsFromCustomListRequest
|
|
5048
|
+
*/
|
|
5049
|
+
export interface DataTypesRemoveWordsFromCustomListRequest {
|
|
5050
|
+
/**
|
|
5051
|
+
*
|
|
5052
|
+
* @type {Array<number>}
|
|
5053
|
+
* @memberof DataTypesRemoveWordsFromCustomListRequest
|
|
5054
|
+
*/
|
|
5055
|
+
'custom_word_ids': Array<number>;
|
|
5056
|
+
}
|
|
4579
5057
|
/**
|
|
4580
5058
|
*
|
|
4581
5059
|
* @export
|
|
@@ -6230,6 +6708,31 @@ export interface DataTypesTriggerTaskRunResponse {
|
|
|
6230
6708
|
*/
|
|
6231
6709
|
'status'?: number;
|
|
6232
6710
|
}
|
|
6711
|
+
/**
|
|
6712
|
+
*
|
|
6713
|
+
* @export
|
|
6714
|
+
* @interface DataTypesUpdateCustomWordListRequest
|
|
6715
|
+
*/
|
|
6716
|
+
export interface DataTypesUpdateCustomWordListRequest {
|
|
6717
|
+
/**
|
|
6718
|
+
*
|
|
6719
|
+
* @type {string}
|
|
6720
|
+
* @memberof DataTypesUpdateCustomWordListRequest
|
|
6721
|
+
*/
|
|
6722
|
+
'description'?: string;
|
|
6723
|
+
/**
|
|
6724
|
+
*
|
|
6725
|
+
* @type {string}
|
|
6726
|
+
* @memberof DataTypesUpdateCustomWordListRequest
|
|
6727
|
+
*/
|
|
6728
|
+
'name'?: string;
|
|
6729
|
+
/**
|
|
6730
|
+
*
|
|
6731
|
+
* @type {Array<string>}
|
|
6732
|
+
* @memberof DataTypesUpdateCustomWordListRequest
|
|
6733
|
+
*/
|
|
6734
|
+
'words'?: Array<string>;
|
|
6735
|
+
}
|
|
6233
6736
|
/**
|
|
6234
6737
|
*
|
|
6235
6738
|
* @export
|
|
@@ -6471,6 +6974,50 @@ export interface DataTypesUpdateSourceConfigResponseWrapper {
|
|
|
6471
6974
|
*/
|
|
6472
6975
|
'status'?: number;
|
|
6473
6976
|
}
|
|
6977
|
+
/**
|
|
6978
|
+
*
|
|
6979
|
+
* @export
|
|
6980
|
+
* @interface DataTypesUpdateWordStatusRequest
|
|
6981
|
+
*/
|
|
6982
|
+
export interface DataTypesUpdateWordStatusRequest {
|
|
6983
|
+
/**
|
|
6984
|
+
*
|
|
6985
|
+
* @type {boolean}
|
|
6986
|
+
* @memberof DataTypesUpdateWordStatusRequest
|
|
6987
|
+
*/
|
|
6988
|
+
'is_enabled'?: boolean;
|
|
6989
|
+
/**
|
|
6990
|
+
*
|
|
6991
|
+
* @type {number}
|
|
6992
|
+
* @memberof DataTypesUpdateWordStatusRequest
|
|
6993
|
+
*/
|
|
6994
|
+
'wordid': number;
|
|
6995
|
+
}
|
|
6996
|
+
/**
|
|
6997
|
+
*
|
|
6998
|
+
* @export
|
|
6999
|
+
* @interface DataTypesUpdateWordStatusResponseWrapper
|
|
7000
|
+
*/
|
|
7001
|
+
export interface DataTypesUpdateWordStatusResponseWrapper {
|
|
7002
|
+
/**
|
|
7003
|
+
*
|
|
7004
|
+
* @type {string}
|
|
7005
|
+
* @memberof DataTypesUpdateWordStatusResponseWrapper
|
|
7006
|
+
*/
|
|
7007
|
+
'data'?: string;
|
|
7008
|
+
/**
|
|
7009
|
+
*
|
|
7010
|
+
* @type {string}
|
|
7011
|
+
* @memberof DataTypesUpdateWordStatusResponseWrapper
|
|
7012
|
+
*/
|
|
7013
|
+
'message'?: string;
|
|
7014
|
+
/**
|
|
7015
|
+
*
|
|
7016
|
+
* @type {number}
|
|
7017
|
+
* @memberof DataTypesUpdateWordStatusResponseWrapper
|
|
7018
|
+
*/
|
|
7019
|
+
'status'?: number;
|
|
7020
|
+
}
|
|
6474
7021
|
/**
|
|
6475
7022
|
*
|
|
6476
7023
|
* @export
|
|
@@ -6855,146 +7402,331 @@ export interface DataTypesVerifyOTPResponseWrapper {
|
|
|
6855
7402
|
/**
|
|
6856
7403
|
*
|
|
6857
7404
|
* @export
|
|
6858
|
-
* @interface
|
|
7405
|
+
* @interface DataTypesWidgetSearchResult
|
|
6859
7406
|
*/
|
|
6860
|
-
export interface
|
|
7407
|
+
export interface DataTypesWidgetSearchResult {
|
|
6861
7408
|
/**
|
|
6862
7409
|
*
|
|
6863
|
-
* @type {string}
|
|
6864
|
-
* @memberof
|
|
7410
|
+
* @type {{ [key: string]: any; }}
|
|
7411
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6865
7412
|
*/
|
|
6866
|
-
'
|
|
7413
|
+
'highlight'?: { [key: string]: any; };
|
|
6867
7414
|
/**
|
|
6868
7415
|
*
|
|
6869
7416
|
* @type {string}
|
|
6870
|
-
* @memberof
|
|
7417
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6871
7418
|
*/
|
|
6872
|
-
'
|
|
7419
|
+
'id'?: string;
|
|
6873
7420
|
/**
|
|
6874
7421
|
*
|
|
6875
7422
|
* @type {string}
|
|
6876
|
-
* @memberof
|
|
7423
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6877
7424
|
*/
|
|
6878
|
-
'
|
|
7425
|
+
'image_url'?: string;
|
|
6879
7426
|
/**
|
|
6880
7427
|
*
|
|
6881
7428
|
* @type {string}
|
|
6882
|
-
* @memberof
|
|
6883
|
-
*/
|
|
6884
|
-
'id'?: string;
|
|
6885
|
-
/**
|
|
6886
|
-
*
|
|
6887
|
-
* @type {boolean}
|
|
6888
|
-
* @memberof MgDocumentTypesArticle
|
|
7429
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6889
7430
|
*/
|
|
6890
|
-
'
|
|
7431
|
+
'primary_text'?: string;
|
|
6891
7432
|
/**
|
|
6892
7433
|
*
|
|
6893
|
-
* @type {
|
|
6894
|
-
* @memberof
|
|
7434
|
+
* @type {number}
|
|
7435
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6895
7436
|
*/
|
|
6896
|
-
'
|
|
7437
|
+
'score'?: number;
|
|
6897
7438
|
/**
|
|
6898
7439
|
*
|
|
6899
7440
|
* @type {string}
|
|
6900
|
-
* @memberof
|
|
7441
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6901
7442
|
*/
|
|
6902
|
-
'
|
|
7443
|
+
'secondary_text'?: string;
|
|
6903
7444
|
/**
|
|
6904
7445
|
*
|
|
6905
7446
|
* @type {string}
|
|
6906
|
-
* @memberof
|
|
7447
|
+
* @memberof DataTypesWidgetSearchResult
|
|
6907
7448
|
*/
|
|
6908
|
-
'
|
|
7449
|
+
'tertiary_text'?: string;
|
|
6909
7450
|
}
|
|
6910
7451
|
/**
|
|
6911
7452
|
*
|
|
6912
7453
|
* @export
|
|
6913
|
-
* @interface
|
|
7454
|
+
* @interface DataTypesWordListWithWords
|
|
6914
7455
|
*/
|
|
6915
|
-
export interface
|
|
7456
|
+
export interface DataTypesWordListWithWords {
|
|
6916
7457
|
/**
|
|
6917
7458
|
*
|
|
6918
7459
|
* @type {string}
|
|
6919
|
-
* @memberof
|
|
7460
|
+
* @memberof DataTypesWordListWithWords
|
|
6920
7461
|
*/
|
|
6921
|
-
'
|
|
7462
|
+
'created_at'?: string;
|
|
6922
7463
|
/**
|
|
6923
7464
|
*
|
|
6924
7465
|
* @type {string}
|
|
6925
|
-
* @memberof
|
|
7466
|
+
* @memberof DataTypesWordListWithWords
|
|
6926
7467
|
*/
|
|
6927
|
-
'
|
|
7468
|
+
'lang'?: string;
|
|
6928
7469
|
/**
|
|
6929
7470
|
*
|
|
6930
|
-
* @type {
|
|
6931
|
-
* @memberof
|
|
7471
|
+
* @type {string}
|
|
7472
|
+
* @memberof DataTypesWordListWithWords
|
|
6932
7473
|
*/
|
|
6933
|
-
'
|
|
7474
|
+
'locale'?: string;
|
|
6934
7475
|
/**
|
|
6935
7476
|
*
|
|
6936
|
-
* @type {
|
|
6937
|
-
* @memberof
|
|
7477
|
+
* @type {string}
|
|
7478
|
+
* @memberof DataTypesWordListWithWords
|
|
6938
7479
|
*/
|
|
6939
|
-
'
|
|
7480
|
+
'type'?: string;
|
|
6940
7481
|
/**
|
|
6941
7482
|
*
|
|
6942
7483
|
* @type {string}
|
|
6943
|
-
* @memberof
|
|
7484
|
+
* @memberof DataTypesWordListWithWords
|
|
6944
7485
|
*/
|
|
6945
|
-
'
|
|
7486
|
+
'updated_at'?: string;
|
|
7487
|
+
/**
|
|
7488
|
+
*
|
|
7489
|
+
* @type {number}
|
|
7490
|
+
* @memberof DataTypesWordListWithWords
|
|
7491
|
+
*/
|
|
7492
|
+
'wordlistid'?: number;
|
|
7493
|
+
/**
|
|
7494
|
+
*
|
|
7495
|
+
* @type {Array<DataTypesWordWithStatus>}
|
|
7496
|
+
* @memberof DataTypesWordListWithWords
|
|
7497
|
+
*/
|
|
7498
|
+
'words'?: Array<DataTypesWordWithStatus>;
|
|
6946
7499
|
}
|
|
6947
7500
|
/**
|
|
6948
7501
|
*
|
|
6949
7502
|
* @export
|
|
6950
|
-
* @interface
|
|
7503
|
+
* @interface DataTypesWordListsResponse
|
|
6951
7504
|
*/
|
|
6952
|
-
export interface
|
|
7505
|
+
export interface DataTypesWordListsResponse {
|
|
6953
7506
|
/**
|
|
6954
7507
|
*
|
|
6955
|
-
* @type {
|
|
6956
|
-
* @memberof
|
|
7508
|
+
* @type {number}
|
|
7509
|
+
* @memberof DataTypesWordListsResponse
|
|
6957
7510
|
*/
|
|
6958
|
-
'
|
|
7511
|
+
'limit'?: number;
|
|
6959
7512
|
/**
|
|
6960
7513
|
*
|
|
6961
|
-
* @type {
|
|
6962
|
-
* @memberof
|
|
7514
|
+
* @type {number}
|
|
7515
|
+
* @memberof DataTypesWordListsResponse
|
|
6963
7516
|
*/
|
|
6964
|
-
'
|
|
7517
|
+
'page'?: number;
|
|
6965
7518
|
/**
|
|
6966
7519
|
*
|
|
6967
7520
|
* @type {number}
|
|
6968
|
-
* @memberof
|
|
7521
|
+
* @memberof DataTypesWordListsResponse
|
|
6969
7522
|
*/
|
|
6970
|
-
'
|
|
7523
|
+
'total'?: number;
|
|
7524
|
+
/**
|
|
7525
|
+
*
|
|
7526
|
+
* @type {number}
|
|
7527
|
+
* @memberof DataTypesWordListsResponse
|
|
7528
|
+
*/
|
|
7529
|
+
'total_pages'?: number;
|
|
7530
|
+
/**
|
|
7531
|
+
*
|
|
7532
|
+
* @type {Array<DataTypesWordListWithWords>}
|
|
7533
|
+
* @memberof DataTypesWordListsResponse
|
|
7534
|
+
*/
|
|
7535
|
+
'wordlists'?: Array<DataTypesWordListWithWords>;
|
|
6971
7536
|
}
|
|
6972
7537
|
/**
|
|
6973
7538
|
*
|
|
6974
7539
|
* @export
|
|
6975
|
-
* @interface
|
|
7540
|
+
* @interface DataTypesWordListsResponseWrapper
|
|
6976
7541
|
*/
|
|
6977
|
-
export interface
|
|
7542
|
+
export interface DataTypesWordListsResponseWrapper {
|
|
6978
7543
|
/**
|
|
6979
|
-
*
|
|
6980
|
-
* @type {
|
|
6981
|
-
* @memberof
|
|
7544
|
+
*
|
|
7545
|
+
* @type {DataTypesWordListsResponse}
|
|
7546
|
+
* @memberof DataTypesWordListsResponseWrapper
|
|
6982
7547
|
*/
|
|
6983
|
-
'
|
|
7548
|
+
'data'?: DataTypesWordListsResponse;
|
|
6984
7549
|
/**
|
|
6985
|
-
*
|
|
7550
|
+
*
|
|
6986
7551
|
* @type {string}
|
|
6987
|
-
* @memberof
|
|
7552
|
+
* @memberof DataTypesWordListsResponseWrapper
|
|
6988
7553
|
*/
|
|
6989
|
-
'
|
|
7554
|
+
'message'?: string;
|
|
6990
7555
|
/**
|
|
6991
|
-
*
|
|
6992
|
-
* @type {
|
|
6993
|
-
* @memberof
|
|
7556
|
+
*
|
|
7557
|
+
* @type {number}
|
|
7558
|
+
* @memberof DataTypesWordListsResponseWrapper
|
|
6994
7559
|
*/
|
|
6995
|
-
'
|
|
6996
|
-
|
|
6997
|
-
|
|
7560
|
+
'status'?: number;
|
|
7561
|
+
}
|
|
7562
|
+
/**
|
|
7563
|
+
*
|
|
7564
|
+
* @export
|
|
7565
|
+
* @interface DataTypesWordWithStatus
|
|
7566
|
+
*/
|
|
7567
|
+
export interface DataTypesWordWithStatus {
|
|
7568
|
+
/**
|
|
7569
|
+
*
|
|
7570
|
+
* @type {boolean}
|
|
7571
|
+
* @memberof DataTypesWordWithStatus
|
|
7572
|
+
*/
|
|
7573
|
+
'is_enabled'?: boolean;
|
|
7574
|
+
/**
|
|
7575
|
+
*
|
|
7576
|
+
* @type {string}
|
|
7577
|
+
* @memberof DataTypesWordWithStatus
|
|
7578
|
+
*/
|
|
7579
|
+
'word'?: string;
|
|
7580
|
+
/**
|
|
7581
|
+
*
|
|
7582
|
+
* @type {number}
|
|
7583
|
+
* @memberof DataTypesWordWithStatus
|
|
7584
|
+
*/
|
|
7585
|
+
'wordid'?: number;
|
|
7586
|
+
}
|
|
7587
|
+
/**
|
|
7588
|
+
*
|
|
7589
|
+
* @export
|
|
7590
|
+
* @interface MgDocumentTypesArticle
|
|
7591
|
+
*/
|
|
7592
|
+
export interface MgDocumentTypesArticle {
|
|
7593
|
+
/**
|
|
7594
|
+
*
|
|
7595
|
+
* @type {string}
|
|
7596
|
+
* @memberof MgDocumentTypesArticle
|
|
7597
|
+
*/
|
|
7598
|
+
'author'?: string;
|
|
7599
|
+
/**
|
|
7600
|
+
*
|
|
7601
|
+
* @type {string}
|
|
7602
|
+
* @memberof MgDocumentTypesArticle
|
|
7603
|
+
*/
|
|
7604
|
+
'content'?: string;
|
|
7605
|
+
/**
|
|
7606
|
+
*
|
|
7607
|
+
* @type {string}
|
|
7608
|
+
* @memberof MgDocumentTypesArticle
|
|
7609
|
+
*/
|
|
7610
|
+
'created_at'?: string;
|
|
7611
|
+
/**
|
|
7612
|
+
*
|
|
7613
|
+
* @type {string}
|
|
7614
|
+
* @memberof MgDocumentTypesArticle
|
|
7615
|
+
*/
|
|
7616
|
+
'id'?: string;
|
|
7617
|
+
/**
|
|
7618
|
+
*
|
|
7619
|
+
* @type {boolean}
|
|
7620
|
+
* @memberof MgDocumentTypesArticle
|
|
7621
|
+
*/
|
|
7622
|
+
'published'?: boolean;
|
|
7623
|
+
/**
|
|
7624
|
+
*
|
|
7625
|
+
* @type {Array<string>}
|
|
7626
|
+
* @memberof MgDocumentTypesArticle
|
|
7627
|
+
*/
|
|
7628
|
+
'tags'?: Array<string>;
|
|
7629
|
+
/**
|
|
7630
|
+
*
|
|
7631
|
+
* @type {string}
|
|
7632
|
+
* @memberof MgDocumentTypesArticle
|
|
7633
|
+
*/
|
|
7634
|
+
'title'?: string;
|
|
7635
|
+
/**
|
|
7636
|
+
*
|
|
7637
|
+
* @type {string}
|
|
7638
|
+
* @memberof MgDocumentTypesArticle
|
|
7639
|
+
*/
|
|
7640
|
+
'updated_at'?: string;
|
|
7641
|
+
}
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @export
|
|
7645
|
+
* @interface MgDocumentTypesCreateArticleRequestDto
|
|
7646
|
+
*/
|
|
7647
|
+
export interface MgDocumentTypesCreateArticleRequestDto {
|
|
7648
|
+
/**
|
|
7649
|
+
*
|
|
7650
|
+
* @type {string}
|
|
7651
|
+
* @memberof MgDocumentTypesCreateArticleRequestDto
|
|
7652
|
+
*/
|
|
7653
|
+
'author'?: string;
|
|
7654
|
+
/**
|
|
7655
|
+
*
|
|
7656
|
+
* @type {string}
|
|
7657
|
+
* @memberof MgDocumentTypesCreateArticleRequestDto
|
|
7658
|
+
*/
|
|
7659
|
+
'content'?: string;
|
|
7660
|
+
/**
|
|
7661
|
+
*
|
|
7662
|
+
* @type {boolean}
|
|
7663
|
+
* @memberof MgDocumentTypesCreateArticleRequestDto
|
|
7664
|
+
*/
|
|
7665
|
+
'published'?: boolean;
|
|
7666
|
+
/**
|
|
7667
|
+
*
|
|
7668
|
+
* @type {Array<string>}
|
|
7669
|
+
* @memberof MgDocumentTypesCreateArticleRequestDto
|
|
7670
|
+
*/
|
|
7671
|
+
'tags'?: Array<string>;
|
|
7672
|
+
/**
|
|
7673
|
+
*
|
|
7674
|
+
* @type {string}
|
|
7675
|
+
* @memberof MgDocumentTypesCreateArticleRequestDto
|
|
7676
|
+
*/
|
|
7677
|
+
'title'?: string;
|
|
7678
|
+
}
|
|
7679
|
+
/**
|
|
7680
|
+
*
|
|
7681
|
+
* @export
|
|
7682
|
+
* @interface MultipartFileHeader
|
|
7683
|
+
*/
|
|
7684
|
+
export interface MultipartFileHeader {
|
|
7685
|
+
/**
|
|
7686
|
+
*
|
|
7687
|
+
* @type {string}
|
|
7688
|
+
* @memberof MultipartFileHeader
|
|
7689
|
+
*/
|
|
7690
|
+
'filename'?: string;
|
|
7691
|
+
/**
|
|
7692
|
+
*
|
|
7693
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
7694
|
+
* @memberof MultipartFileHeader
|
|
7695
|
+
*/
|
|
7696
|
+
'header'?: { [key: string]: Array<string>; };
|
|
7697
|
+
/**
|
|
7698
|
+
*
|
|
7699
|
+
* @type {number}
|
|
7700
|
+
* @memberof MultipartFileHeader
|
|
7701
|
+
*/
|
|
7702
|
+
'size'?: number;
|
|
7703
|
+
}
|
|
7704
|
+
/**
|
|
7705
|
+
*
|
|
7706
|
+
* @export
|
|
7707
|
+
* @interface V1ConnectorsSourcesSourceidUploaddataPostRequest
|
|
7708
|
+
*/
|
|
7709
|
+
export interface V1ConnectorsSourcesSourceidUploaddataPostRequest {
|
|
7710
|
+
/**
|
|
7711
|
+
* Name
|
|
7712
|
+
* @type {string}
|
|
7713
|
+
* @memberof V1ConnectorsSourcesSourceidUploaddataPostRequest
|
|
7714
|
+
*/
|
|
7715
|
+
'Name': string;
|
|
7716
|
+
/**
|
|
7717
|
+
* Type
|
|
7718
|
+
* @type {string}
|
|
7719
|
+
* @memberof V1ConnectorsSourcesSourceidUploaddataPostRequest
|
|
7720
|
+
*/
|
|
7721
|
+
'Type': string;
|
|
7722
|
+
/**
|
|
7723
|
+
* Config [json_upload, csv_upload]
|
|
7724
|
+
* @type {string}
|
|
7725
|
+
* @memberof V1ConnectorsSourcesSourceidUploaddataPostRequest
|
|
7726
|
+
*/
|
|
7727
|
+
'Config': string;
|
|
7728
|
+
/**
|
|
7729
|
+
* File
|
|
6998
7730
|
* @type {File}
|
|
6999
7731
|
* @memberof V1ConnectorsSourcesSourceidUploaddataPostRequest
|
|
7000
7732
|
*/
|
|
@@ -9976,64 +10708,710 @@ export class CreditsApi extends BaseAPI {
|
|
|
9976
10708
|
* @param {string} [endDate] End date filter (RFC3339 format)
|
|
9977
10709
|
* @param {*} [options] Override http request option.
|
|
9978
10710
|
* @throws {RequiredError}
|
|
9979
|
-
* @memberof CreditsApi
|
|
10711
|
+
* @memberof CreditsApi
|
|
10712
|
+
*/
|
|
10713
|
+
public apiCreditsConsumptionHistoryGet(page?: number, limit?: number, endpoint?: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
|
|
10714
|
+
return CreditsApiFp(this.configuration).apiCreditsConsumptionHistoryGet(page, limit, endpoint, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
10715
|
+
}
|
|
10716
|
+
|
|
10717
|
+
/**
|
|
10718
|
+
* Get all active credit plans available for purchase with detailed pricing and features
|
|
10719
|
+
* @summary Get available credit plans
|
|
10720
|
+
* @param {*} [options] Override http request option.
|
|
10721
|
+
* @throws {RequiredError}
|
|
10722
|
+
* @memberof CreditsApi
|
|
10723
|
+
*/
|
|
10724
|
+
public apiCreditsPlansGet(options?: RawAxiosRequestConfig) {
|
|
10725
|
+
return CreditsApiFp(this.configuration).apiCreditsPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
10726
|
+
}
|
|
10727
|
+
|
|
10728
|
+
/**
|
|
10729
|
+
* Purchase credits using a credit plan with payment processing
|
|
10730
|
+
* @summary Purchase credits
|
|
10731
|
+
* @param {DataTypesPurchaseCreditsRequest} request Purchase request with payment details
|
|
10732
|
+
* @param {*} [options] Override http request option.
|
|
10733
|
+
* @throws {RequiredError}
|
|
10734
|
+
* @memberof CreditsApi
|
|
10735
|
+
*/
|
|
10736
|
+
public apiCreditsPurchasePost(request: DataTypesPurchaseCreditsRequest, options?: RawAxiosRequestConfig) {
|
|
10737
|
+
return CreditsApiFp(this.configuration).apiCreditsPurchasePost(request, options).then((request) => request(this.axios, this.basePath));
|
|
10738
|
+
}
|
|
10739
|
+
|
|
10740
|
+
/**
|
|
10741
|
+
* Get paginated credit transaction history for the authenticated organization
|
|
10742
|
+
* @summary Get organization credit transactions
|
|
10743
|
+
* @param {number} [page] Page number
|
|
10744
|
+
* @param {number} [limit] Items per page
|
|
10745
|
+
* @param {ApiCreditsTransactionsGetTypeEnum} [type] Filter by transaction type
|
|
10746
|
+
* @param {string} [startDate] Start date filter (RFC3339 format)
|
|
10747
|
+
* @param {string} [endDate] End date filter (RFC3339 format)
|
|
10748
|
+
* @param {*} [options] Override http request option.
|
|
10749
|
+
* @throws {RequiredError}
|
|
10750
|
+
* @memberof CreditsApi
|
|
10751
|
+
*/
|
|
10752
|
+
public apiCreditsTransactionsGet(page?: number, limit?: number, type?: ApiCreditsTransactionsGetTypeEnum, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
|
|
10753
|
+
return CreditsApiFp(this.configuration).apiCreditsTransactionsGet(page, limit, type, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
10754
|
+
}
|
|
10755
|
+
}
|
|
10756
|
+
|
|
10757
|
+
/**
|
|
10758
|
+
* @export
|
|
10759
|
+
*/
|
|
10760
|
+
export const ApiCreditsTransactionsGetTypeEnum = {
|
|
10761
|
+
Purchase: 'purchase',
|
|
10762
|
+
Consume: 'consume',
|
|
10763
|
+
Refund: 'refund',
|
|
10764
|
+
Bonus: 'bonus',
|
|
10765
|
+
Expire: 'expire',
|
|
10766
|
+
Manual: 'manual'
|
|
10767
|
+
} as const;
|
|
10768
|
+
export type ApiCreditsTransactionsGetTypeEnum = typeof ApiCreditsTransactionsGetTypeEnum[keyof typeof ApiCreditsTransactionsGetTypeEnum];
|
|
10769
|
+
|
|
10770
|
+
|
|
10771
|
+
/**
|
|
10772
|
+
* CustomStopwordsApi - axios parameter creator
|
|
10773
|
+
* @export
|
|
10774
|
+
*/
|
|
10775
|
+
export const CustomStopwordsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10776
|
+
return {
|
|
10777
|
+
/**
|
|
10778
|
+
* Deletes a custom word list (soft delete)
|
|
10779
|
+
* @summary Delete custom word list
|
|
10780
|
+
* @param {string} xStoreID X-Store ID
|
|
10781
|
+
* @param {number} customWordListID Custom Word List ID
|
|
10782
|
+
* @param {*} [options] Override http request option.
|
|
10783
|
+
* @throws {RequiredError}
|
|
10784
|
+
*/
|
|
10785
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete: async (xStoreID: string, customWordListID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10786
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
10787
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete', 'xStoreID', xStoreID)
|
|
10788
|
+
// verify required parameter 'customWordListID' is not null or undefined
|
|
10789
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete', 'customWordListID', customWordListID)
|
|
10790
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists/{customWordListID}`
|
|
10791
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
10792
|
+
.replace(`{${"customWordListID"}}`, encodeURIComponent(String(customWordListID)));
|
|
10793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10794
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10795
|
+
let baseOptions;
|
|
10796
|
+
if (configuration) {
|
|
10797
|
+
baseOptions = configuration.baseOptions;
|
|
10798
|
+
}
|
|
10799
|
+
|
|
10800
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10801
|
+
const localVarHeaderParameter = {} as any;
|
|
10802
|
+
const localVarQueryParameter = {} as any;
|
|
10803
|
+
|
|
10804
|
+
// authentication BearerAuth required
|
|
10805
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
10806
|
+
|
|
10807
|
+
|
|
10808
|
+
|
|
10809
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10810
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10811
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10812
|
+
|
|
10813
|
+
return {
|
|
10814
|
+
url: toPathString(localVarUrlObj),
|
|
10815
|
+
options: localVarRequestOptions,
|
|
10816
|
+
};
|
|
10817
|
+
},
|
|
10818
|
+
/**
|
|
10819
|
+
* Fetches a specific custom word list by ID
|
|
10820
|
+
* @summary Get custom word list by ID
|
|
10821
|
+
* @param {string} xStoreID X-Store ID
|
|
10822
|
+
* @param {number} customWordListID Custom Word List ID
|
|
10823
|
+
* @param {*} [options] Override http request option.
|
|
10824
|
+
* @throws {RequiredError}
|
|
10825
|
+
*/
|
|
10826
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet: async (xStoreID: string, customWordListID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10827
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
10828
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet', 'xStoreID', xStoreID)
|
|
10829
|
+
// verify required parameter 'customWordListID' is not null or undefined
|
|
10830
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet', 'customWordListID', customWordListID)
|
|
10831
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists/{customWordListID}`
|
|
10832
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
10833
|
+
.replace(`{${"customWordListID"}}`, encodeURIComponent(String(customWordListID)));
|
|
10834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10836
|
+
let baseOptions;
|
|
10837
|
+
if (configuration) {
|
|
10838
|
+
baseOptions = configuration.baseOptions;
|
|
10839
|
+
}
|
|
10840
|
+
|
|
10841
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10842
|
+
const localVarHeaderParameter = {} as any;
|
|
10843
|
+
const localVarQueryParameter = {} as any;
|
|
10844
|
+
|
|
10845
|
+
// authentication BearerAuth required
|
|
10846
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
10847
|
+
|
|
10848
|
+
|
|
10849
|
+
|
|
10850
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10851
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10852
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10853
|
+
|
|
10854
|
+
return {
|
|
10855
|
+
url: toPathString(localVarUrlObj),
|
|
10856
|
+
options: localVarRequestOptions,
|
|
10857
|
+
};
|
|
10858
|
+
},
|
|
10859
|
+
/**
|
|
10860
|
+
* Updates a custom word list
|
|
10861
|
+
* @summary Update custom word list
|
|
10862
|
+
* @param {string} xStoreID X-Store ID
|
|
10863
|
+
* @param {number} customWordListID Custom Word List ID
|
|
10864
|
+
* @param {DataTypesUpdateCustomWordListRequest} body Update request
|
|
10865
|
+
* @param {*} [options] Override http request option.
|
|
10866
|
+
* @throws {RequiredError}
|
|
10867
|
+
*/
|
|
10868
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut: async (xStoreID: string, customWordListID: number, body: DataTypesUpdateCustomWordListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10869
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
10870
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut', 'xStoreID', xStoreID)
|
|
10871
|
+
// verify required parameter 'customWordListID' is not null or undefined
|
|
10872
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut', 'customWordListID', customWordListID)
|
|
10873
|
+
// verify required parameter 'body' is not null or undefined
|
|
10874
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut', 'body', body)
|
|
10875
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists/{customWordListID}`
|
|
10876
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
10877
|
+
.replace(`{${"customWordListID"}}`, encodeURIComponent(String(customWordListID)));
|
|
10878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10880
|
+
let baseOptions;
|
|
10881
|
+
if (configuration) {
|
|
10882
|
+
baseOptions = configuration.baseOptions;
|
|
10883
|
+
}
|
|
10884
|
+
|
|
10885
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
10886
|
+
const localVarHeaderParameter = {} as any;
|
|
10887
|
+
const localVarQueryParameter = {} as any;
|
|
10888
|
+
|
|
10889
|
+
// authentication BearerAuth required
|
|
10890
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
10891
|
+
|
|
10892
|
+
|
|
10893
|
+
|
|
10894
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10895
|
+
|
|
10896
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10898
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10899
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
10900
|
+
|
|
10901
|
+
return {
|
|
10902
|
+
url: toPathString(localVarUrlObj),
|
|
10903
|
+
options: localVarRequestOptions,
|
|
10904
|
+
};
|
|
10905
|
+
},
|
|
10906
|
+
/**
|
|
10907
|
+
* Removes words from a custom word list
|
|
10908
|
+
* @summary Remove words from custom word list
|
|
10909
|
+
* @param {string} xStoreID X-Store ID
|
|
10910
|
+
* @param {number} customWordListID Custom Word List ID
|
|
10911
|
+
* @param {DataTypesRemoveWordsFromCustomListRequest} body Remove words request
|
|
10912
|
+
* @param {*} [options] Override http request option.
|
|
10913
|
+
* @throws {RequiredError}
|
|
10914
|
+
*/
|
|
10915
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete: async (xStoreID: string, customWordListID: number, body: DataTypesRemoveWordsFromCustomListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10916
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
10917
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete', 'xStoreID', xStoreID)
|
|
10918
|
+
// verify required parameter 'customWordListID' is not null or undefined
|
|
10919
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete', 'customWordListID', customWordListID)
|
|
10920
|
+
// verify required parameter 'body' is not null or undefined
|
|
10921
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete', 'body', body)
|
|
10922
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists/{customWordListID}/words`
|
|
10923
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
10924
|
+
.replace(`{${"customWordListID"}}`, encodeURIComponent(String(customWordListID)));
|
|
10925
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10926
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10927
|
+
let baseOptions;
|
|
10928
|
+
if (configuration) {
|
|
10929
|
+
baseOptions = configuration.baseOptions;
|
|
10930
|
+
}
|
|
10931
|
+
|
|
10932
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10933
|
+
const localVarHeaderParameter = {} as any;
|
|
10934
|
+
const localVarQueryParameter = {} as any;
|
|
10935
|
+
|
|
10936
|
+
// authentication BearerAuth required
|
|
10937
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
10938
|
+
|
|
10939
|
+
|
|
10940
|
+
|
|
10941
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10942
|
+
|
|
10943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10945
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10946
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
10947
|
+
|
|
10948
|
+
return {
|
|
10949
|
+
url: toPathString(localVarUrlObj),
|
|
10950
|
+
options: localVarRequestOptions,
|
|
10951
|
+
};
|
|
10952
|
+
},
|
|
10953
|
+
/**
|
|
10954
|
+
* Adds words to an existing custom word list
|
|
10955
|
+
* @summary Add words to custom word list
|
|
10956
|
+
* @param {string} xStoreID X-Store ID
|
|
10957
|
+
* @param {number} customWordListID Custom Word List ID
|
|
10958
|
+
* @param {DataTypesAddWordsToCustomListRequest} body Add words request
|
|
10959
|
+
* @param {*} [options] Override http request option.
|
|
10960
|
+
* @throws {RequiredError}
|
|
10961
|
+
*/
|
|
10962
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost: async (xStoreID: string, customWordListID: number, body: DataTypesAddWordsToCustomListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10963
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
10964
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost', 'xStoreID', xStoreID)
|
|
10965
|
+
// verify required parameter 'customWordListID' is not null or undefined
|
|
10966
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost', 'customWordListID', customWordListID)
|
|
10967
|
+
// verify required parameter 'body' is not null or undefined
|
|
10968
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost', 'body', body)
|
|
10969
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists/{customWordListID}/words`
|
|
10970
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
10971
|
+
.replace(`{${"customWordListID"}}`, encodeURIComponent(String(customWordListID)));
|
|
10972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10973
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10974
|
+
let baseOptions;
|
|
10975
|
+
if (configuration) {
|
|
10976
|
+
baseOptions = configuration.baseOptions;
|
|
10977
|
+
}
|
|
10978
|
+
|
|
10979
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10980
|
+
const localVarHeaderParameter = {} as any;
|
|
10981
|
+
const localVarQueryParameter = {} as any;
|
|
10982
|
+
|
|
10983
|
+
// authentication BearerAuth required
|
|
10984
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
10985
|
+
|
|
10986
|
+
|
|
10987
|
+
|
|
10988
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10989
|
+
|
|
10990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10992
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10993
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
10994
|
+
|
|
10995
|
+
return {
|
|
10996
|
+
url: toPathString(localVarUrlObj),
|
|
10997
|
+
options: localVarRequestOptions,
|
|
10998
|
+
};
|
|
10999
|
+
},
|
|
11000
|
+
/**
|
|
11001
|
+
* Fetches custom word lists for a store with pagination
|
|
11002
|
+
* @summary Get custom word lists
|
|
11003
|
+
* @param {string} xStoreID X-Store ID
|
|
11004
|
+
* @param {string} [lang] Language filter
|
|
11005
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
11006
|
+
* @param {number} [page] Page number (default: 1)
|
|
11007
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
11008
|
+
* @param {*} [options] Override http request option.
|
|
11009
|
+
* @throws {RequiredError}
|
|
11010
|
+
*/
|
|
11011
|
+
adminStoresXStoreIDStopwordsCustomWordlistsGet: async (xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11012
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
11013
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsGet', 'xStoreID', xStoreID)
|
|
11014
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists`
|
|
11015
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
11016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11018
|
+
let baseOptions;
|
|
11019
|
+
if (configuration) {
|
|
11020
|
+
baseOptions = configuration.baseOptions;
|
|
11021
|
+
}
|
|
11022
|
+
|
|
11023
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11024
|
+
const localVarHeaderParameter = {} as any;
|
|
11025
|
+
const localVarQueryParameter = {} as any;
|
|
11026
|
+
|
|
11027
|
+
// authentication BearerAuth required
|
|
11028
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
11029
|
+
|
|
11030
|
+
if (lang !== undefined) {
|
|
11031
|
+
localVarQueryParameter['lang'] = lang;
|
|
11032
|
+
}
|
|
11033
|
+
|
|
11034
|
+
if (type !== undefined) {
|
|
11035
|
+
localVarQueryParameter['type'] = type;
|
|
11036
|
+
}
|
|
11037
|
+
|
|
11038
|
+
if (page !== undefined) {
|
|
11039
|
+
localVarQueryParameter['page'] = page;
|
|
11040
|
+
}
|
|
11041
|
+
|
|
11042
|
+
if (limit !== undefined) {
|
|
11043
|
+
localVarQueryParameter['limit'] = limit;
|
|
11044
|
+
}
|
|
11045
|
+
|
|
11046
|
+
|
|
11047
|
+
|
|
11048
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11049
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11050
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11051
|
+
|
|
11052
|
+
return {
|
|
11053
|
+
url: toPathString(localVarUrlObj),
|
|
11054
|
+
options: localVarRequestOptions,
|
|
11055
|
+
};
|
|
11056
|
+
},
|
|
11057
|
+
/**
|
|
11058
|
+
* Creates a new custom word list for a store
|
|
11059
|
+
* @summary Create custom word list
|
|
11060
|
+
* @param {string} xStoreID X-Store ID
|
|
11061
|
+
* @param {DataTypesCreateCustomWordListRequest} body Custom word list creation request
|
|
11062
|
+
* @param {*} [options] Override http request option.
|
|
11063
|
+
* @throws {RequiredError}
|
|
11064
|
+
*/
|
|
11065
|
+
adminStoresXStoreIDStopwordsCustomWordlistsPost: async (xStoreID: string, body: DataTypesCreateCustomWordListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11066
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
11067
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsPost', 'xStoreID', xStoreID)
|
|
11068
|
+
// verify required parameter 'body' is not null or undefined
|
|
11069
|
+
assertParamExists('adminStoresXStoreIDStopwordsCustomWordlistsPost', 'body', body)
|
|
11070
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/custom-wordlists`
|
|
11071
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
11072
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11073
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11074
|
+
let baseOptions;
|
|
11075
|
+
if (configuration) {
|
|
11076
|
+
baseOptions = configuration.baseOptions;
|
|
11077
|
+
}
|
|
11078
|
+
|
|
11079
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11080
|
+
const localVarHeaderParameter = {} as any;
|
|
11081
|
+
const localVarQueryParameter = {} as any;
|
|
11082
|
+
|
|
11083
|
+
// authentication BearerAuth required
|
|
11084
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
11085
|
+
|
|
11086
|
+
|
|
11087
|
+
|
|
11088
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11089
|
+
|
|
11090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
11094
|
+
|
|
11095
|
+
return {
|
|
11096
|
+
url: toPathString(localVarUrlObj),
|
|
11097
|
+
options: localVarRequestOptions,
|
|
11098
|
+
};
|
|
11099
|
+
},
|
|
11100
|
+
}
|
|
11101
|
+
};
|
|
11102
|
+
|
|
11103
|
+
/**
|
|
11104
|
+
* CustomStopwordsApi - functional programming interface
|
|
11105
|
+
* @export
|
|
11106
|
+
*/
|
|
11107
|
+
export const CustomStopwordsApiFp = function(configuration?: Configuration) {
|
|
11108
|
+
const localVarAxiosParamCreator = CustomStopwordsApiAxiosParamCreator(configuration)
|
|
11109
|
+
return {
|
|
11110
|
+
/**
|
|
11111
|
+
* Deletes a custom word list (soft delete)
|
|
11112
|
+
* @summary Delete custom word list
|
|
11113
|
+
* @param {string} xStoreID X-Store ID
|
|
11114
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11115
|
+
* @param {*} [options] Override http request option.
|
|
11116
|
+
* @throws {RequiredError}
|
|
11117
|
+
*/
|
|
11118
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
11119
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID, customWordListID, options);
|
|
11120
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11121
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete']?.[localVarOperationServerIndex]?.url;
|
|
11122
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11123
|
+
},
|
|
11124
|
+
/**
|
|
11125
|
+
* Fetches a specific custom word list by ID
|
|
11126
|
+
* @summary Get custom word list by ID
|
|
11127
|
+
* @param {string} xStoreID X-Store ID
|
|
11128
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11129
|
+
* @param {*} [options] Override http request option.
|
|
11130
|
+
* @throws {RequiredError}
|
|
11131
|
+
*/
|
|
11132
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomWordListResponseWrapper>> {
|
|
11133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID, customWordListID, options);
|
|
11134
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11135
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet']?.[localVarOperationServerIndex]?.url;
|
|
11136
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11137
|
+
},
|
|
11138
|
+
/**
|
|
11139
|
+
* Updates a custom word list
|
|
11140
|
+
* @summary Update custom word list
|
|
11141
|
+
* @param {string} xStoreID X-Store ID
|
|
11142
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11143
|
+
* @param {DataTypesUpdateCustomWordListRequest} body Update request
|
|
11144
|
+
* @param {*} [options] Override http request option.
|
|
11145
|
+
* @throws {RequiredError}
|
|
11146
|
+
*/
|
|
11147
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID: string, customWordListID: number, body: DataTypesUpdateCustomWordListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
11148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID, customWordListID, body, options);
|
|
11149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11150
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut']?.[localVarOperationServerIndex]?.url;
|
|
11151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11152
|
+
},
|
|
11153
|
+
/**
|
|
11154
|
+
* Removes words from a custom word list
|
|
11155
|
+
* @summary Remove words from custom word list
|
|
11156
|
+
* @param {string} xStoreID X-Store ID
|
|
11157
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11158
|
+
* @param {DataTypesRemoveWordsFromCustomListRequest} body Remove words request
|
|
11159
|
+
* @param {*} [options] Override http request option.
|
|
11160
|
+
* @throws {RequiredError}
|
|
11161
|
+
*/
|
|
11162
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID: string, customWordListID: number, body: DataTypesRemoveWordsFromCustomListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
11163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID, customWordListID, body, options);
|
|
11164
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11165
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete']?.[localVarOperationServerIndex]?.url;
|
|
11166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11167
|
+
},
|
|
11168
|
+
/**
|
|
11169
|
+
* Adds words to an existing custom word list
|
|
11170
|
+
* @summary Add words to custom word list
|
|
11171
|
+
* @param {string} xStoreID X-Store ID
|
|
11172
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11173
|
+
* @param {DataTypesAddWordsToCustomListRequest} body Add words request
|
|
11174
|
+
* @param {*} [options] Override http request option.
|
|
11175
|
+
* @throws {RequiredError}
|
|
11176
|
+
*/
|
|
11177
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID: string, customWordListID: number, body: DataTypesAddWordsToCustomListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
11178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID, customWordListID, body, options);
|
|
11179
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11180
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost']?.[localVarOperationServerIndex]?.url;
|
|
11181
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11182
|
+
},
|
|
11183
|
+
/**
|
|
11184
|
+
* Fetches custom word lists for a store with pagination
|
|
11185
|
+
* @summary Get custom word lists
|
|
11186
|
+
* @param {string} xStoreID X-Store ID
|
|
11187
|
+
* @param {string} [lang] Language filter
|
|
11188
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
11189
|
+
* @param {number} [page] Page number (default: 1)
|
|
11190
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
11191
|
+
* @param {*} [options] Override http request option.
|
|
11192
|
+
* @throws {RequiredError}
|
|
11193
|
+
*/
|
|
11194
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomWordListsResponseWrapper>> {
|
|
11195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID, lang, type, page, limit, options);
|
|
11196
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11197
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsGet']?.[localVarOperationServerIndex]?.url;
|
|
11198
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11199
|
+
},
|
|
11200
|
+
/**
|
|
11201
|
+
* Creates a new custom word list for a store
|
|
11202
|
+
* @summary Create custom word list
|
|
11203
|
+
* @param {string} xStoreID X-Store ID
|
|
11204
|
+
* @param {DataTypesCreateCustomWordListRequest} body Custom word list creation request
|
|
11205
|
+
* @param {*} [options] Override http request option.
|
|
11206
|
+
* @throws {RequiredError}
|
|
11207
|
+
*/
|
|
11208
|
+
async adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID: string, body: DataTypesCreateCustomWordListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomWordListResponseWrapper>> {
|
|
11209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID, body, options);
|
|
11210
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11211
|
+
const localVarOperationServerBasePath = operationServerMap['CustomStopwordsApi.adminStoresXStoreIDStopwordsCustomWordlistsPost']?.[localVarOperationServerIndex]?.url;
|
|
11212
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11213
|
+
},
|
|
11214
|
+
}
|
|
11215
|
+
};
|
|
11216
|
+
|
|
11217
|
+
/**
|
|
11218
|
+
* CustomStopwordsApi - factory interface
|
|
11219
|
+
* @export
|
|
11220
|
+
*/
|
|
11221
|
+
export const CustomStopwordsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11222
|
+
const localVarFp = CustomStopwordsApiFp(configuration)
|
|
11223
|
+
return {
|
|
11224
|
+
/**
|
|
11225
|
+
* Deletes a custom word list (soft delete)
|
|
11226
|
+
* @summary Delete custom word list
|
|
11227
|
+
* @param {string} xStoreID X-Store ID
|
|
11228
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11229
|
+
* @param {*} [options] Override http request option.
|
|
11230
|
+
* @throws {RequiredError}
|
|
11231
|
+
*/
|
|
11232
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
11233
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID, customWordListID, options).then((request) => request(axios, basePath));
|
|
11234
|
+
},
|
|
11235
|
+
/**
|
|
11236
|
+
* Fetches a specific custom word list by ID
|
|
11237
|
+
* @summary Get custom word list by ID
|
|
11238
|
+
* @param {string} xStoreID X-Store ID
|
|
11239
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11240
|
+
* @param {*} [options] Override http request option.
|
|
11241
|
+
* @throws {RequiredError}
|
|
11242
|
+
*/
|
|
11243
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomWordListResponseWrapper> {
|
|
11244
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID, customWordListID, options).then((request) => request(axios, basePath));
|
|
11245
|
+
},
|
|
11246
|
+
/**
|
|
11247
|
+
* Updates a custom word list
|
|
11248
|
+
* @summary Update custom word list
|
|
11249
|
+
* @param {string} xStoreID X-Store ID
|
|
11250
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11251
|
+
* @param {DataTypesUpdateCustomWordListRequest} body Update request
|
|
11252
|
+
* @param {*} [options] Override http request option.
|
|
11253
|
+
* @throws {RequiredError}
|
|
11254
|
+
*/
|
|
11255
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID: string, customWordListID: number, body: DataTypesUpdateCustomWordListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
11256
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID, customWordListID, body, options).then((request) => request(axios, basePath));
|
|
11257
|
+
},
|
|
11258
|
+
/**
|
|
11259
|
+
* Removes words from a custom word list
|
|
11260
|
+
* @summary Remove words from custom word list
|
|
11261
|
+
* @param {string} xStoreID X-Store ID
|
|
11262
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11263
|
+
* @param {DataTypesRemoveWordsFromCustomListRequest} body Remove words request
|
|
11264
|
+
* @param {*} [options] Override http request option.
|
|
11265
|
+
* @throws {RequiredError}
|
|
11266
|
+
*/
|
|
11267
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID: string, customWordListID: number, body: DataTypesRemoveWordsFromCustomListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
11268
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID, customWordListID, body, options).then((request) => request(axios, basePath));
|
|
11269
|
+
},
|
|
11270
|
+
/**
|
|
11271
|
+
* Adds words to an existing custom word list
|
|
11272
|
+
* @summary Add words to custom word list
|
|
11273
|
+
* @param {string} xStoreID X-Store ID
|
|
11274
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11275
|
+
* @param {DataTypesAddWordsToCustomListRequest} body Add words request
|
|
11276
|
+
* @param {*} [options] Override http request option.
|
|
11277
|
+
* @throws {RequiredError}
|
|
11278
|
+
*/
|
|
11279
|
+
adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID: string, customWordListID: number, body: DataTypesAddWordsToCustomListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
11280
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID, customWordListID, body, options).then((request) => request(axios, basePath));
|
|
11281
|
+
},
|
|
11282
|
+
/**
|
|
11283
|
+
* Fetches custom word lists for a store with pagination
|
|
11284
|
+
* @summary Get custom word lists
|
|
11285
|
+
* @param {string} xStoreID X-Store ID
|
|
11286
|
+
* @param {string} [lang] Language filter
|
|
11287
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
11288
|
+
* @param {number} [page] Page number (default: 1)
|
|
11289
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
11290
|
+
* @param {*} [options] Override http request option.
|
|
11291
|
+
* @throws {RequiredError}
|
|
11292
|
+
*/
|
|
11293
|
+
adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomWordListsResponseWrapper> {
|
|
11294
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(axios, basePath));
|
|
11295
|
+
},
|
|
11296
|
+
/**
|
|
11297
|
+
* Creates a new custom word list for a store
|
|
11298
|
+
* @summary Create custom word list
|
|
11299
|
+
* @param {string} xStoreID X-Store ID
|
|
11300
|
+
* @param {DataTypesCreateCustomWordListRequest} body Custom word list creation request
|
|
11301
|
+
* @param {*} [options] Override http request option.
|
|
11302
|
+
* @throws {RequiredError}
|
|
11303
|
+
*/
|
|
11304
|
+
adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID: string, body: DataTypesCreateCustomWordListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomWordListResponseWrapper> {
|
|
11305
|
+
return localVarFp.adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID, body, options).then((request) => request(axios, basePath));
|
|
11306
|
+
},
|
|
11307
|
+
};
|
|
11308
|
+
};
|
|
11309
|
+
|
|
11310
|
+
/**
|
|
11311
|
+
* CustomStopwordsApi - object-oriented interface
|
|
11312
|
+
* @export
|
|
11313
|
+
* @class CustomStopwordsApi
|
|
11314
|
+
* @extends {BaseAPI}
|
|
11315
|
+
*/
|
|
11316
|
+
export class CustomStopwordsApi extends BaseAPI {
|
|
11317
|
+
/**
|
|
11318
|
+
* Deletes a custom word list (soft delete)
|
|
11319
|
+
* @summary Delete custom word list
|
|
11320
|
+
* @param {string} xStoreID X-Store ID
|
|
11321
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11322
|
+
* @param {*} [options] Override http request option.
|
|
11323
|
+
* @throws {RequiredError}
|
|
11324
|
+
* @memberof CustomStopwordsApi
|
|
11325
|
+
*/
|
|
11326
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig) {
|
|
11327
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDDelete(xStoreID, customWordListID, options).then((request) => request(this.axios, this.basePath));
|
|
11328
|
+
}
|
|
11329
|
+
|
|
11330
|
+
/**
|
|
11331
|
+
* Fetches a specific custom word list by ID
|
|
11332
|
+
* @summary Get custom word list by ID
|
|
11333
|
+
* @param {string} xStoreID X-Store ID
|
|
11334
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11335
|
+
* @param {*} [options] Override http request option.
|
|
11336
|
+
* @throws {RequiredError}
|
|
11337
|
+
* @memberof CustomStopwordsApi
|
|
11338
|
+
*/
|
|
11339
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID: string, customWordListID: number, options?: RawAxiosRequestConfig) {
|
|
11340
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDGet(xStoreID, customWordListID, options).then((request) => request(this.axios, this.basePath));
|
|
11341
|
+
}
|
|
11342
|
+
|
|
11343
|
+
/**
|
|
11344
|
+
* Updates a custom word list
|
|
11345
|
+
* @summary Update custom word list
|
|
11346
|
+
* @param {string} xStoreID X-Store ID
|
|
11347
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11348
|
+
* @param {DataTypesUpdateCustomWordListRequest} body Update request
|
|
11349
|
+
* @param {*} [options] Override http request option.
|
|
11350
|
+
* @throws {RequiredError}
|
|
11351
|
+
* @memberof CustomStopwordsApi
|
|
11352
|
+
*/
|
|
11353
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID: string, customWordListID: number, body: DataTypesUpdateCustomWordListRequest, options?: RawAxiosRequestConfig) {
|
|
11354
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDPut(xStoreID, customWordListID, body, options).then((request) => request(this.axios, this.basePath));
|
|
11355
|
+
}
|
|
11356
|
+
|
|
11357
|
+
/**
|
|
11358
|
+
* Removes words from a custom word list
|
|
11359
|
+
* @summary Remove words from custom word list
|
|
11360
|
+
* @param {string} xStoreID X-Store ID
|
|
11361
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11362
|
+
* @param {DataTypesRemoveWordsFromCustomListRequest} body Remove words request
|
|
11363
|
+
* @param {*} [options] Override http request option.
|
|
11364
|
+
* @throws {RequiredError}
|
|
11365
|
+
* @memberof CustomStopwordsApi
|
|
9980
11366
|
*/
|
|
9981
|
-
public
|
|
9982
|
-
return
|
|
11367
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID: string, customWordListID: number, body: DataTypesRemoveWordsFromCustomListRequest, options?: RawAxiosRequestConfig) {
|
|
11368
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsDelete(xStoreID, customWordListID, body, options).then((request) => request(this.axios, this.basePath));
|
|
9983
11369
|
}
|
|
9984
11370
|
|
|
9985
11371
|
/**
|
|
9986
|
-
*
|
|
9987
|
-
* @summary
|
|
11372
|
+
* Adds words to an existing custom word list
|
|
11373
|
+
* @summary Add words to custom word list
|
|
11374
|
+
* @param {string} xStoreID X-Store ID
|
|
11375
|
+
* @param {number} customWordListID Custom Word List ID
|
|
11376
|
+
* @param {DataTypesAddWordsToCustomListRequest} body Add words request
|
|
9988
11377
|
* @param {*} [options] Override http request option.
|
|
9989
11378
|
* @throws {RequiredError}
|
|
9990
|
-
* @memberof
|
|
11379
|
+
* @memberof CustomStopwordsApi
|
|
9991
11380
|
*/
|
|
9992
|
-
public
|
|
9993
|
-
return
|
|
11381
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID: string, customWordListID: number, body: DataTypesAddWordsToCustomListRequest, options?: RawAxiosRequestConfig) {
|
|
11382
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsCustomWordListIDWordsPost(xStoreID, customWordListID, body, options).then((request) => request(this.axios, this.basePath));
|
|
9994
11383
|
}
|
|
9995
11384
|
|
|
9996
11385
|
/**
|
|
9997
|
-
*
|
|
9998
|
-
* @summary
|
|
9999
|
-
* @param {
|
|
11386
|
+
* Fetches custom word lists for a store with pagination
|
|
11387
|
+
* @summary Get custom word lists
|
|
11388
|
+
* @param {string} xStoreID X-Store ID
|
|
11389
|
+
* @param {string} [lang] Language filter
|
|
11390
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
11391
|
+
* @param {number} [page] Page number (default: 1)
|
|
11392
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
10000
11393
|
* @param {*} [options] Override http request option.
|
|
10001
11394
|
* @throws {RequiredError}
|
|
10002
|
-
* @memberof
|
|
11395
|
+
* @memberof CustomStopwordsApi
|
|
10003
11396
|
*/
|
|
10004
|
-
public
|
|
10005
|
-
return
|
|
11397
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
11398
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
10006
11399
|
}
|
|
10007
11400
|
|
|
10008
11401
|
/**
|
|
10009
|
-
*
|
|
10010
|
-
* @summary
|
|
10011
|
-
* @param {
|
|
10012
|
-
* @param {
|
|
10013
|
-
* @param {ApiCreditsTransactionsGetTypeEnum} [type] Filter by transaction type
|
|
10014
|
-
* @param {string} [startDate] Start date filter (RFC3339 format)
|
|
10015
|
-
* @param {string} [endDate] End date filter (RFC3339 format)
|
|
11402
|
+
* Creates a new custom word list for a store
|
|
11403
|
+
* @summary Create custom word list
|
|
11404
|
+
* @param {string} xStoreID X-Store ID
|
|
11405
|
+
* @param {DataTypesCreateCustomWordListRequest} body Custom word list creation request
|
|
10016
11406
|
* @param {*} [options] Override http request option.
|
|
10017
11407
|
* @throws {RequiredError}
|
|
10018
|
-
* @memberof
|
|
11408
|
+
* @memberof CustomStopwordsApi
|
|
10019
11409
|
*/
|
|
10020
|
-
public
|
|
10021
|
-
return
|
|
11410
|
+
public adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID: string, body: DataTypesCreateCustomWordListRequest, options?: RawAxiosRequestConfig) {
|
|
11411
|
+
return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
|
|
10022
11412
|
}
|
|
10023
11413
|
}
|
|
10024
11414
|
|
|
10025
|
-
/**
|
|
10026
|
-
* @export
|
|
10027
|
-
*/
|
|
10028
|
-
export const ApiCreditsTransactionsGetTypeEnum = {
|
|
10029
|
-
Purchase: 'purchase',
|
|
10030
|
-
Consume: 'consume',
|
|
10031
|
-
Refund: 'refund',
|
|
10032
|
-
Bonus: 'bonus',
|
|
10033
|
-
Expire: 'expire',
|
|
10034
|
-
Manual: 'manual'
|
|
10035
|
-
} as const;
|
|
10036
|
-
export type ApiCreditsTransactionsGetTypeEnum = typeof ApiCreditsTransactionsGetTypeEnum[keyof typeof ApiCreditsTransactionsGetTypeEnum];
|
|
10037
11415
|
|
|
10038
11416
|
|
|
10039
11417
|
/**
|
|
@@ -16907,7 +18285,7 @@ export class RolesApi extends BaseAPI {
|
|
|
16907
18285
|
export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
16908
18286
|
return {
|
|
16909
18287
|
/**
|
|
16910
|
-
* Search documents with
|
|
18288
|
+
* Search documents with combined widget and document data, autocomplete suggestions, and configurable stopwords/synonyms
|
|
16911
18289
|
* @summary Admin Search API
|
|
16912
18290
|
* @param {string} xStoreID X-Store ID
|
|
16913
18291
|
* @param {DataTypesAdminSearchRequest} body Admin search request with optional stopword_sets and synonym_sets for granular control
|
|
@@ -17195,14 +18573,14 @@ export const SearchApiFp = function(configuration?: Configuration) {
|
|
|
17195
18573
|
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
|
|
17196
18574
|
return {
|
|
17197
18575
|
/**
|
|
17198
|
-
* Search documents with
|
|
18576
|
+
* Search documents with combined widget and document data, autocomplete suggestions, and configurable stopwords/synonyms
|
|
17199
18577
|
* @summary Admin Search API
|
|
17200
18578
|
* @param {string} xStoreID X-Store ID
|
|
17201
18579
|
* @param {DataTypesAdminSearchRequest} body Admin search request with optional stopword_sets and synonym_sets for granular control
|
|
17202
18580
|
* @param {*} [options] Override http request option.
|
|
17203
18581
|
* @throws {RequiredError}
|
|
17204
18582
|
*/
|
|
17205
|
-
async adminV1SearchXStoreIDPost(xStoreID: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18583
|
+
async adminV1SearchXStoreIDPost(xStoreID: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCombinedSearchResponseWrapper>> {
|
|
17206
18584
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1SearchXStoreIDPost(xStoreID, body, options);
|
|
17207
18585
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17208
18586
|
const localVarOperationServerBasePath = operationServerMap['SearchApi.adminV1SearchXStoreIDPost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -17302,14 +18680,14 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
|
17302
18680
|
const localVarFp = SearchApiFp(configuration)
|
|
17303
18681
|
return {
|
|
17304
18682
|
/**
|
|
17305
|
-
* Search documents with
|
|
18683
|
+
* Search documents with combined widget and document data, autocomplete suggestions, and configurable stopwords/synonyms
|
|
17306
18684
|
* @summary Admin Search API
|
|
17307
18685
|
* @param {string} xStoreID X-Store ID
|
|
17308
18686
|
* @param {DataTypesAdminSearchRequest} body Admin search request with optional stopword_sets and synonym_sets for granular control
|
|
17309
18687
|
* @param {*} [options] Override http request option.
|
|
17310
18688
|
* @throws {RequiredError}
|
|
17311
18689
|
*/
|
|
17312
|
-
adminV1SearchXStoreIDPost(xStoreID: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18690
|
+
adminV1SearchXStoreIDPost(xStoreID: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCombinedSearchResponseWrapper> {
|
|
17313
18691
|
return localVarFp.adminV1SearchXStoreIDPost(xStoreID, body, options).then((request) => request(axios, basePath));
|
|
17314
18692
|
},
|
|
17315
18693
|
/**
|
|
@@ -17388,7 +18766,7 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
|
17388
18766
|
*/
|
|
17389
18767
|
export class SearchApi extends BaseAPI {
|
|
17390
18768
|
/**
|
|
17391
|
-
* Search documents with
|
|
18769
|
+
* Search documents with combined widget and document data, autocomplete suggestions, and configurable stopwords/synonyms
|
|
17392
18770
|
* @summary Admin Search API
|
|
17393
18771
|
* @param {string} xStoreID X-Store ID
|
|
17394
18772
|
* @param {DataTypesAdminSearchRequest} body Admin search request with optional stopword_sets and synonym_sets for granular control
|
|
@@ -17480,6 +18858,319 @@ export class SearchApi extends BaseAPI {
|
|
|
17480
18858
|
|
|
17481
18859
|
|
|
17482
18860
|
|
|
18861
|
+
/**
|
|
18862
|
+
* StopwordsApi - axios parameter creator
|
|
18863
|
+
* @export
|
|
18864
|
+
*/
|
|
18865
|
+
export const StopwordsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
18866
|
+
return {
|
|
18867
|
+
/**
|
|
18868
|
+
* Fetches available languages/locales with pagination
|
|
18869
|
+
* @summary Get available languages
|
|
18870
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
18871
|
+
* @param {number} [page] Page number (default: 1)
|
|
18872
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
18873
|
+
* @param {*} [options] Override http request option.
|
|
18874
|
+
* @throws {RequiredError}
|
|
18875
|
+
*/
|
|
18876
|
+
adminStoresStopwordsLanguagesGet: async (type?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18877
|
+
const localVarPath = `/admin/Stores/stopwords/languages`;
|
|
18878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18880
|
+
let baseOptions;
|
|
18881
|
+
if (configuration) {
|
|
18882
|
+
baseOptions = configuration.baseOptions;
|
|
18883
|
+
}
|
|
18884
|
+
|
|
18885
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18886
|
+
const localVarHeaderParameter = {} as any;
|
|
18887
|
+
const localVarQueryParameter = {} as any;
|
|
18888
|
+
|
|
18889
|
+
// authentication BearerAuth required
|
|
18890
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
18891
|
+
|
|
18892
|
+
if (type !== undefined) {
|
|
18893
|
+
localVarQueryParameter['type'] = type;
|
|
18894
|
+
}
|
|
18895
|
+
|
|
18896
|
+
if (page !== undefined) {
|
|
18897
|
+
localVarQueryParameter['page'] = page;
|
|
18898
|
+
}
|
|
18899
|
+
|
|
18900
|
+
if (limit !== undefined) {
|
|
18901
|
+
localVarQueryParameter['limit'] = limit;
|
|
18902
|
+
}
|
|
18903
|
+
|
|
18904
|
+
|
|
18905
|
+
|
|
18906
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18907
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18908
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18909
|
+
|
|
18910
|
+
return {
|
|
18911
|
+
url: toPathString(localVarUrlObj),
|
|
18912
|
+
options: localVarRequestOptions,
|
|
18913
|
+
};
|
|
18914
|
+
},
|
|
18915
|
+
/**
|
|
18916
|
+
* Enables or disables a specific word for a store
|
|
18917
|
+
* @summary Update word status for store
|
|
18918
|
+
* @param {string} xStoreID X-Store ID
|
|
18919
|
+
* @param {DataTypesUpdateWordStatusRequest} body Word status update request
|
|
18920
|
+
* @param {*} [options] Override http request option.
|
|
18921
|
+
* @throws {RequiredError}
|
|
18922
|
+
*/
|
|
18923
|
+
adminStoresXStoreIDStopwordsWordStatusPut: async (xStoreID: string, body: DataTypesUpdateWordStatusRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18924
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
18925
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordStatusPut', 'xStoreID', xStoreID)
|
|
18926
|
+
// verify required parameter 'body' is not null or undefined
|
|
18927
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordStatusPut', 'body', body)
|
|
18928
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/word-status`
|
|
18929
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
18930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18932
|
+
let baseOptions;
|
|
18933
|
+
if (configuration) {
|
|
18934
|
+
baseOptions = configuration.baseOptions;
|
|
18935
|
+
}
|
|
18936
|
+
|
|
18937
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
18938
|
+
const localVarHeaderParameter = {} as any;
|
|
18939
|
+
const localVarQueryParameter = {} as any;
|
|
18940
|
+
|
|
18941
|
+
// authentication BearerAuth required
|
|
18942
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
18943
|
+
|
|
18944
|
+
|
|
18945
|
+
|
|
18946
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18947
|
+
|
|
18948
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18950
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18951
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
18952
|
+
|
|
18953
|
+
return {
|
|
18954
|
+
url: toPathString(localVarUrlObj),
|
|
18955
|
+
options: localVarRequestOptions,
|
|
18956
|
+
};
|
|
18957
|
+
},
|
|
18958
|
+
/**
|
|
18959
|
+
* Fetches word lists by language with pagination and store-specific enabled/disabled status
|
|
18960
|
+
* @summary Get word lists by language
|
|
18961
|
+
* @param {string} xStoreID X-Store ID
|
|
18962
|
+
* @param {string} [lang] Language filter
|
|
18963
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
18964
|
+
* @param {number} [page] Page number (default: 1)
|
|
18965
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
18966
|
+
* @param {*} [options] Override http request option.
|
|
18967
|
+
* @throws {RequiredError}
|
|
18968
|
+
*/
|
|
18969
|
+
adminStoresXStoreIDStopwordsWordlistsGet: async (xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18970
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
18971
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsGet', 'xStoreID', xStoreID)
|
|
18972
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/wordlists`
|
|
18973
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
18974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18976
|
+
let baseOptions;
|
|
18977
|
+
if (configuration) {
|
|
18978
|
+
baseOptions = configuration.baseOptions;
|
|
18979
|
+
}
|
|
18980
|
+
|
|
18981
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18982
|
+
const localVarHeaderParameter = {} as any;
|
|
18983
|
+
const localVarQueryParameter = {} as any;
|
|
18984
|
+
|
|
18985
|
+
// authentication BearerAuth required
|
|
18986
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
18987
|
+
|
|
18988
|
+
if (lang !== undefined) {
|
|
18989
|
+
localVarQueryParameter['lang'] = lang;
|
|
18990
|
+
}
|
|
18991
|
+
|
|
18992
|
+
if (type !== undefined) {
|
|
18993
|
+
localVarQueryParameter['type'] = type;
|
|
18994
|
+
}
|
|
18995
|
+
|
|
18996
|
+
if (page !== undefined) {
|
|
18997
|
+
localVarQueryParameter['page'] = page;
|
|
18998
|
+
}
|
|
18999
|
+
|
|
19000
|
+
if (limit !== undefined) {
|
|
19001
|
+
localVarQueryParameter['limit'] = limit;
|
|
19002
|
+
}
|
|
19003
|
+
|
|
19004
|
+
|
|
19005
|
+
|
|
19006
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19007
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19008
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19009
|
+
|
|
19010
|
+
return {
|
|
19011
|
+
url: toPathString(localVarUrlObj),
|
|
19012
|
+
options: localVarRequestOptions,
|
|
19013
|
+
};
|
|
19014
|
+
},
|
|
19015
|
+
}
|
|
19016
|
+
};
|
|
19017
|
+
|
|
19018
|
+
/**
|
|
19019
|
+
* StopwordsApi - functional programming interface
|
|
19020
|
+
* @export
|
|
19021
|
+
*/
|
|
19022
|
+
export const StopwordsApiFp = function(configuration?: Configuration) {
|
|
19023
|
+
const localVarAxiosParamCreator = StopwordsApiAxiosParamCreator(configuration)
|
|
19024
|
+
return {
|
|
19025
|
+
/**
|
|
19026
|
+
* Fetches available languages/locales with pagination
|
|
19027
|
+
* @summary Get available languages
|
|
19028
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19029
|
+
* @param {number} [page] Page number (default: 1)
|
|
19030
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19031
|
+
* @param {*} [options] Override http request option.
|
|
19032
|
+
* @throws {RequiredError}
|
|
19033
|
+
*/
|
|
19034
|
+
async adminStoresStopwordsLanguagesGet(type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLanguagesResponseWrapper>> {
|
|
19035
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStopwordsLanguagesGet(type, page, limit, options);
|
|
19036
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19037
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresStopwordsLanguagesGet']?.[localVarOperationServerIndex]?.url;
|
|
19038
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19039
|
+
},
|
|
19040
|
+
/**
|
|
19041
|
+
* Enables or disables a specific word for a store
|
|
19042
|
+
* @summary Update word status for store
|
|
19043
|
+
* @param {string} xStoreID X-Store ID
|
|
19044
|
+
* @param {DataTypesUpdateWordStatusRequest} body Word status update request
|
|
19045
|
+
* @param {*} [options] Override http request option.
|
|
19046
|
+
* @throws {RequiredError}
|
|
19047
|
+
*/
|
|
19048
|
+
async adminStoresXStoreIDStopwordsWordStatusPut(xStoreID: string, body: DataTypesUpdateWordStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
19049
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsWordStatusPut(xStoreID, body, options);
|
|
19050
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19051
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordStatusPut']?.[localVarOperationServerIndex]?.url;
|
|
19052
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19053
|
+
},
|
|
19054
|
+
/**
|
|
19055
|
+
* Fetches word lists by language with pagination and store-specific enabled/disabled status
|
|
19056
|
+
* @summary Get word lists by language
|
|
19057
|
+
* @param {string} xStoreID X-Store ID
|
|
19058
|
+
* @param {string} [lang] Language filter
|
|
19059
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19060
|
+
* @param {number} [page] Page number (default: 1)
|
|
19061
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19062
|
+
* @param {*} [options] Override http request option.
|
|
19063
|
+
* @throws {RequiredError}
|
|
19064
|
+
*/
|
|
19065
|
+
async adminStoresXStoreIDStopwordsWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesWordListsResponseWrapper>> {
|
|
19066
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsWordlistsGet(xStoreID, lang, type, page, limit, options);
|
|
19067
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19068
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordlistsGet']?.[localVarOperationServerIndex]?.url;
|
|
19069
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19070
|
+
},
|
|
19071
|
+
}
|
|
19072
|
+
};
|
|
19073
|
+
|
|
19074
|
+
/**
|
|
19075
|
+
* StopwordsApi - factory interface
|
|
19076
|
+
* @export
|
|
19077
|
+
*/
|
|
19078
|
+
export const StopwordsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
19079
|
+
const localVarFp = StopwordsApiFp(configuration)
|
|
19080
|
+
return {
|
|
19081
|
+
/**
|
|
19082
|
+
* Fetches available languages/locales with pagination
|
|
19083
|
+
* @summary Get available languages
|
|
19084
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19085
|
+
* @param {number} [page] Page number (default: 1)
|
|
19086
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19087
|
+
* @param {*} [options] Override http request option.
|
|
19088
|
+
* @throws {RequiredError}
|
|
19089
|
+
*/
|
|
19090
|
+
adminStoresStopwordsLanguagesGet(type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLanguagesResponseWrapper> {
|
|
19091
|
+
return localVarFp.adminStoresStopwordsLanguagesGet(type, page, limit, options).then((request) => request(axios, basePath));
|
|
19092
|
+
},
|
|
19093
|
+
/**
|
|
19094
|
+
* Enables or disables a specific word for a store
|
|
19095
|
+
* @summary Update word status for store
|
|
19096
|
+
* @param {string} xStoreID X-Store ID
|
|
19097
|
+
* @param {DataTypesUpdateWordStatusRequest} body Word status update request
|
|
19098
|
+
* @param {*} [options] Override http request option.
|
|
19099
|
+
* @throws {RequiredError}
|
|
19100
|
+
*/
|
|
19101
|
+
adminStoresXStoreIDStopwordsWordStatusPut(xStoreID: string, body: DataTypesUpdateWordStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
19102
|
+
return localVarFp.adminStoresXStoreIDStopwordsWordStatusPut(xStoreID, body, options).then((request) => request(axios, basePath));
|
|
19103
|
+
},
|
|
19104
|
+
/**
|
|
19105
|
+
* Fetches word lists by language with pagination and store-specific enabled/disabled status
|
|
19106
|
+
* @summary Get word lists by language
|
|
19107
|
+
* @param {string} xStoreID X-Store ID
|
|
19108
|
+
* @param {string} [lang] Language filter
|
|
19109
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19110
|
+
* @param {number} [page] Page number (default: 1)
|
|
19111
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19112
|
+
* @param {*} [options] Override http request option.
|
|
19113
|
+
* @throws {RequiredError}
|
|
19114
|
+
*/
|
|
19115
|
+
adminStoresXStoreIDStopwordsWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesWordListsResponseWrapper> {
|
|
19116
|
+
return localVarFp.adminStoresXStoreIDStopwordsWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(axios, basePath));
|
|
19117
|
+
},
|
|
19118
|
+
};
|
|
19119
|
+
};
|
|
19120
|
+
|
|
19121
|
+
/**
|
|
19122
|
+
* StopwordsApi - object-oriented interface
|
|
19123
|
+
* @export
|
|
19124
|
+
* @class StopwordsApi
|
|
19125
|
+
* @extends {BaseAPI}
|
|
19126
|
+
*/
|
|
19127
|
+
export class StopwordsApi extends BaseAPI {
|
|
19128
|
+
/**
|
|
19129
|
+
* Fetches available languages/locales with pagination
|
|
19130
|
+
* @summary Get available languages
|
|
19131
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19132
|
+
* @param {number} [page] Page number (default: 1)
|
|
19133
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19134
|
+
* @param {*} [options] Override http request option.
|
|
19135
|
+
* @throws {RequiredError}
|
|
19136
|
+
* @memberof StopwordsApi
|
|
19137
|
+
*/
|
|
19138
|
+
public adminStoresStopwordsLanguagesGet(type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
19139
|
+
return StopwordsApiFp(this.configuration).adminStoresStopwordsLanguagesGet(type, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
19140
|
+
}
|
|
19141
|
+
|
|
19142
|
+
/**
|
|
19143
|
+
* Enables or disables a specific word for a store
|
|
19144
|
+
* @summary Update word status for store
|
|
19145
|
+
* @param {string} xStoreID X-Store ID
|
|
19146
|
+
* @param {DataTypesUpdateWordStatusRequest} body Word status update request
|
|
19147
|
+
* @param {*} [options] Override http request option.
|
|
19148
|
+
* @throws {RequiredError}
|
|
19149
|
+
* @memberof StopwordsApi
|
|
19150
|
+
*/
|
|
19151
|
+
public adminStoresXStoreIDStopwordsWordStatusPut(xStoreID: string, body: DataTypesUpdateWordStatusRequest, options?: RawAxiosRequestConfig) {
|
|
19152
|
+
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordStatusPut(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
|
|
19153
|
+
}
|
|
19154
|
+
|
|
19155
|
+
/**
|
|
19156
|
+
* Fetches word lists by language with pagination and store-specific enabled/disabled status
|
|
19157
|
+
* @summary Get word lists by language
|
|
19158
|
+
* @param {string} xStoreID X-Store ID
|
|
19159
|
+
* @param {string} [lang] Language filter
|
|
19160
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19161
|
+
* @param {number} [page] Page number (default: 1)
|
|
19162
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19163
|
+
* @param {*} [options] Override http request option.
|
|
19164
|
+
* @throws {RequiredError}
|
|
19165
|
+
* @memberof StopwordsApi
|
|
19166
|
+
*/
|
|
19167
|
+
public adminStoresXStoreIDStopwordsWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
19168
|
+
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
19169
|
+
}
|
|
19170
|
+
}
|
|
19171
|
+
|
|
19172
|
+
|
|
19173
|
+
|
|
17483
19174
|
/**
|
|
17484
19175
|
* StoresApi - axios parameter creator
|
|
17485
19176
|
* @export
|