@infisale-client/api-client 1.2.73 → 1.2.75
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 +508 -37
- package/dist/api/api.js +214 -21
- package/dist/api/api.mjs +212 -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
|
|
@@ -8875,6 +9183,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
8875
9183
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
8876
9184
|
*/
|
|
8877
9185
|
'shippingProviders': Array<ShippingProvider>;
|
|
9186
|
+
/**
|
|
9187
|
+
*
|
|
9188
|
+
* @type {boolean}
|
|
9189
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9190
|
+
*/
|
|
9191
|
+
'autoApproveReviews': boolean;
|
|
8878
9192
|
}
|
|
8879
9193
|
/**
|
|
8880
9194
|
*
|
|
@@ -9719,6 +10033,24 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttr
|
|
|
9719
10033
|
'attributes'?: {
|
|
9720
10034
|
[key: string]: string;
|
|
9721
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;
|
|
9722
10054
|
}
|
|
9723
10055
|
/**
|
|
9724
10056
|
* From T, pick a set of properties whose keys are in the union K
|
|
@@ -10532,6 +10864,17 @@ export interface RecordLanguageEnumTitleStringTr {
|
|
|
10532
10864
|
*/
|
|
10533
10865
|
'title': string;
|
|
10534
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];
|
|
10535
10878
|
/**
|
|
10536
10879
|
*
|
|
10537
10880
|
* @export
|
|
@@ -11960,6 +12303,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11960
12303
|
* @throws {RequiredError}
|
|
11961
12304
|
*/
|
|
11962
12305
|
createReturn: (id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12306
|
+
/**
|
|
12307
|
+
*
|
|
12308
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
12309
|
+
* @param {*} [options] Override http request option.
|
|
12310
|
+
* @throws {RequiredError}
|
|
12311
|
+
*/
|
|
12312
|
+
createReview: (iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11963
12313
|
/**
|
|
11964
12314
|
*
|
|
11965
12315
|
* @param {number} [page]
|
|
@@ -11999,6 +12349,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11999
12349
|
* @throws {RequiredError}
|
|
12000
12350
|
*/
|
|
12001
12351
|
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>;
|
|
12352
|
+
/**
|
|
12353
|
+
*
|
|
12354
|
+
* @param {string} id
|
|
12355
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
12356
|
+
* @param {*} [options] Override http request option.
|
|
12357
|
+
* @throws {RequiredError}
|
|
12358
|
+
*/
|
|
12359
|
+
updateReview: (id: string, iReviewPatchRequest: IReviewPatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12002
12360
|
};
|
|
12003
12361
|
/**
|
|
12004
12362
|
* OrderApi - functional programming interface
|
|
@@ -12020,6 +12378,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
12020
12378
|
* @throws {RequiredError}
|
|
12021
12379
|
*/
|
|
12022
12380
|
createReturn(id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
12381
|
+
/**
|
|
12382
|
+
*
|
|
12383
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
12384
|
+
* @param {*} [options] Override http request option.
|
|
12385
|
+
* @throws {RequiredError}
|
|
12386
|
+
*/
|
|
12387
|
+
createReview(iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
12023
12388
|
/**
|
|
12024
12389
|
*
|
|
12025
12390
|
* @param {number} [page]
|
|
@@ -12059,6 +12424,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
12059
12424
|
* @throws {RequiredError}
|
|
12060
12425
|
*/
|
|
12061
12426
|
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>>;
|
|
12427
|
+
/**
|
|
12428
|
+
*
|
|
12429
|
+
* @param {string} id
|
|
12430
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
12431
|
+
* @param {*} [options] Override http request option.
|
|
12432
|
+
* @throws {RequiredError}
|
|
12433
|
+
*/
|
|
12434
|
+
updateReview(id: string, iReviewPatchRequest: IReviewPatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IReview>>;
|
|
12062
12435
|
};
|
|
12063
12436
|
/**
|
|
12064
12437
|
* OrderApi - factory interface
|
|
@@ -12079,6 +12452,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
12079
12452
|
* @throws {RequiredError}
|
|
12080
12453
|
*/
|
|
12081
12454
|
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
12455
|
+
/**
|
|
12456
|
+
*
|
|
12457
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
12458
|
+
* @param {*} [options] Override http request option.
|
|
12459
|
+
* @throws {RequiredError}
|
|
12460
|
+
*/
|
|
12461
|
+
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
12082
12462
|
/**
|
|
12083
12463
|
*
|
|
12084
12464
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -12100,6 +12480,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
12100
12480
|
* @throws {RequiredError}
|
|
12101
12481
|
*/
|
|
12102
12482
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
12483
|
+
/**
|
|
12484
|
+
*
|
|
12485
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
12486
|
+
* @param {*} [options] Override http request option.
|
|
12487
|
+
* @throws {RequiredError}
|
|
12488
|
+
*/
|
|
12489
|
+
updateReview(requestParameters: OrderApiUpdateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<IReview>;
|
|
12103
12490
|
};
|
|
12104
12491
|
/**
|
|
12105
12492
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -12133,6 +12520,19 @@ export interface OrderApiCreateReturnRequest {
|
|
|
12133
12520
|
*/
|
|
12134
12521
|
readonly iOrderReturnPostRequest: IOrderReturnPostRequest;
|
|
12135
12522
|
}
|
|
12523
|
+
/**
|
|
12524
|
+
* Request parameters for createReview operation in OrderApi.
|
|
12525
|
+
* @export
|
|
12526
|
+
* @interface OrderApiCreateReviewRequest
|
|
12527
|
+
*/
|
|
12528
|
+
export interface OrderApiCreateReviewRequest {
|
|
12529
|
+
/**
|
|
12530
|
+
*
|
|
12531
|
+
* @type {IOrderReviewPostRequest}
|
|
12532
|
+
* @memberof OrderApiCreateReview
|
|
12533
|
+
*/
|
|
12534
|
+
readonly iOrderReviewPostRequest: IOrderReviewPostRequest;
|
|
12535
|
+
}
|
|
12136
12536
|
/**
|
|
12137
12537
|
* Request parameters for getMyOrders operation in OrderApi.
|
|
12138
12538
|
* @export
|
|
@@ -12280,6 +12680,25 @@ export interface OrderApiGetOrdersRequest {
|
|
|
12280
12680
|
*/
|
|
12281
12681
|
readonly status?: OrderStatusEnum;
|
|
12282
12682
|
}
|
|
12683
|
+
/**
|
|
12684
|
+
* Request parameters for updateReview operation in OrderApi.
|
|
12685
|
+
* @export
|
|
12686
|
+
* @interface OrderApiUpdateReviewRequest
|
|
12687
|
+
*/
|
|
12688
|
+
export interface OrderApiUpdateReviewRequest {
|
|
12689
|
+
/**
|
|
12690
|
+
*
|
|
12691
|
+
* @type {string}
|
|
12692
|
+
* @memberof OrderApiUpdateReview
|
|
12693
|
+
*/
|
|
12694
|
+
readonly id: string;
|
|
12695
|
+
/**
|
|
12696
|
+
*
|
|
12697
|
+
* @type {IReviewPatchRequest}
|
|
12698
|
+
* @memberof OrderApiUpdateReview
|
|
12699
|
+
*/
|
|
12700
|
+
readonly iReviewPatchRequest: IReviewPatchRequest;
|
|
12701
|
+
}
|
|
12283
12702
|
/**
|
|
12284
12703
|
* OrderApi - object-oriented interface
|
|
12285
12704
|
* @export
|
|
@@ -12303,6 +12722,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
12303
12722
|
* @memberof OrderApi
|
|
12304
12723
|
*/
|
|
12305
12724
|
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
12725
|
+
/**
|
|
12726
|
+
*
|
|
12727
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
12728
|
+
* @param {*} [options] Override http request option.
|
|
12729
|
+
* @throws {RequiredError}
|
|
12730
|
+
* @memberof OrderApi
|
|
12731
|
+
*/
|
|
12732
|
+
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
12306
12733
|
/**
|
|
12307
12734
|
*
|
|
12308
12735
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -12327,6 +12754,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
12327
12754
|
* @memberof OrderApi
|
|
12328
12755
|
*/
|
|
12329
12756
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
12757
|
+
/**
|
|
12758
|
+
*
|
|
12759
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
12760
|
+
* @param {*} [options] Override http request option.
|
|
12761
|
+
* @throws {RequiredError}
|
|
12762
|
+
* @memberof OrderApi
|
|
12763
|
+
*/
|
|
12764
|
+
updateReview(requestParameters: OrderApiUpdateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IReview, any>>;
|
|
12330
12765
|
}
|
|
12331
12766
|
/**
|
|
12332
12767
|
* @export
|
|
@@ -12360,14 +12795,14 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
12360
12795
|
getPageBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12361
12796
|
/**
|
|
12362
12797
|
*
|
|
12363
|
-
* @param {
|
|
12798
|
+
* @param {PageTypeEnum} type
|
|
12364
12799
|
* @param {string} [companyId]
|
|
12365
12800
|
* @param {string} [domain]
|
|
12366
12801
|
* @param {string} [template]
|
|
12367
12802
|
* @param {*} [options] Override http request option.
|
|
12368
12803
|
* @throws {RequiredError}
|
|
12369
12804
|
*/
|
|
12370
|
-
getPageByType: (type:
|
|
12805
|
+
getPageByType: (type: PageTypeEnum, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12371
12806
|
/**
|
|
12372
12807
|
*
|
|
12373
12808
|
* @param {number} [page]
|
|
@@ -12403,14 +12838,14 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
12403
12838
|
getPageBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
12404
12839
|
/**
|
|
12405
12840
|
*
|
|
12406
|
-
* @param {
|
|
12841
|
+
* @param {PageTypeEnum} type
|
|
12407
12842
|
* @param {string} [companyId]
|
|
12408
12843
|
* @param {string} [domain]
|
|
12409
12844
|
* @param {string} [template]
|
|
12410
12845
|
* @param {*} [options] Override http request option.
|
|
12411
12846
|
* @throws {RequiredError}
|
|
12412
12847
|
*/
|
|
12413
|
-
getPageByType(type:
|
|
12848
|
+
getPageByType(type: PageTypeEnum, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
12414
12849
|
/**
|
|
12415
12850
|
*
|
|
12416
12851
|
* @param {number} [page]
|
|
@@ -12490,10 +12925,10 @@ export interface PageApiGetPageBySlugRequest {
|
|
|
12490
12925
|
export interface PageApiGetPageByTypeRequest {
|
|
12491
12926
|
/**
|
|
12492
12927
|
*
|
|
12493
|
-
* @type {
|
|
12928
|
+
* @type {PageTypeEnum}
|
|
12494
12929
|
* @memberof PageApiGetPageByType
|
|
12495
12930
|
*/
|
|
12496
|
-
readonly type:
|
|
12931
|
+
readonly type: PageTypeEnum;
|
|
12497
12932
|
/**
|
|
12498
12933
|
*
|
|
12499
12934
|
* @type {string}
|
|
@@ -12646,6 +13081,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
12646
13081
|
* @throws {RequiredError}
|
|
12647
13082
|
*/
|
|
12648
13083
|
getProductBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13084
|
+
/**
|
|
13085
|
+
*
|
|
13086
|
+
* @param {string} id
|
|
13087
|
+
* @param {number} [rating]
|
|
13088
|
+
* @param {*} [options] Override http request option.
|
|
13089
|
+
* @throws {RequiredError}
|
|
13090
|
+
*/
|
|
13091
|
+
getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12649
13092
|
/**
|
|
12650
13093
|
*
|
|
12651
13094
|
* @param {number} [page]
|
|
@@ -12664,14 +13107,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
12664
13107
|
* @param {number} [priceGte]
|
|
12665
13108
|
* @param {number} [priceLte]
|
|
12666
13109
|
* @param {boolean} [autoComplete]
|
|
12667
|
-
* @param {Array<string>} [mainVariant]
|
|
12668
|
-
* @param {Array<string>} [subVariant]
|
|
12669
13110
|
* @param {GetProductsSortEnum} [sort]
|
|
12670
13111
|
* @param {ContentStatusEnum} [status]
|
|
12671
13112
|
* @param {*} [options] Override http request option.
|
|
12672
13113
|
* @throws {RequiredError}
|
|
12673
13114
|
*/
|
|
12674
|
-
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean,
|
|
13115
|
+
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>;
|
|
12675
13116
|
};
|
|
12676
13117
|
/**
|
|
12677
13118
|
* ProductApi - functional programming interface
|
|
@@ -12687,6 +13128,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
12687
13128
|
* @throws {RequiredError}
|
|
12688
13129
|
*/
|
|
12689
13130
|
getProductBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
|
|
13131
|
+
/**
|
|
13132
|
+
*
|
|
13133
|
+
* @param {string} id
|
|
13134
|
+
* @param {number} [rating]
|
|
13135
|
+
* @param {*} [options] Override http request option.
|
|
13136
|
+
* @throws {RequiredError}
|
|
13137
|
+
*/
|
|
13138
|
+
getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
12690
13139
|
/**
|
|
12691
13140
|
*
|
|
12692
13141
|
* @param {number} [page]
|
|
@@ -12705,14 +13154,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
12705
13154
|
* @param {number} [priceGte]
|
|
12706
13155
|
* @param {number} [priceLte]
|
|
12707
13156
|
* @param {boolean} [autoComplete]
|
|
12708
|
-
* @param {Array<string>} [mainVariant]
|
|
12709
|
-
* @param {Array<string>} [subVariant]
|
|
12710
13157
|
* @param {GetProductsSortEnum} [sort]
|
|
12711
13158
|
* @param {ContentStatusEnum} [status]
|
|
12712
13159
|
* @param {*} [options] Override http request option.
|
|
12713
13160
|
* @throws {RequiredError}
|
|
12714
13161
|
*/
|
|
12715
|
-
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetProductsDateFieldEnum, order?: OrderEnum, companyId?: string, domain?: string, collections?: Array<string>, category?: string, brand?: Array<string>, inStock?: boolean, priceGte?: number, priceLte?: number, autoComplete?: boolean,
|
|
13162
|
+
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>>;
|
|
12716
13163
|
};
|
|
12717
13164
|
/**
|
|
12718
13165
|
* ProductApi - factory interface
|
|
@@ -12726,6 +13173,13 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
12726
13173
|
* @throws {RequiredError}
|
|
12727
13174
|
*/
|
|
12728
13175
|
getProductBySlug(requestParameters: ProductApiGetProductBySlugRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductResponse>;
|
|
13176
|
+
/**
|
|
13177
|
+
*
|
|
13178
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
13179
|
+
* @param {*} [options] Override http request option.
|
|
13180
|
+
* @throws {RequiredError}
|
|
13181
|
+
*/
|
|
13182
|
+
getProductReviews(requestParameters: ProductApiGetProductReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IProductReviewsResponse>;
|
|
12729
13183
|
/**
|
|
12730
13184
|
*
|
|
12731
13185
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -12759,6 +13213,25 @@ export interface ProductApiGetProductBySlugRequest {
|
|
|
12759
13213
|
*/
|
|
12760
13214
|
readonly domain?: string;
|
|
12761
13215
|
}
|
|
13216
|
+
/**
|
|
13217
|
+
* Request parameters for getProductReviews operation in ProductApi.
|
|
13218
|
+
* @export
|
|
13219
|
+
* @interface ProductApiGetProductReviewsRequest
|
|
13220
|
+
*/
|
|
13221
|
+
export interface ProductApiGetProductReviewsRequest {
|
|
13222
|
+
/**
|
|
13223
|
+
*
|
|
13224
|
+
* @type {string}
|
|
13225
|
+
* @memberof ProductApiGetProductReviews
|
|
13226
|
+
*/
|
|
13227
|
+
readonly id: string;
|
|
13228
|
+
/**
|
|
13229
|
+
*
|
|
13230
|
+
* @type {number}
|
|
13231
|
+
* @memberof ProductApiGetProductReviews
|
|
13232
|
+
*/
|
|
13233
|
+
readonly rating?: number;
|
|
13234
|
+
}
|
|
12762
13235
|
/**
|
|
12763
13236
|
* Request parameters for getProducts operation in ProductApi.
|
|
12764
13237
|
* @export
|
|
@@ -12863,19 +13336,7 @@ export interface ProductApiGetProductsRequest {
|
|
|
12863
13336
|
readonly autoComplete?: boolean;
|
|
12864
13337
|
/**
|
|
12865
13338
|
*
|
|
12866
|
-
* @type {
|
|
12867
|
-
* @memberof ProductApiGetProducts
|
|
12868
|
-
*/
|
|
12869
|
-
readonly mainVariant?: Array<string>;
|
|
12870
|
-
/**
|
|
12871
|
-
*
|
|
12872
|
-
* @type {Array<string>}
|
|
12873
|
-
* @memberof ProductApiGetProducts
|
|
12874
|
-
*/
|
|
12875
|
-
readonly subVariant?: Array<string>;
|
|
12876
|
-
/**
|
|
12877
|
-
*
|
|
12878
|
-
* @type {'price' | 'createdAt' | 'totalSale'}
|
|
13339
|
+
* @type {'price' | 'createdAt' | 'totalSale' | 'rating' | 'reviewCount'}
|
|
12879
13340
|
* @memberof ProductApiGetProducts
|
|
12880
13341
|
*/
|
|
12881
13342
|
readonly sort?: GetProductsSortEnum;
|
|
@@ -12901,6 +13362,14 @@ export declare class ProductApi extends BaseAPI {
|
|
|
12901
13362
|
* @memberof ProductApi
|
|
12902
13363
|
*/
|
|
12903
13364
|
getProductBySlug(requestParameters: ProductApiGetProductBySlugRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductResponse, any>>;
|
|
13365
|
+
/**
|
|
13366
|
+
*
|
|
13367
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
13368
|
+
* @param {*} [options] Override http request option.
|
|
13369
|
+
* @throws {RequiredError}
|
|
13370
|
+
* @memberof ProductApi
|
|
13371
|
+
*/
|
|
13372
|
+
getProductReviews(requestParameters: ProductApiGetProductReviewsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IProductReviewsResponse, any>>;
|
|
12904
13373
|
/**
|
|
12905
13374
|
*
|
|
12906
13375
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -12925,6 +13394,8 @@ export declare const GetProductsSortEnum: {
|
|
|
12925
13394
|
readonly PRICE: "price";
|
|
12926
13395
|
readonly CREATED_AT: "createdAt";
|
|
12927
13396
|
readonly TOTAL_SALE: "totalSale";
|
|
13397
|
+
readonly RATING: "rating";
|
|
13398
|
+
readonly REVIEW_COUNT: "reviewCount";
|
|
12928
13399
|
};
|
|
12929
13400
|
export type GetProductsSortEnum = typeof GetProductsSortEnum[keyof typeof GetProductsSortEnum];
|
|
12930
13401
|
/**
|