@remnawave/backend-contract 2.0.0-alpha.2 → 2.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- package/build/backend/api/controllers/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +15 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +15 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +44 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +7 -11
- package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +54 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +4 -11
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +413 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +407 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +399 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +62 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +85 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +75 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +75 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/hosts.schema.d.ts +18 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +4 -2
- package/build/backend/models/index.d.ts +4 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/infra-billing-node.schema.d.ts +153 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/infra-provider.schema.d.ts +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +41 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +3 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +15 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +7 -11
- package/build/frontend/commands/hosts/update.command.js +4 -11
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/constants/errors/errors.js +75 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/hosts.schema.js +4 -2
- package/build/frontend/models/index.js +4 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/models/infra-provider.schema.js +41 -0
- package/build/frontend/models/nodes.schema.js +3 -0
- package/package.json +1 -1
|
@@ -649,5 +649,80 @@ export declare const ERRORS: {
|
|
|
649
649
|
readonly message: "Config profile inbound not found in specified profile";
|
|
650
650
|
readonly httpCode: 404;
|
|
651
651
|
};
|
|
652
|
+
readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
|
|
653
|
+
readonly code: "A125";
|
|
654
|
+
readonly message: "Get user accessible nodes error";
|
|
655
|
+
readonly httpCode: 500;
|
|
656
|
+
};
|
|
657
|
+
readonly GET_INFRA_PROVIDERS_ERROR: {
|
|
658
|
+
readonly code: "A126";
|
|
659
|
+
readonly message: "Get infra providers error";
|
|
660
|
+
readonly httpCode: 500;
|
|
661
|
+
};
|
|
662
|
+
readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
|
663
|
+
readonly code: "A127";
|
|
664
|
+
readonly message: "Get infra provider by UUID error";
|
|
665
|
+
readonly httpCode: 500;
|
|
666
|
+
};
|
|
667
|
+
readonly INFRA_PROVIDER_NOT_FOUND: {
|
|
668
|
+
readonly code: "A128";
|
|
669
|
+
readonly message: "Infra provider not found";
|
|
670
|
+
readonly httpCode: 404;
|
|
671
|
+
};
|
|
672
|
+
readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
|
673
|
+
readonly code: "A129";
|
|
674
|
+
readonly message: "Delete infra provider by UUID error";
|
|
675
|
+
readonly httpCode: 500;
|
|
676
|
+
};
|
|
677
|
+
readonly CREATE_INFRA_PROVIDER_ERROR: {
|
|
678
|
+
readonly code: "A130";
|
|
679
|
+
readonly message: "Create infra provider error";
|
|
680
|
+
readonly httpCode: 500;
|
|
681
|
+
};
|
|
682
|
+
readonly UPDATE_INFRA_PROVIDER_ERROR: {
|
|
683
|
+
readonly code: "A131";
|
|
684
|
+
readonly message: "Update infra provider error";
|
|
685
|
+
readonly httpCode: 500;
|
|
686
|
+
};
|
|
687
|
+
readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
|
688
|
+
readonly code: "A132";
|
|
689
|
+
readonly message: "Create infra billing history record error";
|
|
690
|
+
readonly httpCode: 500;
|
|
691
|
+
};
|
|
692
|
+
readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
|
693
|
+
readonly code: "A133";
|
|
694
|
+
readonly message: "Get infra billing history records error";
|
|
695
|
+
readonly httpCode: 500;
|
|
696
|
+
};
|
|
697
|
+
readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
|
698
|
+
readonly code: "A134";
|
|
699
|
+
readonly message: "Delete infra billing history record by UUID error";
|
|
700
|
+
readonly httpCode: 500;
|
|
701
|
+
};
|
|
702
|
+
readonly GET_BILLING_NODES_ERROR: {
|
|
703
|
+
readonly code: "A135";
|
|
704
|
+
readonly message: "Get billing nodes error";
|
|
705
|
+
readonly httpCode: 500;
|
|
706
|
+
};
|
|
707
|
+
readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
|
|
708
|
+
readonly code: "A136";
|
|
709
|
+
readonly message: "Update infra billing node error";
|
|
710
|
+
readonly httpCode: 500;
|
|
711
|
+
};
|
|
712
|
+
readonly CREATE_INFRA_BILLING_NODE_ERROR: {
|
|
713
|
+
readonly code: "A137";
|
|
714
|
+
readonly message: "Create infra billing node error";
|
|
715
|
+
readonly httpCode: 500;
|
|
716
|
+
};
|
|
717
|
+
readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
|
718
|
+
readonly code: "A138";
|
|
719
|
+
readonly message: "Delete infra billing node by UUID error";
|
|
720
|
+
readonly httpCode: 500;
|
|
721
|
+
};
|
|
722
|
+
readonly GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
|
723
|
+
readonly code: "A139";
|
|
724
|
+
readonly message: "Get billing nodes for notifications error";
|
|
725
|
+
readonly httpCode: 500;
|
|
726
|
+
};
|
|
652
727
|
};
|
|
653
728
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Y3B,CAAC"}
|
|
@@ -620,4 +620,79 @@ exports.ERRORS = {
|
|
|
620
620
|
message: 'Config profile inbound not found in specified profile',
|
|
621
621
|
httpCode: 404,
|
|
622
622
|
},
|
|
623
|
+
GET_USER_ACCESSIBLE_NODES_ERROR: {
|
|
624
|
+
code: 'A125',
|
|
625
|
+
message: 'Get user accessible nodes error',
|
|
626
|
+
httpCode: 500,
|
|
627
|
+
},
|
|
628
|
+
GET_INFRA_PROVIDERS_ERROR: {
|
|
629
|
+
code: 'A126',
|
|
630
|
+
message: 'Get infra providers error',
|
|
631
|
+
httpCode: 500,
|
|
632
|
+
},
|
|
633
|
+
GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
|
634
|
+
code: 'A127',
|
|
635
|
+
message: 'Get infra provider by UUID error',
|
|
636
|
+
httpCode: 500,
|
|
637
|
+
},
|
|
638
|
+
INFRA_PROVIDER_NOT_FOUND: {
|
|
639
|
+
code: 'A128',
|
|
640
|
+
message: 'Infra provider not found',
|
|
641
|
+
httpCode: 404,
|
|
642
|
+
},
|
|
643
|
+
DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
|
644
|
+
code: 'A129',
|
|
645
|
+
message: 'Delete infra provider by UUID error',
|
|
646
|
+
httpCode: 500,
|
|
647
|
+
},
|
|
648
|
+
CREATE_INFRA_PROVIDER_ERROR: {
|
|
649
|
+
code: 'A130',
|
|
650
|
+
message: 'Create infra provider error',
|
|
651
|
+
httpCode: 500,
|
|
652
|
+
},
|
|
653
|
+
UPDATE_INFRA_PROVIDER_ERROR: {
|
|
654
|
+
code: 'A131',
|
|
655
|
+
message: 'Update infra provider error',
|
|
656
|
+
httpCode: 500,
|
|
657
|
+
},
|
|
658
|
+
CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
|
659
|
+
code: 'A132',
|
|
660
|
+
message: 'Create infra billing history record error',
|
|
661
|
+
httpCode: 500,
|
|
662
|
+
},
|
|
663
|
+
GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
|
664
|
+
code: 'A133',
|
|
665
|
+
message: 'Get infra billing history records error',
|
|
666
|
+
httpCode: 500,
|
|
667
|
+
},
|
|
668
|
+
DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
|
669
|
+
code: 'A134',
|
|
670
|
+
message: 'Delete infra billing history record by UUID error',
|
|
671
|
+
httpCode: 500,
|
|
672
|
+
},
|
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
|
674
|
+
code: 'A135',
|
|
675
|
+
message: 'Get billing nodes error',
|
|
676
|
+
httpCode: 500,
|
|
677
|
+
},
|
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
|
679
|
+
code: 'A136',
|
|
680
|
+
message: 'Update infra billing node error',
|
|
681
|
+
httpCode: 500,
|
|
682
|
+
},
|
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
|
684
|
+
code: 'A137',
|
|
685
|
+
message: 'Create infra billing node error',
|
|
686
|
+
httpCode: 500,
|
|
687
|
+
},
|
|
688
|
+
DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
|
689
|
+
code: 'A138',
|
|
690
|
+
message: 'Delete infra billing node by UUID error',
|
|
691
|
+
httpCode: 500,
|
|
692
|
+
},
|
|
693
|
+
GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
|
694
|
+
code: 'A139',
|
|
695
|
+
message: 'Get billing nodes for notifications error',
|
|
696
|
+
httpCode: 500,
|
|
697
|
+
},
|
|
623
698
|
};
|
|
@@ -36,13 +36,24 @@ export declare const EVENTS: {
|
|
|
36
36
|
readonly ERRORS: {
|
|
37
37
|
readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
|
38
38
|
};
|
|
39
|
+
readonly CRM: {
|
|
40
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: "crm.infra_billing_node_payment_in_7_days";
|
|
41
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_48HRS: "crm.infra_billing_node_payment_in_48hrs";
|
|
42
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_24HRS: "crm.infra_billing_node_payment_in_24hrs";
|
|
43
|
+
readonly INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: "crm.infra_billing_node_payment_due_today";
|
|
44
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: "crm.infra_billing_node_payment_overdue_24hrs";
|
|
45
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
|
|
46
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
|
|
47
|
+
};
|
|
39
48
|
readonly CATCH_ALL_USER_EVENTS: "user.*";
|
|
40
49
|
readonly CATCH_ALL_NODE_EVENTS: "node.*";
|
|
41
50
|
readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
|
|
42
51
|
readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
|
|
52
|
+
readonly CATCH_ALL_CRM_EVENTS: "crm.*";
|
|
43
53
|
};
|
|
44
54
|
export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
|
|
45
55
|
export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
|
|
46
56
|
export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
|
|
47
57
|
export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
|
|
58
|
+
export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
|
|
48
59
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -39,8 +39,18 @@ exports.EVENTS = {
|
|
|
39
39
|
ERRORS: {
|
|
40
40
|
BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
|
|
41
41
|
},
|
|
42
|
+
CRM: {
|
|
43
|
+
INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: 'crm.infra_billing_node_payment_in_7_days',
|
|
44
|
+
INFRA_BILLING_NODE_PAYMENT_IN_48HRS: 'crm.infra_billing_node_payment_in_48hrs',
|
|
45
|
+
INFRA_BILLING_NODE_PAYMENT_IN_24HRS: 'crm.infra_billing_node_payment_in_24hrs',
|
|
46
|
+
INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: 'crm.infra_billing_node_payment_due_today',
|
|
47
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: 'crm.infra_billing_node_payment_overdue_24hrs',
|
|
48
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
|
|
49
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
|
|
50
|
+
},
|
|
42
51
|
CATCH_ALL_USER_EVENTS: 'user.*',
|
|
43
52
|
CATCH_ALL_NODE_EVENTS: 'node.*',
|
|
44
53
|
CATCH_ALL_SERVICE_EVENTS: 'service.*',
|
|
45
54
|
CATCH_ALL_ERRORS_EVENTS: 'errors.*',
|
|
55
|
+
CATCH_ALL_CRM_EVENTS: 'crm.*',
|
|
46
56
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL"];
|
|
1
|
+
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
|
|
2
2
|
export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
|
|
3
3
|
//# sourceMappingURL=template-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kJAWhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -17,8 +17,16 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
17
17
|
readonly NONE: "NONE";
|
|
18
18
|
}>>;
|
|
19
19
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
inbound: z.ZodObject<{
|
|
21
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
|
22
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
configProfileUuid: string | null;
|
|
25
|
+
configProfileInboundUuid: string | null;
|
|
26
|
+
}, {
|
|
27
|
+
configProfileUuid: string | null;
|
|
28
|
+
configProfileInboundUuid: string | null;
|
|
29
|
+
}>;
|
|
22
30
|
}, "strip", z.ZodTypeAny, {
|
|
23
31
|
path: string | null;
|
|
24
32
|
uuid: string;
|
|
@@ -32,8 +40,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
32
40
|
fingerprint: string | null;
|
|
33
41
|
isDisabled: boolean;
|
|
34
42
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
inbound: {
|
|
44
|
+
configProfileUuid: string | null;
|
|
45
|
+
configProfileInboundUuid: string | null;
|
|
46
|
+
};
|
|
37
47
|
xHttpExtraParams?: unknown;
|
|
38
48
|
}, {
|
|
39
49
|
path: string | null;
|
|
@@ -46,8 +56,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
46
56
|
host: string | null;
|
|
47
57
|
alpn: string | null;
|
|
48
58
|
fingerprint: string | null;
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
inbound: {
|
|
60
|
+
configProfileUuid: string | null;
|
|
61
|
+
configProfileInboundUuid: string | null;
|
|
62
|
+
};
|
|
51
63
|
isDisabled?: boolean | undefined;
|
|
52
64
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
53
65
|
xHttpExtraParams?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
|
|
@@ -17,6 +17,8 @@ exports.HostsSchema = zod_1.z.object({
|
|
|
17
17
|
isDisabled: zod_1.z.boolean().default(false),
|
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
inbound: zod_1.z.object({
|
|
21
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
|
22
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
|
23
|
+
}),
|
|
22
24
|
});
|
|
@@ -8,6 +8,10 @@ export * from './extented-users.schema';
|
|
|
8
8
|
export * from './happ.schema';
|
|
9
9
|
export * from './hosts.schema';
|
|
10
10
|
export * from './hwid-user-device.schema';
|
|
11
|
+
export * from './infra-billing-available-node.schema';
|
|
12
|
+
export * from './infra-billing-history-record.schema';
|
|
13
|
+
export * from './infra-billing-node.schema';
|
|
14
|
+
export * from './infra-provider.schema';
|
|
11
15
|
export * from './internal-squad.schema';
|
|
12
16
|
export * from './last-connected-node.schema';
|
|
13
17
|
export * from './nodes.schema';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
|
@@ -24,6 +24,10 @@ __exportStar(require("./extented-users.schema"), exports);
|
|
|
24
24
|
__exportStar(require("./happ.schema"), exports);
|
|
25
25
|
__exportStar(require("./hosts.schema"), exports);
|
|
26
26
|
__exportStar(require("./hwid-user-device.schema"), exports);
|
|
27
|
+
__exportStar(require("./infra-billing-available-node.schema"), exports);
|
|
28
|
+
__exportStar(require("./infra-billing-history-record.schema"), exports);
|
|
29
|
+
__exportStar(require("./infra-billing-node.schema"), exports);
|
|
30
|
+
__exportStar(require("./infra-provider.schema"), exports);
|
|
27
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
28
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
29
33
|
__exportStar(require("./nodes.schema"), exports);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pick<{
|
|
2
|
+
uuid: import("zod").ZodString;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
address: import("zod").ZodString;
|
|
5
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
6
|
+
isConnected: import("zod").ZodBoolean;
|
|
7
|
+
isDisabled: import("zod").ZodBoolean;
|
|
8
|
+
isConnecting: import("zod").ZodBoolean;
|
|
9
|
+
isNodeOnline: import("zod").ZodBoolean;
|
|
10
|
+
isXrayRunning: import("zod").ZodBoolean;
|
|
11
|
+
lastStatusChange: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, Date, string>>;
|
|
12
|
+
lastStatusMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13
|
+
xrayVersion: import("zod").ZodNullable<import("zod").ZodString>;
|
|
14
|
+
xrayUptime: import("zod").ZodString;
|
|
15
|
+
isTrafficTrackingActive: import("zod").ZodBoolean;
|
|
16
|
+
trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
17
|
+
trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
18
|
+
trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
19
|
+
notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
20
|
+
usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
21
|
+
viewPosition: import("zod").ZodNumber;
|
|
22
|
+
countryCode: import("zod").ZodString;
|
|
23
|
+
consumptionMultiplier: import("zod").ZodNumber;
|
|
24
|
+
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
25
|
+
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
|
26
|
+
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
|
27
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
28
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
29
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
|
30
|
+
activeInbounds: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
|
|
31
|
+
uuid: import("zod").ZodString;
|
|
32
|
+
profileUuid: import("zod").ZodString;
|
|
33
|
+
tag: import("zod").ZodString;
|
|
34
|
+
type: import("zod").ZodString;
|
|
35
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
|
36
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
|
37
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
38
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
40
|
+
type: string;
|
|
41
|
+
uuid: string;
|
|
42
|
+
profileUuid: string;
|
|
43
|
+
tag: string;
|
|
44
|
+
network: string | null;
|
|
45
|
+
security: string | null;
|
|
46
|
+
port: number | null;
|
|
47
|
+
rawInbound?: unknown;
|
|
48
|
+
}, {
|
|
49
|
+
type: string;
|
|
50
|
+
uuid: string;
|
|
51
|
+
profileUuid: string;
|
|
52
|
+
tag: string;
|
|
53
|
+
network: string | null;
|
|
54
|
+
security: string | null;
|
|
55
|
+
port: number | null;
|
|
56
|
+
rawInbound?: unknown;
|
|
57
|
+
}>, "many">>;
|
|
58
|
+
providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
|
59
|
+
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
60
|
+
uuid: import("zod").ZodString;
|
|
61
|
+
name: import("zod").ZodString;
|
|
62
|
+
faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
|
|
63
|
+
loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
64
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
65
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
66
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
67
|
+
uuid: string;
|
|
68
|
+
createdAt: Date;
|
|
69
|
+
updatedAt: Date;
|
|
70
|
+
name: string;
|
|
71
|
+
faviconLink: string | null;
|
|
72
|
+
loginUrl: string | null;
|
|
73
|
+
}, {
|
|
74
|
+
uuid: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
name: string;
|
|
78
|
+
faviconLink: string | null;
|
|
79
|
+
loginUrl: string | null;
|
|
80
|
+
}>>;
|
|
81
|
+
}, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
|
|
82
|
+
uuid: string;
|
|
83
|
+
name: string;
|
|
84
|
+
countryCode: string;
|
|
85
|
+
}, {
|
|
86
|
+
uuid: string;
|
|
87
|
+
name: string;
|
|
88
|
+
countryCode: string;
|
|
89
|
+
}>;
|
|
90
|
+
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraBillingAvailableNodeSchema = void 0;
|
|
4
|
+
const nodes_schema_1 = require("./nodes.schema");
|
|
5
|
+
exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
|
|
6
|
+
uuid: true,
|
|
7
|
+
name: true,
|
|
8
|
+
countryCode: true,
|
|
9
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const InfraBillingHistoryRecordSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
providerUuid: z.ZodString;
|
|
5
|
+
amount: z.ZodNumber;
|
|
6
|
+
billedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
7
|
+
provider: z.ZodObject<Omit<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
|
11
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
|
12
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
13
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
14
|
+
}, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
|
|
15
|
+
uuid: string;
|
|
16
|
+
name: string;
|
|
17
|
+
faviconLink: string | null;
|
|
18
|
+
}, {
|
|
19
|
+
uuid: string;
|
|
20
|
+
name: string;
|
|
21
|
+
faviconLink: string | null;
|
|
22
|
+
}>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
uuid: string;
|
|
25
|
+
providerUuid: string;
|
|
26
|
+
provider: {
|
|
27
|
+
uuid: string;
|
|
28
|
+
name: string;
|
|
29
|
+
faviconLink: string | null;
|
|
30
|
+
};
|
|
31
|
+
amount: number;
|
|
32
|
+
billedAt: Date;
|
|
33
|
+
}, {
|
|
34
|
+
uuid: string;
|
|
35
|
+
providerUuid: string;
|
|
36
|
+
provider: {
|
|
37
|
+
uuid: string;
|
|
38
|
+
name: string;
|
|
39
|
+
faviconLink: string | null;
|
|
40
|
+
};
|
|
41
|
+
amount: number;
|
|
42
|
+
billedAt: string;
|
|
43
|
+
}>;
|
|
44
|
+
//# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-billing-history-record.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-history-record.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraBillingHistoryRecordSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
6
|
+
exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
providerUuid: zod_1.z.string().uuid(),
|
|
9
|
+
amount: zod_1.z.number(),
|
|
10
|
+
billedAt: zod_1.z
|
|
11
|
+
.string()
|
|
12
|
+
.datetime()
|
|
13
|
+
.transform((str) => new Date(str)),
|
|
14
|
+
provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
|
|
15
|
+
createdAt: true,
|
|
16
|
+
updatedAt: true,
|
|
17
|
+
loginUrl: true,
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
nodeUuid: z.ZodString;
|
|
5
|
+
providerUuid: z.ZodString;
|
|
6
|
+
provider: z.ZodObject<Pick<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
|
10
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
12
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
13
|
+
}, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
|
|
14
|
+
uuid: string;
|
|
15
|
+
name: string;
|
|
16
|
+
faviconLink: string | null;
|
|
17
|
+
loginUrl: string | null;
|
|
18
|
+
}, {
|
|
19
|
+
uuid: string;
|
|
20
|
+
name: string;
|
|
21
|
+
faviconLink: string | null;
|
|
22
|
+
loginUrl: string | null;
|
|
23
|
+
}>;
|
|
24
|
+
node: z.ZodObject<Pick<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
address: z.ZodString;
|
|
28
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
isConnected: z.ZodBoolean;
|
|
30
|
+
isDisabled: z.ZodBoolean;
|
|
31
|
+
isConnecting: z.ZodBoolean;
|
|
32
|
+
isNodeOnline: z.ZodBoolean;
|
|
33
|
+
isXrayRunning: z.ZodBoolean;
|
|
34
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
35
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
|
36
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
|
37
|
+
xrayUptime: z.ZodString;
|
|
38
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
|
39
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
viewPosition: z.ZodNumber;
|
|
45
|
+
countryCode: z.ZodString;
|
|
46
|
+
consumptionMultiplier: z.ZodNumber;
|
|
47
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
48
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
|
49
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
|
50
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
51
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
52
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
|
53
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
|
+
uuid: z.ZodString;
|
|
55
|
+
profileUuid: z.ZodString;
|
|
56
|
+
tag: z.ZodString;
|
|
57
|
+
type: z.ZodString;
|
|
58
|
+
network: z.ZodNullable<z.ZodString>;
|
|
59
|
+
security: z.ZodNullable<z.ZodString>;
|
|
60
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
type: string;
|
|
64
|
+
uuid: string;
|
|
65
|
+
profileUuid: string;
|
|
66
|
+
tag: string;
|
|
67
|
+
network: string | null;
|
|
68
|
+
security: string | null;
|
|
69
|
+
port: number | null;
|
|
70
|
+
rawInbound?: unknown;
|
|
71
|
+
}, {
|
|
72
|
+
type: string;
|
|
73
|
+
uuid: string;
|
|
74
|
+
profileUuid: string;
|
|
75
|
+
tag: string;
|
|
76
|
+
network: string | null;
|
|
77
|
+
security: string | null;
|
|
78
|
+
port: number | null;
|
|
79
|
+
rawInbound?: unknown;
|
|
80
|
+
}>, "many">>;
|
|
81
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
|
82
|
+
provider: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
uuid: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
|
86
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
|
87
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
88
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
uuid: string;
|
|
91
|
+
createdAt: Date;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
name: string;
|
|
94
|
+
faviconLink: string | null;
|
|
95
|
+
loginUrl: string | null;
|
|
96
|
+
}, {
|
|
97
|
+
uuid: string;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
name: string;
|
|
101
|
+
faviconLink: string | null;
|
|
102
|
+
loginUrl: string | null;
|
|
103
|
+
}>>;
|
|
104
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
|
105
|
+
uuid: string;
|
|
106
|
+
name: string;
|
|
107
|
+
countryCode: string;
|
|
108
|
+
}, {
|
|
109
|
+
uuid: string;
|
|
110
|
+
name: string;
|
|
111
|
+
countryCode: string;
|
|
112
|
+
}>;
|
|
113
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
114
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
115
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
uuid: string;
|
|
118
|
+
createdAt: Date;
|
|
119
|
+
updatedAt: Date;
|
|
120
|
+
nodeUuid: string;
|
|
121
|
+
providerUuid: string;
|
|
122
|
+
provider: {
|
|
123
|
+
uuid: string;
|
|
124
|
+
name: string;
|
|
125
|
+
faviconLink: string | null;
|
|
126
|
+
loginUrl: string | null;
|
|
127
|
+
};
|
|
128
|
+
node: {
|
|
129
|
+
uuid: string;
|
|
130
|
+
name: string;
|
|
131
|
+
countryCode: string;
|
|
132
|
+
};
|
|
133
|
+
nextBillingAt: Date;
|
|
134
|
+
}, {
|
|
135
|
+
uuid: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
nodeUuid: string;
|
|
139
|
+
providerUuid: string;
|
|
140
|
+
provider: {
|
|
141
|
+
uuid: string;
|
|
142
|
+
name: string;
|
|
143
|
+
faviconLink: string | null;
|
|
144
|
+
loginUrl: string | null;
|
|
145
|
+
};
|
|
146
|
+
node: {
|
|
147
|
+
uuid: string;
|
|
148
|
+
name: string;
|
|
149
|
+
countryCode: string;
|
|
150
|
+
};
|
|
151
|
+
nextBillingAt: string;
|
|
152
|
+
}>;
|
|
153
|
+
//# sourceMappingURL=infra-billing-node.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
|