@infisale-client/api-client 1.2.72 → 1.2.74
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 +555 -59
- package/dist/api/api.js +226 -21
- package/dist/api/api.mjs +224 -19
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -859,6 +859,49 @@ export interface IBasketResponse {
|
|
|
859
859
|
* @memberof IBasketResponse
|
|
860
860
|
*/
|
|
861
861
|
'summary': IBasketSummary;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {Array<IBasketResponseChangesInner>}
|
|
865
|
+
* @memberof IBasketResponse
|
|
866
|
+
*/
|
|
867
|
+
'changes': Array<IBasketResponseChangesInner>;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @export
|
|
872
|
+
* @interface IBasketResponseChangesInner
|
|
873
|
+
*/
|
|
874
|
+
export interface IBasketResponseChangesInner {
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof IBasketResponseChangesInner
|
|
879
|
+
*/
|
|
880
|
+
'subVariant'?: string;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof IBasketResponseChangesInner
|
|
885
|
+
*/
|
|
886
|
+
'mainVariant'?: string;
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @type {number}
|
|
890
|
+
* @memberof IBasketResponseChangesInner
|
|
891
|
+
*/
|
|
892
|
+
'newAmount': number;
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @type {number}
|
|
896
|
+
* @memberof IBasketResponseChangesInner
|
|
897
|
+
*/
|
|
898
|
+
'oldAmount': number;
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @type {IProductResponse}
|
|
902
|
+
* @memberof IBasketResponseChangesInner
|
|
903
|
+
*/
|
|
904
|
+
'product': IProductResponse;
|
|
862
905
|
}
|
|
863
906
|
/**
|
|
864
907
|
*
|
|
@@ -2153,6 +2196,12 @@ export interface ICompany {
|
|
|
2153
2196
|
* @memberof ICompany
|
|
2154
2197
|
*/
|
|
2155
2198
|
'shippingProviders': Array<ShippingProvider>;
|
|
2199
|
+
/**
|
|
2200
|
+
*
|
|
2201
|
+
* @type {boolean}
|
|
2202
|
+
* @memberof ICompany
|
|
2203
|
+
*/
|
|
2204
|
+
'autoApproveReviews': boolean;
|
|
2156
2205
|
/**
|
|
2157
2206
|
*
|
|
2158
2207
|
* @type {CompanyStatusEnum}
|
|
@@ -2354,6 +2403,12 @@ export interface ICompanyAdminResponse {
|
|
|
2354
2403
|
* @memberof ICompanyAdminResponse
|
|
2355
2404
|
*/
|
|
2356
2405
|
'shippingProviders': Array<ShippingProvider>;
|
|
2406
|
+
/**
|
|
2407
|
+
*
|
|
2408
|
+
* @type {boolean}
|
|
2409
|
+
* @memberof ICompanyAdminResponse
|
|
2410
|
+
*/
|
|
2411
|
+
'autoApproveReviews': boolean;
|
|
2357
2412
|
/**
|
|
2358
2413
|
*
|
|
2359
2414
|
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles}
|
|
@@ -2786,6 +2841,12 @@ export interface ICompanyPatchRequest {
|
|
|
2786
2841
|
* @memberof ICompanyPatchRequest
|
|
2787
2842
|
*/
|
|
2788
2843
|
'currencies'?: RecordCurrencyEnumCurrency;
|
|
2844
|
+
/**
|
|
2845
|
+
*
|
|
2846
|
+
* @type {boolean}
|
|
2847
|
+
* @memberof ICompanyPatchRequest
|
|
2848
|
+
*/
|
|
2849
|
+
'autoApproveReviews'?: boolean;
|
|
2789
2850
|
}
|
|
2790
2851
|
/**
|
|
2791
2852
|
*
|
|
@@ -3086,6 +3147,12 @@ export interface ICompanyResponse {
|
|
|
3086
3147
|
* @memberof ICompanyResponse
|
|
3087
3148
|
*/
|
|
3088
3149
|
'shippingProviders': Array<ShippingProvider>;
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @type {boolean}
|
|
3153
|
+
* @memberof ICompanyResponse
|
|
3154
|
+
*/
|
|
3155
|
+
'autoApproveReviews': boolean;
|
|
3089
3156
|
/**
|
|
3090
3157
|
*
|
|
3091
3158
|
* @type {PickICompanyNameOrDomainsOrIdOrLanguage}
|
|
@@ -5479,6 +5546,49 @@ export interface IOrderReturnUpdatePatchRequest {
|
|
|
5479
5546
|
*/
|
|
5480
5547
|
'refund'?: boolean;
|
|
5481
5548
|
}
|
|
5549
|
+
/**
|
|
5550
|
+
*
|
|
5551
|
+
* @export
|
|
5552
|
+
* @interface IOrderReviewPostRequest
|
|
5553
|
+
*/
|
|
5554
|
+
export interface IOrderReviewPostRequest {
|
|
5555
|
+
/**
|
|
5556
|
+
*
|
|
5557
|
+
* @type {string}
|
|
5558
|
+
* @memberof IOrderReviewPostRequest
|
|
5559
|
+
*/
|
|
5560
|
+
'orderId': string;
|
|
5561
|
+
/**
|
|
5562
|
+
*
|
|
5563
|
+
* @type {string}
|
|
5564
|
+
* @memberof IOrderReviewPostRequest
|
|
5565
|
+
*/
|
|
5566
|
+
'productId': string;
|
|
5567
|
+
/**
|
|
5568
|
+
*
|
|
5569
|
+
* @type {number}
|
|
5570
|
+
* @memberof IOrderReviewPostRequest
|
|
5571
|
+
*/
|
|
5572
|
+
'rating': number;
|
|
5573
|
+
/**
|
|
5574
|
+
*
|
|
5575
|
+
* @type {string}
|
|
5576
|
+
* @memberof IOrderReviewPostRequest
|
|
5577
|
+
*/
|
|
5578
|
+
'name': string;
|
|
5579
|
+
/**
|
|
5580
|
+
*
|
|
5581
|
+
* @type {string}
|
|
5582
|
+
* @memberof IOrderReviewPostRequest
|
|
5583
|
+
*/
|
|
5584
|
+
'title': string;
|
|
5585
|
+
/**
|
|
5586
|
+
*
|
|
5587
|
+
* @type {string}
|
|
5588
|
+
* @memberof IOrderReviewPostRequest
|
|
5589
|
+
*/
|
|
5590
|
+
'comment': string;
|
|
5591
|
+
}
|
|
5482
5592
|
/**
|
|
5483
5593
|
*
|
|
5484
5594
|
* @export
|
|
@@ -6225,18 +6335,6 @@ export interface IProductCollectionQueryParams {
|
|
|
6225
6335
|
* @memberof IProductCollectionQueryParams
|
|
6226
6336
|
*/
|
|
6227
6337
|
'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>;
|
|
6240
6338
|
/**
|
|
6241
6339
|
*
|
|
6242
6340
|
* @type {string}
|
|
@@ -6259,6 +6357,8 @@ export declare const IProductCollectionQueryParamsSortEnum: {
|
|
|
6259
6357
|
readonly PRICE: "price";
|
|
6260
6358
|
readonly CREATED_AT: "createdAt";
|
|
6261
6359
|
readonly TOTAL_SALE: "totalSale";
|
|
6360
|
+
readonly RATING: "rating";
|
|
6361
|
+
readonly REVIEW_COUNT: "reviewCount";
|
|
6262
6362
|
};
|
|
6263
6363
|
export type IProductCollectionQueryParamsSortEnum = typeof IProductCollectionQueryParamsSortEnum[keyof typeof IProductCollectionQueryParamsSortEnum];
|
|
6264
6364
|
/**
|
|
@@ -6613,6 +6713,24 @@ export interface IProductResponse {
|
|
|
6613
6713
|
'attributes'?: {
|
|
6614
6714
|
[key: string]: string;
|
|
6615
6715
|
};
|
|
6716
|
+
/**
|
|
6717
|
+
*
|
|
6718
|
+
* @type {number}
|
|
6719
|
+
* @memberof IProductResponse
|
|
6720
|
+
*/
|
|
6721
|
+
'rating': number;
|
|
6722
|
+
/**
|
|
6723
|
+
*
|
|
6724
|
+
* @type {number}
|
|
6725
|
+
* @memberof IProductResponse
|
|
6726
|
+
*/
|
|
6727
|
+
'reviewCount': number;
|
|
6728
|
+
/**
|
|
6729
|
+
*
|
|
6730
|
+
* @type {IProductResponseReviewCounts}
|
|
6731
|
+
* @memberof IProductResponse
|
|
6732
|
+
*/
|
|
6733
|
+
'reviewCounts': IProductResponseReviewCounts;
|
|
6616
6734
|
/**
|
|
6617
6735
|
*
|
|
6618
6736
|
* @type {IBrandResponse}
|
|
@@ -6632,6 +6750,43 @@ export interface IProductResponse {
|
|
|
6632
6750
|
*/
|
|
6633
6751
|
'template': ITemplateResponse;
|
|
6634
6752
|
}
|
|
6753
|
+
/**
|
|
6754
|
+
*
|
|
6755
|
+
* @export
|
|
6756
|
+
* @interface IProductResponseReviewCounts
|
|
6757
|
+
*/
|
|
6758
|
+
export interface IProductResponseReviewCounts {
|
|
6759
|
+
/**
|
|
6760
|
+
*
|
|
6761
|
+
* @type {number}
|
|
6762
|
+
* @memberof IProductResponseReviewCounts
|
|
6763
|
+
*/
|
|
6764
|
+
'1': number;
|
|
6765
|
+
/**
|
|
6766
|
+
*
|
|
6767
|
+
* @type {number}
|
|
6768
|
+
* @memberof IProductResponseReviewCounts
|
|
6769
|
+
*/
|
|
6770
|
+
'2': number;
|
|
6771
|
+
/**
|
|
6772
|
+
*
|
|
6773
|
+
* @type {number}
|
|
6774
|
+
* @memberof IProductResponseReviewCounts
|
|
6775
|
+
*/
|
|
6776
|
+
'3': number;
|
|
6777
|
+
/**
|
|
6778
|
+
*
|
|
6779
|
+
* @type {number}
|
|
6780
|
+
* @memberof IProductResponseReviewCounts
|
|
6781
|
+
*/
|
|
6782
|
+
'4': number;
|
|
6783
|
+
/**
|
|
6784
|
+
*
|
|
6785
|
+
* @type {number}
|
|
6786
|
+
* @memberof IProductResponseReviewCounts
|
|
6787
|
+
*/
|
|
6788
|
+
'5': number;
|
|
6789
|
+
}
|
|
6635
6790
|
/**
|
|
6636
6791
|
*
|
|
6637
6792
|
* @export
|
|
@@ -6645,6 +6800,43 @@ export interface IProductResponseStockValue {
|
|
|
6645
6800
|
*/
|
|
6646
6801
|
'quantity': number;
|
|
6647
6802
|
}
|
|
6803
|
+
/**
|
|
6804
|
+
*
|
|
6805
|
+
* @export
|
|
6806
|
+
* @interface IProductReviewsResponse
|
|
6807
|
+
*/
|
|
6808
|
+
export interface IProductReviewsResponse {
|
|
6809
|
+
/**
|
|
6810
|
+
*
|
|
6811
|
+
* @type {number}
|
|
6812
|
+
* @memberof IProductReviewsResponse
|
|
6813
|
+
*/
|
|
6814
|
+
'page': number;
|
|
6815
|
+
/**
|
|
6816
|
+
*
|
|
6817
|
+
* @type {number}
|
|
6818
|
+
* @memberof IProductReviewsResponse
|
|
6819
|
+
*/
|
|
6820
|
+
'itemsPerPage': number;
|
|
6821
|
+
/**
|
|
6822
|
+
*
|
|
6823
|
+
* @type {number}
|
|
6824
|
+
* @memberof IProductReviewsResponse
|
|
6825
|
+
*/
|
|
6826
|
+
'total': number;
|
|
6827
|
+
/**
|
|
6828
|
+
*
|
|
6829
|
+
* @type {number}
|
|
6830
|
+
* @memberof IProductReviewsResponse
|
|
6831
|
+
*/
|
|
6832
|
+
'totalPages': number;
|
|
6833
|
+
/**
|
|
6834
|
+
*
|
|
6835
|
+
* @type {Array<IReview>}
|
|
6836
|
+
* @memberof IProductReviewsResponse
|
|
6837
|
+
*/
|
|
6838
|
+
'data': Array<IReview>;
|
|
6839
|
+
}
|
|
6648
6840
|
/**
|
|
6649
6841
|
*
|
|
6650
6842
|
* @export
|
|
@@ -6838,6 +7030,122 @@ export interface IResetPasswordRequest {
|
|
|
6838
7030
|
*/
|
|
6839
7031
|
'code': string;
|
|
6840
7032
|
}
|
|
7033
|
+
/**
|
|
7034
|
+
*
|
|
7035
|
+
* @export
|
|
7036
|
+
* @interface IReview
|
|
7037
|
+
*/
|
|
7038
|
+
export interface IReview {
|
|
7039
|
+
/**
|
|
7040
|
+
*
|
|
7041
|
+
* @type {string}
|
|
7042
|
+
* @memberof IReview
|
|
7043
|
+
*/
|
|
7044
|
+
'_id': string;
|
|
7045
|
+
/**
|
|
7046
|
+
*
|
|
7047
|
+
* @type {number}
|
|
7048
|
+
* @memberof IReview
|
|
7049
|
+
*/
|
|
7050
|
+
'__v': number;
|
|
7051
|
+
/**
|
|
7052
|
+
*
|
|
7053
|
+
* @type {string}
|
|
7054
|
+
* @memberof IReview
|
|
7055
|
+
*/
|
|
7056
|
+
'createdAt': string;
|
|
7057
|
+
/**
|
|
7058
|
+
*
|
|
7059
|
+
* @type {string}
|
|
7060
|
+
* @memberof IReview
|
|
7061
|
+
*/
|
|
7062
|
+
'updatedAt': string;
|
|
7063
|
+
/**
|
|
7064
|
+
*
|
|
7065
|
+
* @type {string}
|
|
7066
|
+
* @memberof IReview
|
|
7067
|
+
*/
|
|
7068
|
+
'company': string;
|
|
7069
|
+
/**
|
|
7070
|
+
*
|
|
7071
|
+
* @type {string}
|
|
7072
|
+
* @memberof IReview
|
|
7073
|
+
*/
|
|
7074
|
+
'order': string;
|
|
7075
|
+
/**
|
|
7076
|
+
*
|
|
7077
|
+
* @type {string}
|
|
7078
|
+
* @memberof IReview
|
|
7079
|
+
*/
|
|
7080
|
+
'relId': string;
|
|
7081
|
+
/**
|
|
7082
|
+
*
|
|
7083
|
+
* @type {string}
|
|
7084
|
+
* @memberof IReview
|
|
7085
|
+
*/
|
|
7086
|
+
'product': string;
|
|
7087
|
+
/**
|
|
7088
|
+
*
|
|
7089
|
+
* @type {number}
|
|
7090
|
+
* @memberof IReview
|
|
7091
|
+
*/
|
|
7092
|
+
'rating': number;
|
|
7093
|
+
/**
|
|
7094
|
+
*
|
|
7095
|
+
* @type {string}
|
|
7096
|
+
* @memberof IReview
|
|
7097
|
+
*/
|
|
7098
|
+
'name': string;
|
|
7099
|
+
/**
|
|
7100
|
+
*
|
|
7101
|
+
* @type {string}
|
|
7102
|
+
* @memberof IReview
|
|
7103
|
+
*/
|
|
7104
|
+
'title': string;
|
|
7105
|
+
/**
|
|
7106
|
+
*
|
|
7107
|
+
* @type {string}
|
|
7108
|
+
* @memberof IReview
|
|
7109
|
+
*/
|
|
7110
|
+
'comment': string;
|
|
7111
|
+
/**
|
|
7112
|
+
*
|
|
7113
|
+
* @type {ReviewStatusEnum}
|
|
7114
|
+
* @memberof IReview
|
|
7115
|
+
*/
|
|
7116
|
+
'status': ReviewStatusEnum;
|
|
7117
|
+
}
|
|
7118
|
+
/**
|
|
7119
|
+
*
|
|
7120
|
+
* @export
|
|
7121
|
+
* @interface IReviewPatchRequest
|
|
7122
|
+
*/
|
|
7123
|
+
export interface IReviewPatchRequest {
|
|
7124
|
+
/**
|
|
7125
|
+
*
|
|
7126
|
+
* @type {number}
|
|
7127
|
+
* @memberof IReviewPatchRequest
|
|
7128
|
+
*/
|
|
7129
|
+
'rating': number;
|
|
7130
|
+
/**
|
|
7131
|
+
*
|
|
7132
|
+
* @type {string}
|
|
7133
|
+
* @memberof IReviewPatchRequest
|
|
7134
|
+
*/
|
|
7135
|
+
'name': string;
|
|
7136
|
+
/**
|
|
7137
|
+
*
|
|
7138
|
+
* @type {string}
|
|
7139
|
+
* @memberof IReviewPatchRequest
|
|
7140
|
+
*/
|
|
7141
|
+
'title': string;
|
|
7142
|
+
/**
|
|
7143
|
+
*
|
|
7144
|
+
* @type {string}
|
|
7145
|
+
* @memberof IReviewPatchRequest
|
|
7146
|
+
*/
|
|
7147
|
+
'comment': string;
|
|
7148
|
+
}
|
|
6841
7149
|
/**
|
|
6842
7150
|
*
|
|
6843
7151
|
* @export
|
|
@@ -7081,6 +7389,18 @@ export interface ITemplateResponse {
|
|
|
7081
7389
|
* @interface ITemplateResponseComponentsInner
|
|
7082
7390
|
*/
|
|
7083
7391
|
export interface ITemplateResponseComponentsInner {
|
|
7392
|
+
/**
|
|
7393
|
+
*
|
|
7394
|
+
* @type {string}
|
|
7395
|
+
* @memberof ITemplateResponseComponentsInner
|
|
7396
|
+
*/
|
|
7397
|
+
'desktopVariant'?: string;
|
|
7398
|
+
/**
|
|
7399
|
+
*
|
|
7400
|
+
* @type {string}
|
|
7401
|
+
* @memberof ITemplateResponseComponentsInner
|
|
7402
|
+
*/
|
|
7403
|
+
'mobileVariant'?: string;
|
|
7084
7404
|
/**
|
|
7085
7405
|
*
|
|
7086
7406
|
* @type {Array<ITemplateResponseComponentsInnerContentsInner>}
|
|
@@ -8863,6 +9183,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
8863
9183
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
8864
9184
|
*/
|
|
8865
9185
|
'shippingProviders': Array<ShippingProvider>;
|
|
9186
|
+
/**
|
|
9187
|
+
*
|
|
9188
|
+
* @type {boolean}
|
|
9189
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9190
|
+
*/
|
|
9191
|
+
'autoApproveReviews': boolean;
|
|
8866
9192
|
}
|
|
8867
9193
|
/**
|
|
8868
9194
|
*
|
|
@@ -9576,67 +9902,67 @@ export interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrT
|
|
|
9576
9902
|
/**
|
|
9577
9903
|
* From T, pick a set of properties whose keys are in the union K
|
|
9578
9904
|
* @export
|
|
9579
|
-
* @interface
|
|
9905
|
+
* @interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9580
9906
|
*/
|
|
9581
|
-
export interface
|
|
9907
|
+
export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields {
|
|
9582
9908
|
/**
|
|
9583
9909
|
*
|
|
9584
9910
|
* @type {string}
|
|
9585
|
-
* @memberof
|
|
9911
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9586
9912
|
*/
|
|
9587
9913
|
'company': string;
|
|
9588
9914
|
/**
|
|
9589
9915
|
*
|
|
9590
9916
|
* @type {string}
|
|
9591
|
-
* @memberof
|
|
9917
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9592
9918
|
*/
|
|
9593
9919
|
'_id': string;
|
|
9594
9920
|
/**
|
|
9595
9921
|
*
|
|
9596
9922
|
* @type {number}
|
|
9597
|
-
* @memberof
|
|
9923
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9598
9924
|
*/
|
|
9599
9925
|
'__v': number;
|
|
9600
9926
|
/**
|
|
9601
9927
|
*
|
|
9602
9928
|
* @type {string}
|
|
9603
|
-
* @memberof
|
|
9929
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9604
9930
|
*/
|
|
9605
9931
|
'createdAt': string;
|
|
9606
9932
|
/**
|
|
9607
9933
|
*
|
|
9608
9934
|
* @type {string}
|
|
9609
|
-
* @memberof
|
|
9935
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9610
9936
|
*/
|
|
9611
9937
|
'updatedAt': string;
|
|
9612
9938
|
/**
|
|
9613
9939
|
*
|
|
9614
9940
|
* @type {number}
|
|
9615
|
-
* @memberof
|
|
9941
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9616
9942
|
*/
|
|
9617
9943
|
'totalStock': number;
|
|
9618
9944
|
/**
|
|
9619
9945
|
*
|
|
9620
9946
|
* @type {number}
|
|
9621
|
-
* @memberof
|
|
9947
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9622
9948
|
*/
|
|
9623
9949
|
'totalSale': number;
|
|
9624
9950
|
/**
|
|
9625
9951
|
*
|
|
9626
9952
|
* @type {boolean}
|
|
9627
|
-
* @memberof
|
|
9953
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9628
9954
|
*/
|
|
9629
9955
|
'negativeStock'?: boolean;
|
|
9630
9956
|
/**
|
|
9631
9957
|
*
|
|
9632
9958
|
* @type {Array<string>}
|
|
9633
|
-
* @memberof
|
|
9959
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9634
9960
|
*/
|
|
9635
9961
|
'collections': Array<string>;
|
|
9636
9962
|
/**
|
|
9637
9963
|
* Construct a type with a set of properties K of type T
|
|
9638
9964
|
* @type {{ [key: string]: string; }}
|
|
9639
|
-
* @memberof
|
|
9965
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9640
9966
|
*/
|
|
9641
9967
|
'templates': {
|
|
9642
9968
|
[key: string]: string;
|
|
@@ -9644,25 +9970,25 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
|
|
|
9644
9970
|
/**
|
|
9645
9971
|
*
|
|
9646
9972
|
* @type {string}
|
|
9647
|
-
* @memberof
|
|
9973
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9648
9974
|
*/
|
|
9649
9975
|
'sku'?: string;
|
|
9650
9976
|
/**
|
|
9651
9977
|
*
|
|
9652
9978
|
* @type {string}
|
|
9653
|
-
* @memberof
|
|
9979
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9654
9980
|
*/
|
|
9655
9981
|
'barcode'?: string;
|
|
9656
9982
|
/**
|
|
9657
9983
|
*
|
|
9658
9984
|
* @type {Array<IImage>}
|
|
9659
|
-
* @memberof
|
|
9985
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9660
9986
|
*/
|
|
9661
9987
|
'photos': Array<IImage>;
|
|
9662
9988
|
/**
|
|
9663
9989
|
*
|
|
9664
9990
|
* @type {{ [key: string]: IProductResponseStockValue; }}
|
|
9665
|
-
* @memberof
|
|
9991
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9666
9992
|
*/
|
|
9667
9993
|
'stock'?: {
|
|
9668
9994
|
[key: string]: IProductResponseStockValue;
|
|
@@ -9670,31 +9996,31 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
|
|
|
9670
9996
|
/**
|
|
9671
9997
|
*
|
|
9672
9998
|
* @type {boolean}
|
|
9673
|
-
* @memberof
|
|
9999
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9674
10000
|
*/
|
|
9675
10001
|
'stocklessSale'?: boolean;
|
|
9676
10002
|
/**
|
|
9677
10003
|
*
|
|
9678
10004
|
* @type {PriceType}
|
|
9679
|
-
* @memberof
|
|
10005
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9680
10006
|
*/
|
|
9681
10007
|
'priceInfo': PriceType;
|
|
9682
10008
|
/**
|
|
9683
10009
|
*
|
|
9684
10010
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
9685
|
-
* @memberof
|
|
10011
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9686
10012
|
*/
|
|
9687
10013
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
9688
10014
|
/**
|
|
9689
10015
|
*
|
|
9690
10016
|
* @type {Array<VariantType>}
|
|
9691
|
-
* @memberof
|
|
10017
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9692
10018
|
*/
|
|
9693
10019
|
'variants'?: Array<VariantType>;
|
|
9694
10020
|
/**
|
|
9695
10021
|
* Construct a type with a set of properties K of type T
|
|
9696
10022
|
* @type {{ [key: string]: Array<IImage>; }}
|
|
9697
|
-
* @memberof
|
|
10023
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9698
10024
|
*/
|
|
9699
10025
|
'mainVariantsPhotos'?: {
|
|
9700
10026
|
[key: string]: Array<IImage>;
|
|
@@ -9702,11 +10028,29 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplate {
|
|
|
9702
10028
|
/**
|
|
9703
10029
|
*
|
|
9704
10030
|
* @type {{ [key: string]: string; }}
|
|
9705
|
-
* @memberof
|
|
10031
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
9706
10032
|
*/
|
|
9707
10033
|
'attributes'?: {
|
|
9708
10034
|
[key: string]: string;
|
|
9709
10035
|
};
|
|
10036
|
+
/**
|
|
10037
|
+
*
|
|
10038
|
+
* @type {number}
|
|
10039
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
10040
|
+
*/
|
|
10041
|
+
'rating': number;
|
|
10042
|
+
/**
|
|
10043
|
+
*
|
|
10044
|
+
* @type {number}
|
|
10045
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
10046
|
+
*/
|
|
10047
|
+
'reviewCount': number;
|
|
10048
|
+
/**
|
|
10049
|
+
*
|
|
10050
|
+
* @type {IProductResponseReviewCounts}
|
|
10051
|
+
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
10052
|
+
*/
|
|
10053
|
+
'reviewCounts': IProductResponseReviewCounts;
|
|
9710
10054
|
}
|
|
9711
10055
|
/**
|
|
9712
10056
|
* From T, pick a set of properties whose keys are in the union K
|
|
@@ -10520,6 +10864,17 @@ export interface RecordLanguageEnumTitleStringTr {
|
|
|
10520
10864
|
*/
|
|
10521
10865
|
'title': string;
|
|
10522
10866
|
}
|
|
10867
|
+
/**
|
|
10868
|
+
*
|
|
10869
|
+
* @export
|
|
10870
|
+
* @enum {string}
|
|
10871
|
+
*/
|
|
10872
|
+
export declare const ReviewStatusEnum: {
|
|
10873
|
+
readonly WAITING_APPROVAL: "waiting_approval";
|
|
10874
|
+
readonly APPROVED: "approved";
|
|
10875
|
+
readonly REJECTED: "rejected";
|
|
10876
|
+
};
|
|
10877
|
+
export type ReviewStatusEnum = typeof ReviewStatusEnum[keyof typeof ReviewStatusEnum];
|
|
10523
10878
|
/**
|
|
10524
10879
|
*
|
|
10525
10880
|
* @export
|
|
@@ -10715,6 +11070,19 @@ export declare const TimezoneEnum: {
|
|
|
10715
11070
|
readonly UTC1400: "UTC+14:00";
|
|
10716
11071
|
};
|
|
10717
11072
|
export type TimezoneEnum = typeof TimezoneEnum[keyof typeof TimezoneEnum];
|
|
11073
|
+
/**
|
|
11074
|
+
*
|
|
11075
|
+
* @export
|
|
11076
|
+
* @enum {string}
|
|
11077
|
+
*/
|
|
11078
|
+
export declare const UniquePageTypeEnum: {
|
|
11079
|
+
readonly HOME: "home";
|
|
11080
|
+
readonly CART: "cart";
|
|
11081
|
+
readonly CHECKOUT: "checkout";
|
|
11082
|
+
readonly SEARCH: "search";
|
|
11083
|
+
readonly NOT_FOUND: "not-found";
|
|
11084
|
+
};
|
|
11085
|
+
export type UniquePageTypeEnum = typeof UniquePageTypeEnum[keyof typeof UniquePageTypeEnum];
|
|
10718
11086
|
/**
|
|
10719
11087
|
*
|
|
10720
11088
|
* @export
|
|
@@ -11948,6 +12316,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11948
12316
|
* @throws {RequiredError}
|
|
11949
12317
|
*/
|
|
11950
12318
|
createReturn: (id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12319
|
+
/**
|
|
12320
|
+
*
|
|
12321
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
12322
|
+
* @param {*} [options] Override http request option.
|
|
12323
|
+
* @throws {RequiredError}
|
|
12324
|
+
*/
|
|
12325
|
+
createReview: (iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11951
12326
|
/**
|
|
11952
12327
|
*
|
|
11953
12328
|
* @param {number} [page]
|
|
@@ -11987,6 +12362,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11987
12362
|
* @throws {RequiredError}
|
|
11988
12363
|
*/
|
|
11989
12364
|
getOrders: (company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetOrdersDateFieldEnum, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12365
|
+
/**
|
|
12366
|
+
*
|
|
12367
|
+
* @param {string} id
|
|
12368
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
12369
|
+
* @param {*} [options] Override http request option.
|
|
12370
|
+
* @throws {RequiredError}
|
|
12371
|
+
*/
|
|
12372
|
+
updateReview: (id: string, iReviewPatchRequest: IReviewPatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11990
12373
|
};
|
|
11991
12374
|
/**
|
|
11992
12375
|
* OrderApi - functional programming interface
|
|
@@ -12008,6 +12391,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
12008
12391
|
* @throws {RequiredError}
|
|
12009
12392
|
*/
|
|
12010
12393
|
createReturn(id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
12394
|
+
/**
|
|
12395
|
+
*
|
|
12396
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
12397
|
+
* @param {*} [options] Override http request option.
|
|
12398
|
+
* @throws {RequiredError}
|
|
12399
|
+
*/
|
|
12400
|
+
createReview(iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
12011
12401
|
/**
|
|
12012
12402
|
*
|
|
12013
12403
|
* @param {number} [page]
|
|
@@ -12047,6 +12437,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
12047
12437
|
* @throws {RequiredError}
|
|
12048
12438
|
*/
|
|
12049
12439
|
getOrders(company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetOrdersDateFieldEnum, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
|
|
12440
|
+
/**
|
|
12441
|
+
*
|
|
12442
|
+
* @param {string} id
|
|
12443
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
12444
|
+
* @param {*} [options] Override http request option.
|
|
12445
|
+
* @throws {RequiredError}
|
|
12446
|
+
*/
|
|
12447
|
+
updateReview(id: string, iReviewPatchRequest: IReviewPatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IReview>>;
|
|
12050
12448
|
};
|
|
12051
12449
|
/**
|
|
12052
12450
|
* OrderApi - factory interface
|
|
@@ -12067,6 +12465,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
12067
12465
|
* @throws {RequiredError}
|
|
12068
12466
|
*/
|
|
12069
12467
|
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
12468
|
+
/**
|
|
12469
|
+
*
|
|
12470
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
12471
|
+
* @param {*} [options] Override http request option.
|
|
12472
|
+
* @throws {RequiredError}
|
|
12473
|
+
*/
|
|
12474
|
+
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
12070
12475
|
/**
|
|
12071
12476
|
*
|
|
12072
12477
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -12088,6 +12493,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
12088
12493
|
* @throws {RequiredError}
|
|
12089
12494
|
*/
|
|
12090
12495
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
12496
|
+
/**
|
|
12497
|
+
*
|
|
12498
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
12499
|
+
* @param {*} [options] Override http request option.
|
|
12500
|
+
* @throws {RequiredError}
|
|
12501
|
+
*/
|
|
12502
|
+
updateReview(requestParameters: OrderApiUpdateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<IReview>;
|
|
12091
12503
|
};
|
|
12092
12504
|
/**
|
|
12093
12505
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -12121,6 +12533,19 @@ export interface OrderApiCreateReturnRequest {
|
|
|
12121
12533
|
*/
|
|
12122
12534
|
readonly iOrderReturnPostRequest: IOrderReturnPostRequest;
|
|
12123
12535
|
}
|
|
12536
|
+
/**
|
|
12537
|
+
* Request parameters for createReview operation in OrderApi.
|
|
12538
|
+
* @export
|
|
12539
|
+
* @interface OrderApiCreateReviewRequest
|
|
12540
|
+
*/
|
|
12541
|
+
export interface OrderApiCreateReviewRequest {
|
|
12542
|
+
/**
|
|
12543
|
+
*
|
|
12544
|
+
* @type {IOrderReviewPostRequest}
|
|
12545
|
+
* @memberof OrderApiCreateReview
|
|
12546
|
+
*/
|
|
12547
|
+
readonly iOrderReviewPostRequest: IOrderReviewPostRequest;
|
|
12548
|
+
}
|
|
12124
12549
|
/**
|
|
12125
12550
|
* Request parameters for getMyOrders operation in OrderApi.
|
|
12126
12551
|
* @export
|
|
@@ -12268,6 +12693,25 @@ export interface OrderApiGetOrdersRequest {
|
|
|
12268
12693
|
*/
|
|
12269
12694
|
readonly status?: OrderStatusEnum;
|
|
12270
12695
|
}
|
|
12696
|
+
/**
|
|
12697
|
+
* Request parameters for updateReview operation in OrderApi.
|
|
12698
|
+
* @export
|
|
12699
|
+
* @interface OrderApiUpdateReviewRequest
|
|
12700
|
+
*/
|
|
12701
|
+
export interface OrderApiUpdateReviewRequest {
|
|
12702
|
+
/**
|
|
12703
|
+
*
|
|
12704
|
+
* @type {string}
|
|
12705
|
+
* @memberof OrderApiUpdateReview
|
|
12706
|
+
*/
|
|
12707
|
+
readonly id: string;
|
|
12708
|
+
/**
|
|
12709
|
+
*
|
|
12710
|
+
* @type {IReviewPatchRequest}
|
|
12711
|
+
* @memberof OrderApiUpdateReview
|
|
12712
|
+
*/
|
|
12713
|
+
readonly iReviewPatchRequest: IReviewPatchRequest;
|
|
12714
|
+
}
|
|
12271
12715
|
/**
|
|
12272
12716
|
* OrderApi - object-oriented interface
|
|
12273
12717
|
* @export
|
|
@@ -12291,6 +12735,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
12291
12735
|
* @memberof OrderApi
|
|
12292
12736
|
*/
|
|
12293
12737
|
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
12738
|
+
/**
|
|
12739
|
+
*
|
|
12740
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
12741
|
+
* @param {*} [options] Override http request option.
|
|
12742
|
+
* @throws {RequiredError}
|
|
12743
|
+
* @memberof OrderApi
|
|
12744
|
+
*/
|
|
12745
|
+
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
12294
12746
|
/**
|
|
12295
12747
|
*
|
|
12296
12748
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -12315,6 +12767,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
12315
12767
|
* @memberof OrderApi
|
|
12316
12768
|
*/
|
|
12317
12769
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
12770
|
+
/**
|
|
12771
|
+
*
|
|
12772
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
12773
|
+
* @param {*} [options] Override http request option.
|
|
12774
|
+
* @throws {RequiredError}
|
|
12775
|
+
* @memberof OrderApi
|
|
12776
|
+
*/
|
|
12777
|
+
updateReview(requestParameters: OrderApiUpdateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IReview, any>>;
|
|
12318
12778
|
}
|
|
12319
12779
|
/**
|
|
12320
12780
|
* @export
|
|
@@ -12348,14 +12808,14 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
12348
12808
|
getPageBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12349
12809
|
/**
|
|
12350
12810
|
*
|
|
12351
|
-
* @param {
|
|
12811
|
+
* @param {UniquePageTypeEnum} type
|
|
12352
12812
|
* @param {string} [companyId]
|
|
12353
12813
|
* @param {string} [domain]
|
|
12354
12814
|
* @param {string} [template]
|
|
12355
12815
|
* @param {*} [options] Override http request option.
|
|
12356
12816
|
* @throws {RequiredError}
|
|
12357
12817
|
*/
|
|
12358
|
-
getPageByType: (type:
|
|
12818
|
+
getPageByType: (type: UniquePageTypeEnum, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12359
12819
|
/**
|
|
12360
12820
|
*
|
|
12361
12821
|
* @param {number} [page]
|
|
@@ -12391,14 +12851,14 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
12391
12851
|
getPageBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
12392
12852
|
/**
|
|
12393
12853
|
*
|
|
12394
|
-
* @param {
|
|
12854
|
+
* @param {UniquePageTypeEnum} type
|
|
12395
12855
|
* @param {string} [companyId]
|
|
12396
12856
|
* @param {string} [domain]
|
|
12397
12857
|
* @param {string} [template]
|
|
12398
12858
|
* @param {*} [options] Override http request option.
|
|
12399
12859
|
* @throws {RequiredError}
|
|
12400
12860
|
*/
|
|
12401
|
-
getPageByType(type:
|
|
12861
|
+
getPageByType(type: UniquePageTypeEnum, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
12402
12862
|
/**
|
|
12403
12863
|
*
|
|
12404
12864
|
* @param {number} [page]
|
|
@@ -12478,10 +12938,10 @@ export interface PageApiGetPageBySlugRequest {
|
|
|
12478
12938
|
export interface PageApiGetPageByTypeRequest {
|
|
12479
12939
|
/**
|
|
12480
12940
|
*
|
|
12481
|
-
* @type {
|
|
12941
|
+
* @type {UniquePageTypeEnum}
|
|
12482
12942
|
* @memberof PageApiGetPageByType
|
|
12483
12943
|
*/
|
|
12484
|
-
readonly type:
|
|
12944
|
+
readonly type: UniquePageTypeEnum;
|
|
12485
12945
|
/**
|
|
12486
12946
|
*
|
|
12487
12947
|
* @type {string}
|
|
@@ -12634,6 +13094,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
12634
13094
|
* @throws {RequiredError}
|
|
12635
13095
|
*/
|
|
12636
13096
|
getProductBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13097
|
+
/**
|
|
13098
|
+
*
|
|
13099
|
+
* @param {string} id
|
|
13100
|
+
* @param {number} [rating]
|
|
13101
|
+
* @param {*} [options] Override http request option.
|
|
13102
|
+
* @throws {RequiredError}
|
|
13103
|
+
*/
|
|
13104
|
+
getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12637
13105
|
/**
|
|
12638
13106
|
*
|
|
12639
13107
|
* @param {number} [page]
|
|
@@ -12652,14 +13120,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
12652
13120
|
* @param {number} [priceGte]
|
|
12653
13121
|
* @param {number} [priceLte]
|
|
12654
13122
|
* @param {boolean} [autoComplete]
|
|
12655
|
-
* @param {Array<string>} [mainVariant]
|
|
12656
|
-
* @param {Array<string>} [subVariant]
|
|
12657
13123
|
* @param {GetProductsSortEnum} [sort]
|
|
12658
13124
|
* @param {ContentStatusEnum} [status]
|
|
12659
13125
|
* @param {*} [options] Override http request option.
|
|
12660
13126
|
* @throws {RequiredError}
|
|
12661
13127
|
*/
|
|
12662
|
-
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean,
|
|
13128
|
+
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, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12663
13129
|
};
|
|
12664
13130
|
/**
|
|
12665
13131
|
* ProductApi - functional programming interface
|
|
@@ -12675,6 +13141,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
12675
13141
|
* @throws {RequiredError}
|
|
12676
13142
|
*/
|
|
12677
13143
|
getProductBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
|
|
13144
|
+
/**
|
|
13145
|
+
*
|
|
13146
|
+
* @param {string} id
|
|
13147
|
+
* @param {number} [rating]
|
|
13148
|
+
* @param {*} [options] Override http request option.
|
|
13149
|
+
* @throws {RequiredError}
|
|
13150
|
+
*/
|
|
13151
|
+
getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
12678
13152
|
/**
|
|
12679
13153
|
*
|
|
12680
13154
|
* @param {number} [page]
|
|
@@ -12693,14 +13167,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
12693
13167
|
* @param {number} [priceGte]
|
|
12694
13168
|
* @param {number} [priceLte]
|
|
12695
13169
|
* @param {boolean} [autoComplete]
|
|
12696
|
-
* @param {Array<string>} [mainVariant]
|
|
12697
|
-
* @param {Array<string>} [subVariant]
|
|
12698
13170
|
* @param {GetProductsSortEnum} [sort]
|
|
12699
13171
|
* @param {ContentStatusEnum} [status]
|
|
12700
13172
|
* @param {*} [options] Override http request option.
|
|
12701
13173
|
* @throws {RequiredError}
|
|
12702
13174
|
*/
|
|
12703
|
-
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean,
|
|
13175
|
+
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, sort?: GetProductsSortEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductsResponse>>;
|
|
12704
13176
|
};
|
|
12705
13177
|
/**
|
|
12706
13178
|
* ProductApi - factory interface
|
|
@@ -12714,6 +13186,13 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
12714
13186
|
* @throws {RequiredError}
|
|
12715
13187
|
*/
|
|
12716
13188
|
getProductBySlug(requestParameters: ProductApiGetProductBySlugRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductResponse>;
|
|
13189
|
+
/**
|
|
13190
|
+
*
|
|
13191
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
13192
|
+
* @param {*} [options] Override http request option.
|
|
13193
|
+
* @throws {RequiredError}
|
|
13194
|
+
*/
|
|
13195
|
+
getProductReviews(requestParameters: ProductApiGetProductReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductReviewsResponse>;
|
|
12717
13196
|
/**
|
|
12718
13197
|
*
|
|
12719
13198
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -12747,6 +13226,25 @@ export interface ProductApiGetProductBySlugRequest {
|
|
|
12747
13226
|
*/
|
|
12748
13227
|
readonly domain?: string;
|
|
12749
13228
|
}
|
|
13229
|
+
/**
|
|
13230
|
+
* Request parameters for getProductReviews operation in ProductApi.
|
|
13231
|
+
* @export
|
|
13232
|
+
* @interface ProductApiGetProductReviewsRequest
|
|
13233
|
+
*/
|
|
13234
|
+
export interface ProductApiGetProductReviewsRequest {
|
|
13235
|
+
/**
|
|
13236
|
+
*
|
|
13237
|
+
* @type {string}
|
|
13238
|
+
* @memberof ProductApiGetProductReviews
|
|
13239
|
+
*/
|
|
13240
|
+
readonly id: string;
|
|
13241
|
+
/**
|
|
13242
|
+
*
|
|
13243
|
+
* @type {number}
|
|
13244
|
+
* @memberof ProductApiGetProductReviews
|
|
13245
|
+
*/
|
|
13246
|
+
readonly rating?: number;
|
|
13247
|
+
}
|
|
12750
13248
|
/**
|
|
12751
13249
|
* Request parameters for getProducts operation in ProductApi.
|
|
12752
13250
|
* @export
|
|
@@ -12851,19 +13349,7 @@ export interface ProductApiGetProductsRequest {
|
|
|
12851
13349
|
readonly autoComplete?: boolean;
|
|
12852
13350
|
/**
|
|
12853
13351
|
*
|
|
12854
|
-
* @type {
|
|
12855
|
-
* @memberof ProductApiGetProducts
|
|
12856
|
-
*/
|
|
12857
|
-
readonly mainVariant?: Array<string>;
|
|
12858
|
-
/**
|
|
12859
|
-
*
|
|
12860
|
-
* @type {Array<string>}
|
|
12861
|
-
* @memberof ProductApiGetProducts
|
|
12862
|
-
*/
|
|
12863
|
-
readonly subVariant?: Array<string>;
|
|
12864
|
-
/**
|
|
12865
|
-
*
|
|
12866
|
-
* @type {'price' | 'createdAt' | 'totalSale'}
|
|
13352
|
+
* @type {'price' | 'createdAt' | 'totalSale' | 'rating' | 'reviewCount'}
|
|
12867
13353
|
* @memberof ProductApiGetProducts
|
|
12868
13354
|
*/
|
|
12869
13355
|
readonly sort?: GetProductsSortEnum;
|
|
@@ -12889,6 +13375,14 @@ export declare class ProductApi extends BaseAPI {
|
|
|
12889
13375
|
* @memberof ProductApi
|
|
12890
13376
|
*/
|
|
12891
13377
|
getProductBySlug(requestParameters: ProductApiGetProductBySlugRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductResponse, any>>;
|
|
13378
|
+
/**
|
|
13379
|
+
*
|
|
13380
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
13381
|
+
* @param {*} [options] Override http request option.
|
|
13382
|
+
* @throws {RequiredError}
|
|
13383
|
+
* @memberof ProductApi
|
|
13384
|
+
*/
|
|
13385
|
+
getProductReviews(requestParameters: ProductApiGetProductReviewsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductReviewsResponse, any>>;
|
|
12892
13386
|
/**
|
|
12893
13387
|
*
|
|
12894
13388
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -12913,6 +13407,8 @@ export declare const GetProductsSortEnum: {
|
|
|
12913
13407
|
readonly PRICE: "price";
|
|
12914
13408
|
readonly CREATED_AT: "createdAt";
|
|
12915
13409
|
readonly TOTAL_SALE: "totalSale";
|
|
13410
|
+
readonly RATING: "rating";
|
|
13411
|
+
readonly REVIEW_COUNT: "reviewCount";
|
|
12916
13412
|
};
|
|
12917
13413
|
export type GetProductsSortEnum = typeof GetProductsSortEnum[keyof typeof GetProductsSortEnum];
|
|
12918
13414
|
/**
|