@infisale-client/api-client 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
@@ -10384,6 +10507,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
10384
10507
  * @throws {RequiredError}
10385
10508
  */
10386
10509
  me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10510
+ /**
10511
+ *
10512
+ * @param {*} [options] Override http request option.
10513
+ * @throws {RequiredError}
10514
+ */
10515
+ meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10387
10516
  /**
10388
10517
  *
10389
10518
  * @param {string} id
@@ -10425,6 +10554,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
10425
10554
  * @throws {RequiredError}
10426
10555
  */
10427
10556
  me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
10557
+ /**
10558
+ *
10559
+ * @param {*} [options] Override http request option.
10560
+ * @throws {RequiredError}
10561
+ */
10562
+ meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
10428
10563
  /**
10429
10564
  *
10430
10565
  * @param {string} id
@@ -10466,6 +10601,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
10466
10601
  * @throws {RequiredError}
10467
10602
  */
10468
10603
  me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
10604
+ /**
10605
+ *
10606
+ * @param {*} [options] Override http request option.
10607
+ * @throws {RequiredError}
10608
+ */
10609
+ meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
10469
10610
  /**
10470
10611
  *
10471
10612
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -10569,6 +10710,13 @@ export declare class UserApi extends BaseAPI {
10569
10710
  * @memberof UserApi
10570
10711
  */
10571
10712
  me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
10713
+ /**
10714
+ *
10715
+ * @param {*} [options] Override http request option.
10716
+ * @throws {RequiredError}
10717
+ * @memberof UserApi
10718
+ */
10719
+ meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
10572
10720
  /**
10573
10721
  *
10574
10722
  * @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.10",
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": "8d992d3fdcd4636855c7ba46fd45be19847a7fab"
41
41
  }