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