@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.0
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 +31 -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 +31 -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 +31 -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 +31 -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 +31 -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 +52 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +13 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +63 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +10 -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 +354 -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 +67 -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 +21 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +5 -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 +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -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 +67 -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 +5 -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
@@ -30,8 +30,17 @@ export declare namespace GetOneHostCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
43
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
35
44
|
}, "strip", z.ZodTypeAny, {
|
36
45
|
path: string | null;
|
37
46
|
uuid: string;
|
@@ -45,8 +54,11 @@ export declare namespace GetOneHostCommand {
|
|
45
54
|
fingerprint: string | null;
|
46
55
|
isDisabled: boolean;
|
47
56
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
57
|
+
inbound: {
|
58
|
+
configProfileUuid: string | null;
|
59
|
+
configProfileInboundUuid: string | null;
|
60
|
+
};
|
61
|
+
serverDescription: string | null;
|
50
62
|
xHttpExtraParams?: unknown;
|
51
63
|
}, {
|
52
64
|
path: string | null;
|
@@ -59,8 +71,11 @@ export declare namespace GetOneHostCommand {
|
|
59
71
|
host: string | null;
|
60
72
|
alpn: string | null;
|
61
73
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
74
|
+
inbound: {
|
75
|
+
configProfileUuid: string | null;
|
76
|
+
configProfileInboundUuid: string | null;
|
77
|
+
};
|
78
|
+
serverDescription: string | null;
|
64
79
|
isDisabled?: boolean | undefined;
|
65
80
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
81
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +94,11 @@ export declare namespace GetOneHostCommand {
|
|
79
94
|
fingerprint: string | null;
|
80
95
|
isDisabled: boolean;
|
81
96
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
97
|
+
inbound: {
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
100
|
+
};
|
101
|
+
serverDescription: string | null;
|
84
102
|
xHttpExtraParams?: unknown;
|
85
103
|
};
|
86
104
|
}, {
|
@@ -95,8 +113,11 @@ export declare namespace GetOneHostCommand {
|
|
95
113
|
host: string | null;
|
96
114
|
alpn: string | null;
|
97
115
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
116
|
+
inbound: {
|
117
|
+
configProfileUuid: string | null;
|
118
|
+
configProfileInboundUuid: string | null;
|
119
|
+
};
|
120
|
+
serverDescription: string | null;
|
100
121
|
isDisabled?: boolean | undefined;
|
101
122
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
123
|
xHttpExtraParams?: unknown;
|
@@ -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,17 @@ export declare namespace ReorderHostCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
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>;
|
27
36
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
28
37
|
uuid: string;
|
29
38
|
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,28 @@ export declare namespace UpdateHostCommand {
|
|
21
21
|
readonly NONE: "NONE";
|
22
22
|
}>>;
|
23
23
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
24
|
-
|
25
|
-
|
24
|
+
inbound: z.ZodObject<{
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
configProfileUuid: string | null;
|
29
|
+
configProfileInboundUuid: string | null;
|
30
|
+
}, {
|
31
|
+
configProfileUuid: string | null;
|
32
|
+
configProfileInboundUuid: string | null;
|
33
|
+
}>;
|
34
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
26
35
|
}, "uuid"> & {
|
27
|
-
|
28
|
-
|
36
|
+
inbound: z.ZodOptional<z.ZodObject<{
|
37
|
+
configProfileUuid: z.ZodString;
|
38
|
+
configProfileInboundUuid: z.ZodString;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
configProfileUuid: string;
|
41
|
+
configProfileInboundUuid: string;
|
42
|
+
}, {
|
43
|
+
configProfileUuid: string;
|
44
|
+
configProfileInboundUuid: string;
|
45
|
+
}>>;
|
29
46
|
remark: z.ZodOptional<z.ZodString>;
|
30
47
|
address: z.ZodOptional<z.ZodString>;
|
31
48
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -51,7 +68,6 @@ export declare namespace UpdateHostCommand {
|
|
51
68
|
readonly RANDOM: "random";
|
52
69
|
readonly RANDOMIZED: "randomized";
|
53
70
|
}>>>;
|
54
|
-
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
55
71
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
56
72
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
57
73
|
readonly DEFAULT: "DEFAULT";
|
@@ -59,6 +75,7 @@ export declare namespace UpdateHostCommand {
|
|
59
75
|
readonly NONE: "NONE";
|
60
76
|
}>>;
|
61
77
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
78
|
+
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
62
79
|
}, "strip", z.ZodTypeAny, {
|
63
80
|
uuid: string;
|
64
81
|
path?: string | undefined;
|
@@ -72,9 +89,11 @@ export declare namespace UpdateHostCommand {
|
|
72
89
|
isDisabled?: boolean | undefined;
|
73
90
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
74
91
|
xHttpExtraParams?: unknown;
|
75
|
-
|
76
|
-
|
77
|
-
|
92
|
+
inbound?: {
|
93
|
+
configProfileUuid: string;
|
94
|
+
configProfileInboundUuid: string;
|
95
|
+
} | undefined;
|
96
|
+
serverDescription?: string | null | undefined;
|
78
97
|
}, {
|
79
98
|
uuid: string;
|
80
99
|
path?: string | undefined;
|
@@ -88,9 +107,11 @@ export declare namespace UpdateHostCommand {
|
|
88
107
|
isDisabled?: boolean | undefined;
|
89
108
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
90
109
|
xHttpExtraParams?: unknown;
|
91
|
-
|
92
|
-
|
93
|
-
|
110
|
+
inbound?: {
|
111
|
+
configProfileUuid: string;
|
112
|
+
configProfileInboundUuid: string;
|
113
|
+
} | undefined;
|
114
|
+
serverDescription?: string | null | undefined;
|
94
115
|
}>;
|
95
116
|
type Request = z.infer<typeof RequestSchema>;
|
96
117
|
const ResponseSchema: z.ZodObject<{
|
@@ -112,8 +133,17 @@ export declare namespace UpdateHostCommand {
|
|
112
133
|
readonly NONE: "NONE";
|
113
134
|
}>>;
|
114
135
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
115
|
-
|
116
|
-
|
136
|
+
inbound: z.ZodObject<{
|
137
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
138
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
140
|
+
configProfileUuid: string | null;
|
141
|
+
configProfileInboundUuid: string | null;
|
142
|
+
}, {
|
143
|
+
configProfileUuid: string | null;
|
144
|
+
configProfileInboundUuid: string | null;
|
145
|
+
}>;
|
146
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
117
147
|
}, "strip", z.ZodTypeAny, {
|
118
148
|
path: string | null;
|
119
149
|
uuid: string;
|
@@ -127,8 +157,11 @@ export declare namespace UpdateHostCommand {
|
|
127
157
|
fingerprint: string | null;
|
128
158
|
isDisabled: boolean;
|
129
159
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
130
|
-
|
131
|
-
|
160
|
+
inbound: {
|
161
|
+
configProfileUuid: string | null;
|
162
|
+
configProfileInboundUuid: string | null;
|
163
|
+
};
|
164
|
+
serverDescription: string | null;
|
132
165
|
xHttpExtraParams?: unknown;
|
133
166
|
}, {
|
134
167
|
path: string | null;
|
@@ -141,8 +174,11 @@ export declare namespace UpdateHostCommand {
|
|
141
174
|
host: string | null;
|
142
175
|
alpn: string | null;
|
143
176
|
fingerprint: string | null;
|
144
|
-
|
145
|
-
|
177
|
+
inbound: {
|
178
|
+
configProfileUuid: string | null;
|
179
|
+
configProfileInboundUuid: string | null;
|
180
|
+
};
|
181
|
+
serverDescription: string | null;
|
146
182
|
isDisabled?: boolean | undefined;
|
147
183
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
148
184
|
xHttpExtraParams?: unknown;
|
@@ -161,8 +197,11 @@ export declare namespace UpdateHostCommand {
|
|
161
197
|
fingerprint: string | null;
|
162
198
|
isDisabled: boolean;
|
163
199
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
164
|
-
|
165
|
-
|
200
|
+
inbound: {
|
201
|
+
configProfileUuid: string | null;
|
202
|
+
configProfileInboundUuid: string | null;
|
203
|
+
};
|
204
|
+
serverDescription: string | null;
|
166
205
|
xHttpExtraParams?: unknown;
|
167
206
|
};
|
168
207
|
}, {
|
@@ -177,8 +216,11 @@ export declare namespace UpdateHostCommand {
|
|
177
216
|
host: string | null;
|
178
217
|
alpn: string | null;
|
179
218
|
fingerprint: string | null;
|
180
|
-
|
181
|
-
|
219
|
+
inbound: {
|
220
|
+
configProfileUuid: string | null;
|
221
|
+
configProfileInboundUuid: string | null;
|
222
|
+
};
|
223
|
+
serverDescription: string | null;
|
182
224
|
isDisabled?: boolean | undefined;
|
183
225
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
184
226
|
xHttpExtraParams?: unknown;
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4CxB,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,15 @@ 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
|
+
serverDescription: zod_1.z.optional(zod_1.z
|
50
|
+
.string()
|
51
|
+
.max(30, {
|
52
|
+
message: 'Server description must be less than 30 characters',
|
53
|
+
})
|
54
|
+
.nullable()),
|
56
55
|
});
|
57
56
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
58
57
|
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 = {}));
|