@infisale-client/api 1.2.37 → 1.2.39
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 +65 -49
- package/dist/api/api.js +28 -14
- package/dist/api/api.mjs +28 -14
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5487,10 +5487,10 @@ export interface IOrderResponse {
|
|
|
5487
5487
|
'user'?: string;
|
|
5488
5488
|
/**
|
|
5489
5489
|
*
|
|
5490
|
-
* @type {Array<
|
|
5490
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>}
|
|
5491
5491
|
* @memberof IOrderResponse
|
|
5492
5492
|
*/
|
|
5493
|
-
'products': Array<
|
|
5493
|
+
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>;
|
|
5494
5494
|
/**
|
|
5495
5495
|
*
|
|
5496
5496
|
* @type {IAddress}
|
|
@@ -8939,212 +8939,212 @@ export interface PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCom
|
|
|
8939
8939
|
/**
|
|
8940
8940
|
* From T, pick a set of properties whose keys are in the union K
|
|
8941
8941
|
* @export
|
|
8942
|
-
* @interface
|
|
8942
|
+
* @interface PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8943
8943
|
*/
|
|
8944
|
-
export interface
|
|
8944
|
+
export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
|
|
8945
8945
|
/**
|
|
8946
8946
|
*
|
|
8947
8947
|
* @type {number}
|
|
8948
|
-
* @memberof
|
|
8948
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8949
8949
|
*/
|
|
8950
8950
|
'number': number;
|
|
8951
8951
|
/**
|
|
8952
8952
|
*
|
|
8953
8953
|
* @type {string}
|
|
8954
|
-
* @memberof
|
|
8954
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8955
8955
|
*/
|
|
8956
8956
|
'email'?: string;
|
|
8957
8957
|
/**
|
|
8958
8958
|
*
|
|
8959
8959
|
* @type {string}
|
|
8960
|
-
* @memberof
|
|
8960
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8961
8961
|
*/
|
|
8962
8962
|
'company': string;
|
|
8963
8963
|
/**
|
|
8964
8964
|
*
|
|
8965
8965
|
* @type {OrderStatusEnum}
|
|
8966
|
-
* @memberof
|
|
8966
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8967
8967
|
*/
|
|
8968
8968
|
'status': OrderStatusEnum;
|
|
8969
8969
|
/**
|
|
8970
8970
|
*
|
|
8971
8971
|
* @type {string}
|
|
8972
|
-
* @memberof
|
|
8972
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8973
8973
|
*/
|
|
8974
8974
|
'_id': string;
|
|
8975
8975
|
/**
|
|
8976
8976
|
*
|
|
8977
8977
|
* @type {number}
|
|
8978
|
-
* @memberof
|
|
8978
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8979
8979
|
*/
|
|
8980
8980
|
'__v': number;
|
|
8981
8981
|
/**
|
|
8982
8982
|
*
|
|
8983
8983
|
* @type {string}
|
|
8984
|
-
* @memberof
|
|
8984
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8985
8985
|
*/
|
|
8986
8986
|
'createdAt': string;
|
|
8987
8987
|
/**
|
|
8988
8988
|
*
|
|
8989
8989
|
* @type {string}
|
|
8990
|
-
* @memberof
|
|
8990
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8991
8991
|
*/
|
|
8992
8992
|
'updatedAt': string;
|
|
8993
8993
|
/**
|
|
8994
8994
|
*
|
|
8995
8995
|
* @type {CurrencyEnum}
|
|
8996
|
-
* @memberof
|
|
8996
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8997
8997
|
*/
|
|
8998
8998
|
'currency': CurrencyEnum;
|
|
8999
8999
|
/**
|
|
9000
9000
|
*
|
|
9001
9001
|
* @type {string}
|
|
9002
|
-
* @memberof
|
|
9002
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9003
9003
|
*/
|
|
9004
9004
|
'user'?: string;
|
|
9005
9005
|
/**
|
|
9006
9006
|
*
|
|
9007
|
-
* @type {Array<
|
|
9008
|
-
* @memberof
|
|
9007
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>}
|
|
9008
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9009
9009
|
*/
|
|
9010
|
-
'products': Array<
|
|
9010
|
+
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>;
|
|
9011
9011
|
/**
|
|
9012
9012
|
*
|
|
9013
9013
|
* @type {IAddress}
|
|
9014
|
-
* @memberof
|
|
9014
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9015
9015
|
*/
|
|
9016
9016
|
'shippingAddress': IAddress;
|
|
9017
9017
|
/**
|
|
9018
9018
|
*
|
|
9019
9019
|
* @type {IAddress}
|
|
9020
|
-
* @memberof
|
|
9020
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9021
9021
|
*/
|
|
9022
9022
|
'billingAddress'?: IAddress;
|
|
9023
9023
|
/**
|
|
9024
9024
|
*
|
|
9025
9025
|
* @type {PaymentMethodEnum}
|
|
9026
|
-
* @memberof
|
|
9026
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9027
9027
|
*/
|
|
9028
9028
|
'paymentMethod': PaymentMethodEnum;
|
|
9029
9029
|
/**
|
|
9030
9030
|
*
|
|
9031
9031
|
* @type {PaymentGatewayEnum}
|
|
9032
|
-
* @memberof
|
|
9032
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9033
9033
|
*/
|
|
9034
9034
|
'paymentGateway': PaymentGatewayEnum;
|
|
9035
9035
|
/**
|
|
9036
9036
|
*
|
|
9037
9037
|
* @type {string}
|
|
9038
|
-
* @memberof
|
|
9038
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9039
9039
|
*/
|
|
9040
9040
|
'paymentId': string;
|
|
9041
9041
|
/**
|
|
9042
9042
|
*
|
|
9043
9043
|
* @type {number}
|
|
9044
|
-
* @memberof
|
|
9044
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9045
9045
|
*/
|
|
9046
9046
|
'subtotal': number;
|
|
9047
9047
|
/**
|
|
9048
9048
|
*
|
|
9049
9049
|
* @type {number}
|
|
9050
|
-
* @memberof
|
|
9050
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9051
9051
|
*/
|
|
9052
9052
|
'discount': number;
|
|
9053
9053
|
/**
|
|
9054
9054
|
*
|
|
9055
9055
|
* @type {number}
|
|
9056
|
-
* @memberof
|
|
9056
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9057
9057
|
*/
|
|
9058
9058
|
'tax': number;
|
|
9059
9059
|
/**
|
|
9060
9060
|
*
|
|
9061
9061
|
* @type {number}
|
|
9062
|
-
* @memberof
|
|
9062
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9063
9063
|
*/
|
|
9064
9064
|
'shipping': number;
|
|
9065
9065
|
/**
|
|
9066
9066
|
*
|
|
9067
9067
|
* @type {boolean}
|
|
9068
|
-
* @memberof
|
|
9068
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9069
9069
|
*/
|
|
9070
9070
|
'freeShipping': boolean;
|
|
9071
9071
|
/**
|
|
9072
9072
|
*
|
|
9073
9073
|
* @type {number}
|
|
9074
|
-
* @memberof
|
|
9074
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9075
9075
|
*/
|
|
9076
9076
|
'total': number;
|
|
9077
9077
|
/**
|
|
9078
9078
|
*
|
|
9079
9079
|
* @type {string}
|
|
9080
|
-
* @memberof
|
|
9080
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9081
9081
|
*/
|
|
9082
9082
|
'note'?: string;
|
|
9083
9083
|
}
|
|
9084
9084
|
/**
|
|
9085
9085
|
*
|
|
9086
9086
|
* @export
|
|
9087
|
-
* @interface
|
|
9087
|
+
* @interface PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9088
9088
|
*/
|
|
9089
|
-
export interface
|
|
9089
|
+
export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner {
|
|
9090
9090
|
/**
|
|
9091
9091
|
*
|
|
9092
9092
|
* @type {number}
|
|
9093
|
-
* @memberof
|
|
9093
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9094
9094
|
*/
|
|
9095
9095
|
'price': number;
|
|
9096
9096
|
/**
|
|
9097
9097
|
*
|
|
9098
9098
|
* @type {number}
|
|
9099
|
-
* @memberof
|
|
9099
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9100
9100
|
*/
|
|
9101
9101
|
'amount': number;
|
|
9102
9102
|
/**
|
|
9103
9103
|
*
|
|
9104
9104
|
* @type {string}
|
|
9105
|
-
* @memberof
|
|
9105
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9106
9106
|
*/
|
|
9107
9107
|
'subVariantId'?: string;
|
|
9108
9108
|
/**
|
|
9109
9109
|
*
|
|
9110
9110
|
* @type {string}
|
|
9111
|
-
* @memberof
|
|
9111
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9112
9112
|
*/
|
|
9113
9113
|
'mainVariantId'?: string;
|
|
9114
9114
|
/**
|
|
9115
9115
|
*
|
|
9116
9116
|
* @type {PartialRecordLanguageEnumString}
|
|
9117
|
-
* @memberof
|
|
9117
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9118
9118
|
*/
|
|
9119
9119
|
'subVariantTitle': PartialRecordLanguageEnumString;
|
|
9120
9120
|
/**
|
|
9121
9121
|
*
|
|
9122
9122
|
* @type {PartialRecordLanguageEnumString}
|
|
9123
|
-
* @memberof
|
|
9123
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9124
9124
|
*/
|
|
9125
9125
|
'mainVariantTitle': PartialRecordLanguageEnumString;
|
|
9126
9126
|
/**
|
|
9127
9127
|
*
|
|
9128
9128
|
* @type {PartialRecordLanguageEnumString}
|
|
9129
|
-
* @memberof
|
|
9129
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9130
9130
|
*/
|
|
9131
9131
|
'productSlug': PartialRecordLanguageEnumString;
|
|
9132
9132
|
/**
|
|
9133
9133
|
*
|
|
9134
9134
|
* @type {string}
|
|
9135
|
-
* @memberof
|
|
9135
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9136
9136
|
*/
|
|
9137
9137
|
'productThumbnail'?: string;
|
|
9138
9138
|
/**
|
|
9139
9139
|
*
|
|
9140
9140
|
* @type {PartialRecordLanguageEnumString}
|
|
9141
|
-
* @memberof
|
|
9141
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9142
9142
|
*/
|
|
9143
9143
|
'productTitle': PartialRecordLanguageEnumString;
|
|
9144
9144
|
/**
|
|
9145
9145
|
*
|
|
9146
9146
|
* @type {string}
|
|
9147
|
-
* @memberof
|
|
9147
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
9148
9148
|
*/
|
|
9149
9149
|
'productId': string;
|
|
9150
9150
|
}
|
|
@@ -10539,18 +10539,20 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
10539
10539
|
deleteProductFromBasket: (itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10540
10540
|
/**
|
|
10541
10541
|
*
|
|
10542
|
+
* @param {string} domain
|
|
10542
10543
|
* @param {string} [id]
|
|
10543
10544
|
* @param {*} [options] Override http request option.
|
|
10544
10545
|
* @throws {RequiredError}
|
|
10545
10546
|
*/
|
|
10546
|
-
getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10547
|
+
getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10547
10548
|
/**
|
|
10548
10549
|
*
|
|
10550
|
+
* @param {string} domain
|
|
10549
10551
|
* @param {string} [id]
|
|
10550
10552
|
* @param {*} [options] Override http request option.
|
|
10551
10553
|
* @throws {RequiredError}
|
|
10552
10554
|
*/
|
|
10553
|
-
getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10555
|
+
getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10554
10556
|
/**
|
|
10555
10557
|
*
|
|
10556
10558
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -10589,18 +10591,20 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
10589
10591
|
deleteProductFromBasket(itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
10590
10592
|
/**
|
|
10591
10593
|
*
|
|
10594
|
+
* @param {string} domain
|
|
10592
10595
|
* @param {string} [id]
|
|
10593
10596
|
* @param {*} [options] Override http request option.
|
|
10594
10597
|
* @throws {RequiredError}
|
|
10595
10598
|
*/
|
|
10596
|
-
getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
10599
|
+
getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
10597
10600
|
/**
|
|
10598
10601
|
*
|
|
10602
|
+
* @param {string} domain
|
|
10599
10603
|
* @param {string} [id]
|
|
10600
10604
|
* @param {*} [options] Override http request option.
|
|
10601
10605
|
* @throws {RequiredError}
|
|
10602
10606
|
*/
|
|
10603
|
-
getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
|
|
10607
|
+
getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
|
|
10604
10608
|
/**
|
|
10605
10609
|
*
|
|
10606
10610
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -10642,14 +10646,14 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
|
|
|
10642
10646
|
* @param {*} [options] Override http request option.
|
|
10643
10647
|
* @throws {RequiredError}
|
|
10644
10648
|
*/
|
|
10645
|
-
getBasket(requestParameters
|
|
10649
|
+
getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
|
|
10646
10650
|
/**
|
|
10647
10651
|
*
|
|
10648
10652
|
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
10649
10653
|
* @param {*} [options] Override http request option.
|
|
10650
10654
|
* @throws {RequiredError}
|
|
10651
10655
|
*/
|
|
10652
|
-
getBasketCount(requestParameters
|
|
10656
|
+
getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
|
|
10653
10657
|
/**
|
|
10654
10658
|
*
|
|
10655
10659
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -10703,6 +10707,12 @@ export interface BasketApiDeleteProductFromBasketRequest {
|
|
|
10703
10707
|
* @interface BasketApiGetBasketRequest
|
|
10704
10708
|
*/
|
|
10705
10709
|
export interface BasketApiGetBasketRequest {
|
|
10710
|
+
/**
|
|
10711
|
+
*
|
|
10712
|
+
* @type {string}
|
|
10713
|
+
* @memberof BasketApiGetBasket
|
|
10714
|
+
*/
|
|
10715
|
+
readonly domain: string;
|
|
10706
10716
|
/**
|
|
10707
10717
|
*
|
|
10708
10718
|
* @type {string}
|
|
@@ -10716,6 +10726,12 @@ export interface BasketApiGetBasketRequest {
|
|
|
10716
10726
|
* @interface BasketApiGetBasketCountRequest
|
|
10717
10727
|
*/
|
|
10718
10728
|
export interface BasketApiGetBasketCountRequest {
|
|
10729
|
+
/**
|
|
10730
|
+
*
|
|
10731
|
+
* @type {string}
|
|
10732
|
+
* @memberof BasketApiGetBasketCount
|
|
10733
|
+
*/
|
|
10734
|
+
readonly domain: string;
|
|
10719
10735
|
/**
|
|
10720
10736
|
*
|
|
10721
10737
|
* @type {string}
|
|
@@ -10785,7 +10801,7 @@ export declare class BasketApi extends BaseAPI {
|
|
|
10785
10801
|
* @throws {RequiredError}
|
|
10786
10802
|
* @memberof BasketApi
|
|
10787
10803
|
*/
|
|
10788
|
-
getBasket(requestParameters
|
|
10804
|
+
getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
|
|
10789
10805
|
/**
|
|
10790
10806
|
*
|
|
10791
10807
|
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
@@ -10793,7 +10809,7 @@ export declare class BasketApi extends BaseAPI {
|
|
|
10793
10809
|
* @throws {RequiredError}
|
|
10794
10810
|
* @memberof BasketApi
|
|
10795
10811
|
*/
|
|
10796
|
-
getBasketCount(requestParameters
|
|
10812
|
+
getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
|
|
10797
10813
|
/**
|
|
10798
10814
|
*
|
|
10799
10815
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -1606,11 +1606,14 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1606
1606
|
},
|
|
1607
1607
|
/**
|
|
1608
1608
|
*
|
|
1609
|
+
* @param {string} domain
|
|
1609
1610
|
* @param {string} [id]
|
|
1610
1611
|
* @param {*} [options] Override http request option.
|
|
1611
1612
|
* @throws {RequiredError}
|
|
1612
1613
|
*/
|
|
1613
|
-
getBasket: async (id, options = {}) => {
|
|
1614
|
+
getBasket: async (domain, id, options = {}) => {
|
|
1615
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1616
|
+
(0, common_1.assertParamExists)('getBasket', 'domain', domain);
|
|
1614
1617
|
const localVarPath = `/api/baskets/single`;
|
|
1615
1618
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1616
1619
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1621,6 +1624,9 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1621
1624
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1622
1625
|
const localVarHeaderParameter = {};
|
|
1623
1626
|
const localVarQueryParameter = {};
|
|
1627
|
+
if (domain !== undefined) {
|
|
1628
|
+
localVarQueryParameter['domain'] = domain;
|
|
1629
|
+
}
|
|
1624
1630
|
if (id !== undefined) {
|
|
1625
1631
|
localVarQueryParameter['id'] = id;
|
|
1626
1632
|
}
|
|
@@ -1634,11 +1640,14 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1634
1640
|
},
|
|
1635
1641
|
/**
|
|
1636
1642
|
*
|
|
1643
|
+
* @param {string} domain
|
|
1637
1644
|
* @param {string} [id]
|
|
1638
1645
|
* @param {*} [options] Override http request option.
|
|
1639
1646
|
* @throws {RequiredError}
|
|
1640
1647
|
*/
|
|
1641
|
-
getBasketCount: async (id, options = {}) => {
|
|
1648
|
+
getBasketCount: async (domain, id, options = {}) => {
|
|
1649
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1650
|
+
(0, common_1.assertParamExists)('getBasketCount', 'domain', domain);
|
|
1642
1651
|
const localVarPath = `/api/baskets/count`;
|
|
1643
1652
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1644
1653
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1649,6 +1658,9 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1649
1658
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1650
1659
|
const localVarHeaderParameter = {};
|
|
1651
1660
|
const localVarQueryParameter = {};
|
|
1661
|
+
if (domain !== undefined) {
|
|
1662
|
+
localVarQueryParameter['domain'] = domain;
|
|
1663
|
+
}
|
|
1652
1664
|
if (id !== undefined) {
|
|
1653
1665
|
localVarQueryParameter['id'] = id;
|
|
1654
1666
|
}
|
|
@@ -1759,24 +1771,26 @@ const BasketApiFp = function (configuration) {
|
|
|
1759
1771
|
},
|
|
1760
1772
|
/**
|
|
1761
1773
|
*
|
|
1774
|
+
* @param {string} domain
|
|
1762
1775
|
* @param {string} [id]
|
|
1763
1776
|
* @param {*} [options] Override http request option.
|
|
1764
1777
|
* @throws {RequiredError}
|
|
1765
1778
|
*/
|
|
1766
|
-
async getBasket(id, options) {
|
|
1767
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1779
|
+
async getBasket(domain, id, options) {
|
|
1780
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(domain, id, options);
|
|
1768
1781
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1769
1782
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1770
1783
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1771
1784
|
},
|
|
1772
1785
|
/**
|
|
1773
1786
|
*
|
|
1787
|
+
* @param {string} domain
|
|
1774
1788
|
* @param {string} [id]
|
|
1775
1789
|
* @param {*} [options] Override http request option.
|
|
1776
1790
|
* @throws {RequiredError}
|
|
1777
1791
|
*/
|
|
1778
|
-
async getBasketCount(id, options) {
|
|
1779
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1792
|
+
async getBasketCount(domain, id, options) {
|
|
1793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
|
|
1780
1794
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1781
1795
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1782
1796
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1840,8 +1854,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1840
1854
|
* @param {*} [options] Override http request option.
|
|
1841
1855
|
* @throws {RequiredError}
|
|
1842
1856
|
*/
|
|
1843
|
-
getBasket(requestParameters
|
|
1844
|
-
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1857
|
+
getBasket(requestParameters, options) {
|
|
1858
|
+
return localVarFp.getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1845
1859
|
},
|
|
1846
1860
|
/**
|
|
1847
1861
|
*
|
|
@@ -1849,8 +1863,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1849
1863
|
* @param {*} [options] Override http request option.
|
|
1850
1864
|
* @throws {RequiredError}
|
|
1851
1865
|
*/
|
|
1852
|
-
getBasketCount(requestParameters
|
|
1853
|
-
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1866
|
+
getBasketCount(requestParameters, options) {
|
|
1867
|
+
return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1854
1868
|
},
|
|
1855
1869
|
/**
|
|
1856
1870
|
*
|
|
@@ -1907,8 +1921,8 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1907
1921
|
* @throws {RequiredError}
|
|
1908
1922
|
* @memberof BasketApi
|
|
1909
1923
|
*/
|
|
1910
|
-
getBasket(requestParameters
|
|
1911
|
-
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1924
|
+
getBasket(requestParameters, options) {
|
|
1925
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1912
1926
|
}
|
|
1913
1927
|
/**
|
|
1914
1928
|
*
|
|
@@ -1917,8 +1931,8 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1917
1931
|
* @throws {RequiredError}
|
|
1918
1932
|
* @memberof BasketApi
|
|
1919
1933
|
*/
|
|
1920
|
-
getBasketCount(requestParameters
|
|
1921
|
-
return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1934
|
+
getBasketCount(requestParameters, options) {
|
|
1935
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1922
1936
|
}
|
|
1923
1937
|
/**
|
|
1924
1938
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -1587,11 +1587,14 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1587
1587
|
},
|
|
1588
1588
|
/**
|
|
1589
1589
|
*
|
|
1590
|
+
* @param {string} domain
|
|
1590
1591
|
* @param {string} [id]
|
|
1591
1592
|
* @param {*} [options] Override http request option.
|
|
1592
1593
|
* @throws {RequiredError}
|
|
1593
1594
|
*/
|
|
1594
|
-
getBasket: async (id, options = {}) => {
|
|
1595
|
+
getBasket: async (domain, id, options = {}) => {
|
|
1596
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1597
|
+
assertParamExists('getBasket', 'domain', domain);
|
|
1595
1598
|
const localVarPath = `/api/baskets/single`;
|
|
1596
1599
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1597
1600
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1602,6 +1605,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1602
1605
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1603
1606
|
const localVarHeaderParameter = {};
|
|
1604
1607
|
const localVarQueryParameter = {};
|
|
1608
|
+
if (domain !== undefined) {
|
|
1609
|
+
localVarQueryParameter['domain'] = domain;
|
|
1610
|
+
}
|
|
1605
1611
|
if (id !== undefined) {
|
|
1606
1612
|
localVarQueryParameter['id'] = id;
|
|
1607
1613
|
}
|
|
@@ -1615,11 +1621,14 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1615
1621
|
},
|
|
1616
1622
|
/**
|
|
1617
1623
|
*
|
|
1624
|
+
* @param {string} domain
|
|
1618
1625
|
* @param {string} [id]
|
|
1619
1626
|
* @param {*} [options] Override http request option.
|
|
1620
1627
|
* @throws {RequiredError}
|
|
1621
1628
|
*/
|
|
1622
|
-
getBasketCount: async (id, options = {}) => {
|
|
1629
|
+
getBasketCount: async (domain, id, options = {}) => {
|
|
1630
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1631
|
+
assertParamExists('getBasketCount', 'domain', domain);
|
|
1623
1632
|
const localVarPath = `/api/baskets/count`;
|
|
1624
1633
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1625
1634
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1630,6 +1639,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1630
1639
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1631
1640
|
const localVarHeaderParameter = {};
|
|
1632
1641
|
const localVarQueryParameter = {};
|
|
1642
|
+
if (domain !== undefined) {
|
|
1643
|
+
localVarQueryParameter['domain'] = domain;
|
|
1644
|
+
}
|
|
1633
1645
|
if (id !== undefined) {
|
|
1634
1646
|
localVarQueryParameter['id'] = id;
|
|
1635
1647
|
}
|
|
@@ -1739,24 +1751,26 @@ export const BasketApiFp = function (configuration) {
|
|
|
1739
1751
|
},
|
|
1740
1752
|
/**
|
|
1741
1753
|
*
|
|
1754
|
+
* @param {string} domain
|
|
1742
1755
|
* @param {string} [id]
|
|
1743
1756
|
* @param {*} [options] Override http request option.
|
|
1744
1757
|
* @throws {RequiredError}
|
|
1745
1758
|
*/
|
|
1746
|
-
async getBasket(id, options) {
|
|
1747
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1759
|
+
async getBasket(domain, id, options) {
|
|
1760
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(domain, id, options);
|
|
1748
1761
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1749
1762
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1750
1763
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1751
1764
|
},
|
|
1752
1765
|
/**
|
|
1753
1766
|
*
|
|
1767
|
+
* @param {string} domain
|
|
1754
1768
|
* @param {string} [id]
|
|
1755
1769
|
* @param {*} [options] Override http request option.
|
|
1756
1770
|
* @throws {RequiredError}
|
|
1757
1771
|
*/
|
|
1758
|
-
async getBasketCount(id, options) {
|
|
1759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1772
|
+
async getBasketCount(domain, id, options) {
|
|
1773
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
|
|
1760
1774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1761
1775
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1762
1776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1819,8 +1833,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1819
1833
|
* @param {*} [options] Override http request option.
|
|
1820
1834
|
* @throws {RequiredError}
|
|
1821
1835
|
*/
|
|
1822
|
-
getBasket(requestParameters
|
|
1823
|
-
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1836
|
+
getBasket(requestParameters, options) {
|
|
1837
|
+
return localVarFp.getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1824
1838
|
},
|
|
1825
1839
|
/**
|
|
1826
1840
|
*
|
|
@@ -1828,8 +1842,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1828
1842
|
* @param {*} [options] Override http request option.
|
|
1829
1843
|
* @throws {RequiredError}
|
|
1830
1844
|
*/
|
|
1831
|
-
getBasketCount(requestParameters
|
|
1832
|
-
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1845
|
+
getBasketCount(requestParameters, options) {
|
|
1846
|
+
return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1833
1847
|
},
|
|
1834
1848
|
/**
|
|
1835
1849
|
*
|
|
@@ -1885,8 +1899,8 @@ export class BasketApi extends BaseAPI {
|
|
|
1885
1899
|
* @throws {RequiredError}
|
|
1886
1900
|
* @memberof BasketApi
|
|
1887
1901
|
*/
|
|
1888
|
-
getBasket(requestParameters
|
|
1889
|
-
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1902
|
+
getBasket(requestParameters, options) {
|
|
1903
|
+
return BasketApiFp(this.configuration).getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1890
1904
|
}
|
|
1891
1905
|
/**
|
|
1892
1906
|
*
|
|
@@ -1895,8 +1909,8 @@ export class BasketApi extends BaseAPI {
|
|
|
1895
1909
|
* @throws {RequiredError}
|
|
1896
1910
|
* @memberof BasketApi
|
|
1897
1911
|
*/
|
|
1898
|
-
getBasketCount(requestParameters
|
|
1899
|
-
return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1912
|
+
getBasketCount(requestParameters, options) {
|
|
1913
|
+
return BasketApiFp(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1900
1914
|
}
|
|
1901
1915
|
/**
|
|
1902
1916
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.39",
|
|
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": "a2243522d8a3450966554343800b7dda538a6062"
|
|
41
41
|
}
|