@my-market/contracts 0.0.2 → 0.0.3
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/README.md +3 -8
- package/apis/auth-api.ts +0 -8
- package/apis/products-api.ts +0 -24
- package/dist/apis/auth-api.js +0 -6
- package/dist/apis/products-api.js +0 -18
- package/dist/esm/apis/auth-api.js +1 -7
- package/dist/esm/apis/products-api.js +1 -19
- package/docs/AuthApi.md +4 -4
- package/docs/BusinessApi.md +7 -7
- package/docs/ChangePasswordDto.md +1 -1
- package/docs/ChangeWarehouseDto.md +1 -1
- package/docs/ChangeWarehouseItemDto.md +1 -1
- package/docs/CreateBusinessDto.md +1 -1
- package/docs/CreateProductDto.md +1 -1
- package/docs/CreateWarehouseDto.md +1 -1
- package/docs/DefaultApi.md +6 -6
- package/docs/EmployeesApi.md +3 -3
- package/docs/ExceptionDto.md +1 -1
- package/docs/ForgotPasswordDto.md +1 -1
- package/docs/LoginUserBodyDto.md +1 -1
- package/docs/LoginUserResponseDto.md +1 -1
- package/docs/LogoutUserResponseDto.md +1 -1
- package/docs/ProductsApi.md +12 -12
- package/docs/RegisterEmployeeDto.md +1 -1
- package/docs/RegisterOwnerDto.md +1 -1
- package/docs/ResetPasswordDto.md +1 -1
- package/docs/SellItemDto.md +1 -1
- package/docs/SellProductDto.md +1 -1
- package/docs/UpdateProductDto.md +1 -1
- package/docs/UsersApi.md +6 -6
- package/docs/WarehouseProductsApi.md +2 -2
- package/docs/WarehousesApi.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @my-market
|
|
1
|
+
## @my-market/contracts@0.0.3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @my-market
|
|
39
|
+
npm install @my-market/contracts@0.0.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -112,10 +112,5 @@ Class | Method | HTTP request | Description
|
|
|
112
112
|
<a id="documentation-for-authorization"></a>
|
|
113
113
|
## Documentation For Authorization
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
Authentication schemes defined for the API:
|
|
117
|
-
<a id="bearer"></a>
|
|
118
|
-
### bearer
|
|
119
|
-
|
|
120
|
-
- **Type**: Bearer authentication (JWT)
|
|
115
|
+
Endpoints do not require authorization.
|
|
121
116
|
|
package/apis/auth-api.ts
CHANGED
|
@@ -56,10 +56,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
56
56
|
const localVarHeaderParameter = {} as any;
|
|
57
57
|
const localVarQueryParameter = {} as any;
|
|
58
58
|
|
|
59
|
-
// authentication bearer required
|
|
60
|
-
// http bearer authentication required
|
|
61
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
-
|
|
63
59
|
|
|
64
60
|
|
|
65
61
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -93,10 +89,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
93
89
|
const localVarHeaderParameter = {} as any;
|
|
94
90
|
const localVarQueryParameter = {} as any;
|
|
95
91
|
|
|
96
|
-
// authentication bearer required
|
|
97
|
-
// http bearer authentication required
|
|
98
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
99
|
-
|
|
100
92
|
|
|
101
93
|
|
|
102
94
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
package/apis/products-api.ts
CHANGED
|
@@ -52,10 +52,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
52
52
|
const localVarHeaderParameter = {} as any;
|
|
53
53
|
const localVarQueryParameter = {} as any;
|
|
54
54
|
|
|
55
|
-
// authentication bearer required
|
|
56
|
-
// http bearer authentication required
|
|
57
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58
|
-
|
|
59
55
|
|
|
60
56
|
|
|
61
57
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -92,10 +88,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
88
|
const localVarHeaderParameter = {} as any;
|
|
93
89
|
const localVarQueryParameter = {} as any;
|
|
94
90
|
|
|
95
|
-
// authentication bearer required
|
|
96
|
-
// http bearer authentication required
|
|
97
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
98
|
-
|
|
99
91
|
if (warehouseId !== undefined) {
|
|
100
92
|
localVarQueryParameter['warehouse_id'] = warehouseId;
|
|
101
93
|
}
|
|
@@ -142,10 +134,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
142
134
|
const localVarHeaderParameter = {} as any;
|
|
143
135
|
const localVarQueryParameter = {} as any;
|
|
144
136
|
|
|
145
|
-
// authentication bearer required
|
|
146
|
-
// http bearer authentication required
|
|
147
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
148
|
-
|
|
149
137
|
|
|
150
138
|
|
|
151
139
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -180,10 +168,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
180
168
|
const localVarHeaderParameter = {} as any;
|
|
181
169
|
const localVarQueryParameter = {} as any;
|
|
182
170
|
|
|
183
|
-
// authentication bearer required
|
|
184
|
-
// http bearer authentication required
|
|
185
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
186
|
-
|
|
187
171
|
|
|
188
172
|
|
|
189
173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -219,10 +203,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
219
203
|
const localVarHeaderParameter = {} as any;
|
|
220
204
|
const localVarQueryParameter = {} as any;
|
|
221
205
|
|
|
222
|
-
// authentication bearer required
|
|
223
|
-
// http bearer authentication required
|
|
224
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
225
|
-
|
|
226
206
|
if (text !== undefined) {
|
|
227
207
|
localVarQueryParameter['text'] = text;
|
|
228
208
|
}
|
|
@@ -280,10 +260,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
280
260
|
const localVarHeaderParameter = {} as any;
|
|
281
261
|
const localVarQueryParameter = {} as any;
|
|
282
262
|
|
|
283
|
-
// authentication bearer required
|
|
284
|
-
// http bearer authentication required
|
|
285
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
286
|
-
|
|
287
263
|
|
|
288
264
|
|
|
289
265
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/dist/apis/auth-api.js
CHANGED
|
@@ -57,9 +57,6 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
57
57
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
58
58
|
const localVarHeaderParameter = {};
|
|
59
59
|
const localVarQueryParameter = {};
|
|
60
|
-
// authentication bearer required
|
|
61
|
-
// http bearer authentication required
|
|
62
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
63
60
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64
61
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
62
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -87,9 +84,6 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
87
84
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
88
85
|
const localVarHeaderParameter = {};
|
|
89
86
|
const localVarQueryParameter = {};
|
|
90
|
-
// authentication bearer required
|
|
91
|
-
// http bearer authentication required
|
|
92
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
93
87
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
94
88
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
89
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -57,9 +57,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
57
57
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
58
58
|
const localVarHeaderParameter = {};
|
|
59
59
|
const localVarQueryParameter = {};
|
|
60
|
-
// authentication bearer required
|
|
61
|
-
// http bearer authentication required
|
|
62
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
63
60
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64
61
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
62
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -90,9 +87,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
90
87
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
91
88
|
const localVarHeaderParameter = {};
|
|
92
89
|
const localVarQueryParameter = {};
|
|
93
|
-
// authentication bearer required
|
|
94
|
-
// http bearer authentication required
|
|
95
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
96
90
|
if (warehouseId !== undefined) {
|
|
97
91
|
localVarQueryParameter['warehouse_id'] = warehouseId;
|
|
98
92
|
}
|
|
@@ -131,9 +125,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
131
125
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
132
126
|
const localVarHeaderParameter = {};
|
|
133
127
|
const localVarQueryParameter = {};
|
|
134
|
-
// authentication bearer required
|
|
135
|
-
// http bearer authentication required
|
|
136
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
137
128
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
138
129
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
130
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -163,9 +154,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
163
154
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
164
155
|
const localVarHeaderParameter = {};
|
|
165
156
|
const localVarQueryParameter = {};
|
|
166
|
-
// authentication bearer required
|
|
167
|
-
// http bearer authentication required
|
|
168
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
169
157
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
170
158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
159
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -196,9 +184,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
196
184
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
197
185
|
const localVarHeaderParameter = {};
|
|
198
186
|
const localVarQueryParameter = {};
|
|
199
|
-
// authentication bearer required
|
|
200
|
-
// http bearer authentication required
|
|
201
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
202
187
|
if (text !== undefined) {
|
|
203
188
|
localVarQueryParameter['text'] = text;
|
|
204
189
|
}
|
|
@@ -246,9 +231,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
246
231
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
247
232
|
const localVarHeaderParameter = {};
|
|
248
233
|
const localVarQueryParameter = {};
|
|
249
|
-
// authentication bearer required
|
|
250
|
-
// http bearer authentication required
|
|
251
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
252
234
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
253
235
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists,
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
29
|
/**
|
|
@@ -51,9 +51,6 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
51
51
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
52
52
|
const localVarHeaderParameter = {};
|
|
53
53
|
const localVarQueryParameter = {};
|
|
54
|
-
// authentication bearer required
|
|
55
|
-
// http bearer authentication required
|
|
56
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
57
54
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58
55
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
56
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -81,9 +78,6 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
81
78
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
82
79
|
const localVarHeaderParameter = {};
|
|
83
80
|
const localVarQueryParameter = {};
|
|
84
|
-
// authentication bearer required
|
|
85
|
-
// http bearer authentication required
|
|
86
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
87
81
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
82
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
83
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists,
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
29
|
/**
|
|
@@ -51,9 +51,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
51
51
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
52
52
|
const localVarHeaderParameter = {};
|
|
53
53
|
const localVarQueryParameter = {};
|
|
54
|
-
// authentication bearer required
|
|
55
|
-
// http bearer authentication required
|
|
56
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
57
54
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58
55
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
56
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -84,9 +81,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
84
81
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
85
82
|
const localVarHeaderParameter = {};
|
|
86
83
|
const localVarQueryParameter = {};
|
|
87
|
-
// authentication bearer required
|
|
88
|
-
// http bearer authentication required
|
|
89
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
90
84
|
if (warehouseId !== undefined) {
|
|
91
85
|
localVarQueryParameter['warehouse_id'] = warehouseId;
|
|
92
86
|
}
|
|
@@ -125,9 +119,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
125
119
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
126
120
|
const localVarHeaderParameter = {};
|
|
127
121
|
const localVarQueryParameter = {};
|
|
128
|
-
// authentication bearer required
|
|
129
|
-
// http bearer authentication required
|
|
130
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
131
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
124
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -157,9 +148,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
157
148
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
158
149
|
const localVarHeaderParameter = {};
|
|
159
150
|
const localVarQueryParameter = {};
|
|
160
|
-
// authentication bearer required
|
|
161
|
-
// http bearer authentication required
|
|
162
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
163
151
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
152
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
153
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -190,9 +178,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
190
178
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
191
179
|
const localVarHeaderParameter = {};
|
|
192
180
|
const localVarQueryParameter = {};
|
|
193
|
-
// authentication bearer required
|
|
194
|
-
// http bearer authentication required
|
|
195
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
196
181
|
if (text !== undefined) {
|
|
197
182
|
localVarQueryParameter['text'] = text;
|
|
198
183
|
}
|
|
@@ -240,9 +225,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
240
225
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
241
226
|
const localVarHeaderParameter = {};
|
|
242
227
|
const localVarQueryParameter = {};
|
|
243
|
-
// authentication bearer required
|
|
244
|
-
// http bearer authentication required
|
|
245
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
246
228
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
247
229
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
230
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/docs/AuthApi.md
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
AuthApi,
|
|
19
19
|
Configuration,
|
|
20
20
|
LoginUserBodyDto
|
|
21
|
-
} from '@my-market
|
|
21
|
+
} from '@my-market/contracts';
|
|
22
22
|
|
|
23
23
|
const configuration = new Configuration();
|
|
24
24
|
const apiInstance = new AuthApi(configuration);
|
|
@@ -43,7 +43,7 @@ const { status, data } = await apiInstance.authControllerLogin(
|
|
|
43
43
|
|
|
44
44
|
### Authorization
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
No authorization required
|
|
47
47
|
|
|
48
48
|
### HTTP request headers
|
|
49
49
|
|
|
@@ -70,7 +70,7 @@ const { status, data } = await apiInstance.authControllerLogin(
|
|
|
70
70
|
import {
|
|
71
71
|
AuthApi,
|
|
72
72
|
Configuration
|
|
73
|
-
} from '@my-market
|
|
73
|
+
} from '@my-market/contracts';
|
|
74
74
|
|
|
75
75
|
const configuration = new Configuration();
|
|
76
76
|
const apiInstance = new AuthApi(configuration);
|
|
@@ -88,7 +88,7 @@ This endpoint does not have any parameters.
|
|
|
88
88
|
|
|
89
89
|
### Authorization
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
No authorization required
|
|
92
92
|
|
|
93
93
|
### HTTP request headers
|
|
94
94
|
|
package/docs/BusinessApi.md
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
BusinessApi,
|
|
24
24
|
Configuration,
|
|
25
25
|
CreateBusinessDto
|
|
26
|
-
} from '@my-market
|
|
26
|
+
} from '@my-market/contracts';
|
|
27
27
|
|
|
28
28
|
const configuration = new Configuration();
|
|
29
29
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -74,7 +74,7 @@ No authorization required
|
|
|
74
74
|
import {
|
|
75
75
|
BusinessApi,
|
|
76
76
|
Configuration
|
|
77
|
-
} from '@my-market
|
|
77
|
+
} from '@my-market/contracts';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
80
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -125,7 +125,7 @@ No authorization required
|
|
|
125
125
|
import {
|
|
126
126
|
BusinessApi,
|
|
127
127
|
Configuration
|
|
128
|
-
} from '@my-market
|
|
128
|
+
} from '@my-market/contracts';
|
|
129
129
|
|
|
130
130
|
const configuration = new Configuration();
|
|
131
131
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -169,7 +169,7 @@ No authorization required
|
|
|
169
169
|
import {
|
|
170
170
|
BusinessApi,
|
|
171
171
|
Configuration
|
|
172
|
-
} from '@my-market
|
|
172
|
+
} from '@my-market/contracts';
|
|
173
173
|
|
|
174
174
|
const configuration = new Configuration();
|
|
175
175
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -220,7 +220,7 @@ No authorization required
|
|
|
220
220
|
import {
|
|
221
221
|
BusinessApi,
|
|
222
222
|
Configuration
|
|
223
|
-
} from '@my-market
|
|
223
|
+
} from '@my-market/contracts';
|
|
224
224
|
|
|
225
225
|
const configuration = new Configuration();
|
|
226
226
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -264,7 +264,7 @@ No authorization required
|
|
|
264
264
|
import {
|
|
265
265
|
BusinessApi,
|
|
266
266
|
Configuration
|
|
267
|
-
} from '@my-market
|
|
267
|
+
} from '@my-market/contracts';
|
|
268
268
|
|
|
269
269
|
const configuration = new Configuration();
|
|
270
270
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -315,7 +315,7 @@ No authorization required
|
|
|
315
315
|
import {
|
|
316
316
|
BusinessApi,
|
|
317
317
|
Configuration
|
|
318
|
-
} from '@my-market
|
|
318
|
+
} from '@my-market/contracts';
|
|
319
319
|
|
|
320
320
|
const configuration = new Configuration();
|
|
321
321
|
const apiInstance = new BusinessApi(configuration);
|
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import { ChangeWarehouseItemDto } from '@my-market
|
|
17
|
+
import { ChangeWarehouseItemDto } from '@my-market/contracts';
|
|
18
18
|
|
|
19
19
|
const instance: ChangeWarehouseItemDto = {
|
|
20
20
|
productId,
|
package/docs/CreateProductDto.md
CHANGED
package/docs/DefaultApi.md
CHANGED
|
@@ -21,7 +21,7 @@ All URIs are relative to *http://localhost*
|
|
|
21
21
|
import {
|
|
22
22
|
DefaultApi,
|
|
23
23
|
Configuration
|
|
24
|
-
} from '@my-market
|
|
24
|
+
} from '@my-market/contracts';
|
|
25
25
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
27
|
const apiInstance = new DefaultApi(configuration);
|
|
@@ -72,7 +72,7 @@ No authorization required
|
|
|
72
72
|
import {
|
|
73
73
|
DefaultApi,
|
|
74
74
|
Configuration
|
|
75
|
-
} from '@my-market
|
|
75
|
+
} from '@my-market/contracts';
|
|
76
76
|
|
|
77
77
|
const configuration = new Configuration();
|
|
78
78
|
const apiInstance = new DefaultApi(configuration);
|
|
@@ -124,7 +124,7 @@ No authorization required
|
|
|
124
124
|
import {
|
|
125
125
|
DefaultApi,
|
|
126
126
|
Configuration
|
|
127
|
-
} from '@my-market
|
|
127
|
+
} from '@my-market/contracts';
|
|
128
128
|
|
|
129
129
|
const configuration = new Configuration();
|
|
130
130
|
const apiInstance = new DefaultApi(configuration);
|
|
@@ -175,7 +175,7 @@ No authorization required
|
|
|
175
175
|
import {
|
|
176
176
|
DefaultApi,
|
|
177
177
|
Configuration
|
|
178
|
-
} from '@my-market
|
|
178
|
+
} from '@my-market/contracts';
|
|
179
179
|
|
|
180
180
|
const configuration = new Configuration();
|
|
181
181
|
const apiInstance = new DefaultApi(configuration);
|
|
@@ -218,7 +218,7 @@ No authorization required
|
|
|
218
218
|
import {
|
|
219
219
|
DefaultApi,
|
|
220
220
|
Configuration
|
|
221
|
-
} from '@my-market
|
|
221
|
+
} from '@my-market/contracts';
|
|
222
222
|
|
|
223
223
|
const configuration = new Configuration();
|
|
224
224
|
const apiInstance = new DefaultApi(configuration);
|
|
@@ -269,7 +269,7 @@ No authorization required
|
|
|
269
269
|
import {
|
|
270
270
|
DefaultApi,
|
|
271
271
|
Configuration
|
|
272
|
-
} from '@my-market
|
|
272
|
+
} from '@my-market/contracts';
|
|
273
273
|
|
|
274
274
|
const configuration = new Configuration();
|
|
275
275
|
const apiInstance = new DefaultApi(configuration);
|
package/docs/EmployeesApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *http://localhost*
|
|
|
18
18
|
import {
|
|
19
19
|
EmployeesApi,
|
|
20
20
|
Configuration
|
|
21
|
-
} from '@my-market
|
|
21
|
+
} from '@my-market/contracts';
|
|
22
22
|
|
|
23
23
|
const configuration = new Configuration();
|
|
24
24
|
const apiInstance = new EmployeesApi(configuration);
|
|
@@ -72,7 +72,7 @@ No authorization required
|
|
|
72
72
|
import {
|
|
73
73
|
EmployeesApi,
|
|
74
74
|
Configuration
|
|
75
|
-
} from '@my-market
|
|
75
|
+
} from '@my-market/contracts';
|
|
76
76
|
|
|
77
77
|
const configuration = new Configuration();
|
|
78
78
|
const apiInstance = new EmployeesApi(configuration);
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
EmployeesApi,
|
|
119
119
|
Configuration,
|
|
120
120
|
RegisterEmployeeDto
|
|
121
|
-
} from '@my-market
|
|
121
|
+
} from '@my-market/contracts';
|
|
122
122
|
|
|
123
123
|
const configuration = new Configuration();
|
|
124
124
|
const apiInstance = new EmployeesApi(configuration);
|
package/docs/ExceptionDto.md
CHANGED
package/docs/LoginUserBodyDto.md
CHANGED
package/docs/ProductsApi.md
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ProductsApi,
|
|
23
23
|
Configuration,
|
|
24
24
|
CreateProductDto
|
|
25
|
-
} from '@my-market
|
|
25
|
+
} from '@my-market/contracts';
|
|
26
26
|
|
|
27
27
|
const configuration = new Configuration();
|
|
28
28
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -47,7 +47,7 @@ const { status, data } = await apiInstance.productsControllerCreate(
|
|
|
47
47
|
|
|
48
48
|
### Authorization
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
No authorization required
|
|
51
51
|
|
|
52
52
|
### HTTP request headers
|
|
53
53
|
|
|
@@ -74,7 +74,7 @@ const { status, data } = await apiInstance.productsControllerCreate(
|
|
|
74
74
|
import {
|
|
75
75
|
ProductsApi,
|
|
76
76
|
Configuration
|
|
77
|
-
} from '@my-market
|
|
77
|
+
} from '@my-market/contracts';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
80
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -105,7 +105,7 @@ const { status, data } = await apiInstance.productsControllerFindAll(
|
|
|
105
105
|
|
|
106
106
|
### Authorization
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
No authorization required
|
|
109
109
|
|
|
110
110
|
### HTTP request headers
|
|
111
111
|
|
|
@@ -131,7 +131,7 @@ const { status, data } = await apiInstance.productsControllerFindAll(
|
|
|
131
131
|
import {
|
|
132
132
|
ProductsApi,
|
|
133
133
|
Configuration
|
|
134
|
-
} from '@my-market
|
|
134
|
+
} from '@my-market/contracts';
|
|
135
135
|
|
|
136
136
|
const configuration = new Configuration();
|
|
137
137
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -156,7 +156,7 @@ const { status, data } = await apiInstance.productsControllerFindOne(
|
|
|
156
156
|
|
|
157
157
|
### Authorization
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
No authorization required
|
|
160
160
|
|
|
161
161
|
### HTTP request headers
|
|
162
162
|
|
|
@@ -183,7 +183,7 @@ const { status, data } = await apiInstance.productsControllerFindOne(
|
|
|
183
183
|
import {
|
|
184
184
|
ProductsApi,
|
|
185
185
|
Configuration
|
|
186
|
-
} from '@my-market
|
|
186
|
+
} from '@my-market/contracts';
|
|
187
187
|
|
|
188
188
|
const configuration = new Configuration();
|
|
189
189
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -208,7 +208,7 @@ void (empty response body)
|
|
|
208
208
|
|
|
209
209
|
### Authorization
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
No authorization required
|
|
212
212
|
|
|
213
213
|
### HTTP request headers
|
|
214
214
|
|
|
@@ -236,7 +236,7 @@ void (empty response body)
|
|
|
236
236
|
import {
|
|
237
237
|
ProductsApi,
|
|
238
238
|
Configuration
|
|
239
|
-
} from '@my-market
|
|
239
|
+
} from '@my-market/contracts';
|
|
240
240
|
|
|
241
241
|
const configuration = new Configuration();
|
|
242
242
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -273,7 +273,7 @@ const { status, data } = await apiInstance.productsControllerSearch(
|
|
|
273
273
|
|
|
274
274
|
### Authorization
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
No authorization required
|
|
277
277
|
|
|
278
278
|
### HTTP request headers
|
|
279
279
|
|
|
@@ -300,7 +300,7 @@ import {
|
|
|
300
300
|
ProductsApi,
|
|
301
301
|
Configuration,
|
|
302
302
|
UpdateProductDto
|
|
303
|
-
} from '@my-market
|
|
303
|
+
} from '@my-market/contracts';
|
|
304
304
|
|
|
305
305
|
const configuration = new Configuration();
|
|
306
306
|
const apiInstance = new ProductsApi(configuration);
|
|
@@ -328,7 +328,7 @@ const { status, data } = await apiInstance.productsControllerUpdate(
|
|
|
328
328
|
|
|
329
329
|
### Authorization
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
No authorization required
|
|
332
332
|
|
|
333
333
|
### HTTP request headers
|
|
334
334
|
|
package/docs/RegisterOwnerDto.md
CHANGED
package/docs/ResetPasswordDto.md
CHANGED
package/docs/SellItemDto.md
CHANGED
package/docs/SellProductDto.md
CHANGED
package/docs/UpdateProductDto.md
CHANGED
package/docs/UsersApi.md
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
UsersApi,
|
|
23
23
|
Configuration,
|
|
24
24
|
ChangePasswordDto
|
|
25
|
-
} from '@my-market
|
|
25
|
+
} from '@my-market/contracts';
|
|
26
26
|
|
|
27
27
|
const configuration = new Configuration();
|
|
28
28
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
UsersApi,
|
|
74
74
|
Configuration,
|
|
75
75
|
ForgotPasswordDto
|
|
76
|
-
} from '@my-market
|
|
76
|
+
} from '@my-market/contracts';
|
|
77
77
|
|
|
78
78
|
const configuration = new Configuration();
|
|
79
79
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -123,7 +123,7 @@ No authorization required
|
|
|
123
123
|
import {
|
|
124
124
|
UsersApi,
|
|
125
125
|
Configuration
|
|
126
|
-
} from '@my-market
|
|
126
|
+
} from '@my-market/contracts';
|
|
127
127
|
|
|
128
128
|
const configuration = new Configuration();
|
|
129
129
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
UsersApi,
|
|
168
168
|
Configuration,
|
|
169
169
|
RegisterOwnerDto
|
|
170
|
-
} from '@my-market
|
|
170
|
+
} from '@my-market/contracts';
|
|
171
171
|
|
|
172
172
|
const configuration = new Configuration();
|
|
173
173
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
UsersApi,
|
|
219
219
|
Configuration,
|
|
220
220
|
ResetPasswordDto
|
|
221
|
-
} from '@my-market
|
|
221
|
+
} from '@my-market/contracts';
|
|
222
222
|
|
|
223
223
|
const configuration = new Configuration();
|
|
224
224
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -268,7 +268,7 @@ No authorization required
|
|
|
268
268
|
import {
|
|
269
269
|
UsersApi,
|
|
270
270
|
Configuration
|
|
271
|
-
} from '@my-market
|
|
271
|
+
} from '@my-market/contracts';
|
|
272
272
|
|
|
273
273
|
const configuration = new Configuration();
|
|
274
274
|
const apiInstance = new UsersApi(configuration);
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
WarehouseProductsApi,
|
|
19
19
|
Configuration,
|
|
20
20
|
ChangeWarehouseDto
|
|
21
|
-
} from '@my-market
|
|
21
|
+
} from '@my-market/contracts';
|
|
22
22
|
|
|
23
23
|
const configuration = new Configuration();
|
|
24
24
|
const apiInstance = new WarehouseProductsApi(configuration);
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
WarehouseProductsApi,
|
|
70
70
|
Configuration,
|
|
71
71
|
SellProductDto
|
|
72
|
-
} from '@my-market
|
|
72
|
+
} from '@my-market/contracts';
|
|
73
73
|
|
|
74
74
|
const configuration = new Configuration();
|
|
75
75
|
const apiInstance = new WarehouseProductsApi(configuration);
|
package/docs/WarehousesApi.md
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
WarehousesApi,
|
|
20
20
|
Configuration,
|
|
21
21
|
CreateWarehouseDto
|
|
22
|
-
} from '@my-market
|
|
22
|
+
} from '@my-market/contracts';
|
|
23
23
|
|
|
24
24
|
const configuration = new Configuration();
|
|
25
25
|
const apiInstance = new WarehousesApi(configuration);
|
|
@@ -69,7 +69,7 @@ No authorization required
|
|
|
69
69
|
import {
|
|
70
70
|
WarehousesApi,
|
|
71
71
|
Configuration
|
|
72
|
-
} from '@my-market
|
|
72
|
+
} from '@my-market/contracts';
|
|
73
73
|
|
|
74
74
|
const configuration = new Configuration();
|
|
75
75
|
const apiInstance = new WarehousesApi(configuration);
|
|
@@ -119,7 +119,7 @@ No authorization required
|
|
|
119
119
|
import {
|
|
120
120
|
WarehousesApi,
|
|
121
121
|
Configuration
|
|
122
|
-
} from '@my-market
|
|
122
|
+
} from '@my-market/contracts';
|
|
123
123
|
|
|
124
124
|
const configuration = new Configuration();
|
|
125
125
|
const apiInstance = new WarehousesApi(configuration);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@my-market/contracts",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "OpenAPI client for @my-market
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "OpenAPI client for @my-market/contracts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"typescript",
|
|
13
13
|
"openapi-client",
|
|
14
14
|
"openapi-generator",
|
|
15
|
-
"@my-market
|
|
15
|
+
"@my-market/contracts"
|
|
16
16
|
],
|
|
17
17
|
"license": "Unlicense",
|
|
18
18
|
"main": "./dist/index.js",
|