@infisale-client/api-client 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
  *
@@ -10502,23 +10527,23 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
10502
10527
  deleteUser: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10503
10528
  /**
10504
10529
  *
10505
- * @param {string} id
10506
10530
  * @param {*} [options] Override http request option.
10507
10531
  * @throws {RequiredError}
10508
10532
  */
10509
- getUserById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10533
+ getMyAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10510
10534
  /**
10511
10535
  *
10536
+ * @param {string} id
10512
10537
  * @param {*} [options] Override http request option.
10513
10538
  * @throws {RequiredError}
10514
10539
  */
10515
- me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10540
+ getUserById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10516
10541
  /**
10517
10542
  *
10518
10543
  * @param {*} [options] Override http request option.
10519
10544
  * @throws {RequiredError}
10520
10545
  */
10521
- meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10546
+ me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10522
10547
  /**
10523
10548
  *
10524
10549
  * @param {string} id
@@ -10549,23 +10574,23 @@ export declare const UserApiFp: (configuration?: Configuration) => {
10549
10574
  deleteUser(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10550
10575
  /**
10551
10576
  *
10552
- * @param {string} id
10553
10577
  * @param {*} [options] Override http request option.
10554
10578
  * @throws {RequiredError}
10555
10579
  */
10556
- getUserById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10580
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10557
10581
  /**
10558
10582
  *
10583
+ * @param {string} id
10559
10584
  * @param {*} [options] Override http request option.
10560
10585
  * @throws {RequiredError}
10561
10586
  */
10562
- me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10587
+ getUserById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10563
10588
  /**
10564
10589
  *
10565
10590
  * @param {*} [options] Override http request option.
10566
10591
  * @throws {RequiredError}
10567
10592
  */
10568
- meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10593
+ me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10569
10594
  /**
10570
10595
  *
10571
10596
  * @param {string} id
@@ -10596,23 +10621,23 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
10596
10621
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10597
10622
  /**
10598
10623
  *
10599
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10600
10624
  * @param {*} [options] Override http request option.
10601
10625
  * @throws {RequiredError}
10602
10626
  */
10603
- getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10627
+ getMyAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10604
10628
  /**
10605
10629
  *
10630
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10606
10631
  * @param {*} [options] Override http request option.
10607
10632
  * @throws {RequiredError}
10608
10633
  */
10609
- me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10634
+ getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10610
10635
  /**
10611
10636
  *
10612
10637
  * @param {*} [options] Override http request option.
10613
10638
  * @throws {RequiredError}
10614
10639
  */
10615
- meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10640
+ me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10616
10641
  /**
10617
10642
  *
10618
10643
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -10703,26 +10728,26 @@ export declare class UserApi extends BaseAPI {
10703
10728
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10704
10729
  /**
10705
10730
  *
10706
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10707
10731
  * @param {*} [options] Override http request option.
10708
10732
  * @throws {RequiredError}
10709
10733
  * @memberof UserApi
10710
10734
  */
10711
- getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10735
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10712
10736
  /**
10713
10737
  *
10738
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10714
10739
  * @param {*} [options] Override http request option.
10715
10740
  * @throws {RequiredError}
10716
10741
  * @memberof UserApi
10717
10742
  */
10718
- me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10743
+ getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10719
10744
  /**
10720
10745
  *
10721
10746
  * @param {*} [options] Override http request option.
10722
10747
  * @throws {RequiredError}
10723
10748
  * @memberof UserApi
10724
10749
  */
10725
- meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10750
+ me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10726
10751
  /**
10727
10752
  *
10728
10753
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -2914,15 +2914,11 @@ const UserApiAxiosParamCreator = function (configuration) {
2914
2914
  },
2915
2915
  /**
2916
2916
  *
2917
- * @param {string} id
2918
2917
  * @param {*} [options] Override http request option.
2919
2918
  * @throws {RequiredError}
2920
2919
  */
2921
- getUserById: async (id, options = {}) => {
2922
- // verify required parameter 'id' is not null or undefined
2923
- (0, common_1.assertParamExists)('getUserById', 'id', id);
2924
- const localVarPath = `/api/users/{id}`
2925
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2920
+ getMyAddresses: async (options = {}) => {
2921
+ const localVarPath = `/api/users/me/addresses`;
2926
2922
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2927
2923
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2928
2924
  let baseOptions;
@@ -2942,11 +2938,15 @@ const UserApiAxiosParamCreator = function (configuration) {
2942
2938
  },
2943
2939
  /**
2944
2940
  *
2941
+ * @param {string} id
2945
2942
  * @param {*} [options] Override http request option.
2946
2943
  * @throws {RequiredError}
2947
2944
  */
2948
- me: async (options = {}) => {
2949
- const localVarPath = `/api/users/me`;
2945
+ getUserById: async (id, options = {}) => {
2946
+ // verify required parameter 'id' is not null or undefined
2947
+ (0, common_1.assertParamExists)('getUserById', 'id', id);
2948
+ const localVarPath = `/api/users/{id}`
2949
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2950
2950
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2951
2951
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2952
2952
  let baseOptions;
@@ -2969,8 +2969,8 @@ const UserApiAxiosParamCreator = function (configuration) {
2969
2969
  * @param {*} [options] Override http request option.
2970
2970
  * @throws {RequiredError}
2971
2971
  */
2972
- meAddresses: async (options = {}) => {
2973
- const localVarPath = `/api/users/me/addresses`;
2972
+ me: async (options = {}) => {
2973
+ const localVarPath = `/api/users/me`;
2974
2974
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2975
2975
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2976
2976
  let baseOptions;
@@ -3074,25 +3074,25 @@ const UserApiFp = function (configuration) {
3074
3074
  },
3075
3075
  /**
3076
3076
  *
3077
- * @param {string} id
3078
3077
  * @param {*} [options] Override http request option.
3079
3078
  * @throws {RequiredError}
3080
3079
  */
3081
- async getUserById(id, options) {
3082
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
3080
+ async getMyAddresses(options) {
3081
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
3083
3082
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3084
- const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
3083
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
3085
3084
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3086
3085
  },
3087
3086
  /**
3088
3087
  *
3088
+ * @param {string} id
3089
3089
  * @param {*} [options] Override http request option.
3090
3090
  * @throws {RequiredError}
3091
3091
  */
3092
- async me(options) {
3093
- const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
3092
+ async getUserById(id, options) {
3093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
3094
3094
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3095
- const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3095
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
3096
3096
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3097
3097
  },
3098
3098
  /**
@@ -3100,10 +3100,10 @@ const UserApiFp = function (configuration) {
3100
3100
  * @param {*} [options] Override http request option.
3101
3101
  * @throws {RequiredError}
3102
3102
  */
3103
- async meAddresses(options) {
3104
- const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
3103
+ async me(options) {
3104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
3105
3105
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3106
- const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
3106
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3107
3107
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3108
3108
  },
3109
3109
  /**
@@ -3152,28 +3152,28 @@ const UserApiFactory = function (configuration, basePath, axios) {
3152
3152
  },
3153
3153
  /**
3154
3154
  *
3155
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3156
3155
  * @param {*} [options] Override http request option.
3157
3156
  * @throws {RequiredError}
3158
3157
  */
3159
- getUserById(requestParameters, options) {
3160
- return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
3158
+ getMyAddresses(options) {
3159
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
3161
3160
  },
3162
3161
  /**
3163
3162
  *
3163
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3164
3164
  * @param {*} [options] Override http request option.
3165
3165
  * @throws {RequiredError}
3166
3166
  */
3167
- me(options) {
3168
- return localVarFp.me(options).then((request) => request(axios, basePath));
3167
+ getUserById(requestParameters, options) {
3168
+ return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
3169
3169
  },
3170
3170
  /**
3171
3171
  *
3172
3172
  * @param {*} [options] Override http request option.
3173
3173
  * @throws {RequiredError}
3174
3174
  */
3175
- meAddresses(options) {
3176
- return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
3175
+ me(options) {
3176
+ return localVarFp.me(options).then((request) => request(axios, basePath));
3177
3177
  },
3178
3178
  /**
3179
3179
  *
@@ -3215,22 +3215,22 @@ class UserApi extends base_1.BaseAPI {
3215
3215
  }
3216
3216
  /**
3217
3217
  *
3218
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3219
3218
  * @param {*} [options] Override http request option.
3220
3219
  * @throws {RequiredError}
3221
3220
  * @memberof UserApi
3222
3221
  */
3223
- getUserById(requestParameters, options) {
3224
- return (0, exports.UserApiFp)(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3222
+ getMyAddresses(options) {
3223
+ return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
3225
3224
  }
3226
3225
  /**
3227
3226
  *
3227
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3228
3228
  * @param {*} [options] Override http request option.
3229
3229
  * @throws {RequiredError}
3230
3230
  * @memberof UserApi
3231
3231
  */
3232
- me(options) {
3233
- return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3232
+ getUserById(requestParameters, options) {
3233
+ return (0, exports.UserApiFp)(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3234
3234
  }
3235
3235
  /**
3236
3236
  *
@@ -3238,8 +3238,8 @@ class UserApi extends base_1.BaseAPI {
3238
3238
  * @throws {RequiredError}
3239
3239
  * @memberof UserApi
3240
3240
  */
3241
- meAddresses(options) {
3242
- return (0, exports.UserApiFp)(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
3241
+ me(options) {
3242
+ return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3243
3243
  }
3244
3244
  /**
3245
3245
  *
package/dist/api/api.mjs CHANGED
@@ -2868,15 +2868,11 @@ export const UserApiAxiosParamCreator = function (configuration) {
2868
2868
  },
2869
2869
  /**
2870
2870
  *
2871
- * @param {string} id
2872
2871
  * @param {*} [options] Override http request option.
2873
2872
  * @throws {RequiredError}
2874
2873
  */
2875
- getUserById: async (id, options = {}) => {
2876
- // verify required parameter 'id' is not null or undefined
2877
- assertParamExists('getUserById', 'id', id);
2878
- const localVarPath = `/api/users/{id}`
2879
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2874
+ getMyAddresses: async (options = {}) => {
2875
+ const localVarPath = `/api/users/me/addresses`;
2880
2876
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2881
2877
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2882
2878
  let baseOptions;
@@ -2896,11 +2892,15 @@ export const UserApiAxiosParamCreator = function (configuration) {
2896
2892
  },
2897
2893
  /**
2898
2894
  *
2895
+ * @param {string} id
2899
2896
  * @param {*} [options] Override http request option.
2900
2897
  * @throws {RequiredError}
2901
2898
  */
2902
- me: async (options = {}) => {
2903
- const localVarPath = `/api/users/me`;
2899
+ getUserById: async (id, options = {}) => {
2900
+ // verify required parameter 'id' is not null or undefined
2901
+ assertParamExists('getUserById', 'id', id);
2902
+ const localVarPath = `/api/users/{id}`
2903
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2904
2904
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2905
2905
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2906
2906
  let baseOptions;
@@ -2923,8 +2923,8 @@ export const UserApiAxiosParamCreator = function (configuration) {
2923
2923
  * @param {*} [options] Override http request option.
2924
2924
  * @throws {RequiredError}
2925
2925
  */
2926
- meAddresses: async (options = {}) => {
2927
- const localVarPath = `/api/users/me/addresses`;
2926
+ me: async (options = {}) => {
2927
+ const localVarPath = `/api/users/me`;
2928
2928
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2929
2929
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2930
2930
  let baseOptions;
@@ -3027,25 +3027,25 @@ export const UserApiFp = function (configuration) {
3027
3027
  },
3028
3028
  /**
3029
3029
  *
3030
- * @param {string} id
3031
3030
  * @param {*} [options] Override http request option.
3032
3031
  * @throws {RequiredError}
3033
3032
  */
3034
- async getUserById(id, options) {
3035
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
3033
+ async getMyAddresses(options) {
3034
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
3036
3035
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3037
- const localVarOperationServerBasePath = operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
3036
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
3038
3037
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3039
3038
  },
3040
3039
  /**
3041
3040
  *
3041
+ * @param {string} id
3042
3042
  * @param {*} [options] Override http request option.
3043
3043
  * @throws {RequiredError}
3044
3044
  */
3045
- async me(options) {
3046
- const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
3045
+ async getUserById(id, options) {
3046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
3047
3047
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3048
- const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3048
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
3049
3049
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3050
3050
  },
3051
3051
  /**
@@ -3053,10 +3053,10 @@ export const UserApiFp = function (configuration) {
3053
3053
  * @param {*} [options] Override http request option.
3054
3054
  * @throws {RequiredError}
3055
3055
  */
3056
- async meAddresses(options) {
3057
- const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
3056
+ async me(options) {
3057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
3058
3058
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3059
- const localVarOperationServerBasePath = operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
3059
+ const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3060
3060
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3061
3061
  },
3062
3062
  /**
@@ -3104,28 +3104,28 @@ export const UserApiFactory = function (configuration, basePath, axios) {
3104
3104
  },
3105
3105
  /**
3106
3106
  *
3107
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3108
3107
  * @param {*} [options] Override http request option.
3109
3108
  * @throws {RequiredError}
3110
3109
  */
3111
- getUserById(requestParameters, options) {
3112
- return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
3110
+ getMyAddresses(options) {
3111
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
3113
3112
  },
3114
3113
  /**
3115
3114
  *
3115
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3116
3116
  * @param {*} [options] Override http request option.
3117
3117
  * @throws {RequiredError}
3118
3118
  */
3119
- me(options) {
3120
- return localVarFp.me(options).then((request) => request(axios, basePath));
3119
+ getUserById(requestParameters, options) {
3120
+ return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
3121
3121
  },
3122
3122
  /**
3123
3123
  *
3124
3124
  * @param {*} [options] Override http request option.
3125
3125
  * @throws {RequiredError}
3126
3126
  */
3127
- meAddresses(options) {
3128
- return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
3127
+ me(options) {
3128
+ return localVarFp.me(options).then((request) => request(axios, basePath));
3129
3129
  },
3130
3130
  /**
3131
3131
  *
@@ -3166,22 +3166,22 @@ export class UserApi extends BaseAPI {
3166
3166
  }
3167
3167
  /**
3168
3168
  *
3169
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3170
3169
  * @param {*} [options] Override http request option.
3171
3170
  * @throws {RequiredError}
3172
3171
  * @memberof UserApi
3173
3172
  */
3174
- getUserById(requestParameters, options) {
3175
- return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3173
+ getMyAddresses(options) {
3174
+ return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
3176
3175
  }
3177
3176
  /**
3178
3177
  *
3178
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
3179
3179
  * @param {*} [options] Override http request option.
3180
3180
  * @throws {RequiredError}
3181
3181
  * @memberof UserApi
3182
3182
  */
3183
- me(options) {
3184
- return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3183
+ getUserById(requestParameters, options) {
3184
+ return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3185
3185
  }
3186
3186
  /**
3187
3187
  *
@@ -3189,8 +3189,8 @@ export class UserApi extends BaseAPI {
3189
3189
  * @throws {RequiredError}
3190
3190
  * @memberof UserApi
3191
3191
  */
3192
- meAddresses(options) {
3193
- return UserApiFp(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
3192
+ me(options) {
3193
+ return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3194
3194
  }
3195
3195
  /**
3196
3196
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "api-client-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
  }