67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
/**
|
|
* Test wallet: play-money credits for platform discovery without real funds.
|
|
*/
|
|
export declare class TestWalletError extends Error {
|
|
constructor(message: string);
|
|
}
|
|
export declare function getSettingsForAdmin(): Promise<{
|
|
enabled: boolean;
|
|
creditAmountRaw: string;
|
|
maxRequestsPerUser: number;
|
|
cooldownHours: number;
|
|
walletTypeId: number;
|
|
walletCode: string | null;
|
|
updatedAt: Date;
|
|
}>;
|
|
export declare function updateSettings(input: {
|
|
enabled?: boolean;
|
|
creditAmountRaw?: string;
|
|
maxRequestsPerUser?: number;
|
|
cooldownHours?: number;
|
|
walletTypeId?: number;
|
|
}): Promise<{
|
|
enabled: boolean;
|
|
creditAmountRaw: string;
|
|
maxRequestsPerUser: number;
|
|
cooldownHours: number;
|
|
walletTypeId: number;
|
|
walletCode: string | null;
|
|
updatedAt: Date;
|
|
}>;
|
|
export declare function getUserTestWalletStatus(userId: string): Promise<{
|
|
enabled: boolean;
|
|
balanceRaw: string;
|
|
walletTypeId: number;
|
|
walletCode: string | null;
|
|
decimals: number;
|
|
creditAmountRaw: string;
|
|
maxRequests: number;
|
|
requestsUsed: number;
|
|
canRequest: boolean;
|
|
reason: string | null;
|
|
cooldownEndsAt: string | null;
|
|
}>;
|
|
export declare function requestTestCredits(userId: string): Promise<{
|
|
message: string;
|
|
amountRaw: string;
|
|
balanceRaw: string;
|
|
}>;
|
|
export declare function listCreditHistory(options: {
|
|
userId?: string;
|
|
limit: number;
|
|
offset: number;
|
|
}): Promise<{
|
|
items: {
|
|
id: string;
|
|
userId: string;
|
|
userEmail: string | null;
|
|
walletTypeId: number;
|
|
walletCode: string;
|
|
amountRaw: string;
|
|
createdAt: Date;
|
|
}[];
|
|
total: number;
|
|
limit: number;
|
|
offset: number;
|
|
}>;
|
|
//# sourceMappingURL=testWalletService.d.ts.map
|