Files
alrahma_sunday_school_api/apps/api/dist/modules/admin/admin.repo.d.ts
T
2026-06-11 03:22:12 -04:00

161 lines
5.1 KiB
TypeScript

export declare function findAdminByEmail(email: string): any;
export declare function findAdminByIdOrThrow(id: string): any;
export declare function updateAdminLastLogin(id: string): any;
export declare function updateAdminTotpSecret(id: string, secret: string): any;
export declare function enableAdminTotp(id: string): any;
export declare function replaceAdminRecoveryCodes(adminUserId: string, codeHashes: string[]): Promise<any>;
export declare function listUnusedAdminRecoveryCodes(adminUserId: string): any;
export declare function markAdminRecoveryCodeUsed(id: string): any;
export declare function setAdminPasswordReset(id: string, token: string, expiresAt: Date): any;
export declare function findAdminByResetToken(token: string): any;
export declare function updateAdminPassword(id: string, passwordHash: string): any;
export declare function createAuditLog(data: Record<string, unknown>): any;
export declare function listCompaniesPage(query: {
q?: string;
status?: string;
plan?: string;
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
export declare function getCompanyDetail(id: string): any;
export declare function getCompanyUpdateSnapshot(id: string): any;
export declare function applyCompanyUpdate(id: string, body: any, current: {
name: string;
slug: string;
address?: unknown;
brand?: {
paymentMethodsEnabled?: any[] | null;
} | null;
}): Promise<any>;
export declare function updateCompanyStatus(id: string, status: string): any;
export declare function deleteCompany(id: string): any;
export declare function getCompanyForImpersonation(id: string): any;
export declare function listRentersPage(query: {
q?: string;
blocked?: string;
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
export declare function updateRenterActive(id: string, isActive: boolean): any;
export declare function getPlatformMetricCounts(): Promise<{
totalCompanies: any;
activeCompanies: any;
trialingCompanies: any;
suspendedCompanies: any;
totalRenters: any;
totalReservations: any;
}>;
export declare function listAuditLogsPage(query: {
adminId?: string;
action?: string;
companyId?: string;
entityId?: string;
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
export declare function listAdmins(): any;
export declare function createAdmin(data: {
email: string;
firstName: string;
lastName: string;
role: string;
passwordHash: string;
permissions?: any[];
}): any;
export declare function updateAdminRole(id: string, role: string): any;
export declare function updateAdmin(id: string, data: {
email?: string;
firstName?: string;
lastName?: string;
role?: string;
passwordHash?: string;
isActive?: boolean;
}): any;
export declare function replaceAdminPermissions(id: string, permissions: any[]): Promise<any>;
export declare function listBillingPage(query: {
status?: string;
plan?: string;
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
export declare function listActiveSubscriptionsForMrr(): any;
export declare function getBillingStatusCounts(): Promise<{
activeCount: any;
trialingCount: any;
pastDueCount: any;
cancelledCount: any;
}>;
export declare function listCompanyInvoicesPage(companyId: string, query: {
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
export declare function getInvoicePdfRecord(invoiceId: string): any;
export declare function listPricingConfigs(): any;
export declare function upsertPricingConfig(plan: string, billingPeriod: string, amount: number, updatedBy?: string): any;
export declare function listPlanFeatures(): any;
export declare function createPlanFeature(data: {
plan: 'STARTER' | 'GROWTH' | 'PRO';
label: string;
sortOrder?: number;
}): any;
export declare function updatePlanFeature(id: string, data: Partial<{
plan: 'STARTER' | 'GROWTH' | 'PRO';
label: string;
sortOrder: number;
}>): any;
export declare function deletePlanFeature(id: string): any;
export declare function listPromotions(): any;
export declare function createPromotion(data: {
code: string;
name: string;
description?: string | null;
discountType: string;
discountValue: number;
plans: string[];
periods: string[];
maxUses?: number | null;
validFrom: string;
validUntil?: string | null;
isActive: boolean;
createdBy?: string | null;
}): any;
export declare function updatePromotion(id: string, data: Partial<{
code: string;
name: string;
description: string | null;
discountType: string;
discountValue: number;
plans: string[];
periods: string[];
maxUses: number | null;
validFrom: string;
validUntil: string | null;
isActive: boolean;
}>): any;
export declare function deletePromotion(id: string): any;
export declare function listNotificationsPage(query: {
channel?: string;
status?: string;
companyId?: string;
page: number;
pageSize: number;
}): Promise<{
data: any;
total: any;
}>;
//# sourceMappingURL=admin.repo.d.ts.map