@remnawave/backend-contract 0.0.57 → 0.0.61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) hide show
  1. package/build/backend/api/controllers/api-tokens.d.ts +7 -0
  2. package/build/backend/api/controllers/api-tokens.d.ts.map +1 -0
  3. package/build/backend/api/controllers/auth.d.ts +5 -0
  4. package/build/backend/api/controllers/auth.d.ts.map +1 -0
  5. package/build/backend/api/controllers/hosts.d.ts +10 -0
  6. package/build/backend/api/controllers/hosts.d.ts.map +1 -0
  7. package/build/backend/api/controllers/inbounds.d.ts +5 -0
  8. package/build/backend/api/controllers/inbounds.d.ts.map +1 -0
  9. package/{api/controllers/index.ts → build/backend/api/controllers/index.d.ts} +1 -0
  10. package/build/backend/api/controllers/index.d.ts.map +1 -0
  11. package/build/backend/api/controllers/keygen.d.ts +5 -0
  12. package/build/backend/api/controllers/keygen.d.ts.map +1 -0
  13. package/build/backend/api/controllers/nodes.d.ts +13 -0
  14. package/build/backend/api/controllers/nodes.d.ts.map +1 -0
  15. package/build/backend/api/controllers/subscription.d.ts +6 -0
  16. package/build/backend/api/controllers/subscription.d.ts.map +1 -0
  17. package/build/backend/api/controllers/system.d.ts +9 -0
  18. package/build/backend/api/controllers/system.d.ts.map +1 -0
  19. package/build/backend/api/controllers/users.d.ts +16 -0
  20. package/build/backend/api/controllers/users.d.ts.map +1 -0
  21. package/build/{api → backend/api}/controllers/users.js +1 -0
  22. package/build/backend/api/controllers/xray.d.ts +6 -0
  23. package/build/backend/api/controllers/xray.d.ts.map +1 -0
  24. package/{api/index.ts → build/backend/api/index.d.ts} +1 -0
  25. package/build/backend/api/index.d.ts.map +1 -0
  26. package/build/backend/api/routes.d.ts +64 -0
  27. package/build/backend/api/routes.d.ts.map +1 -0
  28. package/build/{api → backend/api}/routes.js +1 -0
  29. package/build/backend/commands/api-tokens/create.command.d.ts +40 -0
  30. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -0
  31. package/build/backend/commands/api-tokens/delete.command.d.ts +22 -0
  32. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -0
  33. package/build/backend/commands/api-tokens/find.command.d.ts +49 -0
  34. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -0
  35. package/{commands/api-tokens/index.ts → build/backend/commands/api-tokens/index.d.ts} +1 -0
  36. package/build/backend/commands/api-tokens/index.d.ts.map +1 -0
  37. package/build/backend/commands/auth/index.d.ts +2 -0
  38. package/build/backend/commands/auth/index.d.ts.map +1 -0
  39. package/build/backend/commands/auth/login.command.d.ts +35 -0
  40. package/build/backend/commands/auth/login.command.d.ts.map +1 -0
  41. package/build/backend/commands/hosts/create.command.d.ts +122 -0
  42. package/build/backend/commands/hosts/create.command.d.ts.map +1 -0
  43. package/build/backend/commands/hosts/delete.command.d.ts +32 -0
  44. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -0
  45. package/build/backend/commands/hosts/get-all.command.d.ts +84 -0
  46. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -0
  47. package/{commands/hosts/index.ts → build/backend/commands/hosts/index.d.ts} +1 -0
  48. package/build/backend/commands/hosts/index.d.ts.map +1 -0
  49. package/build/backend/commands/hosts/reorder.command.d.ts +58 -0
  50. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -0
  51. package/build/backend/commands/hosts/update.command.d.ts +138 -0
  52. package/build/backend/commands/hosts/update.command.d.ts.map +1 -0
  53. package/build/backend/commands/inbounds/get-inbounds.command.d.ts +34 -0
  54. package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -0
  55. package/{commands/inbounds/index.ts → build/backend/commands/inbounds/index.d.ts} +1 -0
  56. package/build/backend/commands/inbounds/index.d.ts.map +1 -0
  57. package/{commands/index.ts → build/backend/commands/index.d.ts} +1 -0
  58. package/build/backend/commands/index.d.ts.map +1 -0
  59. package/build/backend/commands/keygen/get-pubkey.command.d.ts +24 -0
  60. package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -0
  61. package/{commands/keygen/index.ts → build/backend/commands/keygen/index.d.ts} +1 -0
  62. package/build/backend/commands/keygen/index.d.ts.map +1 -0
  63. package/build/backend/commands/nodes/create.command.d.ts +155 -0
  64. package/build/backend/commands/nodes/create.command.d.ts.map +1 -0
  65. package/build/backend/commands/nodes/delete.command.d.ts +32 -0
  66. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -0
  67. package/build/backend/commands/nodes/disable.command.d.ts +137 -0
  68. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -0
  69. package/build/backend/commands/nodes/enable.command.d.ts +137 -0
  70. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -0
  71. package/build/backend/commands/nodes/get-all.command.d.ts +129 -0
  72. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -0
  73. package/build/backend/commands/nodes/get-one.command.d.ts +137 -0
  74. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -0
  75. package/{commands/nodes/index.ts → build/backend/commands/nodes/index.d.ts} +1 -0
  76. package/build/backend/commands/nodes/index.d.ts.map +1 -0
  77. package/build/backend/commands/nodes/restart-all.command.d.ts +24 -0
  78. package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -0
  79. package/build/backend/commands/nodes/restart.command.d.ts +32 -0
  80. package/build/backend/commands/nodes/restart.command.d.ts.map +1 -0
  81. package/build/backend/commands/nodes/update.command.d.ts +180 -0
  82. package/build/backend/commands/nodes/update.command.d.ts.map +1 -0
  83. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +14 -0
  84. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -0
  85. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +100 -0
  86. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -0
  87. package/{commands/subscription/index.ts → build/backend/commands/subscription/index.d.ts} +1 -0
  88. package/build/backend/commands/subscription/index.d.ts.map +1 -0
  89. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +192 -0
  90. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -0
  91. package/build/backend/commands/system/get-nodes-statistics.d.ts +60 -0
  92. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -0
  93. package/build/backend/commands/system/get-stats.command.d.ts +150 -0
  94. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -0
  95. package/{commands/system/index.ts → build/backend/commands/system/index.d.ts} +1 -0
  96. package/build/backend/commands/system/index.d.ts.map +1 -0
  97. package/build/backend/commands/users/create-user.command.d.ts +196 -0
  98. package/build/backend/commands/users/create-user.command.d.ts.map +1 -0
  99. package/build/backend/commands/users/delete-user.command.d.ts +32 -0
  100. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -0
  101. package/build/backend/commands/users/disable-user.command.ts.d.ts +160 -0
  102. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -0
  103. package/build/backend/commands/users/enable-user.command.d.ts +160 -0
  104. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -0
  105. package/build/backend/commands/users/get-all-users-v2.command.d.ts +280 -0
  106. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -0
  107. package/build/backend/commands/users/get-all-users.command.d.ts +254 -0
  108. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -0
  109. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +160 -0
  110. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -0
  111. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +160 -0
  112. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -0
  113. package/build/backend/commands/users/get-user-by-username.command.d.ts +160 -0
  114. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -0
  115. package/build/backend/commands/users/get-user-by-username.command.js +17 -0
  116. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +160 -0
  117. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -0
  118. package/{commands/users/index.ts → build/backend/commands/users/index.d.ts} +2 -0
  119. package/build/backend/commands/users/index.d.ts.map +1 -0
  120. package/build/{commands → backend/commands}/users/index.js +1 -0
  121. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +160 -0
  122. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -0
  123. package/build/backend/commands/users/update-user.command.d.ts +208 -0
  124. package/build/backend/commands/users/update-user.command.d.ts.map +1 -0
  125. package/build/backend/commands/xray/get-config.command.d.ts +24 -0
  126. package/build/backend/commands/xray/get-config.command.d.ts.map +1 -0
  127. package/{commands/xray/index.ts → build/backend/commands/xray/index.d.ts} +1 -0
  128. package/build/backend/commands/xray/index.d.ts.map +1 -0
  129. package/build/backend/commands/xray/update-config.command.d.ts +26 -0
  130. package/build/backend/commands/xray/update-config.command.d.ts.map +1 -0
  131. package/build/backend/constants/errors/errors.d.ts +293 -0
  132. package/build/backend/constants/errors/errors.d.ts.map +1 -0
  133. package/build/backend/constants/errors/index.d.ts +2 -0
  134. package/build/backend/constants/errors/index.d.ts.map +1 -0
  135. package/build/backend/constants/events/events.d.ts +25 -0
  136. package/build/backend/constants/events/events.d.ts.map +1 -0
  137. package/build/backend/constants/events/index.d.ts +2 -0
  138. package/build/backend/constants/events/index.d.ts.map +1 -0
  139. package/build/backend/constants/hosts/alpn.d.ts +8 -0
  140. package/build/backend/constants/hosts/alpn.d.ts.map +1 -0
  141. package/build/backend/constants/hosts/fingerprints.d.ts +14 -0
  142. package/build/backend/constants/hosts/fingerprints.d.ts.map +1 -0
  143. package/{constants/hosts/index.ts → build/backend/constants/hosts/index.d.ts} +1 -0
  144. package/build/backend/constants/hosts/index.d.ts.map +1 -0
  145. package/{constants/index.ts → build/backend/constants/index.d.ts} +1 -0
  146. package/build/backend/constants/index.d.ts.map +1 -0
  147. package/build/backend/constants/nodes/cycle/cycle.d.ts +7 -0
  148. package/build/backend/constants/nodes/cycle/cycle.d.ts.map +1 -0
  149. package/build/backend/constants/nodes/cycle/index.d.ts +2 -0
  150. package/build/backend/constants/nodes/cycle/index.d.ts.map +1 -0
  151. package/{constants/nodes/index.ts → build/backend/constants/nodes/index.d.ts} +1 -0
  152. package/build/backend/constants/nodes/index.d.ts.map +1 -0
  153. package/{constants/nodes/status/index.ts → build/backend/constants/nodes/status/index.d.ts} +1 -0
  154. package/build/backend/constants/nodes/status/index.d.ts.map +1 -0
  155. package/build/backend/constants/nodes/status/status.constant.d.ts +8 -0
  156. package/build/backend/constants/nodes/status/status.constant.d.ts.map +1 -0
  157. package/build/backend/constants/roles/index.d.ts +2 -0
  158. package/build/backend/constants/roles/index.d.ts.map +1 -0
  159. package/build/backend/constants/roles/role.d.ts +7 -0
  160. package/build/backend/constants/roles/role.d.ts.map +1 -0
  161. package/{constants/templates/index.ts → build/backend/constants/templates/index.d.ts} +1 -0
  162. package/build/backend/constants/templates/index.d.ts.map +1 -0
  163. package/build/backend/constants/templates/template-keys.d.ts +3 -0
  164. package/build/backend/constants/templates/template-keys.d.ts.map +1 -0
  165. package/build/backend/constants/templates/user-statuses.d.ts +7 -0
  166. package/build/backend/constants/templates/user-statuses.d.ts.map +1 -0
  167. package/{constants/users/index.ts → build/backend/constants/users/index.d.ts} +1 -0
  168. package/build/backend/constants/users/index.d.ts.map +1 -0
  169. package/{constants/users/reset-periods/index.ts → build/backend/constants/users/reset-periods/index.d.ts} +1 -0
  170. package/build/backend/constants/users/reset-periods/index.d.ts.map +1 -0
  171. package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts +10 -0
  172. package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts.map +1 -0
  173. package/{constants/users/status/index.ts → build/backend/constants/users/status/index.d.ts} +1 -0
  174. package/build/backend/constants/users/status/index.d.ts.map +1 -0
  175. package/build/backend/constants/users/status/status.constant.d.ts +9 -0
  176. package/build/backend/constants/users/status/status.constant.d.ts.map +1 -0
  177. package/{index.ts → build/backend/index.d.ts} +1 -0
  178. package/build/backend/index.d.ts.map +1 -0
  179. package/build/backend/models/api-tokens.schema.d.ts +24 -0
  180. package/build/backend/models/api-tokens.schema.d.ts.map +1 -0
  181. package/build/backend/models/auth.schema.d.ts +9 -0
  182. package/build/backend/models/auth.schema.d.ts.map +1 -0
  183. package/build/backend/models/base-stat.schema.d.ts +15 -0
  184. package/build/backend/models/base-stat.schema.d.ts.map +1 -0
  185. package/build/backend/models/hosts.schema.d.ts +45 -0
  186. package/build/backend/models/hosts.schema.d.ts.map +1 -0
  187. package/build/backend/models/inbounds.schema.d.ts +15 -0
  188. package/build/backend/models/inbounds.schema.d.ts.map +1 -0
  189. package/{models/index.ts → build/backend/models/index.d.ts} +1 -0
  190. package/build/backend/models/index.d.ts.map +1 -0
  191. package/build/backend/models/nodes.schema.d.ts +72 -0
  192. package/build/backend/models/nodes.schema.d.ts.map +1 -0
  193. package/build/backend/models/users.schema.d.ts +89 -0
  194. package/build/backend/models/users.schema.d.ts.map +1 -0
  195. package/build/{models → backend/models}/users.schema.js +2 -1
  196. package/build/frontend/api/controllers/api-tokens.js +9 -0
  197. package/build/frontend/api/controllers/auth.js +7 -0
  198. package/build/frontend/api/controllers/hosts.js +12 -0
  199. package/build/frontend/api/controllers/inbounds.js +7 -0
  200. package/build/frontend/api/controllers/index.js +26 -0
  201. package/build/frontend/api/controllers/keygen.js +7 -0
  202. package/{api/controllers/nodes.ts → build/frontend/api/controllers/nodes.js} +6 -5
  203. package/build/frontend/api/controllers/subscription.js +8 -0
  204. package/build/frontend/api/controllers/system.js +11 -0
  205. package/{api/controllers/users.ts → build/frontend/api/controllers/users.js} +7 -4
  206. package/build/frontend/api/controllers/xray.js +8 -0
  207. package/build/frontend/api/index.js +18 -0
  208. package/build/frontend/api/routes.js +100 -0
  209. package/build/frontend/commands/api-tokens/create.command.js +20 -0
  210. package/build/frontend/commands/api-tokens/delete.command.js +16 -0
  211. package/build/frontend/commands/api-tokens/find.command.js +14 -0
  212. package/build/frontend/commands/api-tokens/index.js +19 -0
  213. package/build/frontend/commands/auth/index.js +17 -0
  214. package/build/frontend/commands/auth/login.command.js +19 -0
  215. package/build/frontend/commands/hosts/create.command.js +45 -0
  216. package/build/frontend/commands/hosts/delete.command.js +18 -0
  217. package/build/frontend/commands/hosts/get-all.command.js +14 -0
  218. package/build/frontend/commands/hosts/index.js +21 -0
  219. package/build/frontend/commands/hosts/reorder.command.js +22 -0
  220. package/build/frontend/commands/hosts/update.command.js +52 -0
  221. package/build/frontend/commands/inbounds/get-inbounds.command.js +14 -0
  222. package/build/frontend/commands/inbounds/index.js +17 -0
  223. package/build/frontend/commands/index.js +26 -0
  224. package/build/frontend/commands/keygen/get-pubkey.command.js +15 -0
  225. package/build/frontend/commands/keygen/index.js +17 -0
  226. package/build/frontend/commands/nodes/create.command.js +31 -0
  227. package/build/frontend/commands/nodes/delete.command.js +18 -0
  228. package/build/frontend/commands/nodes/disable.command.js +17 -0
  229. package/build/frontend/commands/nodes/enable.command.js +17 -0
  230. package/build/frontend/commands/nodes/get-all.command.js +14 -0
  231. package/build/frontend/commands/nodes/get-one.command.js +17 -0
  232. package/build/frontend/commands/nodes/index.js +25 -0
  233. package/build/frontend/commands/nodes/restart-all.command.js +15 -0
  234. package/build/frontend/commands/nodes/restart.command.js +18 -0
  235. package/build/frontend/commands/nodes/update.command.js +31 -0
  236. package/build/frontend/commands/subscription/get-subscription-by-short-uuid.command.js +13 -0
  237. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +29 -0
  238. package/build/frontend/commands/subscription/index.js +18 -0
  239. package/build/frontend/commands/system/get-bandwidth-stats.command.js +23 -0
  240. package/build/frontend/commands/system/get-nodes-statistics.js +22 -0
  241. package/build/frontend/commands/system/get-stats.command.js +37 -0
  242. package/build/frontend/commands/system/index.js +19 -0
  243. package/build/frontend/commands/users/create-user.command.js +111 -0
  244. package/build/frontend/commands/users/delete-user.command.js +18 -0
  245. package/build/frontend/commands/users/disable-user.command.ts.js +17 -0
  246. package/build/frontend/commands/users/enable-user.command.js +17 -0
  247. package/build/frontend/commands/users/get-all-users-v2.command.js +42 -0
  248. package/build/frontend/commands/users/get-all-users.command.js +49 -0
  249. package/build/frontend/commands/users/get-user-by-short-uuid.command.js +17 -0
  250. package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +17 -0
  251. package/build/frontend/commands/users/get-user-by-username.command.js +17 -0
  252. package/build/frontend/commands/users/get-user-by-uuid.command.js +17 -0
  253. package/build/frontend/commands/users/index.js +28 -0
  254. package/build/frontend/commands/users/revoke-user-subscription.command.js +17 -0
  255. package/build/frontend/commands/users/update-user.command.js +57 -0
  256. package/build/frontend/commands/xray/get-config.command.js +15 -0
  257. package/build/frontend/commands/xray/index.js +18 -0
  258. package/build/frontend/commands/xray/update-config.command.js +16 -0
  259. package/{constants/errors/errors.ts → build/frontend/constants/errors/errors.js} +7 -5
  260. package/build/frontend/constants/errors/index.js +17 -0
  261. package/{constants/events/events.ts → build/frontend/constants/events/events.js} +4 -1
  262. package/build/frontend/constants/events/index.js +17 -0
  263. package/build/frontend/constants/hosts/alpn.js +9 -0
  264. package/build/frontend/constants/hosts/fingerprints.js +15 -0
  265. package/build/frontend/constants/hosts/index.js +18 -0
  266. package/build/frontend/constants/index.js +23 -0
  267. package/build/frontend/constants/nodes/cycle/cycle.js +8 -0
  268. package/build/frontend/constants/nodes/cycle/index.js +17 -0
  269. package/build/frontend/constants/nodes/index.js +18 -0
  270. package/build/frontend/constants/nodes/status/index.js +17 -0
  271. package/build/frontend/constants/nodes/status/status.constant.js +9 -0
  272. package/build/frontend/constants/roles/index.js +17 -0
  273. package/build/frontend/constants/roles/role.js +7 -0
  274. package/build/frontend/constants/templates/index.js +18 -0
  275. package/build/frontend/constants/templates/template-keys.js +10 -0
  276. package/build/frontend/constants/templates/user-statuses.js +9 -0
  277. package/build/frontend/constants/users/index.js +18 -0
  278. package/build/frontend/constants/users/reset-periods/index.js +17 -0
  279. package/build/frontend/constants/users/reset-periods/reset-periods.constant.js +11 -0
  280. package/build/frontend/constants/users/status/index.js +17 -0
  281. package/build/frontend/constants/users/status/status.constant.js +10 -0
  282. package/build/frontend/index.js +20 -0
  283. package/build/frontend/models/api-tokens.schema.js +12 -0
  284. package/build/frontend/models/auth.schema.js +7 -0
  285. package/build/frontend/models/base-stat.schema.js +9 -0
  286. package/build/frontend/models/hosts.schema.js +19 -0
  287. package/build/frontend/models/inbounds.schema.js +9 -0
  288. package/build/frontend/models/index.js +23 -0
  289. package/build/frontend/models/nodes.schema.js +28 -0
  290. package/build/frontend/models/users.schema.js +35 -0
  291. package/package.json +13 -5
  292. package/api/controllers/api-tokens.ts +0 -7
  293. package/api/controllers/auth.ts +0 -5
  294. package/api/controllers/hosts.ts +0 -10
  295. package/api/controllers/inbounds.ts +0 -5
  296. package/api/controllers/keygen.ts +0 -5
  297. package/api/controllers/subscription.ts +0 -6
  298. package/api/controllers/system.ts +0 -9
  299. package/api/controllers/xray.ts +0 -6
  300. package/api/routes.ts +0 -81
  301. package/commands/api-tokens/create.command.ts +0 -23
  302. package/commands/api-tokens/delete.command.ts +0 -19
  303. package/commands/api-tokens/find.command.ts +0 -14
  304. package/commands/auth/index.ts +0 -1
  305. package/commands/auth/login.command.ts +0 -21
  306. package/commands/hosts/create.command.ts +0 -49
  307. package/commands/hosts/delete.command.ts +0 -21
  308. package/commands/hosts/get-all.command.ts +0 -14
  309. package/commands/hosts/reorder.command.ts +0 -26
  310. package/commands/hosts/update.command.ts +0 -56
  311. package/commands/inbounds/get-inbounds.command.ts +0 -14
  312. package/commands/keygen/get-pubkey.command.ts +0 -15
  313. package/commands/nodes/create.command.ts +0 -40
  314. package/commands/nodes/delete.command.ts +0 -21
  315. package/commands/nodes/disable.command.ts +0 -20
  316. package/commands/nodes/enable.command.ts +0 -20
  317. package/commands/nodes/get-all.command.ts +0 -14
  318. package/commands/nodes/get-one.command.ts +0 -20
  319. package/commands/nodes/restart-all.command.ts +0 -14
  320. package/commands/nodes/restart.command.ts +0 -21
  321. package/commands/nodes/update.command.ts +0 -38
  322. package/commands/subscription/get-subscription-by-short-uuid.command.ts +0 -13
  323. package/commands/subscription/get-subscription-info-by-short-uuid.command.ts +0 -32
  324. package/commands/system/get-bandwidth-stats.command.ts +0 -26
  325. package/commands/system/get-nodes-statistics.ts +0 -27
  326. package/commands/system/get-stats.command.ts +0 -43
  327. package/commands/users/create-user.command.ts +0 -117
  328. package/commands/users/delete-user.command.ts +0 -20
  329. package/commands/users/disable-user.command.ts.ts +0 -19
  330. package/commands/users/enable-user.command.ts +0 -20
  331. package/commands/users/get-all-users-v2.command.ts +0 -62
  332. package/commands/users/get-all-users.command.ts +0 -62
  333. package/commands/users/get-user-by-short-uuid.command.ts +0 -20
  334. package/commands/users/get-user-by-subscription-uuid.command.ts +0 -20
  335. package/commands/users/get-user-by-uuid.command.ts +0 -20
  336. package/commands/users/revoke-user-subscription.command.ts +0 -20
  337. package/commands/users/update-user.command.ts +0 -60
  338. package/commands/xray/get-config.command.ts +0 -14
  339. package/commands/xray/update-config.command.ts +0 -19
  340. package/constants/errors/index.ts +0 -1
  341. package/constants/events/index.ts +0 -1
  342. package/constants/hosts/alpn.ts +0 -8
  343. package/constants/hosts/fingerprints.ts +0 -14
  344. package/constants/nodes/cycle/cycle.ts +0 -7
  345. package/constants/nodes/cycle/index.ts +0 -1
  346. package/constants/nodes/status/status.constant.ts +0 -8
  347. package/constants/roles/index.ts +0 -1
  348. package/constants/roles/role.ts +0 -7
  349. package/constants/templates/template-keys.ts +0 -8
  350. package/constants/templates/user-statuses.ts +0 -6
  351. package/constants/users/reset-periods/reset-periods.constant.ts +0 -10
  352. package/constants/users/status/status.constant.ts +0 -9
  353. package/models/api-tokens.schema.ts +0 -11
  354. package/models/auth.schema.ts +0 -5
  355. package/models/base-stat.schema.ts +0 -7
  356. package/models/hosts.schema.ts +0 -17
  357. package/models/inbounds.schema.ts +0 -7
  358. package/models/nodes.schema.ts +0 -28
  359. package/models/users.schema.ts +0 -38
  360. package/tsconfig.json +0 -103
  361. /package/build/{api → backend/api}/controllers/api-tokens.js +0 -0
  362. /package/build/{api → backend/api}/controllers/auth.js +0 -0
  363. /package/build/{api → backend/api}/controllers/hosts.js +0 -0
  364. /package/build/{api → backend/api}/controllers/inbounds.js +0 -0
  365. /package/build/{api → backend/api}/controllers/index.js +0 -0
  366. /package/build/{api → backend/api}/controllers/keygen.js +0 -0
  367. /package/build/{api → backend/api}/controllers/nodes.js +0 -0
  368. /package/build/{api → backend/api}/controllers/subscription.js +0 -0
  369. /package/build/{api → backend/api}/controllers/system.js +0 -0
  370. /package/build/{api → backend/api}/controllers/xray.js +0 -0
  371. /package/build/{api → backend/api}/index.js +0 -0
  372. /package/build/{commands → backend/commands}/api-tokens/create.command.js +0 -0
  373. /package/build/{commands → backend/commands}/api-tokens/delete.command.js +0 -0
  374. /package/build/{commands → backend/commands}/api-tokens/find.command.js +0 -0
  375. /package/build/{commands → backend/commands}/api-tokens/index.js +0 -0
  376. /package/build/{commands → backend/commands}/auth/index.js +0 -0
  377. /package/build/{commands → backend/commands}/auth/login.command.js +0 -0
  378. /package/build/{commands → backend/commands}/hosts/create.command.js +0 -0
  379. /package/build/{commands → backend/commands}/hosts/delete.command.js +0 -0
  380. /package/build/{commands → backend/commands}/hosts/get-all.command.js +0 -0
  381. /package/build/{commands → backend/commands}/hosts/index.js +0 -0
  382. /package/build/{commands → backend/commands}/hosts/reorder.command.js +0 -0
  383. /package/build/{commands → backend/commands}/hosts/update.command.js +0 -0
  384. /package/build/{commands → backend/commands}/inbounds/get-inbounds.command.js +0 -0
  385. /package/build/{commands → backend/commands}/inbounds/index.js +0 -0
  386. /package/build/{commands → backend/commands}/index.js +0 -0
  387. /package/build/{commands → backend/commands}/keygen/get-pubkey.command.js +0 -0
  388. /package/build/{commands → backend/commands}/keygen/index.js +0 -0
  389. /package/build/{commands → backend/commands}/nodes/create.command.js +0 -0
  390. /package/build/{commands → backend/commands}/nodes/delete.command.js +0 -0
  391. /package/build/{commands → backend/commands}/nodes/disable.command.js +0 -0
  392. /package/build/{commands → backend/commands}/nodes/enable.command.js +0 -0
  393. /package/build/{commands → backend/commands}/nodes/get-all.command.js +0 -0
  394. /package/build/{commands → backend/commands}/nodes/get-one.command.js +0 -0
  395. /package/build/{commands → backend/commands}/nodes/index.js +0 -0
  396. /package/build/{commands → backend/commands}/nodes/restart-all.command.js +0 -0
  397. /package/build/{commands → backend/commands}/nodes/restart.command.js +0 -0
  398. /package/build/{commands → backend/commands}/nodes/update.command.js +0 -0
  399. /package/build/{commands → backend/commands}/subscription/get-subscription-by-short-uuid.command.js +0 -0
  400. /package/build/{commands → backend/commands}/subscription/get-subscription-info-by-short-uuid.command.js +0 -0
  401. /package/build/{commands → backend/commands}/subscription/index.js +0 -0
  402. /package/build/{commands → backend/commands}/system/get-bandwidth-stats.command.js +0 -0
  403. /package/build/{commands → backend/commands}/system/get-nodes-statistics.js +0 -0
  404. /package/build/{commands → backend/commands}/system/get-stats.command.js +0 -0
  405. /package/build/{commands → backend/commands}/system/index.js +0 -0
  406. /package/build/{commands → backend/commands}/users/create-user.command.js +0 -0
  407. /package/build/{commands → backend/commands}/users/delete-user.command.js +0 -0
  408. /package/build/{commands → backend/commands}/users/disable-user.command.ts.js +0 -0
  409. /package/build/{commands → backend/commands}/users/enable-user.command.js +0 -0
  410. /package/build/{commands → backend/commands}/users/get-all-users-v2.command.js +0 -0
  411. /package/build/{commands → backend/commands}/users/get-all-users.command.js +0 -0
  412. /package/build/{commands → backend/commands}/users/get-user-by-short-uuid.command.js +0 -0
  413. /package/build/{commands → backend/commands}/users/get-user-by-subscription-uuid.command.js +0 -0
  414. /package/build/{commands → backend/commands}/users/get-user-by-uuid.command.js +0 -0
  415. /package/build/{commands → backend/commands}/users/revoke-user-subscription.command.js +0 -0
  416. /package/build/{commands → backend/commands}/users/update-user.command.js +0 -0
  417. /package/build/{commands → backend/commands}/xray/get-config.command.js +0 -0
  418. /package/build/{commands → backend/commands}/xray/index.js +0 -0
  419. /package/build/{commands → backend/commands}/xray/update-config.command.js +0 -0
  420. /package/build/{constants → backend/constants}/errors/errors.js +0 -0
  421. /package/build/{constants → backend/constants}/errors/index.js +0 -0
  422. /package/build/{constants → backend/constants}/events/events.js +0 -0
  423. /package/build/{constants → backend/constants}/events/index.js +0 -0
  424. /package/build/{constants → backend/constants}/hosts/alpn.js +0 -0
  425. /package/build/{constants → backend/constants}/hosts/fingerprints.js +0 -0
  426. /package/build/{constants → backend/constants}/hosts/index.js +0 -0
  427. /package/build/{constants → backend/constants}/index.js +0 -0
  428. /package/build/{constants → backend/constants}/nodes/cycle/cycle.js +0 -0
  429. /package/build/{constants → backend/constants}/nodes/cycle/index.js +0 -0
  430. /package/build/{constants → backend/constants}/nodes/index.js +0 -0
  431. /package/build/{constants → backend/constants}/nodes/status/index.js +0 -0
  432. /package/build/{constants → backend/constants}/nodes/status/status.constant.js +0 -0
  433. /package/build/{constants → backend/constants}/roles/index.js +0 -0
  434. /package/build/{constants → backend/constants}/roles/role.js +0 -0
  435. /package/build/{constants → backend/constants}/templates/index.js +0 -0
  436. /package/build/{constants → backend/constants}/templates/template-keys.js +0 -0
  437. /package/build/{constants → backend/constants}/templates/user-statuses.js +0 -0
  438. /package/build/{constants → backend/constants}/users/index.js +0 -0
  439. /package/build/{constants → backend/constants}/users/reset-periods/index.js +0 -0
  440. /package/build/{constants → backend/constants}/users/reset-periods/reset-periods.constant.js +0 -0
  441. /package/build/{constants → backend/constants}/users/status/index.js +0 -0
  442. /package/build/{constants → backend/constants}/users/status/status.constant.js +0 -0
  443. /package/build/{index.js → backend/index.js} +0 -0
  444. /package/build/{models → backend/models}/api-tokens.schema.js +0 -0
  445. /package/build/{models → backend/models}/auth.schema.js +0 -0
  446. /package/build/{models → backend/models}/base-stat.schema.js +0 -0
  447. /package/build/{models → backend/models}/hosts.schema.js +0 -0
  448. /package/build/{models → backend/models}/inbounds.schema.js +0 -0
  449. /package/build/{models → backend/models}/index.js +0 -0
  450. /package/build/{models → backend/models}/nodes.schema.js +0 -0
@@ -1,60 +0,0 @@
1
- import { z } from 'zod';
2
- import { REST_API } from '../../api';
3
- import { RESET_PERIODS } from '../../constants';
4
- import { InboundsSchema, UsersSchema } from '../../models';
5
-
6
- export namespace UpdateUserCommand {
7
- export const url = REST_API.USERS.UPDATE;
8
- export const TSQ_url = url;
9
-
10
- export const RequestSchema = UsersSchema.pick({
11
- uuid: true,
12
- }).extend({
13
- status: UsersSchema.shape.status.optional(),
14
- trafficLimitBytes: z
15
- .number({
16
- invalid_type_error: 'Traffic limit must be a number',
17
- })
18
- .int('Traffic limit must be an integer')
19
- .min(0, 'Traffic limit must be greater than 0')
20
- .describe('Traffic limit in bytes. 0 - unlimited')
21
- .optional(),
22
- trafficLimitStrategy: UsersSchema.shape.trafficLimitStrategy
23
- .describe('Traffic limit reset strategy')
24
- .optional()
25
- .default(RESET_PERIODS.NO_RESET)
26
- .superRefine((val, ctx) => {
27
- if (val && !Object.values(RESET_PERIODS).includes(val)) {
28
- ctx.addIssue({
29
- code: z.ZodIssueCode.invalid_enum_value,
30
- message: 'Invalid traffic limit strategy',
31
- path: ['trafficLimitStrategy'],
32
- received: val,
33
- options: Object.values(RESET_PERIODS),
34
- });
35
- }
36
- }),
37
- activeUserInbounds: z
38
- .array(z.string().uuid(), {
39
- invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
40
- })
41
- .optional(),
42
- expireAt: z.coerce
43
- .date({
44
- required_error: 'Expiration date is required',
45
- invalid_type_error: 'Invalid expiration date format',
46
- })
47
- .refine((date) => date > new Date(), {
48
- message: 'Expiration date cannot be in the past',
49
- })
50
- .optional(),
51
- });
52
-
53
- export type Request = z.infer<typeof RequestSchema>;
54
-
55
- export const ResponseSchema = z.object({
56
- response: UsersSchema,
57
- });
58
-
59
- export type Response = z.infer<typeof ResponseSchema>;
60
- }
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import { REST_API } from '../../api';
3
- export namespace GetXrayConfigCommand {
4
- export const url = REST_API.XRAY.GET_CONFIG;
5
- export const TSQ_url = url;
6
-
7
- export const ResponseSchema = z.object({
8
- response: z.object({
9
- config: z.record(z.any()),
10
- }),
11
- });
12
-
13
- export type Response = z.infer<typeof ResponseSchema>;
14
- }
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { REST_API } from '../../api';
3
-
4
- export namespace UpdateXrayConfigCommand {
5
- export const url = REST_API.XRAY.UPDATE_CONFIG;
6
- export const TSQ_url = url;
7
-
8
- export const RequestSchema = z.record(z.any());
9
-
10
- export type Request = z.infer<typeof RequestSchema>;
11
-
12
- export const ResponseSchema = z.object({
13
- response: z.object({
14
- config: z.record(z.any()),
15
- }),
16
- });
17
-
18
- export type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1 +0,0 @@
1
- export * from './errors';
@@ -1 +0,0 @@
1
- export * from './events';
@@ -1,8 +0,0 @@
1
- export const ALPN = {
2
- HTTP_1_1: 'http/1.1',
3
- H2: 'h2',
4
- H_COMBINED: 'h2,http/1.1',
5
- } as const;
6
-
7
- export type TAlpn = [keyof typeof ALPN][number];
8
- export const ALPN_VALUES = Object.values(ALPN);
@@ -1,14 +0,0 @@
1
- export const FINGERPRINTS = {
2
- CHROME: 'chrome',
3
- FIREFOX: 'firefox',
4
- SAFARI: 'safari',
5
- IOS: 'ios',
6
- ANDROID: 'android',
7
- EDGE: 'edge',
8
- QQ: 'qq',
9
- RANDOM: 'random',
10
- RANDOMIZED: 'randomized',
11
- } as const;
12
-
13
- export type TFingerprints = [keyof typeof FINGERPRINTS][number];
14
- export const FINGERPRINTS_VALUES = Object.values(FINGERPRINTS);
@@ -1,7 +0,0 @@
1
- export const NODES_CYCLE = {
2
- MONTH: 'MONTH',
3
- YEAR: 'YEAR',
4
- } as const;
5
-
6
- export type TNodesCycle = [keyof typeof NODES_CYCLE][number];
7
- export const NODES_CYCLE_VALUES = Object.values(NODES_CYCLE);
@@ -1 +0,0 @@
1
- export * from './cycle';
@@ -1,8 +0,0 @@
1
- export const NODES_STATUS = {
2
- CONNECTED: 'CONNECTED',
3
- DISCONNECTED: 'DISCONNECTED',
4
- DISABLED: 'DISABLED',
5
- } as const;
6
-
7
- export type TNodesStatus = [keyof typeof NODES_STATUS][number];
8
- export const NODES_STATUS_VALUES = Object.values(NODES_STATUS);
@@ -1 +0,0 @@
1
- export * from './role';
@@ -1,7 +0,0 @@
1
- export const ROLE = {
2
- ADMIN: 'ADMIN',
3
- API: 'API',
4
- } as const;
5
-
6
- export type TRole = typeof ROLE;
7
- export type TRolesKeys = (typeof ROLE)[keyof typeof ROLE];
@@ -1,8 +0,0 @@
1
- export const TEMPLATE_KEYS = [
2
- 'DAYS_LEFT',
3
- 'TRAFFIC_USED',
4
- 'TRAFFIC_LEFT',
5
- 'STATUS',
6
- 'TOTAL_TRAFFIC',
7
- ] as const;
8
- export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
@@ -1,6 +0,0 @@
1
- export const USER_STATUSES_TEMPLATE = {
2
- ACTIVE: ' ✅ Active',
3
- EXPIRED: ' ⚠️ Expired',
4
- DISABLED: '❌ Disabled',
5
- LIMITED: '🔴 Limited',
6
- } as const;
@@ -1,10 +0,0 @@
1
- export const RESET_PERIODS = {
2
- NO_RESET: 'NO_RESET',
3
- DAY: 'DAY',
4
- WEEK: 'WEEK',
5
- MONTH: 'MONTH',
6
- YEAR: 'YEAR',
7
- } as const;
8
-
9
- export type TResetPeriods = [keyof typeof RESET_PERIODS][number];
10
- export const RESET_PERIODS_VALUES = Object.values(RESET_PERIODS);
@@ -1,9 +0,0 @@
1
- export const USERS_STATUS = {
2
- ACTIVE: 'ACTIVE',
3
- DISABLED: 'DISABLED',
4
- LIMITED: 'LIMITED',
5
- EXPIRED: 'EXPIRED',
6
- } as const;
7
-
8
- export type TUsersStatus = [keyof typeof USERS_STATUS][number];
9
- export const USERS_STATUS_VALUES = Object.values(USERS_STATUS);
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const ApiTokensSchema = z.object({
4
- uuid: z.string().uuid(),
5
- token: z.string(),
6
- tokenName: z.string(),
7
- tokenDescription: z.nullable(z.string()),
8
-
9
- createdAt: z.string().transform((str) => new Date(str)),
10
- updatedAt: z.string().transform((str) => new Date(str)),
11
- });
@@ -1,5 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const AuthSchema = z.object({
4
- hash: z.string(),
5
- });
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const BaseStatSchema = z.object({
4
- current: z.string(),
5
- previous: z.string(),
6
- difference: z.string(),
7
- });
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const HostsSchema = z.object({
4
- uuid: z.string().uuid(),
5
- inboundUuid: z.string().uuid(),
6
- viewPosition: z.number().int(),
7
- remark: z.string(),
8
- address: z.string(),
9
- port: z.number().int(),
10
- path: z.string().nullable(),
11
- sni: z.string().nullable(),
12
- host: z.string().nullable(),
13
- alpn: z.string().nullable(),
14
- fingerprint: z.string().nullable(),
15
- allowInsecure: z.boolean().default(false),
16
- isDisabled: z.boolean().default(false),
17
- });
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const InboundsSchema = z.object({
4
- uuid: z.string().uuid(),
5
- tag: z.string(),
6
- type: z.string(),
7
- });
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export const NodesSchema = z.object({
4
- uuid: z.string().uuid(),
5
- name: z.string(),
6
- address: z.string(),
7
- port: z.nullable(z.number().int()),
8
- isConnected: z.boolean(),
9
- isDisabled: z.boolean(),
10
- isConnecting: z.boolean(),
11
- isNodeOnline: z.boolean(),
12
- isXrayRunning: z.boolean(),
13
- lastStatusChange: z.nullable(z.string().transform((str) => new Date(str))),
14
- lastStatusMessage: z.nullable(z.string()),
15
- xrayVersion: z.nullable(z.string()),
16
- isTrafficTrackingActive: z.boolean(),
17
- trafficResetDay: z.nullable(z.number().int()),
18
- trafficLimitBytes: z.nullable(z.number()),
19
- trafficUsedBytes: z.nullable(z.number()),
20
- notifyPercent: z.nullable(z.number().int()),
21
-
22
- cpuCount: z.nullable(z.number().int()),
23
- cpuModel: z.nullable(z.string()),
24
- totalRam: z.nullable(z.string()),
25
-
26
- createdAt: z.string().transform((str) => new Date(str)),
27
- updatedAt: z.string().transform((str) => new Date(str)),
28
- });
@@ -1,38 +0,0 @@
1
- import { z } from 'zod';
2
- import { RESET_PERIODS_VALUES, USERS_STATUS_VALUES } from '../constants';
3
- import { InboundsSchema } from './inbounds.schema';
4
-
5
- export const UsersSchema = z.object({
6
- uuid: z.string().uuid(),
7
- subscriptionUuid: z.string().uuid(),
8
- shortUuid: z.string(),
9
- username: z.string(),
10
-
11
- status: z
12
- .enum([USERS_STATUS_VALUES[0], ...USERS_STATUS_VALUES])
13
- .default(USERS_STATUS_VALUES[0]),
14
-
15
- usedTrafficBytes: z.number().int().default(0),
16
- trafficLimitBytes: z.number().int().default(0),
17
- trafficLimitStrategy: z
18
- .enum([RESET_PERIODS_VALUES[0], ...RESET_PERIODS_VALUES], {
19
- description: 'Available reset periods',
20
- })
21
- .default(RESET_PERIODS_VALUES[0]),
22
- subLastUserAgent: z.nullable(z.string()),
23
- subLastOpenedAt: z.nullable(z.string().transform((str) => new Date(str))),
24
-
25
- expireAt: z.nullable(z.string().transform((str) => new Date(str))),
26
- onlineAt: z.nullable(z.string().transform((str) => new Date(str))),
27
- subRevokedAt: z.nullable(z.string().transform((str) => new Date(str))),
28
- lastTrafficResetAt: z.nullable(z.string().transform((str) => new Date(str))),
29
-
30
- trojanPassword: z.string(),
31
- vlessUuid: z.string().uuid(),
32
- ssPassword: z.string(),
33
-
34
- createdAt: z.string().transform((str) => new Date(str)),
35
- updatedAt: z.string().transform((str) => new Date(str)),
36
-
37
- activeUserInbounds: z.array(InboundsSchema),
38
- });
package/tsconfig.json DELETED
@@ -1,103 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2017" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorator. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "commonjs" /* Specify what module code is generated. */,
29
- // "rootDir": "./", /* Specify the root folder within your source files. */
30
- // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@type'. */
35
- // "type": [], /* Specify type package names to be included without being referenced in a source file. */
36
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
- // "resolveJsonModule": true, /* Enable importing .json files. */
39
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
40
-
41
- /* JavaScript Support */
42
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
43
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
44
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
45
-
46
- /* Emit */
47
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
52
- "outDir": "./build" /* Specify an output folder for all emitted files. */,
53
- // "removeComments": true, /* Disable emitting comments. */
54
- // "noEmit": true, /* Disable emitting files from a compilation. */
55
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
56
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for type. */
57
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
58
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
59
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
61
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
- // "newLine": "crlf", /* Set the newline character for emitting files. */
64
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
-
71
- /* Interop Constraints */
72
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
75
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
77
-
78
- /* Type Checking */
79
- "strict": true /* Enable all strict type-checking options. */,
80
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
81
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
82
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
83
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
84
- "strictPropertyInitialization": false /* Check for class properties that are declared but not set in the constructor. */,
85
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
86
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
88
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
89
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
90
- // "exactOptionalPropertyTypes": true, /* Interpret optional property type as written, rather than adding 'undefined'. */
91
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
92
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
93
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
94
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
95
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
96
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
97
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
98
-
99
- /* Completeness */
100
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
102
- }
103
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes