@seekora-ai/admin-api 1.0.9 → 1.0.11

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/dist/esm/api.d.ts CHANGED
@@ -953,6 +953,187 @@ export interface DataTypesGenericStringArrayResponse {
953
953
  */
954
954
  'status'?: number;
955
955
  }
956
+ /**
957
+ *
958
+ * @export
959
+ * @interface DataTypesIndexConfig
960
+ */
961
+ export interface DataTypesIndexConfig {
962
+ /**
963
+ *
964
+ * @type {boolean}
965
+ * @memberof DataTypesIndexConfig
966
+ */
967
+ 'allowTyposOnNumericTokens'?: boolean;
968
+ /**
969
+ *
970
+ * @type {Array<string>}
971
+ * @memberof DataTypesIndexConfig
972
+ */
973
+ 'alternativesAsExact'?: Array<string>;
974
+ /**
975
+ *
976
+ * @type {string}
977
+ * @memberof DataTypesIndexConfig
978
+ */
979
+ 'attributeForDistinct'?: string;
980
+ /**
981
+ *
982
+ * @type {Array<string>}
983
+ * @memberof DataTypesIndexConfig
984
+ */
985
+ 'attributesForFaceting'?: Array<string>;
986
+ /**
987
+ *
988
+ * @type {Array<string>}
989
+ * @memberof DataTypesIndexConfig
990
+ */
991
+ 'attributesToHighlight'?: Array<string>;
992
+ /**
993
+ *
994
+ * @type {Array<string>}
995
+ * @memberof DataTypesIndexConfig
996
+ */
997
+ 'attributesToRetrieve'?: Array<string>;
998
+ /**
999
+ *
1000
+ * @type {Array<string>}
1001
+ * @memberof DataTypesIndexConfig
1002
+ */
1003
+ 'attributesToSnippet'?: Array<string>;
1004
+ /**
1005
+ *
1006
+ * @type {Array<string>}
1007
+ * @memberof DataTypesIndexConfig
1008
+ */
1009
+ 'customRanking'?: Array<string>;
1010
+ /**
1011
+ *
1012
+ * @type {string}
1013
+ * @memberof DataTypesIndexConfig
1014
+ */
1015
+ 'exactOnSingleWordQuery'?: string;
1016
+ /**
1017
+ *
1018
+ * @type {string}
1019
+ * @memberof DataTypesIndexConfig
1020
+ */
1021
+ 'highlightPostTag'?: string;
1022
+ /**
1023
+ *
1024
+ * @type {string}
1025
+ * @memberof DataTypesIndexConfig
1026
+ */
1027
+ 'highlightPreTag'?: string;
1028
+ /**
1029
+ *
1030
+ * @type {number}
1031
+ * @memberof DataTypesIndexConfig
1032
+ */
1033
+ 'hitsPerPage'?: number;
1034
+ /**
1035
+ *
1036
+ * @type {number}
1037
+ * @memberof DataTypesIndexConfig
1038
+ */
1039
+ 'indexingGeolocPrecision'?: number;
1040
+ /**
1041
+ *
1042
+ * @type {number}
1043
+ * @memberof DataTypesIndexConfig
1044
+ */
1045
+ 'maxNbHits'?: number;
1046
+ /**
1047
+ *
1048
+ * @type {number}
1049
+ * @memberof DataTypesIndexConfig
1050
+ */
1051
+ 'maxValuesPerFacet'?: number;
1052
+ /**
1053
+ *
1054
+ * @type {number}
1055
+ * @memberof DataTypesIndexConfig
1056
+ */
1057
+ 'minWordSizefor1Typo'?: number;
1058
+ /**
1059
+ *
1060
+ * @type {number}
1061
+ * @memberof DataTypesIndexConfig
1062
+ */
1063
+ 'minWordSizefor2Typos'?: number;
1064
+ /**
1065
+ *
1066
+ * @type {number}
1067
+ * @memberof DataTypesIndexConfig
1068
+ */
1069
+ 'nbShardsAuto'?: number;
1070
+ /**
1071
+ *
1072
+ * @type {Array<string>}
1073
+ * @memberof DataTypesIndexConfig
1074
+ */
1075
+ 'numericAttributesToIndex'?: Array<string>;
1076
+ /**
1077
+ *
1078
+ * @type {Array<string>}
1079
+ * @memberof DataTypesIndexConfig
1080
+ */
1081
+ 'optionalWords'?: Array<string>;
1082
+ /**
1083
+ *
1084
+ * @type {number}
1085
+ * @memberof DataTypesIndexConfig
1086
+ */
1087
+ 'paginationLimitedTo'?: number;
1088
+ /**
1089
+ *
1090
+ * @type {string}
1091
+ * @memberof DataTypesIndexConfig
1092
+ */
1093
+ 'primary'?: string;
1094
+ /**
1095
+ *
1096
+ * @type {string}
1097
+ * @memberof DataTypesIndexConfig
1098
+ */
1099
+ 'queryType'?: string;
1100
+ /**
1101
+ *
1102
+ * @type {Array<string>}
1103
+ * @memberof DataTypesIndexConfig
1104
+ */
1105
+ 'ranking'?: Array<string>;
1106
+ /**
1107
+ *
1108
+ * @type {string}
1109
+ * @memberof DataTypesIndexConfig
1110
+ */
1111
+ 'removeWordsIfNoResults'?: string;
1112
+ /**
1113
+ *
1114
+ * @type {Array<string>}
1115
+ * @memberof DataTypesIndexConfig
1116
+ */
1117
+ 'searchableAttributes'?: Array<string>;
1118
+ /**
1119
+ *
1120
+ * @type {string}
1121
+ * @memberof DataTypesIndexConfig
1122
+ */
1123
+ 'separatorsToIndex'?: string;
1124
+ /**
1125
+ *
1126
+ * @type {Array<string>}
1127
+ * @memberof DataTypesIndexConfig
1128
+ */
1129
+ 'unretrievableAttributes'?: Array<string>;
1130
+ /**
1131
+ *
1132
+ * @type {number}
1133
+ * @memberof DataTypesIndexConfig
1134
+ */
1135
+ 'version'?: number;
1136
+ }
956
1137
  /**
957
1138
  *
958
1139
  * @export
@@ -1742,7 +1923,7 @@ export interface DataTypesOnboardingRequest {
1742
1923
  * @type {{ [key: string]: any; }}
1743
1924
  * @memberof DataTypesOnboardingRequest
1744
1925
  */
1745
- 'data': {
1926
+ 'data'?: {
1746
1927
  [key: string]: any;
1747
1928
  };
1748
1929
  /**
@@ -1751,6 +1932,12 @@ export interface DataTypesOnboardingRequest {
1751
1932
  * @memberof DataTypesOnboardingRequest
1752
1933
  */
1753
1934
  'step': string;
1935
+ /**
1936
+ * Optional visible step
1937
+ * @type {string}
1938
+ * @memberof DataTypesOnboardingRequest
1939
+ */
1940
+ 'visibleStep'?: string;
1754
1941
  }
1755
1942
  /**
1756
1943
  *
@@ -1766,16 +1953,24 @@ export interface DataTypesOnboardingResponse {
1766
1953
  'jobId'?: string;
1767
1954
  /**
1768
1955
  *
1769
- * @type {object}
1956
+ * @type {{ [key: string]: any; }}
1770
1957
  * @memberof DataTypesOnboardingResponse
1771
1958
  */
1772
- 'state'?: object;
1959
+ 'state'?: {
1960
+ [key: string]: any;
1961
+ };
1773
1962
  /**
1774
1963
  *
1775
1964
  * @type {string}
1776
1965
  * @memberof DataTypesOnboardingResponse
1777
1966
  */
1778
1967
  'step'?: string;
1968
+ /**
1969
+ *
1970
+ * @type {string}
1971
+ * @memberof DataTypesOnboardingResponse
1972
+ */
1973
+ 'visibleStep'?: string;
1779
1974
  }
1780
1975
  /**
1781
1976
  *
@@ -2774,6 +2969,62 @@ export interface DataTypesRolesListResponse {
2774
2969
  */
2775
2970
  'status'?: number;
2776
2971
  }
2972
+ /**
2973
+ *
2974
+ * @export
2975
+ * @interface DataTypesSampleDatasetResponse
2976
+ */
2977
+ export interface DataTypesSampleDatasetResponse {
2978
+ /**
2979
+ *
2980
+ * @type {string}
2981
+ * @memberof DataTypesSampleDatasetResponse
2982
+ */
2983
+ 'datasetName'?: string;
2984
+ /**
2985
+ *
2986
+ * @type {string}
2987
+ * @memberof DataTypesSampleDatasetResponse
2988
+ */
2989
+ 'description'?: string;
2990
+ /**
2991
+ *
2992
+ * @type {string}
2993
+ * @memberof DataTypesSampleDatasetResponse
2994
+ */
2995
+ 'imageUrl'?: string;
2996
+ /**
2997
+ *
2998
+ * @type {string}
2999
+ * @memberof DataTypesSampleDatasetResponse
3000
+ */
3001
+ 'storeName'?: string;
3002
+ }
3003
+ /**
3004
+ *
3005
+ * @export
3006
+ * @interface DataTypesSampleDatasetsResponseWrapper
3007
+ */
3008
+ export interface DataTypesSampleDatasetsResponseWrapper {
3009
+ /**
3010
+ *
3011
+ * @type {Array<DataTypesSampleDatasetResponse>}
3012
+ * @memberof DataTypesSampleDatasetsResponseWrapper
3013
+ */
3014
+ 'data'?: Array<DataTypesSampleDatasetResponse>;
3015
+ /**
3016
+ *
3017
+ * @type {string}
3018
+ * @memberof DataTypesSampleDatasetsResponseWrapper
3019
+ */
3020
+ 'message'?: string;
3021
+ /**
3022
+ *
3023
+ * @type {number}
3024
+ * @memberof DataTypesSampleDatasetsResponseWrapper
3025
+ */
3026
+ 'status'?: number;
3027
+ }
2777
3028
  /**
2778
3029
  *
2779
3030
  * @export
@@ -6675,7 +6926,7 @@ export declare const OnboardingApiFp: (configuration?: Configuration) => {
6675
6926
  * @param {*} [options] Override http request option.
6676
6927
  * @throws {RequiredError}
6677
6928
  */
6678
- adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
6929
+ adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSampleDatasetsResponseWrapper>>;
6679
6930
  };
6680
6931
  /**
6681
6932
  * OnboardingApi - factory interface
@@ -6749,7 +7000,7 @@ export declare const OnboardingApiFactory: (configuration?: Configuration, baseP
6749
7000
  * @param {*} [options] Override http request option.
6750
7001
  * @throws {RequiredError}
6751
7002
  */
6752
- adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): AxiosPromise<object>;
7003
+ adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSampleDatasetsResponseWrapper>;
6753
7004
  };
6754
7005
  /**
6755
7006
  * OnboardingApi - object-oriented interface
@@ -6834,7 +7085,7 @@ export declare class OnboardingApi extends BaseAPI {
6834
7085
  * @throws {RequiredError}
6835
7086
  * @memberof OnboardingApi
6836
7087
  */
6837
- adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
7088
+ adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesSampleDatasetsResponseWrapper, any>>;
6838
7089
  }
6839
7090
  /**
6840
7091
  * OrganizationsApi - axios parameter creator
@@ -8446,6 +8697,212 @@ export declare class RolesApi extends BaseAPI {
8446
8697
  */
8447
8698
  adminRolesPost(role: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
8448
8699
  }
8700
+ /**
8701
+ * SearchApi - axios parameter creator
8702
+ * @export
8703
+ */
8704
+ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => {
8705
+ /**
8706
+ * Configure the index for search
8707
+ * @summary Index Config
8708
+ * @param {string} xStoreid Store ID
8709
+ * @param {string} xStoresecret Store Secret
8710
+ * @param {DataTypesIndexConfig} body Index configuration
8711
+ * @param {*} [options] Override http request option.
8712
+ * @throws {RequiredError}
8713
+ */
8714
+ v1IndexConfigPost: (xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8715
+ /**
8716
+ * Update a single property of the index configuration
8717
+ * @summary Update Index Config Property
8718
+ * @param {string} xStoreid Store ID
8719
+ * @param {string} xStoresecret Store Secret
8720
+ * @param {string} property Property name
8721
+ * @param {object} body Property value
8722
+ * @param {*} [options] Override http request option.
8723
+ * @throws {RequiredError}
8724
+ */
8725
+ v1IndexConfigPropertyPatch: (xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8726
+ /**
8727
+ * Configure the index for search
8728
+ * @summary Index Config
8729
+ * @param {string} xStoreid Store ID
8730
+ * @param {string} xStoresecret Store Secret
8731
+ * @param {string} indexname Index Name
8732
+ * @param {DataTypesIndexConfig} body Index configuration
8733
+ * @param {*} [options] Override http request option.
8734
+ * @throws {RequiredError}
8735
+ */
8736
+ v1IndexIndexnameConfigPost: (xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8737
+ /**
8738
+ * Update a single property of the index configuration
8739
+ * @summary Update Index Config Property
8740
+ * @param {string} xStoreid Store ID
8741
+ * @param {string} xStoresecret Store Secret
8742
+ * @param {string} indexname Index Name
8743
+ * @param {string} property Property name
8744
+ * @param {object} body Property value
8745
+ * @param {*} [options] Override http request option.
8746
+ * @throws {RequiredError}
8747
+ */
8748
+ v1IndexIndexnameConfigPropertyPatch: (xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8749
+ };
8750
+ /**
8751
+ * SearchApi - functional programming interface
8752
+ * @export
8753
+ */
8754
+ export declare const SearchApiFp: (configuration?: Configuration) => {
8755
+ /**
8756
+ * Configure the index for search
8757
+ * @summary Index Config
8758
+ * @param {string} xStoreid Store ID
8759
+ * @param {string} xStoresecret Store Secret
8760
+ * @param {DataTypesIndexConfig} body Index configuration
8761
+ * @param {*} [options] Override http request option.
8762
+ * @throws {RequiredError}
8763
+ */
8764
+ v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
8765
+ /**
8766
+ * Update a single property of the index configuration
8767
+ * @summary Update Index Config Property
8768
+ * @param {string} xStoreid Store ID
8769
+ * @param {string} xStoresecret Store Secret
8770
+ * @param {string} property Property name
8771
+ * @param {object} body Property value
8772
+ * @param {*} [options] Override http request option.
8773
+ * @throws {RequiredError}
8774
+ */
8775
+ v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
8776
+ /**
8777
+ * Configure the index for search
8778
+ * @summary Index Config
8779
+ * @param {string} xStoreid Store ID
8780
+ * @param {string} xStoresecret Store Secret
8781
+ * @param {string} indexname Index Name
8782
+ * @param {DataTypesIndexConfig} body Index configuration
8783
+ * @param {*} [options] Override http request option.
8784
+ * @throws {RequiredError}
8785
+ */
8786
+ v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
8787
+ /**
8788
+ * Update a single property of the index configuration
8789
+ * @summary Update Index Config Property
8790
+ * @param {string} xStoreid Store ID
8791
+ * @param {string} xStoresecret Store Secret
8792
+ * @param {string} indexname Index Name
8793
+ * @param {string} property Property name
8794
+ * @param {object} body Property value
8795
+ * @param {*} [options] Override http request option.
8796
+ * @throws {RequiredError}
8797
+ */
8798
+ v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
8799
+ };
8800
+ /**
8801
+ * SearchApi - factory interface
8802
+ * @export
8803
+ */
8804
+ export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
8805
+ /**
8806
+ * Configure the index for search
8807
+ * @summary Index Config
8808
+ * @param {string} xStoreid Store ID
8809
+ * @param {string} xStoresecret Store Secret
8810
+ * @param {DataTypesIndexConfig} body Index configuration
8811
+ * @param {*} [options] Override http request option.
8812
+ * @throws {RequiredError}
8813
+ */
8814
+ v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
8815
+ /**
8816
+ * Update a single property of the index configuration
8817
+ * @summary Update Index Config Property
8818
+ * @param {string} xStoreid Store ID
8819
+ * @param {string} xStoresecret Store Secret
8820
+ * @param {string} property Property name
8821
+ * @param {object} body Property value
8822
+ * @param {*} [options] Override http request option.
8823
+ * @throws {RequiredError}
8824
+ */
8825
+ v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
8826
+ /**
8827
+ * Configure the index for search
8828
+ * @summary Index Config
8829
+ * @param {string} xStoreid Store ID
8830
+ * @param {string} xStoresecret Store Secret
8831
+ * @param {string} indexname Index Name
8832
+ * @param {DataTypesIndexConfig} body Index configuration
8833
+ * @param {*} [options] Override http request option.
8834
+ * @throws {RequiredError}
8835
+ */
8836
+ v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
8837
+ /**
8838
+ * Update a single property of the index configuration
8839
+ * @summary Update Index Config Property
8840
+ * @param {string} xStoreid Store ID
8841
+ * @param {string} xStoresecret Store Secret
8842
+ * @param {string} indexname Index Name
8843
+ * @param {string} property Property name
8844
+ * @param {object} body Property value
8845
+ * @param {*} [options] Override http request option.
8846
+ * @throws {RequiredError}
8847
+ */
8848
+ v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
8849
+ };
8850
+ /**
8851
+ * SearchApi - object-oriented interface
8852
+ * @export
8853
+ * @class SearchApi
8854
+ * @extends {BaseAPI}
8855
+ */
8856
+ export declare class SearchApi extends BaseAPI {
8857
+ /**
8858
+ * Configure the index for search
8859
+ * @summary Index Config
8860
+ * @param {string} xStoreid Store ID
8861
+ * @param {string} xStoresecret Store Secret
8862
+ * @param {DataTypesIndexConfig} body Index configuration
8863
+ * @param {*} [options] Override http request option.
8864
+ * @throws {RequiredError}
8865
+ * @memberof SearchApi
8866
+ */
8867
+ v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
8868
+ /**
8869
+ * Update a single property of the index configuration
8870
+ * @summary Update Index Config Property
8871
+ * @param {string} xStoreid Store ID
8872
+ * @param {string} xStoresecret Store Secret
8873
+ * @param {string} property Property name
8874
+ * @param {object} body Property value
8875
+ * @param {*} [options] Override http request option.
8876
+ * @throws {RequiredError}
8877
+ * @memberof SearchApi
8878
+ */
8879
+ v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
8880
+ /**
8881
+ * Configure the index for search
8882
+ * @summary Index Config
8883
+ * @param {string} xStoreid Store ID
8884
+ * @param {string} xStoresecret Store Secret
8885
+ * @param {string} indexname Index Name
8886
+ * @param {DataTypesIndexConfig} body Index configuration
8887
+ * @param {*} [options] Override http request option.
8888
+ * @throws {RequiredError}
8889
+ * @memberof SearchApi
8890
+ */
8891
+ v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
8892
+ /**
8893
+ * Update a single property of the index configuration
8894
+ * @summary Update Index Config Property
8895
+ * @param {string} xStoreid Store ID
8896
+ * @param {string} xStoresecret Store Secret
8897
+ * @param {string} indexname Index Name
8898
+ * @param {string} property Property name
8899
+ * @param {object} body Property value
8900
+ * @param {*} [options] Override http request option.
8901
+ * @throws {RequiredError}
8902
+ * @memberof SearchApi
8903
+ */
8904
+ v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
8905
+ }
8449
8906
  /**
8450
8907
  * StoresApi - axios parameter creator
8451
8908
  * @export