73 lines
2.7 KiB
TypeScript
73 lines
2.7 KiB
TypeScript
import { PrismaService } from '../prisma/prisma.service';
|
|
export declare class WalletsService {
|
|
private prisma;
|
|
constructor(prisma: PrismaService);
|
|
private userId;
|
|
list(): import("@prisma/client").Prisma.PrismaPromise<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}[]>;
|
|
create(input: {
|
|
name: string;
|
|
currency?: string;
|
|
kind?: 'money' | 'asset';
|
|
unit?: string;
|
|
initialAmount?: number;
|
|
pricePerUnit?: number;
|
|
}): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
|
update(id: string, input: {
|
|
name?: string;
|
|
currency?: string;
|
|
kind?: 'money' | 'asset';
|
|
unit?: string;
|
|
initialAmount?: number;
|
|
pricePerUnit?: number;
|
|
}): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
|
delete(id: string): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
|
}
|