@remnawave/backend-contract 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +31 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/index.d.ts +3 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +3 -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 +15 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +15 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/nodes.schema.d.ts +18 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +31 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/index.js +3 -0
- package/build/frontend/constants/errors/errors.js +15 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/package.json +1 -1
@@ -0,0 +1,125 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateInfraBillingHistoryRecordCommand {
|
3
|
+
const url: "/api/infra-billing/history";
|
4
|
+
const TSQ_url: "/api/infra-billing/history";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
providerUuid: z.ZodString;
|
8
|
+
amount: z.ZodNumber;
|
9
|
+
billedAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
providerUuid: string;
|
12
|
+
amount: number;
|
13
|
+
billedAt?: Date | undefined;
|
14
|
+
}, {
|
15
|
+
providerUuid: string;
|
16
|
+
amount: number;
|
17
|
+
billedAt?: string | undefined;
|
18
|
+
}>;
|
19
|
+
type Request = z.infer<typeof RequestSchema>;
|
20
|
+
const ResponseSchema: z.ZodObject<{
|
21
|
+
response: z.ZodObject<{
|
22
|
+
records: z.ZodArray<z.ZodObject<{
|
23
|
+
uuid: z.ZodString;
|
24
|
+
providerUuid: z.ZodString;
|
25
|
+
amount: z.ZodNumber;
|
26
|
+
billedAt: z.ZodEffects<z.ZodString, Date, string>;
|
27
|
+
provider: z.ZodObject<Omit<{
|
28
|
+
uuid: z.ZodString;
|
29
|
+
name: z.ZodString;
|
30
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
31
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
32
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
33
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
|
+
}, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
|
35
|
+
uuid: string;
|
36
|
+
name: string;
|
37
|
+
faviconLink: string | null;
|
38
|
+
}, {
|
39
|
+
uuid: string;
|
40
|
+
name: string;
|
41
|
+
faviconLink: string | null;
|
42
|
+
}>;
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
44
|
+
uuid: string;
|
45
|
+
providerUuid: string;
|
46
|
+
amount: number;
|
47
|
+
billedAt: Date;
|
48
|
+
provider: {
|
49
|
+
uuid: string;
|
50
|
+
name: string;
|
51
|
+
faviconLink: string | null;
|
52
|
+
};
|
53
|
+
}, {
|
54
|
+
uuid: string;
|
55
|
+
providerUuid: string;
|
56
|
+
amount: number;
|
57
|
+
billedAt: string;
|
58
|
+
provider: {
|
59
|
+
uuid: string;
|
60
|
+
name: string;
|
61
|
+
faviconLink: string | null;
|
62
|
+
};
|
63
|
+
}>, "many">;
|
64
|
+
total: z.ZodNumber;
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
66
|
+
total: number;
|
67
|
+
records: {
|
68
|
+
uuid: string;
|
69
|
+
providerUuid: string;
|
70
|
+
amount: number;
|
71
|
+
billedAt: Date;
|
72
|
+
provider: {
|
73
|
+
uuid: string;
|
74
|
+
name: string;
|
75
|
+
faviconLink: string | null;
|
76
|
+
};
|
77
|
+
}[];
|
78
|
+
}, {
|
79
|
+
total: number;
|
80
|
+
records: {
|
81
|
+
uuid: string;
|
82
|
+
providerUuid: string;
|
83
|
+
amount: number;
|
84
|
+
billedAt: string;
|
85
|
+
provider: {
|
86
|
+
uuid: string;
|
87
|
+
name: string;
|
88
|
+
faviconLink: string | null;
|
89
|
+
};
|
90
|
+
}[];
|
91
|
+
}>;
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
93
|
+
response: {
|
94
|
+
total: number;
|
95
|
+
records: {
|
96
|
+
uuid: string;
|
97
|
+
providerUuid: string;
|
98
|
+
amount: number;
|
99
|
+
billedAt: Date;
|
100
|
+
provider: {
|
101
|
+
uuid: string;
|
102
|
+
name: string;
|
103
|
+
faviconLink: string | null;
|
104
|
+
};
|
105
|
+
}[];
|
106
|
+
};
|
107
|
+
}, {
|
108
|
+
response: {
|
109
|
+
total: number;
|
110
|
+
records: {
|
111
|
+
uuid: string;
|
112
|
+
providerUuid: string;
|
113
|
+
amount: number;
|
114
|
+
billedAt: string;
|
115
|
+
provider: {
|
116
|
+
uuid: string;
|
117
|
+
name: string;
|
118
|
+
faviconLink: string | null;
|
119
|
+
};
|
120
|
+
}[];
|
121
|
+
};
|
122
|
+
}>;
|
123
|
+
type Response = z.infer<typeof ResponseSchema>;
|
124
|
+
}
|
125
|
+
//# sourceMappingURL=create-bill-record.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-bill-record.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-bill-record.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,8BAAgD,CAAC;IAC1D,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAWxB,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,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateInfraBillingHistoryRecordCommand = 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 CreateInfraBillingHistoryRecordCommand;
|
9
|
+
(function (CreateInfraBillingHistoryRecordCommand) {
|
10
|
+
CreateInfraBillingHistoryRecordCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_HISTORY;
|
11
|
+
CreateInfraBillingHistoryRecordCommand.TSQ_url = CreateInfraBillingHistoryRecordCommand.url;
|
12
|
+
CreateInfraBillingHistoryRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY, 'post', 'Create infra billing history');
|
13
|
+
CreateInfraBillingHistoryRecordCommand.RequestSchema = zod_1.z.object({
|
14
|
+
providerUuid: zod_1.z.string().uuid(),
|
15
|
+
amount: zod_1.z.number().min(0, 'Amount must be greater than 0'),
|
16
|
+
billedAt: 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('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
24
|
+
});
|
25
|
+
CreateInfraBillingHistoryRecordCommand.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
|
+
})(CreateInfraBillingHistoryRecordCommand || (exports.CreateInfraBillingHistoryRecordCommand = CreateInfraBillingHistoryRecordCommand = {}));
|
@@ -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
|
+
amount: number;
|
41
|
+
billedAt: Date;
|
42
|
+
provider: {
|
43
|
+
uuid: string;
|
44
|
+
name: string;
|
45
|
+
faviconLink: string | null;
|
46
|
+
};
|
47
|
+
}, {
|
48
|
+
uuid: string;
|
49
|
+
providerUuid: string;
|
50
|
+
amount: number;
|
51
|
+
billedAt: string;
|
52
|
+
provider: {
|
53
|
+
uuid: string;
|
54
|
+
name: string;
|
55
|
+
faviconLink: string | null;
|
56
|
+
};
|
57
|
+
}>, "many">;
|
58
|
+
total: z.ZodNumber;
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
60
|
+
total: number;
|
61
|
+
records: {
|
62
|
+
uuid: string;
|
63
|
+
providerUuid: string;
|
64
|
+
amount: number;
|
65
|
+
billedAt: Date;
|
66
|
+
provider: {
|
67
|
+
uuid: string;
|
68
|
+
name: string;
|
69
|
+
faviconLink: string | null;
|
70
|
+
};
|
71
|
+
}[];
|
72
|
+
}, {
|
73
|
+
total: number;
|
74
|
+
records: {
|
75
|
+
uuid: string;
|
76
|
+
providerUuid: string;
|
77
|
+
amount: number;
|
78
|
+
billedAt: string;
|
79
|
+
provider: {
|
80
|
+
uuid: string;
|
81
|
+
name: string;
|
82
|
+
faviconLink: string | null;
|
83
|
+
};
|
84
|
+
}[];
|
85
|
+
}>;
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
87
|
+
response: {
|
88
|
+
total: number;
|
89
|
+
records: {
|
90
|
+
uuid: string;
|
91
|
+
providerUuid: string;
|
92
|
+
amount: number;
|
93
|
+
billedAt: Date;
|
94
|
+
provider: {
|
95
|
+
uuid: string;
|
96
|
+
name: string;
|
97
|
+
faviconLink: string | null;
|
98
|
+
};
|
99
|
+
}[];
|
100
|
+
};
|
101
|
+
}, {
|
102
|
+
response: {
|
103
|
+
total: number;
|
104
|
+
records: {
|
105
|
+
uuid: string;
|
106
|
+
providerUuid: string;
|
107
|
+
amount: number;
|
108
|
+
billedAt: string;
|
109
|
+
provider: {
|
110
|
+
uuid: string;
|
111
|
+
name: string;
|
112
|
+
faviconLink: string | null;
|
113
|
+
};
|
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,122 @@
|
|
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
|
+
amount: number;
|
44
|
+
billedAt: Date;
|
45
|
+
provider: {
|
46
|
+
uuid: string;
|
47
|
+
name: string;
|
48
|
+
faviconLink: string | null;
|
49
|
+
};
|
50
|
+
}, {
|
51
|
+
uuid: string;
|
52
|
+
providerUuid: string;
|
53
|
+
amount: number;
|
54
|
+
billedAt: string;
|
55
|
+
provider: {
|
56
|
+
uuid: string;
|
57
|
+
name: string;
|
58
|
+
faviconLink: string | null;
|
59
|
+
};
|
60
|
+
}>, "many">;
|
61
|
+
total: z.ZodNumber;
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
63
|
+
total: number;
|
64
|
+
records: {
|
65
|
+
uuid: string;
|
66
|
+
providerUuid: string;
|
67
|
+
amount: number;
|
68
|
+
billedAt: Date;
|
69
|
+
provider: {
|
70
|
+
uuid: string;
|
71
|
+
name: string;
|
72
|
+
faviconLink: string | null;
|
73
|
+
};
|
74
|
+
}[];
|
75
|
+
}, {
|
76
|
+
total: number;
|
77
|
+
records: {
|
78
|
+
uuid: string;
|
79
|
+
providerUuid: string;
|
80
|
+
amount: number;
|
81
|
+
billedAt: string;
|
82
|
+
provider: {
|
83
|
+
uuid: string;
|
84
|
+
name: string;
|
85
|
+
faviconLink: string | null;
|
86
|
+
};
|
87
|
+
}[];
|
88
|
+
}>;
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
|
+
response: {
|
91
|
+
total: number;
|
92
|
+
records: {
|
93
|
+
uuid: string;
|
94
|
+
providerUuid: string;
|
95
|
+
amount: number;
|
96
|
+
billedAt: Date;
|
97
|
+
provider: {
|
98
|
+
uuid: string;
|
99
|
+
name: string;
|
100
|
+
faviconLink: string | null;
|
101
|
+
};
|
102
|
+
}[];
|
103
|
+
};
|
104
|
+
}, {
|
105
|
+
response: {
|
106
|
+
total: number;
|
107
|
+
records: {
|
108
|
+
uuid: string;
|
109
|
+
providerUuid: string;
|
110
|
+
amount: number;
|
111
|
+
billedAt: string;
|
112
|
+
provider: {
|
113
|
+
uuid: string;
|
114
|
+
name: string;
|
115
|
+
faviconLink: string | null;
|
116
|
+
};
|
117
|
+
}[];
|
118
|
+
};
|
119
|
+
}>;
|
120
|
+
type Response = z.infer<typeof ResponseSchema>;
|
121
|
+
}
|
122
|
+
//# sourceMappingURL=get-bill-records.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,31 @@
|
|
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 users 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,5 +1,8 @@
|
|
1
|
+
export * from './create-bill-record.command';
|
1
2
|
export * from './create-infra-provider.command';
|
3
|
+
export * from './delete-bill-record-by-uuid.command';
|
2
4
|
export * from './delete-infra-provider-by-uuid.command';
|
5
|
+
export * from './get-bill-records.command';
|
3
6
|
export * from './get-infra-provider-by-uuid.command';
|
4
7
|
export * from './get-infra-providers.command';
|
5
8
|
export * from './update-infra-provider.command';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
@@ -14,8 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./create-bill-record.command"), exports);
|
17
18
|
__exportStar(require("./create-infra-provider.command"), exports);
|
19
|
+
__exportStar(require("./delete-bill-record-by-uuid.command"), exports);
|
18
20
|
__exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
|
21
|
+
__exportStar(require("./get-bill-records.command"), exports);
|
19
22
|
__exportStar(require("./get-infra-provider-by-uuid.command"), exports);
|
20
23
|
__exportStar(require("./get-infra-providers.command"), exports);
|
21
24
|
__exportStar(require("./update-infra-provider.command"), exports);
|
@@ -103,6 +103,15 @@ export declare namespace DisableNodeCommand {
|
|
103
103
|
viewPosition: number;
|
104
104
|
address: string;
|
105
105
|
isDisabled: boolean;
|
106
|
+
providerUuid: string | null;
|
107
|
+
provider: {
|
108
|
+
uuid: string;
|
109
|
+
createdAt: Date;
|
110
|
+
updatedAt: Date;
|
111
|
+
name: string;
|
112
|
+
faviconLink: string | null;
|
113
|
+
loginUrl: string | null;
|
114
|
+
} | null;
|
106
115
|
isConnected: boolean;
|
107
116
|
isConnecting: boolean;
|
108
117
|
isNodeOnline: boolean;
|
@@ -131,15 +140,6 @@ export declare namespace DisableNodeCommand {
|
|
131
140
|
port: number | null;
|
132
141
|
rawInbound?: unknown;
|
133
142
|
}[] | null;
|
134
|
-
providerUuid: string | null;
|
135
|
-
provider: {
|
136
|
-
uuid: string;
|
137
|
-
createdAt: Date;
|
138
|
-
updatedAt: Date;
|
139
|
-
name: string;
|
140
|
-
faviconLink: string | null;
|
141
|
-
loginUrl: string | null;
|
142
|
-
} | null;
|
143
143
|
}, {
|
144
144
|
uuid: string;
|
145
145
|
createdAt: string;
|
@@ -151,6 +151,15 @@ export declare namespace DisableNodeCommand {
|
|
151
151
|
viewPosition: number;
|
152
152
|
address: string;
|
153
153
|
isDisabled: boolean;
|
154
|
+
providerUuid: string | null;
|
155
|
+
provider: {
|
156
|
+
uuid: string;
|
157
|
+
createdAt: string;
|
158
|
+
updatedAt: string;
|
159
|
+
name: string;
|
160
|
+
faviconLink: string | null;
|
161
|
+
loginUrl: string | null;
|
162
|
+
} | null;
|
154
163
|
isConnected: boolean;
|
155
164
|
isConnecting: boolean;
|
156
165
|
isNodeOnline: boolean;
|
@@ -179,15 +188,6 @@ export declare namespace DisableNodeCommand {
|
|
179
188
|
port: number | null;
|
180
189
|
rawInbound?: unknown;
|
181
190
|
}[] | null;
|
182
|
-
providerUuid: string | null;
|
183
|
-
provider: {
|
184
|
-
uuid: string;
|
185
|
-
createdAt: string;
|
186
|
-
updatedAt: string;
|
187
|
-
name: string;
|
188
|
-
faviconLink: string | null;
|
189
|
-
loginUrl: string | null;
|
190
|
-
} | null;
|
191
191
|
}>;
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
193
193
|
response: {
|
@@ -201,6 +201,15 @@ export declare namespace DisableNodeCommand {
|
|
201
201
|
viewPosition: number;
|
202
202
|
address: string;
|
203
203
|
isDisabled: boolean;
|
204
|
+
providerUuid: string | null;
|
205
|
+
provider: {
|
206
|
+
uuid: string;
|
207
|
+
createdAt: Date;
|
208
|
+
updatedAt: Date;
|
209
|
+
name: string;
|
210
|
+
faviconLink: string | null;
|
211
|
+
loginUrl: string | null;
|
212
|
+
} | null;
|
204
213
|
isConnected: boolean;
|
205
214
|
isConnecting: boolean;
|
206
215
|
isNodeOnline: boolean;
|
@@ -229,15 +238,6 @@ export declare namespace DisableNodeCommand {
|
|
229
238
|
port: number | null;
|
230
239
|
rawInbound?: unknown;
|
231
240
|
}[] | null;
|
232
|
-
providerUuid: string | null;
|
233
|
-
provider: {
|
234
|
-
uuid: string;
|
235
|
-
createdAt: Date;
|
236
|
-
updatedAt: Date;
|
237
|
-
name: string;
|
238
|
-
faviconLink: string | null;
|
239
|
-
loginUrl: string | null;
|
240
|
-
} | null;
|
241
241
|
};
|
242
242
|
}, {
|
243
243
|
response: {
|
@@ -251,6 +251,15 @@ export declare namespace DisableNodeCommand {
|
|
251
251
|
viewPosition: number;
|
252
252
|
address: string;
|
253
253
|
isDisabled: boolean;
|
254
|
+
providerUuid: string | null;
|
255
|
+
provider: {
|
256
|
+
uuid: string;
|
257
|
+
createdAt: string;
|
258
|
+
updatedAt: string;
|
259
|
+
name: string;
|
260
|
+
faviconLink: string | null;
|
261
|
+
loginUrl: string | null;
|
262
|
+
} | null;
|
254
263
|
isConnected: boolean;
|
255
264
|
isConnecting: boolean;
|
256
265
|
isNodeOnline: boolean;
|
@@ -279,15 +288,6 @@ export declare namespace DisableNodeCommand {
|
|
279
288
|
port: number | null;
|
280
289
|
rawInbound?: unknown;
|
281
290
|
}[] | null;
|
282
|
-
providerUuid: string | null;
|
283
|
-
provider: {
|
284
|
-
uuid: string;
|
285
|
-
createdAt: string;
|
286
|
-
updatedAt: string;
|
287
|
-
name: string;
|
288
|
-
faviconLink: string | null;
|
289
|
-
loginUrl: string | null;
|
290
|
-
} | null;
|
291
291
|
};
|
292
292
|
}>;
|
293
293
|
type Response = z.infer<typeof ResponseSchema>;
|