<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Switch @calcom/prisma to use relative imports for client and enums. This removes self-references, stabilizes builds, and improves type resolution. - **Refactors** - Replaced imports from "@calcom/prisma/*" with local "./client" and "./enums" across extensions, selects, mocks, and availability check. - Updated safeJSONStringify parameter type from any to unknown. - Minor formatting cleanup in zod-utils. <sup>Written for commit 85c0a7b75fb1291be5b848a73d1ccb5543283f49. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
79 lines
1.6 KiB
TypeScript
79 lines
1.6 KiB
TypeScript
import type { Prisma } from "../client";
|
|
|
|
export const paymentDataSelect = {
|
|
data: true,
|
|
success: true,
|
|
uid: true,
|
|
refunded: true,
|
|
bookingId: true,
|
|
appId: true,
|
|
amount: true,
|
|
currency: true,
|
|
paymentOption: true,
|
|
booking: {
|
|
select: {
|
|
id: true,
|
|
uid: true,
|
|
description: true,
|
|
title: true,
|
|
startTime: true,
|
|
endTime: true,
|
|
responses: true,
|
|
user: {
|
|
select: {
|
|
name: true,
|
|
timeZone: true,
|
|
},
|
|
},
|
|
attendees: {
|
|
select: {
|
|
email: true,
|
|
name: true,
|
|
timeZone: true,
|
|
},
|
|
},
|
|
eventTypeId: true,
|
|
location: true,
|
|
status: true,
|
|
rejectionReason: true,
|
|
cancellationReason: true,
|
|
eventType: {
|
|
select: {
|
|
id: true,
|
|
title: true,
|
|
description: true,
|
|
length: true,
|
|
eventName: true,
|
|
requiresConfirmation: true,
|
|
userId: true,
|
|
metadata: true,
|
|
users: {
|
|
select: {
|
|
id: true,
|
|
name: true,
|
|
username: true,
|
|
hideBranding: true,
|
|
theme: true,
|
|
},
|
|
},
|
|
team: {
|
|
select: {
|
|
name: true,
|
|
hideBranding: true,
|
|
parent: {
|
|
select: {
|
|
hideBranding: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
price: true,
|
|
currency: true,
|
|
successRedirectUrl: true,
|
|
forwardParamsSuccessRedirect: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
} satisfies Prisma.PaymentSelect;
|