@infisale-client/api-client 1.2.11 → 1.2.12
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 +38 -32
- package/dist/api/api.js +34 -34
- package/dist/api/api.mjs +34 -34
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -6725,10 +6725,10 @@ export interface IThemesResponse {
|
|
|
6725
6725
|
export interface IUserAddressResponse {
|
|
6726
6726
|
/**
|
|
6727
6727
|
*
|
|
6728
|
-
* @type {
|
|
6728
|
+
* @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
|
|
6729
6729
|
* @memberof IUserAddressResponse
|
|
6730
6730
|
*/
|
|
6731
|
-
'addresses':
|
|
6731
|
+
'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
|
|
6732
6732
|
}
|
|
6733
6733
|
/**
|
|
6734
6734
|
*
|
|
@@ -6821,6 +6821,12 @@ export interface IUserPatchRequest {
|
|
|
6821
6821
|
* @memberof IUserPatchRequest
|
|
6822
6822
|
*/
|
|
6823
6823
|
'roles'?: Array<UserRoleEnum>;
|
|
6824
|
+
/**
|
|
6825
|
+
*
|
|
6826
|
+
* @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
|
|
6827
|
+
* @memberof IUserPatchRequest
|
|
6828
|
+
*/
|
|
6829
|
+
'addresses'?: Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
|
|
6824
6830
|
}
|
|
6825
6831
|
/**
|
|
6826
6832
|
*
|
|
@@ -6915,10 +6921,10 @@ export interface IUserResponse {
|
|
|
6915
6921
|
'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
6916
6922
|
/**
|
|
6917
6923
|
*
|
|
6918
|
-
* @type {
|
|
6924
|
+
* @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
|
|
6919
6925
|
* @memberof IUserResponse
|
|
6920
6926
|
*/
|
|
6921
|
-
'addresses':
|
|
6927
|
+
'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
|
|
6922
6928
|
/**
|
|
6923
6929
|
*
|
|
6924
6930
|
* @type {UserStatusEnum}
|
|
@@ -8325,10 +8331,10 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
8325
8331
|
'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
8326
8332
|
/**
|
|
8327
8333
|
*
|
|
8328
|
-
* @type {
|
|
8334
|
+
* @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>}
|
|
8329
8335
|
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
|
|
8330
8336
|
*/
|
|
8331
|
-
'addresses':
|
|
8337
|
+
'addresses': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner>;
|
|
8332
8338
|
/**
|
|
8333
8339
|
*
|
|
8334
8340
|
* @type {UserStatusEnum}
|
|
@@ -8363,55 +8369,55 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
8363
8369
|
/**
|
|
8364
8370
|
*
|
|
8365
8371
|
* @export
|
|
8366
|
-
* @interface
|
|
8372
|
+
* @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8367
8373
|
*/
|
|
8368
|
-
export interface
|
|
8374
|
+
export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner {
|
|
8369
8375
|
/**
|
|
8370
8376
|
*
|
|
8371
8377
|
* @type {string}
|
|
8372
|
-
* @memberof
|
|
8378
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8373
8379
|
*/
|
|
8374
8380
|
'phone': string;
|
|
8375
8381
|
/**
|
|
8376
8382
|
*
|
|
8377
8383
|
* @type {string}
|
|
8378
|
-
* @memberof
|
|
8384
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8379
8385
|
*/
|
|
8380
8386
|
'address': string;
|
|
8381
8387
|
/**
|
|
8382
8388
|
*
|
|
8383
8389
|
* @type {string}
|
|
8384
|
-
* @memberof
|
|
8390
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8385
8391
|
*/
|
|
8386
8392
|
'state': string;
|
|
8387
8393
|
/**
|
|
8388
8394
|
*
|
|
8389
8395
|
* @type {string}
|
|
8390
|
-
* @memberof
|
|
8396
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8391
8397
|
*/
|
|
8392
8398
|
'city': string;
|
|
8393
8399
|
/**
|
|
8394
8400
|
*
|
|
8395
8401
|
* @type {string}
|
|
8396
|
-
* @memberof
|
|
8402
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8397
8403
|
*/
|
|
8398
8404
|
'country': string;
|
|
8399
8405
|
/**
|
|
8400
8406
|
*
|
|
8401
8407
|
* @type {string}
|
|
8402
|
-
* @memberof
|
|
8408
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8403
8409
|
*/
|
|
8404
8410
|
'surname': string;
|
|
8405
8411
|
/**
|
|
8406
8412
|
*
|
|
8407
8413
|
* @type {string}
|
|
8408
|
-
* @memberof
|
|
8414
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8409
8415
|
*/
|
|
8410
8416
|
'name': string;
|
|
8411
8417
|
/**
|
|
8412
8418
|
*
|
|
8413
8419
|
* @type {string}
|
|
8414
|
-
* @memberof
|
|
8420
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8415
8421
|
*/
|
|
8416
8422
|
'title': string;
|
|
8417
8423
|
}
|
|
@@ -10502,23 +10508,23 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
10502
10508
|
deleteUser: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10503
10509
|
/**
|
|
10504
10510
|
*
|
|
10505
|
-
* @param {string} id
|
|
10506
10511
|
* @param {*} [options] Override http request option.
|
|
10507
10512
|
* @throws {RequiredError}
|
|
10508
10513
|
*/
|
|
10509
|
-
|
|
10514
|
+
getMyAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10510
10515
|
/**
|
|
10511
10516
|
*
|
|
10517
|
+
* @param {string} id
|
|
10512
10518
|
* @param {*} [options] Override http request option.
|
|
10513
10519
|
* @throws {RequiredError}
|
|
10514
10520
|
*/
|
|
10515
|
-
|
|
10521
|
+
getUserById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10516
10522
|
/**
|
|
10517
10523
|
*
|
|
10518
10524
|
* @param {*} [options] Override http request option.
|
|
10519
10525
|
* @throws {RequiredError}
|
|
10520
10526
|
*/
|
|
10521
|
-
|
|
10527
|
+
me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10522
10528
|
/**
|
|
10523
10529
|
*
|
|
10524
10530
|
* @param {string} id
|
|
@@ -10549,23 +10555,23 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
10549
10555
|
deleteUser(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
|
|
10550
10556
|
/**
|
|
10551
10557
|
*
|
|
10552
|
-
* @param {string} id
|
|
10553
10558
|
* @param {*} [options] Override http request option.
|
|
10554
10559
|
* @throws {RequiredError}
|
|
10555
10560
|
*/
|
|
10556
|
-
|
|
10561
|
+
getMyAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
|
|
10557
10562
|
/**
|
|
10558
10563
|
*
|
|
10564
|
+
* @param {string} id
|
|
10559
10565
|
* @param {*} [options] Override http request option.
|
|
10560
10566
|
* @throws {RequiredError}
|
|
10561
10567
|
*/
|
|
10562
|
-
|
|
10568
|
+
getUserById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
|
|
10563
10569
|
/**
|
|
10564
10570
|
*
|
|
10565
10571
|
* @param {*} [options] Override http request option.
|
|
10566
10572
|
* @throws {RequiredError}
|
|
10567
10573
|
*/
|
|
10568
|
-
|
|
10574
|
+
me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
|
|
10569
10575
|
/**
|
|
10570
10576
|
*
|
|
10571
10577
|
* @param {string} id
|
|
@@ -10596,23 +10602,23 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
10596
10602
|
deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
|
|
10597
10603
|
/**
|
|
10598
10604
|
*
|
|
10599
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
10600
10605
|
* @param {*} [options] Override http request option.
|
|
10601
10606
|
* @throws {RequiredError}
|
|
10602
10607
|
*/
|
|
10603
|
-
|
|
10608
|
+
getMyAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
|
|
10604
10609
|
/**
|
|
10605
10610
|
*
|
|
10611
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
10606
10612
|
* @param {*} [options] Override http request option.
|
|
10607
10613
|
* @throws {RequiredError}
|
|
10608
10614
|
*/
|
|
10609
|
-
|
|
10615
|
+
getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
|
|
10610
10616
|
/**
|
|
10611
10617
|
*
|
|
10612
10618
|
* @param {*} [options] Override http request option.
|
|
10613
10619
|
* @throws {RequiredError}
|
|
10614
10620
|
*/
|
|
10615
|
-
|
|
10621
|
+
me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
|
|
10616
10622
|
/**
|
|
10617
10623
|
*
|
|
10618
10624
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
@@ -10703,26 +10709,26 @@ export declare class UserApi extends BaseAPI {
|
|
|
10703
10709
|
deleteUser(requestParameters: UserApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
|
|
10704
10710
|
/**
|
|
10705
10711
|
*
|
|
10706
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
10707
10712
|
* @param {*} [options] Override http request option.
|
|
10708
10713
|
* @throws {RequiredError}
|
|
10709
10714
|
* @memberof UserApi
|
|
10710
10715
|
*/
|
|
10711
|
-
|
|
10716
|
+
getMyAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
|
|
10712
10717
|
/**
|
|
10713
10718
|
*
|
|
10719
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
10714
10720
|
* @param {*} [options] Override http request option.
|
|
10715
10721
|
* @throws {RequiredError}
|
|
10716
10722
|
* @memberof UserApi
|
|
10717
10723
|
*/
|
|
10718
|
-
|
|
10724
|
+
getUserById(requestParameters: UserApiGetUserByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
|
|
10719
10725
|
/**
|
|
10720
10726
|
*
|
|
10721
10727
|
* @param {*} [options] Override http request option.
|
|
10722
10728
|
* @throws {RequiredError}
|
|
10723
10729
|
* @memberof UserApi
|
|
10724
10730
|
*/
|
|
10725
|
-
|
|
10731
|
+
me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
|
|
10726
10732
|
/**
|
|
10727
10733
|
*
|
|
10728
10734
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -2914,15 +2914,11 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2914
2914
|
},
|
|
2915
2915
|
/**
|
|
2916
2916
|
*
|
|
2917
|
-
* @param {string} id
|
|
2918
2917
|
* @param {*} [options] Override http request option.
|
|
2919
2918
|
* @throws {RequiredError}
|
|
2920
2919
|
*/
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
(0, common_1.assertParamExists)('getUserById', 'id', id);
|
|
2924
|
-
const localVarPath = `/api/users/{id}`
|
|
2925
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2920
|
+
getMyAddresses: async (options = {}) => {
|
|
2921
|
+
const localVarPath = `/api/users/me/addresses`;
|
|
2926
2922
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2927
2923
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2928
2924
|
let baseOptions;
|
|
@@ -2942,11 +2938,15 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2942
2938
|
},
|
|
2943
2939
|
/**
|
|
2944
2940
|
*
|
|
2941
|
+
* @param {string} id
|
|
2945
2942
|
* @param {*} [options] Override http request option.
|
|
2946
2943
|
* @throws {RequiredError}
|
|
2947
2944
|
*/
|
|
2948
|
-
|
|
2949
|
-
|
|
2945
|
+
getUserById: async (id, options = {}) => {
|
|
2946
|
+
// verify required parameter 'id' is not null or undefined
|
|
2947
|
+
(0, common_1.assertParamExists)('getUserById', 'id', id);
|
|
2948
|
+
const localVarPath = `/api/users/{id}`
|
|
2949
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2950
2950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2951
2951
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2952
2952
|
let baseOptions;
|
|
@@ -2969,8 +2969,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2969
2969
|
* @param {*} [options] Override http request option.
|
|
2970
2970
|
* @throws {RequiredError}
|
|
2971
2971
|
*/
|
|
2972
|
-
|
|
2973
|
-
const localVarPath = `/api/users/me
|
|
2972
|
+
me: async (options = {}) => {
|
|
2973
|
+
const localVarPath = `/api/users/me`;
|
|
2974
2974
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2975
2975
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2976
2976
|
let baseOptions;
|
|
@@ -3074,25 +3074,25 @@ const UserApiFp = function (configuration) {
|
|
|
3074
3074
|
},
|
|
3075
3075
|
/**
|
|
3076
3076
|
*
|
|
3077
|
-
* @param {string} id
|
|
3078
3077
|
* @param {*} [options] Override http request option.
|
|
3079
3078
|
* @throws {RequiredError}
|
|
3080
3079
|
*/
|
|
3081
|
-
async
|
|
3082
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3080
|
+
async getMyAddresses(options) {
|
|
3081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
|
|
3083
3082
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3084
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.
|
|
3083
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
|
|
3085
3084
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3086
3085
|
},
|
|
3087
3086
|
/**
|
|
3088
3087
|
*
|
|
3088
|
+
* @param {string} id
|
|
3089
3089
|
* @param {*} [options] Override http request option.
|
|
3090
3090
|
* @throws {RequiredError}
|
|
3091
3091
|
*/
|
|
3092
|
-
async
|
|
3093
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3092
|
+
async getUserById(id, options) {
|
|
3093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
|
|
3094
3094
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3095
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.
|
|
3095
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
|
|
3096
3096
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3097
3097
|
},
|
|
3098
3098
|
/**
|
|
@@ -3100,10 +3100,10 @@ const UserApiFp = function (configuration) {
|
|
|
3100
3100
|
* @param {*} [options] Override http request option.
|
|
3101
3101
|
* @throws {RequiredError}
|
|
3102
3102
|
*/
|
|
3103
|
-
async
|
|
3104
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3103
|
+
async me(options) {
|
|
3104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
|
|
3105
3105
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3106
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.
|
|
3106
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
|
|
3107
3107
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3108
3108
|
},
|
|
3109
3109
|
/**
|
|
@@ -3152,28 +3152,28 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
3152
3152
|
},
|
|
3153
3153
|
/**
|
|
3154
3154
|
*
|
|
3155
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3156
3155
|
* @param {*} [options] Override http request option.
|
|
3157
3156
|
* @throws {RequiredError}
|
|
3158
3157
|
*/
|
|
3159
|
-
|
|
3160
|
-
return localVarFp.
|
|
3158
|
+
getMyAddresses(options) {
|
|
3159
|
+
return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
|
|
3161
3160
|
},
|
|
3162
3161
|
/**
|
|
3163
3162
|
*
|
|
3163
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3164
3164
|
* @param {*} [options] Override http request option.
|
|
3165
3165
|
* @throws {RequiredError}
|
|
3166
3166
|
*/
|
|
3167
|
-
|
|
3168
|
-
return localVarFp.
|
|
3167
|
+
getUserById(requestParameters, options) {
|
|
3168
|
+
return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3169
3169
|
},
|
|
3170
3170
|
/**
|
|
3171
3171
|
*
|
|
3172
3172
|
* @param {*} [options] Override http request option.
|
|
3173
3173
|
* @throws {RequiredError}
|
|
3174
3174
|
*/
|
|
3175
|
-
|
|
3176
|
-
return localVarFp.
|
|
3175
|
+
me(options) {
|
|
3176
|
+
return localVarFp.me(options).then((request) => request(axios, basePath));
|
|
3177
3177
|
},
|
|
3178
3178
|
/**
|
|
3179
3179
|
*
|
|
@@ -3215,22 +3215,22 @@ class UserApi extends base_1.BaseAPI {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
/**
|
|
3217
3217
|
*
|
|
3218
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3219
3218
|
* @param {*} [options] Override http request option.
|
|
3220
3219
|
* @throws {RequiredError}
|
|
3221
3220
|
* @memberof UserApi
|
|
3222
3221
|
*/
|
|
3223
|
-
|
|
3224
|
-
return (0, exports.UserApiFp)(this.configuration).
|
|
3222
|
+
getMyAddresses(options) {
|
|
3223
|
+
return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
3225
3224
|
}
|
|
3226
3225
|
/**
|
|
3227
3226
|
*
|
|
3227
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3228
3228
|
* @param {*} [options] Override http request option.
|
|
3229
3229
|
* @throws {RequiredError}
|
|
3230
3230
|
* @memberof UserApi
|
|
3231
3231
|
*/
|
|
3232
|
-
|
|
3233
|
-
return (0, exports.UserApiFp)(this.configuration).
|
|
3232
|
+
getUserById(requestParameters, options) {
|
|
3233
|
+
return (0, exports.UserApiFp)(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3234
3234
|
}
|
|
3235
3235
|
/**
|
|
3236
3236
|
*
|
|
@@ -3238,8 +3238,8 @@ class UserApi extends base_1.BaseAPI {
|
|
|
3238
3238
|
* @throws {RequiredError}
|
|
3239
3239
|
* @memberof UserApi
|
|
3240
3240
|
*/
|
|
3241
|
-
|
|
3242
|
-
return (0, exports.UserApiFp)(this.configuration).
|
|
3241
|
+
me(options) {
|
|
3242
|
+
return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
|
|
3243
3243
|
}
|
|
3244
3244
|
/**
|
|
3245
3245
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -2868,15 +2868,11 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2868
2868
|
},
|
|
2869
2869
|
/**
|
|
2870
2870
|
*
|
|
2871
|
-
* @param {string} id
|
|
2872
2871
|
* @param {*} [options] Override http request option.
|
|
2873
2872
|
* @throws {RequiredError}
|
|
2874
2873
|
*/
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
assertParamExists('getUserById', 'id', id);
|
|
2878
|
-
const localVarPath = `/api/users/{id}`
|
|
2879
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2874
|
+
getMyAddresses: async (options = {}) => {
|
|
2875
|
+
const localVarPath = `/api/users/me/addresses`;
|
|
2880
2876
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2881
2877
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2882
2878
|
let baseOptions;
|
|
@@ -2896,11 +2892,15 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2896
2892
|
},
|
|
2897
2893
|
/**
|
|
2898
2894
|
*
|
|
2895
|
+
* @param {string} id
|
|
2899
2896
|
* @param {*} [options] Override http request option.
|
|
2900
2897
|
* @throws {RequiredError}
|
|
2901
2898
|
*/
|
|
2902
|
-
|
|
2903
|
-
|
|
2899
|
+
getUserById: async (id, options = {}) => {
|
|
2900
|
+
// verify required parameter 'id' is not null or undefined
|
|
2901
|
+
assertParamExists('getUserById', 'id', id);
|
|
2902
|
+
const localVarPath = `/api/users/{id}`
|
|
2903
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2904
2904
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2905
2905
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2906
2906
|
let baseOptions;
|
|
@@ -2923,8 +2923,8 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
2923
2923
|
* @param {*} [options] Override http request option.
|
|
2924
2924
|
* @throws {RequiredError}
|
|
2925
2925
|
*/
|
|
2926
|
-
|
|
2927
|
-
const localVarPath = `/api/users/me
|
|
2926
|
+
me: async (options = {}) => {
|
|
2927
|
+
const localVarPath = `/api/users/me`;
|
|
2928
2928
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2929
2929
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2930
2930
|
let baseOptions;
|
|
@@ -3027,25 +3027,25 @@ export const UserApiFp = function (configuration) {
|
|
|
3027
3027
|
},
|
|
3028
3028
|
/**
|
|
3029
3029
|
*
|
|
3030
|
-
* @param {string} id
|
|
3031
3030
|
* @param {*} [options] Override http request option.
|
|
3032
3031
|
* @throws {RequiredError}
|
|
3033
3032
|
*/
|
|
3034
|
-
async
|
|
3035
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3033
|
+
async getMyAddresses(options) {
|
|
3034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyAddresses(options);
|
|
3036
3035
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3037
|
-
const localVarOperationServerBasePath = operationServerMap['UserApi.
|
|
3036
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
|
|
3038
3037
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3039
3038
|
},
|
|
3040
3039
|
/**
|
|
3041
3040
|
*
|
|
3041
|
+
* @param {string} id
|
|
3042
3042
|
* @param {*} [options] Override http request option.
|
|
3043
3043
|
* @throws {RequiredError}
|
|
3044
3044
|
*/
|
|
3045
|
-
async
|
|
3046
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3045
|
+
async getUserById(id, options) {
|
|
3046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
|
|
3047
3047
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3048
|
-
const localVarOperationServerBasePath = operationServerMap['UserApi.
|
|
3048
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
|
|
3049
3049
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3050
3050
|
},
|
|
3051
3051
|
/**
|
|
@@ -3053,10 +3053,10 @@ export const UserApiFp = function (configuration) {
|
|
|
3053
3053
|
* @param {*} [options] Override http request option.
|
|
3054
3054
|
* @throws {RequiredError}
|
|
3055
3055
|
*/
|
|
3056
|
-
async
|
|
3057
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3056
|
+
async me(options) {
|
|
3057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
|
|
3058
3058
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3059
|
-
const localVarOperationServerBasePath = operationServerMap['UserApi.
|
|
3059
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
|
|
3060
3060
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3061
3061
|
},
|
|
3062
3062
|
/**
|
|
@@ -3104,28 +3104,28 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
3104
3104
|
},
|
|
3105
3105
|
/**
|
|
3106
3106
|
*
|
|
3107
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3108
3107
|
* @param {*} [options] Override http request option.
|
|
3109
3108
|
* @throws {RequiredError}
|
|
3110
3109
|
*/
|
|
3111
|
-
|
|
3112
|
-
return localVarFp.
|
|
3110
|
+
getMyAddresses(options) {
|
|
3111
|
+
return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
|
|
3113
3112
|
},
|
|
3114
3113
|
/**
|
|
3115
3114
|
*
|
|
3115
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3116
3116
|
* @param {*} [options] Override http request option.
|
|
3117
3117
|
* @throws {RequiredError}
|
|
3118
3118
|
*/
|
|
3119
|
-
|
|
3120
|
-
return localVarFp.
|
|
3119
|
+
getUserById(requestParameters, options) {
|
|
3120
|
+
return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3121
3121
|
},
|
|
3122
3122
|
/**
|
|
3123
3123
|
*
|
|
3124
3124
|
* @param {*} [options] Override http request option.
|
|
3125
3125
|
* @throws {RequiredError}
|
|
3126
3126
|
*/
|
|
3127
|
-
|
|
3128
|
-
return localVarFp.
|
|
3127
|
+
me(options) {
|
|
3128
|
+
return localVarFp.me(options).then((request) => request(axios, basePath));
|
|
3129
3129
|
},
|
|
3130
3130
|
/**
|
|
3131
3131
|
*
|
|
@@ -3166,22 +3166,22 @@ export class UserApi extends BaseAPI {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
/**
|
|
3168
3168
|
*
|
|
3169
|
-
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3170
3169
|
* @param {*} [options] Override http request option.
|
|
3171
3170
|
* @throws {RequiredError}
|
|
3172
3171
|
* @memberof UserApi
|
|
3173
3172
|
*/
|
|
3174
|
-
|
|
3175
|
-
return UserApiFp(this.configuration).
|
|
3173
|
+
getMyAddresses(options) {
|
|
3174
|
+
return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
3176
3175
|
}
|
|
3177
3176
|
/**
|
|
3178
3177
|
*
|
|
3178
|
+
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
3179
3179
|
* @param {*} [options] Override http request option.
|
|
3180
3180
|
* @throws {RequiredError}
|
|
3181
3181
|
* @memberof UserApi
|
|
3182
3182
|
*/
|
|
3183
|
-
|
|
3184
|
-
return UserApiFp(this.configuration).
|
|
3183
|
+
getUserById(requestParameters, options) {
|
|
3184
|
+
return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3185
3185
|
}
|
|
3186
3186
|
/**
|
|
3187
3187
|
*
|
|
@@ -3189,8 +3189,8 @@ export class UserApi extends BaseAPI {
|
|
|
3189
3189
|
* @throws {RequiredError}
|
|
3190
3190
|
* @memberof UserApi
|
|
3191
3191
|
*/
|
|
3192
|
-
|
|
3193
|
-
return UserApiFp(this.configuration).
|
|
3192
|
+
me(options) {
|
|
3193
|
+
return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
|
|
3194
3194
|
}
|
|
3195
3195
|
/**
|
|
3196
3196
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
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": "
|
|
40
|
+
"gitHead": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
|
|
41
41
|
}
|