* refactor: replace Prisma.validator<Select>() with satisfies syntax
- Convert all Prisma.validator<Prisma.SomeSelect>()({...}) patterns to {...} satisfies Prisma.SomeSelect
- Update import { Prisma } to import type { Prisma } where only used for types
- Maintain existing functionality while modernizing TypeScript syntax
- Covers 89+ files across packages/prisma/selects, repository classes, tRPC handlers, and API modules
Co-Authored-By: alex@cal.com <me@alexvanandel.com>
* refactor: complete remaining Prisma.validator conversions
- Update test fixture files with satisfies syntax
- Apply lint-staged formatting fixes
- Complete refactoring of all remaining files
Co-Authored-By: alex@cal.com <me@alexvanandel.com>
* revert: remove unintended platform library update
- Revert yarn.lock changes that updated @calcom/platform-libraries from 0.0.236 to 0.0.239
- This was an unintended side effect of the refactoring process
- Keep only the intended Prisma.validator → satisfies syntax changes
Co-Authored-By: alex@cal.com <me@alexvanandel.com>
* fix: update ESLint plugin references to correct package name
- Change @calcom/eslint to @calcom/eslint-plugin-eslint in eslint-preset.js
- Resolves 'Failed to load plugin @calcom/eslint' error causing CI failures
Co-Authored-By: alex@cal.com <me@alexvanandel.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: alex@cal.com <me@alexvanandel.com>
79 lines
1.6 KiB
TypeScript
79 lines
1.6 KiB
TypeScript
import type { Prisma } from "@prisma/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;
|