@infisale-client/api-client 1.2.7 → 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
@@ -128,6 +128,7 @@ export declare const ComponentTypeEnum: {
128
128
  readonly FOOTER: "footer";
129
129
  readonly EMAIL_SIGNUP: "email-signup";
130
130
  readonly CONTACT_FORM: "contact-form";
131
+ readonly BASKET_DETAIL: "basket-detail";
131
132
  };
132
133
  export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
133
134
  /**
@@ -6667,6 +6668,19 @@ export interface IThemesResponse {
6667
6668
  */
6668
6669
  'data': Array<IThemeResponse>;
6669
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
+ }
6670
6684
  /**
6671
6685
  *
6672
6686
  * @export
@@ -6850,6 +6864,12 @@ export interface IUserResponse {
6850
6864
  * @memberof IUserResponse
6851
6865
  */
6852
6866
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6867
+ /**
6868
+ *
6869
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
6870
+ * @memberof IUserResponse
6871
+ */
6872
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
6853
6873
  /**
6854
6874
  *
6855
6875
  * @type {UserStatusEnum}
@@ -8254,6 +8274,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8254
8274
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8255
8275
  */
8256
8276
  'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
8277
+ /**
8278
+ *
8279
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
8280
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
8281
+ */
8282
+ 'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
8257
8283
  /**
8258
8284
  *
8259
8285
  * @type {UserStatusEnum}
@@ -8285,6 +8311,61 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8285
8311
  */
8286
8312
  'updatedAt': string;
8287
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
+ }
8288
8369
  /**
8289
8370
  *
8290
8371
  * @export
@@ -10383,6 +10464,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
10383
10464
  * @throws {RequiredError}
10384
10465
  */
10385
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>;
10386
10473
  /**
10387
10474
  *
10388
10475
  * @param {string} id
@@ -10424,6 +10511,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
10424
10511
  * @throws {RequiredError}
10425
10512
  */
10426
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>>;
10427
10520
  /**
10428
10521
  *
10429
10522
  * @param {string} id
@@ -10465,6 +10558,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
10465
10558
  * @throws {RequiredError}
10466
10559
  */
10467
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>;
10468
10567
  /**
10469
10568
  *
10470
10569
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -10568,6 +10667,13 @@ export declare class UserApi extends BaseAPI {
10568
10667
  * @memberof UserApi
10569
10668
  */
10570
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>>;
10571
10677
  /**
10572
10678
  *
10573
10679
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -131,7 +131,8 @@ exports.ComponentTypeEnum = {
131
131
  ANNOUNCEMENT: 'announcement',
132
132
  FOOTER: 'footer',
133
133
  EMAIL_SIGNUP: 'email-signup',
134
- CONTACT_FORM: 'contact-form'
134
+ CONTACT_FORM: 'contact-form',
135
+ BASKET_DETAIL: 'basket-detail'
135
136
  };
136
137
  /**
137
138
  *
@@ -2963,6 +2964,30 @@ const UserApiAxiosParamCreator = function (configuration) {
2963
2964
  options: localVarRequestOptions,
2964
2965
  };
2965
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
+ },
2966
2991
  /**
2967
2992
  *
2968
2993
  * @param {string} id
@@ -3070,6 +3095,17 @@ const UserApiFp = function (configuration) {
3070
3095
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3071
3096
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3072
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
+ },
3073
3109
  /**
3074
3110
  *
3075
3111
  * @param {string} id
@@ -3131,6 +3167,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
3131
3167
  me(options) {
3132
3168
  return localVarFp.me(options).then((request) => request(axios, basePath));
3133
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
+ },
3134
3178
  /**
3135
3179
  *
3136
3180
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -3188,6 +3232,15 @@ class UserApi extends base_1.BaseAPI {
3188
3232
  me(options) {
3189
3233
  return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3190
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
+ }
3191
3244
  /**
3192
3245
  *
3193
3246
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -121,7 +121,8 @@ export const ComponentTypeEnum = {
121
121
  ANNOUNCEMENT: 'announcement',
122
122
  FOOTER: 'footer',
123
123
  EMAIL_SIGNUP: 'email-signup',
124
- CONTACT_FORM: 'contact-form'
124
+ CONTACT_FORM: 'contact-form',
125
+ BASKET_DETAIL: 'basket-detail'
125
126
  };
126
127
  /**
127
128
  *
@@ -2917,6 +2918,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
2917
2918
  options: localVarRequestOptions,
2918
2919
  };
2919
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
+ },
2920
2945
  /**
2921
2946
  *
2922
2947
  * @param {string} id
@@ -3023,6 +3048,17 @@ export const UserApiFp = function (configuration) {
3023
3048
  const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
3024
3049
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3025
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
+ },
3026
3062
  /**
3027
3063
  *
3028
3064
  * @param {string} id
@@ -3083,6 +3119,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
3083
3119
  me(options) {
3084
3120
  return localVarFp.me(options).then((request) => request(axios, basePath));
3085
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
+ },
3086
3130
  /**
3087
3131
  *
3088
3132
  * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
@@ -3139,6 +3183,15 @@ export class UserApi extends BaseAPI {
3139
3183
  me(options) {
3140
3184
  return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
3141
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
+ }
3142
3195
  /**
3143
3196
  *
3144
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.7",
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": "944bb7673250ea1b92f0827e7272a0bda409cfc8"
40
+ "gitHead": "d3f10b7e6425186fb6aa25561b3fd4d6209eeb5e"
41
41
  }