@infisale-client/api-client 1.2.71 → 1.2.73

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
@@ -7002,6 +7081,18 @@ export interface ITemplateResponse {
7002
7081
  * @interface ITemplateResponseComponentsInner
7003
7082
  */
7004
7083
  export interface ITemplateResponseComponentsInner {
7084
+ /**
7085
+ *
7086
+ * @type {string}
7087
+ * @memberof ITemplateResponseComponentsInner
7088
+ */
7089
+ 'desktopVariant'?: string;
7090
+ /**
7091
+ *
7092
+ * @type {string}
7093
+ * @memberof ITemplateResponseComponentsInner
7094
+ */
7095
+ 'mobileVariant'?: string;
7005
7096
  /**
7006
7097
  *
7007
7098
  * @type {Array<ITemplateResponseComponentsInnerContentsInner>}
@@ -8274,35 +8365,22 @@ export interface PartialRecordLanguageEnumString {
8274
8365
  export interface PartialRecordLanguageEnumTitleString {
8275
8366
  /**
8276
8367
  *
8277
- * @type {PartialRecordLanguageEnumTitleStringTr}
8368
+ * @type {RecordLanguageEnumTitleStringTr}
8278
8369
  * @memberof PartialRecordLanguageEnumTitleString
8279
8370
  */
8280
- 'tr'?: PartialRecordLanguageEnumTitleStringTr;
8371
+ 'tr'?: RecordLanguageEnumTitleStringTr;
8281
8372
  /**
8282
8373
  *
8283
- * @type {PartialRecordLanguageEnumTitleStringTr}
8374
+ * @type {RecordLanguageEnumTitleStringTr}
8284
8375
  * @memberof PartialRecordLanguageEnumTitleString
8285
8376
  */
8286
- 'en'?: PartialRecordLanguageEnumTitleStringTr;
8377
+ 'en'?: RecordLanguageEnumTitleStringTr;
8287
8378
  /**
8288
8379
  *
8289
- * @type {PartialRecordLanguageEnumTitleStringTr}
8380
+ * @type {RecordLanguageEnumTitleStringTr}
8290
8381
  * @memberof PartialRecordLanguageEnumTitleString
8291
8382
  */
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;
8383
+ 'de'?: RecordLanguageEnumTitleStringTr;
8306
8384
  }
8307
8385
  /**
8308
8386
  *
@@ -8480,6 +8558,31 @@ export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoRes
8480
8558
  */
8481
8559
  'contents': PartialRecordLanguageEnumIContentsValue;
8482
8560
  }
8561
+ /**
8562
+ * From T, pick a set of properties whose keys are in the union K
8563
+ * @export
8564
+ * @interface PickICategoryResponseIdOrAttributesOrMain
8565
+ */
8566
+ export interface PickICategoryResponseIdOrAttributesOrMain {
8567
+ /**
8568
+ *
8569
+ * @type {string}
8570
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8571
+ */
8572
+ '_id': string;
8573
+ /**
8574
+ *
8575
+ * @type {string}
8576
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8577
+ */
8578
+ 'main'?: string;
8579
+ /**
8580
+ *
8581
+ * @type {Array<ICategoryResponseAttributesInner>}
8582
+ * @memberof PickICategoryResponseIdOrAttributesOrMain
8583
+ */
8584
+ 'attributes': Array<ICategoryResponseAttributesInner>;
8585
+ }
8483
8586
  /**
8484
8587
  * From T, pick a set of properties whose keys are in the union K
8485
8588
  * @export
@@ -9485,67 +9588,67 @@ export interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrT
9485
9588
  /**
9486
9589
  * From T, pick a set of properties whose keys are in the union K
9487
9590
  * @export
9488
- * @interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9591
+ * @interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9489
9592
  */
9490
- export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
9593
+ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields {
9491
9594
  /**
9492
9595
  *
9493
9596
  * @type {string}
9494
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9597
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9495
9598
  */
9496
9599
  'company': string;
9497
9600
  /**
9498
9601
  *
9499
9602
  * @type {string}
9500
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9603
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9501
9604
  */
9502
9605
  '_id': string;
9503
9606
  /**
9504
9607
  *
9505
9608
  * @type {number}
9506
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9609
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9507
9610
  */
9508
9611
  '__v': number;
9509
9612
  /**
9510
9613
  *
9511
9614
  * @type {string}
9512
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9615
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9513
9616
  */
9514
9617
  'createdAt': string;
9515
9618
  /**
9516
9619
  *
9517
9620
  * @type {string}
9518
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9621
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9519
9622
  */
9520
9623
  'updatedAt': string;
9521
9624
  /**
9522
9625
  *
9523
9626
  * @type {number}
9524
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9627
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9525
9628
  */
9526
9629
  'totalStock': number;
9527
9630
  /**
9528
9631
  *
9529
9632
  * @type {number}
9530
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9633
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9531
9634
  */
9532
9635
  'totalSale': number;
9533
9636
  /**
9534
9637
  *
9535
9638
  * @type {boolean}
9536
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9639
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9537
9640
  */
9538
9641
  'negativeStock'?: boolean;
9539
9642
  /**
9540
9643
  *
9541
9644
  * @type {Array<string>}
9542
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9645
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9543
9646
  */
9544
9647
  'collections': Array<string>;
9545
9648
  /**
9546
9649
  * Construct a type with a set of properties K of type T
9547
9650
  * @type {{ [key: string]: string; }}
9548
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9651
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9549
9652
  */
9550
9653
  'templates': {
9551
9654
  [key: string]: string;
@@ -9553,25 +9656,25 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
9553
9656
  /**
9554
9657
  *
9555
9658
  * @type {string}
9556
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9659
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9557
9660
  */
9558
9661
  'sku'?: string;
9559
9662
  /**
9560
9663
  *
9561
9664
  * @type {string}
9562
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9665
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9563
9666
  */
9564
9667
  'barcode'?: string;
9565
9668
  /**
9566
9669
  *
9567
9670
  * @type {Array<IImage>}
9568
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9671
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9569
9672
  */
9570
9673
  'photos': Array<IImage>;
9571
9674
  /**
9572
9675
  *
9573
9676
  * @type {{ [key: string]: IProductResponseStockValue; }}
9574
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9677
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9575
9678
  */
9576
9679
  'stock'?: {
9577
9680
  [key: string]: IProductResponseStockValue;
@@ -9579,31 +9682,31 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
9579
9682
  /**
9580
9683
  *
9581
9684
  * @type {boolean}
9582
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9685
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9583
9686
  */
9584
9687
  'stocklessSale'?: boolean;
9585
9688
  /**
9586
9689
  *
9587
9690
  * @type {PriceType}
9588
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9691
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9589
9692
  */
9590
9693
  'priceInfo': PriceType;
9591
9694
  /**
9592
9695
  *
9593
9696
  * @type {PartialRecordLanguageEnumIContentsValue}
9594
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9697
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9595
9698
  */
9596
9699
  'contents': PartialRecordLanguageEnumIContentsValue;
9597
9700
  /**
9598
9701
  *
9599
9702
  * @type {Array<VariantType>}
9600
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9703
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9601
9704
  */
9602
9705
  'variants'?: Array<VariantType>;
9603
9706
  /**
9604
9707
  * Construct a type with a set of properties K of type T
9605
9708
  * @type {{ [key: string]: Array<IImage>; }}
9606
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9709
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9607
9710
  */
9608
9711
  'mainVariantsPhotos'?: {
9609
9712
  [key: string]: Array<IImage>;
@@ -9611,7 +9714,7 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
9611
9714
  /**
9612
9715
  *
9613
9716
  * @type {{ [key: string]: string; }}
9614
- * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate
9717
+ * @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
9615
9718
  */
9616
9719
  'attributes'?: {
9617
9720
  [key: string]: string;
@@ -10391,6 +10494,44 @@ export interface RecordCurrencyEnumNumber {
10391
10494
  */
10392
10495
  'jpy': number;
10393
10496
  }
10497
+ /**
10498
+ * Construct a type with a set of properties K of type T
10499
+ * @export
10500
+ * @interface RecordLanguageEnumTitleString
10501
+ */
10502
+ export interface RecordLanguageEnumTitleString {
10503
+ /**
10504
+ *
10505
+ * @type {RecordLanguageEnumTitleStringTr}
10506
+ * @memberof RecordLanguageEnumTitleString
10507
+ */
10508
+ 'tr': RecordLanguageEnumTitleStringTr;
10509
+ /**
10510
+ *
10511
+ * @type {RecordLanguageEnumTitleStringTr}
10512
+ * @memberof RecordLanguageEnumTitleString
10513
+ */
10514
+ 'en': RecordLanguageEnumTitleStringTr;
10515
+ /**
10516
+ *
10517
+ * @type {RecordLanguageEnumTitleStringTr}
10518
+ * @memberof RecordLanguageEnumTitleString
10519
+ */
10520
+ 'de': RecordLanguageEnumTitleStringTr;
10521
+ }
10522
+ /**
10523
+ *
10524
+ * @export
10525
+ * @interface RecordLanguageEnumTitleStringTr
10526
+ */
10527
+ export interface RecordLanguageEnumTitleStringTr {
10528
+ /**
10529
+ *
10530
+ * @type {string}
10531
+ * @memberof RecordLanguageEnumTitleStringTr
10532
+ */
10533
+ 'title': string;
10534
+ }
10394
10535
  /**
10395
10536
  *
10396
10537
  * @export
@@ -12517,26 +12658,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
12517
12658
  * @param {string} [companyId]
12518
12659
  * @param {string} [domain]
12519
12660
  * @param {Array<string>} [collections]
12520
- * @param {Array<string>} [category]
12661
+ * @param {string} [category]
12521
12662
  * @param {Array<string>} [brand]
12522
12663
  * @param {boolean} [inStock]
12523
12664
  * @param {number} [priceGte]
12524
12665
  * @param {number} [priceLte]
12666
+ * @param {boolean} [autoComplete]
12667
+ * @param {Array<string>} [mainVariant]
12668
+ * @param {Array<string>} [subVariant]
12525
12669
  * @param {GetProductsSortEnum} [sort]
12526
12670
  * @param {ContentStatusEnum} [status]
12527
12671
  * @param {*} [options] Override http request option.
12528
12672
  * @throws {RequiredError}
12529
12673
  */
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>;
12674
+ 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
12675
  };
12541
12676
  /**
12542
12677
  * ProductApi - functional programming interface
@@ -12564,26 +12699,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
12564
12699
  * @param {string} [companyId]
12565
12700
  * @param {string} [domain]
12566
12701
  * @param {Array<string>} [collections]
12567
- * @param {Array<string>} [category]
12702
+ * @param {string} [category]
12568
12703
  * @param {Array<string>} [brand]
12569
12704
  * @param {boolean} [inStock]
12570
12705
  * @param {number} [priceGte]
12571
12706
  * @param {number} [priceLte]
12707
+ * @param {boolean} [autoComplete]
12708
+ * @param {Array<string>} [mainVariant]
12709
+ * @param {Array<string>} [subVariant]
12572
12710
  * @param {GetProductsSortEnum} [sort]
12573
12711
  * @param {ContentStatusEnum} [status]
12574
12712
  * @param {*} [options] Override http request option.
12575
12713
  * @throws {RequiredError}
12576
12714
  */
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>>;
12715
+ 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
12716
  };
12588
12717
  /**
12589
12718
  * ProductApi - factory interface
@@ -12604,13 +12733,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
12604
12733
  * @throws {RequiredError}
12605
12734
  */
12606
12735
  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
12736
  };
12615
12737
  /**
12616
12738
  * Request parameters for getProductBySlug operation in ProductApi.
@@ -12705,10 +12827,10 @@ export interface ProductApiGetProductsRequest {
12705
12827
  readonly collections?: Array<string>;
12706
12828
  /**
12707
12829
  *
12708
- * @type {Array<string>}
12830
+ * @type {string}
12709
12831
  * @memberof ProductApiGetProducts
12710
12832
  */
12711
- readonly category?: Array<string>;
12833
+ readonly category?: string;
12712
12834
  /**
12713
12835
  *
12714
12836
  * @type {Array<string>}
@@ -12735,41 +12857,34 @@ export interface ProductApiGetProductsRequest {
12735
12857
  readonly priceLte?: number;
12736
12858
  /**
12737
12859
  *
12738
- * @type {'price' | 'createdAt' | 'totalSale'}
12860
+ * @type {boolean}
12739
12861
  * @memberof ProductApiGetProducts
12740
12862
  */
12741
- readonly sort?: GetProductsSortEnum;
12863
+ readonly autoComplete?: boolean;
12742
12864
  /**
12743
12865
  *
12744
- * @type {ContentStatusEnum}
12866
+ * @type {Array<string>}
12745
12867
  * @memberof ProductApiGetProducts
12746
12868
  */
12747
- readonly status?: ContentStatusEnum;
12748
- }
12749
- /**
12750
- * Request parameters for searchProducts operation in ProductApi.
12751
- * @export
12752
- * @interface ProductApiSearchProductsRequest
12753
- */
12754
- export interface ProductApiSearchProductsRequest {
12869
+ readonly mainVariant?: Array<string>;
12755
12870
  /**
12756
12871
  *
12757
- * @type {string}
12758
- * @memberof ProductApiSearchProducts
12872
+ * @type {Array<string>}
12873
+ * @memberof ProductApiGetProducts
12759
12874
  */
12760
- readonly search: string;
12875
+ readonly subVariant?: Array<string>;
12761
12876
  /**
12762
12877
  *
12763
- * @type {string}
12764
- * @memberof ProductApiSearchProducts
12878
+ * @type {'price' | 'createdAt' | 'totalSale'}
12879
+ * @memberof ProductApiGetProducts
12765
12880
  */
12766
- readonly companyId?: string;
12881
+ readonly sort?: GetProductsSortEnum;
12767
12882
  /**
12768
12883
  *
12769
- * @type {string}
12770
- * @memberof ProductApiSearchProducts
12884
+ * @type {ContentStatusEnum}
12885
+ * @memberof ProductApiGetProducts
12771
12886
  */
12772
- readonly domain?: string;
12887
+ readonly status?: ContentStatusEnum;
12773
12888
  }
12774
12889
  /**
12775
12890
  * ProductApi - object-oriented interface
@@ -12794,14 +12909,6 @@ export declare class ProductApi extends BaseAPI {
12794
12909
  * @memberof ProductApi
12795
12910
  */
12796
12911
  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
12912
  }
12806
12913
  /**
12807
12914
  * @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.73",
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": "8eb91dd2ad1de417e8617769151b64e413ae6295"
41
41
  }