@my-market/contracts 0.0.2
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/.openapi-generator/FILES +63 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +121 -0
- package/api.ts +25 -0
- package/apis/auth-api.ts +201 -0
- package/apis/business-api.ts +535 -0
- package/apis/default-api.ts +470 -0
- package/apis/employees-api.ts +268 -0
- package/apis/products-api.ts +551 -0
- package/apis/users-api.ts +471 -0
- package/apis/warehouse-products-api.ts +198 -0
- package/apis/warehouses-api.ts +255 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +19 -0
- package/dist/api.js +37 -0
- package/dist/apis/auth-api.d.ts +98 -0
- package/dist/apis/auth-api.js +196 -0
- package/dist/apis/business-api.d.ts +256 -0
- package/dist/apis/business-api.js +520 -0
- package/dist/apis/default-api.d.ts +227 -0
- package/dist/apis/default-api.js +460 -0
- package/dist/apis/employees-api.d.ts +132 -0
- package/dist/apis/employees-api.js +266 -0
- package/dist/apis/products-api.d.ts +257 -0
- package/dist/apis/products-api.js +525 -0
- package/dist/apis/users-api.d.ts +227 -0
- package/dist/apis/users-api.js +453 -0
- package/dist/apis/warehouse-products-api.d.ts +101 -0
- package/dist/apis/warehouse-products-api.js +198 -0
- package/dist/apis/warehouses-api.d.ts +128 -0
- package/dist/apis/warehouses-api.js +255 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +49 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +19 -0
- package/dist/esm/api.js +21 -0
- package/dist/esm/apis/auth-api.d.ts +97 -0
- package/dist/esm/apis/auth-api.js +186 -0
- package/dist/esm/apis/business-api.d.ts +255 -0
- package/dist/esm/apis/business-api.js +510 -0
- package/dist/esm/apis/default-api.d.ts +226 -0
- package/dist/esm/apis/default-api.js +450 -0
- package/dist/esm/apis/employees-api.d.ts +131 -0
- package/dist/esm/apis/employees-api.js +256 -0
- package/dist/esm/apis/products-api.d.ts +256 -0
- package/dist/esm/apis/products-api.js +515 -0
- package/dist/esm/apis/users-api.d.ts +226 -0
- package/dist/esm/apis/users-api.js +443 -0
- package/dist/esm/apis/warehouse-products-api.d.ts +100 -0
- package/dist/esm/apis/warehouse-products-api.js +188 -0
- package/dist/esm/apis/warehouses-api.d.ts +127 -0
- package/dist/esm/apis/warehouses-api.js +245 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/change-password-dto.d.ts +21 -0
- package/dist/esm/models/change-password-dto.js +14 -0
- package/dist/esm/models/change-warehouse-dto.d.ts +15 -0
- package/dist/esm/models/change-warehouse-dto.js +14 -0
- package/dist/esm/models/change-warehouse-item-dto.d.ts +33 -0
- package/dist/esm/models/change-warehouse-item-dto.js +14 -0
- package/dist/esm/models/create-business-dto.d.ts +17 -0
- package/dist/esm/models/create-business-dto.js +14 -0
- package/dist/esm/models/create-product-dto.d.ts +69 -0
- package/dist/esm/models/create-product-dto.js +14 -0
- package/dist/esm/models/create-warehouse-dto.d.ts +17 -0
- package/dist/esm/models/create-warehouse-dto.js +14 -0
- package/dist/esm/models/exception-dto.d.ts +16 -0
- package/dist/esm/models/exception-dto.js +14 -0
- package/dist/esm/models/forgot-password-dto.d.ts +17 -0
- package/dist/esm/models/forgot-password-dto.js +14 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/esm/models/login-user-body-dto.d.ts +21 -0
- package/dist/esm/models/login-user-body-dto.js +14 -0
- package/dist/esm/models/login-user-response-dto.d.ts +14 -0
- package/dist/esm/models/login-user-response-dto.js +14 -0
- package/dist/esm/models/logout-user-response-dto.d.ts +14 -0
- package/dist/esm/models/logout-user-response-dto.js +14 -0
- package/dist/esm/models/register-employee-dto.d.ts +29 -0
- package/dist/esm/models/register-employee-dto.js +14 -0
- package/dist/esm/models/register-owner-dto.d.ts +29 -0
- package/dist/esm/models/register-owner-dto.js +14 -0
- package/dist/esm/models/reset-password-dto.d.ts +21 -0
- package/dist/esm/models/reset-password-dto.js +14 -0
- package/dist/esm/models/sell-item-dto.d.ts +25 -0
- package/dist/esm/models/sell-item-dto.js +14 -0
- package/dist/esm/models/sell-product-dto.d.ts +18 -0
- package/dist/esm/models/sell-product-dto.js +14 -0
- package/dist/esm/models/update-product-dto.d.ts +65 -0
- package/dist/esm/models/update-product-dto.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/change-password-dto.d.ts +21 -0
- package/dist/models/change-password-dto.js +15 -0
- package/dist/models/change-warehouse-dto.d.ts +15 -0
- package/dist/models/change-warehouse-dto.js +15 -0
- package/dist/models/change-warehouse-item-dto.d.ts +33 -0
- package/dist/models/change-warehouse-item-dto.js +15 -0
- package/dist/models/create-business-dto.d.ts +17 -0
- package/dist/models/create-business-dto.js +15 -0
- package/dist/models/create-product-dto.d.ts +69 -0
- package/dist/models/create-product-dto.js +15 -0
- package/dist/models/create-warehouse-dto.d.ts +17 -0
- package/dist/models/create-warehouse-dto.js +15 -0
- package/dist/models/exception-dto.d.ts +16 -0
- package/dist/models/exception-dto.js +15 -0
- package/dist/models/forgot-password-dto.d.ts +17 -0
- package/dist/models/forgot-password-dto.js +15 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +33 -0
- package/dist/models/login-user-body-dto.d.ts +21 -0
- package/dist/models/login-user-body-dto.js +15 -0
- package/dist/models/login-user-response-dto.d.ts +14 -0
- package/dist/models/login-user-response-dto.js +15 -0
- package/dist/models/logout-user-response-dto.d.ts +14 -0
- package/dist/models/logout-user-response-dto.js +15 -0
- package/dist/models/register-employee-dto.d.ts +29 -0
- package/dist/models/register-employee-dto.js +15 -0
- package/dist/models/register-owner-dto.d.ts +29 -0
- package/dist/models/register-owner-dto.js +15 -0
- package/dist/models/reset-password-dto.d.ts +21 -0
- package/dist/models/reset-password-dto.js +15 -0
- package/dist/models/sell-item-dto.d.ts +25 -0
- package/dist/models/sell-item-dto.js +15 -0
- package/dist/models/sell-product-dto.d.ts +18 -0
- package/dist/models/sell-product-dto.js +15 -0
- package/dist/models/update-product-dto.d.ts +65 -0
- package/dist/models/update-product-dto.js +15 -0
- package/docs/AuthApi.md +106 -0
- package/docs/BusinessApi.md +361 -0
- package/docs/ChangePasswordDto.md +22 -0
- package/docs/ChangeWarehouseDto.md +20 -0
- package/docs/ChangeWarehouseItemDto.md +28 -0
- package/docs/CreateBusinessDto.md +20 -0
- package/docs/CreateProductDto.md +46 -0
- package/docs/CreateWarehouseDto.md +20 -0
- package/docs/DefaultApi.md +315 -0
- package/docs/EmployeesApi.md +161 -0
- package/docs/ExceptionDto.md +24 -0
- package/docs/ForgotPasswordDto.md +20 -0
- package/docs/LoginUserBodyDto.md +22 -0
- package/docs/LoginUserResponseDto.md +20 -0
- package/docs/LogoutUserResponseDto.md +20 -0
- package/docs/ProductsApi.md +348 -0
- package/docs/RegisterEmployeeDto.md +26 -0
- package/docs/RegisterOwnerDto.md +26 -0
- package/docs/ResetPasswordDto.md +22 -0
- package/docs/SellItemDto.md +24 -0
- package/docs/SellProductDto.md +20 -0
- package/docs/UpdateProductDto.md +44 -0
- package/docs/UsersApi.md +310 -0
- package/docs/WarehouseProductsApi.md +111 -0
- package/docs/WarehousesApi.md +154 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/change-password-dto.ts +27 -0
- package/models/change-warehouse-dto.ts +23 -0
- package/models/change-warehouse-item-dto.ts +39 -0
- package/models/create-business-dto.ts +23 -0
- package/models/create-product-dto.ts +75 -0
- package/models/create-warehouse-dto.ts +23 -0
- package/models/exception-dto.ts +22 -0
- package/models/forgot-password-dto.ts +23 -0
- package/models/index.ts +17 -0
- package/models/login-user-body-dto.ts +27 -0
- package/models/login-user-response-dto.ts +20 -0
- package/models/logout-user-response-dto.ts +20 -0
- package/models/register-employee-dto.ts +35 -0
- package/models/register-owner-dto.ts +35 -0
- package/models/reset-password-dto.ts +27 -0
- package/models/sell-item-dto.ts +31 -0
- package/models/sell-product-dto.ts +26 -0
- package/models/update-product-dto.ts +71 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MyMarket API
|
|
3
|
+
* API для управления товарами и транзакциями
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { ChangePasswordDto } from '../models';
|
|
16
|
+
import type { ForgotPasswordDto } from '../models';
|
|
17
|
+
import type { RegisterOwnerDto } from '../models';
|
|
18
|
+
import type { ResetPasswordDto } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* UsersApi - axios parameter creator
|
|
21
|
+
*/
|
|
22
|
+
export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Сменить пароль пользователя
|
|
26
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
usersControllerChangePassword: (changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Отправка письма на восстановление пароля
|
|
34
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
usersControllerForgotPassword: (forgotPasswordDto: ForgotPasswordDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @summary Получить профиль пользователя
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
usersControllerGetProfile: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @summary Регистрация владельца бизнеса
|
|
49
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
usersControllerRegisterOwner: (registerOwnerDto: RegisterOwnerDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary Сброс пароля с помощью токена
|
|
57
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
usersControllerResetPassword: (resetPasswordDto: ResetPasswordDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary Подтверждения email с помощью токена
|
|
65
|
+
* @param {string} token Токен подтверждения email
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
usersControllerVerifyEmail: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* UsersApi - functional programming interface
|
|
73
|
+
*/
|
|
74
|
+
export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @summary Сменить пароль пользователя
|
|
78
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
usersControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @summary Отправка письма на восстановление пароля
|
|
86
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
usersControllerForgotPassword(forgotPasswordDto: ForgotPasswordDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Получить профиль пользователя
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
usersControllerGetProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Регистрация владельца бизнеса
|
|
101
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
usersControllerRegisterOwner(registerOwnerDto: RegisterOwnerDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @summary Сброс пароля с помощью токена
|
|
109
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
usersControllerResetPassword(resetPasswordDto: ResetPasswordDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary Подтверждения email с помощью токена
|
|
117
|
+
* @param {string} token Токен подтверждения email
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
usersControllerVerifyEmail(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* UsersApi - factory interface
|
|
125
|
+
*/
|
|
126
|
+
export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @summary Сменить пароль пользователя
|
|
130
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
usersControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @summary Отправка письма на восстановление пароля
|
|
138
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
usersControllerForgotPassword(forgotPasswordDto: ForgotPasswordDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @summary Получить профиль пользователя
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
usersControllerGetProfile(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Регистрация владельца бизнеса
|
|
153
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
usersControllerRegisterOwner(registerOwnerDto: RegisterOwnerDto, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @summary Сброс пароля с помощью токена
|
|
161
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
usersControllerResetPassword(resetPasswordDto: ResetPasswordDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @summary Подтверждения email с помощью токена
|
|
169
|
+
* @param {string} token Токен подтверждения email
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
usersControllerVerifyEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* UsersApi - object-oriented interface
|
|
177
|
+
*/
|
|
178
|
+
export declare class UsersApi extends BaseAPI {
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Сменить пароль пользователя
|
|
182
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
usersControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Отправка письма на восстановление пароля
|
|
190
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
usersControllerForgotPassword(forgotPasswordDto: ForgotPasswordDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @summary Получить профиль пользователя
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
usersControllerGetProfile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @summary Регистрация владельца бизнеса
|
|
205
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
usersControllerRegisterOwner(registerOwnerDto: RegisterOwnerDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Сброс пароля с помощью токена
|
|
213
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
usersControllerResetPassword(resetPasswordDto: ResetPasswordDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @summary Подтверждения email с помощью токена
|
|
221
|
+
* @param {string} token Токен подтверждения email
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
usersControllerVerifyEmail(token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
226
|
+
}
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MyMarket API
|
|
5
|
+
* API для управления товарами и транзакциями
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* UsersApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Сменить пароль пользователя
|
|
37
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
usersControllerChangePassword: (changePasswordDto_1, ...args_1) => __awaiter(this, [changePasswordDto_1, ...args_1], void 0, function* (changePasswordDto, options = {}) {
|
|
42
|
+
// verify required parameter 'changePasswordDto' is not null or undefined
|
|
43
|
+
assertParamExists('usersControllerChangePassword', 'changePasswordDto', changePasswordDto);
|
|
44
|
+
const localVarPath = `/users/changepassword`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
52
|
+
const localVarHeaderParameter = {};
|
|
53
|
+
const localVarQueryParameter = {};
|
|
54
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration);
|
|
59
|
+
return {
|
|
60
|
+
url: toPathString(localVarUrlObj),
|
|
61
|
+
options: localVarRequestOptions,
|
|
62
|
+
};
|
|
63
|
+
}),
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Отправка письма на восстановление пароля
|
|
67
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
usersControllerForgotPassword: (forgotPasswordDto_1, ...args_1) => __awaiter(this, [forgotPasswordDto_1, ...args_1], void 0, function* (forgotPasswordDto, options = {}) {
|
|
72
|
+
// verify required parameter 'forgotPasswordDto' is not null or undefined
|
|
73
|
+
assertParamExists('usersControllerForgotPassword', 'forgotPasswordDto', forgotPasswordDto);
|
|
74
|
+
const localVarPath = `/users/forgot-password`;
|
|
75
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
77
|
+
let baseOptions;
|
|
78
|
+
if (configuration) {
|
|
79
|
+
baseOptions = configuration.baseOptions;
|
|
80
|
+
}
|
|
81
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
82
|
+
const localVarHeaderParameter = {};
|
|
83
|
+
const localVarQueryParameter = {};
|
|
84
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
86
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
87
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
88
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordDto, localVarRequestOptions, configuration);
|
|
89
|
+
return {
|
|
90
|
+
url: toPathString(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions,
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Получить профиль пользователя
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
usersControllerGetProfile: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
101
|
+
const localVarPath = `/users/profile`;
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
109
|
+
const localVarHeaderParameter = {};
|
|
110
|
+
const localVarQueryParameter = {};
|
|
111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
114
|
+
return {
|
|
115
|
+
url: toPathString(localVarUrlObj),
|
|
116
|
+
options: localVarRequestOptions,
|
|
117
|
+
};
|
|
118
|
+
}),
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @summary Регистрация владельца бизнеса
|
|
122
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
usersControllerRegisterOwner: (registerOwnerDto_1, ...args_1) => __awaiter(this, [registerOwnerDto_1, ...args_1], void 0, function* (registerOwnerDto, options = {}) {
|
|
127
|
+
// verify required parameter 'registerOwnerDto' is not null or undefined
|
|
128
|
+
assertParamExists('usersControllerRegisterOwner', 'registerOwnerDto', registerOwnerDto);
|
|
129
|
+
const localVarPath = `/users/register`;
|
|
130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
132
|
+
let baseOptions;
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
137
|
+
const localVarHeaderParameter = {};
|
|
138
|
+
const localVarQueryParameter = {};
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registerOwnerDto, localVarRequestOptions, configuration);
|
|
144
|
+
return {
|
|
145
|
+
url: toPathString(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
};
|
|
148
|
+
}),
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Сброс пароля с помощью токена
|
|
152
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
usersControllerResetPassword: (resetPasswordDto_1, ...args_1) => __awaiter(this, [resetPasswordDto_1, ...args_1], void 0, function* (resetPasswordDto, options = {}) {
|
|
157
|
+
// verify required parameter 'resetPasswordDto' is not null or undefined
|
|
158
|
+
assertParamExists('usersControllerResetPassword', 'resetPasswordDto', resetPasswordDto);
|
|
159
|
+
const localVarPath = `/users/reset-password`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
173
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordDto, localVarRequestOptions, configuration);
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
}),
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Подтверждения email с помощью токена
|
|
182
|
+
* @param {string} token Токен подтверждения email
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
usersControllerVerifyEmail: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
|
|
187
|
+
// verify required parameter 'token' is not null or undefined
|
|
188
|
+
assertParamExists('usersControllerVerifyEmail', 'token', token);
|
|
189
|
+
const localVarPath = `/users/verify-email/{token}`
|
|
190
|
+
.replace(`{${"token"}}`, encodeURIComponent(String(token)));
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
198
|
+
const localVarHeaderParameter = {};
|
|
199
|
+
const localVarQueryParameter = {};
|
|
200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
203
|
+
return {
|
|
204
|
+
url: toPathString(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
}),
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* UsersApi - functional programming interface
|
|
212
|
+
*/
|
|
213
|
+
export const UsersApiFp = function (configuration) {
|
|
214
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
215
|
+
return {
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @summary Сменить пароль пользователя
|
|
219
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
usersControllerChangePassword(changePasswordDto, options) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
var _a, _b, _c;
|
|
226
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerChangePassword(changePasswordDto, options);
|
|
227
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
228
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
230
|
+
});
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary Отправка письма на восстановление пароля
|
|
235
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
usersControllerForgotPassword(forgotPasswordDto, options) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
var _a, _b, _c;
|
|
242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerForgotPassword(forgotPasswordDto, options);
|
|
243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
244
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerForgotPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
245
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @summary Получить профиль пользователя
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
usersControllerGetProfile(options) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
var _a, _b, _c;
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerGetProfile(options);
|
|
258
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
259
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerGetProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @summary Регистрация владельца бизнеса
|
|
266
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
usersControllerRegisterOwner(registerOwnerDto, options) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
var _a, _b, _c;
|
|
273
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerRegisterOwner(registerOwnerDto, options);
|
|
274
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
275
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerRegisterOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
276
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @summary Сброс пароля с помощью токена
|
|
282
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
usersControllerResetPassword(resetPasswordDto, options) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
var _a, _b, _c;
|
|
289
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerResetPassword(resetPasswordDto, options);
|
|
290
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
291
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerResetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
293
|
+
});
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @summary Подтверждения email с помощью токена
|
|
298
|
+
* @param {string} token Токен подтверждения email
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
usersControllerVerifyEmail(token, options) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
var _a, _b, _c;
|
|
305
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.usersControllerVerifyEmail(token, options);
|
|
306
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
307
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.usersControllerVerifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
308
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* UsersApi - factory interface
|
|
315
|
+
*/
|
|
316
|
+
export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
317
|
+
const localVarFp = UsersApiFp(configuration);
|
|
318
|
+
return {
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @summary Сменить пароль пользователя
|
|
322
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
usersControllerChangePassword(changePasswordDto, options) {
|
|
327
|
+
return localVarFp.usersControllerChangePassword(changePasswordDto, options).then((request) => request(axios, basePath));
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Отправка письма на восстановление пароля
|
|
332
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
usersControllerForgotPassword(forgotPasswordDto, options) {
|
|
337
|
+
return localVarFp.usersControllerForgotPassword(forgotPasswordDto, options).then((request) => request(axios, basePath));
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary Получить профиль пользователя
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
usersControllerGetProfile(options) {
|
|
346
|
+
return localVarFp.usersControllerGetProfile(options).then((request) => request(axios, basePath));
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @summary Регистрация владельца бизнеса
|
|
351
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
usersControllerRegisterOwner(registerOwnerDto, options) {
|
|
356
|
+
return localVarFp.usersControllerRegisterOwner(registerOwnerDto, options).then((request) => request(axios, basePath));
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @summary Сброс пароля с помощью токена
|
|
361
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
usersControllerResetPassword(resetPasswordDto, options) {
|
|
366
|
+
return localVarFp.usersControllerResetPassword(resetPasswordDto, options).then((request) => request(axios, basePath));
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @summary Подтверждения email с помощью токена
|
|
371
|
+
* @param {string} token Токен подтверждения email
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
usersControllerVerifyEmail(token, options) {
|
|
376
|
+
return localVarFp.usersControllerVerifyEmail(token, options).then((request) => request(axios, basePath));
|
|
377
|
+
},
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* UsersApi - object-oriented interface
|
|
382
|
+
*/
|
|
383
|
+
export class UsersApi extends BaseAPI {
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Сменить пароль пользователя
|
|
387
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
usersControllerChangePassword(changePasswordDto, options) {
|
|
392
|
+
return UsersApiFp(this.configuration).usersControllerChangePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @summary Отправка письма на восстановление пароля
|
|
397
|
+
* @param {ForgotPasswordDto} forgotPasswordDto
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
usersControllerForgotPassword(forgotPasswordDto, options) {
|
|
402
|
+
return UsersApiFp(this.configuration).usersControllerForgotPassword(forgotPasswordDto, options).then((request) => request(this.axios, this.basePath));
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @summary Получить профиль пользователя
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
usersControllerGetProfile(options) {
|
|
411
|
+
return UsersApiFp(this.configuration).usersControllerGetProfile(options).then((request) => request(this.axios, this.basePath));
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
* @summary Регистрация владельца бизнеса
|
|
416
|
+
* @param {RegisterOwnerDto} registerOwnerDto
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
usersControllerRegisterOwner(registerOwnerDto, options) {
|
|
421
|
+
return UsersApiFp(this.configuration).usersControllerRegisterOwner(registerOwnerDto, options).then((request) => request(this.axios, this.basePath));
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @summary Сброс пароля с помощью токена
|
|
426
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
usersControllerResetPassword(resetPasswordDto, options) {
|
|
431
|
+
return UsersApiFp(this.configuration).usersControllerResetPassword(resetPasswordDto, options).then((request) => request(this.axios, this.basePath));
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @summary Подтверждения email с помощью токена
|
|
436
|
+
* @param {string} token Токен подтверждения email
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
usersControllerVerifyEmail(token, options) {
|
|
441
|
+
return UsersApiFp(this.configuration).usersControllerVerifyEmail(token, options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
}
|
|
443
|
+
}
|