@long2ice/relayx-backend 0.0.1

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 (88) hide show
  1. package/README.md +13 -0
  2. package/dist/app.d.ts +8592 -0
  3. package/dist/bullmq/index.d.ts +1 -0
  4. package/dist/bullmq/jobs.d.ts +34 -0
  5. package/dist/bullmq/queue.d.ts +6 -0
  6. package/dist/bullmq/queuedash.d.ts +12 -0
  7. package/dist/bullmq/worker.d.ts +1 -0
  8. package/dist/config.d.ts +16 -0
  9. package/dist/db.d.ts +3 -0
  10. package/dist/generated/prisma/zod/index.d.ts +2289 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/middlewares/auth.d.ts +3 -0
  13. package/dist/middlewares/ip.d.ts +2 -0
  14. package/dist/middlewares/license.d.ts +2 -0
  15. package/dist/middlewares/plan.d.ts +2 -0
  16. package/dist/routes/admin/license.d.ts +90 -0
  17. package/dist/routes/admin/node.d.ts +919 -0
  18. package/dist/routes/admin/node_group.d.ts +2115 -0
  19. package/dist/routes/admin/pay.d.ts +261 -0
  20. package/dist/routes/admin/plan.d.ts +198 -0
  21. package/dist/routes/admin/plan_coupon.d.ts +92 -0
  22. package/dist/routes/admin/stats.d.ts +77 -0
  23. package/dist/routes/admin/system_config.d.ts +68 -0
  24. package/dist/routes/admin/ticket.d.ts +113 -0
  25. package/dist/routes/admin/topup.d.ts +88 -0
  26. package/dist/routes/admin/topup_activity.d.ts +84 -0
  27. package/dist/routes/admin/tunnel.d.ts +566 -0
  28. package/dist/routes/admin/user.d.ts +299 -0
  29. package/dist/routes/admin/user_plan.d.ts +109 -0
  30. package/dist/routes/bot.d.ts +13 -0
  31. package/dist/routes/dns_provider.d.ts +240 -0
  32. package/dist/routes/health.d.ts +3 -0
  33. package/dist/routes/in_node_group_dns.d.ts +132 -0
  34. package/dist/routes/license.d.ts +50 -0
  35. package/dist/routes/node.d.ts +148 -0
  36. package/dist/routes/node_group.d.ts +1498 -0
  37. package/dist/routes/pay.d.ts +34 -0
  38. package/dist/routes/plan.d.ts +148 -0
  39. package/dist/routes/plan_coupon.d.ts +22 -0
  40. package/dist/routes/system_config.d.ts +87 -0
  41. package/dist/routes/ticket.d.ts +129 -0
  42. package/dist/routes/topup.d.ts +93 -0
  43. package/dist/routes/tunnel.d.ts +742 -0
  44. package/dist/routes/user.d.ts +293 -0
  45. package/dist/schemas/context.d.ts +9 -0
  46. package/dist/schemas/license.d.ts +7 -0
  47. package/dist/schemas/request.d.ts +1181 -0
  48. package/dist/schemas/response.d.ts +2439 -0
  49. package/dist/schemas/socket.io.d.ts +33 -0
  50. package/dist/schemas/tunnel.d.ts +10 -0
  51. package/dist/services/dns/cloudflare.d.ts +12 -0
  52. package/dist/services/dns/huawei.d.ts +12 -0
  53. package/dist/services/dns/index.d.ts +4 -0
  54. package/dist/services/dns/interface.d.ts +8 -0
  55. package/dist/services/dns_provider.d.ts +46 -0
  56. package/dist/services/email.d.ts +11 -0
  57. package/dist/services/fernet.d.ts +2 -0
  58. package/dist/services/in_node_group_dns.d.ts +65 -0
  59. package/dist/services/license.d.ts +87 -0
  60. package/dist/services/logger.d.ts +7 -0
  61. package/dist/services/node.d.ts +39 -0
  62. package/dist/services/node_group.d.ts +75 -0
  63. package/dist/services/notify.d.ts +44 -0
  64. package/dist/services/order.d.ts +3 -0
  65. package/dist/services/pay.d.ts +6 -0
  66. package/dist/services/plan.d.ts +119 -0
  67. package/dist/services/plan_coupon.d.ts +16 -0
  68. package/dist/services/redis.d.ts +59 -0
  69. package/dist/services/stackauth.d.ts +25 -0
  70. package/dist/services/sysinfo.d.ts +7 -0
  71. package/dist/services/system_config.d.ts +7 -0
  72. package/dist/services/telegram.d.ts +8 -0
  73. package/dist/services/ticket.d.ts +134 -0
  74. package/dist/services/topup.d.ts +37 -0
  75. package/dist/services/topup_activity.d.ts +21 -0
  76. package/dist/services/tunnel.d.ts +1235 -0
  77. package/dist/services/user.d.ts +25 -0
  78. package/dist/socket-io/events.d.ts +13 -0
  79. package/dist/socket-io/handlers/disconnect.d.ts +2 -0
  80. package/dist/socket-io/handlers/listen.d.ts +3 -0
  81. package/dist/socket-io/handlers/register.d.ts +2 -0
  82. package/dist/socket-io/handlers/sysinfo.d.ts +2 -0
  83. package/dist/socket-io/index.d.ts +3 -0
  84. package/dist/socket-io/utils.d.ts +8 -0
  85. package/dist/utils/date.d.ts +1 -0
  86. package/dist/utils/ip.d.ts +2 -0
  87. package/dist/utils/uuid.d.ts +1 -0
  88. package/package.json +82 -0
@@ -0,0 +1,113 @@
1
+ import { Variables } from "../../schemas/context";
2
+ declare const app: import("hono/hono-base").HonoBase<{
3
+ Variables: Variables;
4
+ }, {
5
+ "/": {
6
+ $get: {
7
+ input: {
8
+ query: {
9
+ status?: string | string[] | undefined;
10
+ sort?: string | string[] | undefined;
11
+ page?: string | string[] | undefined;
12
+ perPage?: string | string[] | undefined;
13
+ };
14
+ };
15
+ output: {
16
+ data: {
17
+ user: {
18
+ email: string;
19
+ };
20
+ id: number;
21
+ created_at: string;
22
+ updated_at: string;
23
+ user_id: number;
24
+ status: import("../../generated/prisma/client").$Enums.TicketStatus;
25
+ title: string;
26
+ content: string;
27
+ }[];
28
+ total: number;
29
+ };
30
+ outputFormat: "json";
31
+ status: import("hono/utils/http-status").ContentfulStatusCode;
32
+ };
33
+ };
34
+ } & {
35
+ "/:id": {
36
+ $get: {
37
+ input: {
38
+ param: {
39
+ id: string;
40
+ };
41
+ };
42
+ output: {
43
+ user: {
44
+ email: string;
45
+ };
46
+ replies: {
47
+ user: {
48
+ email: string;
49
+ };
50
+ id: number;
51
+ created_at: string;
52
+ updated_at: string;
53
+ user_id: number;
54
+ content: string;
55
+ is_admin: boolean;
56
+ ticket_id: number;
57
+ }[];
58
+ id: number;
59
+ created_at: string;
60
+ updated_at: string;
61
+ user_id: number;
62
+ status: import("../../generated/prisma/client").$Enums.TicketStatus;
63
+ title: string;
64
+ content: string;
65
+ };
66
+ outputFormat: "json";
67
+ status: import("hono/utils/http-status").ContentfulStatusCode;
68
+ };
69
+ };
70
+ } & {
71
+ "/:id/reply": {
72
+ $post: {
73
+ input: {
74
+ param: {
75
+ id: string;
76
+ };
77
+ } & {
78
+ json: {
79
+ content: string;
80
+ };
81
+ };
82
+ output: {
83
+ id: number;
84
+ created_at: string;
85
+ updated_at: string;
86
+ user_id: number;
87
+ content: string;
88
+ is_admin: boolean;
89
+ ticket_id: number;
90
+ };
91
+ outputFormat: "json";
92
+ status: 201;
93
+ };
94
+ };
95
+ } & {
96
+ "/:id": {
97
+ $patch: {
98
+ input: {
99
+ param: {
100
+ id: string;
101
+ };
102
+ } & {
103
+ json: {
104
+ status: "open" | "closed";
105
+ };
106
+ };
107
+ output: null;
108
+ outputFormat: "body";
109
+ status: 204;
110
+ };
111
+ };
112
+ }, "/">;
113
+ export default app;
@@ -0,0 +1,88 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $get: {
4
+ input: {
5
+ query: {
6
+ email?: string | string[] | undefined;
7
+ status?: string | string[] | undefined;
8
+ order_id?: string | string[] | undefined;
9
+ payment?: string | string[] | undefined;
10
+ sort?: string | string[] | undefined;
11
+ page?: string | string[] | undefined;
12
+ perPage?: string | string[] | undefined;
13
+ };
14
+ };
15
+ output: {
16
+ data: {
17
+ user: {
18
+ email: string;
19
+ };
20
+ payment: {
21
+ name: string;
22
+ };
23
+ id: number;
24
+ created_at: string;
25
+ updated_at: string;
26
+ user_id: number;
27
+ balance: number;
28
+ status: import("../../generated/prisma/client").$Enums.TopupOrderStatus;
29
+ price: number;
30
+ bonus: number;
31
+ payment_id: number;
32
+ pay_url: string;
33
+ order_id: string;
34
+ trade_id: string | null;
35
+ }[];
36
+ total: number;
37
+ };
38
+ outputFormat: "json";
39
+ status: import("hono/utils/http-status").ContentfulStatusCode;
40
+ };
41
+ };
42
+ } & {
43
+ "/:id/cancel": {
44
+ $patch: {
45
+ input: {
46
+ param: {
47
+ id: string;
48
+ };
49
+ };
50
+ output: null;
51
+ outputFormat: "body";
52
+ status: 204;
53
+ };
54
+ };
55
+ } & {
56
+ "/:id/mark-paid": {
57
+ $patch: {
58
+ input: {
59
+ param: {
60
+ id: string;
61
+ };
62
+ };
63
+ output: null;
64
+ outputFormat: "body";
65
+ status: 204;
66
+ };
67
+ };
68
+ } & {
69
+ "/stats": {
70
+ $get: {
71
+ input: {
72
+ query: {
73
+ payment_id?: string | string[] | undefined;
74
+ start_date?: string | string[] | undefined;
75
+ end_date?: string | string[] | undefined;
76
+ aggregate_by?: string | string[] | undefined;
77
+ };
78
+ };
79
+ output: {
80
+ date: string;
81
+ total: number;
82
+ }[];
83
+ outputFormat: "json";
84
+ status: import("hono/utils/http-status").ContentfulStatusCode;
85
+ };
86
+ };
87
+ }, "/">;
88
+ export default app;
@@ -0,0 +1,84 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $post: {
4
+ input: {
5
+ json: {
6
+ type: "fixed" | "percentage";
7
+ value: number;
8
+ min_amount: number | null;
9
+ max_amount: number | null;
10
+ valid_start: Date | null;
11
+ valid_end: Date | null;
12
+ };
13
+ };
14
+ output: null;
15
+ outputFormat: "body";
16
+ status: 201;
17
+ };
18
+ };
19
+ } & {
20
+ "/": {
21
+ $get: {
22
+ input: {
23
+ query: {
24
+ type?: string | string[] | undefined;
25
+ sort?: string | string[] | undefined;
26
+ page?: string | string[] | undefined;
27
+ perPage?: string | string[] | undefined;
28
+ };
29
+ };
30
+ output: {
31
+ data: {
32
+ id: number;
33
+ created_at: string;
34
+ updated_at: string;
35
+ type: import("../../generated/prisma/client").$Enums.TopupActivityType;
36
+ value: number;
37
+ min_amount: number | null;
38
+ max_amount: number | null;
39
+ valid_start: string | null;
40
+ valid_end: string | null;
41
+ }[];
42
+ total: number;
43
+ };
44
+ outputFormat: "json";
45
+ status: import("hono/utils/http-status").ContentfulStatusCode;
46
+ };
47
+ };
48
+ } & {
49
+ "/:id": {
50
+ $patch: {
51
+ input: {
52
+ param: {
53
+ id: string;
54
+ };
55
+ } & {
56
+ json: {
57
+ type?: "fixed" | "percentage" | undefined;
58
+ value?: number | undefined;
59
+ min_amount?: number | null | undefined;
60
+ max_amount?: number | null | undefined;
61
+ valid_start?: Date | null | undefined;
62
+ valid_end?: Date | null | undefined;
63
+ };
64
+ };
65
+ output: null;
66
+ outputFormat: "body";
67
+ status: 204;
68
+ };
69
+ };
70
+ } & {
71
+ "/": {
72
+ $delete: {
73
+ input: {
74
+ query: {
75
+ ids: string;
76
+ };
77
+ };
78
+ output: null;
79
+ outputFormat: "body";
80
+ status: 204;
81
+ };
82
+ };
83
+ }, "/">;
84
+ export default app;