@infisale-client/api 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 +232 -117
- package/dist/api/api.js +33 -84
- package/dist/api/api.mjs +33 -84
- package/package.json +2 -2
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 {
|
|
6194
|
+
* @type {string}
|
|
6195
6195
|
* @memberof IProductCollectionQueryParams
|
|
6196
6196
|
*/
|
|
6197
|
-
'category'?:
|
|
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 {
|
|
8368
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8278
8369
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8279
8370
|
*/
|
|
8280
|
-
'tr'?:
|
|
8371
|
+
'tr'?: RecordLanguageEnumTitleStringTr;
|
|
8281
8372
|
/**
|
|
8282
8373
|
*
|
|
8283
|
-
* @type {
|
|
8374
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8284
8375
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8285
8376
|
*/
|
|
8286
|
-
'en'?:
|
|
8377
|
+
'en'?: RecordLanguageEnumTitleStringTr;
|
|
8287
8378
|
/**
|
|
8288
8379
|
*
|
|
8289
|
-
* @type {
|
|
8380
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8290
8381
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8291
8382
|
*/
|
|
8292
|
-
'de'?:
|
|
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
|
|
9591
|
+
* @interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9489
9592
|
*/
|
|
9490
|
-
export interface
|
|
9593
|
+
export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields {
|
|
9491
9594
|
/**
|
|
9492
9595
|
*
|
|
9493
9596
|
* @type {string}
|
|
9494
|
-
* @memberof
|
|
9597
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9495
9598
|
*/
|
|
9496
9599
|
'company': string;
|
|
9497
9600
|
/**
|
|
9498
9601
|
*
|
|
9499
9602
|
* @type {string}
|
|
9500
|
-
* @memberof
|
|
9603
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9501
9604
|
*/
|
|
9502
9605
|
'_id': string;
|
|
9503
9606
|
/**
|
|
9504
9607
|
*
|
|
9505
9608
|
* @type {number}
|
|
9506
|
-
* @memberof
|
|
9609
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9507
9610
|
*/
|
|
9508
9611
|
'__v': number;
|
|
9509
9612
|
/**
|
|
9510
9613
|
*
|
|
9511
9614
|
* @type {string}
|
|
9512
|
-
* @memberof
|
|
9615
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9513
9616
|
*/
|
|
9514
9617
|
'createdAt': string;
|
|
9515
9618
|
/**
|
|
9516
9619
|
*
|
|
9517
9620
|
* @type {string}
|
|
9518
|
-
* @memberof
|
|
9621
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9519
9622
|
*/
|
|
9520
9623
|
'updatedAt': string;
|
|
9521
9624
|
/**
|
|
9522
9625
|
*
|
|
9523
9626
|
* @type {number}
|
|
9524
|
-
* @memberof
|
|
9627
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9525
9628
|
*/
|
|
9526
9629
|
'totalStock': number;
|
|
9527
9630
|
/**
|
|
9528
9631
|
*
|
|
9529
9632
|
* @type {number}
|
|
9530
|
-
* @memberof
|
|
9633
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9531
9634
|
*/
|
|
9532
9635
|
'totalSale': number;
|
|
9533
9636
|
/**
|
|
9534
9637
|
*
|
|
9535
9638
|
* @type {boolean}
|
|
9536
|
-
* @memberof
|
|
9639
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9537
9640
|
*/
|
|
9538
9641
|
'negativeStock'?: boolean;
|
|
9539
9642
|
/**
|
|
9540
9643
|
*
|
|
9541
9644
|
* @type {Array<string>}
|
|
9542
|
-
* @memberof
|
|
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
|
|
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
|
|
9659
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9557
9660
|
*/
|
|
9558
9661
|
'sku'?: string;
|
|
9559
9662
|
/**
|
|
9560
9663
|
*
|
|
9561
9664
|
* @type {string}
|
|
9562
|
-
* @memberof
|
|
9665
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9563
9666
|
*/
|
|
9564
9667
|
'barcode'?: string;
|
|
9565
9668
|
/**
|
|
9566
9669
|
*
|
|
9567
9670
|
* @type {Array<IImage>}
|
|
9568
|
-
* @memberof
|
|
9671
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9569
9672
|
*/
|
|
9570
9673
|
'photos': Array<IImage>;
|
|
9571
9674
|
/**
|
|
9572
9675
|
*
|
|
9573
9676
|
* @type {{ [key: string]: IProductResponseStockValue; }}
|
|
9574
|
-
* @memberof
|
|
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
|
|
9685
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9583
9686
|
*/
|
|
9584
9687
|
'stocklessSale'?: boolean;
|
|
9585
9688
|
/**
|
|
9586
9689
|
*
|
|
9587
9690
|
* @type {PriceType}
|
|
9588
|
-
* @memberof
|
|
9691
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9589
9692
|
*/
|
|
9590
9693
|
'priceInfo': PriceType;
|
|
9591
9694
|
/**
|
|
9592
9695
|
*
|
|
9593
9696
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
9594
|
-
* @memberof
|
|
9697
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9595
9698
|
*/
|
|
9596
9699
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
9597
9700
|
/**
|
|
9598
9701
|
*
|
|
9599
9702
|
* @type {Array<VariantType>}
|
|
9600
|
-
* @memberof
|
|
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
|
|
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
|
|
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
|
|
@@ -16963,10 +17104,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
16963
17104
|
* @param {string} companyId
|
|
16964
17105
|
* @param {string} [search]
|
|
16965
17106
|
* @param {string} [template]
|
|
17107
|
+
* @param {Array<string>} [collections]
|
|
16966
17108
|
* @param {*} [options] Override http request option.
|
|
16967
17109
|
* @throws {RequiredError}
|
|
16968
17110
|
*/
|
|
16969
|
-
getAllProducts: (companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17111
|
+
getAllProducts: (companyId: string, search?: string, template?: string, collections?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16970
17112
|
/**
|
|
16971
17113
|
*
|
|
16972
17114
|
* @param {string} companyId
|
|
@@ -17003,26 +17145,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
17003
17145
|
* @param {string} [companyId]
|
|
17004
17146
|
* @param {string} [domain]
|
|
17005
17147
|
* @param {Array<string>} [collections]
|
|
17006
|
-
* @param {
|
|
17148
|
+
* @param {string} [category]
|
|
17007
17149
|
* @param {Array<string>} [brand]
|
|
17008
17150
|
* @param {boolean} [inStock]
|
|
17009
17151
|
* @param {number} [priceGte]
|
|
17010
17152
|
* @param {number} [priceLte]
|
|
17153
|
+
* @param {boolean} [autoComplete]
|
|
17154
|
+
* @param {Array<string>} [mainVariant]
|
|
17155
|
+
* @param {Array<string>} [subVariant]
|
|
17011
17156
|
* @param {GetProductsSortEnum} [sort]
|
|
17012
17157
|
* @param {ContentStatusEnum} [status]
|
|
17013
17158
|
* @param {*} [options] Override http request option.
|
|
17014
17159
|
* @throws {RequiredError}
|
|
17015
17160
|
*/
|
|
17016
|
-
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?:
|
|
17017
|
-
/**
|
|
17018
|
-
*
|
|
17019
|
-
* @param {string} search
|
|
17020
|
-
* @param {string} [companyId]
|
|
17021
|
-
* @param {string} [domain]
|
|
17022
|
-
* @param {*} [options] Override http request option.
|
|
17023
|
-
* @throws {RequiredError}
|
|
17024
|
-
*/
|
|
17025
|
-
searchProducts: (search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17161
|
+
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>;
|
|
17026
17162
|
/**
|
|
17027
17163
|
*
|
|
17028
17164
|
* @param {string} id
|
|
@@ -17056,10 +17192,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
17056
17192
|
* @param {string} companyId
|
|
17057
17193
|
* @param {string} [search]
|
|
17058
17194
|
* @param {string} [template]
|
|
17195
|
+
* @param {Array<string>} [collections]
|
|
17059
17196
|
* @param {*} [options] Override http request option.
|
|
17060
17197
|
* @throws {RequiredError}
|
|
17061
17198
|
*/
|
|
17062
|
-
getAllProducts(companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllProductsResponse>>;
|
|
17199
|
+
getAllProducts(companyId: string, search?: string, template?: string, collections?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllProductsResponse>>;
|
|
17063
17200
|
/**
|
|
17064
17201
|
*
|
|
17065
17202
|
* @param {string} companyId
|
|
@@ -17096,26 +17233,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
17096
17233
|
* @param {string} [companyId]
|
|
17097
17234
|
* @param {string} [domain]
|
|
17098
17235
|
* @param {Array<string>} [collections]
|
|
17099
|
-
* @param {
|
|
17236
|
+
* @param {string} [category]
|
|
17100
17237
|
* @param {Array<string>} [brand]
|
|
17101
17238
|
* @param {boolean} [inStock]
|
|
17102
17239
|
* @param {number} [priceGte]
|
|
17103
17240
|
* @param {number} [priceLte]
|
|
17241
|
+
* @param {boolean} [autoComplete]
|
|
17242
|
+
* @param {Array<string>} [mainVariant]
|
|
17243
|
+
* @param {Array<string>} [subVariant]
|
|
17104
17244
|
* @param {GetProductsSortEnum} [sort]
|
|
17105
17245
|
* @param {ContentStatusEnum} [status]
|
|
17106
17246
|
* @param {*} [options] Override http request option.
|
|
17107
17247
|
* @throws {RequiredError}
|
|
17108
17248
|
*/
|
|
17109
|
-
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?:
|
|
17110
|
-
/**
|
|
17111
|
-
*
|
|
17112
|
-
* @param {string} search
|
|
17113
|
-
* @param {string} [companyId]
|
|
17114
|
-
* @param {string} [domain]
|
|
17115
|
-
* @param {*} [options] Override http request option.
|
|
17116
|
-
* @throws {RequiredError}
|
|
17117
|
-
*/
|
|
17118
|
-
searchProducts(search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ISearchProductsResponse>>;
|
|
17249
|
+
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>>;
|
|
17119
17250
|
/**
|
|
17120
17251
|
*
|
|
17121
17252
|
* @param {string} id
|
|
@@ -17179,13 +17310,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
17179
17310
|
* @throws {RequiredError}
|
|
17180
17311
|
*/
|
|
17181
17312
|
getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductsResponse>;
|
|
17182
|
-
/**
|
|
17183
|
-
*
|
|
17184
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
17185
|
-
* @param {*} [options] Override http request option.
|
|
17186
|
-
* @throws {RequiredError}
|
|
17187
|
-
*/
|
|
17188
|
-
searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ISearchProductsResponse>;
|
|
17189
17313
|
/**
|
|
17190
17314
|
*
|
|
17191
17315
|
* @param {ProductApiUpdateProductRequest} requestParameters Request parameters.
|
|
@@ -17244,6 +17368,12 @@ export interface ProductApiGetAllProductsRequest {
|
|
|
17244
17368
|
* @memberof ProductApiGetAllProducts
|
|
17245
17369
|
*/
|
|
17246
17370
|
readonly template?: string;
|
|
17371
|
+
/**
|
|
17372
|
+
*
|
|
17373
|
+
* @type {Array<string>}
|
|
17374
|
+
* @memberof ProductApiGetAllProducts
|
|
17375
|
+
*/
|
|
17376
|
+
readonly collections?: Array<string>;
|
|
17247
17377
|
}
|
|
17248
17378
|
/**
|
|
17249
17379
|
* Request parameters for getFirstProduct operation in ProductApi.
|
|
@@ -17370,10 +17500,10 @@ export interface ProductApiGetProductsRequest {
|
|
|
17370
17500
|
readonly collections?: Array<string>;
|
|
17371
17501
|
/**
|
|
17372
17502
|
*
|
|
17373
|
-
* @type {
|
|
17503
|
+
* @type {string}
|
|
17374
17504
|
* @memberof ProductApiGetProducts
|
|
17375
17505
|
*/
|
|
17376
|
-
readonly category?:
|
|
17506
|
+
readonly category?: string;
|
|
17377
17507
|
/**
|
|
17378
17508
|
*
|
|
17379
17509
|
* @type {Array<string>}
|
|
@@ -17400,41 +17530,34 @@ export interface ProductApiGetProductsRequest {
|
|
|
17400
17530
|
readonly priceLte?: number;
|
|
17401
17531
|
/**
|
|
17402
17532
|
*
|
|
17403
|
-
* @type {
|
|
17533
|
+
* @type {boolean}
|
|
17404
17534
|
* @memberof ProductApiGetProducts
|
|
17405
17535
|
*/
|
|
17406
|
-
readonly
|
|
17536
|
+
readonly autoComplete?: boolean;
|
|
17407
17537
|
/**
|
|
17408
17538
|
*
|
|
17409
|
-
* @type {
|
|
17539
|
+
* @type {Array<string>}
|
|
17410
17540
|
* @memberof ProductApiGetProducts
|
|
17411
17541
|
*/
|
|
17412
|
-
readonly
|
|
17413
|
-
}
|
|
17414
|
-
/**
|
|
17415
|
-
* Request parameters for searchProducts operation in ProductApi.
|
|
17416
|
-
* @export
|
|
17417
|
-
* @interface ProductApiSearchProductsRequest
|
|
17418
|
-
*/
|
|
17419
|
-
export interface ProductApiSearchProductsRequest {
|
|
17542
|
+
readonly mainVariant?: Array<string>;
|
|
17420
17543
|
/**
|
|
17421
17544
|
*
|
|
17422
|
-
* @type {string}
|
|
17423
|
-
* @memberof
|
|
17545
|
+
* @type {Array<string>}
|
|
17546
|
+
* @memberof ProductApiGetProducts
|
|
17424
17547
|
*/
|
|
17425
|
-
readonly
|
|
17548
|
+
readonly subVariant?: Array<string>;
|
|
17426
17549
|
/**
|
|
17427
17550
|
*
|
|
17428
|
-
* @type {
|
|
17429
|
-
* @memberof
|
|
17551
|
+
* @type {'price' | 'createdAt' | 'totalSale'}
|
|
17552
|
+
* @memberof ProductApiGetProducts
|
|
17430
17553
|
*/
|
|
17431
|
-
readonly
|
|
17554
|
+
readonly sort?: GetProductsSortEnum;
|
|
17432
17555
|
/**
|
|
17433
17556
|
*
|
|
17434
|
-
* @type {
|
|
17435
|
-
* @memberof
|
|
17557
|
+
* @type {ContentStatusEnum}
|
|
17558
|
+
* @memberof ProductApiGetProducts
|
|
17436
17559
|
*/
|
|
17437
|
-
readonly
|
|
17560
|
+
readonly status?: ContentStatusEnum;
|
|
17438
17561
|
}
|
|
17439
17562
|
/**
|
|
17440
17563
|
* Request parameters for updateProduct operation in ProductApi.
|
|
@@ -17518,14 +17641,6 @@ export declare class ProductApi extends BaseAPI {
|
|
|
17518
17641
|
* @memberof ProductApi
|
|
17519
17642
|
*/
|
|
17520
17643
|
getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductsResponse, any>>;
|
|
17521
|
-
/**
|
|
17522
|
-
*
|
|
17523
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
17524
|
-
* @param {*} [options] Override http request option.
|
|
17525
|
-
* @throws {RequiredError}
|
|
17526
|
-
* @memberof ProductApi
|
|
17527
|
-
*/
|
|
17528
|
-
searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ISearchProductsResponse, any>>;
|
|
17529
17644
|
/**
|
|
17530
17645
|
*
|
|
17531
17646
|
* @param {ProductApiUpdateProductRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -8761,10 +8761,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8761
8761
|
* @param {string} companyId
|
|
8762
8762
|
* @param {string} [search]
|
|
8763
8763
|
* @param {string} [template]
|
|
8764
|
+
* @param {Array<string>} [collections]
|
|
8764
8765
|
* @param {*} [options] Override http request option.
|
|
8765
8766
|
* @throws {RequiredError}
|
|
8766
8767
|
*/
|
|
8767
|
-
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
8768
|
+
getAllProducts: async (companyId, search, template, collections, options = {}) => {
|
|
8768
8769
|
// verify required parameter 'companyId' is not null or undefined
|
|
8769
8770
|
(0, common_1.assertParamExists)('getAllProducts', 'companyId', companyId);
|
|
8770
8771
|
const localVarPath = `/api/products/get/all`;
|
|
@@ -8786,6 +8787,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8786
8787
|
if (template !== undefined) {
|
|
8787
8788
|
localVarQueryParameter['template'] = template;
|
|
8788
8789
|
}
|
|
8790
|
+
if (collections) {
|
|
8791
|
+
localVarQueryParameter['collections'] = collections;
|
|
8792
|
+
}
|
|
8789
8793
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8790
8794
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8791
8795
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -8904,17 +8908,20 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8904
8908
|
* @param {string} [companyId]
|
|
8905
8909
|
* @param {string} [domain]
|
|
8906
8910
|
* @param {Array<string>} [collections]
|
|
8907
|
-
* @param {
|
|
8911
|
+
* @param {string} [category]
|
|
8908
8912
|
* @param {Array<string>} [brand]
|
|
8909
8913
|
* @param {boolean} [inStock]
|
|
8910
8914
|
* @param {number} [priceGte]
|
|
8911
8915
|
* @param {number} [priceLte]
|
|
8916
|
+
* @param {boolean} [autoComplete]
|
|
8917
|
+
* @param {Array<string>} [mainVariant]
|
|
8918
|
+
* @param {Array<string>} [subVariant]
|
|
8912
8919
|
* @param {GetProductsSortEnum} [sort]
|
|
8913
8920
|
* @param {ContentStatusEnum} [status]
|
|
8914
8921
|
* @param {*} [options] Override http request option.
|
|
8915
8922
|
* @throws {RequiredError}
|
|
8916
8923
|
*/
|
|
8917
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options = {}) => {
|
|
8924
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
|
|
8918
8925
|
const localVarPath = `/api/products`;
|
|
8919
8926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8920
8927
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8959,7 +8966,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8959
8966
|
if (collections) {
|
|
8960
8967
|
localVarQueryParameter['collections'] = collections;
|
|
8961
8968
|
}
|
|
8962
|
-
if (category) {
|
|
8969
|
+
if (category !== undefined) {
|
|
8963
8970
|
localVarQueryParameter['category'] = category;
|
|
8964
8971
|
}
|
|
8965
8972
|
if (brand) {
|
|
@@ -8974,6 +8981,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8974
8981
|
if (priceLte !== undefined) {
|
|
8975
8982
|
localVarQueryParameter['priceLte'] = priceLte;
|
|
8976
8983
|
}
|
|
8984
|
+
if (autoComplete !== undefined) {
|
|
8985
|
+
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
8986
|
+
}
|
|
8987
|
+
if (mainVariant) {
|
|
8988
|
+
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
8989
|
+
}
|
|
8990
|
+
if (subVariant) {
|
|
8991
|
+
localVarQueryParameter['subVariant'] = subVariant;
|
|
8992
|
+
}
|
|
8977
8993
|
if (sort !== undefined) {
|
|
8978
8994
|
localVarQueryParameter['sort'] = sort;
|
|
8979
8995
|
}
|
|
@@ -8988,44 +9004,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8988
9004
|
options: localVarRequestOptions,
|
|
8989
9005
|
};
|
|
8990
9006
|
},
|
|
8991
|
-
/**
|
|
8992
|
-
*
|
|
8993
|
-
* @param {string} search
|
|
8994
|
-
* @param {string} [companyId]
|
|
8995
|
-
* @param {string} [domain]
|
|
8996
|
-
* @param {*} [options] Override http request option.
|
|
8997
|
-
* @throws {RequiredError}
|
|
8998
|
-
*/
|
|
8999
|
-
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
9000
|
-
// verify required parameter 'search' is not null or undefined
|
|
9001
|
-
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
9002
|
-
const localVarPath = `/api/products/search`;
|
|
9003
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9004
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9005
|
-
let baseOptions;
|
|
9006
|
-
if (configuration) {
|
|
9007
|
-
baseOptions = configuration.baseOptions;
|
|
9008
|
-
}
|
|
9009
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9010
|
-
const localVarHeaderParameter = {};
|
|
9011
|
-
const localVarQueryParameter = {};
|
|
9012
|
-
if (search !== undefined) {
|
|
9013
|
-
localVarQueryParameter['search'] = search;
|
|
9014
|
-
}
|
|
9015
|
-
if (companyId !== undefined) {
|
|
9016
|
-
localVarQueryParameter['companyId'] = companyId;
|
|
9017
|
-
}
|
|
9018
|
-
if (domain !== undefined) {
|
|
9019
|
-
localVarQueryParameter['domain'] = domain;
|
|
9020
|
-
}
|
|
9021
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9022
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9023
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9024
|
-
return {
|
|
9025
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9026
|
-
options: localVarRequestOptions,
|
|
9027
|
-
};
|
|
9028
|
-
},
|
|
9029
9007
|
/**
|
|
9030
9008
|
*
|
|
9031
9009
|
* @param {string} id
|
|
@@ -9098,11 +9076,12 @@ const ProductApiFp = function (configuration) {
|
|
|
9098
9076
|
* @param {string} companyId
|
|
9099
9077
|
* @param {string} [search]
|
|
9100
9078
|
* @param {string} [template]
|
|
9079
|
+
* @param {Array<string>} [collections]
|
|
9101
9080
|
* @param {*} [options] Override http request option.
|
|
9102
9081
|
* @throws {RequiredError}
|
|
9103
9082
|
*/
|
|
9104
|
-
async getAllProducts(companyId, search, template, options) {
|
|
9105
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, options);
|
|
9083
|
+
async getAllProducts(companyId, search, template, collections, options) {
|
|
9084
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, collections, options);
|
|
9106
9085
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9107
9086
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
9108
9087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9158,36 +9137,25 @@ const ProductApiFp = function (configuration) {
|
|
|
9158
9137
|
* @param {string} [companyId]
|
|
9159
9138
|
* @param {string} [domain]
|
|
9160
9139
|
* @param {Array<string>} [collections]
|
|
9161
|
-
* @param {
|
|
9140
|
+
* @param {string} [category]
|
|
9162
9141
|
* @param {Array<string>} [brand]
|
|
9163
9142
|
* @param {boolean} [inStock]
|
|
9164
9143
|
* @param {number} [priceGte]
|
|
9165
9144
|
* @param {number} [priceLte]
|
|
9145
|
+
* @param {boolean} [autoComplete]
|
|
9146
|
+
* @param {Array<string>} [mainVariant]
|
|
9147
|
+
* @param {Array<string>} [subVariant]
|
|
9166
9148
|
* @param {GetProductsSortEnum} [sort]
|
|
9167
9149
|
* @param {ContentStatusEnum} [status]
|
|
9168
9150
|
* @param {*} [options] Override http request option.
|
|
9169
9151
|
* @throws {RequiredError}
|
|
9170
9152
|
*/
|
|
9171
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options) {
|
|
9172
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options);
|
|
9153
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options) {
|
|
9154
|
+
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);
|
|
9173
9155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9174
9156
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9175
9157
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9176
9158
|
},
|
|
9177
|
-
/**
|
|
9178
|
-
*
|
|
9179
|
-
* @param {string} search
|
|
9180
|
-
* @param {string} [companyId]
|
|
9181
|
-
* @param {string} [domain]
|
|
9182
|
-
* @param {*} [options] Override http request option.
|
|
9183
|
-
* @throws {RequiredError}
|
|
9184
|
-
*/
|
|
9185
|
-
async searchProducts(search, companyId, domain, options) {
|
|
9186
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
9187
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9188
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
9189
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9190
|
-
},
|
|
9191
9159
|
/**
|
|
9192
9160
|
*
|
|
9193
9161
|
* @param {string} id
|
|
@@ -9236,7 +9204,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9236
9204
|
* @throws {RequiredError}
|
|
9237
9205
|
*/
|
|
9238
9206
|
getAllProducts(requestParameters, options) {
|
|
9239
|
-
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
9207
|
+
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, requestParameters.collections, options).then((request) => request(axios, basePath));
|
|
9240
9208
|
},
|
|
9241
9209
|
/**
|
|
9242
9210
|
*
|
|
@@ -9272,16 +9240,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9272
9240
|
* @throws {RequiredError}
|
|
9273
9241
|
*/
|
|
9274
9242
|
getProducts(requestParameters = {}, options) {
|
|
9275
|
-
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));
|
|
9276
|
-
},
|
|
9277
|
-
/**
|
|
9278
|
-
*
|
|
9279
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9280
|
-
* @param {*} [options] Override http request option.
|
|
9281
|
-
* @throws {RequiredError}
|
|
9282
|
-
*/
|
|
9283
|
-
searchProducts(requestParameters, options) {
|
|
9284
|
-
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
9243
|
+
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));
|
|
9285
9244
|
},
|
|
9286
9245
|
/**
|
|
9287
9246
|
*
|
|
@@ -9330,7 +9289,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
9330
9289
|
* @memberof ProductApi
|
|
9331
9290
|
*/
|
|
9332
9291
|
getAllProducts(requestParameters, options) {
|
|
9333
|
-
return (0, exports.ProductApiFp)(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
9292
|
+
return (0, exports.ProductApiFp)(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, requestParameters.collections, options).then((request) => request(this.axios, this.basePath));
|
|
9334
9293
|
}
|
|
9335
9294
|
/**
|
|
9336
9295
|
*
|
|
@@ -9370,17 +9329,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
9370
9329
|
* @memberof ProductApi
|
|
9371
9330
|
*/
|
|
9372
9331
|
getProducts(requestParameters = {}, options) {
|
|
9373
|
-
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));
|
|
9374
|
-
}
|
|
9375
|
-
/**
|
|
9376
|
-
*
|
|
9377
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9378
|
-
* @param {*} [options] Override http request option.
|
|
9379
|
-
* @throws {RequiredError}
|
|
9380
|
-
* @memberof ProductApi
|
|
9381
|
-
*/
|
|
9382
|
-
searchProducts(requestParameters, options) {
|
|
9383
|
-
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
9332
|
+
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));
|
|
9384
9333
|
}
|
|
9385
9334
|
/**
|
|
9386
9335
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -8693,10 +8693,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8693
8693
|
* @param {string} companyId
|
|
8694
8694
|
* @param {string} [search]
|
|
8695
8695
|
* @param {string} [template]
|
|
8696
|
+
* @param {Array<string>} [collections]
|
|
8696
8697
|
* @param {*} [options] Override http request option.
|
|
8697
8698
|
* @throws {RequiredError}
|
|
8698
8699
|
*/
|
|
8699
|
-
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
8700
|
+
getAllProducts: async (companyId, search, template, collections, options = {}) => {
|
|
8700
8701
|
// verify required parameter 'companyId' is not null or undefined
|
|
8701
8702
|
assertParamExists('getAllProducts', 'companyId', companyId);
|
|
8702
8703
|
const localVarPath = `/api/products/get/all`;
|
|
@@ -8718,6 +8719,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8718
8719
|
if (template !== undefined) {
|
|
8719
8720
|
localVarQueryParameter['template'] = template;
|
|
8720
8721
|
}
|
|
8722
|
+
if (collections) {
|
|
8723
|
+
localVarQueryParameter['collections'] = collections;
|
|
8724
|
+
}
|
|
8721
8725
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8722
8726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8723
8727
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -8836,17 +8840,20 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8836
8840
|
* @param {string} [companyId]
|
|
8837
8841
|
* @param {string} [domain]
|
|
8838
8842
|
* @param {Array<string>} [collections]
|
|
8839
|
-
* @param {
|
|
8843
|
+
* @param {string} [category]
|
|
8840
8844
|
* @param {Array<string>} [brand]
|
|
8841
8845
|
* @param {boolean} [inStock]
|
|
8842
8846
|
* @param {number} [priceGte]
|
|
8843
8847
|
* @param {number} [priceLte]
|
|
8848
|
+
* @param {boolean} [autoComplete]
|
|
8849
|
+
* @param {Array<string>} [mainVariant]
|
|
8850
|
+
* @param {Array<string>} [subVariant]
|
|
8844
8851
|
* @param {GetProductsSortEnum} [sort]
|
|
8845
8852
|
* @param {ContentStatusEnum} [status]
|
|
8846
8853
|
* @param {*} [options] Override http request option.
|
|
8847
8854
|
* @throws {RequiredError}
|
|
8848
8855
|
*/
|
|
8849
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options = {}) => {
|
|
8856
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
|
|
8850
8857
|
const localVarPath = `/api/products`;
|
|
8851
8858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8852
8859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8891,7 +8898,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8891
8898
|
if (collections) {
|
|
8892
8899
|
localVarQueryParameter['collections'] = collections;
|
|
8893
8900
|
}
|
|
8894
|
-
if (category) {
|
|
8901
|
+
if (category !== undefined) {
|
|
8895
8902
|
localVarQueryParameter['category'] = category;
|
|
8896
8903
|
}
|
|
8897
8904
|
if (brand) {
|
|
@@ -8906,6 +8913,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8906
8913
|
if (priceLte !== undefined) {
|
|
8907
8914
|
localVarQueryParameter['priceLte'] = priceLte;
|
|
8908
8915
|
}
|
|
8916
|
+
if (autoComplete !== undefined) {
|
|
8917
|
+
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
8918
|
+
}
|
|
8919
|
+
if (mainVariant) {
|
|
8920
|
+
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
8921
|
+
}
|
|
8922
|
+
if (subVariant) {
|
|
8923
|
+
localVarQueryParameter['subVariant'] = subVariant;
|
|
8924
|
+
}
|
|
8909
8925
|
if (sort !== undefined) {
|
|
8910
8926
|
localVarQueryParameter['sort'] = sort;
|
|
8911
8927
|
}
|
|
@@ -8920,44 +8936,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8920
8936
|
options: localVarRequestOptions,
|
|
8921
8937
|
};
|
|
8922
8938
|
},
|
|
8923
|
-
/**
|
|
8924
|
-
*
|
|
8925
|
-
* @param {string} search
|
|
8926
|
-
* @param {string} [companyId]
|
|
8927
|
-
* @param {string} [domain]
|
|
8928
|
-
* @param {*} [options] Override http request option.
|
|
8929
|
-
* @throws {RequiredError}
|
|
8930
|
-
*/
|
|
8931
|
-
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
8932
|
-
// verify required parameter 'search' is not null or undefined
|
|
8933
|
-
assertParamExists('searchProducts', 'search', search);
|
|
8934
|
-
const localVarPath = `/api/products/search`;
|
|
8935
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8936
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8937
|
-
let baseOptions;
|
|
8938
|
-
if (configuration) {
|
|
8939
|
-
baseOptions = configuration.baseOptions;
|
|
8940
|
-
}
|
|
8941
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8942
|
-
const localVarHeaderParameter = {};
|
|
8943
|
-
const localVarQueryParameter = {};
|
|
8944
|
-
if (search !== undefined) {
|
|
8945
|
-
localVarQueryParameter['search'] = search;
|
|
8946
|
-
}
|
|
8947
|
-
if (companyId !== undefined) {
|
|
8948
|
-
localVarQueryParameter['companyId'] = companyId;
|
|
8949
|
-
}
|
|
8950
|
-
if (domain !== undefined) {
|
|
8951
|
-
localVarQueryParameter['domain'] = domain;
|
|
8952
|
-
}
|
|
8953
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8954
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8955
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8956
|
-
return {
|
|
8957
|
-
url: toPathString(localVarUrlObj),
|
|
8958
|
-
options: localVarRequestOptions,
|
|
8959
|
-
};
|
|
8960
|
-
},
|
|
8961
8939
|
/**
|
|
8962
8940
|
*
|
|
8963
8941
|
* @param {string} id
|
|
@@ -9029,11 +9007,12 @@ export const ProductApiFp = function (configuration) {
|
|
|
9029
9007
|
* @param {string} companyId
|
|
9030
9008
|
* @param {string} [search]
|
|
9031
9009
|
* @param {string} [template]
|
|
9010
|
+
* @param {Array<string>} [collections]
|
|
9032
9011
|
* @param {*} [options] Override http request option.
|
|
9033
9012
|
* @throws {RequiredError}
|
|
9034
9013
|
*/
|
|
9035
|
-
async getAllProducts(companyId, search, template, options) {
|
|
9036
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, options);
|
|
9014
|
+
async getAllProducts(companyId, search, template, collections, options) {
|
|
9015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, collections, options);
|
|
9037
9016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9038
9017
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
9039
9018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9089,36 +9068,25 @@ export const ProductApiFp = function (configuration) {
|
|
|
9089
9068
|
* @param {string} [companyId]
|
|
9090
9069
|
* @param {string} [domain]
|
|
9091
9070
|
* @param {Array<string>} [collections]
|
|
9092
|
-
* @param {
|
|
9071
|
+
* @param {string} [category]
|
|
9093
9072
|
* @param {Array<string>} [brand]
|
|
9094
9073
|
* @param {boolean} [inStock]
|
|
9095
9074
|
* @param {number} [priceGte]
|
|
9096
9075
|
* @param {number} [priceLte]
|
|
9076
|
+
* @param {boolean} [autoComplete]
|
|
9077
|
+
* @param {Array<string>} [mainVariant]
|
|
9078
|
+
* @param {Array<string>} [subVariant]
|
|
9097
9079
|
* @param {GetProductsSortEnum} [sort]
|
|
9098
9080
|
* @param {ContentStatusEnum} [status]
|
|
9099
9081
|
* @param {*} [options] Override http request option.
|
|
9100
9082
|
* @throws {RequiredError}
|
|
9101
9083
|
*/
|
|
9102
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options) {
|
|
9103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, sort, status, options);
|
|
9084
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options) {
|
|
9085
|
+
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);
|
|
9104
9086
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9105
9087
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9106
9088
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9107
9089
|
},
|
|
9108
|
-
/**
|
|
9109
|
-
*
|
|
9110
|
-
* @param {string} search
|
|
9111
|
-
* @param {string} [companyId]
|
|
9112
|
-
* @param {string} [domain]
|
|
9113
|
-
* @param {*} [options] Override http request option.
|
|
9114
|
-
* @throws {RequiredError}
|
|
9115
|
-
*/
|
|
9116
|
-
async searchProducts(search, companyId, domain, options) {
|
|
9117
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
9118
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9119
|
-
const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
9120
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9121
|
-
},
|
|
9122
9090
|
/**
|
|
9123
9091
|
*
|
|
9124
9092
|
* @param {string} id
|
|
@@ -9166,7 +9134,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9166
9134
|
* @throws {RequiredError}
|
|
9167
9135
|
*/
|
|
9168
9136
|
getAllProducts(requestParameters, options) {
|
|
9169
|
-
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
9137
|
+
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, requestParameters.collections, options).then((request) => request(axios, basePath));
|
|
9170
9138
|
},
|
|
9171
9139
|
/**
|
|
9172
9140
|
*
|
|
@@ -9202,16 +9170,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9202
9170
|
* @throws {RequiredError}
|
|
9203
9171
|
*/
|
|
9204
9172
|
getProducts(requestParameters = {}, options) {
|
|
9205
|
-
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));
|
|
9206
|
-
},
|
|
9207
|
-
/**
|
|
9208
|
-
*
|
|
9209
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9210
|
-
* @param {*} [options] Override http request option.
|
|
9211
|
-
* @throws {RequiredError}
|
|
9212
|
-
*/
|
|
9213
|
-
searchProducts(requestParameters, options) {
|
|
9214
|
-
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
9173
|
+
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));
|
|
9215
9174
|
},
|
|
9216
9175
|
/**
|
|
9217
9176
|
*
|
|
@@ -9259,7 +9218,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9259
9218
|
* @memberof ProductApi
|
|
9260
9219
|
*/
|
|
9261
9220
|
getAllProducts(requestParameters, options) {
|
|
9262
|
-
return ProductApiFp(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
9221
|
+
return ProductApiFp(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, requestParameters.collections, options).then((request) => request(this.axios, this.basePath));
|
|
9263
9222
|
}
|
|
9264
9223
|
/**
|
|
9265
9224
|
*
|
|
@@ -9299,17 +9258,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9299
9258
|
* @memberof ProductApi
|
|
9300
9259
|
*/
|
|
9301
9260
|
getProducts(requestParameters = {}, options) {
|
|
9302
|
-
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));
|
|
9303
|
-
}
|
|
9304
|
-
/**
|
|
9305
|
-
*
|
|
9306
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9307
|
-
* @param {*} [options] Override http request option.
|
|
9308
|
-
* @throws {RequiredError}
|
|
9309
|
-
* @memberof ProductApi
|
|
9310
|
-
*/
|
|
9311
|
-
searchProducts(requestParameters, options) {
|
|
9312
|
-
return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
9261
|
+
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));
|
|
9313
9262
|
}
|
|
9314
9263
|
/**
|
|
9315
9264
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.73",
|
|
4
4
|
"description": "api-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": "
|
|
40
|
+
"gitHead": "8eb91dd2ad1de417e8617769151b64e413ae6295"
|
|
41
41
|
}
|