@remnawave/backend-contract 2.0.0-alpha.2 → 2.0.0-alpha.21
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/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- package/build/backend/api/controllers/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +15 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +15 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +44 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +7 -11
- package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +54 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +4 -11
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- 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 +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +413 -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 +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -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/delete-billing-node-by-uuid.command.d.ts +407 -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 +29 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -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/get-blling-nodes.command.d.ts +399 -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 +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -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 +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +62 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +85 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +75 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +75 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/hosts.schema.d.ts +18 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +4 -2
- package/build/backend/models/index.d.ts +4 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -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 +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/infra-billing-node.schema.d.ts +153 -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/infra-provider.schema.d.ts +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +41 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +3 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +15 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +7 -11
- package/build/frontend/commands/hosts/update.command.js +4 -11
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/constants/errors/errors.js +75 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/hosts.schema.js +4 -2
- package/build/frontend/models/index.js +4 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/models/infra-provider.schema.js +41 -0
- package/build/frontend/models/nodes.schema.js +3 -0
- package/package.json +1 -1
@@ -0,0 +1,123 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateInfraProviderCommand {
|
3
|
+
const url: "/api/infra-billing/providers";
|
4
|
+
const TSQ_url: "/api/infra-billing/providers";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
name: z.ZodString;
|
8
|
+
faviconLink: z.ZodOptional<z.ZodString>;
|
9
|
+
loginUrl: z.ZodOptional<z.ZodString>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
name: string;
|
12
|
+
faviconLink?: string | undefined;
|
13
|
+
loginUrl?: string | undefined;
|
14
|
+
}, {
|
15
|
+
name: string;
|
16
|
+
faviconLink?: string | undefined;
|
17
|
+
loginUrl?: string | undefined;
|
18
|
+
}>;
|
19
|
+
type Request = z.infer<typeof RequestSchema>;
|
20
|
+
const ResponseSchema: z.ZodObject<{
|
21
|
+
response: z.ZodObject<{
|
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
|
+
billingHistory: z.ZodObject<{
|
29
|
+
totalAmount: z.ZodNumber;
|
30
|
+
totalBills: z.ZodNumber;
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
|
+
totalAmount: number;
|
33
|
+
totalBills: number;
|
34
|
+
}, {
|
35
|
+
totalAmount: number;
|
36
|
+
totalBills: number;
|
37
|
+
}>;
|
38
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
39
|
+
nodeUuid: z.ZodString;
|
40
|
+
name: z.ZodString;
|
41
|
+
countryCode: z.ZodString;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
name: string;
|
44
|
+
countryCode: string;
|
45
|
+
nodeUuid: string;
|
46
|
+
}, {
|
47
|
+
name: string;
|
48
|
+
countryCode: string;
|
49
|
+
nodeUuid: string;
|
50
|
+
}>, "many">;
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
52
|
+
uuid: string;
|
53
|
+
createdAt: Date;
|
54
|
+
updatedAt: Date;
|
55
|
+
name: string;
|
56
|
+
faviconLink: string | null;
|
57
|
+
loginUrl: string | null;
|
58
|
+
billingHistory: {
|
59
|
+
totalAmount: number;
|
60
|
+
totalBills: number;
|
61
|
+
};
|
62
|
+
billingNodes: {
|
63
|
+
name: string;
|
64
|
+
countryCode: string;
|
65
|
+
nodeUuid: string;
|
66
|
+
}[];
|
67
|
+
}, {
|
68
|
+
uuid: string;
|
69
|
+
createdAt: string;
|
70
|
+
updatedAt: string;
|
71
|
+
name: string;
|
72
|
+
faviconLink: string | null;
|
73
|
+
loginUrl: string | null;
|
74
|
+
billingHistory: {
|
75
|
+
totalAmount: number;
|
76
|
+
totalBills: number;
|
77
|
+
};
|
78
|
+
billingNodes: {
|
79
|
+
name: string;
|
80
|
+
countryCode: string;
|
81
|
+
nodeUuid: string;
|
82
|
+
}[];
|
83
|
+
}>;
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
85
|
+
response: {
|
86
|
+
uuid: string;
|
87
|
+
createdAt: Date;
|
88
|
+
updatedAt: Date;
|
89
|
+
name: string;
|
90
|
+
faviconLink: string | null;
|
91
|
+
loginUrl: string | null;
|
92
|
+
billingHistory: {
|
93
|
+
totalAmount: number;
|
94
|
+
totalBills: number;
|
95
|
+
};
|
96
|
+
billingNodes: {
|
97
|
+
name: string;
|
98
|
+
countryCode: string;
|
99
|
+
nodeUuid: string;
|
100
|
+
}[];
|
101
|
+
};
|
102
|
+
}, {
|
103
|
+
response: {
|
104
|
+
uuid: string;
|
105
|
+
createdAt: string;
|
106
|
+
updatedAt: string;
|
107
|
+
name: string;
|
108
|
+
faviconLink: string | null;
|
109
|
+
loginUrl: string | null;
|
110
|
+
billingHistory: {
|
111
|
+
totalAmount: number;
|
112
|
+
totalBills: number;
|
113
|
+
};
|
114
|
+
billingNodes: {
|
115
|
+
name: string;
|
116
|
+
countryCode: string;
|
117
|
+
nodeUuid: string;
|
118
|
+
}[];
|
119
|
+
};
|
120
|
+
}>;
|
121
|
+
type Response = z.infer<typeof ResponseSchema>;
|
122
|
+
}
|
123
|
+
//# sourceMappingURL=create-infra-provider.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAOxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateInfraProviderCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var CreateInfraProviderCommand;
|
9
|
+
(function (CreateInfraProviderCommand) {
|
10
|
+
CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
|
11
|
+
CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
|
12
|
+
CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
|
13
|
+
CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
|
14
|
+
name: zod_1.z
|
15
|
+
.string()
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
17
|
+
.max(30, 'Name must be less than 255 characters'),
|
18
|
+
faviconLink: zod_1.z.string().url().optional(),
|
19
|
+
loginUrl: zod_1.z.string().url().optional(),
|
20
|
+
});
|
21
|
+
CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
22
|
+
response: models_1.InfraProviderSchema,
|
23
|
+
});
|
24
|
+
})(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));
|
@@ -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 = {}));
|