@infisale-client/api-client 1.2.10 → 1.2.12

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
@@ -770,6 +770,12 @@ export interface IBasketSummary {
770
770
  * @memberof IBasketSummary
771
771
  */
772
772
  'shipping': number;
773
+ /**
774
+ *
775
+ * @type {boolean}
776
+ * @memberof IBasketSummary
777
+ */
778
+ 'freeShipping': boolean;
773
779
  /**
774
780
  *
775
781
  * @type {number}
@@ -6719,10 +6725,10 @@ export interface IThemesResponse {
6719
6725
  export interface IUserAddressResponse {
6720
6726
  /**
6721
6727
  *
6722
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6728
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6723
6729
  * @memberof IUserAddressResponse
6724
6730
  */
6725
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6731
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6726
6732
  }
6727
6733
  /**
6728
6734
  *
@@ -6815,6 +6821,12 @@ export interface IUserPatchRequest {
6815
6821
  * @memberof IUserPatchRequest
6816
6822
  */
6817
6823
  'roles'?: Array<UserRoleEnum>;
6824
+ /**
6825
+ *
6826
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6827
+ * @memberof IUserPatchRequest
6828
+ */
6829
+ 'addresses'?: Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6818
6830
  }
6819
6831
  /**
6820
6832
  *
@@ -6909,10 +6921,10 @@ export interface IUserResponse {
6909
6921
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6910
6922
  /**
6911
6923
  *
6912
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6924
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6913
6925
  * @memberof IUserResponse
6914
6926
  */
6915
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6927
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6916
6928
  /**
6917
6929
  *
6918
6930
  * @type {UserStatusEnum}
@@ -8319,10 +8331,10 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8319
8331
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8320
8332
  /**
8321
8333
  *
8322
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8334
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
8323
8335
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8324
8336
  */
8325
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8337
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
8326
8338
  /**
8327
8339
  *
8328
8340
  * @type {UserStatusEnum}
@@ -8357,55 +8369,55 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8357
8369
  /**
8358
8370
  *
8359
8371
  * @export
8360
- * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8372
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8361
8373
  */
8362
- export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
8374
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner {
8363
8375
  /**
8364
8376
  *
8365
8377
  * @type {string}
8366
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8378
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8367
8379
  */
8368
8380
  'phone': string;
8369
8381
  /**
8370
8382
  *
8371
8383
  * @type {string}
8372
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8384
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8373
8385
  */
8374
8386
  'address': string;
8375
8387
  /**
8376
8388
  *
8377
8389
  * @type {string}
8378
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8390
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8379
8391
  */
8380
8392
  'state': string;
8381
8393
  /**
8382
8394
  *
8383
8395
  * @type {string}
8384
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8396
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8385
8397
  */
8386
8398
  'city': string;
8387
8399
  /**
8388
8400
  *
8389
8401
  * @type {string}
8390
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8402
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8391
8403
  */
8392
8404
  'country': string;
8393
8405
  /**
8394
8406
  *
8395
8407
  * @type {string}
8396
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8408
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8397
8409
  */
8398
8410
  'surname': string;
8399
8411
  /**
8400
8412
  *
8401
8413
  * @type {string}
8402
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8414
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8403
8415
  */
8404
8416
  'name': string;
8405
8417
  /**
8406
8418
  *
8407
8419
  * @type {string}
8408
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8420
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8409
8421
  */
8410
8422
  'title': string;
8411
8423
  }
@@ -10496,23 +10508,23 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
10496
10508
  deleteUser: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10497
10509
  /**
10498
10510
  *
10499
- * @param {string} id
10500
10511
  * @param {*} [options] Override http request option.
10501
10512
  * @throws {RequiredError}
10502
10513
  */
10503
- getUserById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10514
+ getMyAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10504
10515
  /**
10505
10516
  *
10517
+ * @param {string} id
10506
10518
  * @param {*} [options] Override http request option.
10507
10519
  * @throws {RequiredError}
10508
10520
  */
10509
- me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10521
+ getUserById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10510
10522
  /**
10511
10523
  *
10512
10524
  * @param {*} [options] Override http request option.
10513
10525
  * @throws {RequiredError}
10514
10526
  */
10515
- meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10527
+ me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10516
10528
  /**
10517
10529
  *
10518
10530
  * @param {string} id
@@ -10543,23 +10555,23 @@ export declare const UserApiFp: (configuration?: Configuration) => {
10543
10555
  deleteUser(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10544
10556
  /**
10545
10557
  *
10546
- * @param {string} id
10547
10558
  * @param {*} [options] Override http request option.
10548
10559
  * @throws {RequiredError}
10549
10560
  */
10550
- getUserById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10561
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10551
10562
  /**
10552
10563
  *
10564
+ * @param {string} id
10553
10565
  * @param {*} [options] Override http request option.
10554
10566
  * @throws {RequiredError}
10555
10567
  */
10556
- me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10568
+ getUserById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10557
10569
  /**
10558
10570
  *
10559
10571
  * @param {*} [options] Override http request option.
10560
10572
  * @throws {RequiredError}
10561
10573
  */
10562
- meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10574
+ me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10563
10575
  /**
10564
10576
  *
10565
10577
  * @param {string} id
@@ -10590,23 +10602,23 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
10590
10602
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10591
10603
  /**
10592
10604
  *
10593
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10594
10605
  * @param {*} [options] Override http request option.
10595
10606
  * @throws {RequiredError}
10596
10607
  */
10597
- getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10608
+ getMyAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10598
10609
  /**
10599
10610
  *
10611
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10600
10612
  * @param {*} [options] Override http request option.
10601
10613
  * @throws {RequiredError}
10602
10614
  */
10603
- me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10615
+ getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10604
10616
  /**
10605
10617
  *
10606
10618
  * @param {*} [options] Override http request option.
10607
10619
  * @throws {RequiredError}
10608
10620
  */
10609
- meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10621
+ me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10610
10622
  /**
10611
10623
  *
10612
10624
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -10697,26 +10709,26 @@ export declare class UserApi extends BaseAPI {
10697
10709
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10698
10710
  /**
10699
10711
  *
10700
- * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10701
10712
  * @param {*} [options] Override http request option.
10702
10713
  * @throws {RequiredError}
10703
10714
  * @memberof UserApi
10704
10715
  */
10705
- getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10716
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10706
10717
  /**
10707
10718
  *
10719
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
10708
10720
  * @param {*} [options] Override http request option.
10709
10721
  * @throws {RequiredError}
10710
10722
  * @memberof UserApi
10711
10723
  */
10712
- me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10724
+ getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10713
10725
  /**
10714
10726
  *
10715
10727
  * @param {*} [options] Override http request option.
10716
10728
  * @throws {RequiredError}
10717
10729
  * @memberof UserApi
10718
10730
  */
10719
- meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10731
+ me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10720
10732
  /**
10721
10733
  *
10722
10734
  * @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.10",
3
+ "version": "1.2.12",
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": "8d992d3fdcd4636855c7ba46fd45be19847a7fab"
40
+ "gitHead": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
41
41
  }