feat: implement sysadmin subscription management and plan usage cycle recalculation tools
This commit is contained in:
@@ -2,7 +2,9 @@ import { IMetricsDocument } from "./Metrics.Adapter.Mongoose";
|
||||
|
||||
export type MetricsParams = {
|
||||
userId?: string;
|
||||
companyId?: string;
|
||||
quantity?: number;
|
||||
limit?: number;
|
||||
};
|
||||
|
||||
export type DeleteMetricsByCompany = {
|
||||
@@ -45,6 +47,8 @@ export interface IMetricsManager {
|
||||
addEmployee(data: MetricsParams): Promise<void>;
|
||||
addService(data: MetricsParams): Promise<void>;
|
||||
addAppointment(data: MetricsParams): Promise<void>;
|
||||
reserveAppointment(data: MetricsParams): Promise<boolean>;
|
||||
releaseAppointment(data: MetricsParams): Promise<void>;
|
||||
addClient(data: MetricsParams): Promise<void>;
|
||||
canAddOrganization(userId: string): Promise<boolean>;
|
||||
canAddEmployee(userId: string): Promise<boolean>;
|
||||
|
||||
Reference in New Issue
Block a user