Extract prisma to it's own package (#1823)
* Moved prisma to packages * Add missing prisma configs * Extracts common libs and types * Build and pipeline fixes * Adds missing package * Prisma scripts cleanup * Updates lint staged * Type fixes * Sort imports * Updates yarn lock file * Fixes for yarn dx * Revert "Sort imports" This reverts commit 076109decab9b9ba307fc03696c3b0da5c4896f3. * Formatting * Prevent double TS version * Fix conflict * Extracted e2e configs
This commit is contained in:
1 parent
fdf7516cdd
commit
fe35cf6570
128 files changed
+349
-223
No files matched your search
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "@calcom/types",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"main": "index.js"
|
||||
}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
export type TimeRange = {
|
||||
start: Date;
|
||||
end: Date;
|
||||
};
|
||||
|
||||
export type Schedule = TimeRange[][];
|
||||
|
||||
/**
|
||||
* ```text
|
||||
* Ensure startTime and endTime in minutes since midnight; serialized to UTC by using the organizer timeZone, either by using the schedule timeZone or the user timeZone.
|
||||
* @see lib/availability.ts getWorkingHours(timeZone: string, availability: Availability[])
|
||||
* ```
|
||||
*/
|
||||
export type WorkingHours = {
|
||||
days: number[];
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
};
|
||||
Reference in new issue
Block a user