@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.1
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/auth.d.ts +2 -0
- package/build/backend/api/controllers/auth.d.ts.map +1 -1
- package/build/backend/api/controllers/auth.js +2 -0
- package/build/backend/api/controllers/infra-billing.d.ts +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
- package/build/backend/api/controllers/infra-billing.js +1 -5
- package/build/backend/api/controllers/internal-squads.d.ts +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +5 -0
- package/build/backend/api/controllers/subscription.d.ts +1 -0
- package/build/backend/api/controllers/subscription.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription.js +1 -0
- package/build/backend/api/controllers/system.d.ts +1 -0
- package/build/backend/api/controllers/system.d.ts.map +1 -1
- package/build/backend/api/controllers/system.js +1 -0
- package/build/backend/api/routes.d.ts +9 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +9 -1
- package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +0 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +23 -0
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +3 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
- package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +36 -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 +36 -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 +36 -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 +36 -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 +36 -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 +60 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +14 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +36 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +36 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +12 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +72 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +11 -11
- 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 +467 -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 +59 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
- 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 +461 -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/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-billing-nodes.command.d.ts +453 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.d.ts +7 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +7 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -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 +59 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/index.d.ts +2 -1
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +2 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +158 -107
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +6 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
- 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 +212 -134
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +8 -4
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +361 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/subscription/index.d.ts +1 -0
- package/build/backend/commands/subscription/index.d.ts.map +1 -1
- package/build/backend/commands/subscription/index.js +1 -0
- package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
- package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/backend/commands/system/index.d.ts +1 -0
- package/build/backend/commands/system/index.d.ts.map +1 -1
- package/build/backend/commands/system/index.js +1 -0
- package/build/backend/commands/users/create-user.command.d.ts +6 -6
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -4
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/constants/errors/errors.d.ts +85 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +85 -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/headers/headers.constants.d.ts +3 -0
- package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.constants.js +5 -0
- package/build/backend/constants/headers/index.d.ts +2 -0
- package/build/backend/constants/headers/index.d.ts.map +1 -0
- package/build/backend/constants/headers/index.js +17 -0
- package/build/backend/constants/index.d.ts +3 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +3 -0
- package/build/backend/constants/messaging/index.d.ts +2 -0
- package/build/backend/constants/messaging/index.d.ts.map +1 -0
- package/build/backend/constants/messaging/index.js +17 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
- package/build/backend/constants/messaging/messaging.constants.js +19 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +17 -0
- package/build/backend/constants/oauth2/index.d.ts +2 -0
- package/build/backend/constants/oauth2/index.d.ts.map +1 -0
- package/build/backend/constants/oauth2/index.js +17 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
- package/build/backend/constants/oauth2/providers.contants.js +9 -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/api-tokens.schema.d.ts +0 -3
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +0 -1
- package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
- package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +24 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +6 -2
- package/build/backend/models/index.d.ts +4 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -1
- package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -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 +180 -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 +63 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +24 -1
- package/build/backend/models/nodes.schema.d.ts +96 -63
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -3
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/infra-billing.js +1 -5
- package/build/frontend/api/controllers/internal-squads.js +5 -0
- package/build/frontend/api/controllers/subscription.js +1 -0
- package/build/frontend/api/controllers/system.js +1 -0
- package/build/frontend/api/routes.js +9 -1
- package/build/frontend/commands/api-tokens/create.command.js +0 -1
- package/build/frontend/commands/auth/get-status.command.js +3 -0
- package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/frontend/commands/auth/oauth2/index.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +14 -13
- package/build/frontend/commands/hosts/update.command.js +11 -11
- 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 +1 -1
- 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/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/index.js +7 -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 +1 -1
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/internal-squads/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -4
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
- package/build/frontend/commands/subscription/index.js +1 -0
- package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/frontend/commands/system/index.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +2 -4
- package/build/frontend/constants/errors/errors.js +85 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.constants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +3 -0
- package/build/frontend/constants/messaging/index.js +17 -0
- package/build/frontend/constants/messaging/messaging.constants.js +19 -0
- package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
- package/build/frontend/constants/oauth2/index.js +17 -0
- package/build/frontend/constants/oauth2/providers.contants.js +9 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/api-tokens.schema.js +0 -1
- package/build/frontend/models/hosts.schema.js +6 -2
- package/build/frontend/models/index.js +4 -1
- 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 +24 -1
- package/build/frontend/models/nodes.schema.js +6 -3
- package/package.json +2 -2
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
- /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -22,8 +22,18 @@ export declare namespace GetAllHostsCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
26
|
+
inbound: z.ZodObject<{
|
27
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
configProfileUuid: string | null;
|
31
|
+
configProfileInboundUuid: string | null;
|
32
|
+
}, {
|
33
|
+
configProfileUuid: string | null;
|
34
|
+
configProfileInboundUuid: string | null;
|
35
|
+
}>;
|
36
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
27
37
|
}, "strip", z.ZodTypeAny, {
|
28
38
|
path: string | null;
|
29
39
|
uuid: string;
|
@@ -37,9 +47,13 @@ export declare namespace GetAllHostsCommand {
|
|
37
47
|
fingerprint: string | null;
|
38
48
|
isDisabled: boolean;
|
39
49
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
40
|
-
|
41
|
-
|
50
|
+
inbound: {
|
51
|
+
configProfileUuid: string | null;
|
52
|
+
configProfileInboundUuid: string | null;
|
53
|
+
};
|
54
|
+
serverDescription: string | null;
|
42
55
|
xHttpExtraParams?: unknown;
|
56
|
+
muxParams?: unknown;
|
43
57
|
}, {
|
44
58
|
path: string | null;
|
45
59
|
uuid: string;
|
@@ -51,11 +65,15 @@ export declare namespace GetAllHostsCommand {
|
|
51
65
|
host: string | null;
|
52
66
|
alpn: string | null;
|
53
67
|
fingerprint: string | null;
|
54
|
-
|
55
|
-
|
68
|
+
inbound: {
|
69
|
+
configProfileUuid: string | null;
|
70
|
+
configProfileInboundUuid: string | null;
|
71
|
+
};
|
72
|
+
serverDescription: string | null;
|
56
73
|
isDisabled?: boolean | undefined;
|
57
74
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
58
75
|
xHttpExtraParams?: unknown;
|
76
|
+
muxParams?: unknown;
|
59
77
|
}>, "many">;
|
60
78
|
}, "strip", z.ZodTypeAny, {
|
61
79
|
response: {
|
@@ -71,9 +89,13 @@ export declare namespace GetAllHostsCommand {
|
|
71
89
|
fingerprint: string | null;
|
72
90
|
isDisabled: boolean;
|
73
91
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
74
|
-
|
75
|
-
|
92
|
+
inbound: {
|
93
|
+
configProfileUuid: string | null;
|
94
|
+
configProfileInboundUuid: string | null;
|
95
|
+
};
|
96
|
+
serverDescription: string | null;
|
76
97
|
xHttpExtraParams?: unknown;
|
98
|
+
muxParams?: unknown;
|
77
99
|
}[];
|
78
100
|
}, {
|
79
101
|
response: {
|
@@ -87,11 +109,15 @@ export declare namespace GetAllHostsCommand {
|
|
87
109
|
host: string | null;
|
88
110
|
alpn: string | null;
|
89
111
|
fingerprint: string | null;
|
90
|
-
|
91
|
-
|
112
|
+
inbound: {
|
113
|
+
configProfileUuid: string | null;
|
114
|
+
configProfileInboundUuid: string | null;
|
115
|
+
};
|
116
|
+
serverDescription: string | null;
|
92
117
|
isDisabled?: boolean | undefined;
|
93
118
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
94
119
|
xHttpExtraParams?: unknown;
|
120
|
+
muxParams?: unknown;
|
95
121
|
}[];
|
96
122
|
}>;
|
97
123
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -30,8 +30,18 @@ export declare namespace GetOneHostCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
34
|
+
inbound: z.ZodObject<{
|
35
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
38
|
+
configProfileUuid: string | null;
|
39
|
+
configProfileInboundUuid: string | null;
|
40
|
+
}, {
|
41
|
+
configProfileUuid: string | null;
|
42
|
+
configProfileInboundUuid: string | null;
|
43
|
+
}>;
|
44
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
35
45
|
}, "strip", z.ZodTypeAny, {
|
36
46
|
path: string | null;
|
37
47
|
uuid: string;
|
@@ -45,9 +55,13 @@ export declare namespace GetOneHostCommand {
|
|
45
55
|
fingerprint: string | null;
|
46
56
|
isDisabled: boolean;
|
47
57
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
58
|
+
inbound: {
|
59
|
+
configProfileUuid: string | null;
|
60
|
+
configProfileInboundUuid: string | null;
|
61
|
+
};
|
62
|
+
serverDescription: string | null;
|
50
63
|
xHttpExtraParams?: unknown;
|
64
|
+
muxParams?: unknown;
|
51
65
|
}, {
|
52
66
|
path: string | null;
|
53
67
|
uuid: string;
|
@@ -59,11 +73,15 @@ export declare namespace GetOneHostCommand {
|
|
59
73
|
host: string | null;
|
60
74
|
alpn: string | null;
|
61
75
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
76
|
+
inbound: {
|
77
|
+
configProfileUuid: string | null;
|
78
|
+
configProfileInboundUuid: string | null;
|
79
|
+
};
|
80
|
+
serverDescription: string | null;
|
64
81
|
isDisabled?: boolean | undefined;
|
65
82
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
83
|
xHttpExtraParams?: unknown;
|
84
|
+
muxParams?: unknown;
|
67
85
|
}>;
|
68
86
|
}, "strip", z.ZodTypeAny, {
|
69
87
|
response: {
|
@@ -79,9 +97,13 @@ export declare namespace GetOneHostCommand {
|
|
79
97
|
fingerprint: string | null;
|
80
98
|
isDisabled: boolean;
|
81
99
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
100
|
+
inbound: {
|
101
|
+
configProfileUuid: string | null;
|
102
|
+
configProfileInboundUuid: string | null;
|
103
|
+
};
|
104
|
+
serverDescription: string | null;
|
84
105
|
xHttpExtraParams?: unknown;
|
106
|
+
muxParams?: unknown;
|
85
107
|
};
|
86
108
|
}, {
|
87
109
|
response: {
|
@@ -95,11 +117,15 @@ export declare namespace GetOneHostCommand {
|
|
95
117
|
host: string | null;
|
96
118
|
alpn: string | null;
|
97
119
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
120
|
+
inbound: {
|
121
|
+
configProfileUuid: string | null;
|
122
|
+
configProfileInboundUuid: string | null;
|
123
|
+
};
|
124
|
+
serverDescription: string | null;
|
100
125
|
isDisabled?: boolean | undefined;
|
101
126
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
127
|
xHttpExtraParams?: unknown;
|
128
|
+
muxParams?: unknown;
|
103
129
|
};
|
104
130
|
}>;
|
105
131
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
|
@@ -22,8 +22,18 @@ export declare namespace ReorderHostCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
26
|
+
inbound: z.ZodObject<{
|
27
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
configProfileUuid: string | null;
|
31
|
+
configProfileInboundUuid: string | null;
|
32
|
+
}, {
|
33
|
+
configProfileUuid: string | null;
|
34
|
+
configProfileInboundUuid: string | null;
|
35
|
+
}>;
|
36
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
27
37
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
28
38
|
uuid: string;
|
29
39
|
viewPosition: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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"}
|
@@ -21,11 +21,29 @@ export declare namespace UpdateHostCommand {
|
|
21
21
|
readonly NONE: "NONE";
|
22
22
|
}>>;
|
23
23
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
24
|
-
|
25
|
-
|
24
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
+
inbound: z.ZodObject<{
|
26
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
configProfileUuid: string | null;
|
30
|
+
configProfileInboundUuid: string | null;
|
31
|
+
}, {
|
32
|
+
configProfileUuid: string | null;
|
33
|
+
configProfileInboundUuid: string | null;
|
34
|
+
}>;
|
35
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
26
36
|
}, "uuid"> & {
|
27
|
-
|
28
|
-
|
37
|
+
inbound: z.ZodOptional<z.ZodObject<{
|
38
|
+
configProfileUuid: z.ZodString;
|
39
|
+
configProfileInboundUuid: z.ZodString;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
configProfileUuid: string;
|
42
|
+
configProfileInboundUuid: string;
|
43
|
+
}, {
|
44
|
+
configProfileUuid: string;
|
45
|
+
configProfileInboundUuid: string;
|
46
|
+
}>>;
|
29
47
|
remark: z.ZodOptional<z.ZodString>;
|
30
48
|
address: z.ZodOptional<z.ZodString>;
|
31
49
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -51,7 +69,6 @@ export declare namespace UpdateHostCommand {
|
|
51
69
|
readonly RANDOM: "random";
|
52
70
|
readonly RANDOMIZED: "randomized";
|
53
71
|
}>>>;
|
54
|
-
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
55
72
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
56
73
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
57
74
|
readonly DEFAULT: "DEFAULT";
|
@@ -59,6 +76,8 @@ export declare namespace UpdateHostCommand {
|
|
59
76
|
readonly NONE: "NONE";
|
60
77
|
}>>;
|
61
78
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
79
|
+
muxParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
80
|
+
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
62
81
|
}, "strip", z.ZodTypeAny, {
|
63
82
|
uuid: string;
|
64
83
|
path?: string | undefined;
|
@@ -72,9 +91,12 @@ export declare namespace UpdateHostCommand {
|
|
72
91
|
isDisabled?: boolean | undefined;
|
73
92
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
74
93
|
xHttpExtraParams?: unknown;
|
75
|
-
|
76
|
-
|
77
|
-
|
94
|
+
muxParams?: unknown;
|
95
|
+
inbound?: {
|
96
|
+
configProfileUuid: string;
|
97
|
+
configProfileInboundUuid: string;
|
98
|
+
} | undefined;
|
99
|
+
serverDescription?: string | null | undefined;
|
78
100
|
}, {
|
79
101
|
uuid: string;
|
80
102
|
path?: string | undefined;
|
@@ -88,9 +110,12 @@ export declare namespace UpdateHostCommand {
|
|
88
110
|
isDisabled?: boolean | undefined;
|
89
111
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
90
112
|
xHttpExtraParams?: unknown;
|
91
|
-
|
92
|
-
|
93
|
-
|
113
|
+
muxParams?: unknown;
|
114
|
+
inbound?: {
|
115
|
+
configProfileUuid: string;
|
116
|
+
configProfileInboundUuid: string;
|
117
|
+
} | undefined;
|
118
|
+
serverDescription?: string | null | undefined;
|
94
119
|
}>;
|
95
120
|
type Request = z.infer<typeof RequestSchema>;
|
96
121
|
const ResponseSchema: z.ZodObject<{
|
@@ -112,8 +137,18 @@ export declare namespace UpdateHostCommand {
|
|
112
137
|
readonly NONE: "NONE";
|
113
138
|
}>>;
|
114
139
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
115
|
-
|
116
|
-
|
140
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
141
|
+
inbound: z.ZodObject<{
|
142
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
143
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
145
|
+
configProfileUuid: string | null;
|
146
|
+
configProfileInboundUuid: string | null;
|
147
|
+
}, {
|
148
|
+
configProfileUuid: string | null;
|
149
|
+
configProfileInboundUuid: string | null;
|
150
|
+
}>;
|
151
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
117
152
|
}, "strip", z.ZodTypeAny, {
|
118
153
|
path: string | null;
|
119
154
|
uuid: string;
|
@@ -127,9 +162,13 @@ export declare namespace UpdateHostCommand {
|
|
127
162
|
fingerprint: string | null;
|
128
163
|
isDisabled: boolean;
|
129
164
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
130
|
-
|
131
|
-
|
165
|
+
inbound: {
|
166
|
+
configProfileUuid: string | null;
|
167
|
+
configProfileInboundUuid: string | null;
|
168
|
+
};
|
169
|
+
serverDescription: string | null;
|
132
170
|
xHttpExtraParams?: unknown;
|
171
|
+
muxParams?: unknown;
|
133
172
|
}, {
|
134
173
|
path: string | null;
|
135
174
|
uuid: string;
|
@@ -141,11 +180,15 @@ export declare namespace UpdateHostCommand {
|
|
141
180
|
host: string | null;
|
142
181
|
alpn: string | null;
|
143
182
|
fingerprint: string | null;
|
144
|
-
|
145
|
-
|
183
|
+
inbound: {
|
184
|
+
configProfileUuid: string | null;
|
185
|
+
configProfileInboundUuid: string | null;
|
186
|
+
};
|
187
|
+
serverDescription: string | null;
|
146
188
|
isDisabled?: boolean | undefined;
|
147
189
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
148
190
|
xHttpExtraParams?: unknown;
|
191
|
+
muxParams?: unknown;
|
149
192
|
}>;
|
150
193
|
}, "strip", z.ZodTypeAny, {
|
151
194
|
response: {
|
@@ -161,9 +204,13 @@ export declare namespace UpdateHostCommand {
|
|
161
204
|
fingerprint: string | null;
|
162
205
|
isDisabled: boolean;
|
163
206
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
164
|
-
|
165
|
-
|
207
|
+
inbound: {
|
208
|
+
configProfileUuid: string | null;
|
209
|
+
configProfileInboundUuid: string | null;
|
210
|
+
};
|
211
|
+
serverDescription: string | null;
|
166
212
|
xHttpExtraParams?: unknown;
|
213
|
+
muxParams?: unknown;
|
167
214
|
};
|
168
215
|
}, {
|
169
216
|
response: {
|
@@ -177,11 +224,15 @@ export declare namespace UpdateHostCommand {
|
|
177
224
|
host: string | null;
|
178
225
|
alpn: string | null;
|
179
226
|
fingerprint: string | null;
|
180
|
-
|
181
|
-
|
227
|
+
inbound: {
|
228
|
+
configProfileUuid: string | null;
|
229
|
+
configProfileInboundUuid: string | null;
|
230
|
+
};
|
231
|
+
serverDescription: string | null;
|
182
232
|
isDisabled?: boolean | undefined;
|
183
233
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
184
234
|
xHttpExtraParams?: unknown;
|
235
|
+
muxParams?: unknown;
|
185
236
|
};
|
186
237
|
}>;
|
187
238
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6CxB,CAAC;IACH,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"}
|
@@ -13,17 +13,11 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
16
|
+
inbound: zod_1.z
|
17
|
+
.object({
|
18
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
19
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
19
20
|
})
|
20
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
-
.optional(),
|
22
|
-
configProfileInboundUuid: zod_1.z
|
23
|
-
.string({
|
24
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
25
|
-
})
|
26
|
-
.uuid('Inbound UUID must be a valid UUID')
|
27
21
|
.optional(),
|
28
22
|
remark: zod_1.z
|
29
23
|
.string({
|
@@ -49,10 +43,16 @@ var UpdateHostCommand;
|
|
49
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
50
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
51
45
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
53
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
54
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
55
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
49
|
+
muxParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
50
|
+
serverDescription: zod_1.z.optional(zod_1.z
|
51
|
+
.string()
|
52
|
+
.max(30, {
|
53
|
+
message: 'Server description must be less than 30 characters',
|
54
|
+
})
|
55
|
+
.nullable()),
|
56
56
|
});
|
57
57
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
58
58
|
response: models_1.HostsSchema,
|
@@ -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.ZodEffects<z.ZodString, Date, string>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
providerUuid: string;
|
12
|
+
amount: number;
|
13
|
+
billedAt: Date;
|
14
|
+
}, {
|
15
|
+
providerUuid: string;
|
16
|
+
amount: number;
|
17
|
+
billedAt: string;
|
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
|
+
provider: {
|
46
|
+
uuid: string;
|
47
|
+
name: string;
|
48
|
+
faviconLink: string | null;
|
49
|
+
};
|
50
|
+
providerUuid: string;
|
51
|
+
amount: number;
|
52
|
+
billedAt: Date;
|
53
|
+
}, {
|
54
|
+
uuid: string;
|
55
|
+
provider: {
|
56
|
+
uuid: string;
|
57
|
+
name: string;
|
58
|
+
faviconLink: string | null;
|
59
|
+
};
|
60
|
+
providerUuid: string;
|
61
|
+
amount: number;
|
62
|
+
billedAt: string;
|
63
|
+
}>, "many">;
|
64
|
+
total: z.ZodNumber;
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
66
|
+
total: number;
|
67
|
+
records: {
|
68
|
+
uuid: string;
|
69
|
+
provider: {
|
70
|
+
uuid: string;
|
71
|
+
name: string;
|
72
|
+
faviconLink: string | null;
|
73
|
+
};
|
74
|
+
providerUuid: string;
|
75
|
+
amount: number;
|
76
|
+
billedAt: Date;
|
77
|
+
}[];
|
78
|
+
}, {
|
79
|
+
total: number;
|
80
|
+
records: {
|
81
|
+
uuid: string;
|
82
|
+
provider: {
|
83
|
+
uuid: string;
|
84
|
+
name: string;
|
85
|
+
faviconLink: string | null;
|
86
|
+
};
|
87
|
+
providerUuid: string;
|
88
|
+
amount: number;
|
89
|
+
billedAt: string;
|
90
|
+
}[];
|
91
|
+
}>;
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
93
|
+
response: {
|
94
|
+
total: number;
|
95
|
+
records: {
|
96
|
+
uuid: string;
|
97
|
+
provider: {
|
98
|
+
uuid: string;
|
99
|
+
name: string;
|
100
|
+
faviconLink: string | null;
|
101
|
+
};
|
102
|
+
providerUuid: string;
|
103
|
+
amount: number;
|
104
|
+
billedAt: Date;
|
105
|
+
}[];
|
106
|
+
};
|
107
|
+
}, {
|
108
|
+
response: {
|
109
|
+
total: number;
|
110
|
+
records: {
|
111
|
+
uuid: string;
|
112
|
+
provider: {
|
113
|
+
uuid: string;
|
114
|
+
name: string;
|
115
|
+
faviconLink: string | null;
|
116
|
+
};
|
117
|
+
providerUuid: string;
|
118
|
+
amount: number;
|
119
|
+
billedAt: string;
|
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;;;;;;;;;;;;MAUxB,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,30 @@
|
|
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
|
+
.describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
23
|
+
});
|
24
|
+
CreateInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
|
25
|
+
response: zod_1.z.object({
|
26
|
+
records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
|
27
|
+
total: zod_1.z.number(),
|
28
|
+
}),
|
29
|
+
});
|
30
|
+
})(CreateInfraBillingHistoryRecordCommand || (exports.CreateInfraBillingHistoryRecordCommand = CreateInfraBillingHistoryRecordCommand = {}));
|