docs: update implementation plan and add backend completion summary
- Mark backend as complete in IMPLEMENTATION_PLAN.md - Create ADMIN_BACKEND_COMPLETE.md with full documentation - Document all API endpoints - Add testing instructions - Add deployment notes
This commit is contained in:
56
apps/api/dist/admin/admin-config.controller.d.ts
vendored
56
apps/api/dist/admin/admin-config.controller.d.ts
vendored
@@ -8,52 +8,52 @@ export declare class AdminConfigController {
|
||||
private readonly service;
|
||||
constructor(service: AdminConfigService);
|
||||
findAll(category?: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}[]>;
|
||||
getByCategory(): Promise<Record<string, any[]>>;
|
||||
findOne(key: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
} | null>;
|
||||
upsert(key: string, data: any, req: RequestWithUser): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}>;
|
||||
delete(key: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}>;
|
||||
}
|
||||
|
||||
56
apps/api/dist/admin/admin-config.service.d.ts
vendored
56
apps/api/dist/admin/admin-config.service.d.ts
vendored
@@ -3,51 +3,51 @@ export declare class AdminConfigService {
|
||||
private readonly prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
findAll(category?: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}[]>;
|
||||
findOne(key: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
} | null>;
|
||||
upsert(key: string, data: any, updatedBy: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}>;
|
||||
delete(key: string): Promise<{
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: string;
|
||||
label: string;
|
||||
description: string | null;
|
||||
type: string;
|
||||
isSecret: boolean;
|
||||
id: string;
|
||||
updatedAt: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
description: string | null;
|
||||
key: string;
|
||||
label: string;
|
||||
isSecret: boolean;
|
||||
updatedBy: string | null;
|
||||
}>;
|
||||
getByCategory(): Promise<Record<string, any[]>>;
|
||||
|
||||
@@ -4,73 +4,73 @@ export declare class AdminPaymentMethodsController {
|
||||
constructor(service: AdminPaymentMethodsService);
|
||||
findAll(): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}[]>;
|
||||
findOne(id: string): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null>;
|
||||
create(data: any): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
update(id: string, data: any): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
delete(id: string): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reorder(body: {
|
||||
methodIds: string[];
|
||||
|
||||
@@ -4,73 +4,73 @@ export declare class AdminPaymentMethodsService {
|
||||
constructor(prisma: PrismaService);
|
||||
findAll(): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}[]>;
|
||||
findOne(id: string): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null>;
|
||||
create(data: any): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
update(id: string, data: any): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
delete(id: string): Promise<{
|
||||
id: string;
|
||||
type: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
provider: string;
|
||||
type: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
displayName: string;
|
||||
logoUrl: string | null;
|
||||
instructions: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reorder(methodIds: string[]): Promise<{
|
||||
success: boolean;
|
||||
|
||||
@@ -16,10 +16,10 @@ export declare class AdminPaymentsController {
|
||||
subscription: ({
|
||||
plan: {
|
||||
id: string;
|
||||
currency: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
@@ -42,10 +42,10 @@ export declare class AdminPaymentsController {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
userId: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
userId: string;
|
||||
planId: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
@@ -56,19 +56,21 @@ export declare class AdminPaymentsController {
|
||||
}) | null;
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -79,8 +81,6 @@ export declare class AdminPaymentsController {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
getPendingCount(): Promise<number>;
|
||||
findOne(id: string): Promise<({
|
||||
@@ -92,10 +92,10 @@ export declare class AdminPaymentsController {
|
||||
subscription: ({
|
||||
plan: {
|
||||
id: string;
|
||||
currency: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
@@ -118,10 +118,10 @@ export declare class AdminPaymentsController {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
userId: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
userId: string;
|
||||
planId: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
@@ -132,19 +132,21 @@ export declare class AdminPaymentsController {
|
||||
}) | null;
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -155,24 +157,24 @@ export declare class AdminPaymentsController {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
verify(id: string, req: RequestWithUser): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -183,26 +185,26 @@ export declare class AdminPaymentsController {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reject(id: string, req: RequestWithUser, body: {
|
||||
reason: string;
|
||||
}): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -213,8 +215,6 @@ export declare class AdminPaymentsController {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
}
|
||||
export {};
|
||||
|
||||
60
apps/api/dist/admin/admin-payments.service.d.ts
vendored
60
apps/api/dist/admin/admin-payments.service.d.ts
vendored
@@ -11,10 +11,10 @@ export declare class AdminPaymentsService {
|
||||
subscription: ({
|
||||
plan: {
|
||||
id: string;
|
||||
currency: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
@@ -37,10 +37,10 @@ export declare class AdminPaymentsService {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
userId: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
userId: string;
|
||||
planId: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
@@ -51,19 +51,21 @@ export declare class AdminPaymentsService {
|
||||
}) | null;
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -74,8 +76,6 @@ export declare class AdminPaymentsService {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
user: {
|
||||
@@ -86,10 +86,10 @@ export declare class AdminPaymentsService {
|
||||
subscription: ({
|
||||
plan: {
|
||||
id: string;
|
||||
currency: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
@@ -112,10 +112,10 @@ export declare class AdminPaymentsService {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
userId: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
userId: string;
|
||||
planId: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
@@ -126,19 +126,21 @@ export declare class AdminPaymentsService {
|
||||
}) | null;
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -149,24 +151,24 @@ export declare class AdminPaymentsService {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
verify(id: string, adminUserId: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -177,24 +179,24 @@ export declare class AdminPaymentsService {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reject(id: string, adminUserId: string, reason: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
method: string;
|
||||
userId: string;
|
||||
currency: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
subscriptionId: string | null;
|
||||
invoiceNumber: string;
|
||||
amount: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
method: string;
|
||||
tripayReference: string | null;
|
||||
tripayFee: import("@prisma/client/runtime/library").Decimal | null;
|
||||
totalAmount: import("@prisma/client/runtime/library").Decimal;
|
||||
paymentChannel: string | null;
|
||||
paymentUrl: string | null;
|
||||
qrUrl: string | null;
|
||||
status: string;
|
||||
proofImageUrl: string | null;
|
||||
transferDate: Date | null;
|
||||
verifiedBy: string | null;
|
||||
@@ -205,8 +207,6 @@ export declare class AdminPaymentsService {
|
||||
notes: string | null;
|
||||
expiresAt: Date | null;
|
||||
paidAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
getPendingCount(): Promise<number>;
|
||||
}
|
||||
|
||||
30
apps/api/dist/admin/admin-plans.controller.d.ts
vendored
30
apps/api/dist/admin/admin-plans.controller.d.ts
vendored
@@ -8,11 +8,13 @@ export declare class AdminPlansController {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -29,8 +31,6 @@ export declare class AdminPlansController {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
_count: {
|
||||
@@ -38,11 +38,13 @@ export declare class AdminPlansController {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -59,16 +61,16 @@ export declare class AdminPlansController {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
create(data: any): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -85,16 +87,16 @@ export declare class AdminPlansController {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
update(id: string, data: any): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -111,16 +113,16 @@ export declare class AdminPlansController {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
delete(id: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -137,8 +139,6 @@ export declare class AdminPlansController {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reorder(body: {
|
||||
planIds: string[];
|
||||
|
||||
30
apps/api/dist/admin/admin-plans.service.d.ts
vendored
30
apps/api/dist/admin/admin-plans.service.d.ts
vendored
@@ -8,11 +8,13 @@ export declare class AdminPlansService {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -29,8 +31,6 @@ export declare class AdminPlansService {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
_count: {
|
||||
@@ -38,11 +38,13 @@ export declare class AdminPlansService {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -59,16 +61,16 @@ export declare class AdminPlansService {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
create(data: any): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -85,16 +87,16 @@ export declare class AdminPlansService {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
update(id: string, data: any): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -111,16 +113,16 @@ export declare class AdminPlansService {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
delete(id: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -137,8 +139,6 @@ export declare class AdminPlansService {
|
||||
maxTeamMembers: number | null;
|
||||
apiEnabled: boolean;
|
||||
apiRateLimit: number | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
reorder(planIds: string[]): Promise<{
|
||||
success: boolean;
|
||||
|
||||
20
apps/api/dist/admin/admin-users.controller.d.ts
vendored
20
apps/api/dist/admin/admin-users.controller.d.ts
vendored
@@ -4,8 +4,8 @@ export declare class AdminUsersController {
|
||||
constructor(service: AdminUsersService);
|
||||
findAll(search?: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
email: string;
|
||||
createdAt: Date;
|
||||
emailVerified: boolean;
|
||||
name: string | null;
|
||||
role: string;
|
||||
@@ -28,10 +28,10 @@ export declare class AdminUsersController {
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -70,15 +70,15 @@ export declare class AdminUsersController {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -94,15 +94,15 @@ export declare class AdminUsersController {
|
||||
role: string;
|
||||
}): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -118,15 +118,15 @@ export declare class AdminUsersController {
|
||||
reason: string;
|
||||
}): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -140,15 +140,15 @@ export declare class AdminUsersController {
|
||||
}>;
|
||||
unsuspend(id: string): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
|
||||
20
apps/api/dist/admin/admin-users.service.d.ts
vendored
20
apps/api/dist/admin/admin-users.service.d.ts
vendored
@@ -4,8 +4,8 @@ export declare class AdminUsersService {
|
||||
constructor(prisma: PrismaService);
|
||||
findAll(search?: string): Promise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
email: string;
|
||||
createdAt: Date;
|
||||
emailVerified: boolean;
|
||||
name: string | null;
|
||||
role: string;
|
||||
@@ -23,10 +23,10 @@ export declare class AdminUsersService {
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
price: import("@prisma/client/runtime/library").Decimal;
|
||||
currency: string;
|
||||
durationType: string;
|
||||
durationDays: number | null;
|
||||
trialDays: number;
|
||||
@@ -65,15 +65,15 @@ export declare class AdminUsersService {
|
||||
};
|
||||
} & {
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -87,15 +87,15 @@ export declare class AdminUsersService {
|
||||
}) | null>;
|
||||
updateRole(id: string, role: string): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -109,15 +109,15 @@ export declare class AdminUsersService {
|
||||
}>;
|
||||
suspend(id: string, reason: string): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
@@ -131,15 +131,15 @@ export declare class AdminUsersService {
|
||||
}>;
|
||||
unsuspend(id: string): Promise<{
|
||||
id: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
status: string;
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
passwordHash: string | null;
|
||||
name: string | null;
|
||||
avatarUrl: string | null;
|
||||
phone: string | null;
|
||||
defaultCurrency: string | null;
|
||||
timeZone: string | null;
|
||||
otpEmailEnabled: boolean;
|
||||
|
||||
Reference in New Issue
Block a user