@gigapay-dev/contracts 1.8.6 → 3.0.0

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 (314) hide show
  1. package/README.md +1 -0
  2. package/build/domains/admin/index.d.ts +150 -0
  3. package/build/domains/admin/index.d.ts.map +1 -0
  4. package/build/domains/admin/index.js +72 -0
  5. package/build/domains/admin/index.js.map +1 -0
  6. package/build/domains/auth/commands.d.ts +294 -0
  7. package/build/domains/auth/commands.d.ts.map +1 -0
  8. package/build/domains/auth/commands.js +116 -0
  9. package/build/domains/auth/commands.js.map +1 -0
  10. package/build/domains/auth/dtos.d.ts +37 -0
  11. package/build/domains/auth/dtos.d.ts.map +1 -0
  12. package/build/domains/auth/dtos.js +26 -0
  13. package/build/domains/auth/dtos.js.map +1 -0
  14. package/build/domains/auth/events.d.ts +35 -0
  15. package/build/domains/auth/events.d.ts.map +1 -0
  16. package/build/domains/auth/events.js +24 -0
  17. package/build/domains/auth/events.js.map +1 -0
  18. package/build/domains/auth/index.d.ts +165 -0
  19. package/build/domains/auth/index.d.ts.map +1 -0
  20. package/build/{commands/products → domains/auth}/index.js +12 -6
  21. package/build/domains/auth/index.js.map +1 -0
  22. package/build/domains/auth/queries.d.ts +75 -0
  23. package/build/domains/auth/queries.d.ts.map +1 -0
  24. package/build/domains/auth/queries.js +25 -0
  25. package/build/domains/auth/queries.js.map +1 -0
  26. package/build/domains/catalog/commands.d.ts +255 -0
  27. package/build/domains/catalog/commands.d.ts.map +1 -0
  28. package/build/domains/catalog/commands.js +82 -0
  29. package/build/domains/catalog/commands.js.map +1 -0
  30. package/build/domains/catalog/dtos.d.ts +89 -0
  31. package/build/domains/catalog/dtos.d.ts.map +1 -0
  32. package/build/domains/catalog/dtos.js +43 -0
  33. package/build/domains/catalog/dtos.js.map +1 -0
  34. package/build/domains/catalog/index.d.ts +194 -0
  35. package/build/domains/catalog/index.d.ts.map +1 -0
  36. package/build/{commands/payment-methods → domains/catalog}/index.js +11 -4
  37. package/build/domains/catalog/index.js.map +1 -0
  38. package/build/domains/catalog/queries.d.ts +168 -0
  39. package/build/domains/catalog/queries.d.ts.map +1 -0
  40. package/build/domains/catalog/queries.js +29 -0
  41. package/build/domains/catalog/queries.js.map +1 -0
  42. package/build/domains/config/index.d.ts +40 -0
  43. package/build/domains/config/index.d.ts.map +1 -0
  44. package/build/domains/config/index.js +18 -0
  45. package/build/domains/config/index.js.map +1 -0
  46. package/build/domains/orders/commands.d.ts +262 -0
  47. package/build/domains/orders/commands.d.ts.map +1 -0
  48. package/build/domains/orders/commands.js +47 -0
  49. package/build/domains/orders/commands.js.map +1 -0
  50. package/build/domains/orders/dtos.d.ts +112 -0
  51. package/build/domains/orders/dtos.d.ts.map +1 -0
  52. package/build/domains/orders/dtos.js +44 -0
  53. package/build/domains/orders/dtos.js.map +1 -0
  54. package/build/domains/orders/events.d.ts +21 -0
  55. package/build/domains/orders/events.d.ts.map +1 -0
  56. package/build/domains/orders/events.js +19 -0
  57. package/build/domains/orders/events.js.map +1 -0
  58. package/build/domains/orders/index.d.ts +381 -0
  59. package/build/domains/orders/index.d.ts.map +1 -0
  60. package/build/domains/orders/index.js +28 -0
  61. package/build/domains/orders/index.js.map +1 -0
  62. package/build/domains/orders/queries.d.ts +532 -0
  63. package/build/domains/orders/queries.d.ts.map +1 -0
  64. package/build/domains/orders/queries.js +40 -0
  65. package/build/domains/orders/queries.js.map +1 -0
  66. package/build/domains/payments/index.d.ts +96 -0
  67. package/build/domains/payments/index.d.ts.map +1 -0
  68. package/build/domains/payments/index.js +34 -0
  69. package/build/domains/payments/index.js.map +1 -0
  70. package/build/domains/products/commands.d.ts +302 -0
  71. package/build/domains/products/commands.d.ts.map +1 -0
  72. package/build/domains/products/commands.js +101 -0
  73. package/build/domains/products/commands.js.map +1 -0
  74. package/build/domains/products/dtos.d.ts +122 -0
  75. package/build/domains/products/dtos.d.ts.map +1 -0
  76. package/build/domains/products/dtos.js +54 -0
  77. package/build/domains/products/dtos.js.map +1 -0
  78. package/build/domains/products/index.d.ts +276 -0
  79. package/build/domains/products/index.d.ts.map +1 -0
  80. package/build/{commands/auth → domains/products}/index.js +11 -5
  81. package/build/domains/products/index.js.map +1 -0
  82. package/build/domains/products/queries.d.ts +334 -0
  83. package/build/domains/products/queries.d.ts.map +1 -0
  84. package/build/domains/products/queries.js +41 -0
  85. package/build/domains/products/queries.js.map +1 -0
  86. package/build/domains/promo-codes/index.d.ts +92 -0
  87. package/build/domains/promo-codes/index.d.ts.map +1 -0
  88. package/build/domains/promo-codes/index.js +40 -0
  89. package/build/domains/promo-codes/index.js.map +1 -0
  90. package/build/domains/stats/index.d.ts +274 -0
  91. package/build/domains/stats/index.d.ts.map +1 -0
  92. package/build/domains/stats/index.js +76 -0
  93. package/build/domains/stats/index.js.map +1 -0
  94. package/build/domains/users/dtos.d.ts +9 -0
  95. package/build/domains/users/dtos.d.ts.map +1 -0
  96. package/build/domains/users/dtos.js +11 -0
  97. package/build/domains/users/dtos.js.map +1 -0
  98. package/build/domains/users/index.d.ts +101 -0
  99. package/build/domains/users/index.d.ts.map +1 -0
  100. package/build/domains/users/index.js +52 -0
  101. package/build/domains/users/index.js.map +1 -0
  102. package/build/index.d.ts +1310 -1
  103. package/build/index.d.ts.map +1 -0
  104. package/build/index.js +35 -1
  105. package/build/index.js.map +1 -0
  106. package/build/shared/api-response.d.ts +17 -0
  107. package/build/shared/api-response.d.ts.map +1 -0
  108. package/build/shared/api-response.js +22 -0
  109. package/build/shared/api-response.js.map +1 -0
  110. package/build/shared/common.d.ts +14 -0
  111. package/build/shared/common.d.ts.map +1 -0
  112. package/build/shared/common.js +8 -0
  113. package/build/shared/common.js.map +1 -0
  114. package/build/shared/errors.d.ts +34 -0
  115. package/build/shared/errors.d.ts.map +1 -0
  116. package/build/shared/errors.js +36 -0
  117. package/build/shared/errors.js.map +1 -0
  118. package/build/shared/index.d.ts +7 -0
  119. package/build/shared/index.d.ts.map +1 -0
  120. package/build/{commands/orders → shared}/index.js +7 -6
  121. package/build/shared/index.js.map +1 -0
  122. package/build/shared/money.d.ts +32 -0
  123. package/build/shared/money.d.ts.map +1 -0
  124. package/build/shared/money.js +20 -0
  125. package/build/shared/money.js.map +1 -0
  126. package/build/shared/pagination.d.ts +27 -0
  127. package/build/shared/pagination.d.ts.map +1 -0
  128. package/build/shared/pagination.js +22 -0
  129. package/build/shared/pagination.js.map +1 -0
  130. package/build/shared/types.d.ts +20 -0
  131. package/build/shared/types.d.ts.map +1 -0
  132. package/build/{types.js → shared/types.js} +1 -0
  133. package/build/shared/types.js.map +1 -0
  134. package/package.json +41 -15
  135. package/build/commands/api-response.d.ts +0 -18
  136. package/build/commands/api-response.js +0 -13
  137. package/build/commands/auth/confirm.d.ts +0 -11
  138. package/build/commands/auth/confirm.js +0 -11
  139. package/build/commands/auth/endpoints.d.ts +0 -114
  140. package/build/commands/auth/endpoints.js +0 -50
  141. package/build/commands/auth/index.d.ts +0 -5
  142. package/build/commands/auth/login.d.ts +0 -20
  143. package/build/commands/auth/login.js +0 -11
  144. package/build/commands/auth/profile.d.ts +0 -18
  145. package/build/commands/auth/profile.js +0 -10
  146. package/build/commands/auth/register.d.ts +0 -12
  147. package/build/commands/auth/register.js +0 -11
  148. package/build/commands/auth/reset.d.ts +0 -12
  149. package/build/commands/auth/reset.js +0 -9
  150. package/build/commands/consts.d.ts +0 -1
  151. package/build/commands/consts.js +0 -4
  152. package/build/commands/index.d.ts +0 -13
  153. package/build/commands/index.js +0 -29
  154. package/build/commands/orders/create.d.ts +0 -95
  155. package/build/commands/orders/create.js +0 -40
  156. package/build/commands/orders/endpoints.d.ts +0 -726
  157. package/build/commands/orders/endpoints.js +0 -47
  158. package/build/commands/orders/enums.d.ts +0 -7
  159. package/build/commands/orders/enums.js +0 -25
  160. package/build/commands/orders/index.d.ts +0 -6
  161. package/build/commands/orders/query.d.ts +0 -103
  162. package/build/commands/orders/query.js +0 -45
  163. package/build/commands/orders/read.d.ts +0 -230
  164. package/build/commands/orders/read.js +0 -81
  165. package/build/commands/orders/update.d.ts +0 -23
  166. package/build/commands/orders/update.js +0 -16
  167. package/build/commands/pagination.d.ts +0 -12
  168. package/build/commands/pagination.js +0 -11
  169. package/build/commands/payment-methods/create.d.ts +0 -45
  170. package/build/commands/payment-methods/create.js +0 -22
  171. package/build/commands/payment-methods/endpoints.d.ts +0 -536
  172. package/build/commands/payment-methods/endpoints.js +0 -63
  173. package/build/commands/payment-methods/index.d.ts +0 -4
  174. package/build/commands/payment-methods/read.d.ts +0 -71
  175. package/build/commands/payment-methods/read.js +0 -28
  176. package/build/commands/payment-methods/update.d.ts +0 -45
  177. package/build/commands/payment-methods/update.js +0 -19
  178. package/build/commands/products/create.d.ts +0 -229
  179. package/build/commands/products/create.js +0 -122
  180. package/build/commands/products/endpoints.d.ts +0 -1881
  181. package/build/commands/products/endpoints.js +0 -99
  182. package/build/commands/products/enums.d.ts +0 -19
  183. package/build/commands/products/enums.js +0 -27
  184. package/build/commands/products/index.d.ts +0 -6
  185. package/build/commands/products/query.d.ts +0 -79
  186. package/build/commands/products/query.js +0 -55
  187. package/build/commands/products/read.d.ts +0 -1178
  188. package/build/commands/products/read.js +0 -231
  189. package/build/commands/products/update.d.ts +0 -78
  190. package/build/commands/products/update.js +0 -10
  191. package/build/commands/promocode-activations/create.d.ts +0 -18
  192. package/build/commands/promocode-activations/create.js +0 -10
  193. package/build/commands/promocode-activations/index.d.ts +0 -3
  194. package/build/commands/promocode-activations/index.js +0 -19
  195. package/build/commands/promocode-activations/read.d.ts +0 -21
  196. package/build/commands/promocode-activations/read.js +0 -14
  197. package/build/commands/promocode-activations/update.d.ts +0 -18
  198. package/build/commands/promocode-activations/update.js +0 -10
  199. package/build/commands/promocodes/create.d.ts +0 -39
  200. package/build/commands/promocodes/create.js +0 -18
  201. package/build/commands/promocodes/endpoints.d.ts +0 -353
  202. package/build/commands/promocodes/endpoints.js +0 -46
  203. package/build/commands/promocodes/enums.d.ts +0 -5
  204. package/build/commands/promocodes/enums.js +0 -9
  205. package/build/commands/promocodes/index.d.ts +0 -5
  206. package/build/commands/promocodes/index.js +0 -21
  207. package/build/commands/promocodes/read.d.ts +0 -45
  208. package/build/commands/promocodes/read.js +0 -23
  209. package/build/commands/promocodes/update.d.ts +0 -33
  210. package/build/commands/promocodes/update.js +0 -16
  211. package/build/commands/refresh-sessions/create.d.ts +0 -24
  212. package/build/commands/refresh-sessions/create.js +0 -13
  213. package/build/commands/refresh-sessions/enums.d.ts +0 -3
  214. package/build/commands/refresh-sessions/enums.js +0 -8
  215. package/build/commands/refresh-sessions/index.d.ts +0 -4
  216. package/build/commands/refresh-sessions/index.js +0 -20
  217. package/build/commands/refresh-sessions/read.d.ts +0 -27
  218. package/build/commands/refresh-sessions/read.js +0 -17
  219. package/build/commands/refresh-sessions/update.d.ts +0 -24
  220. package/build/commands/refresh-sessions/update.js +0 -16
  221. package/build/commands/settings/endpoints.d.ts +0 -108
  222. package/build/commands/settings/endpoints.js +0 -43
  223. package/build/commands/settings/index.d.ts +0 -3
  224. package/build/commands/settings/index.js +0 -19
  225. package/build/commands/settings/read.d.ts +0 -18
  226. package/build/commands/settings/read.js +0 -10
  227. package/build/commands/settings/update.d.ts +0 -18
  228. package/build/commands/settings/update.js +0 -10
  229. package/build/commands/stats/endpoints.d.ts +0 -67
  230. package/build/commands/stats/endpoints.js +0 -13
  231. package/build/commands/stats/index.d.ts +0 -3
  232. package/build/commands/stats/index.js +0 -19
  233. package/build/commands/stats/query.d.ts +0 -31
  234. package/build/commands/stats/query.js +0 -15
  235. package/build/commands/stats/read.d.ts +0 -30
  236. package/build/commands/stats/read.js +0 -17
  237. package/build/commands/users/create.d.ts +0 -42
  238. package/build/commands/users/create.js +0 -19
  239. package/build/commands/users/endpoints.d.ts +0 -403
  240. package/build/commands/users/endpoints.js +0 -39
  241. package/build/commands/users/enums.d.ts +0 -6
  242. package/build/commands/users/enums.js +0 -10
  243. package/build/commands/users/index.d.ts +0 -6
  244. package/build/commands/users/index.js +0 -22
  245. package/build/commands/users/query.d.ts +0 -52
  246. package/build/commands/users/query.js +0 -21
  247. package/build/commands/users/read.d.ts +0 -60
  248. package/build/commands/users/read.js +0 -28
  249. package/build/commands/users/update.d.ts +0 -42
  250. package/build/commands/users/update.js +0 -19
  251. package/build/types.d.ts +0 -8
  252. package/commands/api-response.ts +0 -10
  253. package/commands/auth/confirm.ts +0 -10
  254. package/commands/auth/endpoints.ts +0 -51
  255. package/commands/auth/index.ts +0 -5
  256. package/commands/auth/login.ts +0 -13
  257. package/commands/auth/profile.ts +0 -10
  258. package/commands/auth/register.ts +0 -8
  259. package/commands/auth/reset.ts +0 -9
  260. package/commands/consts.ts +0 -1
  261. package/commands/index.ts +0 -13
  262. package/commands/orders/create.ts +0 -41
  263. package/commands/orders/endpoints.ts +0 -51
  264. package/commands/orders/enums.ts +0 -25
  265. package/commands/orders/index.ts +0 -6
  266. package/commands/orders/query.ts +0 -46
  267. package/commands/orders/read.ts +0 -83
  268. package/commands/orders/update.ts +0 -16
  269. package/commands/pagination.ts +0 -8
  270. package/commands/payment-methods/create.ts +0 -19
  271. package/commands/payment-methods/endpoints.ts +0 -67
  272. package/commands/payment-methods/index.ts +0 -4
  273. package/commands/payment-methods/read.ts +0 -30
  274. package/commands/payment-methods/update.ts +0 -19
  275. package/commands/products/create.ts +0 -134
  276. package/commands/products/endpoints.ts +0 -108
  277. package/commands/products/enums.ts +0 -33
  278. package/commands/products/index.ts +0 -6
  279. package/commands/products/query.ts +0 -52
  280. package/commands/products/read.ts +0 -268
  281. package/commands/products/update.ts +0 -11
  282. package/commands/promocode-activations/create.ts +0 -10
  283. package/commands/promocode-activations/index.ts +0 -3
  284. package/commands/promocode-activations/read.ts +0 -11
  285. package/commands/promocode-activations/update.ts +0 -10
  286. package/commands/promocodes/create.ts +0 -18
  287. package/commands/promocodes/endpoints.ts +0 -62
  288. package/commands/promocodes/enums.ts +0 -9
  289. package/commands/promocodes/index.ts +0 -5
  290. package/commands/promocodes/read.ts +0 -20
  291. package/commands/promocodes/update.ts +0 -16
  292. package/commands/refresh-sessions/create.ts +0 -13
  293. package/commands/refresh-sessions/enums.ts +0 -4
  294. package/commands/refresh-sessions/index.ts +0 -4
  295. package/commands/refresh-sessions/read.ts +0 -14
  296. package/commands/refresh-sessions/update.ts +0 -13
  297. package/commands/settings/endpoints.ts +0 -52
  298. package/commands/settings/index.ts +0 -3
  299. package/commands/settings/read.ts +0 -10
  300. package/commands/settings/update.ts +0 -10
  301. package/commands/stats/endpoints.ts +0 -23
  302. package/commands/stats/index.ts +0 -3
  303. package/commands/stats/query.ts +0 -18
  304. package/commands/stats/read.ts +0 -14
  305. package/commands/users/create.ts +0 -19
  306. package/commands/users/endpoints.ts +0 -47
  307. package/commands/users/enums.ts +0 -10
  308. package/commands/users/index.ts +0 -6
  309. package/commands/users/query.ts +0 -20
  310. package/commands/users/read.ts +0 -25
  311. package/commands/users/update.ts +0 -19
  312. package/index.ts +0 -1
  313. package/tsconfig.json +0 -111
  314. package/types.ts +0 -9
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PaymentMethodsCreateRequestSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.PaymentMethodsCreateRequestSchema = zod_1.default.object({
9
- name: zod_1.default.string(),
10
- image: zod_1.default.string(),
11
- key: zod_1.default.string(),
12
- uniqueKey: zod_1.default.string(),
13
- isActive: zod_1.default.boolean().default(true),
14
- type: zod_1.default.string(),
15
- maxAmount: zod_1.default.coerce.number().nonnegative(),
16
- minAmount: zod_1.default.coerce.number().nonnegative(),
17
- comission: zod_1.default.coerce.number().nonnegative(),
18
- secretComission: zod_1.default.coerce.number().nonnegative(),
19
- serviceComission: zod_1.default.coerce.number().nonnegative(),
20
- cryptoToken: zod_1.default.string().optional(),
21
- cryptoTokenSecret: zod_1.default.string().optional(),
22
- });
@@ -1,536 +0,0 @@
1
- import z from "zod";
2
- export declare const PaymentMethodEndpoints: {
3
- course: {
4
- method: "GET";
5
- path: string;
6
- request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7
- response: z.ZodObject<{
8
- USD_RUB: z.ZodString;
9
- RUB_KZT: z.ZodString;
10
- USD_KZT: z.ZodString;
11
- KZT_RUB: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- USD_RUB: string;
14
- RUB_KZT: string;
15
- USD_KZT: string;
16
- KZT_RUB: string;
17
- }, {
18
- USD_RUB: string;
19
- RUB_KZT: string;
20
- USD_KZT: string;
21
- KZT_RUB: string;
22
- }>;
23
- };
24
- create: {
25
- method: "POST";
26
- path: string;
27
- request: z.ZodObject<{
28
- data: z.ZodObject<{
29
- name: z.ZodString;
30
- image: z.ZodString;
31
- key: z.ZodString;
32
- uniqueKey: z.ZodString;
33
- isActive: z.ZodDefault<z.ZodBoolean>;
34
- type: z.ZodString;
35
- maxAmount: z.ZodNumber;
36
- minAmount: z.ZodNumber;
37
- comission: z.ZodNumber;
38
- secretComission: z.ZodNumber;
39
- serviceComission: z.ZodNumber;
40
- cryptoToken: z.ZodOptional<z.ZodString>;
41
- cryptoTokenSecret: z.ZodOptional<z.ZodString>;
42
- }, "strip", z.ZodTypeAny, {
43
- type: string;
44
- name: string;
45
- image: string;
46
- key: string;
47
- uniqueKey: string;
48
- isActive: boolean;
49
- maxAmount: number;
50
- minAmount: number;
51
- comission: number;
52
- secretComission: number;
53
- serviceComission: number;
54
- cryptoToken?: string | undefined;
55
- cryptoTokenSecret?: string | undefined;
56
- }, {
57
- type: string;
58
- name: string;
59
- image: string;
60
- key: string;
61
- uniqueKey: string;
62
- maxAmount: number;
63
- minAmount: number;
64
- comission: number;
65
- secretComission: number;
66
- serviceComission: number;
67
- isActive?: boolean | undefined;
68
- cryptoToken?: string | undefined;
69
- cryptoTokenSecret?: string | undefined;
70
- }>;
71
- }, "strip", z.ZodTypeAny, {
72
- data: {
73
- type: string;
74
- name: string;
75
- image: string;
76
- key: string;
77
- uniqueKey: string;
78
- isActive: boolean;
79
- maxAmount: number;
80
- minAmount: number;
81
- comission: number;
82
- secretComission: number;
83
- serviceComission: number;
84
- cryptoToken?: string | undefined;
85
- cryptoTokenSecret?: string | undefined;
86
- };
87
- }, {
88
- data: {
89
- type: string;
90
- name: string;
91
- image: string;
92
- key: string;
93
- uniqueKey: string;
94
- maxAmount: number;
95
- minAmount: number;
96
- comission: number;
97
- secretComission: number;
98
- serviceComission: number;
99
- isActive?: boolean | undefined;
100
- cryptoToken?: string | undefined;
101
- cryptoTokenSecret?: string | undefined;
102
- };
103
- }>;
104
- response: z.ZodObject<{
105
- id: z.ZodNumber;
106
- name: z.ZodString;
107
- image: z.ZodString;
108
- key: z.ZodString;
109
- uniqueKey: z.ZodString;
110
- isActive: z.ZodBoolean;
111
- type: z.ZodString;
112
- maxAmount: z.ZodNumber;
113
- minAmount: z.ZodNumber;
114
- comission: z.ZodNumber;
115
- secretComission: z.ZodOptional<z.ZodNumber>;
116
- serviceComission: z.ZodNumber;
117
- cryptoToken: z.ZodNullable<z.ZodString>;
118
- cryptoNetwork: z.ZodNullable<z.ZodString>;
119
- updatedAt: z.ZodDate;
120
- createdAt: z.ZodDate;
121
- }, "strip", z.ZodTypeAny, {
122
- type: string;
123
- id: number;
124
- createdAt: Date;
125
- updatedAt: Date;
126
- name: string;
127
- image: string;
128
- key: string;
129
- uniqueKey: string;
130
- isActive: boolean;
131
- maxAmount: number;
132
- minAmount: number;
133
- comission: number;
134
- serviceComission: number;
135
- cryptoToken: string | null;
136
- cryptoNetwork: string | null;
137
- secretComission?: number | undefined;
138
- }, {
139
- type: string;
140
- id: number;
141
- createdAt: Date;
142
- updatedAt: Date;
143
- name: string;
144
- image: string;
145
- key: string;
146
- uniqueKey: string;
147
- isActive: boolean;
148
- maxAmount: number;
149
- minAmount: number;
150
- comission: number;
151
- serviceComission: number;
152
- cryptoToken: string | null;
153
- cryptoNetwork: string | null;
154
- secretComission?: number | undefined;
155
- }>;
156
- };
157
- update: {
158
- method: "PUT";
159
- path: string;
160
- request: z.ZodObject<{
161
- id: z.ZodNumber;
162
- data: z.ZodObject<{
163
- name: z.ZodOptional<z.ZodString>;
164
- image: z.ZodOptional<z.ZodString>;
165
- key: z.ZodOptional<z.ZodString>;
166
- uniqueKey: z.ZodOptional<z.ZodString>;
167
- isActive: z.ZodOptional<z.ZodBoolean>;
168
- type: z.ZodOptional<z.ZodString>;
169
- maxAmount: z.ZodOptional<z.ZodNumber>;
170
- minAmount: z.ZodOptional<z.ZodNumber>;
171
- comission: z.ZodOptional<z.ZodNumber>;
172
- secretComission: z.ZodOptional<z.ZodNumber>;
173
- serviceComission: z.ZodOptional<z.ZodNumber>;
174
- cryptoToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
- cryptoTokenSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
- }, "strip", z.ZodTypeAny, {
177
- type?: string | undefined;
178
- name?: string | undefined;
179
- image?: string | undefined;
180
- key?: string | undefined;
181
- uniqueKey?: string | undefined;
182
- isActive?: boolean | undefined;
183
- maxAmount?: number | undefined;
184
- minAmount?: number | undefined;
185
- comission?: number | undefined;
186
- secretComission?: number | undefined;
187
- serviceComission?: number | undefined;
188
- cryptoToken?: string | null | undefined;
189
- cryptoTokenSecret?: string | null | undefined;
190
- }, {
191
- type?: string | undefined;
192
- name?: string | undefined;
193
- image?: string | undefined;
194
- key?: string | undefined;
195
- uniqueKey?: string | undefined;
196
- isActive?: boolean | undefined;
197
- maxAmount?: number | undefined;
198
- minAmount?: number | undefined;
199
- comission?: number | undefined;
200
- secretComission?: number | undefined;
201
- serviceComission?: number | undefined;
202
- cryptoToken?: string | null | undefined;
203
- cryptoTokenSecret?: string | null | undefined;
204
- }>;
205
- }, "strip", z.ZodTypeAny, {
206
- id: number;
207
- data: {
208
- type?: string | undefined;
209
- name?: string | undefined;
210
- image?: string | undefined;
211
- key?: string | undefined;
212
- uniqueKey?: string | undefined;
213
- isActive?: boolean | undefined;
214
- maxAmount?: number | undefined;
215
- minAmount?: number | undefined;
216
- comission?: number | undefined;
217
- secretComission?: number | undefined;
218
- serviceComission?: number | undefined;
219
- cryptoToken?: string | null | undefined;
220
- cryptoTokenSecret?: string | null | undefined;
221
- };
222
- }, {
223
- id: number;
224
- data: {
225
- type?: string | undefined;
226
- name?: string | undefined;
227
- image?: string | undefined;
228
- key?: string | undefined;
229
- uniqueKey?: string | undefined;
230
- isActive?: boolean | undefined;
231
- maxAmount?: number | undefined;
232
- minAmount?: number | undefined;
233
- comission?: number | undefined;
234
- secretComission?: number | undefined;
235
- serviceComission?: number | undefined;
236
- cryptoToken?: string | null | undefined;
237
- cryptoTokenSecret?: string | null | undefined;
238
- };
239
- }>;
240
- response: z.ZodObject<{
241
- id: z.ZodNumber;
242
- name: z.ZodString;
243
- image: z.ZodString;
244
- key: z.ZodString;
245
- uniqueKey: z.ZodString;
246
- isActive: z.ZodBoolean;
247
- type: z.ZodString;
248
- maxAmount: z.ZodNumber;
249
- minAmount: z.ZodNumber;
250
- comission: z.ZodNumber;
251
- secretComission: z.ZodOptional<z.ZodNumber>;
252
- serviceComission: z.ZodNumber;
253
- cryptoToken: z.ZodNullable<z.ZodString>;
254
- cryptoNetwork: z.ZodNullable<z.ZodString>;
255
- updatedAt: z.ZodDate;
256
- createdAt: z.ZodDate;
257
- }, "strip", z.ZodTypeAny, {
258
- type: string;
259
- id: number;
260
- createdAt: Date;
261
- updatedAt: Date;
262
- name: string;
263
- image: string;
264
- key: string;
265
- uniqueKey: string;
266
- isActive: boolean;
267
- maxAmount: number;
268
- minAmount: number;
269
- comission: number;
270
- serviceComission: number;
271
- cryptoToken: string | null;
272
- cryptoNetwork: string | null;
273
- secretComission?: number | undefined;
274
- }, {
275
- type: string;
276
- id: number;
277
- createdAt: Date;
278
- updatedAt: Date;
279
- name: string;
280
- image: string;
281
- key: string;
282
- uniqueKey: string;
283
- isActive: boolean;
284
- maxAmount: number;
285
- minAmount: number;
286
- comission: number;
287
- serviceComission: number;
288
- cryptoToken: string | null;
289
- cryptoNetwork: string | null;
290
- secretComission?: number | undefined;
291
- }>;
292
- };
293
- list: {
294
- method: "GET";
295
- path: string;
296
- request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
297
- response: z.ZodArray<z.ZodObject<{
298
- id: z.ZodNumber;
299
- name: z.ZodString;
300
- image: z.ZodString;
301
- key: z.ZodString;
302
- uniqueKey: z.ZodString;
303
- isActive: z.ZodBoolean;
304
- type: z.ZodString;
305
- maxAmount: z.ZodNumber;
306
- minAmount: z.ZodNumber;
307
- comission: z.ZodNumber;
308
- secretComission: z.ZodOptional<z.ZodNumber>;
309
- serviceComission: z.ZodNumber;
310
- cryptoToken: z.ZodNullable<z.ZodString>;
311
- cryptoNetwork: z.ZodNullable<z.ZodString>;
312
- updatedAt: z.ZodDate;
313
- createdAt: z.ZodDate;
314
- }, "strip", z.ZodTypeAny, {
315
- type: string;
316
- id: number;
317
- createdAt: Date;
318
- updatedAt: Date;
319
- name: string;
320
- image: string;
321
- key: string;
322
- uniqueKey: string;
323
- isActive: boolean;
324
- maxAmount: number;
325
- minAmount: number;
326
- comission: number;
327
- serviceComission: number;
328
- cryptoToken: string | null;
329
- cryptoNetwork: string | null;
330
- secretComission?: number | undefined;
331
- }, {
332
- type: string;
333
- id: number;
334
- createdAt: Date;
335
- updatedAt: Date;
336
- name: string;
337
- image: string;
338
- key: string;
339
- uniqueKey: string;
340
- isActive: boolean;
341
- maxAmount: number;
342
- minAmount: number;
343
- comission: number;
344
- serviceComission: number;
345
- cryptoToken: string | null;
346
- cryptoNetwork: string | null;
347
- secretComission?: number | undefined;
348
- }>, "many">;
349
- };
350
- listAdmin: {
351
- method: "GET";
352
- path: string;
353
- request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
354
- response: z.ZodArray<z.ZodObject<{
355
- id: z.ZodNumber;
356
- name: z.ZodString;
357
- image: z.ZodString;
358
- key: z.ZodString;
359
- uniqueKey: z.ZodString;
360
- isActive: z.ZodBoolean;
361
- type: z.ZodString;
362
- maxAmount: z.ZodNumber;
363
- minAmount: z.ZodNumber;
364
- comission: z.ZodNumber;
365
- secretComission: z.ZodOptional<z.ZodNumber>;
366
- serviceComission: z.ZodNumber;
367
- cryptoToken: z.ZodNullable<z.ZodString>;
368
- cryptoNetwork: z.ZodNullable<z.ZodString>;
369
- updatedAt: z.ZodDate;
370
- createdAt: z.ZodDate;
371
- }, "strip", z.ZodTypeAny, {
372
- type: string;
373
- id: number;
374
- createdAt: Date;
375
- updatedAt: Date;
376
- name: string;
377
- image: string;
378
- key: string;
379
- uniqueKey: string;
380
- isActive: boolean;
381
- maxAmount: number;
382
- minAmount: number;
383
- comission: number;
384
- serviceComission: number;
385
- cryptoToken: string | null;
386
- cryptoNetwork: string | null;
387
- secretComission?: number | undefined;
388
- }, {
389
- type: string;
390
- id: number;
391
- createdAt: Date;
392
- updatedAt: Date;
393
- name: string;
394
- image: string;
395
- key: string;
396
- uniqueKey: string;
397
- isActive: boolean;
398
- maxAmount: number;
399
- minAmount: number;
400
- comission: number;
401
- serviceComission: number;
402
- cryptoToken: string | null;
403
- cryptoNetwork: string | null;
404
- secretComission?: number | undefined;
405
- }>, "many">;
406
- };
407
- getById: {
408
- method: "GET";
409
- path: string;
410
- request: z.ZodObject<{
411
- id: z.ZodNumber;
412
- }, "strip", z.ZodTypeAny, {
413
- id: number;
414
- }, {
415
- id: number;
416
- }>;
417
- response: z.ZodObject<{
418
- id: z.ZodNumber;
419
- name: z.ZodString;
420
- image: z.ZodString;
421
- key: z.ZodString;
422
- uniqueKey: z.ZodString;
423
- isActive: z.ZodBoolean;
424
- type: z.ZodString;
425
- maxAmount: z.ZodNumber;
426
- minAmount: z.ZodNumber;
427
- comission: z.ZodNumber;
428
- secretComission: z.ZodOptional<z.ZodNumber>;
429
- serviceComission: z.ZodNumber;
430
- cryptoToken: z.ZodNullable<z.ZodString>;
431
- cryptoNetwork: z.ZodNullable<z.ZodString>;
432
- updatedAt: z.ZodDate;
433
- createdAt: z.ZodDate;
434
- }, "strip", z.ZodTypeAny, {
435
- type: string;
436
- id: number;
437
- createdAt: Date;
438
- updatedAt: Date;
439
- name: string;
440
- image: string;
441
- key: string;
442
- uniqueKey: string;
443
- isActive: boolean;
444
- maxAmount: number;
445
- minAmount: number;
446
- comission: number;
447
- serviceComission: number;
448
- cryptoToken: string | null;
449
- cryptoNetwork: string | null;
450
- secretComission?: number | undefined;
451
- }, {
452
- type: string;
453
- id: number;
454
- createdAt: Date;
455
- updatedAt: Date;
456
- name: string;
457
- image: string;
458
- key: string;
459
- uniqueKey: string;
460
- isActive: boolean;
461
- maxAmount: number;
462
- minAmount: number;
463
- comission: number;
464
- serviceComission: number;
465
- cryptoToken: string | null;
466
- cryptoNetwork: string | null;
467
- secretComission?: number | undefined;
468
- }>;
469
- };
470
- getByIdAdmin: {
471
- method: "GET";
472
- path: string;
473
- request: z.ZodObject<{
474
- id: z.ZodNumber;
475
- }, "strip", z.ZodTypeAny, {
476
- id: number;
477
- }, {
478
- id: number;
479
- }>;
480
- response: z.ZodObject<{
481
- id: z.ZodNumber;
482
- name: z.ZodString;
483
- image: z.ZodString;
484
- key: z.ZodString;
485
- uniqueKey: z.ZodString;
486
- isActive: z.ZodBoolean;
487
- type: z.ZodString;
488
- maxAmount: z.ZodNumber;
489
- minAmount: z.ZodNumber;
490
- comission: z.ZodNumber;
491
- secretComission: z.ZodOptional<z.ZodNumber>;
492
- serviceComission: z.ZodNumber;
493
- cryptoToken: z.ZodNullable<z.ZodString>;
494
- cryptoNetwork: z.ZodNullable<z.ZodString>;
495
- updatedAt: z.ZodDate;
496
- createdAt: z.ZodDate;
497
- }, "strip", z.ZodTypeAny, {
498
- type: string;
499
- id: number;
500
- createdAt: Date;
501
- updatedAt: Date;
502
- name: string;
503
- image: string;
504
- key: string;
505
- uniqueKey: string;
506
- isActive: boolean;
507
- maxAmount: number;
508
- minAmount: number;
509
- comission: number;
510
- serviceComission: number;
511
- cryptoToken: string | null;
512
- cryptoNetwork: string | null;
513
- secretComission?: number | undefined;
514
- }, {
515
- type: string;
516
- id: number;
517
- createdAt: Date;
518
- updatedAt: Date;
519
- name: string;
520
- image: string;
521
- key: string;
522
- uniqueKey: string;
523
- isActive: boolean;
524
- maxAmount: number;
525
- minAmount: number;
526
- comission: number;
527
- serviceComission: number;
528
- cryptoToken: string | null;
529
- cryptoNetwork: string | null;
530
- secretComission?: number | undefined;
531
- }>;
532
- };
533
- };
534
- export type PaymentMethodEndpointKey = keyof typeof PaymentMethodEndpoints;
535
- export type GetPaymentMethodRequest<K extends PaymentMethodEndpointKey> = z.infer<typeof PaymentMethodEndpoints[K]["request"]>;
536
- export type GetPaymentMethodResponse<K extends PaymentMethodEndpointKey> = z.infer<typeof PaymentMethodEndpoints[K]["response"]>;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PaymentMethodEndpoints = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const read_1 = require("./read");
9
- const update_1 = require("./update");
10
- const create_1 = require("./create");
11
- exports.PaymentMethodEndpoints = {
12
- course: {
13
- method: "GET",
14
- path: "/course",
15
- request: zod_1.default.object({}),
16
- response: read_1.CourseReadResponseSchema,
17
- },
18
- create: {
19
- method: "POST",
20
- path: "/payment-methods",
21
- request: zod_1.default.object({
22
- data: create_1.PaymentMethodsCreateRequestSchema,
23
- }),
24
- response: read_1.PaymentMethodReadResponseSchema,
25
- },
26
- update: {
27
- method: "PUT",
28
- path: "/payment-methods/:id",
29
- request: zod_1.default.object({
30
- id: zod_1.default.coerce.number().positive(),
31
- data: update_1.PaymentMethodUpdateRequestSchema,
32
- }),
33
- response: read_1.PaymentMethodReadResponseSchema,
34
- },
35
- list: {
36
- method: "GET",
37
- path: "/payment-methods",
38
- request: zod_1.default.object({}),
39
- response: zod_1.default.array(read_1.PaymentMethodReadResponseSchema),
40
- },
41
- listAdmin: {
42
- method: "GET",
43
- path: "/payment-methods/admin",
44
- request: zod_1.default.object({}),
45
- response: zod_1.default.array(read_1.PaymentMethodReadResponseSchema),
46
- },
47
- getById: {
48
- method: "GET",
49
- path: "/payment-methods/:id",
50
- request: zod_1.default.object({
51
- id: zod_1.default.coerce.number().positive(),
52
- }),
53
- response: read_1.PaymentMethodReadResponseSchema,
54
- },
55
- getByIdAdmin: {
56
- method: "GET",
57
- path: "/payment-methods/admin/:id",
58
- request: zod_1.default.object({
59
- id: zod_1.default.coerce.number().positive(),
60
- }),
61
- response: read_1.PaymentMethodReadResponseSchema,
62
- },
63
- };
@@ -1,4 +0,0 @@
1
- export * from './read';
2
- export * from './create';
3
- export * from './update';
4
- export * from './endpoints';
@@ -1,71 +0,0 @@
1
- import { z } from "zod";
2
- export declare const CourseReadResponseSchema: z.ZodObject<{
3
- USD_RUB: z.ZodString;
4
- RUB_KZT: z.ZodString;
5
- USD_KZT: z.ZodString;
6
- KZT_RUB: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- USD_RUB: string;
9
- RUB_KZT: string;
10
- USD_KZT: string;
11
- KZT_RUB: string;
12
- }, {
13
- USD_RUB: string;
14
- RUB_KZT: string;
15
- USD_KZT: string;
16
- KZT_RUB: string;
17
- }>;
18
- export declare const PaymentMethodReadResponseSchema: z.ZodObject<{
19
- id: z.ZodNumber;
20
- name: z.ZodString;
21
- image: z.ZodString;
22
- key: z.ZodString;
23
- uniqueKey: z.ZodString;
24
- isActive: z.ZodBoolean;
25
- type: z.ZodString;
26
- maxAmount: z.ZodNumber;
27
- minAmount: z.ZodNumber;
28
- comission: z.ZodNumber;
29
- secretComission: z.ZodOptional<z.ZodNumber>;
30
- serviceComission: z.ZodNumber;
31
- cryptoToken: z.ZodNullable<z.ZodString>;
32
- cryptoNetwork: z.ZodNullable<z.ZodString>;
33
- updatedAt: z.ZodDate;
34
- createdAt: z.ZodDate;
35
- }, "strip", z.ZodTypeAny, {
36
- type: string;
37
- id: number;
38
- createdAt: Date;
39
- updatedAt: Date;
40
- name: string;
41
- image: string;
42
- key: string;
43
- uniqueKey: string;
44
- isActive: boolean;
45
- maxAmount: number;
46
- minAmount: number;
47
- comission: number;
48
- serviceComission: number;
49
- cryptoToken: string | null;
50
- cryptoNetwork: string | null;
51
- secretComission?: number | undefined;
52
- }, {
53
- type: string;
54
- id: number;
55
- createdAt: Date;
56
- updatedAt: Date;
57
- name: string;
58
- image: string;
59
- key: string;
60
- uniqueKey: string;
61
- isActive: boolean;
62
- maxAmount: number;
63
- minAmount: number;
64
- comission: number;
65
- serviceComission: number;
66
- cryptoToken: string | null;
67
- cryptoNetwork: string | null;
68
- secretComission?: number | undefined;
69
- }>;
70
- export type CourseReadResponse = z.infer<typeof CourseReadResponseSchema>;
71
- export type PaymentMethodReadResponse = z.infer<typeof PaymentMethodReadResponseSchema>;