@infisale-client/api 1.2.70 → 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 +327 -110
- package/dist/api/api.js +80 -96
- package/dist/api/api.mjs +76 -92
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export declare const ComponentTypeEnum: {
|
|
|
145
145
|
readonly CART_DETAIL: "cart-detail";
|
|
146
146
|
readonly CHECKOUT_DETAIL: "checkout-detail";
|
|
147
147
|
readonly NOT_FOUND_DETAIL: "not-found-detail";
|
|
148
|
+
readonly SEARCH_DETAIL: "search-detail";
|
|
148
149
|
};
|
|
149
150
|
export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
|
|
150
151
|
/**
|
|
@@ -6175,37 +6176,73 @@ export interface IProductCollectionQueryParams {
|
|
|
6175
6176
|
* @type {string}
|
|
6176
6177
|
* @memberof IProductCollectionQueryParams
|
|
6177
6178
|
*/
|
|
6178
|
-
'
|
|
6179
|
+
'companyId'?: string;
|
|
6179
6180
|
/**
|
|
6180
6181
|
*
|
|
6181
6182
|
* @type {string}
|
|
6182
6183
|
* @memberof IProductCollectionQueryParams
|
|
6183
6184
|
*/
|
|
6184
|
-
'
|
|
6185
|
+
'domain'?: string;
|
|
6185
6186
|
/**
|
|
6186
6187
|
*
|
|
6187
|
-
* @type {string}
|
|
6188
|
+
* @type {Array<string>}
|
|
6188
6189
|
* @memberof IProductCollectionQueryParams
|
|
6189
6190
|
*/
|
|
6190
|
-
'
|
|
6191
|
+
'collections'?: Array<string>;
|
|
6191
6192
|
/**
|
|
6192
6193
|
*
|
|
6193
6194
|
* @type {string}
|
|
6194
6195
|
* @memberof IProductCollectionQueryParams
|
|
6195
6196
|
*/
|
|
6196
|
-
'
|
|
6197
|
+
'category'?: string;
|
|
6197
6198
|
/**
|
|
6198
6199
|
*
|
|
6199
|
-
* @type {string}
|
|
6200
|
+
* @type {Array<string>}
|
|
6200
6201
|
* @memberof IProductCollectionQueryParams
|
|
6201
6202
|
*/
|
|
6202
|
-
'
|
|
6203
|
+
'brand'?: Array<string>;
|
|
6204
|
+
/**
|
|
6205
|
+
*
|
|
6206
|
+
* @type {boolean}
|
|
6207
|
+
* @memberof IProductCollectionQueryParams
|
|
6208
|
+
*/
|
|
6209
|
+
'inStock'?: boolean;
|
|
6210
|
+
/**
|
|
6211
|
+
*
|
|
6212
|
+
* @type {number}
|
|
6213
|
+
* @memberof IProductCollectionQueryParams
|
|
6214
|
+
*/
|
|
6215
|
+
'priceGte'?: number;
|
|
6216
|
+
/**
|
|
6217
|
+
*
|
|
6218
|
+
* @type {number}
|
|
6219
|
+
* @memberof IProductCollectionQueryParams
|
|
6220
|
+
*/
|
|
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>;
|
|
6203
6240
|
/**
|
|
6204
6241
|
*
|
|
6205
6242
|
* @type {string}
|
|
6206
6243
|
* @memberof IProductCollectionQueryParams
|
|
6207
6244
|
*/
|
|
6208
|
-
'
|
|
6245
|
+
'sort'?: IProductCollectionQueryParamsSortEnum;
|
|
6209
6246
|
/**
|
|
6210
6247
|
*
|
|
6211
6248
|
* @type {ContentStatusEnum}
|
|
@@ -6218,6 +6255,12 @@ export declare const IProductCollectionQueryParamsDateFieldEnum: {
|
|
|
6218
6255
|
readonly UPDATED_AT: "updatedAt";
|
|
6219
6256
|
};
|
|
6220
6257
|
export type IProductCollectionQueryParamsDateFieldEnum = typeof IProductCollectionQueryParamsDateFieldEnum[keyof typeof IProductCollectionQueryParamsDateFieldEnum];
|
|
6258
|
+
export declare const IProductCollectionQueryParamsSortEnum: {
|
|
6259
|
+
readonly PRICE: "price";
|
|
6260
|
+
readonly CREATED_AT: "createdAt";
|
|
6261
|
+
readonly TOTAL_SALE: "totalSale";
|
|
6262
|
+
};
|
|
6263
|
+
export type IProductCollectionQueryParamsSortEnum = typeof IProductCollectionQueryParamsSortEnum[keyof typeof IProductCollectionQueryParamsSortEnum];
|
|
6221
6264
|
/**
|
|
6222
6265
|
*
|
|
6223
6266
|
* @export
|
|
@@ -6638,6 +6681,80 @@ export interface IProductsResponse {
|
|
|
6638
6681
|
* @memberof IProductsResponse
|
|
6639
6682
|
*/
|
|
6640
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;
|
|
6641
6758
|
}
|
|
6642
6759
|
/**
|
|
6643
6760
|
*
|
|
@@ -6721,19 +6838,6 @@ export interface IResetPasswordRequest {
|
|
|
6721
6838
|
*/
|
|
6722
6839
|
'code': string;
|
|
6723
6840
|
}
|
|
6724
|
-
/**
|
|
6725
|
-
*
|
|
6726
|
-
* @export
|
|
6727
|
-
* @interface ISearchProductsResponse
|
|
6728
|
-
*/
|
|
6729
|
-
export interface ISearchProductsResponse {
|
|
6730
|
-
/**
|
|
6731
|
-
*
|
|
6732
|
-
* @type {Array<IProductResponse>}
|
|
6733
|
-
* @memberof ISearchProductsResponse
|
|
6734
|
-
*/
|
|
6735
|
-
'data': Array<IProductResponse>;
|
|
6736
|
-
}
|
|
6737
6841
|
/**
|
|
6738
6842
|
*
|
|
6739
6843
|
* @export
|
|
@@ -8162,6 +8266,7 @@ export declare const PageTypeEnum: {
|
|
|
8162
8266
|
readonly HOME: "home";
|
|
8163
8267
|
readonly CART: "cart";
|
|
8164
8268
|
readonly CHECKOUT: "checkout";
|
|
8269
|
+
readonly SEARCH: "search";
|
|
8165
8270
|
readonly NOT_FOUND: "not-found";
|
|
8166
8271
|
};
|
|
8167
8272
|
export type PageTypeEnum = typeof PageTypeEnum[keyof typeof PageTypeEnum];
|
|
@@ -8248,35 +8353,22 @@ export interface PartialRecordLanguageEnumString {
|
|
|
8248
8353
|
export interface PartialRecordLanguageEnumTitleString {
|
|
8249
8354
|
/**
|
|
8250
8355
|
*
|
|
8251
|
-
* @type {
|
|
8356
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8252
8357
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8253
8358
|
*/
|
|
8254
|
-
'tr'?:
|
|
8359
|
+
'tr'?: RecordLanguageEnumTitleStringTr;
|
|
8255
8360
|
/**
|
|
8256
8361
|
*
|
|
8257
|
-
* @type {
|
|
8362
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8258
8363
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8259
8364
|
*/
|
|
8260
|
-
'en'?:
|
|
8365
|
+
'en'?: RecordLanguageEnumTitleStringTr;
|
|
8261
8366
|
/**
|
|
8262
8367
|
*
|
|
8263
|
-
* @type {
|
|
8368
|
+
* @type {RecordLanguageEnumTitleStringTr}
|
|
8264
8369
|
* @memberof PartialRecordLanguageEnumTitleString
|
|
8265
8370
|
*/
|
|
8266
|
-
'de'?:
|
|
8267
|
-
}
|
|
8268
|
-
/**
|
|
8269
|
-
*
|
|
8270
|
-
* @export
|
|
8271
|
-
* @interface PartialRecordLanguageEnumTitleStringTr
|
|
8272
|
-
*/
|
|
8273
|
-
export interface PartialRecordLanguageEnumTitleStringTr {
|
|
8274
|
-
/**
|
|
8275
|
-
*
|
|
8276
|
-
* @type {string}
|
|
8277
|
-
* @memberof PartialRecordLanguageEnumTitleStringTr
|
|
8278
|
-
*/
|
|
8279
|
-
'title': string;
|
|
8371
|
+
'de'?: RecordLanguageEnumTitleStringTr;
|
|
8280
8372
|
}
|
|
8281
8373
|
/**
|
|
8282
8374
|
*
|
|
@@ -8454,6 +8546,31 @@ export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoRes
|
|
|
8454
8546
|
*/
|
|
8455
8547
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
8456
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
|
+
}
|
|
8457
8574
|
/**
|
|
8458
8575
|
* From T, pick a set of properties whose keys are in the union K
|
|
8459
8576
|
* @export
|
|
@@ -8479,6 +8596,60 @@ export interface PickICategoryResponseIdOrContentsOrAttributes {
|
|
|
8479
8596
|
*/
|
|
8480
8597
|
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
8481
8598
|
}
|
|
8599
|
+
/**
|
|
8600
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
8601
|
+
* @export
|
|
8602
|
+
* @interface PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8603
|
+
*/
|
|
8604
|
+
export interface PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort {
|
|
8605
|
+
/**
|
|
8606
|
+
*
|
|
8607
|
+
* @type {number}
|
|
8608
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8609
|
+
*/
|
|
8610
|
+
'page'?: number;
|
|
8611
|
+
/**
|
|
8612
|
+
*
|
|
8613
|
+
* @type {number}
|
|
8614
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8615
|
+
*/
|
|
8616
|
+
'itemsPerPage'?: number;
|
|
8617
|
+
/**
|
|
8618
|
+
*
|
|
8619
|
+
* @type {string}
|
|
8620
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8621
|
+
*/
|
|
8622
|
+
'search'?: string;
|
|
8623
|
+
/**
|
|
8624
|
+
*
|
|
8625
|
+
* @type {string}
|
|
8626
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8627
|
+
*/
|
|
8628
|
+
'startDate'?: string;
|
|
8629
|
+
/**
|
|
8630
|
+
*
|
|
8631
|
+
* @type {string}
|
|
8632
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8633
|
+
*/
|
|
8634
|
+
'endDate'?: string;
|
|
8635
|
+
/**
|
|
8636
|
+
*
|
|
8637
|
+
* @type {string}
|
|
8638
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8639
|
+
*/
|
|
8640
|
+
'dateField'?: PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum;
|
|
8641
|
+
/**
|
|
8642
|
+
*
|
|
8643
|
+
* @type {OrderEnum}
|
|
8644
|
+
* @memberof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSort
|
|
8645
|
+
*/
|
|
8646
|
+
'order'?: OrderEnum;
|
|
8647
|
+
}
|
|
8648
|
+
export declare const PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum: {
|
|
8649
|
+
readonly CREATED_AT: "createdAt";
|
|
8650
|
+
readonly UPDATED_AT: "updatedAt";
|
|
8651
|
+
};
|
|
8652
|
+
export type PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = typeof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum[keyof typeof PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum];
|
|
8482
8653
|
/**
|
|
8483
8654
|
* From T, pick a set of properties whose keys are in the union K
|
|
8484
8655
|
* @export
|
|
@@ -10311,6 +10482,44 @@ export interface RecordCurrencyEnumNumber {
|
|
|
10311
10482
|
*/
|
|
10312
10483
|
'jpy': number;
|
|
10313
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
|
+
}
|
|
10314
10523
|
/**
|
|
10315
10524
|
*
|
|
10316
10525
|
* @export
|
|
@@ -10476,6 +10685,7 @@ export declare const TemplateTypeEnum: {
|
|
|
10476
10685
|
readonly CHECKOUT: "checkout";
|
|
10477
10686
|
readonly NOT_FOUND: "not-found";
|
|
10478
10687
|
readonly BLOG: "blog";
|
|
10688
|
+
readonly SEARCH: "search";
|
|
10479
10689
|
};
|
|
10480
10690
|
export type TemplateTypeEnum = typeof TemplateTypeEnum[keyof typeof TemplateTypeEnum];
|
|
10481
10691
|
/**
|
|
@@ -16882,10 +17092,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
16882
17092
|
* @param {string} companyId
|
|
16883
17093
|
* @param {string} [search]
|
|
16884
17094
|
* @param {string} [template]
|
|
17095
|
+
* @param {Array<string>} [collections]
|
|
16885
17096
|
* @param {*} [options] Override http request option.
|
|
16886
17097
|
* @throws {RequiredError}
|
|
16887
17098
|
*/
|
|
16888
|
-
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>;
|
|
16889
17100
|
/**
|
|
16890
17101
|
*
|
|
16891
17102
|
* @param {string} companyId
|
|
@@ -16919,26 +17130,23 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
16919
17130
|
* @param {string} [endDate]
|
|
16920
17131
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
16921
17132
|
* @param {OrderEnum} [order]
|
|
16922
|
-
* @param {string} [sort]
|
|
16923
17133
|
* @param {string} [companyId]
|
|
16924
17134
|
* @param {string} [domain]
|
|
16925
|
-
* @param {string} [collections]
|
|
17135
|
+
* @param {Array<string>} [collections]
|
|
16926
17136
|
* @param {string} [category]
|
|
16927
|
-
* @param {string} [brand]
|
|
17137
|
+
* @param {Array<string>} [brand]
|
|
17138
|
+
* @param {boolean} [inStock]
|
|
17139
|
+
* @param {number} [priceGte]
|
|
17140
|
+
* @param {number} [priceLte]
|
|
17141
|
+
* @param {boolean} [autoComplete]
|
|
17142
|
+
* @param {Array<string>} [mainVariant]
|
|
17143
|
+
* @param {Array<string>} [subVariant]
|
|
17144
|
+
* @param {GetProductsSortEnum} [sort]
|
|
16928
17145
|
* @param {ContentStatusEnum} [status]
|
|
16929
17146
|
* @param {*} [options] Override http request option.
|
|
16930
17147
|
* @throws {RequiredError}
|
|
16931
17148
|
*/
|
|
16932
|
-
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum,
|
|
16933
|
-
/**
|
|
16934
|
-
*
|
|
16935
|
-
* @param {string} search
|
|
16936
|
-
* @param {string} [companyId]
|
|
16937
|
-
* @param {string} [domain]
|
|
16938
|
-
* @param {*} [options] Override http request option.
|
|
16939
|
-
* @throws {RequiredError}
|
|
16940
|
-
*/
|
|
16941
|
-
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>;
|
|
16942
17150
|
/**
|
|
16943
17151
|
*
|
|
16944
17152
|
* @param {string} id
|
|
@@ -16972,10 +17180,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
16972
17180
|
* @param {string} companyId
|
|
16973
17181
|
* @param {string} [search]
|
|
16974
17182
|
* @param {string} [template]
|
|
17183
|
+
* @param {Array<string>} [collections]
|
|
16975
17184
|
* @param {*} [options] Override http request option.
|
|
16976
17185
|
* @throws {RequiredError}
|
|
16977
17186
|
*/
|
|
16978
|
-
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>>;
|
|
16979
17188
|
/**
|
|
16980
17189
|
*
|
|
16981
17190
|
* @param {string} companyId
|
|
@@ -17009,26 +17218,23 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
17009
17218
|
* @param {string} [endDate]
|
|
17010
17219
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
17011
17220
|
* @param {OrderEnum} [order]
|
|
17012
|
-
* @param {string} [sort]
|
|
17013
17221
|
* @param {string} [companyId]
|
|
17014
17222
|
* @param {string} [domain]
|
|
17015
|
-
* @param {string} [collections]
|
|
17223
|
+
* @param {Array<string>} [collections]
|
|
17016
17224
|
* @param {string} [category]
|
|
17017
|
-
* @param {string} [brand]
|
|
17225
|
+
* @param {Array<string>} [brand]
|
|
17226
|
+
* @param {boolean} [inStock]
|
|
17227
|
+
* @param {number} [priceGte]
|
|
17228
|
+
* @param {number} [priceLte]
|
|
17229
|
+
* @param {boolean} [autoComplete]
|
|
17230
|
+
* @param {Array<string>} [mainVariant]
|
|
17231
|
+
* @param {Array<string>} [subVariant]
|
|
17232
|
+
* @param {GetProductsSortEnum} [sort]
|
|
17018
17233
|
* @param {ContentStatusEnum} [status]
|
|
17019
17234
|
* @param {*} [options] Override http request option.
|
|
17020
17235
|
* @throws {RequiredError}
|
|
17021
17236
|
*/
|
|
17022
|
-
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum,
|
|
17023
|
-
/**
|
|
17024
|
-
*
|
|
17025
|
-
* @param {string} search
|
|
17026
|
-
* @param {string} [companyId]
|
|
17027
|
-
* @param {string} [domain]
|
|
17028
|
-
* @param {*} [options] Override http request option.
|
|
17029
|
-
* @throws {RequiredError}
|
|
17030
|
-
*/
|
|
17031
|
-
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>>;
|
|
17032
17238
|
/**
|
|
17033
17239
|
*
|
|
17034
17240
|
* @param {string} id
|
|
@@ -17092,13 +17298,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
17092
17298
|
* @throws {RequiredError}
|
|
17093
17299
|
*/
|
|
17094
17300
|
getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductsResponse>;
|
|
17095
|
-
/**
|
|
17096
|
-
*
|
|
17097
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
17098
|
-
* @param {*} [options] Override http request option.
|
|
17099
|
-
* @throws {RequiredError}
|
|
17100
|
-
*/
|
|
17101
|
-
searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ISearchProductsResponse>;
|
|
17102
17301
|
/**
|
|
17103
17302
|
*
|
|
17104
17303
|
* @param {ProductApiUpdateProductRequest} requestParameters Request parameters.
|
|
@@ -17157,6 +17356,12 @@ export interface ProductApiGetAllProductsRequest {
|
|
|
17157
17356
|
* @memberof ProductApiGetAllProducts
|
|
17158
17357
|
*/
|
|
17159
17358
|
readonly template?: string;
|
|
17359
|
+
/**
|
|
17360
|
+
*
|
|
17361
|
+
* @type {Array<string>}
|
|
17362
|
+
* @memberof ProductApiGetAllProducts
|
|
17363
|
+
*/
|
|
17364
|
+
readonly collections?: Array<string>;
|
|
17160
17365
|
}
|
|
17161
17366
|
/**
|
|
17162
17367
|
* Request parameters for getFirstProduct operation in ProductApi.
|
|
@@ -17268,68 +17473,79 @@ export interface ProductApiGetProductsRequest {
|
|
|
17268
17473
|
* @type {string}
|
|
17269
17474
|
* @memberof ProductApiGetProducts
|
|
17270
17475
|
*/
|
|
17271
|
-
readonly
|
|
17476
|
+
readonly companyId?: string;
|
|
17272
17477
|
/**
|
|
17273
17478
|
*
|
|
17274
17479
|
* @type {string}
|
|
17275
17480
|
* @memberof ProductApiGetProducts
|
|
17276
17481
|
*/
|
|
17277
|
-
readonly
|
|
17482
|
+
readonly domain?: string;
|
|
17278
17483
|
/**
|
|
17279
17484
|
*
|
|
17280
|
-
* @type {string}
|
|
17485
|
+
* @type {Array<string>}
|
|
17281
17486
|
* @memberof ProductApiGetProducts
|
|
17282
17487
|
*/
|
|
17283
|
-
readonly
|
|
17488
|
+
readonly collections?: Array<string>;
|
|
17284
17489
|
/**
|
|
17285
17490
|
*
|
|
17286
17491
|
* @type {string}
|
|
17287
17492
|
* @memberof ProductApiGetProducts
|
|
17288
17493
|
*/
|
|
17289
|
-
readonly
|
|
17494
|
+
readonly category?: string;
|
|
17290
17495
|
/**
|
|
17291
17496
|
*
|
|
17292
|
-
* @type {string}
|
|
17497
|
+
* @type {Array<string>}
|
|
17293
17498
|
* @memberof ProductApiGetProducts
|
|
17294
17499
|
*/
|
|
17295
|
-
readonly
|
|
17500
|
+
readonly brand?: Array<string>;
|
|
17296
17501
|
/**
|
|
17297
17502
|
*
|
|
17298
|
-
* @type {
|
|
17503
|
+
* @type {boolean}
|
|
17299
17504
|
* @memberof ProductApiGetProducts
|
|
17300
17505
|
*/
|
|
17301
|
-
readonly
|
|
17506
|
+
readonly inStock?: boolean;
|
|
17302
17507
|
/**
|
|
17303
17508
|
*
|
|
17304
|
-
* @type {
|
|
17509
|
+
* @type {number}
|
|
17305
17510
|
* @memberof ProductApiGetProducts
|
|
17306
17511
|
*/
|
|
17307
|
-
readonly
|
|
17308
|
-
}
|
|
17309
|
-
/**
|
|
17310
|
-
* Request parameters for searchProducts operation in ProductApi.
|
|
17311
|
-
* @export
|
|
17312
|
-
* @interface ProductApiSearchProductsRequest
|
|
17313
|
-
*/
|
|
17314
|
-
export interface ProductApiSearchProductsRequest {
|
|
17512
|
+
readonly priceGte?: number;
|
|
17315
17513
|
/**
|
|
17316
17514
|
*
|
|
17317
|
-
* @type {
|
|
17318
|
-
* @memberof
|
|
17515
|
+
* @type {number}
|
|
17516
|
+
* @memberof ProductApiGetProducts
|
|
17319
17517
|
*/
|
|
17320
|
-
readonly
|
|
17518
|
+
readonly priceLte?: number;
|
|
17321
17519
|
/**
|
|
17322
17520
|
*
|
|
17323
|
-
* @type {
|
|
17324
|
-
* @memberof
|
|
17521
|
+
* @type {boolean}
|
|
17522
|
+
* @memberof ProductApiGetProducts
|
|
17325
17523
|
*/
|
|
17326
|
-
readonly
|
|
17524
|
+
readonly autoComplete?: boolean;
|
|
17327
17525
|
/**
|
|
17328
17526
|
*
|
|
17329
|
-
* @type {string}
|
|
17330
|
-
* @memberof
|
|
17527
|
+
* @type {Array<string>}
|
|
17528
|
+
* @memberof ProductApiGetProducts
|
|
17331
17529
|
*/
|
|
17332
|
-
readonly
|
|
17530
|
+
readonly mainVariant?: Array<string>;
|
|
17531
|
+
/**
|
|
17532
|
+
*
|
|
17533
|
+
* @type {Array<string>}
|
|
17534
|
+
* @memberof ProductApiGetProducts
|
|
17535
|
+
*/
|
|
17536
|
+
readonly subVariant?: Array<string>;
|
|
17537
|
+
/**
|
|
17538
|
+
*
|
|
17539
|
+
* @type {'price' | 'createdAt' | 'totalSale'}
|
|
17540
|
+
* @memberof ProductApiGetProducts
|
|
17541
|
+
*/
|
|
17542
|
+
readonly sort?: GetProductsSortEnum;
|
|
17543
|
+
/**
|
|
17544
|
+
*
|
|
17545
|
+
* @type {ContentStatusEnum}
|
|
17546
|
+
* @memberof ProductApiGetProducts
|
|
17547
|
+
*/
|
|
17548
|
+
readonly status?: ContentStatusEnum;
|
|
17333
17549
|
}
|
|
17334
17550
|
/**
|
|
17335
17551
|
* Request parameters for updateProduct operation in ProductApi.
|
|
@@ -17413,14 +17629,6 @@ export declare class ProductApi extends BaseAPI {
|
|
|
17413
17629
|
* @memberof ProductApi
|
|
17414
17630
|
*/
|
|
17415
17631
|
getProducts(requestParameters?: ProductApiGetProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductsResponse, any>>;
|
|
17416
|
-
/**
|
|
17417
|
-
*
|
|
17418
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
17419
|
-
* @param {*} [options] Override http request option.
|
|
17420
|
-
* @throws {RequiredError}
|
|
17421
|
-
* @memberof ProductApi
|
|
17422
|
-
*/
|
|
17423
|
-
searchProducts(requestParameters: ProductApiSearchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ISearchProductsResponse, any>>;
|
|
17424
17632
|
/**
|
|
17425
17633
|
*
|
|
17426
17634
|
* @param {ProductApiUpdateProductRequest} requestParameters Request parameters.
|
|
@@ -17438,6 +17646,15 @@ export declare const GetProductsDateFieldEnum: {
|
|
|
17438
17646
|
readonly UPDATED_AT: "updatedAt";
|
|
17439
17647
|
};
|
|
17440
17648
|
export type GetProductsDateFieldEnum = typeof GetProductsDateFieldEnum[keyof typeof GetProductsDateFieldEnum];
|
|
17649
|
+
/**
|
|
17650
|
+
* @export
|
|
17651
|
+
*/
|
|
17652
|
+
export declare const GetProductsSortEnum: {
|
|
17653
|
+
readonly PRICE: "price";
|
|
17654
|
+
readonly CREATED_AT: "createdAt";
|
|
17655
|
+
readonly TOTAL_SALE: "totalSale";
|
|
17656
|
+
};
|
|
17657
|
+
export type GetProductsSortEnum = typeof GetProductsSortEnum[keyof typeof GetProductsSortEnum];
|
|
17441
17658
|
/**
|
|
17442
17659
|
* SitemapApi - axios parameter creator
|
|
17443
17660
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -16,10 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.GetUsersDateFieldEnum = void 0;
|
|
19
|
+
exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
|
|
20
|
+
exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentMethodEnum = void 0;
|
|
21
|
+
exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -149,7 +149,8 @@ exports.ComponentTypeEnum = {
|
|
|
149
149
|
CONTACT_FORM: 'contact-form',
|
|
150
150
|
CART_DETAIL: 'cart-detail',
|
|
151
151
|
CHECKOUT_DETAIL: 'checkout-detail',
|
|
152
|
-
NOT_FOUND_DETAIL: 'not-found-detail'
|
|
152
|
+
NOT_FOUND_DETAIL: 'not-found-detail',
|
|
153
|
+
SEARCH_DETAIL: 'search-detail'
|
|
153
154
|
};
|
|
154
155
|
/**
|
|
155
156
|
*
|
|
@@ -570,6 +571,11 @@ exports.IProductCollectionQueryParamsDateFieldEnum = {
|
|
|
570
571
|
CREATED_AT: 'createdAt',
|
|
571
572
|
UPDATED_AT: 'updatedAt'
|
|
572
573
|
};
|
|
574
|
+
exports.IProductCollectionQueryParamsSortEnum = {
|
|
575
|
+
PRICE: 'price',
|
|
576
|
+
CREATED_AT: 'createdAt',
|
|
577
|
+
TOTAL_SALE: 'totalSale'
|
|
578
|
+
};
|
|
573
579
|
exports.IUserCollectionQueryParamsDateFieldEnum = {
|
|
574
580
|
CREATED_AT: 'createdAt',
|
|
575
581
|
UPDATED_AT: 'updatedAt'
|
|
@@ -693,6 +699,7 @@ exports.PageTypeEnum = {
|
|
|
693
699
|
HOME: 'home',
|
|
694
700
|
CART: 'cart',
|
|
695
701
|
CHECKOUT: 'checkout',
|
|
702
|
+
SEARCH: 'search',
|
|
696
703
|
NOT_FOUND: 'not-found'
|
|
697
704
|
};
|
|
698
705
|
/**
|
|
@@ -715,6 +722,10 @@ exports.PaymentMethodEnum = {
|
|
|
715
722
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
716
723
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
717
724
|
};
|
|
725
|
+
exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
726
|
+
CREATED_AT: 'createdAt',
|
|
727
|
+
UPDATED_AT: 'updatedAt'
|
|
728
|
+
};
|
|
718
729
|
/**
|
|
719
730
|
*
|
|
720
731
|
* @export
|
|
@@ -789,7 +800,8 @@ exports.TemplateTypeEnum = {
|
|
|
789
800
|
CART: 'cart',
|
|
790
801
|
CHECKOUT: 'checkout',
|
|
791
802
|
NOT_FOUND: 'not-found',
|
|
792
|
-
BLOG: 'blog'
|
|
803
|
+
BLOG: 'blog',
|
|
804
|
+
SEARCH: 'search'
|
|
793
805
|
};
|
|
794
806
|
/**
|
|
795
807
|
*
|
|
@@ -8749,10 +8761,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8749
8761
|
* @param {string} companyId
|
|
8750
8762
|
* @param {string} [search]
|
|
8751
8763
|
* @param {string} [template]
|
|
8764
|
+
* @param {Array<string>} [collections]
|
|
8752
8765
|
* @param {*} [options] Override http request option.
|
|
8753
8766
|
* @throws {RequiredError}
|
|
8754
8767
|
*/
|
|
8755
|
-
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
8768
|
+
getAllProducts: async (companyId, search, template, collections, options = {}) => {
|
|
8756
8769
|
// verify required parameter 'companyId' is not null or undefined
|
|
8757
8770
|
(0, common_1.assertParamExists)('getAllProducts', 'companyId', companyId);
|
|
8758
8771
|
const localVarPath = `/api/products/get/all`;
|
|
@@ -8774,6 +8787,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8774
8787
|
if (template !== undefined) {
|
|
8775
8788
|
localVarQueryParameter['template'] = template;
|
|
8776
8789
|
}
|
|
8790
|
+
if (collections) {
|
|
8791
|
+
localVarQueryParameter['collections'] = collections;
|
|
8792
|
+
}
|
|
8777
8793
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8778
8794
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8779
8795
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -8889,17 +8905,23 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8889
8905
|
* @param {string} [endDate]
|
|
8890
8906
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
8891
8907
|
* @param {OrderEnum} [order]
|
|
8892
|
-
* @param {string} [sort]
|
|
8893
8908
|
* @param {string} [companyId]
|
|
8894
8909
|
* @param {string} [domain]
|
|
8895
|
-
* @param {string} [collections]
|
|
8910
|
+
* @param {Array<string>} [collections]
|
|
8896
8911
|
* @param {string} [category]
|
|
8897
|
-
* @param {string} [brand]
|
|
8912
|
+
* @param {Array<string>} [brand]
|
|
8913
|
+
* @param {boolean} [inStock]
|
|
8914
|
+
* @param {number} [priceGte]
|
|
8915
|
+
* @param {number} [priceLte]
|
|
8916
|
+
* @param {boolean} [autoComplete]
|
|
8917
|
+
* @param {Array<string>} [mainVariant]
|
|
8918
|
+
* @param {Array<string>} [subVariant]
|
|
8919
|
+
* @param {GetProductsSortEnum} [sort]
|
|
8898
8920
|
* @param {ContentStatusEnum} [status]
|
|
8899
8921
|
* @param {*} [options] Override http request option.
|
|
8900
8922
|
* @throws {RequiredError}
|
|
8901
8923
|
*/
|
|
8902
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
8924
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
|
|
8903
8925
|
const localVarPath = `/api/products`;
|
|
8904
8926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8905
8927
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8935,64 +8957,44 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8935
8957
|
if (order !== undefined) {
|
|
8936
8958
|
localVarQueryParameter['order'] = order;
|
|
8937
8959
|
}
|
|
8938
|
-
if (sort !== undefined) {
|
|
8939
|
-
localVarQueryParameter['sort'] = sort;
|
|
8940
|
-
}
|
|
8941
8960
|
if (companyId !== undefined) {
|
|
8942
8961
|
localVarQueryParameter['companyId'] = companyId;
|
|
8943
8962
|
}
|
|
8944
8963
|
if (domain !== undefined) {
|
|
8945
8964
|
localVarQueryParameter['domain'] = domain;
|
|
8946
8965
|
}
|
|
8947
|
-
if (collections
|
|
8966
|
+
if (collections) {
|
|
8948
8967
|
localVarQueryParameter['collections'] = collections;
|
|
8949
8968
|
}
|
|
8950
8969
|
if (category !== undefined) {
|
|
8951
8970
|
localVarQueryParameter['category'] = category;
|
|
8952
8971
|
}
|
|
8953
|
-
if (brand
|
|
8972
|
+
if (brand) {
|
|
8954
8973
|
localVarQueryParameter['brand'] = brand;
|
|
8955
8974
|
}
|
|
8956
|
-
if (
|
|
8957
|
-
localVarQueryParameter['
|
|
8975
|
+
if (inStock !== undefined) {
|
|
8976
|
+
localVarQueryParameter['inStock'] = inStock;
|
|
8958
8977
|
}
|
|
8959
|
-
(
|
|
8960
|
-
|
|
8961
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8962
|
-
return {
|
|
8963
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8964
|
-
options: localVarRequestOptions,
|
|
8965
|
-
};
|
|
8966
|
-
},
|
|
8967
|
-
/**
|
|
8968
|
-
*
|
|
8969
|
-
* @param {string} search
|
|
8970
|
-
* @param {string} [companyId]
|
|
8971
|
-
* @param {string} [domain]
|
|
8972
|
-
* @param {*} [options] Override http request option.
|
|
8973
|
-
* @throws {RequiredError}
|
|
8974
|
-
*/
|
|
8975
|
-
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
8976
|
-
// verify required parameter 'search' is not null or undefined
|
|
8977
|
-
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
8978
|
-
const localVarPath = `/api/products/search`;
|
|
8979
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8980
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8981
|
-
let baseOptions;
|
|
8982
|
-
if (configuration) {
|
|
8983
|
-
baseOptions = configuration.baseOptions;
|
|
8978
|
+
if (priceGte !== undefined) {
|
|
8979
|
+
localVarQueryParameter['priceGte'] = priceGte;
|
|
8984
8980
|
}
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
const localVarQueryParameter = {};
|
|
8988
|
-
if (search !== undefined) {
|
|
8989
|
-
localVarQueryParameter['search'] = search;
|
|
8981
|
+
if (priceLte !== undefined) {
|
|
8982
|
+
localVarQueryParameter['priceLte'] = priceLte;
|
|
8990
8983
|
}
|
|
8991
|
-
if (
|
|
8992
|
-
localVarQueryParameter['
|
|
8984
|
+
if (autoComplete !== undefined) {
|
|
8985
|
+
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
8993
8986
|
}
|
|
8994
|
-
if (
|
|
8995
|
-
localVarQueryParameter['
|
|
8987
|
+
if (mainVariant) {
|
|
8988
|
+
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
8989
|
+
}
|
|
8990
|
+
if (subVariant) {
|
|
8991
|
+
localVarQueryParameter['subVariant'] = subVariant;
|
|
8992
|
+
}
|
|
8993
|
+
if (sort !== undefined) {
|
|
8994
|
+
localVarQueryParameter['sort'] = sort;
|
|
8995
|
+
}
|
|
8996
|
+
if (status !== undefined) {
|
|
8997
|
+
localVarQueryParameter['status'] = status;
|
|
8996
8998
|
}
|
|
8997
8999
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8998
9000
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -9074,11 +9076,12 @@ const ProductApiFp = function (configuration) {
|
|
|
9074
9076
|
* @param {string} companyId
|
|
9075
9077
|
* @param {string} [search]
|
|
9076
9078
|
* @param {string} [template]
|
|
9079
|
+
* @param {Array<string>} [collections]
|
|
9077
9080
|
* @param {*} [options] Override http request option.
|
|
9078
9081
|
* @throws {RequiredError}
|
|
9079
9082
|
*/
|
|
9080
|
-
async getAllProducts(companyId, search, template, options) {
|
|
9081
|
-
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);
|
|
9082
9085
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9083
9086
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
9084
9087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9131,36 +9134,28 @@ const ProductApiFp = function (configuration) {
|
|
|
9131
9134
|
* @param {string} [endDate]
|
|
9132
9135
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
9133
9136
|
* @param {OrderEnum} [order]
|
|
9134
|
-
* @param {string} [sort]
|
|
9135
9137
|
* @param {string} [companyId]
|
|
9136
9138
|
* @param {string} [domain]
|
|
9137
|
-
* @param {string} [collections]
|
|
9139
|
+
* @param {Array<string>} [collections]
|
|
9138
9140
|
* @param {string} [category]
|
|
9139
|
-
* @param {string} [brand]
|
|
9141
|
+
* @param {Array<string>} [brand]
|
|
9142
|
+
* @param {boolean} [inStock]
|
|
9143
|
+
* @param {number} [priceGte]
|
|
9144
|
+
* @param {number} [priceLte]
|
|
9145
|
+
* @param {boolean} [autoComplete]
|
|
9146
|
+
* @param {Array<string>} [mainVariant]
|
|
9147
|
+
* @param {Array<string>} [subVariant]
|
|
9148
|
+
* @param {GetProductsSortEnum} [sort]
|
|
9140
9149
|
* @param {ContentStatusEnum} [status]
|
|
9141
9150
|
* @param {*} [options] Override http request option.
|
|
9142
9151
|
* @throws {RequiredError}
|
|
9143
9152
|
*/
|
|
9144
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
9145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
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);
|
|
9146
9155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9147
9156
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9148
9157
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9149
9158
|
},
|
|
9150
|
-
/**
|
|
9151
|
-
*
|
|
9152
|
-
* @param {string} search
|
|
9153
|
-
* @param {string} [companyId]
|
|
9154
|
-
* @param {string} [domain]
|
|
9155
|
-
* @param {*} [options] Override http request option.
|
|
9156
|
-
* @throws {RequiredError}
|
|
9157
|
-
*/
|
|
9158
|
-
async searchProducts(search, companyId, domain, options) {
|
|
9159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
9160
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9161
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
9162
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9163
|
-
},
|
|
9164
9159
|
/**
|
|
9165
9160
|
*
|
|
9166
9161
|
* @param {string} id
|
|
@@ -9209,7 +9204,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9209
9204
|
* @throws {RequiredError}
|
|
9210
9205
|
*/
|
|
9211
9206
|
getAllProducts(requestParameters, options) {
|
|
9212
|
-
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));
|
|
9213
9208
|
},
|
|
9214
9209
|
/**
|
|
9215
9210
|
*
|
|
@@ -9245,16 +9240,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9245
9240
|
* @throws {RequiredError}
|
|
9246
9241
|
*/
|
|
9247
9242
|
getProducts(requestParameters = {}, options) {
|
|
9248
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.
|
|
9249
|
-
},
|
|
9250
|
-
/**
|
|
9251
|
-
*
|
|
9252
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9253
|
-
* @param {*} [options] Override http request option.
|
|
9254
|
-
* @throws {RequiredError}
|
|
9255
|
-
*/
|
|
9256
|
-
searchProducts(requestParameters, options) {
|
|
9257
|
-
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));
|
|
9258
9244
|
},
|
|
9259
9245
|
/**
|
|
9260
9246
|
*
|
|
@@ -9303,7 +9289,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
9303
9289
|
* @memberof ProductApi
|
|
9304
9290
|
*/
|
|
9305
9291
|
getAllProducts(requestParameters, options) {
|
|
9306
|
-
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));
|
|
9307
9293
|
}
|
|
9308
9294
|
/**
|
|
9309
9295
|
*
|
|
@@ -9343,17 +9329,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
9343
9329
|
* @memberof ProductApi
|
|
9344
9330
|
*/
|
|
9345
9331
|
getProducts(requestParameters = {}, options) {
|
|
9346
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.
|
|
9347
|
-
}
|
|
9348
|
-
/**
|
|
9349
|
-
*
|
|
9350
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9351
|
-
* @param {*} [options] Override http request option.
|
|
9352
|
-
* @throws {RequiredError}
|
|
9353
|
-
* @memberof ProductApi
|
|
9354
|
-
*/
|
|
9355
|
-
searchProducts(requestParameters, options) {
|
|
9356
|
-
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));
|
|
9357
9333
|
}
|
|
9358
9334
|
/**
|
|
9359
9335
|
*
|
|
@@ -9374,6 +9350,14 @@ exports.GetProductsDateFieldEnum = {
|
|
|
9374
9350
|
CREATED_AT: 'createdAt',
|
|
9375
9351
|
UPDATED_AT: 'updatedAt'
|
|
9376
9352
|
};
|
|
9353
|
+
/**
|
|
9354
|
+
* @export
|
|
9355
|
+
*/
|
|
9356
|
+
exports.GetProductsSortEnum = {
|
|
9357
|
+
PRICE: 'price',
|
|
9358
|
+
CREATED_AT: 'createdAt',
|
|
9359
|
+
TOTAL_SALE: 'totalSale'
|
|
9360
|
+
};
|
|
9377
9361
|
/**
|
|
9378
9362
|
* SitemapApi - axios parameter creator
|
|
9379
9363
|
* @export
|
package/dist/api/api.mjs
CHANGED
|
@@ -137,7 +137,8 @@ export const ComponentTypeEnum = {
|
|
|
137
137
|
CONTACT_FORM: 'contact-form',
|
|
138
138
|
CART_DETAIL: 'cart-detail',
|
|
139
139
|
CHECKOUT_DETAIL: 'checkout-detail',
|
|
140
|
-
NOT_FOUND_DETAIL: 'not-found-detail'
|
|
140
|
+
NOT_FOUND_DETAIL: 'not-found-detail',
|
|
141
|
+
SEARCH_DETAIL: 'search-detail'
|
|
141
142
|
};
|
|
142
143
|
/**
|
|
143
144
|
*
|
|
@@ -558,6 +559,11 @@ export const IProductCollectionQueryParamsDateFieldEnum = {
|
|
|
558
559
|
CREATED_AT: 'createdAt',
|
|
559
560
|
UPDATED_AT: 'updatedAt'
|
|
560
561
|
};
|
|
562
|
+
export const IProductCollectionQueryParamsSortEnum = {
|
|
563
|
+
PRICE: 'price',
|
|
564
|
+
CREATED_AT: 'createdAt',
|
|
565
|
+
TOTAL_SALE: 'totalSale'
|
|
566
|
+
};
|
|
561
567
|
export const IUserCollectionQueryParamsDateFieldEnum = {
|
|
562
568
|
CREATED_AT: 'createdAt',
|
|
563
569
|
UPDATED_AT: 'updatedAt'
|
|
@@ -681,6 +687,7 @@ export const PageTypeEnum = {
|
|
|
681
687
|
HOME: 'home',
|
|
682
688
|
CART: 'cart',
|
|
683
689
|
CHECKOUT: 'checkout',
|
|
690
|
+
SEARCH: 'search',
|
|
684
691
|
NOT_FOUND: 'not-found'
|
|
685
692
|
};
|
|
686
693
|
/**
|
|
@@ -703,6 +710,10 @@ export const PaymentMethodEnum = {
|
|
|
703
710
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
704
711
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
705
712
|
};
|
|
713
|
+
export const PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
714
|
+
CREATED_AT: 'createdAt',
|
|
715
|
+
UPDATED_AT: 'updatedAt'
|
|
716
|
+
};
|
|
706
717
|
/**
|
|
707
718
|
*
|
|
708
719
|
* @export
|
|
@@ -777,7 +788,8 @@ export const TemplateTypeEnum = {
|
|
|
777
788
|
CART: 'cart',
|
|
778
789
|
CHECKOUT: 'checkout',
|
|
779
790
|
NOT_FOUND: 'not-found',
|
|
780
|
-
BLOG: 'blog'
|
|
791
|
+
BLOG: 'blog',
|
|
792
|
+
SEARCH: 'search'
|
|
781
793
|
};
|
|
782
794
|
/**
|
|
783
795
|
*
|
|
@@ -8681,10 +8693,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8681
8693
|
* @param {string} companyId
|
|
8682
8694
|
* @param {string} [search]
|
|
8683
8695
|
* @param {string} [template]
|
|
8696
|
+
* @param {Array<string>} [collections]
|
|
8684
8697
|
* @param {*} [options] Override http request option.
|
|
8685
8698
|
* @throws {RequiredError}
|
|
8686
8699
|
*/
|
|
8687
|
-
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
8700
|
+
getAllProducts: async (companyId, search, template, collections, options = {}) => {
|
|
8688
8701
|
// verify required parameter 'companyId' is not null or undefined
|
|
8689
8702
|
assertParamExists('getAllProducts', 'companyId', companyId);
|
|
8690
8703
|
const localVarPath = `/api/products/get/all`;
|
|
@@ -8706,6 +8719,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8706
8719
|
if (template !== undefined) {
|
|
8707
8720
|
localVarQueryParameter['template'] = template;
|
|
8708
8721
|
}
|
|
8722
|
+
if (collections) {
|
|
8723
|
+
localVarQueryParameter['collections'] = collections;
|
|
8724
|
+
}
|
|
8709
8725
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8710
8726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8711
8727
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -8821,17 +8837,23 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8821
8837
|
* @param {string} [endDate]
|
|
8822
8838
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
8823
8839
|
* @param {OrderEnum} [order]
|
|
8824
|
-
* @param {string} [sort]
|
|
8825
8840
|
* @param {string} [companyId]
|
|
8826
8841
|
* @param {string} [domain]
|
|
8827
|
-
* @param {string} [collections]
|
|
8842
|
+
* @param {Array<string>} [collections]
|
|
8828
8843
|
* @param {string} [category]
|
|
8829
|
-
* @param {string} [brand]
|
|
8844
|
+
* @param {Array<string>} [brand]
|
|
8845
|
+
* @param {boolean} [inStock]
|
|
8846
|
+
* @param {number} [priceGte]
|
|
8847
|
+
* @param {number} [priceLte]
|
|
8848
|
+
* @param {boolean} [autoComplete]
|
|
8849
|
+
* @param {Array<string>} [mainVariant]
|
|
8850
|
+
* @param {Array<string>} [subVariant]
|
|
8851
|
+
* @param {GetProductsSortEnum} [sort]
|
|
8830
8852
|
* @param {ContentStatusEnum} [status]
|
|
8831
8853
|
* @param {*} [options] Override http request option.
|
|
8832
8854
|
* @throws {RequiredError}
|
|
8833
8855
|
*/
|
|
8834
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
8856
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, mainVariant, subVariant, sort, status, options = {}) => {
|
|
8835
8857
|
const localVarPath = `/api/products`;
|
|
8836
8858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8837
8859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8867,64 +8889,44 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8867
8889
|
if (order !== undefined) {
|
|
8868
8890
|
localVarQueryParameter['order'] = order;
|
|
8869
8891
|
}
|
|
8870
|
-
if (sort !== undefined) {
|
|
8871
|
-
localVarQueryParameter['sort'] = sort;
|
|
8872
|
-
}
|
|
8873
8892
|
if (companyId !== undefined) {
|
|
8874
8893
|
localVarQueryParameter['companyId'] = companyId;
|
|
8875
8894
|
}
|
|
8876
8895
|
if (domain !== undefined) {
|
|
8877
8896
|
localVarQueryParameter['domain'] = domain;
|
|
8878
8897
|
}
|
|
8879
|
-
if (collections
|
|
8898
|
+
if (collections) {
|
|
8880
8899
|
localVarQueryParameter['collections'] = collections;
|
|
8881
8900
|
}
|
|
8882
8901
|
if (category !== undefined) {
|
|
8883
8902
|
localVarQueryParameter['category'] = category;
|
|
8884
8903
|
}
|
|
8885
|
-
if (brand
|
|
8904
|
+
if (brand) {
|
|
8886
8905
|
localVarQueryParameter['brand'] = brand;
|
|
8887
8906
|
}
|
|
8888
|
-
if (
|
|
8889
|
-
localVarQueryParameter['
|
|
8907
|
+
if (inStock !== undefined) {
|
|
8908
|
+
localVarQueryParameter['inStock'] = inStock;
|
|
8890
8909
|
}
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8894
|
-
return {
|
|
8895
|
-
url: toPathString(localVarUrlObj),
|
|
8896
|
-
options: localVarRequestOptions,
|
|
8897
|
-
};
|
|
8898
|
-
},
|
|
8899
|
-
/**
|
|
8900
|
-
*
|
|
8901
|
-
* @param {string} search
|
|
8902
|
-
* @param {string} [companyId]
|
|
8903
|
-
* @param {string} [domain]
|
|
8904
|
-
* @param {*} [options] Override http request option.
|
|
8905
|
-
* @throws {RequiredError}
|
|
8906
|
-
*/
|
|
8907
|
-
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
8908
|
-
// verify required parameter 'search' is not null or undefined
|
|
8909
|
-
assertParamExists('searchProducts', 'search', search);
|
|
8910
|
-
const localVarPath = `/api/products/search`;
|
|
8911
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8912
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8913
|
-
let baseOptions;
|
|
8914
|
-
if (configuration) {
|
|
8915
|
-
baseOptions = configuration.baseOptions;
|
|
8910
|
+
if (priceGte !== undefined) {
|
|
8911
|
+
localVarQueryParameter['priceGte'] = priceGte;
|
|
8916
8912
|
}
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
const localVarQueryParameter = {};
|
|
8920
|
-
if (search !== undefined) {
|
|
8921
|
-
localVarQueryParameter['search'] = search;
|
|
8913
|
+
if (priceLte !== undefined) {
|
|
8914
|
+
localVarQueryParameter['priceLte'] = priceLte;
|
|
8922
8915
|
}
|
|
8923
|
-
if (
|
|
8924
|
-
localVarQueryParameter['
|
|
8916
|
+
if (autoComplete !== undefined) {
|
|
8917
|
+
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
8925
8918
|
}
|
|
8926
|
-
if (
|
|
8927
|
-
localVarQueryParameter['
|
|
8919
|
+
if (mainVariant) {
|
|
8920
|
+
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
8921
|
+
}
|
|
8922
|
+
if (subVariant) {
|
|
8923
|
+
localVarQueryParameter['subVariant'] = subVariant;
|
|
8924
|
+
}
|
|
8925
|
+
if (sort !== undefined) {
|
|
8926
|
+
localVarQueryParameter['sort'] = sort;
|
|
8927
|
+
}
|
|
8928
|
+
if (status !== undefined) {
|
|
8929
|
+
localVarQueryParameter['status'] = status;
|
|
8928
8930
|
}
|
|
8929
8931
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8930
8932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -9005,11 +9007,12 @@ export const ProductApiFp = function (configuration) {
|
|
|
9005
9007
|
* @param {string} companyId
|
|
9006
9008
|
* @param {string} [search]
|
|
9007
9009
|
* @param {string} [template]
|
|
9010
|
+
* @param {Array<string>} [collections]
|
|
9008
9011
|
* @param {*} [options] Override http request option.
|
|
9009
9012
|
* @throws {RequiredError}
|
|
9010
9013
|
*/
|
|
9011
|
-
async getAllProducts(companyId, search, template, options) {
|
|
9012
|
-
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);
|
|
9013
9016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9014
9017
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
9015
9018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9062,36 +9065,28 @@ export const ProductApiFp = function (configuration) {
|
|
|
9062
9065
|
* @param {string} [endDate]
|
|
9063
9066
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
9064
9067
|
* @param {OrderEnum} [order]
|
|
9065
|
-
* @param {string} [sort]
|
|
9066
9068
|
* @param {string} [companyId]
|
|
9067
9069
|
* @param {string} [domain]
|
|
9068
|
-
* @param {string} [collections]
|
|
9070
|
+
* @param {Array<string>} [collections]
|
|
9069
9071
|
* @param {string} [category]
|
|
9070
|
-
* @param {string} [brand]
|
|
9072
|
+
* @param {Array<string>} [brand]
|
|
9073
|
+
* @param {boolean} [inStock]
|
|
9074
|
+
* @param {number} [priceGte]
|
|
9075
|
+
* @param {number} [priceLte]
|
|
9076
|
+
* @param {boolean} [autoComplete]
|
|
9077
|
+
* @param {Array<string>} [mainVariant]
|
|
9078
|
+
* @param {Array<string>} [subVariant]
|
|
9079
|
+
* @param {GetProductsSortEnum} [sort]
|
|
9071
9080
|
* @param {ContentStatusEnum} [status]
|
|
9072
9081
|
* @param {*} [options] Override http request option.
|
|
9073
9082
|
* @throws {RequiredError}
|
|
9074
9083
|
*/
|
|
9075
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
9076
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order,
|
|
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);
|
|
9077
9086
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9078
9087
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9079
9088
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9080
9089
|
},
|
|
9081
|
-
/**
|
|
9082
|
-
*
|
|
9083
|
-
* @param {string} search
|
|
9084
|
-
* @param {string} [companyId]
|
|
9085
|
-
* @param {string} [domain]
|
|
9086
|
-
* @param {*} [options] Override http request option.
|
|
9087
|
-
* @throws {RequiredError}
|
|
9088
|
-
*/
|
|
9089
|
-
async searchProducts(search, companyId, domain, options) {
|
|
9090
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
9091
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9092
|
-
const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
9093
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9094
|
-
},
|
|
9095
9090
|
/**
|
|
9096
9091
|
*
|
|
9097
9092
|
* @param {string} id
|
|
@@ -9139,7 +9134,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9139
9134
|
* @throws {RequiredError}
|
|
9140
9135
|
*/
|
|
9141
9136
|
getAllProducts(requestParameters, options) {
|
|
9142
|
-
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));
|
|
9143
9138
|
},
|
|
9144
9139
|
/**
|
|
9145
9140
|
*
|
|
@@ -9175,16 +9170,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9175
9170
|
* @throws {RequiredError}
|
|
9176
9171
|
*/
|
|
9177
9172
|
getProducts(requestParameters = {}, options) {
|
|
9178
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.
|
|
9179
|
-
},
|
|
9180
|
-
/**
|
|
9181
|
-
*
|
|
9182
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9183
|
-
* @param {*} [options] Override http request option.
|
|
9184
|
-
* @throws {RequiredError}
|
|
9185
|
-
*/
|
|
9186
|
-
searchProducts(requestParameters, options) {
|
|
9187
|
-
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));
|
|
9188
9174
|
},
|
|
9189
9175
|
/**
|
|
9190
9176
|
*
|
|
@@ -9232,7 +9218,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9232
9218
|
* @memberof ProductApi
|
|
9233
9219
|
*/
|
|
9234
9220
|
getAllProducts(requestParameters, options) {
|
|
9235
|
-
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));
|
|
9236
9222
|
}
|
|
9237
9223
|
/**
|
|
9238
9224
|
*
|
|
@@ -9272,17 +9258,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9272
9258
|
* @memberof ProductApi
|
|
9273
9259
|
*/
|
|
9274
9260
|
getProducts(requestParameters = {}, options) {
|
|
9275
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.
|
|
9276
|
-
}
|
|
9277
|
-
/**
|
|
9278
|
-
*
|
|
9279
|
-
* @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
|
|
9280
|
-
* @param {*} [options] Override http request option.
|
|
9281
|
-
* @throws {RequiredError}
|
|
9282
|
-
* @memberof ProductApi
|
|
9283
|
-
*/
|
|
9284
|
-
searchProducts(requestParameters, options) {
|
|
9285
|
-
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));
|
|
9286
9262
|
}
|
|
9287
9263
|
/**
|
|
9288
9264
|
*
|
|
@@ -9302,6 +9278,14 @@ export const GetProductsDateFieldEnum = {
|
|
|
9302
9278
|
CREATED_AT: 'createdAt',
|
|
9303
9279
|
UPDATED_AT: 'updatedAt'
|
|
9304
9280
|
};
|
|
9281
|
+
/**
|
|
9282
|
+
* @export
|
|
9283
|
+
*/
|
|
9284
|
+
export const GetProductsSortEnum = {
|
|
9285
|
+
PRICE: 'price',
|
|
9286
|
+
CREATED_AT: 'createdAt',
|
|
9287
|
+
TOTAL_SALE: 'totalSale'
|
|
9288
|
+
};
|
|
9305
9289
|
/**
|
|
9306
9290
|
* SitemapApi - axios parameter creator
|
|
9307
9291
|
* @export
|
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
|
}
|