@infisale-client/api 1.1.6 → 1.1.7
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 +441 -12
- package/dist/api/api.js +358 -2
- package/dist/api/api.mjs +352 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -526,6 +526,49 @@ export declare const GridTypeEnum: {
|
|
|
526
526
|
readonly _1_1_2: "1-1-2";
|
|
527
527
|
};
|
|
528
528
|
export type GridTypeEnum = typeof GridTypeEnum[keyof typeof GridTypeEnum];
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @export
|
|
532
|
+
* @interface IAddProductToBasketRequest
|
|
533
|
+
*/
|
|
534
|
+
export interface IAddProductToBasketRequest {
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof IAddProductToBasketRequest
|
|
539
|
+
*/
|
|
540
|
+
'domain': string;
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @type {string}
|
|
544
|
+
* @memberof IAddProductToBasketRequest
|
|
545
|
+
*/
|
|
546
|
+
'basket'?: string;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof IAddProductToBasketRequest
|
|
551
|
+
*/
|
|
552
|
+
'product': string;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {number}
|
|
556
|
+
* @memberof IAddProductToBasketRequest
|
|
557
|
+
*/
|
|
558
|
+
'amount': number;
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof IAddProductToBasketRequest
|
|
563
|
+
*/
|
|
564
|
+
'main_variant'?: string;
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @type {string}
|
|
568
|
+
* @memberof IAddProductToBasketRequest
|
|
569
|
+
*/
|
|
570
|
+
'sub_variant'?: string;
|
|
571
|
+
}
|
|
529
572
|
/**
|
|
530
573
|
*
|
|
531
574
|
* @export
|
|
@@ -565,6 +608,118 @@ export interface IAllProductsResponse {
|
|
|
565
608
|
*/
|
|
566
609
|
'data': Array<PickIProductIdOrContentsOrCollectionsOrCategory>;
|
|
567
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @export
|
|
614
|
+
* @interface IBasketMergeRequest
|
|
615
|
+
*/
|
|
616
|
+
export interface IBasketMergeRequest {
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof IBasketMergeRequest
|
|
621
|
+
*/
|
|
622
|
+
'id': string;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @export
|
|
627
|
+
* @interface IBasketResponse
|
|
628
|
+
*/
|
|
629
|
+
export interface IBasketResponse {
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @type {string}
|
|
633
|
+
* @memberof IBasketResponse
|
|
634
|
+
*/
|
|
635
|
+
'company': string;
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @type {string}
|
|
639
|
+
* @memberof IBasketResponse
|
|
640
|
+
*/
|
|
641
|
+
'_id': string;
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @type {number}
|
|
645
|
+
* @memberof IBasketResponse
|
|
646
|
+
*/
|
|
647
|
+
'__v': number;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof IBasketResponse
|
|
652
|
+
*/
|
|
653
|
+
'createdAt': string;
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof IBasketResponse
|
|
658
|
+
*/
|
|
659
|
+
'updatedAt': string;
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @type {string}
|
|
663
|
+
* @memberof IBasketResponse
|
|
664
|
+
*/
|
|
665
|
+
'user': string;
|
|
666
|
+
/**
|
|
667
|
+
*
|
|
668
|
+
* @type {Array<IBasketResponseItemsInner>}
|
|
669
|
+
* @memberof IBasketResponse
|
|
670
|
+
*/
|
|
671
|
+
'items': Array<IBasketResponseItemsInner>;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @export
|
|
676
|
+
* @interface IBasketResponseItemsInner
|
|
677
|
+
*/
|
|
678
|
+
export interface IBasketResponseItemsInner {
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof IBasketResponseItemsInner
|
|
683
|
+
*/
|
|
684
|
+
'sub_variant'?: string;
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof IBasketResponseItemsInner
|
|
689
|
+
*/
|
|
690
|
+
'main_variant'?: string;
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @type {number}
|
|
694
|
+
* @memberof IBasketResponseItemsInner
|
|
695
|
+
*/
|
|
696
|
+
'amount': number;
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @type {IProductsResponse}
|
|
700
|
+
* @memberof IBasketResponseItemsInner
|
|
701
|
+
*/
|
|
702
|
+
'product': IProductsResponse;
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof IBasketResponseItemsInner
|
|
707
|
+
*/
|
|
708
|
+
'_id': string;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @export
|
|
713
|
+
* @interface IBasketUpdateAmountRequest
|
|
714
|
+
*/
|
|
715
|
+
export interface IBasketUpdateAmountRequest {
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {number}
|
|
719
|
+
* @memberof IBasketUpdateAmountRequest
|
|
720
|
+
*/
|
|
721
|
+
'amount': number;
|
|
722
|
+
}
|
|
568
723
|
/**
|
|
569
724
|
*
|
|
570
725
|
* @export
|
|
@@ -1668,6 +1823,12 @@ export interface ICompany {
|
|
|
1668
1823
|
* @memberof ICompany
|
|
1669
1824
|
*/
|
|
1670
1825
|
'sender_email'?: string;
|
|
1826
|
+
/**
|
|
1827
|
+
*
|
|
1828
|
+
* @type {string}
|
|
1829
|
+
* @memberof ICompany
|
|
1830
|
+
*/
|
|
1831
|
+
'sender_name'?: string;
|
|
1671
1832
|
/**
|
|
1672
1833
|
*
|
|
1673
1834
|
* @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
|
|
@@ -2125,12 +2286,6 @@ export interface ICompanyPatchRequest {
|
|
|
2125
2286
|
* @memberof ICompanyPatchRequest
|
|
2126
2287
|
*/
|
|
2127
2288
|
'warehouses'?: Array<ICompanyPostRequestWarehousesInner>;
|
|
2128
|
-
/**
|
|
2129
|
-
*
|
|
2130
|
-
* @type {string}
|
|
2131
|
-
* @memberof ICompanyPatchRequest
|
|
2132
|
-
*/
|
|
2133
|
-
'sender_email'?: string;
|
|
2134
2289
|
/**
|
|
2135
2290
|
*
|
|
2136
2291
|
* @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
|
|
@@ -2256,12 +2411,6 @@ export interface ICompanyPostRequest {
|
|
|
2256
2411
|
* @memberof ICompanyPostRequest
|
|
2257
2412
|
*/
|
|
2258
2413
|
'currencies': RecordCurrencyEnumCurrency;
|
|
2259
|
-
/**
|
|
2260
|
-
*
|
|
2261
|
-
* @type {string}
|
|
2262
|
-
* @memberof ICompanyPostRequest
|
|
2263
|
-
*/
|
|
2264
|
-
'sender_email'?: string;
|
|
2265
2414
|
/**
|
|
2266
2415
|
*
|
|
2267
2416
|
* @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
|
|
@@ -2577,6 +2726,12 @@ export interface ICompanyResponse {
|
|
|
2577
2726
|
* @memberof ICompanyResponse
|
|
2578
2727
|
*/
|
|
2579
2728
|
'sender_email'?: string;
|
|
2729
|
+
/**
|
|
2730
|
+
*
|
|
2731
|
+
* @type {string}
|
|
2732
|
+
* @memberof ICompanyResponse
|
|
2733
|
+
*/
|
|
2734
|
+
'sender_name'?: string;
|
|
2580
2735
|
/**
|
|
2581
2736
|
*
|
|
2582
2737
|
* @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
|
|
@@ -6874,6 +7029,12 @@ export interface RecordLanguageEnumString {
|
|
|
6874
7029
|
* @interface SetCompanySenderEmailRequest
|
|
6875
7030
|
*/
|
|
6876
7031
|
export interface SetCompanySenderEmailRequest {
|
|
7032
|
+
/**
|
|
7033
|
+
*
|
|
7034
|
+
* @type {string}
|
|
7035
|
+
* @memberof SetCompanySenderEmailRequest
|
|
7036
|
+
*/
|
|
7037
|
+
'sender_name': string;
|
|
6877
7038
|
/**
|
|
6878
7039
|
*
|
|
6879
7040
|
* @type {string}
|
|
@@ -7450,6 +7611,274 @@ export declare class AuthApi extends BaseAPI {
|
|
|
7450
7611
|
*/
|
|
7451
7612
|
socialLogin(requestParameters: AuthApiSocialLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ILoginResponse, any>>;
|
|
7452
7613
|
}
|
|
7614
|
+
/**
|
|
7615
|
+
* BasketApi - axios parameter creator
|
|
7616
|
+
* @export
|
|
7617
|
+
*/
|
|
7618
|
+
export declare const BasketApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7619
|
+
/**
|
|
7620
|
+
*
|
|
7621
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
7622
|
+
* @param {string} [basketId]
|
|
7623
|
+
* @param {*} [options] Override http request option.
|
|
7624
|
+
* @throws {RequiredError}
|
|
7625
|
+
*/
|
|
7626
|
+
addProductToBasket: (iAddProductToBasketRequest: IAddProductToBasketRequest, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7627
|
+
/**
|
|
7628
|
+
*
|
|
7629
|
+
* @param {string} itemId
|
|
7630
|
+
* @param {string} [basketId]
|
|
7631
|
+
* @param {*} [options] Override http request option.
|
|
7632
|
+
* @throws {RequiredError}
|
|
7633
|
+
*/
|
|
7634
|
+
deleteProductFromBasket: (itemId: string, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7635
|
+
/**
|
|
7636
|
+
*
|
|
7637
|
+
* @param {string} [id]
|
|
7638
|
+
* @param {*} [options] Override http request option.
|
|
7639
|
+
* @throws {RequiredError}
|
|
7640
|
+
*/
|
|
7641
|
+
getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
7645
|
+
* @param {*} [options] Override http request option.
|
|
7646
|
+
* @throws {RequiredError}
|
|
7647
|
+
*/
|
|
7648
|
+
mergeBasket: (iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7649
|
+
/**
|
|
7650
|
+
*
|
|
7651
|
+
* @param {string} itemId
|
|
7652
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
7653
|
+
* @param {string} [basketId]
|
|
7654
|
+
* @param {*} [options] Override http request option.
|
|
7655
|
+
* @throws {RequiredError}
|
|
7656
|
+
*/
|
|
7657
|
+
updateAmount: (itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7658
|
+
};
|
|
7659
|
+
/**
|
|
7660
|
+
* BasketApi - functional programming interface
|
|
7661
|
+
* @export
|
|
7662
|
+
*/
|
|
7663
|
+
export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
7664
|
+
/**
|
|
7665
|
+
*
|
|
7666
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
7667
|
+
* @param {string} [basketId]
|
|
7668
|
+
* @param {*} [options] Override http request option.
|
|
7669
|
+
* @throws {RequiredError}
|
|
7670
|
+
*/
|
|
7671
|
+
addProductToBasket(iAddProductToBasketRequest: IAddProductToBasketRequest, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
7672
|
+
/**
|
|
7673
|
+
*
|
|
7674
|
+
* @param {string} itemId
|
|
7675
|
+
* @param {string} [basketId]
|
|
7676
|
+
* @param {*} [options] Override http request option.
|
|
7677
|
+
* @throws {RequiredError}
|
|
7678
|
+
*/
|
|
7679
|
+
deleteProductFromBasket(itemId: string, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
7680
|
+
/**
|
|
7681
|
+
*
|
|
7682
|
+
* @param {string} [id]
|
|
7683
|
+
* @param {*} [options] Override http request option.
|
|
7684
|
+
* @throws {RequiredError}
|
|
7685
|
+
*/
|
|
7686
|
+
getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
7687
|
+
/**
|
|
7688
|
+
*
|
|
7689
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
7690
|
+
* @param {*} [options] Override http request option.
|
|
7691
|
+
* @throws {RequiredError}
|
|
7692
|
+
*/
|
|
7693
|
+
mergeBasket(iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
7694
|
+
/**
|
|
7695
|
+
*
|
|
7696
|
+
* @param {string} itemId
|
|
7697
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
7698
|
+
* @param {string} [basketId]
|
|
7699
|
+
* @param {*} [options] Override http request option.
|
|
7700
|
+
* @throws {RequiredError}
|
|
7701
|
+
*/
|
|
7702
|
+
updateAmount(itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
7703
|
+
};
|
|
7704
|
+
/**
|
|
7705
|
+
* BasketApi - factory interface
|
|
7706
|
+
* @export
|
|
7707
|
+
*/
|
|
7708
|
+
export declare const BasketApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7709
|
+
/**
|
|
7710
|
+
*
|
|
7711
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
7712
|
+
* @param {*} [options] Override http request option.
|
|
7713
|
+
* @throws {RequiredError}
|
|
7714
|
+
*/
|
|
7715
|
+
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
7716
|
+
/**
|
|
7717
|
+
*
|
|
7718
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
7719
|
+
* @param {*} [options] Override http request option.
|
|
7720
|
+
* @throws {RequiredError}
|
|
7721
|
+
*/
|
|
7722
|
+
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
7723
|
+
/**
|
|
7724
|
+
*
|
|
7725
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
7726
|
+
* @param {*} [options] Override http request option.
|
|
7727
|
+
* @throws {RequiredError}
|
|
7728
|
+
*/
|
|
7729
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
|
|
7730
|
+
/**
|
|
7731
|
+
*
|
|
7732
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
7733
|
+
* @param {*} [options] Override http request option.
|
|
7734
|
+
* @throws {RequiredError}
|
|
7735
|
+
*/
|
|
7736
|
+
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
7737
|
+
/**
|
|
7738
|
+
*
|
|
7739
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
7740
|
+
* @param {*} [options] Override http request option.
|
|
7741
|
+
* @throws {RequiredError}
|
|
7742
|
+
*/
|
|
7743
|
+
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
7744
|
+
};
|
|
7745
|
+
/**
|
|
7746
|
+
* Request parameters for addProductToBasket operation in BasketApi.
|
|
7747
|
+
* @export
|
|
7748
|
+
* @interface BasketApiAddProductToBasketRequest
|
|
7749
|
+
*/
|
|
7750
|
+
export interface BasketApiAddProductToBasketRequest {
|
|
7751
|
+
/**
|
|
7752
|
+
*
|
|
7753
|
+
* @type {IAddProductToBasketRequest}
|
|
7754
|
+
* @memberof BasketApiAddProductToBasket
|
|
7755
|
+
*/
|
|
7756
|
+
readonly iAddProductToBasketRequest: IAddProductToBasketRequest;
|
|
7757
|
+
/**
|
|
7758
|
+
*
|
|
7759
|
+
* @type {string}
|
|
7760
|
+
* @memberof BasketApiAddProductToBasket
|
|
7761
|
+
*/
|
|
7762
|
+
readonly basketId?: string;
|
|
7763
|
+
}
|
|
7764
|
+
/**
|
|
7765
|
+
* Request parameters for deleteProductFromBasket operation in BasketApi.
|
|
7766
|
+
* @export
|
|
7767
|
+
* @interface BasketApiDeleteProductFromBasketRequest
|
|
7768
|
+
*/
|
|
7769
|
+
export interface BasketApiDeleteProductFromBasketRequest {
|
|
7770
|
+
/**
|
|
7771
|
+
*
|
|
7772
|
+
* @type {string}
|
|
7773
|
+
* @memberof BasketApiDeleteProductFromBasket
|
|
7774
|
+
*/
|
|
7775
|
+
readonly itemId: string;
|
|
7776
|
+
/**
|
|
7777
|
+
*
|
|
7778
|
+
* @type {string}
|
|
7779
|
+
* @memberof BasketApiDeleteProductFromBasket
|
|
7780
|
+
*/
|
|
7781
|
+
readonly basketId?: string;
|
|
7782
|
+
}
|
|
7783
|
+
/**
|
|
7784
|
+
* Request parameters for getBasket operation in BasketApi.
|
|
7785
|
+
* @export
|
|
7786
|
+
* @interface BasketApiGetBasketRequest
|
|
7787
|
+
*/
|
|
7788
|
+
export interface BasketApiGetBasketRequest {
|
|
7789
|
+
/**
|
|
7790
|
+
*
|
|
7791
|
+
* @type {string}
|
|
7792
|
+
* @memberof BasketApiGetBasket
|
|
7793
|
+
*/
|
|
7794
|
+
readonly id?: string;
|
|
7795
|
+
}
|
|
7796
|
+
/**
|
|
7797
|
+
* Request parameters for mergeBasket operation in BasketApi.
|
|
7798
|
+
* @export
|
|
7799
|
+
* @interface BasketApiMergeBasketRequest
|
|
7800
|
+
*/
|
|
7801
|
+
export interface BasketApiMergeBasketRequest {
|
|
7802
|
+
/**
|
|
7803
|
+
*
|
|
7804
|
+
* @type {IBasketMergeRequest}
|
|
7805
|
+
* @memberof BasketApiMergeBasket
|
|
7806
|
+
*/
|
|
7807
|
+
readonly iBasketMergeRequest: IBasketMergeRequest;
|
|
7808
|
+
}
|
|
7809
|
+
/**
|
|
7810
|
+
* Request parameters for updateAmount operation in BasketApi.
|
|
7811
|
+
* @export
|
|
7812
|
+
* @interface BasketApiUpdateAmountRequest
|
|
7813
|
+
*/
|
|
7814
|
+
export interface BasketApiUpdateAmountRequest {
|
|
7815
|
+
/**
|
|
7816
|
+
*
|
|
7817
|
+
* @type {string}
|
|
7818
|
+
* @memberof BasketApiUpdateAmount
|
|
7819
|
+
*/
|
|
7820
|
+
readonly itemId: string;
|
|
7821
|
+
/**
|
|
7822
|
+
*
|
|
7823
|
+
* @type {IBasketUpdateAmountRequest}
|
|
7824
|
+
* @memberof BasketApiUpdateAmount
|
|
7825
|
+
*/
|
|
7826
|
+
readonly iBasketUpdateAmountRequest: IBasketUpdateAmountRequest;
|
|
7827
|
+
/**
|
|
7828
|
+
*
|
|
7829
|
+
* @type {string}
|
|
7830
|
+
* @memberof BasketApiUpdateAmount
|
|
7831
|
+
*/
|
|
7832
|
+
readonly basketId?: string;
|
|
7833
|
+
}
|
|
7834
|
+
/**
|
|
7835
|
+
* BasketApi - object-oriented interface
|
|
7836
|
+
* @export
|
|
7837
|
+
* @class BasketApi
|
|
7838
|
+
* @extends {BaseAPI}
|
|
7839
|
+
*/
|
|
7840
|
+
export declare class BasketApi extends BaseAPI {
|
|
7841
|
+
/**
|
|
7842
|
+
*
|
|
7843
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
7844
|
+
* @param {*} [options] Override http request option.
|
|
7845
|
+
* @throws {RequiredError}
|
|
7846
|
+
* @memberof BasketApi
|
|
7847
|
+
*/
|
|
7848
|
+
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
7849
|
+
/**
|
|
7850
|
+
*
|
|
7851
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
7852
|
+
* @param {*} [options] Override http request option.
|
|
7853
|
+
* @throws {RequiredError}
|
|
7854
|
+
* @memberof BasketApi
|
|
7855
|
+
*/
|
|
7856
|
+
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
7857
|
+
/**
|
|
7858
|
+
*
|
|
7859
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
7860
|
+
* @param {*} [options] Override http request option.
|
|
7861
|
+
* @throws {RequiredError}
|
|
7862
|
+
* @memberof BasketApi
|
|
7863
|
+
*/
|
|
7864
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
|
|
7865
|
+
/**
|
|
7866
|
+
*
|
|
7867
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
7868
|
+
* @param {*} [options] Override http request option.
|
|
7869
|
+
* @throws {RequiredError}
|
|
7870
|
+
* @memberof BasketApi
|
|
7871
|
+
*/
|
|
7872
|
+
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
7873
|
+
/**
|
|
7874
|
+
*
|
|
7875
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
7876
|
+
* @param {*} [options] Override http request option.
|
|
7877
|
+
* @throws {RequiredError}
|
|
7878
|
+
* @memberof BasketApi
|
|
7879
|
+
*/
|
|
7880
|
+
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
7881
|
+
}
|
|
7453
7882
|
/**
|
|
7454
7883
|
* BrandApi - axios parameter creator
|
|
7455
7884
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = void 0;
|
|
19
|
+
exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaginationLimitEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -1338,6 +1338,362 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
exports.AuthApi = AuthApi;
|
|
1341
|
+
/**
|
|
1342
|
+
* BasketApi - axios parameter creator
|
|
1343
|
+
* @export
|
|
1344
|
+
*/
|
|
1345
|
+
const BasketApiAxiosParamCreator = function (configuration) {
|
|
1346
|
+
return {
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1350
|
+
* @param {string} [basketId]
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
*/
|
|
1354
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1355
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1356
|
+
(0, common_1.assertParamExists)('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1357
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1359
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1360
|
+
let baseOptions;
|
|
1361
|
+
if (configuration) {
|
|
1362
|
+
baseOptions = configuration.baseOptions;
|
|
1363
|
+
}
|
|
1364
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1365
|
+
const localVarHeaderParameter = {};
|
|
1366
|
+
const localVarQueryParameter = {};
|
|
1367
|
+
if (basketId !== undefined) {
|
|
1368
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1369
|
+
}
|
|
1370
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1371
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1372
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1373
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1374
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1375
|
+
return {
|
|
1376
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1377
|
+
options: localVarRequestOptions,
|
|
1378
|
+
};
|
|
1379
|
+
},
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* @param {string} itemId
|
|
1383
|
+
* @param {string} [basketId]
|
|
1384
|
+
* @param {*} [options] Override http request option.
|
|
1385
|
+
* @throws {RequiredError}
|
|
1386
|
+
*/
|
|
1387
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1388
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1389
|
+
(0, common_1.assertParamExists)('deleteProductFromBasket', 'itemId', itemId);
|
|
1390
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1391
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1394
|
+
let baseOptions;
|
|
1395
|
+
if (configuration) {
|
|
1396
|
+
baseOptions = configuration.baseOptions;
|
|
1397
|
+
}
|
|
1398
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1399
|
+
const localVarHeaderParameter = {};
|
|
1400
|
+
const localVarQueryParameter = {};
|
|
1401
|
+
if (basketId !== undefined) {
|
|
1402
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1403
|
+
}
|
|
1404
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1406
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1407
|
+
return {
|
|
1408
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1409
|
+
options: localVarRequestOptions,
|
|
1410
|
+
};
|
|
1411
|
+
},
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @param {string} [id]
|
|
1415
|
+
* @param {*} [options] Override http request option.
|
|
1416
|
+
* @throws {RequiredError}
|
|
1417
|
+
*/
|
|
1418
|
+
getBasket: async (id, options = {}) => {
|
|
1419
|
+
const localVarPath = `/api/baskets/single`;
|
|
1420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1422
|
+
let baseOptions;
|
|
1423
|
+
if (configuration) {
|
|
1424
|
+
baseOptions = configuration.baseOptions;
|
|
1425
|
+
}
|
|
1426
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1427
|
+
const localVarHeaderParameter = {};
|
|
1428
|
+
const localVarQueryParameter = {};
|
|
1429
|
+
if (id !== undefined) {
|
|
1430
|
+
localVarQueryParameter['id'] = id;
|
|
1431
|
+
}
|
|
1432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1434
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1435
|
+
return {
|
|
1436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1437
|
+
options: localVarRequestOptions,
|
|
1438
|
+
};
|
|
1439
|
+
},
|
|
1440
|
+
/**
|
|
1441
|
+
*
|
|
1442
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1443
|
+
* @param {*} [options] Override http request option.
|
|
1444
|
+
* @throws {RequiredError}
|
|
1445
|
+
*/
|
|
1446
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1447
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1448
|
+
(0, common_1.assertParamExists)('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1449
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1452
|
+
let baseOptions;
|
|
1453
|
+
if (configuration) {
|
|
1454
|
+
baseOptions = configuration.baseOptions;
|
|
1455
|
+
}
|
|
1456
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1457
|
+
const localVarHeaderParameter = {};
|
|
1458
|
+
const localVarQueryParameter = {};
|
|
1459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1462
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1463
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1464
|
+
return {
|
|
1465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1466
|
+
options: localVarRequestOptions,
|
|
1467
|
+
};
|
|
1468
|
+
},
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @param {string} itemId
|
|
1472
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1473
|
+
* @param {string} [basketId]
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1478
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1479
|
+
(0, common_1.assertParamExists)('updateAmount', 'itemId', itemId);
|
|
1480
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1481
|
+
(0, common_1.assertParamExists)('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1482
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1483
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1485
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1486
|
+
let baseOptions;
|
|
1487
|
+
if (configuration) {
|
|
1488
|
+
baseOptions = configuration.baseOptions;
|
|
1489
|
+
}
|
|
1490
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1491
|
+
const localVarHeaderParameter = {};
|
|
1492
|
+
const localVarQueryParameter = {};
|
|
1493
|
+
if (basketId !== undefined) {
|
|
1494
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1495
|
+
}
|
|
1496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1497
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1499
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1500
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1501
|
+
return {
|
|
1502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1503
|
+
options: localVarRequestOptions,
|
|
1504
|
+
};
|
|
1505
|
+
},
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
exports.BasketApiAxiosParamCreator = BasketApiAxiosParamCreator;
|
|
1509
|
+
/**
|
|
1510
|
+
* BasketApi - functional programming interface
|
|
1511
|
+
* @export
|
|
1512
|
+
*/
|
|
1513
|
+
const BasketApiFp = function (configuration) {
|
|
1514
|
+
const localVarAxiosParamCreator = (0, exports.BasketApiAxiosParamCreator)(configuration);
|
|
1515
|
+
return {
|
|
1516
|
+
/**
|
|
1517
|
+
*
|
|
1518
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1519
|
+
* @param {string} [basketId]
|
|
1520
|
+
* @param {*} [options] Override http request option.
|
|
1521
|
+
* @throws {RequiredError}
|
|
1522
|
+
*/
|
|
1523
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1525
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1526
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1527
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1528
|
+
},
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
* @param {string} itemId
|
|
1532
|
+
* @param {string} [basketId]
|
|
1533
|
+
* @param {*} [options] Override http request option.
|
|
1534
|
+
* @throws {RequiredError}
|
|
1535
|
+
*/
|
|
1536
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1539
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1540
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1541
|
+
},
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @param {string} [id]
|
|
1545
|
+
* @param {*} [options] Override http request option.
|
|
1546
|
+
* @throws {RequiredError}
|
|
1547
|
+
*/
|
|
1548
|
+
async getBasket(id, options) {
|
|
1549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1551
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1552
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1553
|
+
},
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1562
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1563
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1564
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1565
|
+
},
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @param {string} itemId
|
|
1569
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1570
|
+
* @param {string} [basketId]
|
|
1571
|
+
* @param {*} [options] Override http request option.
|
|
1572
|
+
* @throws {RequiredError}
|
|
1573
|
+
*/
|
|
1574
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1576
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1579
|
+
},
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
exports.BasketApiFp = BasketApiFp;
|
|
1583
|
+
/**
|
|
1584
|
+
* BasketApi - factory interface
|
|
1585
|
+
* @export
|
|
1586
|
+
*/
|
|
1587
|
+
const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1588
|
+
const localVarFp = (0, exports.BasketApiFp)(configuration);
|
|
1589
|
+
return {
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
addProductToBasket(requestParameters, options) {
|
|
1597
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
*/
|
|
1605
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1606
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1607
|
+
},
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
getBasket(requestParameters = {}, options) {
|
|
1615
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1616
|
+
},
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1620
|
+
* @param {*} [options] Override http request option.
|
|
1621
|
+
* @throws {RequiredError}
|
|
1622
|
+
*/
|
|
1623
|
+
mergeBasket(requestParameters, options) {
|
|
1624
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1625
|
+
},
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
updateAmount(requestParameters, options) {
|
|
1633
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1634
|
+
},
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
exports.BasketApiFactory = BasketApiFactory;
|
|
1638
|
+
/**
|
|
1639
|
+
* BasketApi - object-oriented interface
|
|
1640
|
+
* @export
|
|
1641
|
+
* @class BasketApi
|
|
1642
|
+
* @extends {BaseAPI}
|
|
1643
|
+
*/
|
|
1644
|
+
class BasketApi extends base_1.BaseAPI {
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof BasketApi
|
|
1651
|
+
*/
|
|
1652
|
+
addProductToBasket(requestParameters, options) {
|
|
1653
|
+
return (0, exports.BasketApiFp)(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1658
|
+
* @param {*} [options] Override http request option.
|
|
1659
|
+
* @throws {RequiredError}
|
|
1660
|
+
* @memberof BasketApi
|
|
1661
|
+
*/
|
|
1662
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1663
|
+
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1668
|
+
* @param {*} [options] Override http request option.
|
|
1669
|
+
* @throws {RequiredError}
|
|
1670
|
+
* @memberof BasketApi
|
|
1671
|
+
*/
|
|
1672
|
+
getBasket(requestParameters = {}, options) {
|
|
1673
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
* @memberof BasketApi
|
|
1681
|
+
*/
|
|
1682
|
+
mergeBasket(requestParameters, options) {
|
|
1683
|
+
return (0, exports.BasketApiFp)(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
* @memberof BasketApi
|
|
1691
|
+
*/
|
|
1692
|
+
updateAmount(requestParameters, options) {
|
|
1693
|
+
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
exports.BasketApi = BasketApi;
|
|
1341
1697
|
/**
|
|
1342
1698
|
* BrandApi - axios parameter creator
|
|
1343
1699
|
* @export
|
package/dist/api/api.mjs
CHANGED
|
@@ -1320,6 +1320,358 @@ export class AuthApi extends BaseAPI {
|
|
|
1320
1320
|
return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
+
/**
|
|
1324
|
+
* BasketApi - axios parameter creator
|
|
1325
|
+
* @export
|
|
1326
|
+
*/
|
|
1327
|
+
export const BasketApiAxiosParamCreator = function (configuration) {
|
|
1328
|
+
return {
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1332
|
+
* @param {string} [basketId]
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1337
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1338
|
+
assertParamExists('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1339
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1342
|
+
let baseOptions;
|
|
1343
|
+
if (configuration) {
|
|
1344
|
+
baseOptions = configuration.baseOptions;
|
|
1345
|
+
}
|
|
1346
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1347
|
+
const localVarHeaderParameter = {};
|
|
1348
|
+
const localVarQueryParameter = {};
|
|
1349
|
+
if (basketId !== undefined) {
|
|
1350
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1351
|
+
}
|
|
1352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1355
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1356
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1357
|
+
return {
|
|
1358
|
+
url: toPathString(localVarUrlObj),
|
|
1359
|
+
options: localVarRequestOptions,
|
|
1360
|
+
};
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @param {string} itemId
|
|
1365
|
+
* @param {string} [basketId]
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
*/
|
|
1369
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1370
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1371
|
+
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1372
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1373
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1374
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1375
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1376
|
+
let baseOptions;
|
|
1377
|
+
if (configuration) {
|
|
1378
|
+
baseOptions = configuration.baseOptions;
|
|
1379
|
+
}
|
|
1380
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1381
|
+
const localVarHeaderParameter = {};
|
|
1382
|
+
const localVarQueryParameter = {};
|
|
1383
|
+
if (basketId !== undefined) {
|
|
1384
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1385
|
+
}
|
|
1386
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1388
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1389
|
+
return {
|
|
1390
|
+
url: toPathString(localVarUrlObj),
|
|
1391
|
+
options: localVarRequestOptions,
|
|
1392
|
+
};
|
|
1393
|
+
},
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @param {string} [id]
|
|
1397
|
+
* @param {*} [options] Override http request option.
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
*/
|
|
1400
|
+
getBasket: async (id, options = {}) => {
|
|
1401
|
+
const localVarPath = `/api/baskets/single`;
|
|
1402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1403
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1404
|
+
let baseOptions;
|
|
1405
|
+
if (configuration) {
|
|
1406
|
+
baseOptions = configuration.baseOptions;
|
|
1407
|
+
}
|
|
1408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1409
|
+
const localVarHeaderParameter = {};
|
|
1410
|
+
const localVarQueryParameter = {};
|
|
1411
|
+
if (id !== undefined) {
|
|
1412
|
+
localVarQueryParameter['id'] = id;
|
|
1413
|
+
}
|
|
1414
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1416
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1417
|
+
return {
|
|
1418
|
+
url: toPathString(localVarUrlObj),
|
|
1419
|
+
options: localVarRequestOptions,
|
|
1420
|
+
};
|
|
1421
|
+
},
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1429
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1430
|
+
assertParamExists('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1431
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1434
|
+
let baseOptions;
|
|
1435
|
+
if (configuration) {
|
|
1436
|
+
baseOptions = configuration.baseOptions;
|
|
1437
|
+
}
|
|
1438
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1439
|
+
const localVarHeaderParameter = {};
|
|
1440
|
+
const localVarQueryParameter = {};
|
|
1441
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1442
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1445
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1446
|
+
return {
|
|
1447
|
+
url: toPathString(localVarUrlObj),
|
|
1448
|
+
options: localVarRequestOptions,
|
|
1449
|
+
};
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @param {string} itemId
|
|
1454
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1455
|
+
* @param {string} [basketId]
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1460
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1461
|
+
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1462
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1463
|
+
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1464
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1465
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1467
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1468
|
+
let baseOptions;
|
|
1469
|
+
if (configuration) {
|
|
1470
|
+
baseOptions = configuration.baseOptions;
|
|
1471
|
+
}
|
|
1472
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1473
|
+
const localVarHeaderParameter = {};
|
|
1474
|
+
const localVarQueryParameter = {};
|
|
1475
|
+
if (basketId !== undefined) {
|
|
1476
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1477
|
+
}
|
|
1478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1479
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1480
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1481
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1482
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1483
|
+
return {
|
|
1484
|
+
url: toPathString(localVarUrlObj),
|
|
1485
|
+
options: localVarRequestOptions,
|
|
1486
|
+
};
|
|
1487
|
+
},
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
/**
|
|
1491
|
+
* BasketApi - functional programming interface
|
|
1492
|
+
* @export
|
|
1493
|
+
*/
|
|
1494
|
+
export const BasketApiFp = function (configuration) {
|
|
1495
|
+
const localVarAxiosParamCreator = BasketApiAxiosParamCreator(configuration);
|
|
1496
|
+
return {
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1500
|
+
* @param {string} [basketId]
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1506
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1507
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1509
|
+
},
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @param {string} itemId
|
|
1513
|
+
* @param {string} [basketId]
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
*/
|
|
1517
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1519
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1520
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1521
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1522
|
+
},
|
|
1523
|
+
/**
|
|
1524
|
+
*
|
|
1525
|
+
* @param {string} [id]
|
|
1526
|
+
* @param {*} [options] Override http request option.
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
*/
|
|
1529
|
+
async getBasket(id, options) {
|
|
1530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1531
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1532
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1534
|
+
},
|
|
1535
|
+
/**
|
|
1536
|
+
*
|
|
1537
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1543
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1544
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1546
|
+
},
|
|
1547
|
+
/**
|
|
1548
|
+
*
|
|
1549
|
+
* @param {string} itemId
|
|
1550
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1551
|
+
* @param {string} [basketId]
|
|
1552
|
+
* @param {*} [options] Override http request option.
|
|
1553
|
+
* @throws {RequiredError}
|
|
1554
|
+
*/
|
|
1555
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1557
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1558
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1560
|
+
},
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
/**
|
|
1564
|
+
* BasketApi - factory interface
|
|
1565
|
+
* @export
|
|
1566
|
+
*/
|
|
1567
|
+
export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1568
|
+
const localVarFp = BasketApiFp(configuration);
|
|
1569
|
+
return {
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1573
|
+
* @param {*} [options] Override http request option.
|
|
1574
|
+
* @throws {RequiredError}
|
|
1575
|
+
*/
|
|
1576
|
+
addProductToBasket(requestParameters, options) {
|
|
1577
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1578
|
+
},
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1582
|
+
* @param {*} [options] Override http request option.
|
|
1583
|
+
* @throws {RequiredError}
|
|
1584
|
+
*/
|
|
1585
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1586
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
getBasket(requestParameters = {}, options) {
|
|
1595
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1596
|
+
},
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
mergeBasket(requestParameters, options) {
|
|
1604
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1605
|
+
},
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1609
|
+
* @param {*} [options] Override http request option.
|
|
1610
|
+
* @throws {RequiredError}
|
|
1611
|
+
*/
|
|
1612
|
+
updateAmount(requestParameters, options) {
|
|
1613
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1614
|
+
},
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
/**
|
|
1618
|
+
* BasketApi - object-oriented interface
|
|
1619
|
+
* @export
|
|
1620
|
+
* @class BasketApi
|
|
1621
|
+
* @extends {BaseAPI}
|
|
1622
|
+
*/
|
|
1623
|
+
export class BasketApi extends BaseAPI {
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
* @memberof BasketApi
|
|
1630
|
+
*/
|
|
1631
|
+
addProductToBasket(requestParameters, options) {
|
|
1632
|
+
return BasketApiFp(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
* @memberof BasketApi
|
|
1640
|
+
*/
|
|
1641
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1642
|
+
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
*
|
|
1646
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
* @memberof BasketApi
|
|
1650
|
+
*/
|
|
1651
|
+
getBasket(requestParameters = {}, options) {
|
|
1652
|
+
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
* @memberof BasketApi
|
|
1660
|
+
*/
|
|
1661
|
+
mergeBasket(requestParameters, options) {
|
|
1662
|
+
return BasketApiFp(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1667
|
+
* @param {*} [options] Override http request option.
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
* @memberof BasketApi
|
|
1670
|
+
*/
|
|
1671
|
+
updateAmount(requestParameters, options) {
|
|
1672
|
+
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1323
1675
|
/**
|
|
1324
1676
|
* BrandApi - axios parameter creator
|
|
1325
1677
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
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",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "9957aca5c009e2a0b88ff3ecbe486882e83156e6"
|
|
40
40
|
}
|