@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.
Files changed (188) hide show
  1. package/.openapi-generator/FILES +63 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +121 -0
  5. package/api.ts +25 -0
  6. package/apis/auth-api.ts +201 -0
  7. package/apis/business-api.ts +535 -0
  8. package/apis/default-api.ts +470 -0
  9. package/apis/employees-api.ts +268 -0
  10. package/apis/products-api.ts +551 -0
  11. package/apis/users-api.ts +471 -0
  12. package/apis/warehouse-products-api.ts +198 -0
  13. package/apis/warehouses-api.ts +255 -0
  14. package/base.ts +62 -0
  15. package/common.ts +113 -0
  16. package/configuration.ts +121 -0
  17. package/dist/api.d.ts +19 -0
  18. package/dist/api.js +37 -0
  19. package/dist/apis/auth-api.d.ts +98 -0
  20. package/dist/apis/auth-api.js +196 -0
  21. package/dist/apis/business-api.d.ts +256 -0
  22. package/dist/apis/business-api.js +520 -0
  23. package/dist/apis/default-api.d.ts +227 -0
  24. package/dist/apis/default-api.js +460 -0
  25. package/dist/apis/employees-api.d.ts +132 -0
  26. package/dist/apis/employees-api.js +266 -0
  27. package/dist/apis/products-api.d.ts +257 -0
  28. package/dist/apis/products-api.js +525 -0
  29. package/dist/apis/users-api.d.ts +227 -0
  30. package/dist/apis/users-api.js +453 -0
  31. package/dist/apis/warehouse-products-api.d.ts +101 -0
  32. package/dist/apis/warehouse-products-api.js +198 -0
  33. package/dist/apis/warehouses-api.d.ts +128 -0
  34. package/dist/apis/warehouses-api.js +255 -0
  35. package/dist/base.d.ts +42 -0
  36. package/dist/base.js +49 -0
  37. package/dist/common.d.ts +28 -0
  38. package/dist/common.js +124 -0
  39. package/dist/configuration.d.ts +98 -0
  40. package/dist/configuration.js +44 -0
  41. package/dist/esm/api.d.ts +19 -0
  42. package/dist/esm/api.js +21 -0
  43. package/dist/esm/apis/auth-api.d.ts +97 -0
  44. package/dist/esm/apis/auth-api.js +186 -0
  45. package/dist/esm/apis/business-api.d.ts +255 -0
  46. package/dist/esm/apis/business-api.js +510 -0
  47. package/dist/esm/apis/default-api.d.ts +226 -0
  48. package/dist/esm/apis/default-api.js +450 -0
  49. package/dist/esm/apis/employees-api.d.ts +131 -0
  50. package/dist/esm/apis/employees-api.js +256 -0
  51. package/dist/esm/apis/products-api.d.ts +256 -0
  52. package/dist/esm/apis/products-api.js +515 -0
  53. package/dist/esm/apis/users-api.d.ts +226 -0
  54. package/dist/esm/apis/users-api.js +443 -0
  55. package/dist/esm/apis/warehouse-products-api.d.ts +100 -0
  56. package/dist/esm/apis/warehouse-products-api.js +188 -0
  57. package/dist/esm/apis/warehouses-api.d.ts +127 -0
  58. package/dist/esm/apis/warehouses-api.js +245 -0
  59. package/dist/esm/base.d.ts +42 -0
  60. package/dist/esm/base.js +41 -0
  61. package/dist/esm/common.d.ts +28 -0
  62. package/dist/esm/common.js +112 -0
  63. package/dist/esm/configuration.d.ts +98 -0
  64. package/dist/esm/configuration.js +40 -0
  65. package/dist/esm/index.d.ts +14 -0
  66. package/dist/esm/index.js +16 -0
  67. package/dist/esm/models/change-password-dto.d.ts +21 -0
  68. package/dist/esm/models/change-password-dto.js +14 -0
  69. package/dist/esm/models/change-warehouse-dto.d.ts +15 -0
  70. package/dist/esm/models/change-warehouse-dto.js +14 -0
  71. package/dist/esm/models/change-warehouse-item-dto.d.ts +33 -0
  72. package/dist/esm/models/change-warehouse-item-dto.js +14 -0
  73. package/dist/esm/models/create-business-dto.d.ts +17 -0
  74. package/dist/esm/models/create-business-dto.js +14 -0
  75. package/dist/esm/models/create-product-dto.d.ts +69 -0
  76. package/dist/esm/models/create-product-dto.js +14 -0
  77. package/dist/esm/models/create-warehouse-dto.d.ts +17 -0
  78. package/dist/esm/models/create-warehouse-dto.js +14 -0
  79. package/dist/esm/models/exception-dto.d.ts +16 -0
  80. package/dist/esm/models/exception-dto.js +14 -0
  81. package/dist/esm/models/forgot-password-dto.d.ts +17 -0
  82. package/dist/esm/models/forgot-password-dto.js +14 -0
  83. package/dist/esm/models/index.d.ts +17 -0
  84. package/dist/esm/models/index.js +17 -0
  85. package/dist/esm/models/login-user-body-dto.d.ts +21 -0
  86. package/dist/esm/models/login-user-body-dto.js +14 -0
  87. package/dist/esm/models/login-user-response-dto.d.ts +14 -0
  88. package/dist/esm/models/login-user-response-dto.js +14 -0
  89. package/dist/esm/models/logout-user-response-dto.d.ts +14 -0
  90. package/dist/esm/models/logout-user-response-dto.js +14 -0
  91. package/dist/esm/models/register-employee-dto.d.ts +29 -0
  92. package/dist/esm/models/register-employee-dto.js +14 -0
  93. package/dist/esm/models/register-owner-dto.d.ts +29 -0
  94. package/dist/esm/models/register-owner-dto.js +14 -0
  95. package/dist/esm/models/reset-password-dto.d.ts +21 -0
  96. package/dist/esm/models/reset-password-dto.js +14 -0
  97. package/dist/esm/models/sell-item-dto.d.ts +25 -0
  98. package/dist/esm/models/sell-item-dto.js +14 -0
  99. package/dist/esm/models/sell-product-dto.d.ts +18 -0
  100. package/dist/esm/models/sell-product-dto.js +14 -0
  101. package/dist/esm/models/update-product-dto.d.ts +65 -0
  102. package/dist/esm/models/update-product-dto.js +14 -0
  103. package/dist/index.d.ts +14 -0
  104. package/dist/index.js +32 -0
  105. package/dist/models/change-password-dto.d.ts +21 -0
  106. package/dist/models/change-password-dto.js +15 -0
  107. package/dist/models/change-warehouse-dto.d.ts +15 -0
  108. package/dist/models/change-warehouse-dto.js +15 -0
  109. package/dist/models/change-warehouse-item-dto.d.ts +33 -0
  110. package/dist/models/change-warehouse-item-dto.js +15 -0
  111. package/dist/models/create-business-dto.d.ts +17 -0
  112. package/dist/models/create-business-dto.js +15 -0
  113. package/dist/models/create-product-dto.d.ts +69 -0
  114. package/dist/models/create-product-dto.js +15 -0
  115. package/dist/models/create-warehouse-dto.d.ts +17 -0
  116. package/dist/models/create-warehouse-dto.js +15 -0
  117. package/dist/models/exception-dto.d.ts +16 -0
  118. package/dist/models/exception-dto.js +15 -0
  119. package/dist/models/forgot-password-dto.d.ts +17 -0
  120. package/dist/models/forgot-password-dto.js +15 -0
  121. package/dist/models/index.d.ts +17 -0
  122. package/dist/models/index.js +33 -0
  123. package/dist/models/login-user-body-dto.d.ts +21 -0
  124. package/dist/models/login-user-body-dto.js +15 -0
  125. package/dist/models/login-user-response-dto.d.ts +14 -0
  126. package/dist/models/login-user-response-dto.js +15 -0
  127. package/dist/models/logout-user-response-dto.d.ts +14 -0
  128. package/dist/models/logout-user-response-dto.js +15 -0
  129. package/dist/models/register-employee-dto.d.ts +29 -0
  130. package/dist/models/register-employee-dto.js +15 -0
  131. package/dist/models/register-owner-dto.d.ts +29 -0
  132. package/dist/models/register-owner-dto.js +15 -0
  133. package/dist/models/reset-password-dto.d.ts +21 -0
  134. package/dist/models/reset-password-dto.js +15 -0
  135. package/dist/models/sell-item-dto.d.ts +25 -0
  136. package/dist/models/sell-item-dto.js +15 -0
  137. package/dist/models/sell-product-dto.d.ts +18 -0
  138. package/dist/models/sell-product-dto.js +15 -0
  139. package/dist/models/update-product-dto.d.ts +65 -0
  140. package/dist/models/update-product-dto.js +15 -0
  141. package/docs/AuthApi.md +106 -0
  142. package/docs/BusinessApi.md +361 -0
  143. package/docs/ChangePasswordDto.md +22 -0
  144. package/docs/ChangeWarehouseDto.md +20 -0
  145. package/docs/ChangeWarehouseItemDto.md +28 -0
  146. package/docs/CreateBusinessDto.md +20 -0
  147. package/docs/CreateProductDto.md +46 -0
  148. package/docs/CreateWarehouseDto.md +20 -0
  149. package/docs/DefaultApi.md +315 -0
  150. package/docs/EmployeesApi.md +161 -0
  151. package/docs/ExceptionDto.md +24 -0
  152. package/docs/ForgotPasswordDto.md +20 -0
  153. package/docs/LoginUserBodyDto.md +22 -0
  154. package/docs/LoginUserResponseDto.md +20 -0
  155. package/docs/LogoutUserResponseDto.md +20 -0
  156. package/docs/ProductsApi.md +348 -0
  157. package/docs/RegisterEmployeeDto.md +26 -0
  158. package/docs/RegisterOwnerDto.md +26 -0
  159. package/docs/ResetPasswordDto.md +22 -0
  160. package/docs/SellItemDto.md +24 -0
  161. package/docs/SellProductDto.md +20 -0
  162. package/docs/UpdateProductDto.md +44 -0
  163. package/docs/UsersApi.md +310 -0
  164. package/docs/WarehouseProductsApi.md +111 -0
  165. package/docs/WarehousesApi.md +154 -0
  166. package/git_push.sh +57 -0
  167. package/index.ts +18 -0
  168. package/models/change-password-dto.ts +27 -0
  169. package/models/change-warehouse-dto.ts +23 -0
  170. package/models/change-warehouse-item-dto.ts +39 -0
  171. package/models/create-business-dto.ts +23 -0
  172. package/models/create-product-dto.ts +75 -0
  173. package/models/create-warehouse-dto.ts +23 -0
  174. package/models/exception-dto.ts +22 -0
  175. package/models/forgot-password-dto.ts +23 -0
  176. package/models/index.ts +17 -0
  177. package/models/login-user-body-dto.ts +27 -0
  178. package/models/login-user-response-dto.ts +20 -0
  179. package/models/logout-user-response-dto.ts +20 -0
  180. package/models/register-employee-dto.ts +35 -0
  181. package/models/register-owner-dto.ts +35 -0
  182. package/models/reset-password-dto.ts +27 -0
  183. package/models/sell-item-dto.ts +31 -0
  184. package/models/sell-product-dto.ts +26 -0
  185. package/models/update-product-dto.ts +71 -0
  186. package/package.json +33 -0
  187. package/tsconfig.esm.json +7 -0
  188. package/tsconfig.json +12 -0
@@ -0,0 +1,310 @@
1
+ # UsersApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**usersControllerChangePassword**](#userscontrollerchangepassword) | **POST** /users/changepassword | Сменить пароль пользователя|
8
+ |[**usersControllerForgotPassword**](#userscontrollerforgotpassword) | **POST** /users/forgot-password | Отправка письма на восстановление пароля|
9
+ |[**usersControllerGetProfile**](#userscontrollergetprofile) | **GET** /users/profile | Получить профиль пользователя|
10
+ |[**usersControllerRegisterOwner**](#userscontrollerregisterowner) | **POST** /users/register | Регистрация владельца бизнеса|
11
+ |[**usersControllerResetPassword**](#userscontrollerresetpassword) | **POST** /users/reset-password | Сброс пароля с помощью токена|
12
+ |[**usersControllerVerifyEmail**](#userscontrollerverifyemail) | **GET** /users/verify-email/{token} | Подтверждения email с помощью токена|
13
+
14
+ # **usersControllerChangePassword**
15
+ > usersControllerChangePassword(changePasswordDto)
16
+
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ UsersApi,
23
+ Configuration,
24
+ ChangePasswordDto
25
+ } from '@my-market-contracts';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new UsersApi(configuration);
29
+
30
+ let changePasswordDto: ChangePasswordDto; //
31
+
32
+ const { status, data } = await apiInstance.usersControllerChangePassword(
33
+ changePasswordDto
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **changePasswordDto** | **ChangePasswordDto**| | |
42
+
43
+
44
+ ### Return type
45
+
46
+ void (empty response body)
47
+
48
+ ### Authorization
49
+
50
+ No authorization required
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: Not defined
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**201** | | - |
62
+
63
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
+
65
+ # **usersControllerForgotPassword**
66
+ > usersControllerForgotPassword(forgotPasswordDto)
67
+
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ UsersApi,
74
+ Configuration,
75
+ ForgotPasswordDto
76
+ } from '@my-market-contracts';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new UsersApi(configuration);
80
+
81
+ let forgotPasswordDto: ForgotPasswordDto; //
82
+
83
+ const { status, data } = await apiInstance.usersControllerForgotPassword(
84
+ forgotPasswordDto
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **forgotPasswordDto** | **ForgotPasswordDto**| | |
93
+
94
+
95
+ ### Return type
96
+
97
+ void (empty response body)
98
+
99
+ ### Authorization
100
+
101
+ No authorization required
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: Not defined
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**201** | | - |
113
+
114
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
115
+
116
+ # **usersControllerGetProfile**
117
+ > usersControllerGetProfile()
118
+
119
+
120
+ ### Example
121
+
122
+ ```typescript
123
+ import {
124
+ UsersApi,
125
+ Configuration
126
+ } from '@my-market-contracts';
127
+
128
+ const configuration = new Configuration();
129
+ const apiInstance = new UsersApi(configuration);
130
+
131
+ const { status, data } = await apiInstance.usersControllerGetProfile();
132
+ ```
133
+
134
+ ### Parameters
135
+ This endpoint does not have any parameters.
136
+
137
+
138
+ ### Return type
139
+
140
+ void (empty response body)
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: Not defined
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ |**200** | | - |
156
+
157
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
158
+
159
+ # **usersControllerRegisterOwner**
160
+ > object usersControllerRegisterOwner(registerOwnerDto)
161
+
162
+
163
+ ### Example
164
+
165
+ ```typescript
166
+ import {
167
+ UsersApi,
168
+ Configuration,
169
+ RegisterOwnerDto
170
+ } from '@my-market-contracts';
171
+
172
+ const configuration = new Configuration();
173
+ const apiInstance = new UsersApi(configuration);
174
+
175
+ let registerOwnerDto: RegisterOwnerDto; //
176
+
177
+ const { status, data } = await apiInstance.usersControllerRegisterOwner(
178
+ registerOwnerDto
179
+ );
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+ |Name | Type | Description | Notes|
185
+ |------------- | ------------- | ------------- | -------------|
186
+ | **registerOwnerDto** | **RegisterOwnerDto**| | |
187
+
188
+
189
+ ### Return type
190
+
191
+ **object**
192
+
193
+ ### Authorization
194
+
195
+ No authorization required
196
+
197
+ ### HTTP request headers
198
+
199
+ - **Content-Type**: application/json
200
+ - **Accept**: application/json
201
+
202
+
203
+ ### HTTP response details
204
+ | Status code | Description | Response headers |
205
+ |-------------|-------------|------------------|
206
+ |**201** | | - |
207
+
208
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
209
+
210
+ # **usersControllerResetPassword**
211
+ > usersControllerResetPassword(resetPasswordDto)
212
+
213
+
214
+ ### Example
215
+
216
+ ```typescript
217
+ import {
218
+ UsersApi,
219
+ Configuration,
220
+ ResetPasswordDto
221
+ } from '@my-market-contracts';
222
+
223
+ const configuration = new Configuration();
224
+ const apiInstance = new UsersApi(configuration);
225
+
226
+ let resetPasswordDto: ResetPasswordDto; //
227
+
228
+ const { status, data } = await apiInstance.usersControllerResetPassword(
229
+ resetPasswordDto
230
+ );
231
+ ```
232
+
233
+ ### Parameters
234
+
235
+ |Name | Type | Description | Notes|
236
+ |------------- | ------------- | ------------- | -------------|
237
+ | **resetPasswordDto** | **ResetPasswordDto**| | |
238
+
239
+
240
+ ### Return type
241
+
242
+ void (empty response body)
243
+
244
+ ### Authorization
245
+
246
+ No authorization required
247
+
248
+ ### HTTP request headers
249
+
250
+ - **Content-Type**: application/json
251
+ - **Accept**: Not defined
252
+
253
+
254
+ ### HTTP response details
255
+ | Status code | Description | Response headers |
256
+ |-------------|-------------|------------------|
257
+ |**201** | | - |
258
+
259
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
260
+
261
+ # **usersControllerVerifyEmail**
262
+ > usersControllerVerifyEmail()
263
+
264
+
265
+ ### Example
266
+
267
+ ```typescript
268
+ import {
269
+ UsersApi,
270
+ Configuration
271
+ } from '@my-market-contracts';
272
+
273
+ const configuration = new Configuration();
274
+ const apiInstance = new UsersApi(configuration);
275
+
276
+ let token: string; //Токен подтверждения email (default to undefined)
277
+
278
+ const { status, data } = await apiInstance.usersControllerVerifyEmail(
279
+ token
280
+ );
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+ |Name | Type | Description | Notes|
286
+ |------------- | ------------- | ------------- | -------------|
287
+ | **token** | [**string**] | Токен подтверждения email | defaults to undefined|
288
+
289
+
290
+ ### Return type
291
+
292
+ void (empty response body)
293
+
294
+ ### Authorization
295
+
296
+ No authorization required
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: Not defined
302
+
303
+
304
+ ### HTTP response details
305
+ | Status code | Description | Response headers |
306
+ |-------------|-------------|------------------|
307
+ |**200** | | - |
308
+
309
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
310
+
@@ -0,0 +1,111 @@
1
+ # WarehouseProductsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**warehouseProductsControllerChangeWarehouses**](#warehouseproductscontrollerchangewarehouses) | **POST** /wp | Перемещение товара между складами|
8
+ |[**warehouseProductsControllerStock**](#warehouseproductscontrollerstock) | **POST** /wp/stock | Продажа товара|
9
+
10
+ # **warehouseProductsControllerChangeWarehouses**
11
+ > warehouseProductsControllerChangeWarehouses(changeWarehouseDto)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ WarehouseProductsApi,
19
+ Configuration,
20
+ ChangeWarehouseDto
21
+ } from '@my-market-contracts';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new WarehouseProductsApi(configuration);
25
+
26
+ let changeWarehouseDto: ChangeWarehouseDto; //
27
+
28
+ const { status, data } = await apiInstance.warehouseProductsControllerChangeWarehouses(
29
+ changeWarehouseDto
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **changeWarehouseDto** | **ChangeWarehouseDto**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ void (empty response body)
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: Not defined
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**201** | | - |
58
+
59
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
60
+
61
+ # **warehouseProductsControllerStock**
62
+ > object warehouseProductsControllerStock(sellProductDto)
63
+
64
+
65
+ ### Example
66
+
67
+ ```typescript
68
+ import {
69
+ WarehouseProductsApi,
70
+ Configuration,
71
+ SellProductDto
72
+ } from '@my-market-contracts';
73
+
74
+ const configuration = new Configuration();
75
+ const apiInstance = new WarehouseProductsApi(configuration);
76
+
77
+ let sellProductDto: SellProductDto; //
78
+
79
+ const { status, data } = await apiInstance.warehouseProductsControllerStock(
80
+ sellProductDto
81
+ );
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ |Name | Type | Description | Notes|
87
+ |------------- | ------------- | ------------- | -------------|
88
+ | **sellProductDto** | **SellProductDto**| | |
89
+
90
+
91
+ ### Return type
92
+
93
+ **object**
94
+
95
+ ### Authorization
96
+
97
+ No authorization required
98
+
99
+ ### HTTP request headers
100
+
101
+ - **Content-Type**: application/json
102
+ - **Accept**: application/json
103
+
104
+
105
+ ### HTTP response details
106
+ | Status code | Description | Response headers |
107
+ |-------------|-------------|------------------|
108
+ |**200** | | - |
109
+
110
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
111
+
@@ -0,0 +1,154 @@
1
+ # WarehousesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**warehousesControllerCreate**](#warehousescontrollercreate) | **POST** /warehouses | Создание склада|
8
+ |[**warehousesControllerDelete**](#warehousescontrollerdelete) | **DELETE** /warehouses/{id} | Удаление склада по ID|
9
+ |[**warehousesControllerFind**](#warehousescontrollerfind) | **GET** /warehouses | Получения доступных пользователю складов|
10
+
11
+ # **warehousesControllerCreate**
12
+ > object warehousesControllerCreate(createWarehouseDto)
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ WarehousesApi,
20
+ Configuration,
21
+ CreateWarehouseDto
22
+ } from '@my-market-contracts';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new WarehousesApi(configuration);
26
+
27
+ let createWarehouseDto: CreateWarehouseDto; //
28
+
29
+ const { status, data } = await apiInstance.warehousesControllerCreate(
30
+ createWarehouseDto
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **createWarehouseDto** | **CreateWarehouseDto**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **object**
44
+
45
+ ### Authorization
46
+
47
+ No authorization required
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**201** | | - |
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
61
+
62
+ # **warehousesControllerDelete**
63
+ > warehousesControllerDelete()
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ WarehousesApi,
71
+ Configuration
72
+ } from '@my-market-contracts';
73
+
74
+ const configuration = new Configuration();
75
+ const apiInstance = new WarehousesApi(configuration);
76
+
77
+ let id: string; // (default to undefined)
78
+
79
+ const { status, data } = await apiInstance.warehousesControllerDelete(
80
+ id
81
+ );
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ |Name | Type | Description | Notes|
87
+ |------------- | ------------- | ------------- | -------------|
88
+ | **id** | [**string**] | | defaults to undefined|
89
+
90
+
91
+ ### Return type
92
+
93
+ void (empty response body)
94
+
95
+ ### Authorization
96
+
97
+ No authorization required
98
+
99
+ ### HTTP request headers
100
+
101
+ - **Content-Type**: Not defined
102
+ - **Accept**: Not defined
103
+
104
+
105
+ ### HTTP response details
106
+ | Status code | Description | Response headers |
107
+ |-------------|-------------|------------------|
108
+ |**200** | | - |
109
+
110
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
111
+
112
+ # **warehousesControllerFind**
113
+ > warehousesControllerFind()
114
+
115
+
116
+ ### Example
117
+
118
+ ```typescript
119
+ import {
120
+ WarehousesApi,
121
+ Configuration
122
+ } from '@my-market-contracts';
123
+
124
+ const configuration = new Configuration();
125
+ const apiInstance = new WarehousesApi(configuration);
126
+
127
+ const { status, data } = await apiInstance.warehousesControllerFind();
128
+ ```
129
+
130
+ ### Parameters
131
+ This endpoint does not have any parameters.
132
+
133
+
134
+ ### Return type
135
+
136
+ void (empty response body)
137
+
138
+ ### Authorization
139
+
140
+ No authorization required
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: Not defined
145
+ - **Accept**: Not defined
146
+
147
+
148
+ ### HTTP response details
149
+ | Status code | Description | Response headers |
150
+ |-------------|-------------|------------------|
151
+ |**200** | | - |
152
+
153
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
154
+
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,18 @@
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
+
15
+
16
+ export * from "./api";
17
+ export * from "./configuration";
18
+ export * from "./models";
@@ -0,0 +1,27 @@
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
+
15
+
16
+
17
+ export interface ChangePasswordDto {
18
+ /**
19
+ * Старый пароль
20
+ */
21
+ 'oldPassword': string;
22
+ /**
23
+ * Новый пароль
24
+ */
25
+ 'newPassword': string;
26
+ }
27
+
@@ -0,0 +1,23 @@
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
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { ChangeWarehouseItemDto } from './change-warehouse-item-dto';
19
+
20
+ export interface ChangeWarehouseDto {
21
+ 'items': Array<ChangeWarehouseItemDto>;
22
+ }
23
+