@infisale-client/api-client 1.2.71 → 1.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/api.d.ts CHANGED
@@ -6191,10 +6191,10 @@ export interface IProductCollectionQueryParams {
6191
6191
  'collections'?: Array<string>;
6192
6192
  /**
6193
6193
  *
6194
- * @type {Array<string>}
6194
+ * @type {string}
6195
6195
  * @memberof IProductCollectionQueryParams
6196
6196
  */
6197
- 'category'?: Array<string>;
6197
+ 'category'?: string;
6198
6198
  /**
6199
6199
  *
6200
6200
  * @type {Array<string>}
@@ -6219,6 +6219,24 @@ export interface IProductCollectionQueryParams {
6219
6219
  * @memberof IProductCollectionQueryParams
6220
6220
  */
6221
6221
  'priceLte'?: number;
6222
+ /**
6223
+ *
6224
+ * @type {boolean}
6225
+ * @memberof IProductCollectionQueryParams
6226
+ */
6227
+ 'autoComplete'?: boolean;
6228
+ /**
6229
+ *
6230
+ * @type {Array<string>}
6231
+ * @memberof IProductCollectionQueryParams
6232
+ */
6233
+ 'mainVariant'?: Array<string>;
6234
+ /**
6235
+ *
6236
+ * @type {Array<string>}
6237
+ * @memberof IProductCollectionQueryParams
6238
+ */
6239
+ 'subVariant'?: Array<string>;
6222
6240
  /**
6223
6241
  *
6224
6242
  * @type {string}
@@ -6663,6 +6681,80 @@ export interface IProductsResponse {
6663
6681
  * @memberof IProductsResponse
6664
6682
  */
6665
6683
  'data': Array<IProductResponse>;
6684
+ /**
6685
+ *
6686
+ * @type {IProductsResponseCategory}
6687
+ * @memberof IProductsResponse
6688
+ */
6689
+ 'category'?: IProductsResponseCategory;
6690
+ /**
6691
+ *
6692
+ * @type {Array<IProductsResponseCategoriesInner>}
6693
+ * @memberof IProductsResponse
6694
+ */
6695
+ 'categories': Array<IProductsResponseCategoriesInner>;
6696
+ /**
6697
+ *
6698
+ * @type {Array<IProductsResponseCategoriesInner>}
6699
+ * @memberof IProductsResponse
6700
+ */
6701
+ 'brands': Array<IProductsResponseCategoriesInner>;
6702
+ /**
6703
+ *
6704
+ * @type {Array<ICategoryResponseAttributesInner>}
6705
+ * @memberof IProductsResponse
6706
+ */
6707
+ 'attributes': Array<ICategoryResponseAttributesInner>;
6708
+ }
6709
+ /**
6710
+ *
6711
+ * @export
6712
+ * @interface IProductsResponseCategoriesInner
6713
+ */
6714
+ export interface IProductsResponseCategoriesInner {
6715
+ /**
6716
+ *
6717
+ * @type {RecordLanguageEnumTitleString}
6718
+ * @memberof IProductsResponseCategoriesInner
6719
+ */
6720
+ 'contents': RecordLanguageEnumTitleString;
6721
+ /**
6722
+ *
6723
+ * @type {string}
6724
+ * @memberof IProductsResponseCategoriesInner
6725
+ */
6726
+ '_id': string;
6727
+ }
6728
+ /**
6729
+ *
6730
+ * @export
6731
+ * @interface IProductsResponseCategory
6732
+ */
6733
+ export interface IProductsResponseCategory {
6734
+ /**
6735
+ *
6736
+ * @type {string}
6737
+ * @memberof IProductsResponseCategory
6738
+ */
6739
+ '_id': string;
6740
+ /**
6741
+ *
6742
+ * @type {string}
6743
+ * @memberof IProductsResponseCategory
6744
+ */
6745
+ 'main'?: string;
6746
+ /**
6747
+ *
6748
+ * @type {Array<ICategoryResponseAttributesInner>}
6749
+ * @memberof IProductsResponseCategory
6750
+ */
6751
+ 'attributes': Array<ICategoryResponseAttributesInner>;
6752
+ /**
6753
+ *
6754
+ * @type {RecordLanguageEnumTitleString}
6755
+ * @memberof IProductsResponseCategory
6756
+ */
6757
+ 'contents': RecordLanguageEnumTitleString;
6666
6758
  }
6667
6759
  /**
6668
6760
  *
@@ -6746,19 +6838,6 @@ export interface IResetPasswordRequest {
6746
6838
  */
6747
6839
  'code': string;
6748
6840
  }
6749
- /**
6750
- *
6751
- * @export
6752
- * @interface ISearchProductsResponse
6753
- */
6754
- export interface ISearchProductsResponse {
6755
- /**
6756
- *
6757
- * @type {Array<IProductResponse>}
6758
- * @memberof ISearchProductsResponse
6759
- */
6760
- 'data': Array<IProductResponse>;
6761
- }
6762
6841
  /**
6763
6842
  *
6764
6843
  * @export
@@ -8274,35 +8353,22 @@ export interface PartialRecordLanguageEnumString {
8274
8353
  export interface PartialRecordLanguageEnumTitleString {
8275
8354
  /**
8276
8355
  *
8277
- * @type {PartialRecordLanguageEnumTitleStringTr}
8356
+ * @type {RecordLanguageEnumTitleStringTr}
8278
8357
  * @memberof PartialRecordLanguageEnumTitleString
8279
8358
  */
8280
- 'tr'?: PartialRecordLanguageEnumTitleStringTr;
8359
+ 'tr'?: RecordLanguageEnumTitleStringTr;
8281
8360
  /**
8282
8361
  *
8283
- * @type {PartialRecordLanguageEnumTitleStringTr}
8362
+ * @type {RecordLanguageEnumTitleStringTr}
8284
8363
  * @memberof PartialRecordLanguageEnumTitleString
8285
8364
  */
8286
- 'en'?: PartialRecordLanguageEnumTitleStringTr;
8365
+ 'en'?: RecordLanguageEnumTitleStringTr;
8287
8366
  /**
8288
8367
  *
8289
- * @type {PartialRecordLanguageEnumTitleStringTr}
8368
+ * @type {RecordLanguageEnumTitleStringTr}
8290
8369
  * @memberof PartialRecordLanguageEnumTitleString
8291
8370
  */
8292
- 'de'?: PartialRecordLanguageEnumTitleStringTr;
8293
- }
8294
- /**
8295
- *
8296
- * @export
8297
- * @interface PartialRecordLanguageEnumTitleStringTr
8298
- */
8299
- export interface PartialRecordLanguageEnumTitleStringTr {
8300
- /**
8301
- *
8302
- * @type {string}
8303
- * @memberof PartialRecordLanguageEnumTitleStringTr
8304
- */
8305
- 'title': string;
8371
+ 'de'?: RecordLanguageEnumTitleStringTr;
8306
8372
  }
8307
8373
  /**
8308
8374
  *
@@ -8480,6 +8546,31 @@ export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoRes
8480
8546
  */
8481
8547
  'contents': PartialRecordLanguageEnumIContentsValue;
8482
8548
  }
8549
+ /**
8550
+ * From T, pick a set of properties whose keys are in the union K
8551
+ * @export
8552
+ * @interface PickICategoryResponseIdOrAttributesOrMain
8553
+ */
8554
+ export interface PickICategoryResponseIdOrAttributesOrMain {
8555
+ /**
8556
+ *
8557
+ * @type {string}
8558
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8559
+ */
8560
+ '_id': string;
8561
+ /**
8562
+ *
8563
+ * @type {string}
8564
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8565
+ */
8566
+ 'main'?: string;
8567
+ /**
8568
+ *
8569
+ * @type {Array<ICategoryResponseAttributesInner>}
8570
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8571
+ */
8572
+ 'attributes': Array<ICategoryResponseAttributesInner>;
8573
+ }
8483
8574
  /**
8484
8575
  * From T, pick a set of properties whose keys are in the union K
8485
8576
  * @export
@@ -10391,6 +10482,44 @@ export interface RecordCurrencyEnumNumber {
10391
10482
  */
10392
10483
  'jpy': number;
10393
10484
  }
10485
+ /**
10486
+ * Construct a type with a set of properties K of type T
10487
+ * @export
10488
+ * @interface RecordLanguageEnumTitleString
10489
+ */
10490
+ export interface RecordLanguageEnumTitleString {
10491
+ /**
10492
+ *
10493
+ * @type {RecordLanguageEnumTitleStringTr}
10494
+ * @memberof RecordLanguageEnumTitleString
10495
+ */
10496
+ 'tr': RecordLanguageEnumTitleStringTr;
10497
+ /**
10498
+ *
10499
+ * @type {RecordLanguageEnumTitleStringTr}
10500
+ * @memberof RecordLanguageEnumTitleString
10501
+ */
10502
+ 'en': RecordLanguageEnumTitleStringTr;
10503
+ /**
10504
+ *
10505
+ * @type {RecordLanguageEnumTitleStringTr}
10506
+ * @memberof RecordLanguageEnumTitleString
10507
+ */
10508
+ 'de': RecordLanguageEnumTitleStringTr;
10509
+ }
10510
+ /**
10511
+ *
10512
+ * @export
10513
+ * @interface RecordLanguageEnumTitleStringTr
10514
+ */
10515
+ export interface RecordLanguageEnumTitleStringTr {
10516
+ /**
10517
+ *
10518
+ * @type {string}
10519
+ * @memberof RecordLanguageEnumTitleStringTr
10520
+ */
10521
+ 'title': string;
10522
+ }
10394
10523
  /**
10395
10524
  *
10396
10525
  * @export
@@ -12517,26 +12646,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
12517
12646
  * @param {string} [companyId]
12518
12647
  * @param {string} [domain]
12519
12648
  * @param {Array<string>} [collections]
12520
- * @param {Array<string>} [category]
12649
+ * @param {string} [category]
12521
12650
  * @param {Array<string>} [brand]
12522
12651
  * @param {boolean} [inStock]
12523
12652
  * @param {number} [priceGte]
12524
12653
  * @param {number} [priceLte]
12654
+ * @param {boolean} [autoComplete]
12655
+ * @param {Array<string>} [mainVariant]
12656
+ * @param {Array<string>} [subVariant]
12525
12657
  * @param {GetProductsSortEnum} [sort]
12526
12658
  * @param {ContentStatusEnum} [status]
12527
12659
  * @param {*} [options] Override http request option.
12528
12660
  * @throws {RequiredError}
12529
12661
  */
12530
- getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: Array<string>, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12531
- /**
12532
- *
12533
- * @param {string} search
12534
- * @param {string} [companyId]
12535
- * @param {string} [domain]
12536
- * @param {*} [options] Override http request option.
12537
- * @throws {RequiredError}
12538
- */
12539
- searchProducts: (search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12662
+ getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean, mainVariant?: Array<string>, subVariant?: Array<string>, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12540
12663
  };
12541
12664
  /**
12542
12665
  * ProductApi - functional programming interface
@@ -12564,26 +12687,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
12564
12687
  * @param {string} [companyId]
12565
12688
  * @param {string} [domain]
12566
12689
  * @param {Array<string>} [collections]
12567
- * @param {Array<string>} [category]
12690
+ * @param {string} [category]
12568
12691
  * @param {Array<string>} [brand]
12569
12692
  * @param {boolean} [inStock]
12570
12693
  * @param {number} [priceGte]
12571
12694
  * @param {number} [priceLte]
12695
+ * @param {boolean} [autoComplete]
12696
+ * @param {Array<string>} [mainVariant]
12697
+ * @param {Array<string>} [subVariant]
12572
12698
  * @param {GetProductsSortEnum} [sort]
12573
12699
  * @param {ContentStatusEnum} [status]
12574
12700
  * @param {*} [options] Override http request option.
12575
12701
  * @throws {RequiredError}
12576
12702
  */
12577
- getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: Array<string>, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductsResponse>>;
12578
- /**
12579
- *
12580
- * @param {string} search
12581
- * @param {string} [companyId]
12582
- * @param {string} [domain]
12583
- * @param {*} [options] Override http request option.
12584
- * @throws {RequiredError}
12585
- */
12586
- searchProducts(search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ISearchProductsResponse>>;
12703
+ getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean, mainVariant?: Array<string>, subVariant?: Array<string>, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductsResponse>>;
12587
12704
  };
12588
12705
  /**
12589
12706
  * ProductApi - factory interface
@@ -12604,13 +12721,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
12604
12721
  * @throws {RequiredError}
12605
12722
  */
12606
12723
  getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductsResponse>;
12607
- /**
12608
- *
12609
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
12610
- * @param {*} [options] Override http request option.
12611
- * @throws {RequiredError}
12612
- */
12613
- searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ISearchProductsResponse>;
12614
12724
  };
12615
12725
  /**
12616
12726
  * Request parameters for getProductBySlug operation in ProductApi.
@@ -12705,10 +12815,10 @@ export interface ProductApiGetProductsRequest {
12705
12815
  readonly collections?: Array<string>;
12706
12816
  /**
12707
12817
  *
12708
- * @type {Array<string>}
12818
+ * @type {string}
12709
12819
  * @memberof ProductApiGetProducts
12710
12820
  */
12711
- readonly category?: Array<string>;
12821
+ readonly category?: string;
12712
12822
  /**
12713
12823
  *
12714
12824
  * @type {Array<string>}
@@ -12735,41 +12845,34 @@ export interface ProductApiGetProductsRequest {
12735
12845
  readonly priceLte?: number;
12736
12846
  /**
12737
12847
  *
12738
- * @type {'price' | 'createdAt' | 'totalSale'}
12848
+ * @type {boolean}
12739
12849
  * @memberof ProductApiGetProducts
12740
12850
  */
12741
- readonly sort?: GetProductsSortEnum;
12851
+ readonly autoComplete?: boolean;
12742
12852
  /**
12743
12853
  *
12744
- * @type {ContentStatusEnum}
12854
+ * @type {Array<string>}
12745
12855
  * @memberof ProductApiGetProducts
12746
12856
  */
12747
- readonly status?: ContentStatusEnum;
12748
- }
12749
- /**
12750
- * Request parameters for searchProducts operation in ProductApi.
12751
- * @export
12752
- * @interface ProductApiSearchProductsRequest
12753
- */
12754
- export interface ProductApiSearchProductsRequest {
12857
+ readonly mainVariant?: Array<string>;
12755
12858
  /**
12756
12859
  *
12757
- * @type {string}
12758
- * @memberof ProductApiSearchProducts
12860
+ * @type {Array<string>}
12861
+ * @memberof ProductApiGetProducts
12759
12862
  */
12760
- readonly search: string;
12863
+ readonly subVariant?: Array<string>;
12761
12864
  /**
12762
12865
  *
12763
- * @type {string}
12764
- * @memberof ProductApiSearchProducts
12866
+ * @type {'price' | 'createdAt' | 'totalSale'}
12867
+ * @memberof ProductApiGetProducts
12765
12868
  */
12766
- readonly companyId?: string;
12869
+ readonly sort?: GetProductsSortEnum;
12767
12870
  /**
12768
12871
  *
12769
- * @type {string}
12770
- * @memberof ProductApiSearchProducts
12872
+ * @type {ContentStatusEnum}
12873
+ * @memberof ProductApiGetProducts
12771
12874
  */
12772
- readonly domain?: string;
12875
+ readonly status?: ContentStatusEnum;
12773
12876
  }
12774
12877
  /**
12775
12878
  * ProductApi - object-oriented interface
@@ -12794,14 +12897,6 @@ export declare class ProductApi extends BaseAPI {
12794
12897
  * @memberof ProductApi
12795
12898
  */
12796
12899
  getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductsResponse, any>>;
12797
- /**
12798
- *
12799
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
12800
- * @param {*} [options] Override http request option.
12801
- * @throws {RequiredError}
12802
- * @memberof ProductApi
12803
- */
12804
- searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ISearchProductsResponse, any>>;
12805
12900
  }
12806
12901
  /**
12807
12902
  * @export
package/dist/api/api.js CHANGED
@@ -3214,17 +3214,20 @@ const ProductApiAxiosParamCreator = function (configuration) {
3214
3214
  * @param {string} [companyId]
3215
3215
  * @param {string} [domain]
3216
3216
  * @param {Array<string>} [collections]
3217
- * @param {Array<string>} [category]
3217
+ * @param {string} [category]
3218
3218
  * @param {Array<string>} [brand]
3219
3219
  * @param {boolean} [inStock]
3220
3220
  * @param {number} [priceGte]
3221
3221
  * @param {number} [priceLte]
3222
+ * @param {boolean} [autoComplete]
3223
+ * @param {Array<string>} [mainVariant]
3224
+ * @param {Array<string>} [subVariant]
3222
3225
  * @param {GetProductsSortEnum} [sort]
3223
3226
  * @param {ContentStatusEnum} [status]
3224
3227
  * @param {*} [options] Override http request option.
3225
3228
  * @throws {RequiredError}
3226
3229
  */
3227
- getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options = {}) => {
3230
+ getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
3228
3231
  const localVarPath = `/api/products`;
3229
3232
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3230
3233
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3269,7 +3272,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
3269
3272
  if (collections) {
3270
3273
  localVarQueryParameter['collections'] = collections;
3271
3274
  }
3272
- if (category) {
3275
+ if (category !== undefined) {
3273
3276
  localVarQueryParameter['category'] = category;
3274
3277
  }
3275
3278
  if (brand) {
@@ -3284,6 +3287,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
3284
3287
  if (priceLte !== undefined) {
3285
3288
  localVarQueryParameter['priceLte'] = priceLte;
3286
3289
  }
3290
+ if (autoComplete !== undefined) {
3291
+ localVarQueryParameter['autoComplete'] = autoComplete;
3292
+ }
3293
+ if (mainVariant) {
3294
+ localVarQueryParameter['mainVariant'] = mainVariant;
3295
+ }
3296
+ if (subVariant) {
3297
+ localVarQueryParameter['subVariant'] = subVariant;
3298
+ }
3287
3299
  if (sort !== undefined) {
3288
3300
  localVarQueryParameter['sort'] = sort;
3289
3301
  }
@@ -3298,44 +3310,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
3298
3310
  options: localVarRequestOptions,
3299
3311
  };
3300
3312
  },
3301
- /**
3302
- *
3303
- * @param {string} search
3304
- * @param {string} [companyId]
3305
- * @param {string} [domain]
3306
- * @param {*} [options] Override http request option.
3307
- * @throws {RequiredError}
3308
- */
3309
- searchProducts: async (search, companyId, domain, options = {}) => {
3310
- // verify required parameter 'search' is not null or undefined
3311
- (0, common_1.assertParamExists)('searchProducts', 'search', search);
3312
- const localVarPath = `/api/products/search`;
3313
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3314
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3315
- let baseOptions;
3316
- if (configuration) {
3317
- baseOptions = configuration.baseOptions;
3318
- }
3319
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3320
- const localVarHeaderParameter = {};
3321
- const localVarQueryParameter = {};
3322
- if (search !== undefined) {
3323
- localVarQueryParameter['search'] = search;
3324
- }
3325
- if (companyId !== undefined) {
3326
- localVarQueryParameter['companyId'] = companyId;
3327
- }
3328
- if (domain !== undefined) {
3329
- localVarQueryParameter['domain'] = domain;
3330
- }
3331
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3332
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3333
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3334
- return {
3335
- url: (0, common_1.toPathString)(localVarUrlObj),
3336
- options: localVarRequestOptions,
3337
- };
3338
- },
3339
3313
  };
3340
3314
  };
3341
3315
  exports.ProductApiAxiosParamCreator = ProductApiAxiosParamCreator;
@@ -3372,36 +3346,25 @@ const ProductApiFp = function (configuration) {
3372
3346
  * @param {string} [companyId]
3373
3347
  * @param {string} [domain]
3374
3348
  * @param {Array<string>} [collections]
3375
- * @param {Array<string>} [category]
3349
+ * @param {string} [category]
3376
3350
  * @param {Array<string>} [brand]
3377
3351
  * @param {boolean} [inStock]
3378
3352
  * @param {number} [priceGte]
3379
3353
  * @param {number} [priceLte]
3354
+ * @param {boolean} [autoComplete]
3355
+ * @param {Array<string>} [mainVariant]
3356
+ * @param {Array<string>} [subVariant]
3380
3357
  * @param {GetProductsSortEnum} [sort]
3381
3358
  * @param {ContentStatusEnum} [status]
3382
3359
  * @param {*} [options] Override http request option.
3383
3360
  * @throws {RequiredError}
3384
3361
  */
3385
- async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options) {
3386
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options);
3362
+ async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options) {
3363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options);
3387
3364
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3388
3365
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
3389
3366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3390
3367
  },
3391
- /**
3392
- *
3393
- * @param {string} search
3394
- * @param {string} [companyId]
3395
- * @param {string} [domain]
3396
- * @param {*} [options] Override http request option.
3397
- * @throws {RequiredError}
3398
- */
3399
- async searchProducts(search, companyId, domain, options) {
3400
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
3401
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3402
- const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
3403
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3404
- },
3405
3368
  };
3406
3369
  };
3407
3370
  exports.ProductApiFp = ProductApiFp;
@@ -3428,16 +3391,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
3428
3391
  * @throws {RequiredError}
3429
3392
  */
3430
3393
  getProducts(requestParameters = {}, options) {
3431
- return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
3432
- },
3433
- /**
3434
- *
3435
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
3436
- * @param {*} [options] Override http request option.
3437
- * @throws {RequiredError}
3438
- */
3439
- searchProducts(requestParameters, options) {
3440
- return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
3394
+ return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.mainVariant, requestParameters.subVariant, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
3441
3395
  },
3442
3396
  };
3443
3397
  };
@@ -3467,17 +3421,7 @@ class ProductApi extends base_1.BaseAPI {
3467
3421
  * @memberof ProductApi
3468
3422
  */
3469
3423
  getProducts(requestParameters = {}, options) {
3470
- return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
3471
- }
3472
- /**
3473
- *
3474
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
3475
- * @param {*} [options] Override http request option.
3476
- * @throws {RequiredError}
3477
- * @memberof ProductApi
3478
- */
3479
- searchProducts(requestParameters, options) {
3480
- return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3424
+ return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.mainVariant, requestParameters.subVariant, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
3481
3425
  }
3482
3426
  }
3483
3427
  exports.ProductApi = ProductApi;
package/dist/api/api.mjs CHANGED
@@ -3171,17 +3171,20 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3171
3171
  * @param {string} [companyId]
3172
3172
  * @param {string} [domain]
3173
3173
  * @param {Array<string>} [collections]
3174
- * @param {Array<string>} [category]
3174
+ * @param {string} [category]
3175
3175
  * @param {Array<string>} [brand]
3176
3176
  * @param {boolean} [inStock]
3177
3177
  * @param {number} [priceGte]
3178
3178
  * @param {number} [priceLte]
3179
+ * @param {boolean} [autoComplete]
3180
+ * @param {Array<string>} [mainVariant]
3181
+ * @param {Array<string>} [subVariant]
3179
3182
  * @param {GetProductsSortEnum} [sort]
3180
3183
  * @param {ContentStatusEnum} [status]
3181
3184
  * @param {*} [options] Override http request option.
3182
3185
  * @throws {RequiredError}
3183
3186
  */
3184
- getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options = {}) => {
3187
+ getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
3185
3188
  const localVarPath = `/api/products`;
3186
3189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3187
3190
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3226,7 +3229,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3226
3229
  if (collections) {
3227
3230
  localVarQueryParameter['collections'] = collections;
3228
3231
  }
3229
- if (category) {
3232
+ if (category !== undefined) {
3230
3233
  localVarQueryParameter['category'] = category;
3231
3234
  }
3232
3235
  if (brand) {
@@ -3241,6 +3244,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3241
3244
  if (priceLte !== undefined) {
3242
3245
  localVarQueryParameter['priceLte'] = priceLte;
3243
3246
  }
3247
+ if (autoComplete !== undefined) {
3248
+ localVarQueryParameter['autoComplete'] = autoComplete;
3249
+ }
3250
+ if (mainVariant) {
3251
+ localVarQueryParameter['mainVariant'] = mainVariant;
3252
+ }
3253
+ if (subVariant) {
3254
+ localVarQueryParameter['subVariant'] = subVariant;
3255
+ }
3244
3256
  if (sort !== undefined) {
3245
3257
  localVarQueryParameter['sort'] = sort;
3246
3258
  }
@@ -3255,44 +3267,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3255
3267
  options: localVarRequestOptions,
3256
3268
  };
3257
3269
  },
3258
- /**
3259
- *
3260
- * @param {string} search
3261
- * @param {string} [companyId]
3262
- * @param {string} [domain]
3263
- * @param {*} [options] Override http request option.
3264
- * @throws {RequiredError}
3265
- */
3266
- searchProducts: async (search, companyId, domain, options = {}) => {
3267
- // verify required parameter 'search' is not null or undefined
3268
- assertParamExists('searchProducts', 'search', search);
3269
- const localVarPath = `/api/products/search`;
3270
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3271
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3272
- let baseOptions;
3273
- if (configuration) {
3274
- baseOptions = configuration.baseOptions;
3275
- }
3276
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3277
- const localVarHeaderParameter = {};
3278
- const localVarQueryParameter = {};
3279
- if (search !== undefined) {
3280
- localVarQueryParameter['search'] = search;
3281
- }
3282
- if (companyId !== undefined) {
3283
- localVarQueryParameter['companyId'] = companyId;
3284
- }
3285
- if (domain !== undefined) {
3286
- localVarQueryParameter['domain'] = domain;
3287
- }
3288
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3289
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3290
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3291
- return {
3292
- url: toPathString(localVarUrlObj),
3293
- options: localVarRequestOptions,
3294
- };
3295
- },
3296
3270
  };
3297
3271
  };
3298
3272
  /**
@@ -3328,36 +3302,25 @@ export const ProductApiFp = function (configuration) {
3328
3302
  * @param {string} [companyId]
3329
3303
  * @param {string} [domain]
3330
3304
  * @param {Array<string>} [collections]
3331
- * @param {Array<string>} [category]
3305
+ * @param {string} [category]
3332
3306
  * @param {Array<string>} [brand]
3333
3307
  * @param {boolean} [inStock]
3334
3308
  * @param {number} [priceGte]
3335
3309
  * @param {number} [priceLte]
3310
+ * @param {boolean} [autoComplete]
3311
+ * @param {Array<string>} [mainVariant]
3312
+ * @param {Array<string>} [subVariant]
3336
3313
  * @param {GetProductsSortEnum} [sort]
3337
3314
  * @param {ContentStatusEnum} [status]
3338
3315
  * @param {*} [options] Override http request option.
3339
3316
  * @throws {RequiredError}
3340
3317
  */
3341
- async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options) {
3342
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options);
3318
+ async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options) {
3319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options);
3343
3320
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3344
3321
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
3345
3322
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3346
3323
  },
3347
- /**
3348
- *
3349
- * @param {string} search
3350
- * @param {string} [companyId]
3351
- * @param {string} [domain]
3352
- * @param {*} [options] Override http request option.
3353
- * @throws {RequiredError}
3354
- */
3355
- async searchProducts(search, companyId, domain, options) {
3356
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
3357
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3358
- const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
3359
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3360
- },
3361
3324
  };
3362
3325
  };
3363
3326
  /**
@@ -3383,16 +3346,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
3383
3346
  * @throws {RequiredError}
3384
3347
  */
3385
3348
  getProducts(requestParameters = {}, options) {
3386
- return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
3387
- },
3388
- /**
3389
- *
3390
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
3391
- * @param {*} [options] Override http request option.
3392
- * @throws {RequiredError}
3393
- */
3394
- searchProducts(requestParameters, options) {
3395
- return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
3349
+ return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.mainVariant, requestParameters.subVariant, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
3396
3350
  },
3397
3351
  };
3398
3352
  };
@@ -3421,17 +3375,7 @@ export class ProductApi extends BaseAPI {
3421
3375
  * @memberof ProductApi
3422
3376
  */
3423
3377
  getProducts(requestParameters = {}, options) {
3424
- return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
3425
- }
3426
- /**
3427
- *
3428
- * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
3429
- * @param {*} [options] Override http request option.
3430
- * @throws {RequiredError}
3431
- * @memberof ProductApi
3432
- */
3433
- searchProducts(requestParameters, options) {
3434
- return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3378
+ return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.mainVariant, requestParameters.subVariant, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
3435
3379
  }
3436
3380
  }
3437
3381
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.71",
3
+ "version": "1.2.72",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "e759c4adf9108558ff35943d276c379a2e545019"
40
+ "gitHead": "ec7683128d2f690b94d30bf2ec2e03c904b91780"
41
41
  }