@remnawave/backend-contract 2.0.0-alpha.2 → 2.0.0-alpha.20

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 (146) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +18 -0
  7. package/build/backend/api/controllers/users.d.ts +1 -0
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +1 -0
  10. package/build/backend/api/routes.d.ts +15 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +15 -0
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/create.command.d.ts +6 -6
  15. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/create.command.js +4 -2
  17. package/build/backend/commands/index.d.ts +1 -0
  18. package/build/backend/commands/index.d.ts.map +1 -1
  19. package/build/backend/commands/index.js +1 -0
  20. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  21. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  22. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  23. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +413 -0
  24. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  25. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  26. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  27. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  28. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  29. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  30. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  31. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  32. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +407 -0
  33. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  34. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  35. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  36. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  37. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  38. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  39. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  40. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  41. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +399 -0
  42. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
  43. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +26 -0
  44. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  45. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  46. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  47. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  48. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  49. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  50. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  51. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  52. package/build/backend/commands/infra-billing/index.js +28 -0
  53. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -0
  54. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  55. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  56. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  57. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  58. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  59. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  60. package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
  61. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  62. package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
  63. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  64. package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
  65. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  66. package/build/backend/commands/nodes/create.command.d.ts +62 -0
  67. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  68. package/build/backend/commands/nodes/create.command.js +1 -0
  69. package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
  70. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  71. package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
  72. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  73. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  74. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  75. package/build/backend/commands/nodes/update.command.d.ts +85 -0
  76. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  77. package/build/backend/commands/nodes/update.command.js +1 -0
  78. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  79. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  80. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  81. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  82. package/build/backend/commands/users/index.d.ts +1 -0
  83. package/build/backend/commands/users/index.d.ts.map +1 -1
  84. package/build/backend/commands/users/index.js +1 -0
  85. package/build/backend/constants/errors/errors.d.ts +75 -0
  86. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  87. package/build/backend/constants/errors/errors.js +75 -0
  88. package/build/backend/constants/events/events.d.ts +11 -0
  89. package/build/backend/constants/events/events.d.ts.map +1 -1
  90. package/build/backend/constants/events/events.js +10 -0
  91. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  92. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  93. package/build/backend/constants/templates/template-keys.js +1 -0
  94. package/build/backend/models/index.d.ts +4 -0
  95. package/build/backend/models/index.d.ts.map +1 -1
  96. package/build/backend/models/index.js +4 -0
  97. package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
  98. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  99. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  100. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  101. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  102. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  103. package/build/backend/models/infra-billing-node.schema.d.ts +153 -0
  104. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  105. package/build/backend/models/infra-billing-node.schema.js +34 -0
  106. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  107. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  108. package/build/backend/models/infra-provider.schema.js +41 -0
  109. package/build/backend/models/nodes.schema.d.ts +41 -0
  110. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  111. package/build/backend/models/nodes.schema.js +3 -0
  112. package/build/frontend/api/controllers/index.js +1 -0
  113. package/build/frontend/api/controllers/infra-billing.js +18 -0
  114. package/build/frontend/api/controllers/users.js +1 -0
  115. package/build/frontend/api/routes.js +15 -0
  116. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  117. package/build/frontend/commands/hosts/create.command.js +4 -2
  118. package/build/frontend/commands/index.js +1 -0
  119. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  120. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  121. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  122. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  123. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  124. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  125. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  126. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +26 -0
  127. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  128. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  129. package/build/frontend/commands/infra-billing/index.js +28 -0
  130. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  131. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  132. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  133. package/build/frontend/commands/nodes/create.command.js +1 -0
  134. package/build/frontend/commands/nodes/update.command.js +1 -0
  135. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  136. package/build/frontend/commands/users/index.js +1 -0
  137. package/build/frontend/constants/errors/errors.js +75 -0
  138. package/build/frontend/constants/events/events.js +10 -0
  139. package/build/frontend/constants/templates/template-keys.js +1 -0
  140. package/build/frontend/models/index.js +4 -0
  141. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  142. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  143. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  144. package/build/frontend/models/infra-provider.schema.js +41 -0
  145. package/build/frontend/models/nodes.schema.js +3 -0
  146. package/package.json +1 -1
@@ -0,0 +1,119 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteInfraBillingHistoryRecordCommand {
3
+ const url: string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ records: z.ZodArray<z.ZodObject<{
17
+ uuid: z.ZodString;
18
+ providerUuid: z.ZodString;
19
+ amount: z.ZodNumber;
20
+ billedAt: z.ZodEffects<z.ZodString, Date, string>;
21
+ provider: z.ZodObject<Omit<{
22
+ uuid: z.ZodString;
23
+ name: z.ZodString;
24
+ faviconLink: z.ZodNullable<z.ZodString>;
25
+ loginUrl: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ }, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
29
+ uuid: string;
30
+ name: string;
31
+ faviconLink: string | null;
32
+ }, {
33
+ uuid: string;
34
+ name: string;
35
+ faviconLink: string | null;
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ uuid: string;
39
+ providerUuid: string;
40
+ provider: {
41
+ uuid: string;
42
+ name: string;
43
+ faviconLink: string | null;
44
+ };
45
+ amount: number;
46
+ billedAt: Date;
47
+ }, {
48
+ uuid: string;
49
+ providerUuid: string;
50
+ provider: {
51
+ uuid: string;
52
+ name: string;
53
+ faviconLink: string | null;
54
+ };
55
+ amount: number;
56
+ billedAt: string;
57
+ }>, "many">;
58
+ total: z.ZodNumber;
59
+ }, "strip", z.ZodTypeAny, {
60
+ total: number;
61
+ records: {
62
+ uuid: string;
63
+ providerUuid: string;
64
+ provider: {
65
+ uuid: string;
66
+ name: string;
67
+ faviconLink: string | null;
68
+ };
69
+ amount: number;
70
+ billedAt: Date;
71
+ }[];
72
+ }, {
73
+ total: number;
74
+ records: {
75
+ uuid: string;
76
+ providerUuid: string;
77
+ provider: {
78
+ uuid: string;
79
+ name: string;
80
+ faviconLink: string | null;
81
+ };
82
+ amount: number;
83
+ billedAt: string;
84
+ }[];
85
+ }>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ response: {
88
+ total: number;
89
+ records: {
90
+ uuid: string;
91
+ providerUuid: string;
92
+ provider: {
93
+ uuid: string;
94
+ name: string;
95
+ faviconLink: string | null;
96
+ };
97
+ amount: number;
98
+ billedAt: Date;
99
+ }[];
100
+ };
101
+ }, {
102
+ response: {
103
+ total: number;
104
+ records: {
105
+ uuid: string;
106
+ providerUuid: string;
107
+ provider: {
108
+ uuid: string;
109
+ name: string;
110
+ faviconLink: string | null;
111
+ };
112
+ amount: number;
113
+ billedAt: string;
114
+ }[];
115
+ };
116
+ }>;
117
+ type Response = z.infer<typeof ResponseSchema>;
118
+ }
119
+ //# sourceMappingURL=delete-bill-record-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-bill-record-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-bill-record-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,QAAyD,CAAC;IACnE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteInfraBillingHistoryRecordCommand = 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 DeleteInfraBillingHistoryRecordCommand;
9
+ (function (DeleteInfraBillingHistoryRecordCommand) {
10
+ DeleteInfraBillingHistoryRecordCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_HISTORY(':uuid');
11
+ DeleteInfraBillingHistoryRecordCommand.TSQ_url = DeleteInfraBillingHistoryRecordCommand.url;
12
+ DeleteInfraBillingHistoryRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(':uuid'), 'delete', 'Delete infra billing history');
13
+ DeleteInfraBillingHistoryRecordCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ DeleteInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
17
+ response: zod_1.z.object({
18
+ records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
19
+ total: zod_1.z.number(),
20
+ }),
21
+ });
22
+ })(DeleteInfraBillingHistoryRecordCommand || (exports.DeleteInfraBillingHistoryRecordCommand = DeleteInfraBillingHistoryRecordCommand = {}));
@@ -0,0 +1,407 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteInfraBillingNodeByUuidCommand {
3
+ const url: string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ totalBillingNodes: z.ZodNumber;
17
+ billingNodes: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ nodeUuid: z.ZodString;
20
+ providerUuid: z.ZodString;
21
+ provider: z.ZodObject<Pick<{
22
+ uuid: z.ZodString;
23
+ name: z.ZodString;
24
+ faviconLink: z.ZodNullable<z.ZodString>;
25
+ loginUrl: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
29
+ uuid: string;
30
+ name: string;
31
+ faviconLink: string | null;
32
+ loginUrl: string | null;
33
+ }, {
34
+ uuid: string;
35
+ name: string;
36
+ faviconLink: string | null;
37
+ loginUrl: string | null;
38
+ }>;
39
+ node: z.ZodObject<Pick<{
40
+ uuid: z.ZodString;
41
+ name: z.ZodString;
42
+ address: z.ZodString;
43
+ port: z.ZodNullable<z.ZodNumber>;
44
+ isConnected: z.ZodBoolean;
45
+ isDisabled: z.ZodBoolean;
46
+ isConnecting: z.ZodBoolean;
47
+ isNodeOnline: z.ZodBoolean;
48
+ isXrayRunning: z.ZodBoolean;
49
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
51
+ xrayVersion: z.ZodNullable<z.ZodString>;
52
+ xrayUptime: z.ZodString;
53
+ isTrafficTrackingActive: z.ZodBoolean;
54
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
55
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
56
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
57
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
58
+ usersOnline: z.ZodNullable<z.ZodNumber>;
59
+ viewPosition: z.ZodNumber;
60
+ countryCode: z.ZodString;
61
+ consumptionMultiplier: z.ZodNumber;
62
+ cpuCount: z.ZodNullable<z.ZodNumber>;
63
+ cpuModel: z.ZodNullable<z.ZodString>;
64
+ totalRam: z.ZodNullable<z.ZodString>;
65
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
66
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
67
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
68
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
69
+ uuid: z.ZodString;
70
+ profileUuid: z.ZodString;
71
+ tag: z.ZodString;
72
+ type: z.ZodString;
73
+ network: z.ZodNullable<z.ZodString>;
74
+ security: z.ZodNullable<z.ZodString>;
75
+ port: z.ZodNullable<z.ZodNumber>;
76
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: string;
79
+ uuid: string;
80
+ profileUuid: string;
81
+ tag: string;
82
+ network: string | null;
83
+ security: string | null;
84
+ port: number | null;
85
+ rawInbound?: unknown;
86
+ }, {
87
+ type: string;
88
+ uuid: string;
89
+ profileUuid: string;
90
+ tag: string;
91
+ network: string | null;
92
+ security: string | null;
93
+ port: number | null;
94
+ rawInbound?: unknown;
95
+ }>, "many">>;
96
+ providerUuid: z.ZodNullable<z.ZodString>;
97
+ provider: z.ZodNullable<z.ZodObject<{
98
+ uuid: z.ZodString;
99
+ name: z.ZodString;
100
+ faviconLink: z.ZodNullable<z.ZodString>;
101
+ loginUrl: z.ZodNullable<z.ZodString>;
102
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
103
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ uuid: string;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ name: string;
109
+ faviconLink: string | null;
110
+ loginUrl: string | null;
111
+ }, {
112
+ uuid: string;
113
+ createdAt: string;
114
+ updatedAt: string;
115
+ name: string;
116
+ faviconLink: string | null;
117
+ loginUrl: string | null;
118
+ }>>;
119
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
120
+ uuid: string;
121
+ name: string;
122
+ countryCode: string;
123
+ }, {
124
+ uuid: string;
125
+ name: string;
126
+ countryCode: string;
127
+ }>;
128
+ nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
129
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
130
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ uuid: string;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ nodeUuid: string;
136
+ providerUuid: string;
137
+ provider: {
138
+ uuid: string;
139
+ name: string;
140
+ faviconLink: string | null;
141
+ loginUrl: string | null;
142
+ };
143
+ node: {
144
+ uuid: string;
145
+ name: string;
146
+ countryCode: string;
147
+ };
148
+ nextBillingAt: Date;
149
+ }, {
150
+ uuid: string;
151
+ createdAt: string;
152
+ updatedAt: string;
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: string;
167
+ }>, "many">;
168
+ availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
169
+ uuid: z.ZodString;
170
+ name: z.ZodString;
171
+ address: z.ZodString;
172
+ port: z.ZodNullable<z.ZodNumber>;
173
+ isConnected: z.ZodBoolean;
174
+ isDisabled: z.ZodBoolean;
175
+ isConnecting: z.ZodBoolean;
176
+ isNodeOnline: z.ZodBoolean;
177
+ isXrayRunning: z.ZodBoolean;
178
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
179
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
180
+ xrayVersion: z.ZodNullable<z.ZodString>;
181
+ xrayUptime: z.ZodString;
182
+ isTrafficTrackingActive: z.ZodBoolean;
183
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
184
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
185
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
186
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
187
+ usersOnline: z.ZodNullable<z.ZodNumber>;
188
+ viewPosition: z.ZodNumber;
189
+ countryCode: z.ZodString;
190
+ consumptionMultiplier: z.ZodNumber;
191
+ cpuCount: z.ZodNullable<z.ZodNumber>;
192
+ cpuModel: z.ZodNullable<z.ZodString>;
193
+ totalRam: z.ZodNullable<z.ZodString>;
194
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
195
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
196
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
197
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
198
+ uuid: z.ZodString;
199
+ profileUuid: z.ZodString;
200
+ tag: z.ZodString;
201
+ type: z.ZodString;
202
+ network: z.ZodNullable<z.ZodString>;
203
+ security: z.ZodNullable<z.ZodString>;
204
+ port: z.ZodNullable<z.ZodNumber>;
205
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: string;
208
+ uuid: string;
209
+ profileUuid: string;
210
+ tag: string;
211
+ network: string | null;
212
+ security: string | null;
213
+ port: number | null;
214
+ rawInbound?: unknown;
215
+ }, {
216
+ type: string;
217
+ uuid: string;
218
+ profileUuid: string;
219
+ tag: string;
220
+ network: string | null;
221
+ security: string | null;
222
+ port: number | null;
223
+ rawInbound?: unknown;
224
+ }>, "many">>;
225
+ providerUuid: z.ZodNullable<z.ZodString>;
226
+ provider: z.ZodNullable<z.ZodObject<{
227
+ uuid: z.ZodString;
228
+ name: z.ZodString;
229
+ faviconLink: z.ZodNullable<z.ZodString>;
230
+ loginUrl: z.ZodNullable<z.ZodString>;
231
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
232
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ uuid: string;
235
+ createdAt: Date;
236
+ updatedAt: Date;
237
+ name: string;
238
+ faviconLink: string | null;
239
+ loginUrl: string | null;
240
+ }, {
241
+ uuid: string;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ name: string;
245
+ faviconLink: string | null;
246
+ loginUrl: string | null;
247
+ }>>;
248
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
249
+ uuid: string;
250
+ name: string;
251
+ countryCode: string;
252
+ }, {
253
+ uuid: string;
254
+ name: string;
255
+ countryCode: string;
256
+ }>, "many">;
257
+ totalAvailableBillingNodes: z.ZodNumber;
258
+ stats: z.ZodObject<{
259
+ upcomingNodesCount: z.ZodNumber;
260
+ currentMonthPayments: z.ZodNumber;
261
+ totalSpent: z.ZodNumber;
262
+ }, "strip", z.ZodTypeAny, {
263
+ upcomingNodesCount: number;
264
+ currentMonthPayments: number;
265
+ totalSpent: number;
266
+ }, {
267
+ upcomingNodesCount: number;
268
+ currentMonthPayments: number;
269
+ totalSpent: number;
270
+ }>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ stats: {
273
+ upcomingNodesCount: number;
274
+ currentMonthPayments: number;
275
+ totalSpent: number;
276
+ };
277
+ billingNodes: {
278
+ uuid: string;
279
+ createdAt: Date;
280
+ updatedAt: Date;
281
+ nodeUuid: string;
282
+ providerUuid: string;
283
+ provider: {
284
+ uuid: string;
285
+ name: string;
286
+ faviconLink: string | null;
287
+ loginUrl: string | null;
288
+ };
289
+ node: {
290
+ uuid: string;
291
+ name: string;
292
+ countryCode: string;
293
+ };
294
+ nextBillingAt: Date;
295
+ }[];
296
+ totalBillingNodes: number;
297
+ availableBillingNodes: {
298
+ uuid: string;
299
+ name: string;
300
+ countryCode: string;
301
+ }[];
302
+ totalAvailableBillingNodes: number;
303
+ }, {
304
+ stats: {
305
+ upcomingNodesCount: number;
306
+ currentMonthPayments: number;
307
+ totalSpent: number;
308
+ };
309
+ billingNodes: {
310
+ uuid: string;
311
+ createdAt: string;
312
+ updatedAt: string;
313
+ nodeUuid: string;
314
+ providerUuid: string;
315
+ provider: {
316
+ uuid: string;
317
+ name: string;
318
+ faviconLink: string | null;
319
+ loginUrl: string | null;
320
+ };
321
+ node: {
322
+ uuid: string;
323
+ name: string;
324
+ countryCode: string;
325
+ };
326
+ nextBillingAt: string;
327
+ }[];
328
+ totalBillingNodes: number;
329
+ availableBillingNodes: {
330
+ uuid: string;
331
+ name: string;
332
+ countryCode: string;
333
+ }[];
334
+ totalAvailableBillingNodes: number;
335
+ }>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ response: {
338
+ stats: {
339
+ upcomingNodesCount: number;
340
+ currentMonthPayments: number;
341
+ totalSpent: number;
342
+ };
343
+ billingNodes: {
344
+ uuid: string;
345
+ createdAt: Date;
346
+ updatedAt: Date;
347
+ nodeUuid: string;
348
+ providerUuid: string;
349
+ provider: {
350
+ uuid: string;
351
+ name: string;
352
+ faviconLink: string | null;
353
+ loginUrl: string | null;
354
+ };
355
+ node: {
356
+ uuid: string;
357
+ name: string;
358
+ countryCode: string;
359
+ };
360
+ nextBillingAt: Date;
361
+ }[];
362
+ totalBillingNodes: number;
363
+ availableBillingNodes: {
364
+ uuid: string;
365
+ name: string;
366
+ countryCode: string;
367
+ }[];
368
+ totalAvailableBillingNodes: number;
369
+ };
370
+ }, {
371
+ response: {
372
+ stats: {
373
+ upcomingNodesCount: number;
374
+ currentMonthPayments: number;
375
+ totalSpent: number;
376
+ };
377
+ billingNodes: {
378
+ uuid: string;
379
+ createdAt: string;
380
+ updatedAt: string;
381
+ nodeUuid: string;
382
+ providerUuid: string;
383
+ provider: {
384
+ uuid: string;
385
+ name: string;
386
+ faviconLink: string | null;
387
+ loginUrl: string | null;
388
+ };
389
+ node: {
390
+ uuid: string;
391
+ name: string;
392
+ countryCode: string;
393
+ };
394
+ nextBillingAt: string;
395
+ }[];
396
+ totalBillingNodes: number;
397
+ availableBillingNodes: {
398
+ uuid: string;
399
+ name: string;
400
+ countryCode: string;
401
+ }[];
402
+ totalAvailableBillingNodes: number;
403
+ };
404
+ }>;
405
+ type Response = z.infer<typeof ResponseSchema>;
406
+ }
407
+ //# sourceMappingURL=delete-billing-node-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-billing-node-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-billing-node-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,QAAsD,CAAC;IAChE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteInfraBillingNodeByUuidCommand = 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 DeleteInfraBillingNodeByUuidCommand;
9
+ (function (DeleteInfraBillingNodeByUuidCommand) {
10
+ DeleteInfraBillingNodeByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_NODE(':uuid');
11
+ DeleteInfraBillingNodeByUuidCommand.TSQ_url = DeleteInfraBillingNodeByUuidCommand.url;
12
+ DeleteInfraBillingNodeByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(':uuid'), 'delete', 'Delete infra billing node');
13
+ DeleteInfraBillingNodeByUuidCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ DeleteInfraBillingNodeByUuidCommand.ResponseSchema = zod_1.z.object({
17
+ response: zod_1.z.object({
18
+ totalBillingNodes: zod_1.z.number(),
19
+ billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
20
+ availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
21
+ totalAvailableBillingNodes: zod_1.z.number(),
22
+ stats: zod_1.z.object({
23
+ upcomingNodesCount: zod_1.z.number(),
24
+ currentMonthPayments: zod_1.z.number(),
25
+ totalSpent: zod_1.z.number(),
26
+ }),
27
+ }),
28
+ });
29
+ })(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteInfraProviderByUuidCommand {
3
+ const url: string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ isDeleted: z.ZodBoolean;
17
+ }, "strip", z.ZodTypeAny, {
18
+ isDeleted: boolean;
19
+ }, {
20
+ isDeleted: boolean;
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ response: {
24
+ isDeleted: boolean;
25
+ };
26
+ }, {
27
+ response: {
28
+ isDeleted: boolean;
29
+ };
30
+ }>;
31
+ type Response = z.infer<typeof ResponseSchema>;
32
+ }
33
+ //# sourceMappingURL=delete-infra-provider-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,QAAkD,CAAC;IAC5D,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,20 @@
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 = {}));