@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/README.md +9 -2
- package/api.ts +677 -5
- package/dist/api.d.ts +463 -6
- package/dist/api.js +407 -1
- package/dist/esm/api.d.ts +463 -6
- package/dist/esm/api.js +402 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.11.tgz +0 -0
- package/seekora-ai-admin-api-1.0.9.tgz +0 -0
package/api.ts
CHANGED
|
@@ -960,6 +960,187 @@ export interface DataTypesGenericStringArrayResponse {
|
|
|
960
960
|
*/
|
|
961
961
|
'status'?: number;
|
|
962
962
|
}
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @export
|
|
966
|
+
* @interface DataTypesIndexConfig
|
|
967
|
+
*/
|
|
968
|
+
export interface DataTypesIndexConfig {
|
|
969
|
+
/**
|
|
970
|
+
*
|
|
971
|
+
* @type {boolean}
|
|
972
|
+
* @memberof DataTypesIndexConfig
|
|
973
|
+
*/
|
|
974
|
+
'allowTyposOnNumericTokens'?: boolean;
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @type {Array<string>}
|
|
978
|
+
* @memberof DataTypesIndexConfig
|
|
979
|
+
*/
|
|
980
|
+
'alternativesAsExact'?: Array<string>;
|
|
981
|
+
/**
|
|
982
|
+
*
|
|
983
|
+
* @type {string}
|
|
984
|
+
* @memberof DataTypesIndexConfig
|
|
985
|
+
*/
|
|
986
|
+
'attributeForDistinct'?: string;
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @type {Array<string>}
|
|
990
|
+
* @memberof DataTypesIndexConfig
|
|
991
|
+
*/
|
|
992
|
+
'attributesForFaceting'?: Array<string>;
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @type {Array<string>}
|
|
996
|
+
* @memberof DataTypesIndexConfig
|
|
997
|
+
*/
|
|
998
|
+
'attributesToHighlight'?: Array<string>;
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @type {Array<string>}
|
|
1002
|
+
* @memberof DataTypesIndexConfig
|
|
1003
|
+
*/
|
|
1004
|
+
'attributesToRetrieve'?: Array<string>;
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @type {Array<string>}
|
|
1008
|
+
* @memberof DataTypesIndexConfig
|
|
1009
|
+
*/
|
|
1010
|
+
'attributesToSnippet'?: Array<string>;
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @type {Array<string>}
|
|
1014
|
+
* @memberof DataTypesIndexConfig
|
|
1015
|
+
*/
|
|
1016
|
+
'customRanking'?: Array<string>;
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @type {string}
|
|
1020
|
+
* @memberof DataTypesIndexConfig
|
|
1021
|
+
*/
|
|
1022
|
+
'exactOnSingleWordQuery'?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @type {string}
|
|
1026
|
+
* @memberof DataTypesIndexConfig
|
|
1027
|
+
*/
|
|
1028
|
+
'highlightPostTag'?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof DataTypesIndexConfig
|
|
1033
|
+
*/
|
|
1034
|
+
'highlightPreTag'?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @type {number}
|
|
1038
|
+
* @memberof DataTypesIndexConfig
|
|
1039
|
+
*/
|
|
1040
|
+
'hitsPerPage'?: number;
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @type {number}
|
|
1044
|
+
* @memberof DataTypesIndexConfig
|
|
1045
|
+
*/
|
|
1046
|
+
'indexingGeolocPrecision'?: number;
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @type {number}
|
|
1050
|
+
* @memberof DataTypesIndexConfig
|
|
1051
|
+
*/
|
|
1052
|
+
'maxNbHits'?: number;
|
|
1053
|
+
/**
|
|
1054
|
+
*
|
|
1055
|
+
* @type {number}
|
|
1056
|
+
* @memberof DataTypesIndexConfig
|
|
1057
|
+
*/
|
|
1058
|
+
'maxValuesPerFacet'?: number;
|
|
1059
|
+
/**
|
|
1060
|
+
*
|
|
1061
|
+
* @type {number}
|
|
1062
|
+
* @memberof DataTypesIndexConfig
|
|
1063
|
+
*/
|
|
1064
|
+
'minWordSizefor1Typo'?: number;
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @type {number}
|
|
1068
|
+
* @memberof DataTypesIndexConfig
|
|
1069
|
+
*/
|
|
1070
|
+
'minWordSizefor2Typos'?: number;
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @type {number}
|
|
1074
|
+
* @memberof DataTypesIndexConfig
|
|
1075
|
+
*/
|
|
1076
|
+
'nbShardsAuto'?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @type {Array<string>}
|
|
1080
|
+
* @memberof DataTypesIndexConfig
|
|
1081
|
+
*/
|
|
1082
|
+
'numericAttributesToIndex'?: Array<string>;
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @type {Array<string>}
|
|
1086
|
+
* @memberof DataTypesIndexConfig
|
|
1087
|
+
*/
|
|
1088
|
+
'optionalWords'?: Array<string>;
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @type {number}
|
|
1092
|
+
* @memberof DataTypesIndexConfig
|
|
1093
|
+
*/
|
|
1094
|
+
'paginationLimitedTo'?: number;
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @type {string}
|
|
1098
|
+
* @memberof DataTypesIndexConfig
|
|
1099
|
+
*/
|
|
1100
|
+
'primary'?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
*
|
|
1103
|
+
* @type {string}
|
|
1104
|
+
* @memberof DataTypesIndexConfig
|
|
1105
|
+
*/
|
|
1106
|
+
'queryType'?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @type {Array<string>}
|
|
1110
|
+
* @memberof DataTypesIndexConfig
|
|
1111
|
+
*/
|
|
1112
|
+
'ranking'?: Array<string>;
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @type {string}
|
|
1116
|
+
* @memberof DataTypesIndexConfig
|
|
1117
|
+
*/
|
|
1118
|
+
'removeWordsIfNoResults'?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @type {Array<string>}
|
|
1122
|
+
* @memberof DataTypesIndexConfig
|
|
1123
|
+
*/
|
|
1124
|
+
'searchableAttributes'?: Array<string>;
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @type {string}
|
|
1128
|
+
* @memberof DataTypesIndexConfig
|
|
1129
|
+
*/
|
|
1130
|
+
'separatorsToIndex'?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @type {Array<string>}
|
|
1134
|
+
* @memberof DataTypesIndexConfig
|
|
1135
|
+
*/
|
|
1136
|
+
'unretrievableAttributes'?: Array<string>;
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @type {number}
|
|
1140
|
+
* @memberof DataTypesIndexConfig
|
|
1141
|
+
*/
|
|
1142
|
+
'version'?: number;
|
|
1143
|
+
}
|
|
963
1144
|
/**
|
|
964
1145
|
*
|
|
965
1146
|
* @export
|
|
@@ -1749,13 +1930,19 @@ export interface DataTypesOnboardingRequest {
|
|
|
1749
1930
|
* @type {{ [key: string]: any; }}
|
|
1750
1931
|
* @memberof DataTypesOnboardingRequest
|
|
1751
1932
|
*/
|
|
1752
|
-
'data'
|
|
1933
|
+
'data'?: { [key: string]: any; };
|
|
1753
1934
|
/**
|
|
1754
1935
|
*
|
|
1755
1936
|
* @type {string}
|
|
1756
1937
|
* @memberof DataTypesOnboardingRequest
|
|
1757
1938
|
*/
|
|
1758
1939
|
'step': string;
|
|
1940
|
+
/**
|
|
1941
|
+
* Optional visible step
|
|
1942
|
+
* @type {string}
|
|
1943
|
+
* @memberof DataTypesOnboardingRequest
|
|
1944
|
+
*/
|
|
1945
|
+
'visibleStep'?: string;
|
|
1759
1946
|
}
|
|
1760
1947
|
/**
|
|
1761
1948
|
*
|
|
@@ -1771,16 +1958,22 @@ export interface DataTypesOnboardingResponse {
|
|
|
1771
1958
|
'jobId'?: string;
|
|
1772
1959
|
/**
|
|
1773
1960
|
*
|
|
1774
|
-
* @type {
|
|
1961
|
+
* @type {{ [key: string]: any; }}
|
|
1775
1962
|
* @memberof DataTypesOnboardingResponse
|
|
1776
1963
|
*/
|
|
1777
|
-
'state'?:
|
|
1964
|
+
'state'?: { [key: string]: any; };
|
|
1778
1965
|
/**
|
|
1779
1966
|
*
|
|
1780
1967
|
* @type {string}
|
|
1781
1968
|
* @memberof DataTypesOnboardingResponse
|
|
1782
1969
|
*/
|
|
1783
1970
|
'step'?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
*
|
|
1973
|
+
* @type {string}
|
|
1974
|
+
* @memberof DataTypesOnboardingResponse
|
|
1975
|
+
*/
|
|
1976
|
+
'visibleStep'?: string;
|
|
1784
1977
|
}
|
|
1785
1978
|
/**
|
|
1786
1979
|
*
|
|
@@ -2779,6 +2972,62 @@ export interface DataTypesRolesListResponse {
|
|
|
2779
2972
|
*/
|
|
2780
2973
|
'status'?: number;
|
|
2781
2974
|
}
|
|
2975
|
+
/**
|
|
2976
|
+
*
|
|
2977
|
+
* @export
|
|
2978
|
+
* @interface DataTypesSampleDatasetResponse
|
|
2979
|
+
*/
|
|
2980
|
+
export interface DataTypesSampleDatasetResponse {
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @type {string}
|
|
2984
|
+
* @memberof DataTypesSampleDatasetResponse
|
|
2985
|
+
*/
|
|
2986
|
+
'datasetName'?: string;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {string}
|
|
2990
|
+
* @memberof DataTypesSampleDatasetResponse
|
|
2991
|
+
*/
|
|
2992
|
+
'description'?: string;
|
|
2993
|
+
/**
|
|
2994
|
+
*
|
|
2995
|
+
* @type {string}
|
|
2996
|
+
* @memberof DataTypesSampleDatasetResponse
|
|
2997
|
+
*/
|
|
2998
|
+
'imageUrl'?: string;
|
|
2999
|
+
/**
|
|
3000
|
+
*
|
|
3001
|
+
* @type {string}
|
|
3002
|
+
* @memberof DataTypesSampleDatasetResponse
|
|
3003
|
+
*/
|
|
3004
|
+
'storeName'?: string;
|
|
3005
|
+
}
|
|
3006
|
+
/**
|
|
3007
|
+
*
|
|
3008
|
+
* @export
|
|
3009
|
+
* @interface DataTypesSampleDatasetsResponseWrapper
|
|
3010
|
+
*/
|
|
3011
|
+
export interface DataTypesSampleDatasetsResponseWrapper {
|
|
3012
|
+
/**
|
|
3013
|
+
*
|
|
3014
|
+
* @type {Array<DataTypesSampleDatasetResponse>}
|
|
3015
|
+
* @memberof DataTypesSampleDatasetsResponseWrapper
|
|
3016
|
+
*/
|
|
3017
|
+
'data'?: Array<DataTypesSampleDatasetResponse>;
|
|
3018
|
+
/**
|
|
3019
|
+
*
|
|
3020
|
+
* @type {string}
|
|
3021
|
+
* @memberof DataTypesSampleDatasetsResponseWrapper
|
|
3022
|
+
*/
|
|
3023
|
+
'message'?: string;
|
|
3024
|
+
/**
|
|
3025
|
+
*
|
|
3026
|
+
* @type {number}
|
|
3027
|
+
* @memberof DataTypesSampleDatasetsResponseWrapper
|
|
3028
|
+
*/
|
|
3029
|
+
'status'?: number;
|
|
3030
|
+
}
|
|
2782
3031
|
/**
|
|
2783
3032
|
*
|
|
2784
3033
|
* @export
|
|
@@ -9278,7 +9527,7 @@ export const OnboardingApiFp = function(configuration?: Configuration) {
|
|
|
9278
9527
|
* @param {*} [options] Override http request option.
|
|
9279
9528
|
* @throws {RequiredError}
|
|
9280
9529
|
*/
|
|
9281
|
-
async adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9530
|
+
async adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSampleDatasetsResponseWrapper>> {
|
|
9282
9531
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1UsersSampledatasetsGet(options);
|
|
9283
9532
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9284
9533
|
const localVarOperationServerBasePath = operationServerMap['OnboardingApi.adminV1UsersSampledatasetsGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -9377,7 +9626,7 @@ export const OnboardingApiFactory = function (configuration?: Configuration, bas
|
|
|
9377
9626
|
* @param {*} [options] Override http request option.
|
|
9378
9627
|
* @throws {RequiredError}
|
|
9379
9628
|
*/
|
|
9380
|
-
adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9629
|
+
adminV1UsersSampledatasetsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSampleDatasetsResponseWrapper> {
|
|
9381
9630
|
return localVarFp.adminV1UsersSampledatasetsGet(options).then((request) => request(axios, basePath));
|
|
9382
9631
|
},
|
|
9383
9632
|
};
|
|
@@ -12892,6 +13141,429 @@ export class RolesApi extends BaseAPI {
|
|
|
12892
13141
|
|
|
12893
13142
|
|
|
12894
13143
|
|
|
13144
|
+
/**
|
|
13145
|
+
* SearchApi - axios parameter creator
|
|
13146
|
+
* @export
|
|
13147
|
+
*/
|
|
13148
|
+
export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13149
|
+
return {
|
|
13150
|
+
/**
|
|
13151
|
+
* Configure the index for search
|
|
13152
|
+
* @summary Index Config
|
|
13153
|
+
* @param {string} xStoreid Store ID
|
|
13154
|
+
* @param {string} xStoresecret Store Secret
|
|
13155
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13156
|
+
* @param {*} [options] Override http request option.
|
|
13157
|
+
* @throws {RequiredError}
|
|
13158
|
+
*/
|
|
13159
|
+
v1IndexConfigPost: async (xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13160
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
13161
|
+
assertParamExists('v1IndexConfigPost', 'xStoreid', xStoreid)
|
|
13162
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
13163
|
+
assertParamExists('v1IndexConfigPost', 'xStoresecret', xStoresecret)
|
|
13164
|
+
// verify required parameter 'body' is not null or undefined
|
|
13165
|
+
assertParamExists('v1IndexConfigPost', 'body', body)
|
|
13166
|
+
const localVarPath = `/v1/index/config`;
|
|
13167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13169
|
+
let baseOptions;
|
|
13170
|
+
if (configuration) {
|
|
13171
|
+
baseOptions = configuration.baseOptions;
|
|
13172
|
+
}
|
|
13173
|
+
|
|
13174
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13175
|
+
const localVarHeaderParameter = {} as any;
|
|
13176
|
+
const localVarQueryParameter = {} as any;
|
|
13177
|
+
|
|
13178
|
+
|
|
13179
|
+
|
|
13180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13181
|
+
|
|
13182
|
+
if (xStoreid != null) {
|
|
13183
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
13184
|
+
}
|
|
13185
|
+
if (xStoresecret != null) {
|
|
13186
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
13187
|
+
}
|
|
13188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13190
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13191
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13192
|
+
|
|
13193
|
+
return {
|
|
13194
|
+
url: toPathString(localVarUrlObj),
|
|
13195
|
+
options: localVarRequestOptions,
|
|
13196
|
+
};
|
|
13197
|
+
},
|
|
13198
|
+
/**
|
|
13199
|
+
* Update a single property of the index configuration
|
|
13200
|
+
* @summary Update Index Config Property
|
|
13201
|
+
* @param {string} xStoreid Store ID
|
|
13202
|
+
* @param {string} xStoresecret Store Secret
|
|
13203
|
+
* @param {string} property Property name
|
|
13204
|
+
* @param {object} body Property value
|
|
13205
|
+
* @param {*} [options] Override http request option.
|
|
13206
|
+
* @throws {RequiredError}
|
|
13207
|
+
*/
|
|
13208
|
+
v1IndexConfigPropertyPatch: async (xStoreid: string, xStoresecret: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13209
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
13210
|
+
assertParamExists('v1IndexConfigPropertyPatch', 'xStoreid', xStoreid)
|
|
13211
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
13212
|
+
assertParamExists('v1IndexConfigPropertyPatch', 'xStoresecret', xStoresecret)
|
|
13213
|
+
// verify required parameter 'property' is not null or undefined
|
|
13214
|
+
assertParamExists('v1IndexConfigPropertyPatch', 'property', property)
|
|
13215
|
+
// verify required parameter 'body' is not null or undefined
|
|
13216
|
+
assertParamExists('v1IndexConfigPropertyPatch', 'body', body)
|
|
13217
|
+
const localVarPath = `/v1/index/config/{property}`
|
|
13218
|
+
.replace(`{${"property"}}`, encodeURIComponent(String(property)));
|
|
13219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13221
|
+
let baseOptions;
|
|
13222
|
+
if (configuration) {
|
|
13223
|
+
baseOptions = configuration.baseOptions;
|
|
13224
|
+
}
|
|
13225
|
+
|
|
13226
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13227
|
+
const localVarHeaderParameter = {} as any;
|
|
13228
|
+
const localVarQueryParameter = {} as any;
|
|
13229
|
+
|
|
13230
|
+
|
|
13231
|
+
|
|
13232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13233
|
+
|
|
13234
|
+
if (xStoreid != null) {
|
|
13235
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
13236
|
+
}
|
|
13237
|
+
if (xStoresecret != null) {
|
|
13238
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
13239
|
+
}
|
|
13240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13243
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13244
|
+
|
|
13245
|
+
return {
|
|
13246
|
+
url: toPathString(localVarUrlObj),
|
|
13247
|
+
options: localVarRequestOptions,
|
|
13248
|
+
};
|
|
13249
|
+
},
|
|
13250
|
+
/**
|
|
13251
|
+
* Configure the index for search
|
|
13252
|
+
* @summary Index Config
|
|
13253
|
+
* @param {string} xStoreid Store ID
|
|
13254
|
+
* @param {string} xStoresecret Store Secret
|
|
13255
|
+
* @param {string} indexname Index Name
|
|
13256
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13257
|
+
* @param {*} [options] Override http request option.
|
|
13258
|
+
* @throws {RequiredError}
|
|
13259
|
+
*/
|
|
13260
|
+
v1IndexIndexnameConfigPost: async (xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13261
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
13262
|
+
assertParamExists('v1IndexIndexnameConfigPost', 'xStoreid', xStoreid)
|
|
13263
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
13264
|
+
assertParamExists('v1IndexIndexnameConfigPost', 'xStoresecret', xStoresecret)
|
|
13265
|
+
// verify required parameter 'indexname' is not null or undefined
|
|
13266
|
+
assertParamExists('v1IndexIndexnameConfigPost', 'indexname', indexname)
|
|
13267
|
+
// verify required parameter 'body' is not null or undefined
|
|
13268
|
+
assertParamExists('v1IndexIndexnameConfigPost', 'body', body)
|
|
13269
|
+
const localVarPath = `/v1/index/{indexname}/config`
|
|
13270
|
+
.replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
|
|
13271
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13272
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13273
|
+
let baseOptions;
|
|
13274
|
+
if (configuration) {
|
|
13275
|
+
baseOptions = configuration.baseOptions;
|
|
13276
|
+
}
|
|
13277
|
+
|
|
13278
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13279
|
+
const localVarHeaderParameter = {} as any;
|
|
13280
|
+
const localVarQueryParameter = {} as any;
|
|
13281
|
+
|
|
13282
|
+
|
|
13283
|
+
|
|
13284
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13285
|
+
|
|
13286
|
+
if (xStoreid != null) {
|
|
13287
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
13288
|
+
}
|
|
13289
|
+
if (xStoresecret != null) {
|
|
13290
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
13291
|
+
}
|
|
13292
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13293
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13294
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13296
|
+
|
|
13297
|
+
return {
|
|
13298
|
+
url: toPathString(localVarUrlObj),
|
|
13299
|
+
options: localVarRequestOptions,
|
|
13300
|
+
};
|
|
13301
|
+
},
|
|
13302
|
+
/**
|
|
13303
|
+
* Update a single property of the index configuration
|
|
13304
|
+
* @summary Update Index Config Property
|
|
13305
|
+
* @param {string} xStoreid Store ID
|
|
13306
|
+
* @param {string} xStoresecret Store Secret
|
|
13307
|
+
* @param {string} indexname Index Name
|
|
13308
|
+
* @param {string} property Property name
|
|
13309
|
+
* @param {object} body Property value
|
|
13310
|
+
* @param {*} [options] Override http request option.
|
|
13311
|
+
* @throws {RequiredError}
|
|
13312
|
+
*/
|
|
13313
|
+
v1IndexIndexnameConfigPropertyPatch: async (xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13314
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
13315
|
+
assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoreid', xStoreid)
|
|
13316
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
13317
|
+
assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoresecret', xStoresecret)
|
|
13318
|
+
// verify required parameter 'indexname' is not null or undefined
|
|
13319
|
+
assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname)
|
|
13320
|
+
// verify required parameter 'property' is not null or undefined
|
|
13321
|
+
assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'property', property)
|
|
13322
|
+
// verify required parameter 'body' is not null or undefined
|
|
13323
|
+
assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'body', body)
|
|
13324
|
+
const localVarPath = `/v1/index/{indexname}/config/{property}`
|
|
13325
|
+
.replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)))
|
|
13326
|
+
.replace(`{${"property"}}`, encodeURIComponent(String(property)));
|
|
13327
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13328
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13329
|
+
let baseOptions;
|
|
13330
|
+
if (configuration) {
|
|
13331
|
+
baseOptions = configuration.baseOptions;
|
|
13332
|
+
}
|
|
13333
|
+
|
|
13334
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13335
|
+
const localVarHeaderParameter = {} as any;
|
|
13336
|
+
const localVarQueryParameter = {} as any;
|
|
13337
|
+
|
|
13338
|
+
|
|
13339
|
+
|
|
13340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13341
|
+
|
|
13342
|
+
if (xStoreid != null) {
|
|
13343
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
13344
|
+
}
|
|
13345
|
+
if (xStoresecret != null) {
|
|
13346
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
13347
|
+
}
|
|
13348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13350
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13351
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13352
|
+
|
|
13353
|
+
return {
|
|
13354
|
+
url: toPathString(localVarUrlObj),
|
|
13355
|
+
options: localVarRequestOptions,
|
|
13356
|
+
};
|
|
13357
|
+
},
|
|
13358
|
+
}
|
|
13359
|
+
};
|
|
13360
|
+
|
|
13361
|
+
/**
|
|
13362
|
+
* SearchApi - functional programming interface
|
|
13363
|
+
* @export
|
|
13364
|
+
*/
|
|
13365
|
+
export const SearchApiFp = function(configuration?: Configuration) {
|
|
13366
|
+
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
|
|
13367
|
+
return {
|
|
13368
|
+
/**
|
|
13369
|
+
* Configure the index for search
|
|
13370
|
+
* @summary Index Config
|
|
13371
|
+
* @param {string} xStoreid Store ID
|
|
13372
|
+
* @param {string} xStoresecret Store Secret
|
|
13373
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13374
|
+
* @param {*} [options] Override http request option.
|
|
13375
|
+
* @throws {RequiredError}
|
|
13376
|
+
*/
|
|
13377
|
+
async v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
13378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
|
|
13379
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13380
|
+
const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPost']?.[localVarOperationServerIndex]?.url;
|
|
13381
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13382
|
+
},
|
|
13383
|
+
/**
|
|
13384
|
+
* Update a single property of the index configuration
|
|
13385
|
+
* @summary Update Index Config Property
|
|
13386
|
+
* @param {string} xStoreid Store ID
|
|
13387
|
+
* @param {string} xStoresecret Store Secret
|
|
13388
|
+
* @param {string} property Property name
|
|
13389
|
+
* @param {object} body Property value
|
|
13390
|
+
* @param {*} [options] Override http request option.
|
|
13391
|
+
* @throws {RequiredError}
|
|
13392
|
+
*/
|
|
13393
|
+
async v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
13394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
|
|
13395
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13396
|
+
const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
|
|
13397
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13398
|
+
},
|
|
13399
|
+
/**
|
|
13400
|
+
* Configure the index for search
|
|
13401
|
+
* @summary Index Config
|
|
13402
|
+
* @param {string} xStoreid Store ID
|
|
13403
|
+
* @param {string} xStoresecret Store Secret
|
|
13404
|
+
* @param {string} indexname Index Name
|
|
13405
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13406
|
+
* @param {*} [options] Override http request option.
|
|
13407
|
+
* @throws {RequiredError}
|
|
13408
|
+
*/
|
|
13409
|
+
async v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
13410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
|
|
13411
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13412
|
+
const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPost']?.[localVarOperationServerIndex]?.url;
|
|
13413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13414
|
+
},
|
|
13415
|
+
/**
|
|
13416
|
+
* Update a single property of the index configuration
|
|
13417
|
+
* @summary Update Index Config Property
|
|
13418
|
+
* @param {string} xStoreid Store ID
|
|
13419
|
+
* @param {string} xStoresecret Store Secret
|
|
13420
|
+
* @param {string} indexname Index Name
|
|
13421
|
+
* @param {string} property Property name
|
|
13422
|
+
* @param {object} body Property value
|
|
13423
|
+
* @param {*} [options] Override http request option.
|
|
13424
|
+
* @throws {RequiredError}
|
|
13425
|
+
*/
|
|
13426
|
+
async v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
13427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
|
|
13428
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13429
|
+
const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
|
|
13430
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13431
|
+
},
|
|
13432
|
+
}
|
|
13433
|
+
};
|
|
13434
|
+
|
|
13435
|
+
/**
|
|
13436
|
+
* SearchApi - factory interface
|
|
13437
|
+
* @export
|
|
13438
|
+
*/
|
|
13439
|
+
export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13440
|
+
const localVarFp = SearchApiFp(configuration)
|
|
13441
|
+
return {
|
|
13442
|
+
/**
|
|
13443
|
+
* Configure the index for search
|
|
13444
|
+
* @summary Index Config
|
|
13445
|
+
* @param {string} xStoreid Store ID
|
|
13446
|
+
* @param {string} xStoresecret Store Secret
|
|
13447
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13448
|
+
* @param {*} [options] Override http request option.
|
|
13449
|
+
* @throws {RequiredError}
|
|
13450
|
+
*/
|
|
13451
|
+
v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
13452
|
+
return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
|
|
13453
|
+
},
|
|
13454
|
+
/**
|
|
13455
|
+
* Update a single property of the index configuration
|
|
13456
|
+
* @summary Update Index Config Property
|
|
13457
|
+
* @param {string} xStoreid Store ID
|
|
13458
|
+
* @param {string} xStoresecret Store Secret
|
|
13459
|
+
* @param {string} property Property name
|
|
13460
|
+
* @param {object} body Property value
|
|
13461
|
+
* @param {*} [options] Override http request option.
|
|
13462
|
+
* @throws {RequiredError}
|
|
13463
|
+
*/
|
|
13464
|
+
v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
13465
|
+
return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
|
|
13466
|
+
},
|
|
13467
|
+
/**
|
|
13468
|
+
* Configure the index for search
|
|
13469
|
+
* @summary Index Config
|
|
13470
|
+
* @param {string} xStoreid Store ID
|
|
13471
|
+
* @param {string} xStoresecret Store Secret
|
|
13472
|
+
* @param {string} indexname Index Name
|
|
13473
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13474
|
+
* @param {*} [options] Override http request option.
|
|
13475
|
+
* @throws {RequiredError}
|
|
13476
|
+
*/
|
|
13477
|
+
v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
13478
|
+
return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
|
|
13479
|
+
},
|
|
13480
|
+
/**
|
|
13481
|
+
* Update a single property of the index configuration
|
|
13482
|
+
* @summary Update Index Config Property
|
|
13483
|
+
* @param {string} xStoreid Store ID
|
|
13484
|
+
* @param {string} xStoresecret Store Secret
|
|
13485
|
+
* @param {string} indexname Index Name
|
|
13486
|
+
* @param {string} property Property name
|
|
13487
|
+
* @param {object} body Property value
|
|
13488
|
+
* @param {*} [options] Override http request option.
|
|
13489
|
+
* @throws {RequiredError}
|
|
13490
|
+
*/
|
|
13491
|
+
v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
13492
|
+
return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
|
|
13493
|
+
},
|
|
13494
|
+
};
|
|
13495
|
+
};
|
|
13496
|
+
|
|
13497
|
+
/**
|
|
13498
|
+
* SearchApi - object-oriented interface
|
|
13499
|
+
* @export
|
|
13500
|
+
* @class SearchApi
|
|
13501
|
+
* @extends {BaseAPI}
|
|
13502
|
+
*/
|
|
13503
|
+
export class SearchApi extends BaseAPI {
|
|
13504
|
+
/**
|
|
13505
|
+
* Configure the index for search
|
|
13506
|
+
* @summary Index Config
|
|
13507
|
+
* @param {string} xStoreid Store ID
|
|
13508
|
+
* @param {string} xStoresecret Store Secret
|
|
13509
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13510
|
+
* @param {*} [options] Override http request option.
|
|
13511
|
+
* @throws {RequiredError}
|
|
13512
|
+
* @memberof SearchApi
|
|
13513
|
+
*/
|
|
13514
|
+
public v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
|
|
13515
|
+
return SearchApiFp(this.configuration).v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
|
|
13516
|
+
}
|
|
13517
|
+
|
|
13518
|
+
/**
|
|
13519
|
+
* Update a single property of the index configuration
|
|
13520
|
+
* @summary Update Index Config Property
|
|
13521
|
+
* @param {string} xStoreid Store ID
|
|
13522
|
+
* @param {string} xStoresecret Store Secret
|
|
13523
|
+
* @param {string} property Property name
|
|
13524
|
+
* @param {object} body Property value
|
|
13525
|
+
* @param {*} [options] Override http request option.
|
|
13526
|
+
* @throws {RequiredError}
|
|
13527
|
+
* @memberof SearchApi
|
|
13528
|
+
*/
|
|
13529
|
+
public v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig) {
|
|
13530
|
+
return SearchApiFp(this.configuration).v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(this.axios, this.basePath));
|
|
13531
|
+
}
|
|
13532
|
+
|
|
13533
|
+
/**
|
|
13534
|
+
* Configure the index for search
|
|
13535
|
+
* @summary Index Config
|
|
13536
|
+
* @param {string} xStoreid Store ID
|
|
13537
|
+
* @param {string} xStoresecret Store Secret
|
|
13538
|
+
* @param {string} indexname Index Name
|
|
13539
|
+
* @param {DataTypesIndexConfig} body Index configuration
|
|
13540
|
+
* @param {*} [options] Override http request option.
|
|
13541
|
+
* @throws {RequiredError}
|
|
13542
|
+
* @memberof SearchApi
|
|
13543
|
+
*/
|
|
13544
|
+
public v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
|
|
13545
|
+
return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(this.axios, this.basePath));
|
|
13546
|
+
}
|
|
13547
|
+
|
|
13548
|
+
/**
|
|
13549
|
+
* Update a single property of the index configuration
|
|
13550
|
+
* @summary Update Index Config Property
|
|
13551
|
+
* @param {string} xStoreid Store ID
|
|
13552
|
+
* @param {string} xStoresecret Store Secret
|
|
13553
|
+
* @param {string} indexname Index Name
|
|
13554
|
+
* @param {string} property Property name
|
|
13555
|
+
* @param {object} body Property value
|
|
13556
|
+
* @param {*} [options] Override http request option.
|
|
13557
|
+
* @throws {RequiredError}
|
|
13558
|
+
* @memberof SearchApi
|
|
13559
|
+
*/
|
|
13560
|
+
public v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig) {
|
|
13561
|
+
return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(this.axios, this.basePath));
|
|
13562
|
+
}
|
|
13563
|
+
}
|
|
13564
|
+
|
|
13565
|
+
|
|
13566
|
+
|
|
12895
13567
|
/**
|
|
12896
13568
|
* StoresApi - axios parameter creator
|
|
12897
13569
|
* @export
|