@infisale-client/api 1.2.8 → 1.2.10

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
@@ -696,6 +696,12 @@ export interface IBasketResponse {
696
696
  * @memberof IBasketResponse
697
697
  */
698
698
  'items': Array<IBasketResponseItemsInner>;
699
+ /**
700
+ *
701
+ * @type {IBasketSummary}
702
+ * @memberof IBasketResponse
703
+ */
704
+ 'summary': IBasketSummary;
699
705
  }
700
706
  /**
701
707
  *
@@ -734,6 +740,43 @@ export interface IBasketResponseItemsInner {
734
740
  */
735
741
  '_id': string;
736
742
  }
743
+ /**
744
+ *
745
+ * @export
746
+ * @interface IBasketSummary
747
+ */
748
+ export interface IBasketSummary {
749
+ /**
750
+ *
751
+ * @type {number}
752
+ * @memberof IBasketSummary
753
+ */
754
+ 'subtotal': number;
755
+ /**
756
+ *
757
+ * @type {number}
758
+ * @memberof IBasketSummary
759
+ */
760
+ 'discount': number;
761
+ /**
762
+ *
763
+ * @type {number}
764
+ * @memberof IBasketSummary
765
+ */
766
+ 'tax': number;
767
+ /**
768
+ *
769
+ * @type {number}
770
+ * @memberof IBasketSummary
771
+ */
772
+ 'shipping': number;
773
+ /**
774
+ *
775
+ * @type {number}
776
+ * @memberof IBasketSummary
777
+ */
778
+ 'total': number;
779
+ }
737
780
  /**
738
781
  *
739
782
  * @export
@@ -6668,6 +6711,19 @@ export interface IThemesResponse {
6668
6711
  */
6669
6712
  'data': Array<IThemeResponse>;
6670
6713
  }
6714
+ /**
6715
+ *
6716
+ * @export
6717
+ * @interface IUserAddressResponse
6718
+ */
6719
+ export interface IUserAddressResponse {
6720
+ /**
6721
+ *
6722
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6723
+ * @memberof IUserAddressResponse
6724
+ */
6725
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6726
+ }
6671
6727
  /**
6672
6728
  *
6673
6729
  * @export
@@ -6851,6 +6907,12 @@ export interface IUserResponse {
6851
6907
  * @memberof IUserResponse
6852
6908
  */
6853
6909
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6910
+ /**
6911
+ *
6912
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6913
+ * @memberof IUserResponse
6914
+ */
6915
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6854
6916
  /**
6855
6917
  *
6856
6918
  * @type {UserStatusEnum}
@@ -8255,6 +8317,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8255
8317
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8256
8318
  */
8257
8319
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8320
+ /**
8321
+ *
8322
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8323
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8324
+ */
8325
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8258
8326
  /**
8259
8327
  *
8260
8328
  * @type {UserStatusEnum}
@@ -8286,6 +8354,61 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8286
8354
  */
8287
8355
  'updatedAt': string;
8288
8356
  }
8357
+ /**
8358
+ *
8359
+ * @export
8360
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8361
+ */
8362
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
8363
+ /**
8364
+ *
8365
+ * @type {string}
8366
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8367
+ */
8368
+ 'phone': string;
8369
+ /**
8370
+ *
8371
+ * @type {string}
8372
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8373
+ */
8374
+ 'address': string;
8375
+ /**
8376
+ *
8377
+ * @type {string}
8378
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8379
+ */
8380
+ 'state': string;
8381
+ /**
8382
+ *
8383
+ * @type {string}
8384
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8385
+ */
8386
+ 'city': string;
8387
+ /**
8388
+ *
8389
+ * @type {string}
8390
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8391
+ */
8392
+ 'country': string;
8393
+ /**
8394
+ *
8395
+ * @type {string}
8396
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8397
+ */
8398
+ 'surname': string;
8399
+ /**
8400
+ *
8401
+ * @type {string}
8402
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8403
+ */
8404
+ 'name': string;
8405
+ /**
8406
+ *
8407
+ * @type {string}
8408
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
8409
+ */
8410
+ 'title': string;
8411
+ }
8289
8412
  /**
8290
8413
  *
8291
8414
  * @export
@@ -15195,6 +15318,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
15195
15318
  * @throws {RequiredError}
15196
15319
  */
15197
15320
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15321
+ /**
15322
+ *
15323
+ * @param {*} [options] Override http request option.
15324
+ * @throws {RequiredError}
15325
+ */
15326
+ meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15198
15327
  /**
15199
15328
  *
15200
15329
  * @param {string} id
@@ -15274,6 +15403,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
15274
15403
  * @throws {RequiredError}
15275
15404
  */
15276
15405
  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>>;
15277
15412
  /**
15278
15413
  *
15279
15414
  * @param {string} id
@@ -15343,6 +15478,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
15343
15478
  * @throws {RequiredError}
15344
15479
  */
15345
15480
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
15481
+ /**
15482
+ *
15483
+ * @param {*} [options] Override http request option.
15484
+ * @throws {RequiredError}
15485
+ */
15486
+ meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
15346
15487
  /**
15347
15488
  *
15348
15489
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -15589,6 +15730,13 @@ export declare class UserApi extends BaseAPI {
15589
15730
  * @memberof UserApi
15590
15731
  */
15591
15732
  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>>;
15592
15740
  /**
15593
15741
  *
15594
15742
  * @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.10",
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": "8d992d3fdcd4636855c7ba46fd45be19847a7fab"
41
41
  }