@remnawave/backend-contract 2.0.0-alpha.28 → 2.0.0-alpha.4

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