@remnawave/backend-contract 2.0.0-alpha.19 → 2.0.0-alpha.2
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 +0 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +0 -1
- package/build/backend/api/controllers/users.d.ts +0 -1
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -1
- package/build/backend/api/routes.d.ts +0 -15
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -15
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -4
- package/build/backend/commands/index.d.ts +0 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +0 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +0 -59
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +0 -59
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +0 -82
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +0 -62
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +0 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +0 -59
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +0 -59
- 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 +0 -85
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +0 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +0 -75
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -75
- package/build/backend/constants/events/events.d.ts +0 -11
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +0 -10
- 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 +0 -1
- package/build/backend/models/index.d.ts +0 -4
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +0 -4
- package/build/backend/models/nodes.schema.d.ts +0 -41
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +0 -3
- package/build/frontend/api/controllers/index.js +0 -1
- package/build/frontend/api/controllers/users.js +0 -1
- package/build/frontend/api/routes.js +0 -15
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +2 -4
- package/build/frontend/commands/index.js +0 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/nodes/create.command.js +0 -1
- package/build/frontend/commands/nodes/update.command.js +0 -1
- package/build/frontend/commands/users/index.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -75
- package/build/frontend/constants/events/events.js +0 -10
- package/build/frontend/constants/templates/template-keys.js +0 -1
- package/build/frontend/models/index.js +0 -4
- package/build/frontend/models/nodes.schema.js +0 -3
- package/package.json +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts +0 -16
- package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
- package/build/backend/api/controllers/infra-billing.js +0 -18
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -413
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -407
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +0 -399
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +0 -26
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/backend/commands/infra-billing/index.d.ts +0 -13
- package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/index.js +0 -28
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -410
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -90
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-available-node.schema.js +0 -9
- package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-history-record.schema.js +0 -19
- package/build/backend/models/infra-billing-node.schema.d.ts +0 -153
- package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-node.schema.js +0 -34
- package/build/backend/models/infra-provider.schema.d.ts +0 -87
- package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
- package/build/backend/models/infra-provider.schema.js +0 -41
- package/build/frontend/api/controllers/infra-billing.js +0 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +0 -26
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/frontend/commands/infra-billing/index.js +0 -28
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
- package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
- package/build/frontend/models/infra-billing-node.schema.js +0 -34
- package/build/frontend/models/infra-provider.schema.js +0 -41
@@ -649,80 +649,5 @@ 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
|
-
};
|
727
652
|
};
|
728
653
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,CAAC"}
|
@@ -620,79 +620,4 @@ 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
|
-
},
|
698
623
|
};
|
@@ -36,24 +36,13 @@ 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
|
-
};
|
48
39
|
readonly CATCH_ALL_USER_EVENTS: "user.*";
|
49
40
|
readonly CATCH_ALL_NODE_EVENTS: "node.*";
|
50
41
|
readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
|
51
42
|
readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
|
52
|
-
readonly CATCH_ALL_CRM_EVENTS: "crm.*";
|
53
43
|
};
|
54
44
|
export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
|
55
45
|
export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
|
56
46
|
export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
|
57
47
|
export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
|
58
|
-
export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
|
59
48
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CT,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"}
|
@@ -39,18 +39,8 @@ 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
|
-
},
|
51
42
|
CATCH_ALL_USER_EVENTS: 'user.*',
|
52
43
|
CATCH_ALL_NODE_EVENTS: 'node.*',
|
53
44
|
CATCH_ALL_SERVICE_EVENTS: 'service.*',
|
54
45
|
CATCH_ALL_ERRORS_EVENTS: 'errors.*',
|
55
|
-
CATCH_ALL_CRM_EVENTS: 'crm.*',
|
56
46
|
};
|
@@ -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"];
|
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,2IAUhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -8,10 +8,6 @@ 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';
|
15
11
|
export * from './internal-squad.schema';
|
16
12
|
export * from './last-connected-node.schema';
|
17
13
|
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,
|
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"}
|
@@ -24,10 +24,6 @@ __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);
|
31
27
|
__exportStar(require("./internal-squad.schema"), exports);
|
32
28
|
__exportStar(require("./last-connected-node.schema"), exports);
|
33
29
|
__exportStar(require("./nodes.schema"), exports);
|
@@ -56,29 +56,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
56
56
|
port: number | null;
|
57
57
|
rawInbound?: unknown;
|
58
58
|
}>, "many">>;
|
59
|
-
providerUuid: z.ZodNullable<z.ZodString>;
|
60
|
-
provider: z.ZodNullable<z.ZodObject<{
|
61
|
-
uuid: z.ZodString;
|
62
|
-
name: z.ZodString;
|
63
|
-
faviconLink: z.ZodNullable<z.ZodString>;
|
64
|
-
loginUrl: z.ZodNullable<z.ZodString>;
|
65
|
-
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
66
|
-
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
68
|
-
uuid: string;
|
69
|
-
createdAt: Date;
|
70
|
-
updatedAt: Date;
|
71
|
-
name: string;
|
72
|
-
faviconLink: string | null;
|
73
|
-
loginUrl: string | null;
|
74
|
-
}, {
|
75
|
-
uuid: string;
|
76
|
-
createdAt: string;
|
77
|
-
updatedAt: string;
|
78
|
-
name: string;
|
79
|
-
faviconLink: string | null;
|
80
|
-
loginUrl: string | null;
|
81
|
-
}>>;
|
82
59
|
}, "strip", z.ZodTypeAny, {
|
83
60
|
uuid: string;
|
84
61
|
createdAt: Date;
|
@@ -118,15 +95,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
118
95
|
port: number | null;
|
119
96
|
rawInbound?: unknown;
|
120
97
|
}[] | null;
|
121
|
-
providerUuid: string | null;
|
122
|
-
provider: {
|
123
|
-
uuid: string;
|
124
|
-
createdAt: Date;
|
125
|
-
updatedAt: Date;
|
126
|
-
name: string;
|
127
|
-
faviconLink: string | null;
|
128
|
-
loginUrl: string | null;
|
129
|
-
} | null;
|
130
98
|
}, {
|
131
99
|
uuid: string;
|
132
100
|
createdAt: string;
|
@@ -166,14 +134,5 @@ export declare const NodesSchema: z.ZodObject<{
|
|
166
134
|
port: number | null;
|
167
135
|
rawInbound?: unknown;
|
168
136
|
}[] | null;
|
169
|
-
providerUuid: string | null;
|
170
|
-
provider: {
|
171
|
-
uuid: string;
|
172
|
-
createdAt: string;
|
173
|
-
updatedAt: string;
|
174
|
-
name: string;
|
175
|
-
faviconLink: string | null;
|
176
|
-
loginUrl: string | null;
|
177
|
-
} | null;
|
178
137
|
}>;
|
179
138
|
//# sourceMappingURL=nodes.schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtB,CAAC"}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NodesSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
-
const infra_provider_schema_1 = require("./infra-provider.schema");
|
7
6
|
exports.NodesSchema = zod_1.z.object({
|
8
7
|
uuid: zod_1.z.string().uuid(),
|
9
8
|
name: zod_1.z.string(),
|
@@ -43,6 +42,4 @@ exports.NodesSchema = zod_1.z.object({
|
|
43
42
|
.transform((str) => new Date(str)),
|
44
43
|
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
45
44
|
activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
|
46
|
-
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
-
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
45
|
});
|
@@ -19,7 +19,6 @@ __exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
20
20
|
__exportStar(require("./hosts"), exports);
|
21
21
|
__exportStar(require("./hwid"), exports);
|
22
|
-
__exportStar(require("./infra-billing"), exports);
|
23
22
|
__exportStar(require("./internal-squads"), exports);
|
24
23
|
__exportStar(require("./keygen"), exports);
|
25
24
|
__exportStar(require("./nodes"), exports);
|
@@ -9,7 +9,6 @@ exports.USERS_ROUTES = {
|
|
9
9
|
GET: '',
|
10
10
|
DELETE: (uuid) => `${uuid}`,
|
11
11
|
GET_BY_UUID: (uuid) => `${uuid}`,
|
12
|
-
ACCESSIBLE_NODES: (uuid) => `${uuid}/accessible-nodes`,
|
13
12
|
ACTIONS: {
|
14
13
|
ENABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/enable`,
|
15
14
|
DISABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/disable`,
|
@@ -80,7 +80,6 @@ exports.REST_API = {
|
|
80
80
|
GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET}`,
|
81
81
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE(uuid)}`,
|
82
82
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID(uuid)}`,
|
83
|
-
ACCESSIBLE_NODES: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACCESSIBLE_NODES(uuid)}`,
|
84
83
|
ACTIONS: {
|
85
84
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
86
85
|
ENABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ENABLE(uuid)}`,
|
@@ -179,18 +178,4 @@ exports.REST_API = {
|
|
179
178
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
|
180
179
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
|
181
180
|
},
|
182
|
-
INFRA_BILLING: {
|
183
|
-
GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
|
184
|
-
CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
|
185
|
-
UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
|
186
|
-
DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
|
187
|
-
GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
|
188
|
-
GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
|
189
|
-
CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
|
190
|
-
UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
|
191
|
-
DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
|
192
|
-
GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
|
193
|
-
CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
|
194
|
-
DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
|
195
|
-
},
|
196
181
|
};
|
@@ -13,8 +13,8 @@ var CreateConfigProfileCommand;
|
|
13
13
|
CreateConfigProfileCommand.RequestSchema = zod_1.z.object({
|
14
14
|
name: zod_1.z
|
15
15
|
.string()
|
16
|
-
.min(
|
17
|
-
.max(
|
16
|
+
.min(6, 'Name must be at least 6 characters')
|
17
|
+
.max(16, 'Name must be less than 16 characters')
|
18
18
|
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
|
19
19
|
config: zod_1.z.object({}).passthrough(),
|
20
20
|
});
|
@@ -15,14 +15,12 @@ var CreateHostCommand;
|
|
15
15
|
.string({
|
16
16
|
invalid_type_error: 'Config Profile UUID must be a string',
|
17
17
|
})
|
18
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
-
.optional(),
|
18
|
+
.uuid('Config Profile UUID must be a valid UUID'),
|
20
19
|
configProfileInboundUuid: zod_1.z
|
21
20
|
.string({
|
22
21
|
invalid_type_error: 'Inbound UUID must be a string',
|
23
22
|
})
|
24
|
-
.uuid('Inbound UUID must be a valid UUID')
|
25
|
-
.optional(),
|
23
|
+
.uuid('Inbound UUID must be a valid UUID'),
|
26
24
|
remark: zod_1.z
|
27
25
|
.string({
|
28
26
|
invalid_type_error: 'Remark must be a string',
|
@@ -19,7 +19,6 @@ __exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
20
20
|
__exportStar(require("./hosts"), exports);
|
21
21
|
__exportStar(require("./hwid"), exports);
|
22
|
-
__exportStar(require("./infra-billing"), exports);
|
23
22
|
__exportStar(require("./internal-squads"), exports);
|
24
23
|
__exportStar(require("./keygen"), exports);
|
25
24
|
__exportStar(require("./nodes"), exports);
|
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
|
|
13
13
|
CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
14
|
name: zod_1.z
|
15
15
|
.string()
|
16
|
-
.min(
|
17
|
-
.max(
|
16
|
+
.min(6, 'Name must be at least 6 characters')
|
17
|
+
.max(16, 'Name must be less than 16 characters')
|
18
18
|
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
|
19
19
|
inbounds: zod_1.z.array(zod_1.z.string().uuid()),
|
20
20
|
});
|
@@ -39,7 +39,6 @@ var CreateNodeCommand;
|
|
39
39
|
activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
40
40
|
invalid_type_error: 'Active inbounds must be an array of UUIDs',
|
41
41
|
})),
|
42
|
-
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
43
42
|
});
|
44
43
|
CreateNodeCommand.ResponseSchema = zod_1.z.object({
|
45
44
|
response: models_1.NodesSchema,
|
@@ -35,7 +35,6 @@ var UpdateNodeCommand;
|
|
35
35
|
activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
36
36
|
invalid_type_error: 'Active inbounds must be an array of UUIDs',
|
37
37
|
})),
|
38
|
-
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
39
38
|
});
|
40
39
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
41
40
|
response: models_1.NodesSchema,
|
@@ -21,7 +21,6 @@ __exportStar(require("./create-user.command"), exports);
|
|
21
21
|
__exportStar(require("./delete-user.command"), exports);
|
22
22
|
__exportStar(require("./get-all-users.command"), exports);
|
23
23
|
__exportStar(require("./get-by"), exports);
|
24
|
-
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
25
24
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
26
25
|
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
27
26
|
__exportStar(require("./tags"), exports);
|
@@ -620,79 +620,4 @@ 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
|
-
},
|
698
623
|
};
|
@@ -39,18 +39,8 @@ 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
|
-
},
|
51
42
|
CATCH_ALL_USER_EVENTS: 'user.*',
|
52
43
|
CATCH_ALL_NODE_EVENTS: 'node.*',
|
53
44
|
CATCH_ALL_SERVICE_EVENTS: 'service.*',
|
54
45
|
CATCH_ALL_ERRORS_EVENTS: 'errors.*',
|
55
|
-
CATCH_ALL_CRM_EVENTS: 'crm.*',
|
56
46
|
};
|
@@ -24,10 +24,6 @@ __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);
|
31
27
|
__exportStar(require("./internal-squad.schema"), exports);
|
32
28
|
__exportStar(require("./last-connected-node.schema"), exports);
|
33
29
|
__exportStar(require("./nodes.schema"), exports);
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NodesSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
-
const infra_provider_schema_1 = require("./infra-provider.schema");
|
7
6
|
exports.NodesSchema = zod_1.z.object({
|
8
7
|
uuid: zod_1.z.string().uuid(),
|
9
8
|
name: zod_1.z.string(),
|
@@ -43,6 +42,4 @@ exports.NodesSchema = zod_1.z.object({
|
|
43
42
|
.transform((str) => new Date(str)),
|
44
43
|
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
45
44
|
activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
|
46
|
-
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
-
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
45
|
});
|
package/package.json
CHANGED
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare const INFRA_BILLING_CONTROLLER: "infra-billing";
|
2
|
-
export declare const INFRA_BILLING_ROUTES: {
|
3
|
-
readonly GET_PROVIDERS: "providers";
|
4
|
-
readonly CREATE_PROVIDER: "providers";
|
5
|
-
readonly UPDATE_PROVIDER: "providers";
|
6
|
-
readonly DELETE_PROVIDER: (uuid: string) => string;
|
7
|
-
readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
|
8
|
-
readonly GET_BILLING_NODES: "nodes";
|
9
|
-
readonly CREATE_BILLING_NODE: "nodes";
|
10
|
-
readonly UPDATE_BILLING_NODE: "nodes";
|
11
|
-
readonly DELETE_BILLING_NODE: (uuid: string) => string;
|
12
|
-
readonly GET_BILLING_HISTORY: "history";
|
13
|
-
readonly CREATE_BILLING_HISTORY: "history";
|
14
|
-
readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=infra-billing.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;;yCAKP,MAAM;;;4CAIH,MAAM;CAC/B,CAAC"}
|