@seekora-ai/admin-api 1.1.91 → 1.1.93

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.1.91
1
+ ## @seekora-ai/admin-api@1.1.93
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.1.91 --save
39
+ npm install @seekora-ai/admin-api@1.1.93 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -597,6 +597,8 @@ Class | Method | HTTP request | Description
597
597
  *StoresApi* | [**adminStoresXStoreIDConfigSchemaGet**](docs/StoresApi.md#adminstoresxstoreidconfigschemaget) | **GET** /admin/Stores/{xStoreID}/config-schema | Get Store Config Schema
598
598
  *StoresApi* | [**adminStoresXStoreIDCredentialsGet**](docs/StoresApi.md#adminstoresxstoreidcredentialsget) | **GET** /admin/Stores/{xStoreID}/credentials | Get store credentials
599
599
  *StoresApi* | [**adminStoresXStoreIDDefaultsGet**](docs/StoresApi.md#adminstoresxstoreiddefaultsget) | **GET** /admin/Stores/{xStoreID}/defaults | Get Store Schema-Based Defaults
600
+ *StoresApi* | [**adminStoresXStoreIDDelete**](docs/StoresApi.md#adminstoresxstoreiddelete) | **DELETE** /admin/Stores/{xStoreID} | Soft delete a store
601
+ *StoresApi* | [**adminStoresXStoreIDDetailsPut**](docs/StoresApi.md#adminstoresxstoreiddetailsput) | **PUT** /admin/Stores/{xStoreID}/details | Update store details
600
602
  *StoresApi* | [**adminStoresXStoreIDPopularItemsSyncPost**](docs/StoresApi.md#adminstoresxstoreidpopularitemssyncpost) | **POST** /admin/Stores/{xStoreID}/popular-items/sync | Sync Popular Items to Typesense
601
603
  *StoresApi* | [**adminStoresXStoreIDSchemaOptionsGet**](docs/StoresApi.md#adminstoresxstoreidschemaoptionsget) | **GET** /admin/stores/{xStoreID}/schema-options | Get store schema options
602
604
  *StoresApi* | [**adminStoresXStoreIDStepStepPut**](docs/StoresApi.md#adminstoresxstoreidstepstepput) | **PUT** /admin/stores/{xStoreID}/step/{step} | Update store step configuration
@@ -1376,6 +1378,7 @@ Class | Method | HTTP request | Description
1376
1378
  - [DataTypesUpdateSchemaResponse](docs/DataTypesUpdateSchemaResponse.md)
1377
1379
  - [DataTypesUpdateSourceConfigResponseWrapper](docs/DataTypesUpdateSourceConfigResponseWrapper.md)
1378
1380
  - [DataTypesUpdateStoreAccessRequest](docs/DataTypesUpdateStoreAccessRequest.md)
1381
+ - [DataTypesUpdateStoreRequest](docs/DataTypesUpdateStoreRequest.md)
1379
1382
  - [DataTypesUpdateWordStatusRequest](docs/DataTypesUpdateWordStatusRequest.md)
1380
1383
  - [DataTypesUpdateWordStatusResponseWrapper](docs/DataTypesUpdateWordStatusResponseWrapper.md)
1381
1384
  - [DataTypesUploadSourceDataResponseWrapper](docs/DataTypesUploadSourceDataResponseWrapper.md)
package/api.ts CHANGED
@@ -13584,6 +13584,12 @@ export interface DataTypesCompanyConfig {
13584
13584
  * @memberof DataTypesCompanyConfig
13585
13585
  */
13586
13586
  'logo_url'?: string;
13587
+ /**
13588
+ * MSME/Udyam Registration Number
13589
+ * @type {string}
13590
+ * @memberof DataTypesCompanyConfig
13591
+ */
13592
+ 'msme_udyam_no'?: string;
13587
13593
  /**
13588
13594
  *
13589
13595
  * @type {string}
@@ -33475,6 +33481,61 @@ export const DataTypesUpdateStoreAccessRequestAccessLevelEnum = {
33475
33481
 
33476
33482
  export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum[keyof typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum];
33477
33483
 
33484
+ /**
33485
+ *
33486
+ * @export
33487
+ * @interface DataTypesUpdateStoreRequest
33488
+ */
33489
+ export interface DataTypesUpdateStoreRequest {
33490
+ /**
33491
+ *
33492
+ * @type {string}
33493
+ * @memberof DataTypesUpdateStoreRequest
33494
+ */
33495
+ 'alias'?: string;
33496
+ /**
33497
+ *
33498
+ * @type {string}
33499
+ * @memberof DataTypesUpdateStoreRequest
33500
+ */
33501
+ 'autocompleteIndex'?: string;
33502
+ /**
33503
+ *
33504
+ * @type {string}
33505
+ * @memberof DataTypesUpdateStoreRequest
33506
+ */
33507
+ 'brandIndex'?: string;
33508
+ /**
33509
+ *
33510
+ * @type {string}
33511
+ * @memberof DataTypesUpdateStoreRequest
33512
+ */
33513
+ 'categoryIndex'?: string;
33514
+ /**
33515
+ *
33516
+ * @type {boolean}
33517
+ * @memberof DataTypesUpdateStoreRequest
33518
+ */
33519
+ 'isActive'?: boolean;
33520
+ /**
33521
+ *
33522
+ * @type {string}
33523
+ * @memberof DataTypesUpdateStoreRequest
33524
+ */
33525
+ 'location'?: string;
33526
+ /**
33527
+ *
33528
+ * @type {string}
33529
+ * @memberof DataTypesUpdateStoreRequest
33530
+ */
33531
+ 'productIndex'?: string;
33532
+ /**
33533
+ *
33534
+ * @type {string}
33535
+ * @memberof DataTypesUpdateStoreRequest
33536
+ */
33537
+ 'storeName'?: string;
33538
+ }
33478
33539
  /**
33479
33540
  *
33480
33541
  * @export
@@ -90262,6 +90323,86 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
90262
90323
  options: localVarRequestOptions,
90263
90324
  };
90264
90325
  },
90326
+ /**
90327
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
90328
+ * @summary Soft delete a store
90329
+ * @param {string} xStoreID X-Store ID
90330
+ * @param {*} [options] Override http request option.
90331
+ * @throws {RequiredError}
90332
+ */
90333
+ adminStoresXStoreIDDelete: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
90334
+ // verify required parameter 'xStoreID' is not null or undefined
90335
+ assertParamExists('adminStoresXStoreIDDelete', 'xStoreID', xStoreID)
90336
+ const localVarPath = `/admin/Stores/{xStoreID}`
90337
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
90338
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90340
+ let baseOptions;
90341
+ if (configuration) {
90342
+ baseOptions = configuration.baseOptions;
90343
+ }
90344
+
90345
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
90346
+ const localVarHeaderParameter = {} as any;
90347
+ const localVarQueryParameter = {} as any;
90348
+
90349
+ // authentication BearerAuth required
90350
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
90351
+
90352
+
90353
+
90354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
90355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
90357
+
90358
+ return {
90359
+ url: toPathString(localVarUrlObj),
90360
+ options: localVarRequestOptions,
90361
+ };
90362
+ },
90363
+ /**
90364
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
90365
+ * @summary Update store details
90366
+ * @param {string} xStoreID X-Store ID
90367
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
90368
+ * @param {*} [options] Override http request option.
90369
+ * @throws {RequiredError}
90370
+ */
90371
+ adminStoresXStoreIDDetailsPut: async (xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
90372
+ // verify required parameter 'xStoreID' is not null or undefined
90373
+ assertParamExists('adminStoresXStoreIDDetailsPut', 'xStoreID', xStoreID)
90374
+ // verify required parameter 'dataTypesUpdateStoreRequest' is not null or undefined
90375
+ assertParamExists('adminStoresXStoreIDDetailsPut', 'dataTypesUpdateStoreRequest', dataTypesUpdateStoreRequest)
90376
+ const localVarPath = `/admin/Stores/{xStoreID}/details`
90377
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
90378
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90379
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90380
+ let baseOptions;
90381
+ if (configuration) {
90382
+ baseOptions = configuration.baseOptions;
90383
+ }
90384
+
90385
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
90386
+ const localVarHeaderParameter = {} as any;
90387
+ const localVarQueryParameter = {} as any;
90388
+
90389
+ // authentication BearerAuth required
90390
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
90391
+
90392
+
90393
+
90394
+ localVarHeaderParameter['Content-Type'] = 'application/json';
90395
+
90396
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
90397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90398
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
90399
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateStoreRequest, localVarRequestOptions, configuration)
90400
+
90401
+ return {
90402
+ url: toPathString(localVarUrlObj),
90403
+ options: localVarRequestOptions,
90404
+ };
90405
+ },
90265
90406
  /**
90266
90407
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
90267
90408
  * @summary Sync Popular Items to Typesense
@@ -90717,6 +90858,33 @@ export const StoresApiFp = function(configuration?: Configuration) {
90717
90858
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDDefaultsGet']?.[localVarOperationServerIndex]?.url;
90718
90859
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
90719
90860
  },
90861
+ /**
90862
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
90863
+ * @summary Soft delete a store
90864
+ * @param {string} xStoreID X-Store ID
90865
+ * @param {*} [options] Override http request option.
90866
+ * @throws {RequiredError}
90867
+ */
90868
+ async adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
90869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDDelete(xStoreID, options);
90870
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
90871
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDDelete']?.[localVarOperationServerIndex]?.url;
90872
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
90873
+ },
90874
+ /**
90875
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
90876
+ * @summary Update store details
90877
+ * @param {string} xStoreID X-Store ID
90878
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
90879
+ * @param {*} [options] Override http request option.
90880
+ * @throws {RequiredError}
90881
+ */
90882
+ async adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
90883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options);
90884
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
90885
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDDetailsPut']?.[localVarOperationServerIndex]?.url;
90886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
90887
+ },
90720
90888
  /**
90721
90889
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
90722
90890
  * @summary Sync Popular Items to Typesense
@@ -91000,6 +91168,27 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
91000
91168
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper> {
91001
91169
  return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
91002
91170
  },
91171
+ /**
91172
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
91173
+ * @summary Soft delete a store
91174
+ * @param {string} xStoreID X-Store ID
91175
+ * @param {*} [options] Override http request option.
91176
+ * @throws {RequiredError}
91177
+ */
91178
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
91179
+ return localVarFp.adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(axios, basePath));
91180
+ },
91181
+ /**
91182
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
91183
+ * @summary Update store details
91184
+ * @param {string} xStoreID X-Store ID
91185
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
91186
+ * @param {*} [options] Override http request option.
91187
+ * @throws {RequiredError}
91188
+ */
91189
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
91190
+ return localVarFp.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(axios, basePath));
91191
+ },
91003
91192
  /**
91004
91193
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
91005
91194
  * @summary Sync Popular Items to Typesense
@@ -91311,6 +91500,31 @@ export class StoresApi extends BaseAPI {
91311
91500
  return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
91312
91501
  }
91313
91502
 
91503
+ /**
91504
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
91505
+ * @summary Soft delete a store
91506
+ * @param {string} xStoreID X-Store ID
91507
+ * @param {*} [options] Override http request option.
91508
+ * @throws {RequiredError}
91509
+ * @memberof StoresApi
91510
+ */
91511
+ public adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig) {
91512
+ return StoresApiFp(this.configuration).adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(this.axios, this.basePath));
91513
+ }
91514
+
91515
+ /**
91516
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
91517
+ * @summary Update store details
91518
+ * @param {string} xStoreID X-Store ID
91519
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
91520
+ * @param {*} [options] Override http request option.
91521
+ * @throws {RequiredError}
91522
+ * @memberof StoresApi
91523
+ */
91524
+ public adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig) {
91525
+ return StoresApiFp(this.configuration).adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(this.axios, this.basePath));
91526
+ }
91527
+
91314
91528
  /**
91315
91529
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
91316
91530
  * @summary Sync Popular Items to Typesense
package/dist/api.d.ts CHANGED
@@ -13616,6 +13616,12 @@ export interface DataTypesCompanyConfig {
13616
13616
  * @memberof DataTypesCompanyConfig
13617
13617
  */
13618
13618
  'logo_url'?: string;
13619
+ /**
13620
+ * MSME/Udyam Registration Number
13621
+ * @type {string}
13622
+ * @memberof DataTypesCompanyConfig
13623
+ */
13624
+ 'msme_udyam_no'?: string;
13619
13625
  /**
13620
13626
  *
13621
13627
  * @type {string}
@@ -33553,6 +33559,61 @@ export declare const DataTypesUpdateStoreAccessRequestAccessLevelEnum: {
33553
33559
  readonly Admin: "admin";
33554
33560
  };
33555
33561
  export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum[keyof typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum];
33562
+ /**
33563
+ *
33564
+ * @export
33565
+ * @interface DataTypesUpdateStoreRequest
33566
+ */
33567
+ export interface DataTypesUpdateStoreRequest {
33568
+ /**
33569
+ *
33570
+ * @type {string}
33571
+ * @memberof DataTypesUpdateStoreRequest
33572
+ */
33573
+ 'alias'?: string;
33574
+ /**
33575
+ *
33576
+ * @type {string}
33577
+ * @memberof DataTypesUpdateStoreRequest
33578
+ */
33579
+ 'autocompleteIndex'?: string;
33580
+ /**
33581
+ *
33582
+ * @type {string}
33583
+ * @memberof DataTypesUpdateStoreRequest
33584
+ */
33585
+ 'brandIndex'?: string;
33586
+ /**
33587
+ *
33588
+ * @type {string}
33589
+ * @memberof DataTypesUpdateStoreRequest
33590
+ */
33591
+ 'categoryIndex'?: string;
33592
+ /**
33593
+ *
33594
+ * @type {boolean}
33595
+ * @memberof DataTypesUpdateStoreRequest
33596
+ */
33597
+ 'isActive'?: boolean;
33598
+ /**
33599
+ *
33600
+ * @type {string}
33601
+ * @memberof DataTypesUpdateStoreRequest
33602
+ */
33603
+ 'location'?: string;
33604
+ /**
33605
+ *
33606
+ * @type {string}
33607
+ * @memberof DataTypesUpdateStoreRequest
33608
+ */
33609
+ 'productIndex'?: string;
33610
+ /**
33611
+ *
33612
+ * @type {string}
33613
+ * @memberof DataTypesUpdateStoreRequest
33614
+ */
33615
+ 'storeName'?: string;
33616
+ }
33556
33617
  /**
33557
33618
  *
33558
33619
  * @export
@@ -64330,6 +64391,23 @@ export declare const StoresApiAxiosParamCreator: (configuration?: Configuration)
64330
64391
  * @throws {RequiredError}
64331
64392
  */
64332
64393
  adminStoresXStoreIDDefaultsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64394
+ /**
64395
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64396
+ * @summary Soft delete a store
64397
+ * @param {string} xStoreID X-Store ID
64398
+ * @param {*} [options] Override http request option.
64399
+ * @throws {RequiredError}
64400
+ */
64401
+ adminStoresXStoreIDDelete: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64402
+ /**
64403
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64404
+ * @summary Update store details
64405
+ * @param {string} xStoreID X-Store ID
64406
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64407
+ * @param {*} [options] Override http request option.
64408
+ * @throws {RequiredError}
64409
+ */
64410
+ adminStoresXStoreIDDetailsPut: (xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64333
64411
  /**
64334
64412
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64335
64413
  * @summary Sync Popular Items to Typesense
@@ -64549,6 +64627,23 @@ export declare const StoresApiFp: (configuration?: Configuration) => {
64549
64627
  * @throws {RequiredError}
64550
64628
  */
64551
64629
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper>>;
64630
+ /**
64631
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64632
+ * @summary Soft delete a store
64633
+ * @param {string} xStoreID X-Store ID
64634
+ * @param {*} [options] Override http request option.
64635
+ * @throws {RequiredError}
64636
+ */
64637
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
64638
+ /**
64639
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64640
+ * @summary Update store details
64641
+ * @param {string} xStoreID X-Store ID
64642
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64643
+ * @param {*} [options] Override http request option.
64644
+ * @throws {RequiredError}
64645
+ */
64646
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
64552
64647
  /**
64553
64648
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64554
64649
  * @summary Sync Popular Items to Typesense
@@ -64768,6 +64863,23 @@ export declare const StoresApiFactory: (configuration?: Configuration, basePath?
64768
64863
  * @throws {RequiredError}
64769
64864
  */
64770
64865
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper>;
64866
+ /**
64867
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64868
+ * @summary Soft delete a store
64869
+ * @param {string} xStoreID X-Store ID
64870
+ * @param {*} [options] Override http request option.
64871
+ * @throws {RequiredError}
64872
+ */
64873
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
64874
+ /**
64875
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64876
+ * @summary Update store details
64877
+ * @param {string} xStoreID X-Store ID
64878
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64879
+ * @param {*} [options] Override http request option.
64880
+ * @throws {RequiredError}
64881
+ */
64882
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
64771
64883
  /**
64772
64884
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64773
64885
  * @summary Sync Popular Items to Typesense
@@ -65009,6 +65121,25 @@ export declare class StoresApi extends BaseAPI {
65009
65121
  * @memberof StoresApi
65010
65122
  */
65011
65123
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesSchemaBasedDefaultsResponseWrapper, any, {}>>;
65124
+ /**
65125
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
65126
+ * @summary Soft delete a store
65127
+ * @param {string} xStoreID X-Store ID
65128
+ * @param {*} [options] Override http request option.
65129
+ * @throws {RequiredError}
65130
+ * @memberof StoresApi
65131
+ */
65132
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
65133
+ /**
65134
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
65135
+ * @summary Update store details
65136
+ * @param {string} xStoreID X-Store ID
65137
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
65138
+ * @param {*} [options] Override http request option.
65139
+ * @throws {RequiredError}
65140
+ * @memberof StoresApi
65141
+ */
65142
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
65012
65143
  /**
65013
65144
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
65014
65145
  * @summary Sync Popular Items to Typesense
package/dist/api.js CHANGED
@@ -47554,6 +47554,73 @@ const StoresApiAxiosParamCreator = function (configuration) {
47554
47554
  options: localVarRequestOptions,
47555
47555
  };
47556
47556
  }),
47557
+ /**
47558
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
47559
+ * @summary Soft delete a store
47560
+ * @param {string} xStoreID X-Store ID
47561
+ * @param {*} [options] Override http request option.
47562
+ * @throws {RequiredError}
47563
+ */
47564
+ adminStoresXStoreIDDelete: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
47565
+ // verify required parameter 'xStoreID' is not null or undefined
47566
+ (0, common_1.assertParamExists)('adminStoresXStoreIDDelete', 'xStoreID', xStoreID);
47567
+ const localVarPath = `/admin/Stores/{xStoreID}`
47568
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
47569
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47570
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47571
+ let baseOptions;
47572
+ if (configuration) {
47573
+ baseOptions = configuration.baseOptions;
47574
+ }
47575
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
47576
+ const localVarHeaderParameter = {};
47577
+ const localVarQueryParameter = {};
47578
+ // authentication BearerAuth required
47579
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
47580
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
47581
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47582
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
47583
+ return {
47584
+ url: (0, common_1.toPathString)(localVarUrlObj),
47585
+ options: localVarRequestOptions,
47586
+ };
47587
+ }),
47588
+ /**
47589
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
47590
+ * @summary Update store details
47591
+ * @param {string} xStoreID X-Store ID
47592
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
47593
+ * @param {*} [options] Override http request option.
47594
+ * @throws {RequiredError}
47595
+ */
47596
+ adminStoresXStoreIDDetailsPut: (xStoreID_1, dataTypesUpdateStoreRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, dataTypesUpdateStoreRequest_1, ...args_1], void 0, function* (xStoreID, dataTypesUpdateStoreRequest, options = {}) {
47597
+ // verify required parameter 'xStoreID' is not null or undefined
47598
+ (0, common_1.assertParamExists)('adminStoresXStoreIDDetailsPut', 'xStoreID', xStoreID);
47599
+ // verify required parameter 'dataTypesUpdateStoreRequest' is not null or undefined
47600
+ (0, common_1.assertParamExists)('adminStoresXStoreIDDetailsPut', 'dataTypesUpdateStoreRequest', dataTypesUpdateStoreRequest);
47601
+ const localVarPath = `/admin/Stores/{xStoreID}/details`
47602
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
47603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47604
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47605
+ let baseOptions;
47606
+ if (configuration) {
47607
+ baseOptions = configuration.baseOptions;
47608
+ }
47609
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
47610
+ const localVarHeaderParameter = {};
47611
+ const localVarQueryParameter = {};
47612
+ // authentication BearerAuth required
47613
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
47614
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47615
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
47616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47617
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
47618
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesUpdateStoreRequest, localVarRequestOptions, configuration);
47619
+ return {
47620
+ url: (0, common_1.toPathString)(localVarUrlObj),
47621
+ options: localVarRequestOptions,
47622
+ };
47623
+ }),
47557
47624
  /**
47558
47625
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
47559
47626
  * @summary Sync Popular Items to Typesense
@@ -48042,6 +48109,39 @@ const StoresApiFp = function (configuration) {
48042
48109
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48043
48110
  });
48044
48111
  },
48112
+ /**
48113
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
48114
+ * @summary Soft delete a store
48115
+ * @param {string} xStoreID X-Store ID
48116
+ * @param {*} [options] Override http request option.
48117
+ * @throws {RequiredError}
48118
+ */
48119
+ adminStoresXStoreIDDelete(xStoreID, options) {
48120
+ return __awaiter(this, void 0, void 0, function* () {
48121
+ var _a, _b, _c;
48122
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDelete(xStoreID, options);
48123
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
48124
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
48125
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48126
+ });
48127
+ },
48128
+ /**
48129
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
48130
+ * @summary Update store details
48131
+ * @param {string} xStoreID X-Store ID
48132
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
48133
+ * @param {*} [options] Override http request option.
48134
+ * @throws {RequiredError}
48135
+ */
48136
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
48137
+ return __awaiter(this, void 0, void 0, function* () {
48138
+ var _a, _b, _c;
48139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options);
48140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
48141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDDetailsPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
48142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48143
+ });
48144
+ },
48045
48145
  /**
48046
48146
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
48047
48147
  * @summary Sync Popular Items to Typesense
@@ -48337,6 +48437,27 @@ const StoresApiFactory = function (configuration, basePath, axios) {
48337
48437
  adminStoresXStoreIDDefaultsGet(xStoreID, options) {
48338
48438
  return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
48339
48439
  },
48440
+ /**
48441
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
48442
+ * @summary Soft delete a store
48443
+ * @param {string} xStoreID X-Store ID
48444
+ * @param {*} [options] Override http request option.
48445
+ * @throws {RequiredError}
48446
+ */
48447
+ adminStoresXStoreIDDelete(xStoreID, options) {
48448
+ return localVarFp.adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(axios, basePath));
48449
+ },
48450
+ /**
48451
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
48452
+ * @summary Update store details
48453
+ * @param {string} xStoreID X-Store ID
48454
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
48455
+ * @param {*} [options] Override http request option.
48456
+ * @throws {RequiredError}
48457
+ */
48458
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
48459
+ return localVarFp.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(axios, basePath));
48460
+ },
48340
48461
  /**
48341
48462
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
48342
48463
  * @summary Sync Popular Items to Typesense
@@ -48628,6 +48749,29 @@ class StoresApi extends base_1.BaseAPI {
48628
48749
  adminStoresXStoreIDDefaultsGet(xStoreID, options) {
48629
48750
  return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
48630
48751
  }
48752
+ /**
48753
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
48754
+ * @summary Soft delete a store
48755
+ * @param {string} xStoreID X-Store ID
48756
+ * @param {*} [options] Override http request option.
48757
+ * @throws {RequiredError}
48758
+ * @memberof StoresApi
48759
+ */
48760
+ adminStoresXStoreIDDelete(xStoreID, options) {
48761
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(this.axios, this.basePath));
48762
+ }
48763
+ /**
48764
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
48765
+ * @summary Update store details
48766
+ * @param {string} xStoreID X-Store ID
48767
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
48768
+ * @param {*} [options] Override http request option.
48769
+ * @throws {RequiredError}
48770
+ * @memberof StoresApi
48771
+ */
48772
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
48773
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(this.axios, this.basePath));
48774
+ }
48631
48775
  /**
48632
48776
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
48633
48777
  * @summary Sync Popular Items to Typesense
package/dist/esm/api.d.ts CHANGED
@@ -13616,6 +13616,12 @@ export interface DataTypesCompanyConfig {
13616
13616
  * @memberof DataTypesCompanyConfig
13617
13617
  */
13618
13618
  'logo_url'?: string;
13619
+ /**
13620
+ * MSME/Udyam Registration Number
13621
+ * @type {string}
13622
+ * @memberof DataTypesCompanyConfig
13623
+ */
13624
+ 'msme_udyam_no'?: string;
13619
13625
  /**
13620
13626
  *
13621
13627
  * @type {string}
@@ -33553,6 +33559,61 @@ export declare const DataTypesUpdateStoreAccessRequestAccessLevelEnum: {
33553
33559
  readonly Admin: "admin";
33554
33560
  };
33555
33561
  export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum[keyof typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum];
33562
+ /**
33563
+ *
33564
+ * @export
33565
+ * @interface DataTypesUpdateStoreRequest
33566
+ */
33567
+ export interface DataTypesUpdateStoreRequest {
33568
+ /**
33569
+ *
33570
+ * @type {string}
33571
+ * @memberof DataTypesUpdateStoreRequest
33572
+ */
33573
+ 'alias'?: string;
33574
+ /**
33575
+ *
33576
+ * @type {string}
33577
+ * @memberof DataTypesUpdateStoreRequest
33578
+ */
33579
+ 'autocompleteIndex'?: string;
33580
+ /**
33581
+ *
33582
+ * @type {string}
33583
+ * @memberof DataTypesUpdateStoreRequest
33584
+ */
33585
+ 'brandIndex'?: string;
33586
+ /**
33587
+ *
33588
+ * @type {string}
33589
+ * @memberof DataTypesUpdateStoreRequest
33590
+ */
33591
+ 'categoryIndex'?: string;
33592
+ /**
33593
+ *
33594
+ * @type {boolean}
33595
+ * @memberof DataTypesUpdateStoreRequest
33596
+ */
33597
+ 'isActive'?: boolean;
33598
+ /**
33599
+ *
33600
+ * @type {string}
33601
+ * @memberof DataTypesUpdateStoreRequest
33602
+ */
33603
+ 'location'?: string;
33604
+ /**
33605
+ *
33606
+ * @type {string}
33607
+ * @memberof DataTypesUpdateStoreRequest
33608
+ */
33609
+ 'productIndex'?: string;
33610
+ /**
33611
+ *
33612
+ * @type {string}
33613
+ * @memberof DataTypesUpdateStoreRequest
33614
+ */
33615
+ 'storeName'?: string;
33616
+ }
33556
33617
  /**
33557
33618
  *
33558
33619
  * @export
@@ -64330,6 +64391,23 @@ export declare const StoresApiAxiosParamCreator: (configuration?: Configuration)
64330
64391
  * @throws {RequiredError}
64331
64392
  */
64332
64393
  adminStoresXStoreIDDefaultsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64394
+ /**
64395
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64396
+ * @summary Soft delete a store
64397
+ * @param {string} xStoreID X-Store ID
64398
+ * @param {*} [options] Override http request option.
64399
+ * @throws {RequiredError}
64400
+ */
64401
+ adminStoresXStoreIDDelete: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64402
+ /**
64403
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64404
+ * @summary Update store details
64405
+ * @param {string} xStoreID X-Store ID
64406
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64407
+ * @param {*} [options] Override http request option.
64408
+ * @throws {RequiredError}
64409
+ */
64410
+ adminStoresXStoreIDDetailsPut: (xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64333
64411
  /**
64334
64412
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64335
64413
  * @summary Sync Popular Items to Typesense
@@ -64549,6 +64627,23 @@ export declare const StoresApiFp: (configuration?: Configuration) => {
64549
64627
  * @throws {RequiredError}
64550
64628
  */
64551
64629
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper>>;
64630
+ /**
64631
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64632
+ * @summary Soft delete a store
64633
+ * @param {string} xStoreID X-Store ID
64634
+ * @param {*} [options] Override http request option.
64635
+ * @throws {RequiredError}
64636
+ */
64637
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
64638
+ /**
64639
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64640
+ * @summary Update store details
64641
+ * @param {string} xStoreID X-Store ID
64642
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64643
+ * @param {*} [options] Override http request option.
64644
+ * @throws {RequiredError}
64645
+ */
64646
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
64552
64647
  /**
64553
64648
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64554
64649
  * @summary Sync Popular Items to Typesense
@@ -64768,6 +64863,23 @@ export declare const StoresApiFactory: (configuration?: Configuration, basePath?
64768
64863
  * @throws {RequiredError}
64769
64864
  */
64770
64865
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper>;
64866
+ /**
64867
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
64868
+ * @summary Soft delete a store
64869
+ * @param {string} xStoreID X-Store ID
64870
+ * @param {*} [options] Override http request option.
64871
+ * @throws {RequiredError}
64872
+ */
64873
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
64874
+ /**
64875
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
64876
+ * @summary Update store details
64877
+ * @param {string} xStoreID X-Store ID
64878
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
64879
+ * @param {*} [options] Override http request option.
64880
+ * @throws {RequiredError}
64881
+ */
64882
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
64771
64883
  /**
64772
64884
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
64773
64885
  * @summary Sync Popular Items to Typesense
@@ -65009,6 +65121,25 @@ export declare class StoresApi extends BaseAPI {
65009
65121
  * @memberof StoresApi
65010
65122
  */
65011
65123
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesSchemaBasedDefaultsResponseWrapper, any, {}>>;
65124
+ /**
65125
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
65126
+ * @summary Soft delete a store
65127
+ * @param {string} xStoreID X-Store ID
65128
+ * @param {*} [options] Override http request option.
65129
+ * @throws {RequiredError}
65130
+ * @memberof StoresApi
65131
+ */
65132
+ adminStoresXStoreIDDelete(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
65133
+ /**
65134
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
65135
+ * @summary Update store details
65136
+ * @param {string} xStoreID X-Store ID
65137
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
65138
+ * @param {*} [options] Override http request option.
65139
+ * @throws {RequiredError}
65140
+ * @memberof StoresApi
65141
+ */
65142
+ adminStoresXStoreIDDetailsPut(xStoreID: string, dataTypesUpdateStoreRequest: DataTypesUpdateStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
65012
65143
  /**
65013
65144
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
65014
65145
  * @summary Sync Popular Items to Typesense
package/dist/esm/api.js CHANGED
@@ -47246,6 +47246,73 @@ export const StoresApiAxiosParamCreator = function (configuration) {
47246
47246
  options: localVarRequestOptions,
47247
47247
  };
47248
47248
  }),
47249
+ /**
47250
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
47251
+ * @summary Soft delete a store
47252
+ * @param {string} xStoreID X-Store ID
47253
+ * @param {*} [options] Override http request option.
47254
+ * @throws {RequiredError}
47255
+ */
47256
+ adminStoresXStoreIDDelete: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
47257
+ // verify required parameter 'xStoreID' is not null or undefined
47258
+ assertParamExists('adminStoresXStoreIDDelete', 'xStoreID', xStoreID);
47259
+ const localVarPath = `/admin/Stores/{xStoreID}`
47260
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
47261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47262
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47263
+ let baseOptions;
47264
+ if (configuration) {
47265
+ baseOptions = configuration.baseOptions;
47266
+ }
47267
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
47268
+ const localVarHeaderParameter = {};
47269
+ const localVarQueryParameter = {};
47270
+ // authentication BearerAuth required
47271
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47272
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47273
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47274
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
47275
+ return {
47276
+ url: toPathString(localVarUrlObj),
47277
+ options: localVarRequestOptions,
47278
+ };
47279
+ }),
47280
+ /**
47281
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
47282
+ * @summary Update store details
47283
+ * @param {string} xStoreID X-Store ID
47284
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
47285
+ * @param {*} [options] Override http request option.
47286
+ * @throws {RequiredError}
47287
+ */
47288
+ adminStoresXStoreIDDetailsPut: (xStoreID_1, dataTypesUpdateStoreRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, dataTypesUpdateStoreRequest_1, ...args_1], void 0, function* (xStoreID, dataTypesUpdateStoreRequest, options = {}) {
47289
+ // verify required parameter 'xStoreID' is not null or undefined
47290
+ assertParamExists('adminStoresXStoreIDDetailsPut', 'xStoreID', xStoreID);
47291
+ // verify required parameter 'dataTypesUpdateStoreRequest' is not null or undefined
47292
+ assertParamExists('adminStoresXStoreIDDetailsPut', 'dataTypesUpdateStoreRequest', dataTypesUpdateStoreRequest);
47293
+ const localVarPath = `/admin/Stores/{xStoreID}/details`
47294
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
47295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47297
+ let baseOptions;
47298
+ if (configuration) {
47299
+ baseOptions = configuration.baseOptions;
47300
+ }
47301
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
47302
+ const localVarHeaderParameter = {};
47303
+ const localVarQueryParameter = {};
47304
+ // authentication BearerAuth required
47305
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47309
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
47310
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateStoreRequest, localVarRequestOptions, configuration);
47311
+ return {
47312
+ url: toPathString(localVarUrlObj),
47313
+ options: localVarRequestOptions,
47314
+ };
47315
+ }),
47249
47316
  /**
47250
47317
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
47251
47318
  * @summary Sync Popular Items to Typesense
@@ -47733,6 +47800,39 @@ export const StoresApiFp = function (configuration) {
47733
47800
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47734
47801
  });
47735
47802
  },
47803
+ /**
47804
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
47805
+ * @summary Soft delete a store
47806
+ * @param {string} xStoreID X-Store ID
47807
+ * @param {*} [options] Override http request option.
47808
+ * @throws {RequiredError}
47809
+ */
47810
+ adminStoresXStoreIDDelete(xStoreID, options) {
47811
+ return __awaiter(this, void 0, void 0, function* () {
47812
+ var _a, _b, _c;
47813
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDelete(xStoreID, options);
47814
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
47815
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
47816
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47817
+ });
47818
+ },
47819
+ /**
47820
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
47821
+ * @summary Update store details
47822
+ * @param {string} xStoreID X-Store ID
47823
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
47824
+ * @param {*} [options] Override http request option.
47825
+ * @throws {RequiredError}
47826
+ */
47827
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
47828
+ return __awaiter(this, void 0, void 0, function* () {
47829
+ var _a, _b, _c;
47830
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options);
47831
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
47832
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDDetailsPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
47833
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47834
+ });
47835
+ },
47736
47836
  /**
47737
47837
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
47738
47838
  * @summary Sync Popular Items to Typesense
@@ -48027,6 +48127,27 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
48027
48127
  adminStoresXStoreIDDefaultsGet(xStoreID, options) {
48028
48128
  return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
48029
48129
  },
48130
+ /**
48131
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
48132
+ * @summary Soft delete a store
48133
+ * @param {string} xStoreID X-Store ID
48134
+ * @param {*} [options] Override http request option.
48135
+ * @throws {RequiredError}
48136
+ */
48137
+ adminStoresXStoreIDDelete(xStoreID, options) {
48138
+ return localVarFp.adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(axios, basePath));
48139
+ },
48140
+ /**
48141
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
48142
+ * @summary Update store details
48143
+ * @param {string} xStoreID X-Store ID
48144
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
48145
+ * @param {*} [options] Override http request option.
48146
+ * @throws {RequiredError}
48147
+ */
48148
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
48149
+ return localVarFp.adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(axios, basePath));
48150
+ },
48030
48151
  /**
48031
48152
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
48032
48153
  * @summary Sync Popular Items to Typesense
@@ -48317,6 +48438,29 @@ export class StoresApi extends BaseAPI {
48317
48438
  adminStoresXStoreIDDefaultsGet(xStoreID, options) {
48318
48439
  return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
48319
48440
  }
48441
+ /**
48442
+ * Deactivates a store by setting isactive=false and invalidating all cache. Only org owners can perform this action. All public API operations will be blocked immediately.
48443
+ * @summary Soft delete a store
48444
+ * @param {string} xStoreID X-Store ID
48445
+ * @param {*} [options] Override http request option.
48446
+ * @throws {RequiredError}
48447
+ * @memberof StoresApi
48448
+ */
48449
+ adminStoresXStoreIDDelete(xStoreID, options) {
48450
+ return StoresApiFp(this.configuration).adminStoresXStoreIDDelete(xStoreID, options).then((request) => request(this.axios, this.basePath));
48451
+ }
48452
+ /**
48453
+ * Partially updates store details (name, location, alias). Only provided fields are updated.
48454
+ * @summary Update store details
48455
+ * @param {string} xStoreID X-Store ID
48456
+ * @param {DataTypesUpdateStoreRequest} dataTypesUpdateStoreRequest Fields to update
48457
+ * @param {*} [options] Override http request option.
48458
+ * @throws {RequiredError}
48459
+ * @memberof StoresApi
48460
+ */
48461
+ adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options) {
48462
+ return StoresApiFp(this.configuration).adminStoresXStoreIDDetailsPut(xStoreID, dataTypesUpdateStoreRequest, options).then((request) => request(this.axios, this.basePath));
48463
+ }
48320
48464
  /**
48321
48465
  * Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
48322
48466
  * @summary Sync Popular Items to Typesense
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.91",
3
+ "version": "1.1.93",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file