@infisale-client/api 1.2.11 → 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
@@ -6725,10 +6725,10 @@ export interface IThemesResponse {
6725
6725
  export interface IUserAddressResponse {
6726
6726
  /**
6727
6727
  *
6728
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6728
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6729
6729
  * @memberof IUserAddressResponse
6730
6730
  */
6731
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6731
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6732
6732
  }
6733
6733
  /**
6734
6734
  *
@@ -6821,6 +6821,12 @@ export interface IUserPatchRequest {
6821
6821
  * @memberof IUserPatchRequest
6822
6822
  */
6823
6823
  'roles'?: Array<UserRoleEnum>;
6824
+ /**
6825
+ *
6826
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6827
+ * @memberof IUserPatchRequest
6828
+ */
6829
+ 'addresses'?: Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6824
6830
  }
6825
6831
  /**
6826
6832
  *
@@ -6915,10 +6921,10 @@ export interface IUserResponse {
6915
6921
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6916
6922
  /**
6917
6923
  *
6918
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6924
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
6919
6925
  * @memberof IUserResponse
6920
6926
  */
6921
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6927
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
6922
6928
  /**
6923
6929
  *
6924
6930
  * @type {UserStatusEnum}
@@ -8325,10 +8331,10 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8325
8331
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8326
8332
  /**
8327
8333
  *
8328
- * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8334
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
8329
8335
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8330
8336
  */
8331
- 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8337
+ 'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
8332
8338
  /**
8333
8339
  *
8334
8340
  * @type {UserStatusEnum}
@@ -8363,55 +8369,55 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8363
8369
  /**
8364
8370
  *
8365
8371
  * @export
8366
- * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8372
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8367
8373
  */
8368
- export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
8374
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner {
8369
8375
  /**
8370
8376
  *
8371
8377
  * @type {string}
8372
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8378
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8373
8379
  */
8374
8380
  'phone': string;
8375
8381
  /**
8376
8382
  *
8377
8383
  * @type {string}
8378
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8384
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8379
8385
  */
8380
8386
  'address': string;
8381
8387
  /**
8382
8388
  *
8383
8389
  * @type {string}
8384
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8390
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8385
8391
  */
8386
8392
  'state': string;
8387
8393
  /**
8388
8394
  *
8389
8395
  * @type {string}
8390
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8396
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8391
8397
  */
8392
8398
  'city': string;
8393
8399
  /**
8394
8400
  *
8395
8401
  * @type {string}
8396
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8402
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8397
8403
  */
8398
8404
  'country': string;
8399
8405
  /**
8400
8406
  *
8401
8407
  * @type {string}
8402
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8408
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8403
8409
  */
8404
8410
  'surname': string;
8405
8411
  /**
8406
8412
  *
8407
8413
  * @type {string}
8408
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8414
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8409
8415
  */
8410
8416
  'name': string;
8411
8417
  /**
8412
8418
  *
8413
8419
  * @type {string}
8414
- * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8420
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8415
8421
  */
8416
8422
  'title': string;
8417
8423
  }
@@ -15287,6 +15293,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15287
15293
  * @throws {RequiredError}
15288
15294
  */
15289
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>;
15290
15302
  /**
15291
15303
  *
15292
15304
  * @param {string} id
@@ -15324,12 +15336,6 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15324
15336
  * @throws {RequiredError}
15325
15337
  */
15326
15338
  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
15339
  /**
15334
15340
  *
15335
15341
  * @param {string} id
@@ -15372,6 +15378,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15372
15378
  * @throws {RequiredError}
15373
15379
  */
15374
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>>;
15375
15387
  /**
15376
15388
  *
15377
15389
  * @param {string} id
@@ -15409,12 +15421,6 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15409
15421
  * @throws {RequiredError}
15410
15422
  */
15411
15423
  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
15424
  /**
15419
15425
  *
15420
15426
  * @param {string} id
@@ -15457,6 +15463,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15457
15463
  * @throws {RequiredError}
15458
15464
  */
15459
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>;
15460
15472
  /**
15461
15473
  *
15462
15474
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15484,12 +15496,6 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15484
15496
  * @throws {RequiredError}
15485
15497
  */
15486
15498
  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
15499
  /**
15494
15500
  *
15495
15501
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -15705,6 +15711,13 @@ export declare class UserApi extends BaseAPI {
15705
15711
  * @memberof UserApi
15706
15712
  */
15707
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>>;
15708
15721
  /**
15709
15722
  *
15710
15723
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -15736,13 +15749,6 @@ export declare class UserApi extends BaseAPI {
15736
15749
  * @memberof UserApi
15737
15750
  */
15738
15751
  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
15752
  /**
15747
15753
  *
15748
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.11",
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": "fac742bf156c1272b8557f12afc438f42ea2e9bc"
40
+ "gitHead": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
41
41
  }