@remnawave/backend-contract 2.0.0-alpha.1 → 2.0.0-alpha.11
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 +22 -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.d.ts +7 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +7 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +7 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +9 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +7 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +7 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +4 -2
- 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-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-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-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 +6 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +21 -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.d.ts +7 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +7 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +9 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +7 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +66 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +66 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +92 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +69 -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 +66 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +66 -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 +95 -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 +35 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +35 -0
- package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -0
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile-inbounds.schema.js +1 -0
- package/build/backend/models/config-profile.schema.d.ts +5 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- 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-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/internal-squad.schema.d.ts +5 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.d.ts +46 -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 +22 -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 +4 -2
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -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 +21 -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 +35 -0
- package/build/frontend/models/config-profile-inbounds.schema.js +1 -0
- package/build/frontend/models/index.js +1 -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
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
20
20
|
__exportStar(require("./hosts"), exports);
|
21
21
|
__exportStar(require("./hwid"), exports);
|
22
|
+
__exportStar(require("./infra-billing"), exports);
|
22
23
|
__exportStar(require("./internal-squads"), exports);
|
23
24
|
__exportStar(require("./keygen"), exports);
|
24
25
|
__exportStar(require("./nodes"), exports);
|
@@ -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,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 = {}));
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetInfraProviderByUuidCommand {
|
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
|
+
uuid: z.ZodString;
|
17
|
+
name: z.ZodString;
|
18
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
19
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
20
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
21
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
22
|
+
billingHistory: z.ZodObject<{
|
23
|
+
totalAmount: z.ZodNumber;
|
24
|
+
totalBills: z.ZodNumber;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
totalAmount: number;
|
27
|
+
totalBills: number;
|
28
|
+
}, {
|
29
|
+
totalAmount: number;
|
30
|
+
totalBills: number;
|
31
|
+
}>;
|
32
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
33
|
+
nodeUuid: z.ZodString;
|
34
|
+
name: z.ZodString;
|
35
|
+
countryCode: z.ZodString;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
name: string;
|
38
|
+
countryCode: string;
|
39
|
+
nodeUuid: string;
|
40
|
+
}, {
|
41
|
+
name: string;
|
42
|
+
countryCode: string;
|
43
|
+
nodeUuid: string;
|
44
|
+
}>, "many">;
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
46
|
+
uuid: string;
|
47
|
+
createdAt: Date;
|
48
|
+
updatedAt: Date;
|
49
|
+
name: string;
|
50
|
+
faviconLink: string | null;
|
51
|
+
loginUrl: string | null;
|
52
|
+
billingHistory: {
|
53
|
+
totalAmount: number;
|
54
|
+
totalBills: number;
|
55
|
+
};
|
56
|
+
billingNodes: {
|
57
|
+
name: string;
|
58
|
+
countryCode: string;
|
59
|
+
nodeUuid: string;
|
60
|
+
}[];
|
61
|
+
}, {
|
62
|
+
uuid: string;
|
63
|
+
createdAt: string;
|
64
|
+
updatedAt: string;
|
65
|
+
name: string;
|
66
|
+
faviconLink: string | null;
|
67
|
+
loginUrl: string | null;
|
68
|
+
billingHistory: {
|
69
|
+
totalAmount: number;
|
70
|
+
totalBills: number;
|
71
|
+
};
|
72
|
+
billingNodes: {
|
73
|
+
name: string;
|
74
|
+
countryCode: string;
|
75
|
+
nodeUuid: string;
|
76
|
+
}[];
|
77
|
+
}>;
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
79
|
+
response: {
|
80
|
+
uuid: string;
|
81
|
+
createdAt: Date;
|
82
|
+
updatedAt: Date;
|
83
|
+
name: string;
|
84
|
+
faviconLink: string | null;
|
85
|
+
loginUrl: string | null;
|
86
|
+
billingHistory: {
|
87
|
+
totalAmount: number;
|
88
|
+
totalBills: number;
|
89
|
+
};
|
90
|
+
billingNodes: {
|
91
|
+
name: string;
|
92
|
+
countryCode: string;
|
93
|
+
nodeUuid: string;
|
94
|
+
}[];
|
95
|
+
};
|
96
|
+
}, {
|
97
|
+
response: {
|
98
|
+
uuid: string;
|
99
|
+
createdAt: string;
|
100
|
+
updatedAt: string;
|
101
|
+
name: string;
|
102
|
+
faviconLink: string | null;
|
103
|
+
loginUrl: string | null;
|
104
|
+
billingHistory: {
|
105
|
+
totalAmount: number;
|
106
|
+
totalBills: number;
|
107
|
+
};
|
108
|
+
billingNodes: {
|
109
|
+
name: string;
|
110
|
+
countryCode: string;
|
111
|
+
nodeUuid: string;
|
112
|
+
}[];
|
113
|
+
};
|
114
|
+
}>;
|
115
|
+
type Response = z.infer<typeof ResponseSchema>;
|
116
|
+
}
|
117
|
+
//# sourceMappingURL=get-infra-provider-by-uuid.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,QAAuD,CAAC;IACjE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInfraProviderByUuidCommand = 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 GetInfraProviderByUuidCommand;
|
9
|
+
(function (GetInfraProviderByUuidCommand) {
|
10
|
+
GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
|
11
|
+
GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
|
12
|
+
GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
|
13
|
+
GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
});
|
16
|
+
GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
|
17
|
+
response: models_1.InfraProviderSchema,
|
18
|
+
});
|
19
|
+
})(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));
|
@@ -0,0 +1,156 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetInfraProvidersCommand {
|
3
|
+
const url: "/api/infra-billing/providers";
|
4
|
+
const TSQ_url: "/api/infra-billing/providers";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
7
|
+
response: z.ZodObject<{
|
8
|
+
total: z.ZodNumber;
|
9
|
+
providers: z.ZodArray<z.ZodObject<{
|
10
|
+
uuid: z.ZodString;
|
11
|
+
name: z.ZodString;
|
12
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
13
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
14
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
15
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
16
|
+
billingHistory: z.ZodObject<{
|
17
|
+
totalAmount: z.ZodNumber;
|
18
|
+
totalBills: z.ZodNumber;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
totalAmount: number;
|
21
|
+
totalBills: number;
|
22
|
+
}, {
|
23
|
+
totalAmount: number;
|
24
|
+
totalBills: number;
|
25
|
+
}>;
|
26
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
27
|
+
nodeUuid: z.ZodString;
|
28
|
+
name: z.ZodString;
|
29
|
+
countryCode: z.ZodString;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
name: string;
|
32
|
+
countryCode: string;
|
33
|
+
nodeUuid: string;
|
34
|
+
}, {
|
35
|
+
name: string;
|
36
|
+
countryCode: string;
|
37
|
+
nodeUuid: string;
|
38
|
+
}>, "many">;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
uuid: string;
|
41
|
+
createdAt: Date;
|
42
|
+
updatedAt: Date;
|
43
|
+
name: string;
|
44
|
+
faviconLink: string | null;
|
45
|
+
loginUrl: string | null;
|
46
|
+
billingHistory: {
|
47
|
+
totalAmount: number;
|
48
|
+
totalBills: number;
|
49
|
+
};
|
50
|
+
billingNodes: {
|
51
|
+
name: string;
|
52
|
+
countryCode: string;
|
53
|
+
nodeUuid: string;
|
54
|
+
}[];
|
55
|
+
}, {
|
56
|
+
uuid: string;
|
57
|
+
createdAt: string;
|
58
|
+
updatedAt: string;
|
59
|
+
name: string;
|
60
|
+
faviconLink: string | null;
|
61
|
+
loginUrl: string | null;
|
62
|
+
billingHistory: {
|
63
|
+
totalAmount: number;
|
64
|
+
totalBills: number;
|
65
|
+
};
|
66
|
+
billingNodes: {
|
67
|
+
name: string;
|
68
|
+
countryCode: string;
|
69
|
+
nodeUuid: string;
|
70
|
+
}[];
|
71
|
+
}>, "many">;
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
73
|
+
providers: {
|
74
|
+
uuid: string;
|
75
|
+
createdAt: Date;
|
76
|
+
updatedAt: Date;
|
77
|
+
name: string;
|
78
|
+
faviconLink: string | null;
|
79
|
+
loginUrl: string | null;
|
80
|
+
billingHistory: {
|
81
|
+
totalAmount: number;
|
82
|
+
totalBills: number;
|
83
|
+
};
|
84
|
+
billingNodes: {
|
85
|
+
name: string;
|
86
|
+
countryCode: string;
|
87
|
+
nodeUuid: string;
|
88
|
+
}[];
|
89
|
+
}[];
|
90
|
+
total: number;
|
91
|
+
}, {
|
92
|
+
providers: {
|
93
|
+
uuid: string;
|
94
|
+
createdAt: string;
|
95
|
+
updatedAt: string;
|
96
|
+
name: string;
|
97
|
+
faviconLink: string | null;
|
98
|
+
loginUrl: string | null;
|
99
|
+
billingHistory: {
|
100
|
+
totalAmount: number;
|
101
|
+
totalBills: number;
|
102
|
+
};
|
103
|
+
billingNodes: {
|
104
|
+
name: string;
|
105
|
+
countryCode: string;
|
106
|
+
nodeUuid: string;
|
107
|
+
}[];
|
108
|
+
}[];
|
109
|
+
total: number;
|
110
|
+
}>;
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
112
|
+
response: {
|
113
|
+
providers: {
|
114
|
+
uuid: string;
|
115
|
+
createdAt: Date;
|
116
|
+
updatedAt: Date;
|
117
|
+
name: string;
|
118
|
+
faviconLink: string | null;
|
119
|
+
loginUrl: string | null;
|
120
|
+
billingHistory: {
|
121
|
+
totalAmount: number;
|
122
|
+
totalBills: number;
|
123
|
+
};
|
124
|
+
billingNodes: {
|
125
|
+
name: string;
|
126
|
+
countryCode: string;
|
127
|
+
nodeUuid: string;
|
128
|
+
}[];
|
129
|
+
}[];
|
130
|
+
total: number;
|
131
|
+
};
|
132
|
+
}, {
|
133
|
+
response: {
|
134
|
+
providers: {
|
135
|
+
uuid: string;
|
136
|
+
createdAt: string;
|
137
|
+
updatedAt: string;
|
138
|
+
name: string;
|
139
|
+
faviconLink: string | null;
|
140
|
+
loginUrl: string | null;
|
141
|
+
billingHistory: {
|
142
|
+
totalAmount: number;
|
143
|
+
totalBills: number;
|
144
|
+
};
|
145
|
+
billingNodes: {
|
146
|
+
name: string;
|
147
|
+
countryCode: string;
|
148
|
+
nodeUuid: string;
|
149
|
+
}[];
|
150
|
+
}[];
|
151
|
+
total: number;
|
152
|
+
};
|
153
|
+
}>;
|
154
|
+
type Response = z.infer<typeof ResponseSchema>;
|
155
|
+
}
|
156
|
+
//# sourceMappingURL=get-infra-providers.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-infra-providers.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-providers.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,gCAAuC,CAAC;IACjD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInfraProvidersCommand = 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 GetInfraProvidersCommand;
|
9
|
+
(function (GetInfraProvidersCommand) {
|
10
|
+
GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
|
11
|
+
GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
|
12
|
+
GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
|
13
|
+
GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
|
14
|
+
response: zod_1.z.object({
|
15
|
+
total: zod_1.z.number(),
|
16
|
+
providers: zod_1.z.array(models_1.InfraProviderSchema),
|
17
|
+
}),
|
18
|
+
});
|
19
|
+
})(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export * from './create-infra-provider.command';
|
2
|
+
export * from './delete-infra-provider-by-uuid.command';
|
3
|
+
export * from './get-infra-provider-by-uuid.command';
|
4
|
+
export * from './get-infra-providers.command';
|
5
|
+
export * from './update-infra-provider.command';
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./create-infra-provider.command"), exports);
|
18
|
+
__exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
|
19
|
+
__exportStar(require("./get-infra-provider-by-uuid.command"), exports);
|
20
|
+
__exportStar(require("./get-infra-providers.command"), exports);
|
21
|
+
__exportStar(require("./update-infra-provider.command"), exports);
|