@infisale-client/api 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
  }
@@ -15281,6 +15293,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15281
15293
  * @throws {RequiredError}
15282
15294
  */
15283
15295
  deleteUser: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15296
+ /**
15297
+ *
15298
+ * @param {*} [options] Override http request option.
15299
+ * @throws {RequiredError}
15300
+ */
15301
+ getMyAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15284
15302
  /**
15285
15303
  *
15286
15304
  * @param {string} id
@@ -15318,12 +15336,6 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15318
15336
  * @throws {RequiredError}
15319
15337
  */
15320
15338
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15321
- /**
15322
- *
15323
- * @param {*} [options] Override http request option.
15324
- * @throws {RequiredError}
15325
- */
15326
- meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15327
15339
  /**
15328
15340
  *
15329
15341
  * @param {string} id
@@ -15366,6 +15378,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15366
15378
  * @throws {RequiredError}
15367
15379
  */
15368
15380
  deleteUser(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
15381
+ /**
15382
+ *
15383
+ * @param {*} [options] Override http request option.
15384
+ * @throws {RequiredError}
15385
+ */
15386
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
15369
15387
  /**
15370
15388
  *
15371
15389
  * @param {string} id
@@ -15403,12 +15421,6 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15403
15421
  * @throws {RequiredError}
15404
15422
  */
15405
15423
  me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
15406
- /**
15407
- *
15408
- * @param {*} [options] Override http request option.
15409
- * @throws {RequiredError}
15410
- */
15411
- meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
15412
15424
  /**
15413
15425
  *
15414
15426
  * @param {string} id
@@ -15451,6 +15463,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15451
15463
  * @throws {RequiredError}
15452
15464
  */
15453
15465
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15466
+ /**
15467
+ *
15468
+ * @param {*} [options] Override http request option.
15469
+ * @throws {RequiredError}
15470
+ */
15471
+ getMyAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15454
15472
  /**
15455
15473
  *
15456
15474
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15478,12 +15496,6 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15478
15496
  * @throws {RequiredError}
15479
15497
  */
15480
15498
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15481
- /**
15482
- *
15483
- * @param {*} [options] Override http request option.
15484
- * @throws {RequiredError}
15485
- */
15486
- meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15487
15499
  /**
15488
15500
  *
15489
15501
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -15699,6 +15711,13 @@ export declare class UserApi extends BaseAPI {
15699
15711
  * @memberof UserApi
15700
15712
  */
15701
15713
  deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
15714
+ /**
15715
+ *
15716
+ * @param {*} [options] Override http request option.
15717
+ * @throws {RequiredError}
15718
+ * @memberof UserApi
15719
+ */
15720
+ getMyAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
15702
15721
  /**
15703
15722
  *
15704
15723
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15730,13 +15749,6 @@ export declare class UserApi extends BaseAPI {
15730
15749
  * @memberof UserApi
15731
15750
  */
15732
15751
  me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
15733
- /**
15734
- *
15735
- * @param {*} [options] Override http request option.
15736
- * @throws {RequiredError}
15737
- * @memberof UserApi
15738
- */
15739
- meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
15740
15752
  /**
15741
15753
  *
15742
15754
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -8976,6 +8976,30 @@ const UserApiAxiosParamCreator = function (configuration) {
8976
8976
  options: localVarRequestOptions,
8977
8977
  };
8978
8978
  },
8979
+ /**
8980
+ *
8981
+ * @param {*} [options] Override http request option.
8982
+ * @throws {RequiredError}
8983
+ */
8984
+ getMyAddresses: async (options = {}) => {
8985
+ const localVarPath = `/api/users/me/addresses`;
8986
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8987
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8988
+ let baseOptions;
8989
+ if (configuration) {
8990
+ baseOptions = configuration.baseOptions;
8991
+ }
8992
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8993
+ const localVarHeaderParameter = {};
8994
+ const localVarQueryParameter = {};
8995
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8997
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8998
+ return {
8999
+ url: (0, common_1.toPathString)(localVarUrlObj),
9000
+ options: localVarRequestOptions,
9001
+ };
9002
+ },
8979
9003
  /**
8980
9004
  *
8981
9005
  * @param {string} id
@@ -9128,30 +9152,6 @@ const UserApiAxiosParamCreator = function (configuration) {
9128
9152
  options: localVarRequestOptions,
9129
9153
  };
9130
9154
  },
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
9155
  /**
9156
9156
  *
9157
9157
  * @param {string} id
@@ -9276,6 +9276,17 @@ const UserApiFp = function (configuration) {
9276
9276
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.deleteUser']?.[localVarOperationServerIndex]?.url;
9277
9277
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9278
9278
  },
9279
+ /**
9280
+ *
9281
+ * @param {*} [options] Override http request option.
9282
+ * @throws {RequiredError}
9283
+ */
9284
+ async getMyAddresses(options) {
9285
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
9286
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9287
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
9288
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9289
+ },
9279
9290
  /**
9280
9291
  *
9281
9292
  * @param {string} id
@@ -9333,17 +9344,6 @@ const UserApiFp = function (configuration) {
9333
9344
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9334
9345
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9335
9346
  },
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
9347
  /**
9348
9348
  *
9349
9349
  * @param {string} id
@@ -9409,6 +9409,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
9409
9409
  deleteUser(requestParameters, options) {
9410
9410
  return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
9411
9411
  },
9412
+ /**
9413
+ *
9414
+ * @param {*} [options] Override http request option.
9415
+ * @throws {RequiredError}
9416
+ */
9417
+ getMyAddresses(options) {
9418
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
9419
+ },
9412
9420
  /**
9413
9421
  *
9414
9422
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9444,14 +9452,6 @@ const UserApiFactory = function (configuration, basePath, axios) {
9444
9452
  me(options) {
9445
9453
  return localVarFp.me(options).then((request) => request(axios, basePath));
9446
9454
  },
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
9455
  /**
9456
9456
  *
9457
9457
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9509,6 +9509,15 @@ class UserApi extends base_1.BaseAPI {
9509
9509
  deleteUser(requestParameters, options) {
9510
9510
  return (0, exports.UserApiFp)(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9511
9511
  }
9512
+ /**
9513
+ *
9514
+ * @param {*} [options] Override http request option.
9515
+ * @throws {RequiredError}
9516
+ * @memberof UserApi
9517
+ */
9518
+ getMyAddresses(options) {
9519
+ return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
9520
+ }
9512
9521
  /**
9513
9522
  *
9514
9523
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9548,15 +9557,6 @@ class UserApi extends base_1.BaseAPI {
9548
9557
  me(options) {
9549
9558
  return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9550
9559
  }
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
9560
  /**
9561
9561
  *
9562
9562
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -8897,6 +8897,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
8897
8897
  options: localVarRequestOptions,
8898
8898
  };
8899
8899
  },
8900
+ /**
8901
+ *
8902
+ * @param {*} [options] Override http request option.
8903
+ * @throws {RequiredError}
8904
+ */
8905
+ getMyAddresses: async (options = {}) => {
8906
+ const localVarPath = `/api/users/me/addresses`;
8907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8909
+ let baseOptions;
8910
+ if (configuration) {
8911
+ baseOptions = configuration.baseOptions;
8912
+ }
8913
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8914
+ const localVarHeaderParameter = {};
8915
+ const localVarQueryParameter = {};
8916
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8918
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8919
+ return {
8920
+ url: toPathString(localVarUrlObj),
8921
+ options: localVarRequestOptions,
8922
+ };
8923
+ },
8900
8924
  /**
8901
8925
  *
8902
8926
  * @param {string} id
@@ -9049,30 +9073,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
9049
9073
  options: localVarRequestOptions,
9050
9074
  };
9051
9075
  },
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
9076
  /**
9077
9077
  *
9078
9078
  * @param {string} id
@@ -9196,6 +9196,17 @@ export const UserApiFp = function (configuration) {
9196
9196
  const localVarOperationServerBasePath = operationServerMap['UserApi.deleteUser']?.[localVarOperationServerIndex]?.url;
9197
9197
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9198
9198
  },
9199
+ /**
9200
+ *
9201
+ * @param {*} [options] Override http request option.
9202
+ * @throws {RequiredError}
9203
+ */
9204
+ async getMyAddresses(options) {
9205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
9206
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9207
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
9208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9209
+ },
9199
9210
  /**
9200
9211
  *
9201
9212
  * @param {string} id
@@ -9253,17 +9264,6 @@ export const UserApiFp = function (configuration) {
9253
9264
  const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9254
9265
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9255
9266
  },
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
9267
  /**
9268
9268
  *
9269
9269
  * @param {string} id
@@ -9328,6 +9328,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
9328
9328
  deleteUser(requestParameters, options) {
9329
9329
  return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
9330
9330
  },
9331
+ /**
9332
+ *
9333
+ * @param {*} [options] Override http request option.
9334
+ * @throws {RequiredError}
9335
+ */
9336
+ getMyAddresses(options) {
9337
+ return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
9338
+ },
9331
9339
  /**
9332
9340
  *
9333
9341
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9363,14 +9371,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
9363
9371
  me(options) {
9364
9372
  return localVarFp.me(options).then((request) => request(axios, basePath));
9365
9373
  },
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
9374
  /**
9375
9375
  *
9376
9376
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9427,6 +9427,15 @@ export class UserApi extends BaseAPI {
9427
9427
  deleteUser(requestParameters, options) {
9428
9428
  return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9429
9429
  }
9430
+ /**
9431
+ *
9432
+ * @param {*} [options] Override http request option.
9433
+ * @throws {RequiredError}
9434
+ * @memberof UserApi
9435
+ */
9436
+ getMyAddresses(options) {
9437
+ return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
9438
+ }
9430
9439
  /**
9431
9440
  *
9432
9441
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -9466,15 +9475,6 @@ export class UserApi extends BaseAPI {
9466
9475
  me(options) {
9467
9476
  return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9468
9477
  }
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
9478
  /**
9479
9479
  *
9480
9480
  * @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.10",
3
+ "version": "1.2.12",
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": "8d992d3fdcd4636855c7ba46fd45be19847a7fab"
40
+ "gitHead": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
41
41
  }