@seekora-ai/admin-api 1.0.60 → 1.0.62

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.0.60
1
+ ## @seekora-ai/admin-api@1.0.62
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.0.60 --save
39
+ npm install @seekora-ai/admin-api@1.0.62 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -233,11 +233,13 @@ Class | Method | HTTP request | Description
233
233
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDPromotePost**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidpromotepost) | **POST** /admin/v1/query-suggestions/{xStoreID}/promote | Promote Cached Suggestions to Management Table
234
234
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDRefreshPost**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidrefreshpost) | **POST** /admin/v1/query-suggestions/{xStoreID}/refresh | Refresh Auto-Generated Suggestions
235
235
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDStatsGet**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidstatsget) | **GET** /admin/v1/query-suggestions/{xStoreID}/stats | Get Suggestion Statistics
236
+ *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDStatusGet**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidstatusget) | **GET** /admin/v1/query-suggestions/{xStoreID}/status | Get Query Suggestions Status for Store
236
237
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDSuggestionIDDelete**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidsuggestioniddelete) | **DELETE** /admin/v1/query-suggestions/{xStoreID}/{suggestionID} | Delete Query Suggestion by ID
237
238
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDSuggestionIDGet**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidsuggestionidget) | **GET** /admin/v1/query-suggestions/{xStoreID}/{suggestionID} | Get Query Suggestion by ID
238
239
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDSuggestionIDPut**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidsuggestionidput) | **PUT** /admin/v1/query-suggestions/{xStoreID}/{suggestionID} | Update Query Suggestion by ID
239
240
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDSuggestionIDStatusPut**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidsuggestionidstatusput) | **PUT** /admin/v1/query-suggestions/{xStoreID}/{suggestionID}/status | Update Suggestion Status
240
241
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDSyncPost**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidsyncpost) | **POST** /admin/v1/query-suggestions/{xStoreID}/sync | Sync Suggestions to Typesense
242
+ *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDTogglePost**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidtogglepost) | **POST** /admin/v1/query-suggestions/{xStoreID}/toggle | Toggle Query Suggestions for Store
241
243
  *QuerySuggestionsManagementApi* | [**adminV1QuerySuggestionsXStoreIDTypesenseGet**](docs/QuerySuggestionsManagementApi.md#adminv1querysuggestionsxstoreidtypesenseget) | **GET** /admin/v1/query-suggestions/{xStoreID}/typesense | Get Query Suggestions from Typesense (Admin)
242
244
  *RefundManagementApi* | [**paymentGatewayRefundApprovalPost**](docs/RefundManagementApi.md#paymentgatewayrefundapprovalpost) | **POST** /payment-gateway/refund-approval | Process refund approval or rejection
243
245
  *RefundManagementApi* | [**paymentGatewayRefundApprovalsGet**](docs/RefundManagementApi.md#paymentgatewayrefundapprovalsget) | **GET** /payment-gateway/refund-approvals | Get pending refund approvals
@@ -431,6 +433,7 @@ Class | Method | HTTP request | Description
431
433
  - [AnalyticsSharedQueryAnalysis](docs/AnalyticsSharedQueryAnalysis.md)
432
434
  - [AnalyticsSuggestionCategory](docs/AnalyticsSuggestionCategory.md)
433
435
  - [AnalyticsTimeSeriesPoint](docs/AnalyticsTimeSeriesPoint.md)
436
+ - [AnalyticsToggleQuerySuggestionsRequest](docs/AnalyticsToggleQuerySuggestionsRequest.md)
434
437
  - [AnalyticsUpdateSuggestionConfigRequest](docs/AnalyticsUpdateSuggestionConfigRequest.md)
435
438
  - [AnalyticsUpdateSuggestionRequest](docs/AnalyticsUpdateSuggestionRequest.md)
436
439
  - [AnalyticsWidgetData](docs/AnalyticsWidgetData.md)
package/api.ts CHANGED
@@ -5389,6 +5389,12 @@ export interface AnalyticsQuerySuggestionConfig {
5389
5389
  * @memberof AnalyticsQuerySuggestionConfig
5390
5390
  */
5391
5391
  'enable_category_suggestions'?: boolean;
5392
+ /**
5393
+ * Whether to include facet-based suggestions
5394
+ * @type {boolean}
5395
+ * @memberof AnalyticsQuerySuggestionConfig
5396
+ */
5397
+ 'enable_facet_suggestions'?: boolean;
5392
5398
  /**
5393
5399
  * Whether query suggestions are enabled for the store
5394
5400
  * @type {boolean}
@@ -5986,12 +5992,37 @@ export interface AnalyticsTimeSeriesPoint {
5986
5992
  */
5987
5993
  'value'?: number;
5988
5994
  }
5995
+ /**
5996
+ *
5997
+ * @export
5998
+ * @interface AnalyticsToggleQuerySuggestionsRequest
5999
+ */
6000
+ export interface AnalyticsToggleQuerySuggestionsRequest {
6001
+ /**
6002
+ * true to enable, false to disable
6003
+ * @type {boolean}
6004
+ * @memberof AnalyticsToggleQuerySuggestionsRequest
6005
+ */
6006
+ 'enabled': boolean;
6007
+ }
5989
6008
  /**
5990
6009
  *
5991
6010
  * @export
5992
6011
  * @interface AnalyticsUpdateSuggestionConfigRequest
5993
6012
  */
5994
6013
  export interface AnalyticsUpdateSuggestionConfigRequest {
6014
+ /**
6015
+ * Enable/disable facet-based suggestions
6016
+ * @type {boolean}
6017
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6018
+ */
6019
+ 'enable_facet_suggestions'?: boolean;
6020
+ /**
6021
+ * Enable/disable query suggestions for the store
6022
+ * @type {boolean}
6023
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6024
+ */
6025
+ 'enabled'?: boolean;
5995
6026
  /**
5996
6027
  * Enable/disable auto-generated suggestions
5997
6028
  * @type {boolean}
@@ -13404,6 +13435,12 @@ export interface DataTypesQuerySuggestionsConfig {
13404
13435
  * @memberof DataTypesQuerySuggestionsConfig
13405
13436
  */
13406
13437
  'enable_category_suggestions'?: boolean;
13438
+ /**
13439
+ * Whether to include facet-based suggestions
13440
+ * @type {boolean}
13441
+ * @memberof DataTypesQuerySuggestionsConfig
13442
+ */
13443
+ 'enable_facet_suggestions'?: boolean;
13407
13444
  /**
13408
13445
  * Whether query suggestions are enabled for the store
13409
13446
  * @type {boolean}
@@ -34115,7 +34152,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
34115
34152
  };
34116
34153
  },
34117
34154
  /**
34118
- * Enable or disable auto-generated and manual query suggestions for a store
34155
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
34119
34156
  * @summary Update Query Suggestions Configuration
34120
34157
  * @param {string} xStoreID Store ID
34121
34158
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -34565,6 +34602,43 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
34565
34602
 
34566
34603
 
34567
34604
 
34605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34607
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34608
+
34609
+ return {
34610
+ url: toPathString(localVarUrlObj),
34611
+ options: localVarRequestOptions,
34612
+ };
34613
+ },
34614
+ /**
34615
+ * Get the current enabled/disabled status of query suggestions for a specific store
34616
+ * @summary Get Query Suggestions Status for Store
34617
+ * @param {string} xStoreID Store ID
34618
+ * @param {*} [options] Override http request option.
34619
+ * @throws {RequiredError}
34620
+ */
34621
+ adminV1QuerySuggestionsXStoreIDStatusGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34622
+ // verify required parameter 'xStoreID' is not null or undefined
34623
+ assertParamExists('adminV1QuerySuggestionsXStoreIDStatusGet', 'xStoreID', xStoreID)
34624
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/status`
34625
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
34626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34627
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34628
+ let baseOptions;
34629
+ if (configuration) {
34630
+ baseOptions = configuration.baseOptions;
34631
+ }
34632
+
34633
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34634
+ const localVarHeaderParameter = {} as any;
34635
+ const localVarQueryParameter = {} as any;
34636
+
34637
+ // authentication BearerAuth required
34638
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
34639
+
34640
+
34641
+
34568
34642
  setSearchParams(localVarUrlObj, localVarQueryParameter);
34569
34643
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34570
34644
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -34788,6 +34862,49 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
34788
34862
  options: localVarRequestOptions,
34789
34863
  };
34790
34864
  },
34865
+ /**
34866
+ * Enable or disable query suggestions for a specific store
34867
+ * @summary Toggle Query Suggestions for Store
34868
+ * @param {string} xStoreID Store ID
34869
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
34870
+ * @param {*} [options] Override http request option.
34871
+ * @throws {RequiredError}
34872
+ */
34873
+ adminV1QuerySuggestionsXStoreIDTogglePost: async (xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34874
+ // verify required parameter 'xStoreID' is not null or undefined
34875
+ assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'xStoreID', xStoreID)
34876
+ // verify required parameter 'analyticsToggleQuerySuggestionsRequest' is not null or undefined
34877
+ assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'analyticsToggleQuerySuggestionsRequest', analyticsToggleQuerySuggestionsRequest)
34878
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/toggle`
34879
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
34880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34882
+ let baseOptions;
34883
+ if (configuration) {
34884
+ baseOptions = configuration.baseOptions;
34885
+ }
34886
+
34887
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34888
+ const localVarHeaderParameter = {} as any;
34889
+ const localVarQueryParameter = {} as any;
34890
+
34891
+ // authentication BearerAuth required
34892
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
34893
+
34894
+
34895
+
34896
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34897
+
34898
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34899
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34900
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34901
+ localVarRequestOptions.data = serializeDataIfNeeded(analyticsToggleQuerySuggestionsRequest, localVarRequestOptions, configuration)
34902
+
34903
+ return {
34904
+ url: toPathString(localVarUrlObj),
34905
+ options: localVarRequestOptions,
34906
+ };
34907
+ },
34791
34908
  /**
34792
34909
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
34793
34910
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -34908,7 +35025,7 @@ export const QuerySuggestionsManagementApiFp = function(configuration?: Configur
34908
35025
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34909
35026
  },
34910
35027
  /**
34911
- * Enable or disable auto-generated and manual query suggestions for a store
35028
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
34912
35029
  * @summary Update Query Suggestions Configuration
34913
35030
  * @param {string} xStoreID Store ID
34914
35031
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -35054,6 +35171,19 @@ export const QuerySuggestionsManagementApiFp = function(configuration?: Configur
35054
35171
  const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDStatsGet']?.[localVarOperationServerIndex]?.url;
35055
35172
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35056
35173
  },
35174
+ /**
35175
+ * Get the current enabled/disabled status of query suggestions for a specific store
35176
+ * @summary Get Query Suggestions Status for Store
35177
+ * @param {string} xStoreID Store ID
35178
+ * @param {*} [options] Override http request option.
35179
+ * @throws {RequiredError}
35180
+ */
35181
+ async adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response>> {
35182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options);
35183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35184
+ const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDStatusGet']?.[localVarOperationServerIndex]?.url;
35185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35186
+ },
35057
35187
  /**
35058
35188
  * Delete a single query suggestion by its ID
35059
35189
  * @summary Delete Query Suggestion by ID
@@ -35125,6 +35255,20 @@ export const QuerySuggestionsManagementApiFp = function(configuration?: Configur
35125
35255
  const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDSyncPost']?.[localVarOperationServerIndex]?.url;
35126
35256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35127
35257
  },
35258
+ /**
35259
+ * Enable or disable query suggestions for a specific store
35260
+ * @summary Toggle Query Suggestions for Store
35261
+ * @param {string} xStoreID Store ID
35262
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
35263
+ * @param {*} [options] Override http request option.
35264
+ * @throws {RequiredError}
35265
+ */
35266
+ async adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>> {
35267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options);
35268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35269
+ const localVarOperationServerBasePath = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDTogglePost']?.[localVarOperationServerIndex]?.url;
35270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35271
+ },
35128
35272
  /**
35129
35273
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
35130
35274
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -35197,7 +35341,7 @@ export const QuerySuggestionsManagementApiFactory = function (configuration?: Co
35197
35341
  return localVarFp.adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
35198
35342
  },
35199
35343
  /**
35200
- * Enable or disable auto-generated and manual query suggestions for a store
35344
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
35201
35345
  * @summary Update Query Suggestions Configuration
35202
35346
  * @param {string} xStoreID Store ID
35203
35347
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -35313,6 +35457,16 @@ export const QuerySuggestionsManagementApiFactory = function (configuration?: Co
35313
35457
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDStatsGet200Response> {
35314
35458
  return localVarFp.adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(axios, basePath));
35315
35459
  },
35460
+ /**
35461
+ * Get the current enabled/disabled status of query suggestions for a specific store
35462
+ * @summary Get Query Suggestions Status for Store
35463
+ * @param {string} xStoreID Store ID
35464
+ * @param {*} [options] Override http request option.
35465
+ * @throws {RequiredError}
35466
+ */
35467
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response> {
35468
+ return localVarFp.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(axios, basePath));
35469
+ },
35316
35470
  /**
35317
35471
  * Delete a single query suggestion by its ID
35318
35472
  * @summary Delete Query Suggestion by ID
@@ -35369,6 +35523,17 @@ export const QuerySuggestionsManagementApiFactory = function (configuration?: Co
35369
35523
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse> {
35370
35524
  return localVarFp.adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(axios, basePath));
35371
35525
  },
35526
+ /**
35527
+ * Enable or disable query suggestions for a specific store
35528
+ * @summary Toggle Query Suggestions for Store
35529
+ * @param {string} xStoreID Store ID
35530
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
35531
+ * @param {*} [options] Override http request option.
35532
+ * @throws {RequiredError}
35533
+ */
35534
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse> {
35535
+ return localVarFp.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
35536
+ },
35372
35537
  /**
35373
35538
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
35374
35539
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -35446,7 +35611,7 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
35446
35611
  }
35447
35612
 
35448
35613
  /**
35449
- * Enable or disable auto-generated and manual query suggestions for a store
35614
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
35450
35615
  * @summary Update Query Suggestions Configuration
35451
35616
  * @param {string} xStoreID Store ID
35452
35617
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -35582,6 +35747,18 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
35582
35747
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
35583
35748
  }
35584
35749
 
35750
+ /**
35751
+ * Get the current enabled/disabled status of query suggestions for a specific store
35752
+ * @summary Get Query Suggestions Status for Store
35753
+ * @param {string} xStoreID Store ID
35754
+ * @param {*} [options] Override http request option.
35755
+ * @throws {RequiredError}
35756
+ * @memberof QuerySuggestionsManagementApi
35757
+ */
35758
+ public adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig) {
35759
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
35760
+ }
35761
+
35585
35762
  /**
35586
35763
  * Delete a single query suggestion by its ID
35587
35764
  * @summary Delete Query Suggestion by ID
@@ -35648,6 +35825,19 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
35648
35825
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
35649
35826
  }
35650
35827
 
35828
+ /**
35829
+ * Enable or disable query suggestions for a specific store
35830
+ * @summary Toggle Query Suggestions for Store
35831
+ * @param {string} xStoreID Store ID
35832
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
35833
+ * @param {*} [options] Override http request option.
35834
+ * @throws {RequiredError}
35835
+ * @memberof QuerySuggestionsManagementApi
35836
+ */
35837
+ public adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig) {
35838
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
35839
+ }
35840
+
35651
35841
  /**
35652
35842
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
35653
35843
  * @summary Get Query Suggestions from Typesense (Admin)
package/dist/api.d.ts CHANGED
@@ -5391,6 +5391,12 @@ export interface AnalyticsQuerySuggestionConfig {
5391
5391
  * @memberof AnalyticsQuerySuggestionConfig
5392
5392
  */
5393
5393
  'enable_category_suggestions'?: boolean;
5394
+ /**
5395
+ * Whether to include facet-based suggestions
5396
+ * @type {boolean}
5397
+ * @memberof AnalyticsQuerySuggestionConfig
5398
+ */
5399
+ 'enable_facet_suggestions'?: boolean;
5394
5400
  /**
5395
5401
  * Whether query suggestions are enabled for the store
5396
5402
  * @type {boolean}
@@ -5986,12 +5992,37 @@ export interface AnalyticsTimeSeriesPoint {
5986
5992
  */
5987
5993
  'value'?: number;
5988
5994
  }
5995
+ /**
5996
+ *
5997
+ * @export
5998
+ * @interface AnalyticsToggleQuerySuggestionsRequest
5999
+ */
6000
+ export interface AnalyticsToggleQuerySuggestionsRequest {
6001
+ /**
6002
+ * true to enable, false to disable
6003
+ * @type {boolean}
6004
+ * @memberof AnalyticsToggleQuerySuggestionsRequest
6005
+ */
6006
+ 'enabled': boolean;
6007
+ }
5989
6008
  /**
5990
6009
  *
5991
6010
  * @export
5992
6011
  * @interface AnalyticsUpdateSuggestionConfigRequest
5993
6012
  */
5994
6013
  export interface AnalyticsUpdateSuggestionConfigRequest {
6014
+ /**
6015
+ * Enable/disable facet-based suggestions
6016
+ * @type {boolean}
6017
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6018
+ */
6019
+ 'enable_facet_suggestions'?: boolean;
6020
+ /**
6021
+ * Enable/disable query suggestions for the store
6022
+ * @type {boolean}
6023
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6024
+ */
6025
+ 'enabled'?: boolean;
5995
6026
  /**
5996
6027
  * Enable/disable auto-generated suggestions
5997
6028
  * @type {boolean}
@@ -13434,6 +13465,12 @@ export interface DataTypesQuerySuggestionsConfig {
13434
13465
  * @memberof DataTypesQuerySuggestionsConfig
13435
13466
  */
13436
13467
  'enable_category_suggestions'?: boolean;
13468
+ /**
13469
+ * Whether to include facet-based suggestions
13470
+ * @type {boolean}
13471
+ * @memberof DataTypesQuerySuggestionsConfig
13472
+ */
13473
+ 'enable_facet_suggestions'?: boolean;
13437
13474
  /**
13438
13475
  * Whether query suggestions are enabled for the store
13439
13476
  * @type {boolean}
@@ -25319,7 +25356,7 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25319
25356
  */
25320
25357
  adminV1QuerySuggestionsXStoreIDConfigGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25321
25358
  /**
25322
- * Enable or disable auto-generated and manual query suggestions for a store
25359
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25323
25360
  * @summary Update Query Suggestions Configuration
25324
25361
  * @param {string} xStoreID Store ID
25325
25362
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25415,6 +25452,14 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25415
25452
  * @throws {RequiredError}
25416
25453
  */
25417
25454
  adminV1QuerySuggestionsXStoreIDStatsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25455
+ /**
25456
+ * Get the current enabled/disabled status of query suggestions for a specific store
25457
+ * @summary Get Query Suggestions Status for Store
25458
+ * @param {string} xStoreID Store ID
25459
+ * @param {*} [options] Override http request option.
25460
+ * @throws {RequiredError}
25461
+ */
25462
+ adminV1QuerySuggestionsXStoreIDStatusGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25418
25463
  /**
25419
25464
  * Delete a single query suggestion by its ID
25420
25465
  * @summary Delete Query Suggestion by ID
@@ -25461,6 +25506,15 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25461
25506
  * @throws {RequiredError}
25462
25507
  */
25463
25508
  adminV1QuerySuggestionsXStoreIDSyncPost: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25509
+ /**
25510
+ * Enable or disable query suggestions for a specific store
25511
+ * @summary Toggle Query Suggestions for Store
25512
+ * @param {string} xStoreID Store ID
25513
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25514
+ * @param {*} [options] Override http request option.
25515
+ * @throws {RequiredError}
25516
+ */
25517
+ adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25464
25518
  /**
25465
25519
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25466
25520
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25516,7 +25570,7 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25516
25570
  */
25517
25571
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDConfigGet200Response>>;
25518
25572
  /**
25519
- * Enable or disable auto-generated and manual query suggestions for a store
25573
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25520
25574
  * @summary Update Query Suggestions Configuration
25521
25575
  * @param {string} xStoreID Store ID
25522
25576
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25612,6 +25666,14 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25612
25666
  * @throws {RequiredError}
25613
25667
  */
25614
25668
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDStatsGet200Response>>;
25669
+ /**
25670
+ * Get the current enabled/disabled status of query suggestions for a specific store
25671
+ * @summary Get Query Suggestions Status for Store
25672
+ * @param {string} xStoreID Store ID
25673
+ * @param {*} [options] Override http request option.
25674
+ * @throws {RequiredError}
25675
+ */
25676
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response>>;
25615
25677
  /**
25616
25678
  * Delete a single query suggestion by its ID
25617
25679
  * @summary Delete Query Suggestion by ID
@@ -25658,6 +25720,15 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25658
25720
  * @throws {RequiredError}
25659
25721
  */
25660
25722
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>>;
25723
+ /**
25724
+ * Enable or disable query suggestions for a specific store
25725
+ * @summary Toggle Query Suggestions for Store
25726
+ * @param {string} xStoreID Store ID
25727
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25728
+ * @param {*} [options] Override http request option.
25729
+ * @throws {RequiredError}
25730
+ */
25731
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>>;
25661
25732
  /**
25662
25733
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25663
25734
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25713,7 +25784,7 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25713
25784
  */
25714
25785
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDConfigGet200Response>;
25715
25786
  /**
25716
- * Enable or disable auto-generated and manual query suggestions for a store
25787
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25717
25788
  * @summary Update Query Suggestions Configuration
25718
25789
  * @param {string} xStoreID Store ID
25719
25790
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25809,6 +25880,14 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25809
25880
  * @throws {RequiredError}
25810
25881
  */
25811
25882
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDStatsGet200Response>;
25883
+ /**
25884
+ * Get the current enabled/disabled status of query suggestions for a specific store
25885
+ * @summary Get Query Suggestions Status for Store
25886
+ * @param {string} xStoreID Store ID
25887
+ * @param {*} [options] Override http request option.
25888
+ * @throws {RequiredError}
25889
+ */
25890
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response>;
25812
25891
  /**
25813
25892
  * Delete a single query suggestion by its ID
25814
25893
  * @summary Delete Query Suggestion by ID
@@ -25855,6 +25934,15 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25855
25934
  * @throws {RequiredError}
25856
25935
  */
25857
25936
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse>;
25937
+ /**
25938
+ * Enable or disable query suggestions for a specific store
25939
+ * @summary Toggle Query Suggestions for Store
25940
+ * @param {string} xStoreID Store ID
25941
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25942
+ * @param {*} [options] Override http request option.
25943
+ * @throws {RequiredError}
25944
+ */
25945
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse>;
25858
25946
  /**
25859
25947
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25860
25948
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25916,7 +26004,7 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
25916
26004
  */
25917
26005
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDConfigGet200Response, any, {}>>;
25918
26006
  /**
25919
- * Enable or disable auto-generated and manual query suggestions for a store
26007
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25920
26008
  * @summary Update Query Suggestions Configuration
25921
26009
  * @param {string} xStoreID Store ID
25922
26010
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -26022,6 +26110,15 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
26022
26110
  * @memberof QuerySuggestionsManagementApi
26023
26111
  */
26024
26112
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDStatsGet200Response, any, {}>>;
26113
+ /**
26114
+ * Get the current enabled/disabled status of query suggestions for a specific store
26115
+ * @summary Get Query Suggestions Status for Store
26116
+ * @param {string} xStoreID Store ID
26117
+ * @param {*} [options] Override http request option.
26118
+ * @throws {RequiredError}
26119
+ * @memberof QuerySuggestionsManagementApi
26120
+ */
26121
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response, any, {}>>;
26025
26122
  /**
26026
26123
  * Delete a single query suggestion by its ID
26027
26124
  * @summary Delete Query Suggestion by ID
@@ -26073,6 +26170,16 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
26073
26170
  * @memberof QuerySuggestionsManagementApi
26074
26171
  */
26075
26172
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAnalyticsAPIResponse, any, {}>>;
26173
+ /**
26174
+ * Enable or disable query suggestions for a specific store
26175
+ * @summary Toggle Query Suggestions for Store
26176
+ * @param {string} xStoreID Store ID
26177
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
26178
+ * @param {*} [options] Override http request option.
26179
+ * @throws {RequiredError}
26180
+ * @memberof QuerySuggestionsManagementApi
26181
+ */
26182
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAnalyticsAPIResponse, any, {}>>;
26076
26183
  /**
26077
26184
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
26078
26185
  * @summary Get Query Suggestions from Typesense (Admin)
package/dist/api.js CHANGED
@@ -16229,7 +16229,7 @@ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration)
16229
16229
  };
16230
16230
  }),
16231
16231
  /**
16232
- * Enable or disable auto-generated and manual query suggestions for a store
16232
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
16233
16233
  * @summary Update Query Suggestions Configuration
16234
16234
  * @param {string} xStoreID Store ID
16235
16235
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -16611,6 +16611,37 @@ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration)
16611
16611
  options: localVarRequestOptions,
16612
16612
  };
16613
16613
  }),
16614
+ /**
16615
+ * Get the current enabled/disabled status of query suggestions for a specific store
16616
+ * @summary Get Query Suggestions Status for Store
16617
+ * @param {string} xStoreID Store ID
16618
+ * @param {*} [options] Override http request option.
16619
+ * @throws {RequiredError}
16620
+ */
16621
+ adminV1QuerySuggestionsXStoreIDStatusGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
16622
+ // verify required parameter 'xStoreID' is not null or undefined
16623
+ (0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDStatusGet', 'xStoreID', xStoreID);
16624
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/status`
16625
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
16626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16627
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16628
+ let baseOptions;
16629
+ if (configuration) {
16630
+ baseOptions = configuration.baseOptions;
16631
+ }
16632
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16633
+ const localVarHeaderParameter = {};
16634
+ const localVarQueryParameter = {};
16635
+ // authentication BearerAuth required
16636
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16637
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16639
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16640
+ return {
16641
+ url: (0, common_1.toPathString)(localVarUrlObj),
16642
+ options: localVarRequestOptions,
16643
+ };
16644
+ }),
16614
16645
  /**
16615
16646
  * Delete a single query suggestion by its ID
16616
16647
  * @summary Delete Query Suggestion by ID
@@ -16793,6 +16824,42 @@ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration)
16793
16824
  options: localVarRequestOptions,
16794
16825
  };
16795
16826
  }),
16827
+ /**
16828
+ * Enable or disable query suggestions for a specific store
16829
+ * @summary Toggle Query Suggestions for Store
16830
+ * @param {string} xStoreID Store ID
16831
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
16832
+ * @param {*} [options] Override http request option.
16833
+ * @throws {RequiredError}
16834
+ */
16835
+ adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsToggleQuerySuggestionsRequest, options = {}) {
16836
+ // verify required parameter 'xStoreID' is not null or undefined
16837
+ (0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDTogglePost', 'xStoreID', xStoreID);
16838
+ // verify required parameter 'analyticsToggleQuerySuggestionsRequest' is not null or undefined
16839
+ (0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDTogglePost', 'analyticsToggleQuerySuggestionsRequest', analyticsToggleQuerySuggestionsRequest);
16840
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/toggle`
16841
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
16842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16843
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16844
+ let baseOptions;
16845
+ if (configuration) {
16846
+ baseOptions = configuration.baseOptions;
16847
+ }
16848
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16849
+ const localVarHeaderParameter = {};
16850
+ const localVarQueryParameter = {};
16851
+ // authentication BearerAuth required
16852
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16853
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16854
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16855
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16856
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16857
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(analyticsToggleQuerySuggestionsRequest, localVarRequestOptions, configuration);
16858
+ return {
16859
+ url: (0, common_1.toPathString)(localVarUrlObj),
16860
+ options: localVarRequestOptions,
16861
+ };
16862
+ }),
16796
16863
  /**
16797
16864
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
16798
16865
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -16916,7 +16983,7 @@ const QuerySuggestionsManagementApiFp = function (configuration) {
16916
16983
  });
16917
16984
  },
16918
16985
  /**
16919
- * Enable or disable auto-generated and manual query suggestions for a store
16986
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
16920
16987
  * @summary Update Query Suggestions Configuration
16921
16988
  * @param {string} xStoreID Store ID
16922
16989
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -17092,6 +17159,22 @@ const QuerySuggestionsManagementApiFp = function (configuration) {
17092
17159
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17093
17160
  });
17094
17161
  },
17162
+ /**
17163
+ * Get the current enabled/disabled status of query suggestions for a specific store
17164
+ * @summary Get Query Suggestions Status for Store
17165
+ * @param {string} xStoreID Store ID
17166
+ * @param {*} [options] Override http request option.
17167
+ * @throws {RequiredError}
17168
+ */
17169
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17170
+ return __awaiter(this, void 0, void 0, function* () {
17171
+ var _a, _b, _c;
17172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options);
17173
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17174
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17175
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17176
+ });
17177
+ },
17095
17178
  /**
17096
17179
  * Delete a single query suggestion by its ID
17097
17180
  * @summary Delete Query Suggestion by ID
@@ -17178,6 +17261,23 @@ const QuerySuggestionsManagementApiFp = function (configuration) {
17178
17261
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17179
17262
  });
17180
17263
  },
17264
+ /**
17265
+ * Enable or disable query suggestions for a specific store
17266
+ * @summary Toggle Query Suggestions for Store
17267
+ * @param {string} xStoreID Store ID
17268
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17269
+ * @param {*} [options] Override http request option.
17270
+ * @throws {RequiredError}
17271
+ */
17272
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17273
+ return __awaiter(this, void 0, void 0, function* () {
17274
+ var _a, _b, _c;
17275
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options);
17276
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17277
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDTogglePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17278
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17279
+ });
17280
+ },
17181
17281
  /**
17182
17282
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17183
17283
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -17253,7 +17353,7 @@ const QuerySuggestionsManagementApiFactory = function (configuration, basePath,
17253
17353
  return localVarFp.adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
17254
17354
  },
17255
17355
  /**
17256
- * Enable or disable auto-generated and manual query suggestions for a store
17356
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
17257
17357
  * @summary Update Query Suggestions Configuration
17258
17358
  * @param {string} xStoreID Store ID
17259
17359
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -17369,6 +17469,16 @@ const QuerySuggestionsManagementApiFactory = function (configuration, basePath,
17369
17469
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options) {
17370
17470
  return localVarFp.adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(axios, basePath));
17371
17471
  },
17472
+ /**
17473
+ * Get the current enabled/disabled status of query suggestions for a specific store
17474
+ * @summary Get Query Suggestions Status for Store
17475
+ * @param {string} xStoreID Store ID
17476
+ * @param {*} [options] Override http request option.
17477
+ * @throws {RequiredError}
17478
+ */
17479
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17480
+ return localVarFp.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(axios, basePath));
17481
+ },
17372
17482
  /**
17373
17483
  * Delete a single query suggestion by its ID
17374
17484
  * @summary Delete Query Suggestion by ID
@@ -17425,6 +17535,17 @@ const QuerySuggestionsManagementApiFactory = function (configuration, basePath,
17425
17535
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options) {
17426
17536
  return localVarFp.adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(axios, basePath));
17427
17537
  },
17538
+ /**
17539
+ * Enable or disable query suggestions for a specific store
17540
+ * @summary Toggle Query Suggestions for Store
17541
+ * @param {string} xStoreID Store ID
17542
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17543
+ * @param {*} [options] Override http request option.
17544
+ * @throws {RequiredError}
17545
+ */
17546
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17547
+ return localVarFp.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
17548
+ },
17428
17549
  /**
17429
17550
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17430
17551
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -17498,7 +17619,7 @@ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
17498
17619
  return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17499
17620
  }
17500
17621
  /**
17501
- * Enable or disable auto-generated and manual query suggestions for a store
17622
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
17502
17623
  * @summary Update Query Suggestions Configuration
17503
17624
  * @param {string} xStoreID Store ID
17504
17625
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -17624,6 +17745,17 @@ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
17624
17745
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options) {
17625
17746
  return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17626
17747
  }
17748
+ /**
17749
+ * Get the current enabled/disabled status of query suggestions for a specific store
17750
+ * @summary Get Query Suggestions Status for Store
17751
+ * @param {string} xStoreID Store ID
17752
+ * @param {*} [options] Override http request option.
17753
+ * @throws {RequiredError}
17754
+ * @memberof QuerySuggestionsManagementApi
17755
+ */
17756
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17757
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17758
+ }
17627
17759
  /**
17628
17760
  * Delete a single query suggestion by its ID
17629
17761
  * @summary Delete Query Suggestion by ID
@@ -17685,6 +17817,18 @@ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
17685
17817
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options) {
17686
17818
  return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
17687
17819
  }
17820
+ /**
17821
+ * Enable or disable query suggestions for a specific store
17822
+ * @summary Toggle Query Suggestions for Store
17823
+ * @param {string} xStoreID Store ID
17824
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17825
+ * @param {*} [options] Override http request option.
17826
+ * @throws {RequiredError}
17827
+ * @memberof QuerySuggestionsManagementApi
17828
+ */
17829
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17830
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
17831
+ }
17688
17832
  /**
17689
17833
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17690
17834
  * @summary Get Query Suggestions from Typesense (Admin)
package/dist/esm/api.d.ts CHANGED
@@ -5391,6 +5391,12 @@ export interface AnalyticsQuerySuggestionConfig {
5391
5391
  * @memberof AnalyticsQuerySuggestionConfig
5392
5392
  */
5393
5393
  'enable_category_suggestions'?: boolean;
5394
+ /**
5395
+ * Whether to include facet-based suggestions
5396
+ * @type {boolean}
5397
+ * @memberof AnalyticsQuerySuggestionConfig
5398
+ */
5399
+ 'enable_facet_suggestions'?: boolean;
5394
5400
  /**
5395
5401
  * Whether query suggestions are enabled for the store
5396
5402
  * @type {boolean}
@@ -5986,12 +5992,37 @@ export interface AnalyticsTimeSeriesPoint {
5986
5992
  */
5987
5993
  'value'?: number;
5988
5994
  }
5995
+ /**
5996
+ *
5997
+ * @export
5998
+ * @interface AnalyticsToggleQuerySuggestionsRequest
5999
+ */
6000
+ export interface AnalyticsToggleQuerySuggestionsRequest {
6001
+ /**
6002
+ * true to enable, false to disable
6003
+ * @type {boolean}
6004
+ * @memberof AnalyticsToggleQuerySuggestionsRequest
6005
+ */
6006
+ 'enabled': boolean;
6007
+ }
5989
6008
  /**
5990
6009
  *
5991
6010
  * @export
5992
6011
  * @interface AnalyticsUpdateSuggestionConfigRequest
5993
6012
  */
5994
6013
  export interface AnalyticsUpdateSuggestionConfigRequest {
6014
+ /**
6015
+ * Enable/disable facet-based suggestions
6016
+ * @type {boolean}
6017
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6018
+ */
6019
+ 'enable_facet_suggestions'?: boolean;
6020
+ /**
6021
+ * Enable/disable query suggestions for the store
6022
+ * @type {boolean}
6023
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6024
+ */
6025
+ 'enabled'?: boolean;
5995
6026
  /**
5996
6027
  * Enable/disable auto-generated suggestions
5997
6028
  * @type {boolean}
@@ -13434,6 +13465,12 @@ export interface DataTypesQuerySuggestionsConfig {
13434
13465
  * @memberof DataTypesQuerySuggestionsConfig
13435
13466
  */
13436
13467
  'enable_category_suggestions'?: boolean;
13468
+ /**
13469
+ * Whether to include facet-based suggestions
13470
+ * @type {boolean}
13471
+ * @memberof DataTypesQuerySuggestionsConfig
13472
+ */
13473
+ 'enable_facet_suggestions'?: boolean;
13437
13474
  /**
13438
13475
  * Whether query suggestions are enabled for the store
13439
13476
  * @type {boolean}
@@ -25319,7 +25356,7 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25319
25356
  */
25320
25357
  adminV1QuerySuggestionsXStoreIDConfigGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25321
25358
  /**
25322
- * Enable or disable auto-generated and manual query suggestions for a store
25359
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25323
25360
  * @summary Update Query Suggestions Configuration
25324
25361
  * @param {string} xStoreID Store ID
25325
25362
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25415,6 +25452,14 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25415
25452
  * @throws {RequiredError}
25416
25453
  */
25417
25454
  adminV1QuerySuggestionsXStoreIDStatsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25455
+ /**
25456
+ * Get the current enabled/disabled status of query suggestions for a specific store
25457
+ * @summary Get Query Suggestions Status for Store
25458
+ * @param {string} xStoreID Store ID
25459
+ * @param {*} [options] Override http request option.
25460
+ * @throws {RequiredError}
25461
+ */
25462
+ adminV1QuerySuggestionsXStoreIDStatusGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25418
25463
  /**
25419
25464
  * Delete a single query suggestion by its ID
25420
25465
  * @summary Delete Query Suggestion by ID
@@ -25461,6 +25506,15 @@ export declare const QuerySuggestionsManagementApiAxiosParamCreator: (configurat
25461
25506
  * @throws {RequiredError}
25462
25507
  */
25463
25508
  adminV1QuerySuggestionsXStoreIDSyncPost: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25509
+ /**
25510
+ * Enable or disable query suggestions for a specific store
25511
+ * @summary Toggle Query Suggestions for Store
25512
+ * @param {string} xStoreID Store ID
25513
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25514
+ * @param {*} [options] Override http request option.
25515
+ * @throws {RequiredError}
25516
+ */
25517
+ adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25464
25518
  /**
25465
25519
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25466
25520
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25516,7 +25570,7 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25516
25570
  */
25517
25571
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDConfigGet200Response>>;
25518
25572
  /**
25519
- * Enable or disable auto-generated and manual query suggestions for a store
25573
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25520
25574
  * @summary Update Query Suggestions Configuration
25521
25575
  * @param {string} xStoreID Store ID
25522
25576
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25612,6 +25666,14 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25612
25666
  * @throws {RequiredError}
25613
25667
  */
25614
25668
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDStatsGet200Response>>;
25669
+ /**
25670
+ * Get the current enabled/disabled status of query suggestions for a specific store
25671
+ * @summary Get Query Suggestions Status for Store
25672
+ * @param {string} xStoreID Store ID
25673
+ * @param {*} [options] Override http request option.
25674
+ * @throws {RequiredError}
25675
+ */
25676
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response>>;
25615
25677
  /**
25616
25678
  * Delete a single query suggestion by its ID
25617
25679
  * @summary Delete Query Suggestion by ID
@@ -25658,6 +25720,15 @@ export declare const QuerySuggestionsManagementApiFp: (configuration?: Configura
25658
25720
  * @throws {RequiredError}
25659
25721
  */
25660
25722
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>>;
25723
+ /**
25724
+ * Enable or disable query suggestions for a specific store
25725
+ * @summary Toggle Query Suggestions for Store
25726
+ * @param {string} xStoreID Store ID
25727
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25728
+ * @param {*} [options] Override http request option.
25729
+ * @throws {RequiredError}
25730
+ */
25731
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAnalyticsAPIResponse>>;
25661
25732
  /**
25662
25733
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25663
25734
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25713,7 +25784,7 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25713
25784
  */
25714
25785
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDConfigGet200Response>;
25715
25786
  /**
25716
- * Enable or disable auto-generated and manual query suggestions for a store
25787
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25717
25788
  * @summary Update Query Suggestions Configuration
25718
25789
  * @param {string} xStoreID Store ID
25719
25790
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -25809,6 +25880,14 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25809
25880
  * @throws {RequiredError}
25810
25881
  */
25811
25882
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDStatsGet200Response>;
25883
+ /**
25884
+ * Get the current enabled/disabled status of query suggestions for a specific store
25885
+ * @summary Get Query Suggestions Status for Store
25886
+ * @param {string} xStoreID Store ID
25887
+ * @param {*} [options] Override http request option.
25888
+ * @throws {RequiredError}
25889
+ */
25890
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response>;
25812
25891
  /**
25813
25892
  * Delete a single query suggestion by its ID
25814
25893
  * @summary Delete Query Suggestion by ID
@@ -25855,6 +25934,15 @@ export declare const QuerySuggestionsManagementApiFactory: (configuration?: Conf
25855
25934
  * @throws {RequiredError}
25856
25935
  */
25857
25936
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse>;
25937
+ /**
25938
+ * Enable or disable query suggestions for a specific store
25939
+ * @summary Toggle Query Suggestions for Store
25940
+ * @param {string} xStoreID Store ID
25941
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25942
+ * @param {*} [options] Override http request option.
25943
+ * @throws {RequiredError}
25944
+ */
25945
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse>;
25858
25946
  /**
25859
25947
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
25860
25948
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -25916,7 +26004,7 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
25916
26004
  */
25917
26005
  adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDConfigGet200Response, any, {}>>;
25918
26006
  /**
25919
- * Enable or disable auto-generated and manual query suggestions for a store
26007
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25920
26008
  * @summary Update Query Suggestions Configuration
25921
26009
  * @param {string} xStoreID Store ID
25922
26010
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -26022,6 +26110,15 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
26022
26110
  * @memberof QuerySuggestionsManagementApi
26023
26111
  */
26024
26112
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDStatsGet200Response, any, {}>>;
26113
+ /**
26114
+ * Get the current enabled/disabled status of query suggestions for a specific store
26115
+ * @summary Get Query Suggestions Status for Store
26116
+ * @param {string} xStoreID Store ID
26117
+ * @param {*} [options] Override http request option.
26118
+ * @throws {RequiredError}
26119
+ * @memberof QuerySuggestionsManagementApi
26120
+ */
26121
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminV1QuerySuggestionsXStoreIDPromoteAllPost200Response, any, {}>>;
26025
26122
  /**
26026
26123
  * Delete a single query suggestion by its ID
26027
26124
  * @summary Delete Query Suggestion by ID
@@ -26073,6 +26170,16 @@ export declare class QuerySuggestionsManagementApi extends BaseAPI {
26073
26170
  * @memberof QuerySuggestionsManagementApi
26074
26171
  */
26075
26172
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAnalyticsAPIResponse, any, {}>>;
26173
+ /**
26174
+ * Enable or disable query suggestions for a specific store
26175
+ * @summary Toggle Query Suggestions for Store
26176
+ * @param {string} xStoreID Store ID
26177
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
26178
+ * @param {*} [options] Override http request option.
26179
+ * @throws {RequiredError}
26180
+ * @memberof QuerySuggestionsManagementApi
26181
+ */
26182
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID: string, analyticsToggleQuerySuggestionsRequest: AnalyticsToggleQuerySuggestionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAnalyticsAPIResponse, any, {}>>;
26076
26183
  /**
26077
26184
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
26078
26185
  * @summary Get Query Suggestions from Typesense (Admin)
package/dist/esm/api.js CHANGED
@@ -16122,7 +16122,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
16122
16122
  };
16123
16123
  }),
16124
16124
  /**
16125
- * Enable or disable auto-generated and manual query suggestions for a store
16125
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
16126
16126
  * @summary Update Query Suggestions Configuration
16127
16127
  * @param {string} xStoreID Store ID
16128
16128
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -16504,6 +16504,37 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
16504
16504
  options: localVarRequestOptions,
16505
16505
  };
16506
16506
  }),
16507
+ /**
16508
+ * Get the current enabled/disabled status of query suggestions for a specific store
16509
+ * @summary Get Query Suggestions Status for Store
16510
+ * @param {string} xStoreID Store ID
16511
+ * @param {*} [options] Override http request option.
16512
+ * @throws {RequiredError}
16513
+ */
16514
+ adminV1QuerySuggestionsXStoreIDStatusGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
16515
+ // verify required parameter 'xStoreID' is not null or undefined
16516
+ assertParamExists('adminV1QuerySuggestionsXStoreIDStatusGet', 'xStoreID', xStoreID);
16517
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/status`
16518
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
16519
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16520
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16521
+ let baseOptions;
16522
+ if (configuration) {
16523
+ baseOptions = configuration.baseOptions;
16524
+ }
16525
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16526
+ const localVarHeaderParameter = {};
16527
+ const localVarQueryParameter = {};
16528
+ // authentication BearerAuth required
16529
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16530
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16532
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16533
+ return {
16534
+ url: toPathString(localVarUrlObj),
16535
+ options: localVarRequestOptions,
16536
+ };
16537
+ }),
16507
16538
  /**
16508
16539
  * Delete a single query suggestion by its ID
16509
16540
  * @summary Delete Query Suggestion by ID
@@ -16686,6 +16717,42 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
16686
16717
  options: localVarRequestOptions,
16687
16718
  };
16688
16719
  }),
16720
+ /**
16721
+ * Enable or disable query suggestions for a specific store
16722
+ * @summary Toggle Query Suggestions for Store
16723
+ * @param {string} xStoreID Store ID
16724
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
16725
+ * @param {*} [options] Override http request option.
16726
+ * @throws {RequiredError}
16727
+ */
16728
+ adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsToggleQuerySuggestionsRequest, options = {}) {
16729
+ // verify required parameter 'xStoreID' is not null or undefined
16730
+ assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'xStoreID', xStoreID);
16731
+ // verify required parameter 'analyticsToggleQuerySuggestionsRequest' is not null or undefined
16732
+ assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'analyticsToggleQuerySuggestionsRequest', analyticsToggleQuerySuggestionsRequest);
16733
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/toggle`
16734
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
16735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16736
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16737
+ let baseOptions;
16738
+ if (configuration) {
16739
+ baseOptions = configuration.baseOptions;
16740
+ }
16741
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16742
+ const localVarHeaderParameter = {};
16743
+ const localVarQueryParameter = {};
16744
+ // authentication BearerAuth required
16745
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16747
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16748
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16749
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16750
+ localVarRequestOptions.data = serializeDataIfNeeded(analyticsToggleQuerySuggestionsRequest, localVarRequestOptions, configuration);
16751
+ return {
16752
+ url: toPathString(localVarUrlObj),
16753
+ options: localVarRequestOptions,
16754
+ };
16755
+ }),
16689
16756
  /**
16690
16757
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
16691
16758
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -16808,7 +16875,7 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
16808
16875
  });
16809
16876
  },
16810
16877
  /**
16811
- * Enable or disable auto-generated and manual query suggestions for a store
16878
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
16812
16879
  * @summary Update Query Suggestions Configuration
16813
16880
  * @param {string} xStoreID Store ID
16814
16881
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -16984,6 +17051,22 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
16984
17051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16985
17052
  });
16986
17053
  },
17054
+ /**
17055
+ * Get the current enabled/disabled status of query suggestions for a specific store
17056
+ * @summary Get Query Suggestions Status for Store
17057
+ * @param {string} xStoreID Store ID
17058
+ * @param {*} [options] Override http request option.
17059
+ * @throws {RequiredError}
17060
+ */
17061
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17062
+ return __awaiter(this, void 0, void 0, function* () {
17063
+ var _a, _b, _c;
17064
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options);
17065
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17066
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17067
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17068
+ });
17069
+ },
16987
17070
  /**
16988
17071
  * Delete a single query suggestion by its ID
16989
17072
  * @summary Delete Query Suggestion by ID
@@ -17070,6 +17153,23 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
17070
17153
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17071
17154
  });
17072
17155
  },
17156
+ /**
17157
+ * Enable or disable query suggestions for a specific store
17158
+ * @summary Toggle Query Suggestions for Store
17159
+ * @param {string} xStoreID Store ID
17160
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17161
+ * @param {*} [options] Override http request option.
17162
+ * @throws {RequiredError}
17163
+ */
17164
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17165
+ return __awaiter(this, void 0, void 0, function* () {
17166
+ var _a, _b, _c;
17167
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options);
17168
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17169
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDTogglePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17170
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17171
+ });
17172
+ },
17073
17173
  /**
17074
17174
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17075
17175
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -17144,7 +17244,7 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
17144
17244
  return localVarFp.adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
17145
17245
  },
17146
17246
  /**
17147
- * Enable or disable auto-generated and manual query suggestions for a store
17247
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
17148
17248
  * @summary Update Query Suggestions Configuration
17149
17249
  * @param {string} xStoreID Store ID
17150
17250
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -17260,6 +17360,16 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
17260
17360
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options) {
17261
17361
  return localVarFp.adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(axios, basePath));
17262
17362
  },
17363
+ /**
17364
+ * Get the current enabled/disabled status of query suggestions for a specific store
17365
+ * @summary Get Query Suggestions Status for Store
17366
+ * @param {string} xStoreID Store ID
17367
+ * @param {*} [options] Override http request option.
17368
+ * @throws {RequiredError}
17369
+ */
17370
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17371
+ return localVarFp.adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(axios, basePath));
17372
+ },
17263
17373
  /**
17264
17374
  * Delete a single query suggestion by its ID
17265
17375
  * @summary Delete Query Suggestion by ID
@@ -17316,6 +17426,17 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
17316
17426
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options) {
17317
17427
  return localVarFp.adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(axios, basePath));
17318
17428
  },
17429
+ /**
17430
+ * Enable or disable query suggestions for a specific store
17431
+ * @summary Toggle Query Suggestions for Store
17432
+ * @param {string} xStoreID Store ID
17433
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17434
+ * @param {*} [options] Override http request option.
17435
+ * @throws {RequiredError}
17436
+ */
17437
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17438
+ return localVarFp.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
17439
+ },
17319
17440
  /**
17320
17441
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17321
17442
  * @summary Get Query Suggestions from Typesense (Admin)
@@ -17388,7 +17509,7 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
17388
17509
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDConfigGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17389
17510
  }
17390
17511
  /**
17391
- * Enable or disable auto-generated and manual query suggestions for a store
17512
+ * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
17392
17513
  * @summary Update Query Suggestions Configuration
17393
17514
  * @param {string} xStoreID Store ID
17394
17515
  * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
@@ -17514,6 +17635,17 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
17514
17635
  adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options) {
17515
17636
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDStatsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17516
17637
  }
17638
+ /**
17639
+ * Get the current enabled/disabled status of query suggestions for a specific store
17640
+ * @summary Get Query Suggestions Status for Store
17641
+ * @param {string} xStoreID Store ID
17642
+ * @param {*} [options] Override http request option.
17643
+ * @throws {RequiredError}
17644
+ * @memberof QuerySuggestionsManagementApi
17645
+ */
17646
+ adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options) {
17647
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDStatusGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
17648
+ }
17517
17649
  /**
17518
17650
  * Delete a single query suggestion by its ID
17519
17651
  * @summary Delete Query Suggestion by ID
@@ -17575,6 +17707,18 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
17575
17707
  adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options) {
17576
17708
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
17577
17709
  }
17710
+ /**
17711
+ * Enable or disable query suggestions for a specific store
17712
+ * @summary Toggle Query Suggestions for Store
17713
+ * @param {string} xStoreID Store ID
17714
+ * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
17715
+ * @param {*} [options] Override http request option.
17716
+ * @throws {RequiredError}
17717
+ * @memberof QuerySuggestionsManagementApi
17718
+ */
17719
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
17720
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
17721
+ }
17578
17722
  /**
17579
17723
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
17580
17724
  * @summary Get Query Suggestions from Typesense (Admin)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file