@infisale-client/api 1.2.71 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts +198 -95
- 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
|
|
@@ -8274,35 +8353,22 @@ export interface PartialRecordLanguageEnumString {
|
|
|
8274
8353
|
export interface PartialRecordLanguageEnumTitleString {
|
|
8275
8354
|
/**
|
|
8276
8355
|
*
|
|
8277
|
-
* @type {
|
|
8356
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8278
8357
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8279
8358
|
*/
|
|
8280
|
-
'tr'?:
|
|
8359
|
+
'tr'?: RecordLanguageEnumTitleStringTr;
|
|
8281
8360
|
/**
|
|
8282
8361
|
*
|
|
8283
|
-
* @type {
|
|
8362
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8284
8363
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8285
8364
|
*/
|
|
8286
|
-
'en'?:
|
|
8365
|
+
'en'?: RecordLanguageEnumTitleStringTr;
|
|
8287
8366
|
/**
|
|
8288
8367
|
*
|
|
8289
|
-
* @type {
|
|
8368
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8290
8369
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8291
8370
|
*/
|
|
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;
|
|
8371
|
+
'de'?: RecordLanguageEnumTitleStringTr;
|
|
8306
8372
|
}
|
|
8307
8373
|
/**
|
|
8308
8374
|
*
|
|
@@ -8480,6 +8546,31 @@ export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoRes
|
|
|
8480
8546
|
*/
|
|
8481
8547
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
8482
8548
|
}
|
|
8549
|
+
/**
|
|
8550
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
8551
|
+
* @export
|
|
8552
|
+
* @interface PickICategoryResponseIdOrAttributesOrMain
|
|
8553
|
+
*/
|
|
8554
|
+
export interface PickICategoryResponseIdOrAttributesOrMain {
|
|
8555
|
+
/**
|
|
8556
|
+
*
|
|
8557
|
+
* @type {string}
|
|
8558
|
+
* @memberof PickICategoryResponseIdOrAttributesOrMain
|
|
8559
|
+
*/
|
|
8560
|
+
'_id': string;
|
|
8561
|
+
/**
|
|
8562
|
+
*
|
|
8563
|
+
* @type {string}
|
|
8564
|
+
* @memberof PickICategoryResponseIdOrAttributesOrMain
|
|
8565
|
+
*/
|
|
8566
|
+
'main'?: string;
|
|
8567
|
+
/**
|
|
8568
|
+
*
|
|
8569
|
+
* @type {Array<ICategoryResponseAttributesInner>}
|
|
8570
|
+
* @memberof PickICategoryResponseIdOrAttributesOrMain
|
|
8571
|
+
*/
|
|
8572
|
+
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
8573
|
+
}
|
|
8483
8574
|
/**
|
|
8484
8575
|
* From T, pick a set of properties whose keys are in the union K
|
|
8485
8576
|
* @export
|
|
@@ -10391,6 +10482,44 @@ export interface RecordCurrencyEnumNumber {
|
|
|
10391
10482
|
*/
|
|
10392
10483
|
'jpy': number;
|
|
10393
10484
|
}
|
|
10485
|
+
/**
|
|
10486
|
+
* Construct a type with a set of properties K of type T
|
|
10487
|
+
* @export
|
|
10488
|
+
* @interface RecordLanguageEnumTitleString
|
|
10489
|
+
*/
|
|
10490
|
+
export interface RecordLanguageEnumTitleString {
|
|
10491
|
+
/**
|
|
10492
|
+
*
|
|
10493
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
10494
|
+
* @memberof RecordLanguageEnumTitleString
|
|
10495
|
+
*/
|
|
10496
|
+
'tr': RecordLanguageEnumTitleStringTr;
|
|
10497
|
+
/**
|
|
10498
|
+
*
|
|
10499
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
10500
|
+
* @memberof RecordLanguageEnumTitleString
|
|
10501
|
+
*/
|
|
10502
|
+
'en': RecordLanguageEnumTitleStringTr;
|
|
10503
|
+
/**
|
|
10504
|
+
*
|
|
10505
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
10506
|
+
* @memberof RecordLanguageEnumTitleString
|
|
10507
|
+
*/
|
|
10508
|
+
'de': RecordLanguageEnumTitleStringTr;
|
|
10509
|
+
}
|
|
10510
|
+
/**
|
|
10511
|
+
*
|
|
10512
|
+
* @export
|
|
10513
|
+
* @interface RecordLanguageEnumTitleStringTr
|
|
10514
|
+
*/
|
|
10515
|
+
export interface RecordLanguageEnumTitleStringTr {
|
|
10516
|
+
/**
|
|
10517
|
+
*
|
|
10518
|
+
* @type {string}
|
|
10519
|
+
* @memberof RecordLanguageEnumTitleStringTr
|
|
10520
|
+
*/
|
|
10521
|
+
'title': string;
|
|
10522
|
+
}
|
|
10394
10523
|
/**
|
|
10395
10524
|
*
|
|
10396
10525
|
* @export
|
|
@@ -16963,10 +17092,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
16963
17092
|
* @param {string} companyId
|
|
16964
17093
|
* @param {string} [search]
|
|
16965
17094
|
* @param {string} [template]
|
|
17095
|
+
* @param {Array<string>} [collections]
|
|
16966
17096
|
* @param {*} [options] Override http request option.
|
|
16967
17097
|
* @throws {RequiredError}
|
|
16968
17098
|
*/
|
|
16969
|
-
getAllProducts: (companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17099
|
+
getAllProducts: (companyId: string, search?: string, template?: string, collections?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16970
17100
|
/**
|
|
16971
17101
|
*
|
|
16972
17102
|
* @param {string} companyId
|
|
@@ -17003,26 +17133,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
17003
17133
|
* @param {string} [companyId]
|
|
17004
17134
|
* @param {string} [domain]
|
|
17005
17135
|
* @param {Array<string>} [collections]
|
|
17006
|
-
* @param {
|
|
17136
|
+
* @param {string} [category]
|
|
17007
17137
|
* @param {Array<string>} [brand]
|
|
17008
17138
|
* @param {boolean} [inStock]
|
|
17009
17139
|
* @param {number} [priceGte]
|
|
17010
17140
|
* @param {number} [priceLte]
|
|
17141
|
+
* @param {boolean} [autoComplete]
|
|
17142
|
+
* @param {Array<string>} [mainVariant]
|
|
17143
|
+
* @param {Array<string>} [subVariant]
|
|
17011
17144
|
* @param {GetProductsSortEnum} [sort]
|
|
17012
17145
|
* @param {ContentStatusEnum} [status]
|
|
17013
17146
|
* @param {*} [options] Override http request option.
|
|
17014
17147
|
* @throws {RequiredError}
|
|
17015
17148
|
*/
|
|
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>;
|
|
17149
|
+
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
17150
|
/**
|
|
17027
17151
|
*
|
|
17028
17152
|
* @param {string} id
|
|
@@ -17056,10 +17180,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
17056
17180
|
* @param {string} companyId
|
|
17057
17181
|
* @param {string} [search]
|
|
17058
17182
|
* @param {string} [template]
|
|
17183
|
+
* @param {Array<string>} [collections]
|
|
17059
17184
|
* @param {*} [options] Override http request option.
|
|
17060
17185
|
* @throws {RequiredError}
|
|
17061
17186
|
*/
|
|
17062
|
-
getAllProducts(companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllProductsResponse>>;
|
|
17187
|
+
getAllProducts(companyId: string, search?: string, template?: string, collections?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllProductsResponse>>;
|
|
17063
17188
|
/**
|
|
17064
17189
|
*
|
|
17065
17190
|
* @param {string} companyId
|
|
@@ -17096,26 +17221,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
17096
17221
|
* @param {string} [companyId]
|
|
17097
17222
|
* @param {string} [domain]
|
|
17098
17223
|
* @param {Array<string>} [collections]
|
|
17099
|
-
* @param {
|
|
17224
|
+
* @param {string} [category]
|
|
17100
17225
|
* @param {Array<string>} [brand]
|
|
17101
17226
|
* @param {boolean} [inStock]
|
|
17102
17227
|
* @param {number} [priceGte]
|
|
17103
17228
|
* @param {number} [priceLte]
|
|
17229
|
+
* @param {boolean} [autoComplete]
|
|
17230
|
+
* @param {Array<string>} [mainVariant]
|
|
17231
|
+
* @param {Array<string>} [subVariant]
|
|
17104
17232
|
* @param {GetProductsSortEnum} [sort]
|
|
17105
17233
|
* @param {ContentStatusEnum} [status]
|
|
17106
17234
|
* @param {*} [options] Override http request option.
|
|
17107
17235
|
* @throws {RequiredError}
|
|
17108
17236
|
*/
|
|
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>>;
|
|
17237
|
+
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
17238
|
/**
|
|
17120
17239
|
*
|
|
17121
17240
|
* @param {string} id
|
|
@@ -17179,13 +17298,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
17179
17298
|
* @throws {RequiredError}
|
|
17180
17299
|
*/
|
|
17181
17300
|
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
17301
|
/**
|
|
17190
17302
|
*
|
|
17191
17303
|
* @param {ProductApiUpdateProductRequest} requestParameters Request parameters.
|
|
@@ -17244,6 +17356,12 @@ export interface ProductApiGetAllProductsRequest {
|
|
|
17244
17356
|
* @memberof ProductApiGetAllProducts
|
|
17245
17357
|
*/
|
|
17246
17358
|
readonly template?: string;
|
|
17359
|
+
/**
|
|
17360
|
+
*
|
|
17361
|
+
* @type {Array<string>}
|
|
17362
|
+
* @memberof ProductApiGetAllProducts
|
|
17363
|
+
*/
|
|
17364
|
+
readonly collections?: Array<string>;
|
|
17247
17365
|
}
|
|
17248
17366
|
/**
|
|
17249
17367
|
* Request parameters for getFirstProduct operation in ProductApi.
|
|
@@ -17370,10 +17488,10 @@ export interface ProductApiGetProductsRequest {
|
|
|
17370
17488
|
readonly collections?: Array<string>;
|
|
17371
17489
|
/**
|
|
17372
17490
|
*
|
|
17373
|
-
* @type {
|
|
17491
|
+
* @type {string}
|
|
17374
17492
|
* @memberof ProductApiGetProducts
|
|
17375
17493
|
*/
|
|
17376
|
-
readonly category?:
|
|
17494
|
+
readonly category?: string;
|
|
17377
17495
|
/**
|
|
17378
17496
|
*
|
|
17379
17497
|
* @type {Array<string>}
|
|
@@ -17400,41 +17518,34 @@ export interface ProductApiGetProductsRequest {
|
|
|
17400
17518
|
readonly priceLte?: number;
|
|
17401
17519
|
/**
|
|
17402
17520
|
*
|
|
17403
|
-
* @type {
|
|
17521
|
+
* @type {boolean}
|
|
17404
17522
|
* @memberof ProductApiGetProducts
|
|
17405
17523
|
*/
|
|
17406
|
-
readonly
|
|
17524
|
+
readonly autoComplete?: boolean;
|
|
17407
17525
|
/**
|
|
17408
17526
|
*
|
|
17409
|
-
* @type {
|
|
17527
|
+
* @type {Array<string>}
|
|
17410
17528
|
* @memberof ProductApiGetProducts
|
|
17411
17529
|
*/
|
|
17412
|
-
readonly
|
|
17413
|
-
}
|
|
17414
|
-
/**
|
|
17415
|
-
* Request parameters for searchProducts operation in ProductApi.
|
|
17416
|
-
* @export
|
|
17417
|
-
* @interface ProductApiSearchProductsRequest
|
|
17418
|
-
*/
|
|
17419
|
-
export interface ProductApiSearchProductsRequest {
|
|
17530
|
+
readonly mainVariant?: Array<string>;
|
|
17420
17531
|
/**
|
|
17421
17532
|
*
|
|
17422
|
-
* @type {string}
|
|
17423
|
-
* @memberof
|
|
17533
|
+
* @type {Array<string>}
|
|
17534
|
+
* @memberof ProductApiGetProducts
|
|
17424
17535
|
*/
|
|
17425
|
-
readonly
|
|
17536
|
+
readonly subVariant?: Array<string>;
|
|
17426
17537
|
/**
|
|
17427
17538
|
*
|
|
17428
|
-
* @type {
|
|
17429
|
-
* @memberof
|
|
17539
|
+
* @type {'price' | 'createdAt' | 'totalSale'}
|
|
17540
|
+
* @memberof ProductApiGetProducts
|
|
17430
17541
|
*/
|
|
17431
|
-
readonly
|
|
17542
|
+
readonly sort?: GetProductsSortEnum;
|
|
17432
17543
|
/**
|
|
17433
17544
|
*
|
|
17434
|
-
* @type {
|
|
17435
|
-
* @memberof
|
|
17545
|
+
* @type {ContentStatusEnum}
|
|
17546
|
+
* @memberof ProductApiGetProducts
|
|
17436
17547
|
*/
|
|
17437
|
-
readonly
|
|
17548
|
+
readonly status?: ContentStatusEnum;
|
|
17438
17549
|
}
|
|
17439
17550
|
/**
|
|
17440
17551
|
* Request parameters for updateProduct operation in ProductApi.
|
|
@@ -17518,14 +17629,6 @@ export declare class ProductApi extends BaseAPI {
|
|
|
17518
17629
|
* @memberof ProductApi
|
|
17519
17630
|
*/
|
|
17520
17631
|
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
17632
|
/**
|
|
17530
17633
|
*
|
|
17531
17634
|
* @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.72",
|
|
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": "ec7683128d2f690b94d30bf2ec2e03c904b91780"
|
|
41
41
|
}
|