@infisale-client/api 1.2.11 → 1.2.13

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 CHANGED
@@ -622,6 +622,19 @@ export interface IAllProductsResponse {
622
622
  */
623
623
  'data': Array<PickIProductIdOrContentsOrCollectionsOrCategory>;
624
624
  }
625
+ /**
626
+ *
627
+ * @export
628
+ * @interface IBasketCountResponse
629
+ */
630
+ export interface IBasketCountResponse {
631
+ /**
632
+ *
633
+ * @type {number}
634
+ * @memberof IBasketCountResponse
635
+ */
636
+ 'productCount': number;
637
+ }
625
638
  /**
626
639
  *
627
640
  * @export
@@ -6725,10 +6738,10 @@ export interface IThemesResponse {
6725
6738
  export interface IUserAddressResponse {
6726
6739
  /**
6727
6740
  *
6728
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6741
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6729
6742
  * @memberof IUserAddressResponse
6730
6743
  */
6731
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6744
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6732
6745
  }
6733
6746
  /**
6734
6747
  *
@@ -6821,6 +6834,12 @@ export interface IUserPatchRequest {
6821
6834
  * @memberof IUserPatchRequest
6822
6835
  */
6823
6836
  'roles'?: Array<UserRoleEnum>;
6837
+ /**
6838
+ *
6839
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6840
+ * @memberof IUserPatchRequest
6841
+ */
6842
+ 'addresses'?: Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6824
6843
  }
6825
6844
  /**
6826
6845
  *
@@ -6915,10 +6934,10 @@ export interface IUserResponse {
6915
6934
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6916
6935
  /**
6917
6936
  *
6918
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6937
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6919
6938
  * @memberof IUserResponse
6920
6939
  */
6921
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6940
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6922
6941
  /**
6923
6942
  *
6924
6943
  * @type {UserStatusEnum}
@@ -8325,10 +8344,10 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8325
8344
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8326
8345
  /**
8327
8346
  *
8328
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8347
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
8329
8348
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8330
8349
  */
8331
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8350
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
8332
8351
  /**
8333
8352
  *
8334
8353
  * @type {UserStatusEnum}
@@ -8363,57 +8382,63 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8363
8382
  /**
8364
8383
  *
8365
8384
  * @export
8366
- * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8385
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8367
8386
  */
8368
- export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
8387
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner {
8369
8388
  /**
8370
8389
  *
8371
8390
  * @type {string}
8372
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8391
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8373
8392
  */
8374
8393
  'phone': string;
8375
8394
  /**
8376
8395
  *
8377
8396
  * @type {string}
8378
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8397
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8379
8398
  */
8380
8399
  'address': string;
8381
8400
  /**
8382
8401
  *
8383
8402
  * @type {string}
8384
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8403
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8385
8404
  */
8386
8405
  'state': string;
8387
8406
  /**
8388
8407
  *
8389
8408
  * @type {string}
8390
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8409
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8391
8410
  */
8392
8411
  'city': string;
8393
8412
  /**
8394
8413
  *
8395
8414
  * @type {string}
8396
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8415
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8397
8416
  */
8398
8417
  'country': string;
8399
8418
  /**
8400
8419
  *
8401
8420
  * @type {string}
8402
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8421
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8403
8422
  */
8404
8423
  'surname': string;
8405
8424
  /**
8406
8425
  *
8407
8426
  * @type {string}
8408
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8427
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8409
8428
  */
8410
8429
  'name': string;
8411
8430
  /**
8412
8431
  *
8413
8432
  * @type {string}
8414
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8433
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8415
8434
  */
8416
8435
  'title': string;
8436
+ /**
8437
+ *
8438
+ * @type {string}
8439
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8440
+ */
8441
+ '_id': string;
8417
8442
  }
8418
8443
  /**
8419
8444
  *
@@ -9304,6 +9329,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
9304
9329
  * @throws {RequiredError}
9305
9330
  */
9306
9331
  getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9332
+ /**
9333
+ *
9334
+ * @param {string} [id]
9335
+ * @param {*} [options] Override http request option.
9336
+ * @throws {RequiredError}
9337
+ */
9338
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9307
9339
  /**
9308
9340
  *
9309
9341
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9347,6 +9379,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
9347
9379
  * @throws {RequiredError}
9348
9380
  */
9349
9381
  getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
9382
+ /**
9383
+ *
9384
+ * @param {string} [id]
9385
+ * @param {*} [options] Override http request option.
9386
+ * @throws {RequiredError}
9387
+ */
9388
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
9350
9389
  /**
9351
9390
  *
9352
9391
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9389,6 +9428,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
9389
9428
  * @throws {RequiredError}
9390
9429
  */
9391
9430
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
9431
+ /**
9432
+ *
9433
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9434
+ * @param {*} [options] Override http request option.
9435
+ * @throws {RequiredError}
9436
+ */
9437
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
9392
9438
  /**
9393
9439
  *
9394
9440
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -9449,6 +9495,19 @@ export interface BasketApiGetBasketRequest {
9449
9495
  */
9450
9496
  readonly id?: string;
9451
9497
  }
9498
+ /**
9499
+ * Request parameters for getBasketCount operation in BasketApi.
9500
+ * @export
9501
+ * @interface BasketApiGetBasketCountRequest
9502
+ */
9503
+ export interface BasketApiGetBasketCountRequest {
9504
+ /**
9505
+ *
9506
+ * @type {string}
9507
+ * @memberof BasketApiGetBasketCount
9508
+ */
9509
+ readonly id?: string;
9510
+ }
9452
9511
  /**
9453
9512
  * Request parameters for mergeBasket operation in BasketApi.
9454
9513
  * @export
@@ -9512,6 +9571,14 @@ export declare class BasketApi extends BaseAPI {
9512
9571
  * @memberof BasketApi
9513
9572
  */
9514
9573
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
9574
+ /**
9575
+ *
9576
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9577
+ * @param {*} [options] Override http request option.
9578
+ * @throws {RequiredError}
9579
+ * @memberof BasketApi
9580
+ */
9581
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
9515
9582
  /**
9516
9583
  *
9517
9584
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -15287,6 +15354,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15287
15354
  * @throws {RequiredError}
15288
15355
  */
15289
15356
  deleteUser: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15357
+ /**
15358
+ *
15359
+ * @param {*} [options] Override http request option.
15360
+ * @throws {RequiredError}
15361
+ */
15362
+ getMyAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15290
15363
  /**
15291
15364
  *
15292
15365
  * @param {string} id
@@ -15324,12 +15397,6 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15324
15397
  * @throws {RequiredError}
15325
15398
  */
15326
15399
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15327
- /**
15328
- *
15329
- * @param {*} [options] Override http request option.
15330
- * @throws {RequiredError}
15331
- */
15332
- meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15333
15400
  /**
15334
15401
  *
15335
15402
  * @param {string} id
@@ -15372,6 +15439,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15372
15439
  * @throws {RequiredError}
15373
15440
  */
15374
15441
  deleteUser(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
15442
+ /**
15443
+ *
15444
+ * @param {*} [options] Override http request option.
15445
+ * @throws {RequiredError}
15446
+ */
15447
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
15375
15448
  /**
15376
15449
  *
15377
15450
  * @param {string} id
@@ -15409,12 +15482,6 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15409
15482
  * @throws {RequiredError}
15410
15483
  */
15411
15484
  me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
15412
- /**
15413
- *
15414
- * @param {*} [options] Override http request option.
15415
- * @throws {RequiredError}
15416
- */
15417
- meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
15418
15485
  /**
15419
15486
  *
15420
15487
  * @param {string} id
@@ -15457,6 +15524,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15457
15524
  * @throws {RequiredError}
15458
15525
  */
15459
15526
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15527
+ /**
15528
+ *
15529
+ * @param {*} [options] Override http request option.
15530
+ * @throws {RequiredError}
15531
+ */
15532
+ getMyAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15460
15533
  /**
15461
15534
  *
15462
15535
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15484,12 +15557,6 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15484
15557
  * @throws {RequiredError}
15485
15558
  */
15486
15559
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15487
- /**
15488
- *
15489
- * @param {*} [options] Override http request option.
15490
- * @throws {RequiredError}
15491
- */
15492
- meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15493
15560
  /**
15494
15561
  *
15495
15562
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -15705,6 +15772,13 @@ export declare class UserApi extends BaseAPI {
15705
15772
  * @memberof UserApi
15706
15773
  */
15707
15774
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
15775
+ /**
15776
+ *
15777
+ * @param {*} [options] Override http request option.
15778
+ * @throws {RequiredError}
15779
+ * @memberof UserApi
15780
+ */
15781
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
15708
15782
  /**
15709
15783
  *
15710
15784
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15736,13 +15810,6 @@ export declare class UserApi extends BaseAPI {
15736
15810
  * @memberof UserApi
15737
15811
  */
15738
15812
  me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
15739
- /**
15740
- *
15741
- * @param {*} [options] Override http request option.
15742
- * @throws {RequiredError}
15743
- * @memberof UserApi
15744
- */
15745
- meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
15746
15813
  /**
15747
15814
  *
15748
15815
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1503,6 +1503,34 @@ const BasketApiAxiosParamCreator = function (configuration) {
1503
1503
  options: localVarRequestOptions,
1504
1504
  };
1505
1505
  },
1506
+ /**
1507
+ *
1508
+ * @param {string} [id]
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ getBasketCount: async (id, options = {}) => {
1513
+ const localVarPath = `/api/baskets/count`;
1514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1516
+ let baseOptions;
1517
+ if (configuration) {
1518
+ baseOptions = configuration.baseOptions;
1519
+ }
1520
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1521
+ const localVarHeaderParameter = {};
1522
+ const localVarQueryParameter = {};
1523
+ if (id !== undefined) {
1524
+ localVarQueryParameter['id'] = id;
1525
+ }
1526
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1528
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1529
+ return {
1530
+ url: (0, common_1.toPathString)(localVarUrlObj),
1531
+ options: localVarRequestOptions,
1532
+ };
1533
+ },
1506
1534
  /**
1507
1535
  *
1508
1536
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1612,6 +1640,18 @@ const BasketApiFp = function (configuration) {
1612
1640
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1613
1641
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1614
1642
  },
1643
+ /**
1644
+ *
1645
+ * @param {string} [id]
1646
+ * @param {*} [options] Override http request option.
1647
+ * @throws {RequiredError}
1648
+ */
1649
+ async getBasketCount(id, options) {
1650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1651
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1652
+ const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1653
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1654
+ },
1615
1655
  /**
1616
1656
  *
1617
1657
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1674,6 +1714,15 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1674
1714
  getBasket(requestParameters = {}, options) {
1675
1715
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1676
1716
  },
1717
+ /**
1718
+ *
1719
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1720
+ * @param {*} [options] Override http request option.
1721
+ * @throws {RequiredError}
1722
+ */
1723
+ getBasketCount(requestParameters = {}, options) {
1724
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1725
+ },
1677
1726
  /**
1678
1727
  *
1679
1728
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1732,6 +1781,16 @@ class BasketApi extends base_1.BaseAPI {
1732
1781
  getBasket(requestParameters = {}, options) {
1733
1782
  return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1734
1783
  }
1784
+ /**
1785
+ *
1786
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1787
+ * @param {*} [options] Override http request option.
1788
+ * @throws {RequiredError}
1789
+ * @memberof BasketApi
1790
+ */
1791
+ getBasketCount(requestParameters = {}, options) {
1792
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1793
+ }
1735
1794
  /**
1736
1795
  *
1737
1796
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -8976,6 +9035,30 @@ const UserApiAxiosParamCreator = function (configuration) {
8976
9035
  options: localVarRequestOptions,
8977
9036
  };
8978
9037
  },
9038
+ /**
9039
+ *
9040
+ * @param {*} [options] Override http request option.
9041
+ * @throws {RequiredError}
9042
+ */
9043
+ getMyAddresses: async (options = {}) => {
9044
+ const localVarPath = `/api/users/me/addresses`;
9045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9046
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9047
+ let baseOptions;
9048
+ if (configuration) {
9049
+ baseOptions = configuration.baseOptions;
9050
+ }
9051
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9052
+ const localVarHeaderParameter = {};
9053
+ const localVarQueryParameter = {};
9054
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9056
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9057
+ return {
9058
+ url: (0, common_1.toPathString)(localVarUrlObj),
9059
+ options: localVarRequestOptions,
9060
+ };
9061
+ },
8979
9062
  /**
8980
9063
  *
8981
9064
  * @param {string} id
@@ -9128,30 +9211,6 @@ const UserApiAxiosParamCreator = function (configuration) {
9128
9211
  options: localVarRequestOptions,
9129
9212
  };
9130
9213
  },
9131
- /**
9132
- *
9133
- * @param {*} [options] Override http request option.
9134
- * @throws {RequiredError}
9135
- */
9136
- meAddresses: async (options = {}) => {
9137
- const localVarPath = `/api/users/me/addresses`;
9138
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9139
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9140
- let baseOptions;
9141
- if (configuration) {
9142
- baseOptions = configuration.baseOptions;
9143
- }
9144
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9145
- const localVarHeaderParameter = {};
9146
- const localVarQueryParameter = {};
9147
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9148
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9149
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9150
- return {
9151
- url: (0, common_1.toPathString)(localVarUrlObj),
9152
- options: localVarRequestOptions,
9153
- };
9154
- },
9155
9214
  /**
9156
9215
  *
9157
9216
  * @param {string} id
@@ -9276,6 +9335,17 @@ const UserApiFp = function (configuration) {
9276
9335
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.deleteUser']?.[localVarOperationServerIndex]?.url;
9277
9336
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9278
9337
  },
9338
+ /**
9339
+ *
9340
+ * @param {*} [options] Override http request option.
9341
+ * @throws {RequiredError}
9342
+ */
9343
+ async getMyAddresses(options) {
9344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
9345
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9346
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
9347
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9348
+ },
9279
9349
  /**
9280
9350
  *
9281
9351
  * @param {string} id
@@ -9333,17 +9403,6 @@ const UserApiFp = function (configuration) {
9333
9403
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9334
9404
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9335
9405
  },
9336
- /**
9337
- *
9338
- * @param {*} [options] Override http request option.
9339
- * @throws {RequiredError}
9340
- */
9341
- async meAddresses(options) {
9342
- const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
9343
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9344
- const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
9345
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9346
- },
9347
9406
  /**
9348
9407
  *
9349
9408
  * @param {string} id
@@ -9409,6 +9468,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
9409
9468
  deleteUser(requestParameters, options) {
9410
9469
  return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
9411
9470
  },
9471
+ /**
9472
+ *
9473
+ * @param {*} [options] Override http request option.
9474
+ * @throws {RequiredError}
9475
+ */
9476
+ getMyAddresses(options) {
9477
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
9478
+ },
9412
9479
  /**
9413
9480
  *
9414
9481
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9444,14 +9511,6 @@ const UserApiFactory = function (configuration, basePath, axios) {
9444
9511
  me(options) {
9445
9512
  return localVarFp.me(options).then((request) => request(axios, basePath));
9446
9513
  },
9447
- /**
9448
- *
9449
- * @param {*} [options] Override http request option.
9450
- * @throws {RequiredError}
9451
- */
9452
- meAddresses(options) {
9453
- return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
9454
- },
9455
9514
  /**
9456
9515
  *
9457
9516
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9509,6 +9568,15 @@ class UserApi extends base_1.BaseAPI {
9509
9568
  deleteUser(requestParameters, options) {
9510
9569
  return (0, exports.UserApiFp)(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9511
9570
  }
9571
+ /**
9572
+ *
9573
+ * @param {*} [options] Override http request option.
9574
+ * @throws {RequiredError}
9575
+ * @memberof UserApi
9576
+ */
9577
+ getMyAddresses(options) {
9578
+ return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
9579
+ }
9512
9580
  /**
9513
9581
  *
9514
9582
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9548,15 +9616,6 @@ class UserApi extends base_1.BaseAPI {
9548
9616
  me(options) {
9549
9617
  return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9550
9618
  }
9551
- /**
9552
- *
9553
- * @param {*} [options] Override http request option.
9554
- * @throws {RequiredError}
9555
- * @memberof UserApi
9556
- */
9557
- meAddresses(options) {
9558
- return (0, exports.UserApiFp)(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
9559
- }
9560
9619
  /**
9561
9620
  *
9562
9621
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -1484,6 +1484,34 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1484
1484
  options: localVarRequestOptions,
1485
1485
  };
1486
1486
  },
1487
+ /**
1488
+ *
1489
+ * @param {string} [id]
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ getBasketCount: async (id, options = {}) => {
1494
+ const localVarPath = `/api/baskets/count`;
1495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1497
+ let baseOptions;
1498
+ if (configuration) {
1499
+ baseOptions = configuration.baseOptions;
1500
+ }
1501
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1502
+ const localVarHeaderParameter = {};
1503
+ const localVarQueryParameter = {};
1504
+ if (id !== undefined) {
1505
+ localVarQueryParameter['id'] = id;
1506
+ }
1507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1509
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1510
+ return {
1511
+ url: toPathString(localVarUrlObj),
1512
+ options: localVarRequestOptions,
1513
+ };
1514
+ },
1487
1515
  /**
1488
1516
  *
1489
1517
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1592,6 +1620,18 @@ export const BasketApiFp = function (configuration) {
1592
1620
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1593
1621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1594
1622
  },
1623
+ /**
1624
+ *
1625
+ * @param {string} [id]
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ async getBasketCount(id, options) {
1630
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1631
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1632
+ const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1633
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1634
+ },
1595
1635
  /**
1596
1636
  *
1597
1637
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1653,6 +1693,15 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1653
1693
  getBasket(requestParameters = {}, options) {
1654
1694
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1655
1695
  },
1696
+ /**
1697
+ *
1698
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ getBasketCount(requestParameters = {}, options) {
1703
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1704
+ },
1656
1705
  /**
1657
1706
  *
1658
1707
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1710,6 +1759,16 @@ export class BasketApi extends BaseAPI {
1710
1759
  getBasket(requestParameters = {}, options) {
1711
1760
  return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1712
1761
  }
1762
+ /**
1763
+ *
1764
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ * @memberof BasketApi
1768
+ */
1769
+ getBasketCount(requestParameters = {}, options) {
1770
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1771
+ }
1713
1772
  /**
1714
1773
  *
1715
1774
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -8897,6 +8956,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
8897
8956
  options: localVarRequestOptions,
8898
8957
  };
8899
8958
  },
8959
+ /**
8960
+ *
8961
+ * @param {*} [options] Override http request option.
8962
+ * @throws {RequiredError}
8963
+ */
8964
+ getMyAddresses: async (options = {}) => {
8965
+ const localVarPath = `/api/users/me/addresses`;
8966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8968
+ let baseOptions;
8969
+ if (configuration) {
8970
+ baseOptions = configuration.baseOptions;
8971
+ }
8972
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8973
+ const localVarHeaderParameter = {};
8974
+ const localVarQueryParameter = {};
8975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8977
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8978
+ return {
8979
+ url: toPathString(localVarUrlObj),
8980
+ options: localVarRequestOptions,
8981
+ };
8982
+ },
8900
8983
  /**
8901
8984
  *
8902
8985
  * @param {string} id
@@ -9049,30 +9132,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
9049
9132
  options: localVarRequestOptions,
9050
9133
  };
9051
9134
  },
9052
- /**
9053
- *
9054
- * @param {*} [options] Override http request option.
9055
- * @throws {RequiredError}
9056
- */
9057
- meAddresses: async (options = {}) => {
9058
- const localVarPath = `/api/users/me/addresses`;
9059
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9060
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9061
- let baseOptions;
9062
- if (configuration) {
9063
- baseOptions = configuration.baseOptions;
9064
- }
9065
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9066
- const localVarHeaderParameter = {};
9067
- const localVarQueryParameter = {};
9068
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9069
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9070
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9071
- return {
9072
- url: toPathString(localVarUrlObj),
9073
- options: localVarRequestOptions,
9074
- };
9075
- },
9076
9135
  /**
9077
9136
  *
9078
9137
  * @param {string} id
@@ -9196,6 +9255,17 @@ export const UserApiFp = function (configuration) {
9196
9255
  const localVarOperationServerBasePath = operationServerMap['UserApi.deleteUser']?.[localVarOperationServerIndex]?.url;
9197
9256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9198
9257
  },
9258
+ /**
9259
+ *
9260
+ * @param {*} [options] Override http request option.
9261
+ * @throws {RequiredError}
9262
+ */
9263
+ async getMyAddresses(options) {
9264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
9265
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9266
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
9267
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9268
+ },
9199
9269
  /**
9200
9270
  *
9201
9271
  * @param {string} id
@@ -9253,17 +9323,6 @@ export const UserApiFp = function (configuration) {
9253
9323
  const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9254
9324
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9255
9325
  },
9256
- /**
9257
- *
9258
- * @param {*} [options] Override http request option.
9259
- * @throws {RequiredError}
9260
- */
9261
- async meAddresses(options) {
9262
- const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
9263
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9264
- const localVarOperationServerBasePath = operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
9265
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9266
- },
9267
9326
  /**
9268
9327
  *
9269
9328
  * @param {string} id
@@ -9328,6 +9387,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
9328
9387
  deleteUser(requestParameters, options) {
9329
9388
  return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
9330
9389
  },
9390
+ /**
9391
+ *
9392
+ * @param {*} [options] Override http request option.
9393
+ * @throws {RequiredError}
9394
+ */
9395
+ getMyAddresses(options) {
9396
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
9397
+ },
9331
9398
  /**
9332
9399
  *
9333
9400
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9363,14 +9430,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
9363
9430
  me(options) {
9364
9431
  return localVarFp.me(options).then((request) => request(axios, basePath));
9365
9432
  },
9366
- /**
9367
- *
9368
- * @param {*} [options] Override http request option.
9369
- * @throws {RequiredError}
9370
- */
9371
- meAddresses(options) {
9372
- return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
9373
- },
9374
9433
  /**
9375
9434
  *
9376
9435
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9427,6 +9486,15 @@ export class UserApi extends BaseAPI {
9427
9486
  deleteUser(requestParameters, options) {
9428
9487
  return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9429
9488
  }
9489
+ /**
9490
+ *
9491
+ * @param {*} [options] Override http request option.
9492
+ * @throws {RequiredError}
9493
+ * @memberof UserApi
9494
+ */
9495
+ getMyAddresses(options) {
9496
+ return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
9497
+ }
9430
9498
  /**
9431
9499
  *
9432
9500
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9466,15 +9534,6 @@ export class UserApi extends BaseAPI {
9466
9534
  me(options) {
9467
9535
  return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9468
9536
  }
9469
- /**
9470
- *
9471
- * @param {*} [options] Override http request option.
9472
- * @throws {RequiredError}
9473
- * @memberof UserApi
9474
- */
9475
- meAddresses(options) {
9476
- return UserApiFp(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
9477
- }
9478
9537
  /**
9479
9538
  *
9480
9539
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
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": "fac742bf156c1272b8557f12afc438f42ea2e9bc"
40
+ "gitHead": "4129bac48deb35e17c98c2770bda7cf00066ed18"
41
41
  }