@infisale-client/api 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
@@ -15195,6 +15275,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15195
15275
  * @throws {RequiredError}
15196
15276
  */
15197
15277
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15278
+ /**
15279
+ *
15280
+ * @param {*} [options] Override http request option.
15281
+ * @throws {RequiredError}
15282
+ */
15283
+ meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15198
15284
  /**
15199
15285
  *
15200
15286
  * @param {string} id
@@ -15274,6 +15360,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15274
15360
  * @throws {RequiredError}
15275
15361
  */
15276
15362
  me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
15363
+ /**
15364
+ *
15365
+ * @param {*} [options] Override http request option.
15366
+ * @throws {RequiredError}
15367
+ */
15368
+ meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
15277
15369
  /**
15278
15370
  *
15279
15371
  * @param {string} id
@@ -15343,6 +15435,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15343
15435
  * @throws {RequiredError}
15344
15436
  */
15345
15437
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15438
+ /**
15439
+ *
15440
+ * @param {*} [options] Override http request option.
15441
+ * @throws {RequiredError}
15442
+ */
15443
+ meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15346
15444
  /**
15347
15445
  *
15348
15446
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -15589,6 +15687,13 @@ export declare class UserApi extends BaseAPI {
15589
15687
  * @memberof UserApi
15590
15688
  */
15591
15689
  me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
15690
+ /**
15691
+ *
15692
+ * @param {*} [options] Override http request option.
15693
+ * @throws {RequiredError}
15694
+ * @memberof UserApi
15695
+ */
15696
+ meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
15592
15697
  /**
15593
15698
  *
15594
15699
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -9128,6 +9128,30 @@ const UserApiAxiosParamCreator = function (configuration) {
9128
9128
  options: localVarRequestOptions,
9129
9129
  };
9130
9130
  },
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
+ },
9131
9155
  /**
9132
9156
  *
9133
9157
  * @param {string} id
@@ -9309,6 +9333,17 @@ const UserApiFp = function (configuration) {
9309
9333
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9310
9334
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9311
9335
  },
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
+ },
9312
9347
  /**
9313
9348
  *
9314
9349
  * @param {string} id
@@ -9409,6 +9444,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
9409
9444
  me(options) {
9410
9445
  return localVarFp.me(options).then((request) => request(axios, basePath));
9411
9446
  },
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
+ },
9412
9455
  /**
9413
9456
  *
9414
9457
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9505,6 +9548,15 @@ class UserApi extends base_1.BaseAPI {
9505
9548
  me(options) {
9506
9549
  return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9507
9550
  }
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
+ }
9508
9560
  /**
9509
9561
  *
9510
9562
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -9049,6 +9049,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
9049
9049
  options: localVarRequestOptions,
9050
9050
  };
9051
9051
  },
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
+ },
9052
9076
  /**
9053
9077
  *
9054
9078
  * @param {string} id
@@ -9229,6 +9253,17 @@ export const UserApiFp = function (configuration) {
9229
9253
  const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
9230
9254
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9231
9255
  },
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
+ },
9232
9267
  /**
9233
9268
  *
9234
9269
  * @param {string} id
@@ -9328,6 +9363,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
9328
9363
  me(options) {
9329
9364
  return localVarFp.me(options).then((request) => request(axios, basePath));
9330
9365
  },
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
+ },
9331
9374
  /**
9332
9375
  *
9333
9376
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -9423,6 +9466,15 @@ export class UserApi extends BaseAPI {
9423
9466
  me(options) {
9424
9467
  return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
9425
9468
  }
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
+ }
9426
9478
  /**
9427
9479
  *
9428
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.8",
3
+ "version": "1.2.9",
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": "adcce93bcea534fb7589eefe85b300b90bfb68b2"
40
+ "gitHead": "d3f10b7e6425186fb6aa25561b3fd4d6209eeb5e"
41
41
  }