@infisale-client/api 1.2.39 → 1.2.41
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 +167 -24
- package/dist/api/api.js +134 -28
- package/dist/api/api.mjs +134 -28
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -695,6 +695,50 @@ export interface IAllCategoriesResponse {
|
|
|
695
695
|
*/
|
|
696
696
|
'data': Array<PickICategoryResponseIdOrContentsOrAttributes>;
|
|
697
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @export
|
|
701
|
+
* @interface IAllCategoriesTreeResponse
|
|
702
|
+
*/
|
|
703
|
+
export interface IAllCategoriesTreeResponse {
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<IAllCategoriesTreeResponseDataInner>}
|
|
707
|
+
* @memberof IAllCategoriesTreeResponse
|
|
708
|
+
*/
|
|
709
|
+
'data': Array<IAllCategoriesTreeResponseDataInner>;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @export
|
|
714
|
+
* @interface IAllCategoriesTreeResponseDataInner
|
|
715
|
+
*/
|
|
716
|
+
export interface IAllCategoriesTreeResponseDataInner {
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @type {Array<SubCategories>}
|
|
720
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
721
|
+
*/
|
|
722
|
+
'subCategories': Array<SubCategories>;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {Array<ICategoryResponseAttributesInner>}
|
|
726
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
727
|
+
*/
|
|
728
|
+
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
729
|
+
/**
|
|
730
|
+
* Make all properties in T optional
|
|
731
|
+
* @type {object}
|
|
732
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
733
|
+
*/
|
|
734
|
+
'contents': object;
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
739
|
+
*/
|
|
740
|
+
'_id': string;
|
|
741
|
+
}
|
|
698
742
|
/**
|
|
699
743
|
*
|
|
700
744
|
* @export
|
|
@@ -9906,6 +9950,37 @@ export declare const SitemapTypeEnum: {
|
|
|
9906
9950
|
readonly BLOG: "blog";
|
|
9907
9951
|
};
|
|
9908
9952
|
export type SitemapTypeEnum = typeof SitemapTypeEnum[keyof typeof SitemapTypeEnum];
|
|
9953
|
+
/**
|
|
9954
|
+
*
|
|
9955
|
+
* @export
|
|
9956
|
+
* @interface SubCategories
|
|
9957
|
+
*/
|
|
9958
|
+
export interface SubCategories {
|
|
9959
|
+
/**
|
|
9960
|
+
*
|
|
9961
|
+
* @type {Array<SubCategories>}
|
|
9962
|
+
* @memberof SubCategories
|
|
9963
|
+
*/
|
|
9964
|
+
'subCategories': Array<SubCategories>;
|
|
9965
|
+
/**
|
|
9966
|
+
*
|
|
9967
|
+
* @type {Array<ICategoryResponseAttributesInner>}
|
|
9968
|
+
* @memberof SubCategories
|
|
9969
|
+
*/
|
|
9970
|
+
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
9971
|
+
/**
|
|
9972
|
+
* Make all properties in T optional
|
|
9973
|
+
* @type {object}
|
|
9974
|
+
* @memberof SubCategories
|
|
9975
|
+
*/
|
|
9976
|
+
'contents': object;
|
|
9977
|
+
/**
|
|
9978
|
+
*
|
|
9979
|
+
* @type {string}
|
|
9980
|
+
* @memberof SubCategories
|
|
9981
|
+
*/
|
|
9982
|
+
'_id': string;
|
|
9983
|
+
}
|
|
9909
9984
|
/**
|
|
9910
9985
|
*
|
|
9911
9986
|
* @export
|
|
@@ -10539,20 +10614,18 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
10539
10614
|
deleteProductFromBasket: (itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10540
10615
|
/**
|
|
10541
10616
|
*
|
|
10542
|
-
* @param {string} domain
|
|
10543
10617
|
* @param {string} [id]
|
|
10544
10618
|
* @param {*} [options] Override http request option.
|
|
10545
10619
|
* @throws {RequiredError}
|
|
10546
10620
|
*/
|
|
10547
|
-
getBasket: (
|
|
10621
|
+
getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10548
10622
|
/**
|
|
10549
10623
|
*
|
|
10550
|
-
* @param {string} domain
|
|
10551
10624
|
* @param {string} [id]
|
|
10552
10625
|
* @param {*} [options] Override http request option.
|
|
10553
10626
|
* @throws {RequiredError}
|
|
10554
10627
|
*/
|
|
10555
|
-
getBasketCount: (
|
|
10628
|
+
getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10556
10629
|
/**
|
|
10557
10630
|
*
|
|
10558
10631
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -10591,20 +10664,18 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
10591
10664
|
deleteProductFromBasket(itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
10592
10665
|
/**
|
|
10593
10666
|
*
|
|
10594
|
-
* @param {string} domain
|
|
10595
10667
|
* @param {string} [id]
|
|
10596
10668
|
* @param {*} [options] Override http request option.
|
|
10597
10669
|
* @throws {RequiredError}
|
|
10598
10670
|
*/
|
|
10599
|
-
getBasket(
|
|
10671
|
+
getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
10600
10672
|
/**
|
|
10601
10673
|
*
|
|
10602
|
-
* @param {string} domain
|
|
10603
10674
|
* @param {string} [id]
|
|
10604
10675
|
* @param {*} [options] Override http request option.
|
|
10605
10676
|
* @throws {RequiredError}
|
|
10606
10677
|
*/
|
|
10607
|
-
getBasketCount(
|
|
10678
|
+
getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
|
|
10608
10679
|
/**
|
|
10609
10680
|
*
|
|
10610
10681
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -10646,14 +10717,14 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
|
|
|
10646
10717
|
* @param {*} [options] Override http request option.
|
|
10647
10718
|
* @throws {RequiredError}
|
|
10648
10719
|
*/
|
|
10649
|
-
getBasket(requestParameters
|
|
10720
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
|
|
10650
10721
|
/**
|
|
10651
10722
|
*
|
|
10652
10723
|
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
10653
10724
|
* @param {*} [options] Override http request option.
|
|
10654
10725
|
* @throws {RequiredError}
|
|
10655
10726
|
*/
|
|
10656
|
-
getBasketCount(requestParameters
|
|
10727
|
+
getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
|
|
10657
10728
|
/**
|
|
10658
10729
|
*
|
|
10659
10730
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -10707,12 +10778,6 @@ export interface BasketApiDeleteProductFromBasketRequest {
|
|
|
10707
10778
|
* @interface BasketApiGetBasketRequest
|
|
10708
10779
|
*/
|
|
10709
10780
|
export interface BasketApiGetBasketRequest {
|
|
10710
|
-
/**
|
|
10711
|
-
*
|
|
10712
|
-
* @type {string}
|
|
10713
|
-
* @memberof BasketApiGetBasket
|
|
10714
|
-
*/
|
|
10715
|
-
readonly domain: string;
|
|
10716
10781
|
/**
|
|
10717
10782
|
*
|
|
10718
10783
|
* @type {string}
|
|
@@ -10726,12 +10791,6 @@ export interface BasketApiGetBasketRequest {
|
|
|
10726
10791
|
* @interface BasketApiGetBasketCountRequest
|
|
10727
10792
|
*/
|
|
10728
10793
|
export interface BasketApiGetBasketCountRequest {
|
|
10729
|
-
/**
|
|
10730
|
-
*
|
|
10731
|
-
* @type {string}
|
|
10732
|
-
* @memberof BasketApiGetBasketCount
|
|
10733
|
-
*/
|
|
10734
|
-
readonly domain: string;
|
|
10735
10794
|
/**
|
|
10736
10795
|
*
|
|
10737
10796
|
* @type {string}
|
|
@@ -10801,7 +10860,7 @@ export declare class BasketApi extends BaseAPI {
|
|
|
10801
10860
|
* @throws {RequiredError}
|
|
10802
10861
|
* @memberof BasketApi
|
|
10803
10862
|
*/
|
|
10804
|
-
getBasket(requestParameters
|
|
10863
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
|
|
10805
10864
|
/**
|
|
10806
10865
|
*
|
|
10807
10866
|
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
@@ -10809,7 +10868,7 @@ export declare class BasketApi extends BaseAPI {
|
|
|
10809
10868
|
* @throws {RequiredError}
|
|
10810
10869
|
* @memberof BasketApi
|
|
10811
10870
|
*/
|
|
10812
|
-
getBasketCount(requestParameters
|
|
10871
|
+
getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
|
|
10813
10872
|
/**
|
|
10814
10873
|
*
|
|
10815
10874
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -11227,6 +11286,13 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
11227
11286
|
* @throws {RequiredError}
|
|
11228
11287
|
*/
|
|
11229
11288
|
getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11289
|
+
/**
|
|
11290
|
+
*
|
|
11291
|
+
* @param {string} companyId
|
|
11292
|
+
* @param {*} [options] Override http request option.
|
|
11293
|
+
* @throws {RequiredError}
|
|
11294
|
+
*/
|
|
11295
|
+
getAllCategoriesTree: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11230
11296
|
/**
|
|
11231
11297
|
*
|
|
11232
11298
|
* @param {number} [page]
|
|
@@ -11293,6 +11359,13 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
|
11293
11359
|
* @throws {RequiredError}
|
|
11294
11360
|
*/
|
|
11295
11361
|
getAllCategories(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
|
|
11362
|
+
/**
|
|
11363
|
+
*
|
|
11364
|
+
* @param {string} companyId
|
|
11365
|
+
* @param {*} [options] Override http request option.
|
|
11366
|
+
* @throws {RequiredError}
|
|
11367
|
+
*/
|
|
11368
|
+
getAllCategoriesTree(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesTreeResponse>>;
|
|
11296
11369
|
/**
|
|
11297
11370
|
*
|
|
11298
11371
|
* @param {number} [page]
|
|
@@ -11359,6 +11432,13 @@ export declare const CategoryApiFactory: (configuration?: Configuration, basePat
|
|
|
11359
11432
|
* @throws {RequiredError}
|
|
11360
11433
|
*/
|
|
11361
11434
|
getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesResponse>;
|
|
11435
|
+
/**
|
|
11436
|
+
*
|
|
11437
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
11438
|
+
* @param {*} [options] Override http request option.
|
|
11439
|
+
* @throws {RequiredError}
|
|
11440
|
+
*/
|
|
11441
|
+
getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesTreeResponse>;
|
|
11362
11442
|
/**
|
|
11363
11443
|
*
|
|
11364
11444
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -11427,6 +11507,19 @@ export interface CategoryApiGetAllCategoriesRequest {
|
|
|
11427
11507
|
*/
|
|
11428
11508
|
readonly companyId: string;
|
|
11429
11509
|
}
|
|
11510
|
+
/**
|
|
11511
|
+
* Request parameters for getAllCategoriesTree operation in CategoryApi.
|
|
11512
|
+
* @export
|
|
11513
|
+
* @interface CategoryApiGetAllCategoriesTreeRequest
|
|
11514
|
+
*/
|
|
11515
|
+
export interface CategoryApiGetAllCategoriesTreeRequest {
|
|
11516
|
+
/**
|
|
11517
|
+
*
|
|
11518
|
+
* @type {string}
|
|
11519
|
+
* @memberof CategoryApiGetAllCategoriesTree
|
|
11520
|
+
*/
|
|
11521
|
+
readonly companyId: string;
|
|
11522
|
+
}
|
|
11430
11523
|
/**
|
|
11431
11524
|
* Request parameters for getCategories operation in CategoryApi.
|
|
11432
11525
|
* @export
|
|
@@ -11576,6 +11669,14 @@ export declare class CategoryApi extends BaseAPI {
|
|
|
11576
11669
|
* @memberof CategoryApi
|
|
11577
11670
|
*/
|
|
11578
11671
|
getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesResponse, any>>;
|
|
11672
|
+
/**
|
|
11673
|
+
*
|
|
11674
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
11675
|
+
* @param {*} [options] Override http request option.
|
|
11676
|
+
* @throws {RequiredError}
|
|
11677
|
+
* @memberof CategoryApi
|
|
11678
|
+
*/
|
|
11679
|
+
getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesTreeResponse, any>>;
|
|
11579
11680
|
/**
|
|
11580
11681
|
*
|
|
11581
11682
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -13615,6 +13716,13 @@ export declare const FileApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
13615
13716
|
* @throws {RequiredError}
|
|
13616
13717
|
*/
|
|
13617
13718
|
deleteFile: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13719
|
+
/**
|
|
13720
|
+
*
|
|
13721
|
+
* @param {string} key
|
|
13722
|
+
* @param {*} [options] Override http request option.
|
|
13723
|
+
* @throws {RequiredError}
|
|
13724
|
+
*/
|
|
13725
|
+
downloadFile: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13618
13726
|
/**
|
|
13619
13727
|
*
|
|
13620
13728
|
* @param {string} id
|
|
@@ -13670,6 +13778,13 @@ export declare const FileApiFp: (configuration?: Configuration) => {
|
|
|
13670
13778
|
* @throws {RequiredError}
|
|
13671
13779
|
*/
|
|
13672
13780
|
deleteFile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13781
|
+
/**
|
|
13782
|
+
*
|
|
13783
|
+
* @param {string} key
|
|
13784
|
+
* @param {*} [options] Override http request option.
|
|
13785
|
+
* @throws {RequiredError}
|
|
13786
|
+
*/
|
|
13787
|
+
downloadFile(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
13673
13788
|
/**
|
|
13674
13789
|
*
|
|
13675
13790
|
* @param {string} id
|
|
@@ -13725,6 +13840,13 @@ export declare const FileApiFactory: (configuration?: Configuration, basePath?:
|
|
|
13725
13840
|
* @throws {RequiredError}
|
|
13726
13841
|
*/
|
|
13727
13842
|
deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
13843
|
+
/**
|
|
13844
|
+
*
|
|
13845
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
13846
|
+
* @param {*} [options] Override http request option.
|
|
13847
|
+
* @throws {RequiredError}
|
|
13848
|
+
*/
|
|
13849
|
+
downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
13728
13850
|
/**
|
|
13729
13851
|
*
|
|
13730
13852
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
|
@@ -13767,6 +13889,19 @@ export interface FileApiDeleteFileRequest {
|
|
|
13767
13889
|
*/
|
|
13768
13890
|
readonly id: string;
|
|
13769
13891
|
}
|
|
13892
|
+
/**
|
|
13893
|
+
* Request parameters for downloadFile operation in FileApi.
|
|
13894
|
+
* @export
|
|
13895
|
+
* @interface FileApiDownloadFileRequest
|
|
13896
|
+
*/
|
|
13897
|
+
export interface FileApiDownloadFileRequest {
|
|
13898
|
+
/**
|
|
13899
|
+
*
|
|
13900
|
+
* @type {string}
|
|
13901
|
+
* @memberof FileApiDownloadFile
|
|
13902
|
+
*/
|
|
13903
|
+
readonly key: string;
|
|
13904
|
+
}
|
|
13770
13905
|
/**
|
|
13771
13906
|
* Request parameters for getFileById operation in FileApi.
|
|
13772
13907
|
* @export
|
|
@@ -13918,6 +14053,14 @@ export declare class FileApi extends BaseAPI {
|
|
|
13918
14053
|
* @memberof FileApi
|
|
13919
14054
|
*/
|
|
13920
14055
|
deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
14056
|
+
/**
|
|
14057
|
+
*
|
|
14058
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
14059
|
+
* @param {*} [options] Override http request option.
|
|
14060
|
+
* @throws {RequiredError}
|
|
14061
|
+
* @memberof FileApi
|
|
14062
|
+
*/
|
|
14063
|
+
downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
13921
14064
|
/**
|
|
13922
14065
|
*
|
|
13923
14066
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -1606,14 +1606,11 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1606
1606
|
},
|
|
1607
1607
|
/**
|
|
1608
1608
|
*
|
|
1609
|
-
* @param {string} domain
|
|
1610
1609
|
* @param {string} [id]
|
|
1611
1610
|
* @param {*} [options] Override http request option.
|
|
1612
1611
|
* @throws {RequiredError}
|
|
1613
1612
|
*/
|
|
1614
|
-
getBasket: async (
|
|
1615
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1616
|
-
(0, common_1.assertParamExists)('getBasket', 'domain', domain);
|
|
1613
|
+
getBasket: async (id, options = {}) => {
|
|
1617
1614
|
const localVarPath = `/api/baskets/single`;
|
|
1618
1615
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1619
1616
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1624,9 +1621,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1624
1621
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1625
1622
|
const localVarHeaderParameter = {};
|
|
1626
1623
|
const localVarQueryParameter = {};
|
|
1627
|
-
if (domain !== undefined) {
|
|
1628
|
-
localVarQueryParameter['domain'] = domain;
|
|
1629
|
-
}
|
|
1630
1624
|
if (id !== undefined) {
|
|
1631
1625
|
localVarQueryParameter['id'] = id;
|
|
1632
1626
|
}
|
|
@@ -1640,14 +1634,11 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1640
1634
|
},
|
|
1641
1635
|
/**
|
|
1642
1636
|
*
|
|
1643
|
-
* @param {string} domain
|
|
1644
1637
|
* @param {string} [id]
|
|
1645
1638
|
* @param {*} [options] Override http request option.
|
|
1646
1639
|
* @throws {RequiredError}
|
|
1647
1640
|
*/
|
|
1648
|
-
getBasketCount: async (
|
|
1649
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1650
|
-
(0, common_1.assertParamExists)('getBasketCount', 'domain', domain);
|
|
1641
|
+
getBasketCount: async (id, options = {}) => {
|
|
1651
1642
|
const localVarPath = `/api/baskets/count`;
|
|
1652
1643
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1653
1644
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1658,9 +1649,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1658
1649
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1659
1650
|
const localVarHeaderParameter = {};
|
|
1660
1651
|
const localVarQueryParameter = {};
|
|
1661
|
-
if (domain !== undefined) {
|
|
1662
|
-
localVarQueryParameter['domain'] = domain;
|
|
1663
|
-
}
|
|
1664
1652
|
if (id !== undefined) {
|
|
1665
1653
|
localVarQueryParameter['id'] = id;
|
|
1666
1654
|
}
|
|
@@ -1771,26 +1759,24 @@ const BasketApiFp = function (configuration) {
|
|
|
1771
1759
|
},
|
|
1772
1760
|
/**
|
|
1773
1761
|
*
|
|
1774
|
-
* @param {string} domain
|
|
1775
1762
|
* @param {string} [id]
|
|
1776
1763
|
* @param {*} [options] Override http request option.
|
|
1777
1764
|
* @throws {RequiredError}
|
|
1778
1765
|
*/
|
|
1779
|
-
async getBasket(
|
|
1780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(
|
|
1766
|
+
async getBasket(id, options) {
|
|
1767
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1781
1768
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1782
1769
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1783
1770
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1784
1771
|
},
|
|
1785
1772
|
/**
|
|
1786
1773
|
*
|
|
1787
|
-
* @param {string} domain
|
|
1788
1774
|
* @param {string} [id]
|
|
1789
1775
|
* @param {*} [options] Override http request option.
|
|
1790
1776
|
* @throws {RequiredError}
|
|
1791
1777
|
*/
|
|
1792
|
-
async getBasketCount(
|
|
1793
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(
|
|
1778
|
+
async getBasketCount(id, options) {
|
|
1779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1794
1780
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
1781
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1796
1782
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1854,8 +1840,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1854
1840
|
* @param {*} [options] Override http request option.
|
|
1855
1841
|
* @throws {RequiredError}
|
|
1856
1842
|
*/
|
|
1857
|
-
getBasket(requestParameters, options) {
|
|
1858
|
-
return localVarFp.getBasket(requestParameters.
|
|
1843
|
+
getBasket(requestParameters = {}, options) {
|
|
1844
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1859
1845
|
},
|
|
1860
1846
|
/**
|
|
1861
1847
|
*
|
|
@@ -1863,8 +1849,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1863
1849
|
* @param {*} [options] Override http request option.
|
|
1864
1850
|
* @throws {RequiredError}
|
|
1865
1851
|
*/
|
|
1866
|
-
getBasketCount(requestParameters, options) {
|
|
1867
|
-
return localVarFp.getBasketCount(requestParameters.
|
|
1852
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1853
|
+
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1868
1854
|
},
|
|
1869
1855
|
/**
|
|
1870
1856
|
*
|
|
@@ -1921,8 +1907,8 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1921
1907
|
* @throws {RequiredError}
|
|
1922
1908
|
* @memberof BasketApi
|
|
1923
1909
|
*/
|
|
1924
|
-
getBasket(requestParameters, options) {
|
|
1925
|
-
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.
|
|
1910
|
+
getBasket(requestParameters = {}, options) {
|
|
1911
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1926
1912
|
}
|
|
1927
1913
|
/**
|
|
1928
1914
|
*
|
|
@@ -1931,8 +1917,8 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1931
1917
|
* @throws {RequiredError}
|
|
1932
1918
|
* @memberof BasketApi
|
|
1933
1919
|
*/
|
|
1934
|
-
getBasketCount(requestParameters, options) {
|
|
1935
|
-
return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.
|
|
1920
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1921
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1936
1922
|
}
|
|
1937
1923
|
/**
|
|
1938
1924
|
*
|
|
@@ -2511,6 +2497,36 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2511
2497
|
options: localVarRequestOptions,
|
|
2512
2498
|
};
|
|
2513
2499
|
},
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @param {string} companyId
|
|
2503
|
+
* @param {*} [options] Override http request option.
|
|
2504
|
+
* @throws {RequiredError}
|
|
2505
|
+
*/
|
|
2506
|
+
getAllCategoriesTree: async (companyId, options = {}) => {
|
|
2507
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2508
|
+
(0, common_1.assertParamExists)('getAllCategoriesTree', 'companyId', companyId);
|
|
2509
|
+
const localVarPath = `/api/categories/get/all-tree`;
|
|
2510
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2511
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2512
|
+
let baseOptions;
|
|
2513
|
+
if (configuration) {
|
|
2514
|
+
baseOptions = configuration.baseOptions;
|
|
2515
|
+
}
|
|
2516
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2517
|
+
const localVarHeaderParameter = {};
|
|
2518
|
+
const localVarQueryParameter = {};
|
|
2519
|
+
if (companyId !== undefined) {
|
|
2520
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
2521
|
+
}
|
|
2522
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2524
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2525
|
+
return {
|
|
2526
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2527
|
+
options: localVarRequestOptions,
|
|
2528
|
+
};
|
|
2529
|
+
},
|
|
2514
2530
|
/**
|
|
2515
2531
|
*
|
|
2516
2532
|
* @param {number} [page]
|
|
@@ -2720,6 +2736,18 @@ const CategoryApiFp = function (configuration) {
|
|
|
2720
2736
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2721
2737
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2722
2738
|
},
|
|
2739
|
+
/**
|
|
2740
|
+
*
|
|
2741
|
+
* @param {string} companyId
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
*/
|
|
2745
|
+
async getAllCategoriesTree(companyId, options) {
|
|
2746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
|
|
2747
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2748
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
|
|
2749
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2750
|
+
},
|
|
2723
2751
|
/**
|
|
2724
2752
|
*
|
|
2725
2753
|
* @param {number} [page]
|
|
@@ -2816,6 +2844,15 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2816
2844
|
getAllCategories(requestParameters, options) {
|
|
2817
2845
|
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2818
2846
|
},
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2850
|
+
* @param {*} [options] Override http request option.
|
|
2851
|
+
* @throws {RequiredError}
|
|
2852
|
+
*/
|
|
2853
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2854
|
+
return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2855
|
+
},
|
|
2819
2856
|
/**
|
|
2820
2857
|
*
|
|
2821
2858
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -2892,6 +2929,16 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2892
2929
|
getAllCategories(requestParameters, options) {
|
|
2893
2930
|
return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2894
2931
|
}
|
|
2932
|
+
/**
|
|
2933
|
+
*
|
|
2934
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2935
|
+
* @param {*} [options] Override http request option.
|
|
2936
|
+
* @throws {RequiredError}
|
|
2937
|
+
* @memberof CategoryApi
|
|
2938
|
+
*/
|
|
2939
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2940
|
+
return (0, exports.CategoryApiFp)(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2941
|
+
}
|
|
2895
2942
|
/**
|
|
2896
2943
|
*
|
|
2897
2944
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -5442,6 +5489,34 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
5442
5489
|
options: localVarRequestOptions,
|
|
5443
5490
|
};
|
|
5444
5491
|
},
|
|
5492
|
+
/**
|
|
5493
|
+
*
|
|
5494
|
+
* @param {string} key
|
|
5495
|
+
* @param {*} [options] Override http request option.
|
|
5496
|
+
* @throws {RequiredError}
|
|
5497
|
+
*/
|
|
5498
|
+
downloadFile: async (key, options = {}) => {
|
|
5499
|
+
// verify required parameter 'key' is not null or undefined
|
|
5500
|
+
(0, common_1.assertParamExists)('downloadFile', 'key', key);
|
|
5501
|
+
const localVarPath = `/api/files/{key}/download`
|
|
5502
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
5503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5505
|
+
let baseOptions;
|
|
5506
|
+
if (configuration) {
|
|
5507
|
+
baseOptions = configuration.baseOptions;
|
|
5508
|
+
}
|
|
5509
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5510
|
+
const localVarHeaderParameter = {};
|
|
5511
|
+
const localVarQueryParameter = {};
|
|
5512
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5514
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5515
|
+
return {
|
|
5516
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5517
|
+
options: localVarRequestOptions,
|
|
5518
|
+
};
|
|
5519
|
+
},
|
|
5445
5520
|
/**
|
|
5446
5521
|
*
|
|
5447
5522
|
* @param {string} id
|
|
@@ -5648,6 +5723,18 @@ const FileApiFp = function (configuration) {
|
|
|
5648
5723
|
const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.deleteFile']?.[localVarOperationServerIndex]?.url;
|
|
5649
5724
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5650
5725
|
},
|
|
5726
|
+
/**
|
|
5727
|
+
*
|
|
5728
|
+
* @param {string} key
|
|
5729
|
+
* @param {*} [options] Override http request option.
|
|
5730
|
+
* @throws {RequiredError}
|
|
5731
|
+
*/
|
|
5732
|
+
async downloadFile(key, options) {
|
|
5733
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(key, options);
|
|
5734
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5735
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.downloadFile']?.[localVarOperationServerIndex]?.url;
|
|
5736
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5737
|
+
},
|
|
5651
5738
|
/**
|
|
5652
5739
|
*
|
|
5653
5740
|
* @param {string} id
|
|
@@ -5729,6 +5816,15 @@ const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
5729
5816
|
deleteFile(requestParameters, options) {
|
|
5730
5817
|
return localVarFp.deleteFile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5731
5818
|
},
|
|
5819
|
+
/**
|
|
5820
|
+
*
|
|
5821
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
5822
|
+
* @param {*} [options] Override http request option.
|
|
5823
|
+
* @throws {RequiredError}
|
|
5824
|
+
*/
|
|
5825
|
+
downloadFile(requestParameters, options) {
|
|
5826
|
+
return localVarFp.downloadFile(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
5827
|
+
},
|
|
5732
5828
|
/**
|
|
5733
5829
|
*
|
|
5734
5830
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
|
@@ -5785,6 +5881,16 @@ class FileApi extends base_1.BaseAPI {
|
|
|
5785
5881
|
deleteFile(requestParameters, options) {
|
|
5786
5882
|
return (0, exports.FileApiFp)(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5787
5883
|
}
|
|
5884
|
+
/**
|
|
5885
|
+
*
|
|
5886
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
5887
|
+
* @param {*} [options] Override http request option.
|
|
5888
|
+
* @throws {RequiredError}
|
|
5889
|
+
* @memberof FileApi
|
|
5890
|
+
*/
|
|
5891
|
+
downloadFile(requestParameters, options) {
|
|
5892
|
+
return (0, exports.FileApiFp)(this.configuration).downloadFile(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
5893
|
+
}
|
|
5788
5894
|
/**
|
|
5789
5895
|
*
|
|
5790
5896
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -1587,14 +1587,11 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1587
1587
|
},
|
|
1588
1588
|
/**
|
|
1589
1589
|
*
|
|
1590
|
-
* @param {string} domain
|
|
1591
1590
|
* @param {string} [id]
|
|
1592
1591
|
* @param {*} [options] Override http request option.
|
|
1593
1592
|
* @throws {RequiredError}
|
|
1594
1593
|
*/
|
|
1595
|
-
getBasket: async (
|
|
1596
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1597
|
-
assertParamExists('getBasket', 'domain', domain);
|
|
1594
|
+
getBasket: async (id, options = {}) => {
|
|
1598
1595
|
const localVarPath = `/api/baskets/single`;
|
|
1599
1596
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1600
1597
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1605,9 +1602,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1605
1602
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1606
1603
|
const localVarHeaderParameter = {};
|
|
1607
1604
|
const localVarQueryParameter = {};
|
|
1608
|
-
if (domain !== undefined) {
|
|
1609
|
-
localVarQueryParameter['domain'] = domain;
|
|
1610
|
-
}
|
|
1611
1605
|
if (id !== undefined) {
|
|
1612
1606
|
localVarQueryParameter['id'] = id;
|
|
1613
1607
|
}
|
|
@@ -1621,14 +1615,11 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1621
1615
|
},
|
|
1622
1616
|
/**
|
|
1623
1617
|
*
|
|
1624
|
-
* @param {string} domain
|
|
1625
1618
|
* @param {string} [id]
|
|
1626
1619
|
* @param {*} [options] Override http request option.
|
|
1627
1620
|
* @throws {RequiredError}
|
|
1628
1621
|
*/
|
|
1629
|
-
getBasketCount: async (
|
|
1630
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1631
|
-
assertParamExists('getBasketCount', 'domain', domain);
|
|
1622
|
+
getBasketCount: async (id, options = {}) => {
|
|
1632
1623
|
const localVarPath = `/api/baskets/count`;
|
|
1633
1624
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1634
1625
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1639,9 +1630,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1639
1630
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1640
1631
|
const localVarHeaderParameter = {};
|
|
1641
1632
|
const localVarQueryParameter = {};
|
|
1642
|
-
if (domain !== undefined) {
|
|
1643
|
-
localVarQueryParameter['domain'] = domain;
|
|
1644
|
-
}
|
|
1645
1633
|
if (id !== undefined) {
|
|
1646
1634
|
localVarQueryParameter['id'] = id;
|
|
1647
1635
|
}
|
|
@@ -1751,26 +1739,24 @@ export const BasketApiFp = function (configuration) {
|
|
|
1751
1739
|
},
|
|
1752
1740
|
/**
|
|
1753
1741
|
*
|
|
1754
|
-
* @param {string} domain
|
|
1755
1742
|
* @param {string} [id]
|
|
1756
1743
|
* @param {*} [options] Override http request option.
|
|
1757
1744
|
* @throws {RequiredError}
|
|
1758
1745
|
*/
|
|
1759
|
-
async getBasket(
|
|
1760
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(
|
|
1746
|
+
async getBasket(id, options) {
|
|
1747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1761
1748
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1762
1749
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1763
1750
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1764
1751
|
},
|
|
1765
1752
|
/**
|
|
1766
1753
|
*
|
|
1767
|
-
* @param {string} domain
|
|
1768
1754
|
* @param {string} [id]
|
|
1769
1755
|
* @param {*} [options] Override http request option.
|
|
1770
1756
|
* @throws {RequiredError}
|
|
1771
1757
|
*/
|
|
1772
|
-
async getBasketCount(
|
|
1773
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(
|
|
1758
|
+
async getBasketCount(id, options) {
|
|
1759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1774
1760
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1775
1761
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1776
1762
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1833,8 +1819,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1833
1819
|
* @param {*} [options] Override http request option.
|
|
1834
1820
|
* @throws {RequiredError}
|
|
1835
1821
|
*/
|
|
1836
|
-
getBasket(requestParameters, options) {
|
|
1837
|
-
return localVarFp.getBasket(requestParameters.
|
|
1822
|
+
getBasket(requestParameters = {}, options) {
|
|
1823
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1838
1824
|
},
|
|
1839
1825
|
/**
|
|
1840
1826
|
*
|
|
@@ -1842,8 +1828,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1842
1828
|
* @param {*} [options] Override http request option.
|
|
1843
1829
|
* @throws {RequiredError}
|
|
1844
1830
|
*/
|
|
1845
|
-
getBasketCount(requestParameters, options) {
|
|
1846
|
-
return localVarFp.getBasketCount(requestParameters.
|
|
1831
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1832
|
+
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1847
1833
|
},
|
|
1848
1834
|
/**
|
|
1849
1835
|
*
|
|
@@ -1899,8 +1885,8 @@ export class BasketApi extends BaseAPI {
|
|
|
1899
1885
|
* @throws {RequiredError}
|
|
1900
1886
|
* @memberof BasketApi
|
|
1901
1887
|
*/
|
|
1902
|
-
getBasket(requestParameters, options) {
|
|
1903
|
-
return BasketApiFp(this.configuration).getBasket(requestParameters.
|
|
1888
|
+
getBasket(requestParameters = {}, options) {
|
|
1889
|
+
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1904
1890
|
}
|
|
1905
1891
|
/**
|
|
1906
1892
|
*
|
|
@@ -1909,8 +1895,8 @@ export class BasketApi extends BaseAPI {
|
|
|
1909
1895
|
* @throws {RequiredError}
|
|
1910
1896
|
* @memberof BasketApi
|
|
1911
1897
|
*/
|
|
1912
|
-
getBasketCount(requestParameters, options) {
|
|
1913
|
-
return BasketApiFp(this.configuration).getBasketCount(requestParameters.
|
|
1898
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1899
|
+
return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1914
1900
|
}
|
|
1915
1901
|
/**
|
|
1916
1902
|
*
|
|
@@ -2484,6 +2470,36 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2484
2470
|
options: localVarRequestOptions,
|
|
2485
2471
|
};
|
|
2486
2472
|
},
|
|
2473
|
+
/**
|
|
2474
|
+
*
|
|
2475
|
+
* @param {string} companyId
|
|
2476
|
+
* @param {*} [options] Override http request option.
|
|
2477
|
+
* @throws {RequiredError}
|
|
2478
|
+
*/
|
|
2479
|
+
getAllCategoriesTree: async (companyId, options = {}) => {
|
|
2480
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2481
|
+
assertParamExists('getAllCategoriesTree', 'companyId', companyId);
|
|
2482
|
+
const localVarPath = `/api/categories/get/all-tree`;
|
|
2483
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2484
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2485
|
+
let baseOptions;
|
|
2486
|
+
if (configuration) {
|
|
2487
|
+
baseOptions = configuration.baseOptions;
|
|
2488
|
+
}
|
|
2489
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2490
|
+
const localVarHeaderParameter = {};
|
|
2491
|
+
const localVarQueryParameter = {};
|
|
2492
|
+
if (companyId !== undefined) {
|
|
2493
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
2494
|
+
}
|
|
2495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2497
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2498
|
+
return {
|
|
2499
|
+
url: toPathString(localVarUrlObj),
|
|
2500
|
+
options: localVarRequestOptions,
|
|
2501
|
+
};
|
|
2502
|
+
},
|
|
2487
2503
|
/**
|
|
2488
2504
|
*
|
|
2489
2505
|
* @param {number} [page]
|
|
@@ -2692,6 +2708,18 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2692
2708
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2693
2709
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2694
2710
|
},
|
|
2711
|
+
/**
|
|
2712
|
+
*
|
|
2713
|
+
* @param {string} companyId
|
|
2714
|
+
* @param {*} [options] Override http request option.
|
|
2715
|
+
* @throws {RequiredError}
|
|
2716
|
+
*/
|
|
2717
|
+
async getAllCategoriesTree(companyId, options) {
|
|
2718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
|
|
2719
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2720
|
+
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
|
|
2721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2722
|
+
},
|
|
2695
2723
|
/**
|
|
2696
2724
|
*
|
|
2697
2725
|
* @param {number} [page]
|
|
@@ -2787,6 +2815,15 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2787
2815
|
getAllCategories(requestParameters, options) {
|
|
2788
2816
|
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2789
2817
|
},
|
|
2818
|
+
/**
|
|
2819
|
+
*
|
|
2820
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2821
|
+
* @param {*} [options] Override http request option.
|
|
2822
|
+
* @throws {RequiredError}
|
|
2823
|
+
*/
|
|
2824
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2825
|
+
return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2826
|
+
},
|
|
2790
2827
|
/**
|
|
2791
2828
|
*
|
|
2792
2829
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -2862,6 +2899,16 @@ export class CategoryApi extends BaseAPI {
|
|
|
2862
2899
|
getAllCategories(requestParameters, options) {
|
|
2863
2900
|
return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2864
2901
|
}
|
|
2902
|
+
/**
|
|
2903
|
+
*
|
|
2904
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2905
|
+
* @param {*} [options] Override http request option.
|
|
2906
|
+
* @throws {RequiredError}
|
|
2907
|
+
* @memberof CategoryApi
|
|
2908
|
+
*/
|
|
2909
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2910
|
+
return CategoryApiFp(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2911
|
+
}
|
|
2865
2912
|
/**
|
|
2866
2913
|
*
|
|
2867
2914
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -5399,6 +5446,34 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
5399
5446
|
options: localVarRequestOptions,
|
|
5400
5447
|
};
|
|
5401
5448
|
},
|
|
5449
|
+
/**
|
|
5450
|
+
*
|
|
5451
|
+
* @param {string} key
|
|
5452
|
+
* @param {*} [options] Override http request option.
|
|
5453
|
+
* @throws {RequiredError}
|
|
5454
|
+
*/
|
|
5455
|
+
downloadFile: async (key, options = {}) => {
|
|
5456
|
+
// verify required parameter 'key' is not null or undefined
|
|
5457
|
+
assertParamExists('downloadFile', 'key', key);
|
|
5458
|
+
const localVarPath = `/api/files/{key}/download`
|
|
5459
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
5460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5461
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5462
|
+
let baseOptions;
|
|
5463
|
+
if (configuration) {
|
|
5464
|
+
baseOptions = configuration.baseOptions;
|
|
5465
|
+
}
|
|
5466
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5467
|
+
const localVarHeaderParameter = {};
|
|
5468
|
+
const localVarQueryParameter = {};
|
|
5469
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5471
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5472
|
+
return {
|
|
5473
|
+
url: toPathString(localVarUrlObj),
|
|
5474
|
+
options: localVarRequestOptions,
|
|
5475
|
+
};
|
|
5476
|
+
},
|
|
5402
5477
|
/**
|
|
5403
5478
|
*
|
|
5404
5479
|
* @param {string} id
|
|
@@ -5604,6 +5679,18 @@ export const FileApiFp = function (configuration) {
|
|
|
5604
5679
|
const localVarOperationServerBasePath = operationServerMap['FileApi.deleteFile']?.[localVarOperationServerIndex]?.url;
|
|
5605
5680
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5606
5681
|
},
|
|
5682
|
+
/**
|
|
5683
|
+
*
|
|
5684
|
+
* @param {string} key
|
|
5685
|
+
* @param {*} [options] Override http request option.
|
|
5686
|
+
* @throws {RequiredError}
|
|
5687
|
+
*/
|
|
5688
|
+
async downloadFile(key, options) {
|
|
5689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(key, options);
|
|
5690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5691
|
+
const localVarOperationServerBasePath = operationServerMap['FileApi.downloadFile']?.[localVarOperationServerIndex]?.url;
|
|
5692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5693
|
+
},
|
|
5607
5694
|
/**
|
|
5608
5695
|
*
|
|
5609
5696
|
* @param {string} id
|
|
@@ -5684,6 +5771,15 @@ export const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
5684
5771
|
deleteFile(requestParameters, options) {
|
|
5685
5772
|
return localVarFp.deleteFile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5686
5773
|
},
|
|
5774
|
+
/**
|
|
5775
|
+
*
|
|
5776
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
5777
|
+
* @param {*} [options] Override http request option.
|
|
5778
|
+
* @throws {RequiredError}
|
|
5779
|
+
*/
|
|
5780
|
+
downloadFile(requestParameters, options) {
|
|
5781
|
+
return localVarFp.downloadFile(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
5782
|
+
},
|
|
5687
5783
|
/**
|
|
5688
5784
|
*
|
|
5689
5785
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
|
@@ -5739,6 +5835,16 @@ export class FileApi extends BaseAPI {
|
|
|
5739
5835
|
deleteFile(requestParameters, options) {
|
|
5740
5836
|
return FileApiFp(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5741
5837
|
}
|
|
5838
|
+
/**
|
|
5839
|
+
*
|
|
5840
|
+
* @param {FileApiDownloadFileRequest} requestParameters Request parameters.
|
|
5841
|
+
* @param {*} [options] Override http request option.
|
|
5842
|
+
* @throws {RequiredError}
|
|
5843
|
+
* @memberof FileApi
|
|
5844
|
+
*/
|
|
5845
|
+
downloadFile(requestParameters, options) {
|
|
5846
|
+
return FileApiFp(this.configuration).downloadFile(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
5847
|
+
}
|
|
5742
5848
|
/**
|
|
5743
5849
|
*
|
|
5744
5850
|
* @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.41",
|
|
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": "3e80db112700f1d8cb36ee399e03fd2b249aae84"
|
|
41
41
|
}
|