@remnawave/backend-contract 2.0.0-alpha.12 → 2.0.0-alpha.15
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.
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +15 -15
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +364 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +358 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +350 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/backend/commands/infra-billing/index.d.ts +4 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +4 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +361 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +36 -36
- package/build/backend/commands/nodes/create.command.d.ts +38 -38
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -36
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -36
- package/build/backend/commands/nodes/update.command.d.ts +38 -38
- package/build/backend/constants/errors/errors.d.ts +20 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +20 -0
- package/build/backend/models/index.d.ts +2 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +2 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +4 -4
- package/build/backend/models/infra-billing-node.schema.d.ts +145 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/nodes.schema.d.ts +18 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/frontend/commands/infra-billing/index.js +4 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/frontend/constants/errors/errors.js +20 -0
- package/build/frontend/models/index.js +2 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/package.json +1 -1
@@ -699,5 +699,25 @@ export declare const ERRORS: {
|
|
699
699
|
readonly message: "Delete infra billing history record by UUID error";
|
700
700
|
readonly httpCode: 500;
|
701
701
|
};
|
702
|
+
readonly GET_BILLING_NODES_ERROR: {
|
703
|
+
readonly code: "A135";
|
704
|
+
readonly message: "Get billing nodes error";
|
705
|
+
readonly httpCode: 500;
|
706
|
+
};
|
707
|
+
readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
|
708
|
+
readonly code: "A136";
|
709
|
+
readonly message: "Update infra billing node error";
|
710
|
+
readonly httpCode: 500;
|
711
|
+
};
|
712
|
+
readonly CREATE_INFRA_BILLING_NODE_ERROR: {
|
713
|
+
readonly code: "A137";
|
714
|
+
readonly message: "Create infra billing node error";
|
715
|
+
readonly httpCode: 500;
|
716
|
+
};
|
717
|
+
readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
718
|
+
readonly code: "A138";
|
719
|
+
readonly message: "Delete infra billing node by UUID error";
|
720
|
+
readonly httpCode: 500;
|
721
|
+
};
|
702
722
|
};
|
703
723
|
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqY3B,CAAC"}
|
@@ -670,4 +670,24 @@ exports.ERRORS = {
|
|
670
670
|
message: 'Delete infra billing history record by UUID error',
|
671
671
|
httpCode: 500,
|
672
672
|
},
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
674
|
+
code: 'A135',
|
675
|
+
message: 'Get billing nodes error',
|
676
|
+
httpCode: 500,
|
677
|
+
},
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
679
|
+
code: 'A136',
|
680
|
+
message: 'Update infra billing node error',
|
681
|
+
httpCode: 500,
|
682
|
+
},
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
684
|
+
code: 'A137',
|
685
|
+
message: 'Create infra billing node error',
|
686
|
+
httpCode: 500,
|
687
|
+
},
|
688
|
+
DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
689
|
+
code: 'A138',
|
690
|
+
message: 'Delete infra billing node by UUID error',
|
691
|
+
httpCode: 500,
|
692
|
+
},
|
673
693
|
};
|
@@ -8,7 +8,9 @@ export * from './extented-users.schema';
|
|
8
8
|
export * from './happ.schema';
|
9
9
|
export * from './hosts.schema';
|
10
10
|
export * from './hwid-user-device.schema';
|
11
|
+
export * from './infra-billing-available-node.schema';
|
11
12
|
export * from './infra-billing-history-record.schema';
|
13
|
+
export * from './infra-billing-node.schema';
|
12
14
|
export * from './infra-provider.schema';
|
13
15
|
export * from './internal-squad.schema';
|
14
16
|
export * from './last-connected-node.schema';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
@@ -24,7 +24,9 @@ __exportStar(require("./extented-users.schema"), exports);
|
|
24
24
|
__exportStar(require("./happ.schema"), exports);
|
25
25
|
__exportStar(require("./hosts.schema"), exports);
|
26
26
|
__exportStar(require("./hwid-user-device.schema"), exports);
|
27
|
+
__exportStar(require("./infra-billing-available-node.schema"), exports);
|
27
28
|
__exportStar(require("./infra-billing-history-record.schema"), exports);
|
29
|
+
__exportStar(require("./infra-billing-node.schema"), exports);
|
28
30
|
__exportStar(require("./infra-provider.schema"), exports);
|
29
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
30
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
@@ -0,0 +1,90 @@
|
|
1
|
+
export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pick<{
|
2
|
+
uuid: import("zod").ZodString;
|
3
|
+
name: import("zod").ZodString;
|
4
|
+
address: import("zod").ZodString;
|
5
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
6
|
+
isConnected: import("zod").ZodBoolean;
|
7
|
+
isDisabled: import("zod").ZodBoolean;
|
8
|
+
isConnecting: import("zod").ZodBoolean;
|
9
|
+
isNodeOnline: import("zod").ZodBoolean;
|
10
|
+
isXrayRunning: import("zod").ZodBoolean;
|
11
|
+
lastStatusChange: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, Date, string>>;
|
12
|
+
lastStatusMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
13
|
+
xrayVersion: import("zod").ZodNullable<import("zod").ZodString>;
|
14
|
+
xrayUptime: import("zod").ZodString;
|
15
|
+
isTrafficTrackingActive: import("zod").ZodBoolean;
|
16
|
+
trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
17
|
+
trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
18
|
+
trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
19
|
+
notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20
|
+
usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
|
21
|
+
viewPosition: import("zod").ZodNumber;
|
22
|
+
countryCode: import("zod").ZodString;
|
23
|
+
consumptionMultiplier: import("zod").ZodNumber;
|
24
|
+
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
25
|
+
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
26
|
+
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
27
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
28
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
29
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
30
|
+
activeInbounds: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
|
31
|
+
uuid: import("zod").ZodString;
|
32
|
+
profileUuid: import("zod").ZodString;
|
33
|
+
tag: import("zod").ZodString;
|
34
|
+
type: import("zod").ZodString;
|
35
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
36
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
37
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
38
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
40
|
+
type: string;
|
41
|
+
uuid: string;
|
42
|
+
profileUuid: string;
|
43
|
+
tag: string;
|
44
|
+
network: string | null;
|
45
|
+
security: string | null;
|
46
|
+
port: number | null;
|
47
|
+
rawInbound?: unknown;
|
48
|
+
}, {
|
49
|
+
type: string;
|
50
|
+
uuid: string;
|
51
|
+
profileUuid: string;
|
52
|
+
tag: string;
|
53
|
+
network: string | null;
|
54
|
+
security: string | null;
|
55
|
+
port: number | null;
|
56
|
+
rawInbound?: unknown;
|
57
|
+
}>, "many">>;
|
58
|
+
providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
59
|
+
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
60
|
+
uuid: import("zod").ZodString;
|
61
|
+
name: import("zod").ZodString;
|
62
|
+
faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
|
63
|
+
loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
64
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
65
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
66
|
+
}, "strip", import("zod").ZodTypeAny, {
|
67
|
+
uuid: string;
|
68
|
+
createdAt: Date;
|
69
|
+
updatedAt: Date;
|
70
|
+
name: string;
|
71
|
+
faviconLink: string | null;
|
72
|
+
loginUrl: string | null;
|
73
|
+
}, {
|
74
|
+
uuid: string;
|
75
|
+
createdAt: string;
|
76
|
+
updatedAt: string;
|
77
|
+
name: string;
|
78
|
+
faviconLink: string | null;
|
79
|
+
loginUrl: string | null;
|
80
|
+
}>>;
|
81
|
+
}, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
|
82
|
+
uuid: string;
|
83
|
+
name: string;
|
84
|
+
countryCode: string;
|
85
|
+
}, {
|
86
|
+
uuid: string;
|
87
|
+
name: string;
|
88
|
+
countryCode: string;
|
89
|
+
}>;
|
90
|
+
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingAvailableNodeSchema = void 0;
|
4
|
+
const nodes_schema_1 = require("./nodes.schema");
|
5
|
+
exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
|
6
|
+
uuid: true,
|
7
|
+
name: true,
|
8
|
+
countryCode: true,
|
9
|
+
});
|
@@ -23,22 +23,22 @@ export declare const InfraBillingHistoryRecordSchema: z.ZodObject<{
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
24
24
|
uuid: string;
|
25
25
|
providerUuid: string;
|
26
|
-
amount: number;
|
27
|
-
billedAt: Date;
|
28
26
|
provider: {
|
29
27
|
uuid: string;
|
30
28
|
name: string;
|
31
29
|
faviconLink: string | null;
|
32
30
|
};
|
31
|
+
amount: number;
|
32
|
+
billedAt: Date;
|
33
33
|
}, {
|
34
34
|
uuid: string;
|
35
35
|
providerUuid: string;
|
36
|
-
amount: number;
|
37
|
-
billedAt: string;
|
38
36
|
provider: {
|
39
37
|
uuid: string;
|
40
38
|
name: string;
|
41
39
|
faviconLink: string | null;
|
42
40
|
};
|
41
|
+
amount: number;
|
42
|
+
billedAt: string;
|
43
43
|
}>;
|
44
44
|
//# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
|
@@ -0,0 +1,145 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InfraBillingNodeSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
nodeUuid: z.ZodString;
|
5
|
+
providerUuid: z.ZodString;
|
6
|
+
provider: z.ZodObject<Omit<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
name: z.ZodString;
|
9
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
10
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
12
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
13
|
+
}, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
|
14
|
+
uuid: string;
|
15
|
+
name: string;
|
16
|
+
}, {
|
17
|
+
uuid: string;
|
18
|
+
name: string;
|
19
|
+
}>;
|
20
|
+
node: z.ZodObject<Pick<{
|
21
|
+
uuid: z.ZodString;
|
22
|
+
name: z.ZodString;
|
23
|
+
address: z.ZodString;
|
24
|
+
port: z.ZodNullable<z.ZodNumber>;
|
25
|
+
isConnected: z.ZodBoolean;
|
26
|
+
isDisabled: z.ZodBoolean;
|
27
|
+
isConnecting: z.ZodBoolean;
|
28
|
+
isNodeOnline: z.ZodBoolean;
|
29
|
+
isXrayRunning: z.ZodBoolean;
|
30
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
31
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
32
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
33
|
+
xrayUptime: z.ZodString;
|
34
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
35
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
36
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
37
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
38
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
39
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
40
|
+
viewPosition: z.ZodNumber;
|
41
|
+
countryCode: z.ZodString;
|
42
|
+
consumptionMultiplier: z.ZodNumber;
|
43
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
44
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
45
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
46
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
47
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
48
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
49
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
50
|
+
uuid: z.ZodString;
|
51
|
+
profileUuid: z.ZodString;
|
52
|
+
tag: z.ZodString;
|
53
|
+
type: z.ZodString;
|
54
|
+
network: z.ZodNullable<z.ZodString>;
|
55
|
+
security: z.ZodNullable<z.ZodString>;
|
56
|
+
port: z.ZodNullable<z.ZodNumber>;
|
57
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
type: string;
|
60
|
+
uuid: string;
|
61
|
+
profileUuid: string;
|
62
|
+
tag: string;
|
63
|
+
network: string | null;
|
64
|
+
security: string | null;
|
65
|
+
port: number | null;
|
66
|
+
rawInbound?: unknown;
|
67
|
+
}, {
|
68
|
+
type: string;
|
69
|
+
uuid: string;
|
70
|
+
profileUuid: string;
|
71
|
+
tag: string;
|
72
|
+
network: string | null;
|
73
|
+
security: string | null;
|
74
|
+
port: number | null;
|
75
|
+
rawInbound?: unknown;
|
76
|
+
}>, "many">>;
|
77
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
78
|
+
provider: z.ZodNullable<z.ZodObject<{
|
79
|
+
uuid: z.ZodString;
|
80
|
+
name: z.ZodString;
|
81
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
82
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
83
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
84
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
86
|
+
uuid: string;
|
87
|
+
createdAt: Date;
|
88
|
+
updatedAt: Date;
|
89
|
+
name: string;
|
90
|
+
faviconLink: string | null;
|
91
|
+
loginUrl: string | null;
|
92
|
+
}, {
|
93
|
+
uuid: string;
|
94
|
+
createdAt: string;
|
95
|
+
updatedAt: string;
|
96
|
+
name: string;
|
97
|
+
faviconLink: string | null;
|
98
|
+
loginUrl: string | null;
|
99
|
+
}>>;
|
100
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
101
|
+
uuid: string;
|
102
|
+
name: string;
|
103
|
+
countryCode: string;
|
104
|
+
}, {
|
105
|
+
uuid: string;
|
106
|
+
name: string;
|
107
|
+
countryCode: string;
|
108
|
+
}>;
|
109
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
110
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
111
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
113
|
+
uuid: string;
|
114
|
+
createdAt: Date;
|
115
|
+
updatedAt: Date;
|
116
|
+
nodeUuid: string;
|
117
|
+
providerUuid: string;
|
118
|
+
provider: {
|
119
|
+
uuid: string;
|
120
|
+
name: string;
|
121
|
+
};
|
122
|
+
node: {
|
123
|
+
uuid: string;
|
124
|
+
name: string;
|
125
|
+
countryCode: string;
|
126
|
+
};
|
127
|
+
nextBillingAt: Date;
|
128
|
+
}, {
|
129
|
+
uuid: string;
|
130
|
+
createdAt: string;
|
131
|
+
updatedAt: string;
|
132
|
+
nodeUuid: string;
|
133
|
+
providerUuid: string;
|
134
|
+
provider: {
|
135
|
+
uuid: string;
|
136
|
+
name: string;
|
137
|
+
};
|
138
|
+
node: {
|
139
|
+
uuid: string;
|
140
|
+
name: string;
|
141
|
+
countryCode: string;
|
142
|
+
};
|
143
|
+
nextBillingAt: string;
|
144
|
+
}>;
|
145
|
+
//# sourceMappingURL=infra-billing-node.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BjC,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingNodeSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
|
+
const nodes_schema_1 = require("./nodes.schema");
|
7
|
+
exports.InfraBillingNodeSchema = zod_1.z.object({
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
9
|
+
nodeUuid: zod_1.z.string().uuid(),
|
10
|
+
providerUuid: zod_1.z.string().uuid(),
|
11
|
+
provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
|
12
|
+
createdAt: true,
|
13
|
+
updatedAt: true,
|
14
|
+
loginUrl: true,
|
15
|
+
faviconLink: true,
|
16
|
+
}),
|
17
|
+
node: nodes_schema_1.NodesSchema.pick({
|
18
|
+
uuid: true,
|
19
|
+
name: true,
|
20
|
+
countryCode: true,
|
21
|
+
}),
|
22
|
+
nextBillingAt: zod_1.z
|
23
|
+
.string()
|
24
|
+
.datetime()
|
25
|
+
.transform((str) => new Date(str)),
|
26
|
+
createdAt: zod_1.z
|
27
|
+
.string()
|
28
|
+
.datetime()
|
29
|
+
.transform((str) => new Date(str)),
|
30
|
+
updatedAt: zod_1.z
|
31
|
+
.string()
|
32
|
+
.datetime()
|
33
|
+
.transform((str) => new Date(str)),
|
34
|
+
});
|
@@ -90,15 +90,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
90
90
|
viewPosition: number;
|
91
91
|
address: string;
|
92
92
|
isDisabled: boolean;
|
93
|
-
providerUuid: string | null;
|
94
|
-
provider: {
|
95
|
-
uuid: string;
|
96
|
-
createdAt: Date;
|
97
|
-
updatedAt: Date;
|
98
|
-
name: string;
|
99
|
-
faviconLink: string | null;
|
100
|
-
loginUrl: string | null;
|
101
|
-
} | null;
|
102
93
|
isConnected: boolean;
|
103
94
|
isConnecting: boolean;
|
104
95
|
isNodeOnline: boolean;
|
@@ -127,6 +118,15 @@ export declare const NodesSchema: z.ZodObject<{
|
|
127
118
|
port: number | null;
|
128
119
|
rawInbound?: unknown;
|
129
120
|
}[] | null;
|
121
|
+
providerUuid: string | null;
|
122
|
+
provider: {
|
123
|
+
uuid: string;
|
124
|
+
createdAt: Date;
|
125
|
+
updatedAt: Date;
|
126
|
+
name: string;
|
127
|
+
faviconLink: string | null;
|
128
|
+
loginUrl: string | null;
|
129
|
+
} | null;
|
130
130
|
}, {
|
131
131
|
uuid: string;
|
132
132
|
createdAt: string;
|
@@ -138,15 +138,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
138
138
|
viewPosition: number;
|
139
139
|
address: string;
|
140
140
|
isDisabled: boolean;
|
141
|
-
providerUuid: string | null;
|
142
|
-
provider: {
|
143
|
-
uuid: string;
|
144
|
-
createdAt: string;
|
145
|
-
updatedAt: string;
|
146
|
-
name: string;
|
147
|
-
faviconLink: string | null;
|
148
|
-
loginUrl: string | null;
|
149
|
-
} | null;
|
150
141
|
isConnected: boolean;
|
151
142
|
isConnecting: boolean;
|
152
143
|
isNodeOnline: boolean;
|
@@ -175,5 +166,14 @@ export declare const NodesSchema: z.ZodObject<{
|
|
175
166
|
port: number | null;
|
176
167
|
rawInbound?: unknown;
|
177
168
|
}[] | null;
|
169
|
+
providerUuid: string | null;
|
170
|
+
provider: {
|
171
|
+
uuid: string;
|
172
|
+
createdAt: string;
|
173
|
+
updatedAt: string;
|
174
|
+
name: string;
|
175
|
+
faviconLink: string | null;
|
176
|
+
loginUrl: string | null;
|
177
|
+
} | null;
|
178
178
|
}>;
|
179
179
|
//# sourceMappingURL=nodes.schema.d.ts.map
|
@@ -19,7 +19,6 @@ var CreateInfraBillingHistoryRecordCommand;
|
|
19
19
|
})
|
20
20
|
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
21
21
|
.transform((str) => new Date(str))
|
22
|
-
.optional()
|
23
22
|
.describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
24
23
|
});
|
25
24
|
CreateInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateInfraBillingNodeCommand = 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 CreateInfraBillingNodeCommand;
|
9
|
+
(function (CreateInfraBillingNodeCommand) {
|
10
|
+
CreateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_NODE;
|
11
|
+
CreateInfraBillingNodeCommand.TSQ_url = CreateInfraBillingNodeCommand.url;
|
12
|
+
CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node');
|
13
|
+
CreateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
|
14
|
+
providerUuid: zod_1.z.string().uuid(),
|
15
|
+
nodeUuid: zod_1.z.string().uuid(),
|
16
|
+
nextBillingAt: zod_1.z
|
17
|
+
.string({
|
18
|
+
invalid_type_error: 'Invalid date format',
|
19
|
+
})
|
20
|
+
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
21
|
+
.transform((str) => new Date(str))
|
22
|
+
.optional()
|
23
|
+
.describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
|
24
|
+
});
|
25
|
+
CreateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
|
26
|
+
response: zod_1.z.object({
|
27
|
+
totalBillingNodes: zod_1.z.number(),
|
28
|
+
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
29
|
+
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
30
|
+
totalAvailableBillingNodes: zod_1.z.number(),
|
31
|
+
}),
|
32
|
+
});
|
33
|
+
})(CreateInfraBillingNodeCommand || (exports.CreateInfraBillingNodeCommand = CreateInfraBillingNodeCommand = {}));
|
@@ -0,0 +1,24 @@
|
|
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
|
+
}),
|
23
|
+
});
|
24
|
+
})(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
|
@@ -0,0 +1,21 @@
|
|
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
|
+
}),
|
20
|
+
});
|
21
|
+
})(GetInfraBillingNodesCommand || (exports.GetInfraBillingNodesCommand = GetInfraBillingNodesCommand = {}));
|
@@ -15,10 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./create-bill-record.command"), exports);
|
18
|
+
__exportStar(require("./create-billing-node.command"), exports);
|
18
19
|
__exportStar(require("./create-infra-provider.command"), exports);
|
19
20
|
__exportStar(require("./delete-bill-record-by-uuid.command"), exports);
|
21
|
+
__exportStar(require("./delete-billing-node-by-uuid.command"), exports);
|
20
22
|
__exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
|
21
23
|
__exportStar(require("./get-bill-records.command"), exports);
|
24
|
+
__exportStar(require("./get-blling-nodes.command"), exports);
|
22
25
|
__exportStar(require("./get-infra-provider-by-uuid.command"), exports);
|
23
26
|
__exportStar(require("./get-infra-providers.command"), exports);
|
27
|
+
__exportStar(require("./update-billing-node.command"), exports);
|
24
28
|
__exportStar(require("./update-infra-provider.command"), exports);
|
@@ -0,0 +1,31 @@
|
|
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(':uuid');
|
11
|
+
UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
|
12
|
+
UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(':uuid'), '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
|
+
.optional(),
|
22
|
+
});
|
23
|
+
UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
|
24
|
+
response: zod_1.z.object({
|
25
|
+
totalBillingNodes: zod_1.z.number(),
|
26
|
+
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
27
|
+
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
28
|
+
totalAvailableBillingNodes: zod_1.z.number(),
|
29
|
+
}),
|
30
|
+
});
|
31
|
+
})(UpdateInfraBillingNodeCommand || (exports.UpdateInfraBillingNodeCommand = UpdateInfraBillingNodeCommand = {}));
|
@@ -670,4 +670,24 @@ exports.ERRORS = {
|
|
670
670
|
message: 'Delete infra billing history record by UUID error',
|
671
671
|
httpCode: 500,
|
672
672
|
},
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
674
|
+
code: 'A135',
|
675
|
+
message: 'Get billing nodes error',
|
676
|
+
httpCode: 500,
|
677
|
+
},
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
679
|
+
code: 'A136',
|
680
|
+
message: 'Update infra billing node error',
|
681
|
+
httpCode: 500,
|
682
|
+
},
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
684
|
+
code: 'A137',
|
685
|
+
message: 'Create infra billing node error',
|
686
|
+
httpCode: 500,
|
687
|
+
},
|
688
|
+
DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
689
|
+
code: 'A138',
|
690
|
+
message: 'Delete infra billing node by UUID error',
|
691
|
+
httpCode: 500,
|
692
|
+
},
|
673
693
|
};
|
@@ -24,7 +24,9 @@ __exportStar(require("./extented-users.schema"), exports);
|
|
24
24
|
__exportStar(require("./happ.schema"), exports);
|
25
25
|
__exportStar(require("./hosts.schema"), exports);
|
26
26
|
__exportStar(require("./hwid-user-device.schema"), exports);
|
27
|
+
__exportStar(require("./infra-billing-available-node.schema"), exports);
|
27
28
|
__exportStar(require("./infra-billing-history-record.schema"), exports);
|
29
|
+
__exportStar(require("./infra-billing-node.schema"), exports);
|
28
30
|
__exportStar(require("./infra-provider.schema"), exports);
|
29
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
30
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingAvailableNodeSchema = void 0;
|
4
|
+
const nodes_schema_1 = require("./nodes.schema");
|
5
|
+
exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
|
6
|
+
uuid: true,
|
7
|
+
name: true,
|
8
|
+
countryCode: true,
|
9
|
+
});
|