@kenniy/event-contracts
Version:
Shared event schemas and stream definitions for 8Medical microservices architecture
38 lines • 3.11 kB
TypeScript
export declare const ConsumerGroups: {
readonly HRM_PROCESSORS: "hrm-business-processors";
readonly EMAIL_PROCESSORS: "email-notification-processors";
readonly SMS_PROCESSORS: "sms-notification-processors";
readonly ANALYTICS_PROCESSORS: "analytics-processors";
readonly AUDIT_PROCESSORS: "audit-trail-processors";
readonly PAYMENT_PROCESSORS: "payment-processors";
readonly TRANSPORT_PROCESSORS: "transport-processors";
readonly HEALTH_PROCESSORS: "health-monitoring-processors";
readonly INTEGRATION_PROCESSORS: "integration-processors";
readonly FILE_PROCESSORS: "file-processors";
};
export declare const ConsumerGroupStreams: {
readonly "hrm-business-processors": readonly ["user-service-events", "business-verification-events"];
readonly "email-notification-processors": readonly ["user-service-events", "hrm-service-events", "payment-service-events", "transport-service-events"];
readonly "sms-notification-processors": readonly ["user-service-events", "hrm-service-events", "transport-service-events"];
readonly "analytics-processors": readonly ["user-service-events", "hrm-service-events", "notification-service-events", "payment-service-events", "transport-service-events", "business-verification-events", "service-health-events"];
readonly "audit-trail-processors": readonly ["user-service-events", "hrm-service-events", "notification-service-events", "payment-service-events", "transport-service-events", "business-verification-events", "audit-events"];
readonly "payment-processors": readonly ["payment-service-events", "user-service-events"];
readonly "transport-processors": readonly ["transport-service-events", "hrm-service-events"];
readonly "health-monitoring-processors": readonly ["service-health-events", "audit-events"];
readonly "integration-processors": readonly [];
readonly "file-processors": readonly ["notification-service-events"];
};
export declare const ServiceConsumerRecommendations: {
readonly 'user-service': readonly ["analytics-processors", "audit-trail-processors"];
readonly 'hrm-service': readonly ["hrm-business-processors", "analytics-processors", "audit-trail-processors"];
readonly 'file-notification-service': readonly ["email-notification-processors", "sms-notification-processors", "file-processors", "analytics-processors"];
readonly 'payment-service': readonly ["payment-processors", "analytics-processors", "audit-trail-processors"];
readonly 'transport-service': readonly ["transport-processors", "analytics-processors"];
readonly 'analytics-service': readonly ["analytics-processors"];
readonly 'audit-service': readonly ["audit-trail-processors"];
};
export type ConsumerGroupName = typeof ConsumerGroups[keyof typeof ConsumerGroups];
export type ServiceName = keyof typeof ServiceConsumerRecommendations;
export declare function getServiceConsumerGroups(serviceName: ServiceName): readonly ConsumerGroupName[];
export declare function getConsumerGroupStreams(consumerGroup: ConsumerGroupName): readonly string[];
//# sourceMappingURL=index.d.ts.map