@remnawave/backend-contract 2.0.0-alpha.27 → 2.0.0-alpha.3

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 (199) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/internal-squads.d.ts +0 -4
  5. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  6. package/build/backend/api/controllers/internal-squads.js +0 -5
  7. package/build/backend/api/controllers/users.d.ts +0 -1
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +0 -1
  10. package/build/backend/api/routes.d.ts +0 -19
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +0 -19
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -26
  15. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -26
  17. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -26
  19. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -26
  21. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -26
  23. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/create.command.d.ts +19 -47
  25. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.js +13 -13
  27. package/build/backend/commands/hosts/get-all.command.d.ts +10 -26
  28. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
  30. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +21 -57
  34. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/update.command.js +11 -10
  36. package/build/backend/commands/index.d.ts +0 -1
  37. package/build/backend/commands/index.d.ts.map +1 -1
  38. package/build/backend/commands/index.js +0 -1
  39. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  40. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.d.ts → get-internal-squad-by-uuid..d.ts} +1 -1
  41. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
  42. package/build/backend/commands/internal-squads/index.d.ts +1 -2
  43. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  44. package/build/backend/commands/internal-squads/index.js +1 -2
  45. package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
  46. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  47. package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
  48. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  49. package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
  50. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/create.command.d.ts +70 -178
  52. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/create.command.js +4 -7
  54. package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
  55. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  56. package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
  57. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  58. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  59. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  60. package/build/backend/commands/nodes/update.command.d.ts +94 -251
  61. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  62. package/build/backend/commands/nodes/update.command.js +4 -9
  63. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  64. package/build/backend/commands/users/index.d.ts +0 -1
  65. package/build/backend/commands/users/index.d.ts.map +1 -1
  66. package/build/backend/commands/users/index.js +0 -1
  67. package/build/backend/constants/errors/errors.d.ts +0 -95
  68. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  69. package/build/backend/constants/errors/errors.js +0 -95
  70. package/build/backend/constants/events/events.d.ts +0 -11
  71. package/build/backend/constants/events/events.d.ts.map +1 -1
  72. package/build/backend/constants/events/events.js +0 -10
  73. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  74. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  75. package/build/backend/constants/templates/template-keys.js +0 -1
  76. package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
  77. package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
  78. package/build/backend/models/hosts.schema.d.ts +6 -18
  79. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  80. package/build/backend/models/hosts.schema.js +2 -4
  81. package/build/backend/models/index.d.ts +1 -5
  82. package/build/backend/models/index.d.ts.map +1 -1
  83. package/build/backend/models/index.js +1 -5
  84. package/build/backend/models/nodes.schema.d.ts +44 -115
  85. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  86. package/build/backend/models/nodes.schema.js +2 -7
  87. package/build/frontend/api/controllers/index.js +0 -1
  88. package/build/frontend/api/controllers/internal-squads.js +0 -5
  89. package/build/frontend/api/controllers/users.js +0 -1
  90. package/build/frontend/api/routes.js +0 -19
  91. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  92. package/build/frontend/commands/hosts/create.command.js +13 -13
  93. package/build/frontend/commands/hosts/update.command.js +11 -10
  94. package/build/frontend/commands/index.js +0 -1
  95. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  96. package/build/frontend/commands/internal-squads/index.js +1 -2
  97. package/build/frontend/commands/nodes/create.command.js +4 -7
  98. package/build/frontend/commands/nodes/update.command.js +4 -9
  99. package/build/frontend/commands/users/index.js +0 -1
  100. package/build/frontend/constants/errors/errors.js +0 -95
  101. package/build/frontend/constants/events/events.js +0 -10
  102. package/build/frontend/constants/templates/template-keys.js +0 -1
  103. package/build/frontend/models/hosts.schema.js +2 -4
  104. package/build/frontend/models/index.js +1 -5
  105. package/build/frontend/models/nodes.schema.js +2 -7
  106. package/package.json +1 -1
  107. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  108. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  109. package/build/backend/api/controllers/infra-billing.js +0 -18
  110. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  111. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  113. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
  114. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  115. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  116. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  117. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  118. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  119. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  120. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  121. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  122. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
  123. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  124. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  125. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  126. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  127. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  128. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  129. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  130. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  131. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
  132. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
  133. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  134. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  135. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  136. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  137. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  138. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  139. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  140. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  141. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  142. package/build/backend/commands/infra-billing/index.js +0 -28
  143. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
  144. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  145. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  146. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  147. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  148. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  149. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
  150. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
  151. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  152. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
  153. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
  154. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  155. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
  156. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
  157. package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
  158. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
  159. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  160. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  161. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  162. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
  163. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  164. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  165. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  166. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  167. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  168. package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
  169. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  170. package/build/backend/models/infra-billing-node.schema.js +0 -34
  171. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  172. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  173. package/build/backend/models/infra-provider.schema.js +0 -41
  174. package/build/frontend/api/controllers/infra-billing.js +0 -18
  175. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  176. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  177. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  178. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  179. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  180. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  181. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  182. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  183. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  184. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  185. package/build/frontend/commands/infra-billing/index.js +0 -28
  186. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  187. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  188. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  189. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  190. package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
  191. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  192. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  193. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  194. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  195. package/build/frontend/models/infra-provider.schema.js +0 -41
  196. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  197. /package/build/backend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
  198. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  199. /package/build/frontend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -1,462 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdateInfraBillingNodeCommand {
3
- const url: "/api/infra-billing/nodes";
4
- const TSQ_url: "/api/infra-billing/nodes";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
9
- }, "strip", z.ZodTypeAny, {
10
- uuid: string;
11
- nextBillingAt: Date;
12
- }, {
13
- uuid: string;
14
- nextBillingAt: string;
15
- }>;
16
- type Request = z.infer<typeof RequestSchema>;
17
- const ResponseSchema: z.ZodObject<{
18
- response: z.ZodObject<{
19
- totalBillingNodes: z.ZodNumber;
20
- billingNodes: z.ZodArray<z.ZodObject<{
21
- uuid: z.ZodString;
22
- nodeUuid: z.ZodString;
23
- providerUuid: z.ZodString;
24
- provider: z.ZodObject<Pick<{
25
- uuid: z.ZodString;
26
- name: z.ZodString;
27
- faviconLink: z.ZodNullable<z.ZodString>;
28
- loginUrl: z.ZodNullable<z.ZodString>;
29
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
- }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
32
- uuid: string;
33
- name: string;
34
- faviconLink: string | null;
35
- loginUrl: string | null;
36
- }, {
37
- uuid: string;
38
- name: string;
39
- faviconLink: string | null;
40
- loginUrl: string | null;
41
- }>;
42
- node: z.ZodObject<Pick<{
43
- uuid: z.ZodString;
44
- name: z.ZodString;
45
- address: z.ZodString;
46
- port: z.ZodNullable<z.ZodNumber>;
47
- isConnected: z.ZodBoolean;
48
- isDisabled: z.ZodBoolean;
49
- isConnecting: z.ZodBoolean;
50
- isNodeOnline: z.ZodBoolean;
51
- isXrayRunning: z.ZodBoolean;
52
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
53
- lastStatusMessage: z.ZodNullable<z.ZodString>;
54
- xrayVersion: z.ZodNullable<z.ZodString>;
55
- xrayUptime: z.ZodString;
56
- isTrafficTrackingActive: z.ZodBoolean;
57
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
58
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
59
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
60
- notifyPercent: z.ZodNullable<z.ZodNumber>;
61
- usersOnline: z.ZodNullable<z.ZodNumber>;
62
- viewPosition: z.ZodNumber;
63
- countryCode: z.ZodString;
64
- consumptionMultiplier: z.ZodNumber;
65
- cpuCount: z.ZodNullable<z.ZodNumber>;
66
- cpuModel: z.ZodNullable<z.ZodString>;
67
- totalRam: z.ZodNullable<z.ZodString>;
68
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
69
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
70
- configProfile: z.ZodObject<{
71
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
72
- activeInbounds: z.ZodArray<z.ZodObject<{
73
- uuid: z.ZodString;
74
- profileUuid: z.ZodString;
75
- tag: z.ZodString;
76
- type: z.ZodString;
77
- network: z.ZodNullable<z.ZodString>;
78
- security: z.ZodNullable<z.ZodString>;
79
- port: z.ZodNullable<z.ZodNumber>;
80
- rawInbound: z.ZodNullable<z.ZodUnknown>;
81
- }, "strip", z.ZodTypeAny, {
82
- type: string;
83
- uuid: string;
84
- profileUuid: string;
85
- tag: string;
86
- network: string | null;
87
- security: string | null;
88
- port: number | null;
89
- rawInbound?: unknown;
90
- }, {
91
- type: string;
92
- uuid: string;
93
- profileUuid: string;
94
- tag: string;
95
- network: string | null;
96
- security: string | null;
97
- port: number | null;
98
- rawInbound?: unknown;
99
- }>, "many">;
100
- }, "strip", z.ZodTypeAny, {
101
- activeConfigProfileUuid: string | null;
102
- activeInbounds: {
103
- type: string;
104
- uuid: string;
105
- profileUuid: string;
106
- tag: string;
107
- network: string | null;
108
- security: string | null;
109
- port: number | null;
110
- rawInbound?: unknown;
111
- }[];
112
- }, {
113
- activeConfigProfileUuid: string | null;
114
- activeInbounds: {
115
- type: string;
116
- uuid: string;
117
- profileUuid: string;
118
- tag: string;
119
- network: string | null;
120
- security: string | null;
121
- port: number | null;
122
- rawInbound?: unknown;
123
- }[];
124
- }>;
125
- providerUuid: z.ZodNullable<z.ZodString>;
126
- provider: z.ZodNullable<z.ZodObject<{
127
- uuid: z.ZodString;
128
- name: z.ZodString;
129
- faviconLink: z.ZodNullable<z.ZodString>;
130
- loginUrl: z.ZodNullable<z.ZodString>;
131
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
132
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
133
- }, "strip", z.ZodTypeAny, {
134
- uuid: string;
135
- createdAt: Date;
136
- updatedAt: Date;
137
- name: string;
138
- faviconLink: string | null;
139
- loginUrl: string | null;
140
- }, {
141
- uuid: string;
142
- createdAt: string;
143
- updatedAt: string;
144
- name: string;
145
- faviconLink: string | null;
146
- loginUrl: string | null;
147
- }>>;
148
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
149
- uuid: string;
150
- name: string;
151
- countryCode: string;
152
- }, {
153
- uuid: string;
154
- name: string;
155
- countryCode: string;
156
- }>;
157
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
158
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
159
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
160
- }, "strip", z.ZodTypeAny, {
161
- uuid: string;
162
- createdAt: Date;
163
- updatedAt: Date;
164
- nodeUuid: string;
165
- providerUuid: string;
166
- provider: {
167
- uuid: string;
168
- name: string;
169
- faviconLink: string | null;
170
- loginUrl: string | null;
171
- };
172
- node: {
173
- uuid: string;
174
- name: string;
175
- countryCode: string;
176
- };
177
- nextBillingAt: Date;
178
- }, {
179
- uuid: string;
180
- createdAt: string;
181
- updatedAt: string;
182
- nodeUuid: string;
183
- providerUuid: string;
184
- provider: {
185
- uuid: string;
186
- name: string;
187
- faviconLink: string | null;
188
- loginUrl: string | null;
189
- };
190
- node: {
191
- uuid: string;
192
- name: string;
193
- countryCode: string;
194
- };
195
- nextBillingAt: string;
196
- }>, "many">;
197
- availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
198
- uuid: z.ZodString;
199
- name: z.ZodString;
200
- address: z.ZodString;
201
- port: z.ZodNullable<z.ZodNumber>;
202
- isConnected: z.ZodBoolean;
203
- isDisabled: z.ZodBoolean;
204
- isConnecting: z.ZodBoolean;
205
- isNodeOnline: z.ZodBoolean;
206
- isXrayRunning: z.ZodBoolean;
207
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
208
- lastStatusMessage: z.ZodNullable<z.ZodString>;
209
- xrayVersion: z.ZodNullable<z.ZodString>;
210
- xrayUptime: z.ZodString;
211
- isTrafficTrackingActive: z.ZodBoolean;
212
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
213
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
214
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
215
- notifyPercent: z.ZodNullable<z.ZodNumber>;
216
- usersOnline: z.ZodNullable<z.ZodNumber>;
217
- viewPosition: z.ZodNumber;
218
- countryCode: z.ZodString;
219
- consumptionMultiplier: z.ZodNumber;
220
- cpuCount: z.ZodNullable<z.ZodNumber>;
221
- cpuModel: z.ZodNullable<z.ZodString>;
222
- totalRam: z.ZodNullable<z.ZodString>;
223
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
224
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
225
- configProfile: z.ZodObject<{
226
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
227
- activeInbounds: z.ZodArray<z.ZodObject<{
228
- uuid: z.ZodString;
229
- profileUuid: z.ZodString;
230
- tag: z.ZodString;
231
- type: z.ZodString;
232
- network: z.ZodNullable<z.ZodString>;
233
- security: z.ZodNullable<z.ZodString>;
234
- port: z.ZodNullable<z.ZodNumber>;
235
- rawInbound: z.ZodNullable<z.ZodUnknown>;
236
- }, "strip", z.ZodTypeAny, {
237
- type: string;
238
- uuid: string;
239
- profileUuid: string;
240
- tag: string;
241
- network: string | null;
242
- security: string | null;
243
- port: number | null;
244
- rawInbound?: unknown;
245
- }, {
246
- type: string;
247
- uuid: string;
248
- profileUuid: string;
249
- tag: string;
250
- network: string | null;
251
- security: string | null;
252
- port: number | null;
253
- rawInbound?: unknown;
254
- }>, "many">;
255
- }, "strip", z.ZodTypeAny, {
256
- activeConfigProfileUuid: string | null;
257
- activeInbounds: {
258
- type: string;
259
- uuid: string;
260
- profileUuid: string;
261
- tag: string;
262
- network: string | null;
263
- security: string | null;
264
- port: number | null;
265
- rawInbound?: unknown;
266
- }[];
267
- }, {
268
- activeConfigProfileUuid: string | null;
269
- activeInbounds: {
270
- type: string;
271
- uuid: string;
272
- profileUuid: string;
273
- tag: string;
274
- network: string | null;
275
- security: string | null;
276
- port: number | null;
277
- rawInbound?: unknown;
278
- }[];
279
- }>;
280
- providerUuid: z.ZodNullable<z.ZodString>;
281
- provider: z.ZodNullable<z.ZodObject<{
282
- uuid: z.ZodString;
283
- name: z.ZodString;
284
- faviconLink: z.ZodNullable<z.ZodString>;
285
- loginUrl: z.ZodNullable<z.ZodString>;
286
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
287
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
288
- }, "strip", z.ZodTypeAny, {
289
- uuid: string;
290
- createdAt: Date;
291
- updatedAt: Date;
292
- name: string;
293
- faviconLink: string | null;
294
- loginUrl: string | null;
295
- }, {
296
- uuid: string;
297
- createdAt: string;
298
- updatedAt: string;
299
- name: string;
300
- faviconLink: string | null;
301
- loginUrl: string | null;
302
- }>>;
303
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
304
- uuid: string;
305
- name: string;
306
- countryCode: string;
307
- }, {
308
- uuid: string;
309
- name: string;
310
- countryCode: string;
311
- }>, "many">;
312
- totalAvailableBillingNodes: z.ZodNumber;
313
- stats: z.ZodObject<{
314
- upcomingNodesCount: z.ZodNumber;
315
- currentMonthPayments: z.ZodNumber;
316
- totalSpent: z.ZodNumber;
317
- }, "strip", z.ZodTypeAny, {
318
- upcomingNodesCount: number;
319
- currentMonthPayments: number;
320
- totalSpent: number;
321
- }, {
322
- upcomingNodesCount: number;
323
- currentMonthPayments: number;
324
- totalSpent: number;
325
- }>;
326
- }, "strip", z.ZodTypeAny, {
327
- stats: {
328
- upcomingNodesCount: number;
329
- currentMonthPayments: number;
330
- totalSpent: number;
331
- };
332
- billingNodes: {
333
- uuid: string;
334
- createdAt: Date;
335
- updatedAt: Date;
336
- nodeUuid: string;
337
- providerUuid: string;
338
- provider: {
339
- uuid: string;
340
- name: string;
341
- faviconLink: string | null;
342
- loginUrl: string | null;
343
- };
344
- node: {
345
- uuid: string;
346
- name: string;
347
- countryCode: string;
348
- };
349
- nextBillingAt: Date;
350
- }[];
351
- totalBillingNodes: number;
352
- availableBillingNodes: {
353
- uuid: string;
354
- name: string;
355
- countryCode: string;
356
- }[];
357
- totalAvailableBillingNodes: number;
358
- }, {
359
- stats: {
360
- upcomingNodesCount: number;
361
- currentMonthPayments: number;
362
- totalSpent: number;
363
- };
364
- billingNodes: {
365
- uuid: string;
366
- createdAt: string;
367
- updatedAt: string;
368
- nodeUuid: string;
369
- providerUuid: string;
370
- provider: {
371
- uuid: string;
372
- name: string;
373
- faviconLink: string | null;
374
- loginUrl: string | null;
375
- };
376
- node: {
377
- uuid: string;
378
- name: string;
379
- countryCode: string;
380
- };
381
- nextBillingAt: string;
382
- }[];
383
- totalBillingNodes: number;
384
- availableBillingNodes: {
385
- uuid: string;
386
- name: string;
387
- countryCode: string;
388
- }[];
389
- totalAvailableBillingNodes: number;
390
- }>;
391
- }, "strip", z.ZodTypeAny, {
392
- response: {
393
- stats: {
394
- upcomingNodesCount: number;
395
- currentMonthPayments: number;
396
- totalSpent: number;
397
- };
398
- billingNodes: {
399
- uuid: string;
400
- createdAt: Date;
401
- updatedAt: Date;
402
- nodeUuid: string;
403
- providerUuid: string;
404
- provider: {
405
- uuid: string;
406
- name: string;
407
- faviconLink: string | null;
408
- loginUrl: string | null;
409
- };
410
- node: {
411
- uuid: string;
412
- name: string;
413
- countryCode: string;
414
- };
415
- nextBillingAt: Date;
416
- }[];
417
- totalBillingNodes: number;
418
- availableBillingNodes: {
419
- uuid: string;
420
- name: string;
421
- countryCode: string;
422
- }[];
423
- totalAvailableBillingNodes: number;
424
- };
425
- }, {
426
- response: {
427
- stats: {
428
- upcomingNodesCount: number;
429
- currentMonthPayments: number;
430
- totalSpent: number;
431
- };
432
- billingNodes: {
433
- uuid: string;
434
- createdAt: string;
435
- updatedAt: string;
436
- nodeUuid: string;
437
- providerUuid: string;
438
- provider: {
439
- uuid: string;
440
- name: string;
441
- faviconLink: string | null;
442
- loginUrl: string | null;
443
- };
444
- node: {
445
- uuid: string;
446
- name: string;
447
- countryCode: string;
448
- };
449
- nextBillingAt: string;
450
- }[];
451
- totalBillingNodes: number;
452
- availableBillingNodes: {
453
- uuid: string;
454
- name: string;
455
- countryCode: string;
456
- }[];
457
- totalAvailableBillingNodes: number;
458
- };
459
- }>;
460
- type Response = z.infer<typeof ResponseSchema>;
461
- }
462
- //# sourceMappingURL=update-billing-node.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAQxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateInfraBillingNodeCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- const api_1 = require("../../api");
7
- const constants_1 = require("../../constants");
8
- var UpdateInfraBillingNodeCommand;
9
- (function (UpdateInfraBillingNodeCommand) {
10
- UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE;
11
- UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
12
- UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE, 'patch', 'Update infra billing node');
13
- UpdateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
15
- nextBillingAt: zod_1.z
16
- .string({
17
- invalid_type_error: 'Invalid date format',
18
- })
19
- .datetime({ message: 'Invalid date format', offset: true, local: true })
20
- .transform((str) => new Date(str)),
21
- });
22
- UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
23
- response: zod_1.z.object({
24
- totalBillingNodes: zod_1.z.number(),
25
- billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
26
- availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
27
- totalAvailableBillingNodes: zod_1.z.number(),
28
- stats: zod_1.z.object({
29
- upcomingNodesCount: zod_1.z.number(),
30
- currentMonthPayments: zod_1.z.number(),
31
- totalSpent: zod_1.z.number(),
32
- }),
33
- }),
34
- });
35
- })(UpdateInfraBillingNodeCommand || (exports.UpdateInfraBillingNodeCommand = UpdateInfraBillingNodeCommand = {}));
@@ -1,126 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdateInfraProviderCommand {
3
- const url: "/api/infra-billing/providers";
4
- const TSQ_url: "/api/infra-billing/providers";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- name: z.ZodOptional<z.ZodString>;
9
- faviconLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- loginUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- }, "strip", z.ZodTypeAny, {
12
- uuid: string;
13
- name?: string | undefined;
14
- faviconLink?: string | null | undefined;
15
- loginUrl?: string | null | undefined;
16
- }, {
17
- uuid: string;
18
- name?: string | undefined;
19
- faviconLink?: string | null | undefined;
20
- loginUrl?: string | null | undefined;
21
- }>;
22
- type Request = z.infer<typeof RequestSchema>;
23
- const ResponseSchema: z.ZodObject<{
24
- response: z.ZodObject<{
25
- uuid: z.ZodString;
26
- name: z.ZodString;
27
- faviconLink: z.ZodNullable<z.ZodString>;
28
- loginUrl: z.ZodNullable<z.ZodString>;
29
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
- billingHistory: z.ZodObject<{
32
- totalAmount: z.ZodNumber;
33
- totalBills: z.ZodNumber;
34
- }, "strip", z.ZodTypeAny, {
35
- totalAmount: number;
36
- totalBills: number;
37
- }, {
38
- totalAmount: number;
39
- totalBills: number;
40
- }>;
41
- billingNodes: z.ZodArray<z.ZodObject<{
42
- nodeUuid: z.ZodString;
43
- name: z.ZodString;
44
- countryCode: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- name: string;
47
- countryCode: string;
48
- nodeUuid: string;
49
- }, {
50
- name: string;
51
- countryCode: string;
52
- nodeUuid: string;
53
- }>, "many">;
54
- }, "strip", z.ZodTypeAny, {
55
- uuid: string;
56
- createdAt: Date;
57
- updatedAt: Date;
58
- name: string;
59
- faviconLink: string | null;
60
- loginUrl: string | null;
61
- billingHistory: {
62
- totalAmount: number;
63
- totalBills: number;
64
- };
65
- billingNodes: {
66
- name: string;
67
- countryCode: string;
68
- nodeUuid: string;
69
- }[];
70
- }, {
71
- uuid: string;
72
- createdAt: string;
73
- updatedAt: string;
74
- name: string;
75
- faviconLink: string | null;
76
- loginUrl: string | null;
77
- billingHistory: {
78
- totalAmount: number;
79
- totalBills: number;
80
- };
81
- billingNodes: {
82
- name: string;
83
- countryCode: string;
84
- nodeUuid: string;
85
- }[];
86
- }>;
87
- }, "strip", z.ZodTypeAny, {
88
- response: {
89
- uuid: string;
90
- createdAt: Date;
91
- updatedAt: Date;
92
- name: string;
93
- faviconLink: string | null;
94
- loginUrl: string | null;
95
- billingHistory: {
96
- totalAmount: number;
97
- totalBills: number;
98
- };
99
- billingNodes: {
100
- name: string;
101
- countryCode: string;
102
- nodeUuid: string;
103
- }[];
104
- };
105
- }, {
106
- response: {
107
- uuid: string;
108
- createdAt: string;
109
- updatedAt: string;
110
- name: string;
111
- faviconLink: string | null;
112
- loginUrl: string | null;
113
- billingHistory: {
114
- totalAmount: number;
115
- totalBills: number;
116
- };
117
- billingNodes: {
118
- name: string;
119
- countryCode: string;
120
- nodeUuid: string;
121
- }[];
122
- };
123
- }>;
124
- type Response = z.infer<typeof ResponseSchema>;
125
- }
126
- //# sourceMappingURL=update-infra-provider.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateInfraProviderCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
- var UpdateInfraProviderCommand;
9
- (function (UpdateInfraProviderCommand) {
10
- UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
11
- UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
12
- UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
13
- UpdateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
15
- name: zod_1.z
16
- .string()
17
- .min(2, 'Name must be at least 2 characters')
18
- .max(30, 'Name must be less than 30 characters')
19
- .optional(),
20
- faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
21
- loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
22
- });
23
- UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
24
- response: models_1.InfraProviderSchema,
25
- });
26
- })(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));