@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,17 @@
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
+ export interface CreateBusinessDto {
13
+ /**
14
+ * Название бизнеса
15
+ */
16
+ 'name': string;
17
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,69 @@
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
+ export interface CreateProductDto {
13
+ /**
14
+ * ID складов и количество на складе
15
+ */
16
+ 'warehouse': object;
17
+ /**
18
+ * Название товара
19
+ */
20
+ 'name': string;
21
+ /**
22
+ * Артикул товара
23
+ */
24
+ 'article_number': string;
25
+ /**
26
+ * Единица измерения
27
+ */
28
+ 'unit_of_measurement': string;
29
+ /**
30
+ * Штрих-код товара
31
+ */
32
+ 'barcode': string;
33
+ /**
34
+ * Страна производства
35
+ */
36
+ 'country': string;
37
+ /**
38
+ * Производитель
39
+ */
40
+ 'vendor': string;
41
+ /**
42
+ * Цена продажи
43
+ */
44
+ 'sale_price': number;
45
+ /**
46
+ * Себестоимость
47
+ */
48
+ 'cost_price': number;
49
+ /**
50
+ * Цена закупки
51
+ */
52
+ 'purchase_price': number;
53
+ /**
54
+ * Скидка в процентах
55
+ */
56
+ 'discount': number;
57
+ /**
58
+ * Минимальный остаток
59
+ */
60
+ 'minimum_balance': number;
61
+ /**
62
+ * Описание товара
63
+ */
64
+ 'description': string;
65
+ /**
66
+ * Местоположение на складе
67
+ */
68
+ 'location': string;
69
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
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
+ export interface CreateWarehouseDto {
13
+ /**
14
+ * Название склада
15
+ */
16
+ 'name': string;
17
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
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
+ export interface ExceptionDto {
13
+ 'message': string;
14
+ 'error': object;
15
+ 'statusCode': number;
16
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
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
+ export interface ForgotPasswordDto {
13
+ /**
14
+ * Email адрес
15
+ */
16
+ 'email': string;
17
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export * from './change-password-dto';
2
+ export * from './change-warehouse-dto';
3
+ export * from './change-warehouse-item-dto';
4
+ export * from './create-business-dto';
5
+ export * from './create-product-dto';
6
+ export * from './create-warehouse-dto';
7
+ export * from './exception-dto';
8
+ export * from './forgot-password-dto';
9
+ export * from './login-user-body-dto';
10
+ export * from './login-user-response-dto';
11
+ export * from './logout-user-response-dto';
12
+ export * from './register-employee-dto';
13
+ export * from './register-owner-dto';
14
+ export * from './reset-password-dto';
15
+ export * from './sell-item-dto';
16
+ export * from './sell-product-dto';
17
+ export * from './update-product-dto';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./change-password-dto"), exports);
18
+ __exportStar(require("./change-warehouse-dto"), exports);
19
+ __exportStar(require("./change-warehouse-item-dto"), exports);
20
+ __exportStar(require("./create-business-dto"), exports);
21
+ __exportStar(require("./create-product-dto"), exports);
22
+ __exportStar(require("./create-warehouse-dto"), exports);
23
+ __exportStar(require("./exception-dto"), exports);
24
+ __exportStar(require("./forgot-password-dto"), exports);
25
+ __exportStar(require("./login-user-body-dto"), exports);
26
+ __exportStar(require("./login-user-response-dto"), exports);
27
+ __exportStar(require("./logout-user-response-dto"), exports);
28
+ __exportStar(require("./register-employee-dto"), exports);
29
+ __exportStar(require("./register-owner-dto"), exports);
30
+ __exportStar(require("./reset-password-dto"), exports);
31
+ __exportStar(require("./sell-item-dto"), exports);
32
+ __exportStar(require("./sell-product-dto"), exports);
33
+ __exportStar(require("./update-product-dto"), exports);
@@ -0,0 +1,21 @@
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
+ export interface LoginUserBodyDto {
13
+ /**
14
+ * Email адрес
15
+ */
16
+ 'email': string;
17
+ /**
18
+ * Пароль
19
+ */
20
+ 'password': string;
21
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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
+ export interface LoginUserResponseDto {
13
+ 'message': string;
14
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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
+ export interface LogoutUserResponseDto {
13
+ 'message': string;
14
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
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
+ export interface RegisterEmployeeDto {
13
+ /**
14
+ * ФИО владельца
15
+ */
16
+ 'name': string;
17
+ /**
18
+ * Email адрес
19
+ */
20
+ 'email': string;
21
+ /**
22
+ * Пароль
23
+ */
24
+ 'password': string;
25
+ /**
26
+ * Реферальный код
27
+ */
28
+ 'invitation_code': string;
29
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
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
+ export interface RegisterOwnerDto {
13
+ /**
14
+ * ФИО владельца
15
+ */
16
+ 'name': string;
17
+ /**
18
+ * Email адрес
19
+ */
20
+ 'email': string;
21
+ /**
22
+ * Пароль
23
+ */
24
+ 'password': string;
25
+ /**
26
+ * Название бизнеса
27
+ */
28
+ 'business_name': string;
29
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
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
+ export interface ResetPasswordDto {
13
+ /**
14
+ * Токен сброса пароля
15
+ */
16
+ 'token': string;
17
+ /**
18
+ * Новый пароль
19
+ */
20
+ 'newPassword': string;
21
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
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
+ export interface SellItemDto {
13
+ /**
14
+ * ID склада
15
+ */
16
+ 'warehouse_id': number;
17
+ /**
18
+ * ID товара
19
+ */
20
+ 'product_id': number;
21
+ /**
22
+ * Количество
23
+ */
24
+ 'quantity': number;
25
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
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 { SellItemDto } from './sell-item-dto';
13
+ export interface SellProductDto {
14
+ /**
15
+ * Список товаров для продажи (можно передать 1 товар или несколько)
16
+ */
17
+ 'items': Array<SellItemDto>;
18
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,65 @@
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
+ export interface UpdateProductDto {
13
+ /**
14
+ * Название товара
15
+ */
16
+ 'name'?: string;
17
+ /**
18
+ * Артикул товара
19
+ */
20
+ 'article_number'?: string;
21
+ /**
22
+ * Единица измерения
23
+ */
24
+ 'unit_of_measurement'?: string;
25
+ /**
26
+ * Штрих-код товара
27
+ */
28
+ 'barcode'?: string;
29
+ /**
30
+ * Страна производства
31
+ */
32
+ 'country'?: string;
33
+ /**
34
+ * Производитель
35
+ */
36
+ 'vendor'?: string;
37
+ /**
38
+ * Цена продажи
39
+ */
40
+ 'sale_price'?: number;
41
+ /**
42
+ * Себестоимость
43
+ */
44
+ 'cost_price'?: number;
45
+ /**
46
+ * Цена закупки
47
+ */
48
+ 'purchase_price'?: number;
49
+ /**
50
+ * Скидка в процентах
51
+ */
52
+ 'discount'?: number;
53
+ /**
54
+ * Минимальный остаток
55
+ */
56
+ 'minimum_balance'?: number;
57
+ /**
58
+ * Описание товара
59
+ */
60
+ 'description'?: string;
61
+ /**
62
+ * Местоположение на складе
63
+ */
64
+ 'location'?: string;
65
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });