NobGit
public imalexnord read

Slot

Calendar-first scheduling powered by Cloudflare Workers and Google Calendar.

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 79% CSS 19% SQL 2% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/slot.git
ssh://[email protected]:2222/user/imalexnord/slot.git

Trace

worker/types.ts

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

types.ts on main
Author Date Commit Line Code
Alex Nord 3 days ago 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
1
export interface Env {
Open commit View diff
1 export interface Env {
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
2
  DB: D1Database;
Open commit View diff
2 DB: D1Database;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
3
  ASSETS?: Fetcher;
Open commit View diff
3 ASSETS?: Fetcher;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
4
  APP_URL: string;
Open commit View diff
4 APP_URL: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
5
  ADMIN_EMAIL: string;
Open commit View diff
5 ADMIN_EMAIL: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
6
  GOOGLE_CLIENT_ID: string;
Open commit View diff
6 GOOGLE_CLIENT_ID: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
7
  GOOGLE_CLIENT_SECRET: string;
Open commit View diff
7 GOOGLE_CLIENT_SECRET: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
8
  SESSION_SECRET: string;
Open commit View diff
8 SESSION_SECRET: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
9
  TOKEN_ENCRYPTION_KEY: string;
Open commit View diff
9 TOKEN_ENCRYPTION_KEY: string;
Alex Nord 1 day ago 9abcc27

Added Stripe payments

Full commit hash
9abcc271f095921a2c76e260009e53cda98d817a
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
10
  STRIPE_SECRET_KEY?: string;
Open commit View diff
10 STRIPE_SECRET_KEY?: string;
same change 9abcc27

Added Stripe payments

Full commit hash
9abcc271f095921a2c76e260009e53cda98d817a
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
11
  STRIPE_WEBHOOK_SECRET?: string;
Open commit View diff
11 STRIPE_WEBHOOK_SECRET?: string;
Alex Nord 3 days ago 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
12
}
Open commit View diff
12 }
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
13
Open commit View diff
13
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
14
export interface AppSettings {
Open commit View diff
14 export interface AppSettings {
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
15
  title: string;
Open commit View diff
15 title: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
16
  subtitle: string;
Open commit View diff
16 subtitle: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
17
  timezone: string;
Open commit View diff
17 timezone: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
18
  bookingWindowDays: number;
Open commit View diff
18 bookingWindowDays: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
19
  minimumNoticeMinutes: number;
Open commit View diff
19 minimumNoticeMinutes: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
20
  bufferBeforeMinutes: number;
Open commit View diff
20 bufferBeforeMinutes: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
21
  bufferAfterMinutes: number;
Open commit View diff
21 bufferAfterMinutes: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
22
  slotIncrementMinutes: number;
Open commit View diff
22 slotIncrementMinutes: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
23
  durations: number[];
Open commit View diff
23 durations: number[];
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
24
  calendarId: string;
Open commit View diff
24 calendarId: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
25
  busyCalendarIds: string[];
Open commit View diff
25 busyCalendarIds: string[];
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
26
  defaultMeetingMode: MeetingMode;
Open commit View diff
26 defaultMeetingMode: MeetingMode;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
27
  allowMeetingModes: MeetingMode[];
Open commit View diff
27 allowMeetingModes: MeetingMode[];
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
28
  inPersonLocation: string;
Open commit View diff
28 inPersonLocation: string;
Alex Nord 1 day ago 9abcc27

Added Stripe payments

Full commit hash
9abcc271f095921a2c76e260009e53cda98d817a
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
29
  paymentEnabled: boolean;
Open commit View diff
29 paymentEnabled: boolean;
Alex Nord 1 day ago 110f91e

Adding indication for test/live key

Full commit hash
110f91e747192b16de709ea11c5eea17eaeadd48
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
30
  paymentRatePerMinute: number;
Open commit View diff
30 paymentRatePerMinute: number;
Alex Nord about 16 hours ago 456feae

feat: add self-service booking management and free payment durations

Full commit hash
456feae6ef68a3e3bf55a0ea617bac46f7dc289e
Author
Alex Nord <[email protected]>
Date
about 16 hours ago
Selected line
31
  paymentFreeDurations: number[];
Open commit View diff
31 paymentFreeDurations: number[];
Alex Nord 1 day ago 9abcc27

Added Stripe payments

Full commit hash
9abcc271f095921a2c76e260009e53cda98d817a
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
32
  paymentCurrency: string;
Open commit View diff
32 paymentCurrency: string;
same change 9abcc27

Added Stripe payments

Full commit hash
9abcc271f095921a2c76e260009e53cda98d817a
Author
Alex Nord <[email protected]>
Date
1 day ago
Selected line
33
  paymentLabel: string;
Open commit View diff
33 paymentLabel: string;
Alex Nord 3 days ago 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
34
  availability: WeeklyAvailability;
Open commit View diff
34 availability: WeeklyAvailability;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
35
}
Open commit View diff
35 }
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
36
Open commit View diff
36
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
37
export type MeetingMode = 'google_meet' | 'phone' | 'in_person' | 'decide_later';
Open commit View diff
37 export type MeetingMode = 'google_meet' | 'phone' | 'in_person' | 'decide_later';
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
38
Open commit View diff
38
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
39
export interface AvailabilityInterval {
Open commit View diff
39 export interface AvailabilityInterval {
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
40
  start: string;
Open commit View diff
40 start: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
41
  end: string;
Open commit View diff
41 end: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
42
}
Open commit View diff
42 }
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
43
Open commit View diff
43
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
44
export type WeeklyAvailability = Record<string, AvailabilityInterval[]>;
Open commit View diff
44 export type WeeklyAvailability = Record<string, AvailabilityInterval[]>;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
45
Open commit View diff
45
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
46
export interface BusyRange {
Open commit View diff
46 export interface BusyRange {
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
47
  start: number;
Open commit View diff
47 start: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
48
  end: number;
Open commit View diff
48 end: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
49
}
Open commit View diff
49 }
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
50
Open commit View diff
50
Alex Nord 3 days ago 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
51
export interface RecurringUnavailablePeriod {
Open commit View diff
51 export interface RecurringUnavailablePeriod {
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
52
  id: string;
Open commit View diff
52 id: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
53
  weekdays: number[];
Open commit View diff
53 weekdays: number[];
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
54
  start: string;
Open commit View diff
54 start: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
55
  end: string;
Open commit View diff
55 end: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
56
  label?: string;
Open commit View diff
56 label?: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
57
}
Open commit View diff
57 }
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
58
Open commit View diff
58
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
59
export interface AvailabilityBlock {
Open commit View diff
59 export interface AvailabilityBlock {
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
60
  id: string;
Open commit View diff
60 id: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
61
  date: string;
Open commit View diff
61 date: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
62
  start?: string;
Open commit View diff
62 start?: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
63
  end?: string;
Open commit View diff
63 end?: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
64
  allDay: boolean;
Open commit View diff
64 allDay: boolean;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
65
  label?: string;
Open commit View diff
65 label?: string;
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
66
}
Open commit View diff
66 }
same change 5562973

Add cancellation and availability blocks

Full commit hash
556297329383149d17cc0ffa9568836eeae97d2c
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
67
Open commit View diff
67
Alex Nord 3 days ago 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
68
export interface BookingRequest {
Open commit View diff
68 export interface BookingRequest {
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
69
  start: string;
Open commit View diff
69 start: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
70
  duration: number;
Open commit View diff
70 duration: number;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
71
  name: string;
Open commit View diff
71 name: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
72
  email: string;
Open commit View diff
72 email: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
73
  phone?: string;
Open commit View diff
73 phone?: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
74
  message?: string;
Open commit View diff
74 message?: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
75
  meetingMode: MeetingMode;
Open commit View diff
75 meetingMode: MeetingMode;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
76
  website?: string;
Open commit View diff
76 website?: string;
same change 45c38c3

Prepare Slot booking worker

Full commit hash
45c38c3ae5284118e8d65aa9d49e90850b1209f5
Author
Alex Nord <[email protected]>
Date
3 days ago
Selected line
77
}
Open commit View diff
77 }