@infisale-client/api-client 1.2.8 → 1.2.9

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
@@ -6668,6 +6668,19 @@ export interface IThemesResponse {
6668
6668
  */
6669
6669
  'data': Array<IThemeResponse>;
6670
6670
  }
6671
+ /**
6672
+ *
6673
+ * @export
6674
+ * @interface IUserAddressResponse
6675
+ */
6676
+ export interface IUserAddressResponse {
6677
+ /**
6678
+ *
6679
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6680
+ * @memberof IUserAddressResponse
6681
+ */
6682
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6683
+ }
6671
6684
  /**
6672
6685
  *
6673
6686
  * @export
@@ -6851,6 +6864,12 @@ export interface IUserResponse {
6851
6864
  * @memberof IUserResponse
6852
6865
  */
6853
6866
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6867
+ /**
6868
+ *
6869
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6870
+ * @memberof IUserResponse
6871
+ */
6872
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6854
6873
  /**
6855
6874
  *
6856
6875
  * @type {UserStatusEnum}
@@ -8255,6 +8274,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8255
8274
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8256
8275
  */
8257
8276
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8277
+ /**
8278
+ *
8279
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8280
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8281
+ */
8282
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8258
8283
  /**
8259
8284
  *
8260
8285
  * @type {UserStatusEnum}
@@ -8286,6 +8311,61 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8286
8311
  */
8287
8312
  'updatedAt': string;
8288
8313
  }
8314
+ /**
8315
+ *
8316
+ * @export
8317
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8318
+ */
8319
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
8320
+ /**
8321
+ *
8322
+ * @type {string}
8323
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8324
+ */
8325
+ 'phone': string;
8326
+ /**
8327
+ *
8328
+ * @type {string}
8329
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8330
+ */
8331
+ 'address': string;
8332
+ /**
8333
+ *
8334
+ * @type {string}
8335
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8336
+ */
8337
+ 'state': string;
8338
+ /**
8339
+ *
8340
+ * @type {string}
8341
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8342
+ */
8343
+ 'city': string;
8344
+ /**
8345
+ *
8346
+ * @type {string}
8347
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8348
+ */
8349
+ 'country': string;
8350
+ /**
8351
+ *
8352
+ * @type {string}
8353
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8354
+ */
8355
+ 'surname': string;
8356
+ /**
8357
+ *
8358
+ * @type {string}
8359
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8360
+ */
8361
+ 'name': string;
8362
+ /**
8363
+ *
8364
+ * @type {string}
8365
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8366
+ */
8367
+ 'title': string;
8368
+ }
8289
8369
  /**
8290
8370
  *
8291
8371
  * @export
@@ -10384,6 +10464,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
10384
10464
  * @throws {RequiredError}
10385
10465
  */
10386
10466
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10467
+ /**
10468
+ *
10469
+ * @param {*} [options] Override http request option.
10470
+ * @throws {RequiredError}
10471
+ */
10472
+ meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10387
10473
  /**
10388
10474
  *
10389
10475
  * @param {string} id
@@ -10425,6 +10511,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
10425
10511
  * @throws {RequiredError}
10426
10512
  */
10427
10513
  me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10514
+ /**
10515
+ *
10516
+ * @param {*} [options] Override http request option.
10517
+ * @throws {RequiredError}
10518
+ */
10519
+ meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10428
10520
  /**
10429
10521
  *
10430
10522
  * @param {string} id
@@ -10466,6 +10558,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
10466
10558
  * @throws {RequiredError}
10467
10559
  */
10468
10560
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10561
+ /**
10562
+ *
10563
+ * @param {*} [options] Override http request option.
10564
+ * @throws {RequiredError}
10565
+ */
10566
+ meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10469
10567
  /**
10470
10568
  *
10471
10569
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -10569,6 +10667,13 @@ export declare class UserApi extends BaseAPI {
10569
10667
  * @memberof UserApi
10570
10668
  */
10571
10669
  me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10670
+ /**
10671
+ *
10672
+ * @param {*} [options] Override http request option.
10673
+ * @throws {RequiredError}
10674
+ * @memberof UserApi
10675
+ */
10676
+ meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10572
10677
  /**
10573
10678
  *
10574
10679
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -2964,6 +2964,30 @@ const UserApiAxiosParamCreator = function (configuration) {
2964
2964
  options: localVarRequestOptions,
2965
2965
  };
2966
2966
  },
2967
+ /**
2968
+ *
2969
+ * @param {*} [options] Override http request option.
2970
+ * @throws {RequiredError}
2971
+ */
2972
+ meAddresses: async (options = {}) => {
2973
+ const localVarPath = `/api/users/me/addresses`;
2974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2975
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2976
+ let baseOptions;
2977
+ if (configuration) {
2978
+ baseOptions = configuration.baseOptions;
2979
+ }
2980
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2981
+ const localVarHeaderParameter = {};
2982
+ const localVarQueryParameter = {};
2983
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2985
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2986
+ return {
2987
+ url: (0, common_1.toPathString)(localVarUrlObj),
2988
+ options: localVarRequestOptions,
2989
+ };
2990
+ },
2967
2991
  /**
2968
2992
  *
2969
2993
  * @param {string} id
@@ -3071,6 +3095,17 @@ const UserApiFp = function (configuration) {
3071
3095
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3072
3096
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3073
3097
  },
3098
+ /**
3099
+ *
3100
+ * @param {*} [options] Override http request option.
3101
+ * @throws {RequiredError}
3102
+ */
3103
+ async meAddresses(options) {
3104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
3105
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3106
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
3107
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3108
+ },
3074
3109
  /**
3075
3110
  *
3076
3111
  * @param {string} id
@@ -3132,6 +3167,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
3132
3167
  me(options) {
3133
3168
  return localVarFp.me(options).then((request) => request(axios, basePath));
3134
3169
  },
3170
+ /**
3171
+ *
3172
+ * @param {*} [options] Override http request option.
3173
+ * @throws {RequiredError}
3174
+ */
3175
+ meAddresses(options) {
3176
+ return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
3177
+ },
3135
3178
  /**
3136
3179
  *
3137
3180
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -3189,6 +3232,15 @@ class UserApi extends base_1.BaseAPI {
3189
3232
  me(options) {
3190
3233
  return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3191
3234
  }
3235
+ /**
3236
+ *
3237
+ * @param {*} [options] Override http request option.
3238
+ * @throws {RequiredError}
3239
+ * @memberof UserApi
3240
+ */
3241
+ meAddresses(options) {
3242
+ return (0, exports.UserApiFp)(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
3243
+ }
3192
3244
  /**
3193
3245
  *
3194
3246
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -2918,6 +2918,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
2918
2918
  options: localVarRequestOptions,
2919
2919
  };
2920
2920
  },
2921
+ /**
2922
+ *
2923
+ * @param {*} [options] Override http request option.
2924
+ * @throws {RequiredError}
2925
+ */
2926
+ meAddresses: async (options = {}) => {
2927
+ const localVarPath = `/api/users/me/addresses`;
2928
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2929
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2930
+ let baseOptions;
2931
+ if (configuration) {
2932
+ baseOptions = configuration.baseOptions;
2933
+ }
2934
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2935
+ const localVarHeaderParameter = {};
2936
+ const localVarQueryParameter = {};
2937
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2938
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2939
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2940
+ return {
2941
+ url: toPathString(localVarUrlObj),
2942
+ options: localVarRequestOptions,
2943
+ };
2944
+ },
2921
2945
  /**
2922
2946
  *
2923
2947
  * @param {string} id
@@ -3024,6 +3048,17 @@ export const UserApiFp = function (configuration) {
3024
3048
  const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3025
3049
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3026
3050
  },
3051
+ /**
3052
+ *
3053
+ * @param {*} [options] Override http request option.
3054
+ * @throws {RequiredError}
3055
+ */
3056
+ async meAddresses(options) {
3057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
3058
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3059
+ const localVarOperationServerBasePath = operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
3060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3061
+ },
3027
3062
  /**
3028
3063
  *
3029
3064
  * @param {string} id
@@ -3084,6 +3119,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
3084
3119
  me(options) {
3085
3120
  return localVarFp.me(options).then((request) => request(axios, basePath));
3086
3121
  },
3122
+ /**
3123
+ *
3124
+ * @param {*} [options] Override http request option.
3125
+ * @throws {RequiredError}
3126
+ */
3127
+ meAddresses(options) {
3128
+ return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
3129
+ },
3087
3130
  /**
3088
3131
  *
3089
3132
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -3140,6 +3183,15 @@ export class UserApi extends BaseAPI {
3140
3183
  me(options) {
3141
3184
  return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3142
3185
  }
3186
+ /**
3187
+ *
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ * @memberof UserApi
3191
+ */
3192
+ meAddresses(options) {
3193
+ return UserApiFp(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
3194
+ }
3143
3195
  /**
3144
3196
  *
3145
3197
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
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": "adcce93bcea534fb7589eefe85b300b90bfb68b2"
40
+ "gitHead": "d3f10b7e6425186fb6aa25561b3fd4d6209eeb5e"
41
41
  }