@calcom/atoms 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +5 -0
  2. package/dist/AddressInput-Ci02wr5C.js +33 -0
  3. package/dist/AlbyPriceComponent-NqN1MEov.js +967 -0
  4. package/dist/Card-6fRR5Hwj.js +185 -0
  5. package/dist/DatePicker-9pbCidOU.js +27 -0
  6. package/dist/PhoneInput-ysQbrvjy.js +1405 -0
  7. package/dist/PoweredBy-AY0Afi6V.js +31 -0
  8. package/dist/UnpublishedEntity-epeaNFkK.js +23 -0
  9. package/dist/availability/AvailabilitySettings.d.ts +58 -0
  10. package/dist/availability/AvailabilitySettings.d.ts.map +1 -0
  11. package/dist/availability/index.d.ts +4 -0
  12. package/dist/availability/index.d.ts.map +1 -0
  13. package/dist/availability/types.d.ts +22 -0
  14. package/dist/availability/types.d.ts.map +1 -0
  15. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts +18 -0
  16. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts.map +1 -0
  17. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts +2 -0
  18. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts.map +1 -0
  19. package/dist/booker/Booker.stories.d.ts +7 -0
  20. package/dist/booker/Booker.stories.d.ts.map +1 -0
  21. package/dist/booker/BookerPlatformWrapper.d.ts +24 -0
  22. package/dist/booker/BookerPlatformWrapper.d.ts.map +1 -0
  23. package/dist/booker/BookerWebWrapper.d.ts +5 -0
  24. package/dist/booker/BookerWebWrapper.d.ts.map +1 -0
  25. package/dist/booker/export.d.ts +4 -0
  26. package/dist/booker/export.d.ts.map +1 -0
  27. package/dist/booker/index.d.ts +3 -0
  28. package/dist/booker/index.d.ts.map +1 -0
  29. package/dist/cal-atoms.js +9 -0
  30. package/dist/cal-atoms.umd.cjs +577 -0
  31. package/dist/cal-provider/BaseCalProvider.d.ts +4 -0
  32. package/dist/cal-provider/BaseCalProvider.d.ts.map +1 -0
  33. package/dist/cal-provider/CalProvider.d.ts +14 -0
  34. package/dist/cal-provider/CalProvider.d.ts.map +1 -0
  35. package/dist/cal-provider/index.d.ts +2 -0
  36. package/dist/cal-provider/index.d.ts.map +1 -0
  37. package/dist/framer-features-Zr_i_7k0.js +443 -0
  38. package/dist/gcal-connect/GcalConnect.d.ts +9 -0
  39. package/dist/gcal-connect/GcalConnect.d.ts.map +1 -0
  40. package/dist/gcal-connect/index.d.ts +2 -0
  41. package/dist/gcal-connect/index.d.ts.map +1 -0
  42. package/dist/globals.min.css +1 -0
  43. package/dist/hooks/useApiKeys.d.ts +10 -0
  44. package/dist/hooks/useApiKeys.d.ts.map +1 -0
  45. package/dist/hooks/useAtomsContext.d.ts +31 -0
  46. package/dist/hooks/useAtomsContext.d.ts.map +1 -0
  47. package/dist/hooks/useAvailableSlots.d.ts +6 -0
  48. package/dist/hooks/useAvailableSlots.d.ts.map +1 -0
  49. package/dist/hooks/useBookings.d.ts +3 -0
  50. package/dist/hooks/useBookings.d.ts.map +1 -0
  51. package/dist/hooks/useCalendarsBusyTimes.d.ts +10 -0
  52. package/dist/hooks/useCalendarsBusyTimes.d.ts.map +1 -0
  53. package/dist/hooks/useClientSchedule.d.ts +8 -0
  54. package/dist/hooks/useClientSchedule.d.ts.map +1 -0
  55. package/dist/hooks/useConnectedCalendars.d.ts +3 -0
  56. package/dist/hooks/useConnectedCalendars.d.ts.map +1 -0
  57. package/dist/hooks/useCreateBooking.d.ts +169 -0
  58. package/dist/hooks/useCreateBooking.d.ts.map +1 -0
  59. package/dist/hooks/useCreateInstantBooking.d.ts +169 -0
  60. package/dist/hooks/useCreateInstantBooking.d.ts.map +1 -0
  61. package/dist/hooks/useCreateRecurringBooking.d.ts +154 -0
  62. package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -0
  63. package/dist/hooks/useDeleteSchedule.d.ts +11 -0
  64. package/dist/hooks/useDeleteSchedule.d.ts.map +1 -0
  65. package/dist/hooks/useDeleteSelectedSlot.d.ts +8 -0
  66. package/dist/hooks/useDeleteSelectedSlot.d.ts.map +1 -0
  67. package/dist/hooks/useGcal.d.ts +9 -0
  68. package/dist/hooks/useGcal.d.ts.map +1 -0
  69. package/dist/hooks/useGetCityTimezones.d.ts +6 -0
  70. package/dist/hooks/useGetCityTimezones.d.ts.map +1 -0
  71. package/dist/hooks/useHandleBookEvent.d.ts +15 -0
  72. package/dist/hooks/useHandleBookEvent.d.ts.map +1 -0
  73. package/dist/hooks/useIsPlatform.d.ts +2 -0
  74. package/dist/hooks/useIsPlatform.d.ts.map +1 -0
  75. package/dist/hooks/useMe.d.ts +12 -0
  76. package/dist/hooks/useMe.d.ts.map +1 -0
  77. package/dist/hooks/useOAuthClient.d.ts +11 -0
  78. package/dist/hooks/useOAuthClient.d.ts.map +1 -0
  79. package/dist/hooks/useOAuthFlow.d.ts +12 -0
  80. package/dist/hooks/useOAuthFlow.d.ts.map +1 -0
  81. package/dist/hooks/usePublicEvent.d.ts +958 -0
  82. package/dist/hooks/usePublicEvent.d.ts.map +1 -0
  83. package/dist/hooks/useReserveSlot.d.ts +8 -0
  84. package/dist/hooks/useReserveSlot.d.ts.map +1 -0
  85. package/dist/hooks/useSlots.d.ts +11 -0
  86. package/dist/hooks/useSlots.d.ts.map +1 -0
  87. package/dist/hooks/useTimezone.d.ts +2 -0
  88. package/dist/hooks/useTimezone.d.ts.map +1 -0
  89. package/dist/hooks/useUpdateSchedule.d.ts +9 -0
  90. package/dist/hooks/useUpdateSchedule.d.ts.map +1 -0
  91. package/dist/hooks/useUpdateUserTimezone.d.ts +15 -0
  92. package/dist/hooks/useUpdateUserTimezone.d.ts.map +1 -0
  93. package/dist/index--Pb54wx_.js +4 -0
  94. package/dist/index-3sgDY24S.js +5 -0
  95. package/dist/index-GttMIx74.js +65366 -0
  96. package/dist/index-RcPlEXh-.js +220 -0
  97. package/dist/index-rUbdQ7Zu.js +1256 -0
  98. package/dist/index-uuiJumv6.js +76 -0
  99. package/dist/index.d.ts +7 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/isSupportedCountry-WVb-DZDd.js +487 -0
  102. package/dist/lib/getQueryParam.d.ts +3 -0
  103. package/dist/lib/getQueryParam.d.ts.map +1 -0
  104. package/dist/lib/http.d.ts +18 -0
  105. package/dist/lib/http.d.ts.map +1 -0
  106. package/dist/lib/setQueryParam.d.ts +3 -0
  107. package/dist/lib/setQueryParam.d.ts.map +1 -0
  108. package/dist/monorepo.d.ts +9 -0
  109. package/dist/monorepo.d.ts.map +1 -0
  110. package/dist/server.browser-yA5s9iMO.js +9859 -0
  111. package/dist/src/components/ui/button.d.ts +12 -0
  112. package/dist/src/components/ui/button.d.ts.map +1 -0
  113. package/dist/src/components/ui/confirmation-dialog-content.d.ts +4 -0
  114. package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +1 -0
  115. package/dist/src/components/ui/dialog.d.ts +20 -0
  116. package/dist/src/components/ui/dialog.d.ts.map +1 -0
  117. package/dist/src/components/ui/shell.d.ts +3 -0
  118. package/dist/src/components/ui/shell.d.ts.map +1 -0
  119. package/dist/src/components/ui/toast.d.ts +16 -0
  120. package/dist/src/components/ui/toast.d.ts.map +1 -0
  121. package/dist/src/components/ui/toaster.d.ts +3 -0
  122. package/dist/src/components/ui/toaster.d.ts.map +1 -0
  123. package/dist/src/components/ui/use-toast.d.ts +45 -0
  124. package/dist/src/components/ui/use-toast.d.ts.map +1 -0
  125. package/dist/src/lib/utils.d.ts +3 -0
  126. package/dist/src/lib/utils.d.ts.map +1 -0
  127. package/dist/style.css +1 -0
  128. package/dist/timezone/index.d.ts +4 -0
  129. package/dist/timezone/index.d.ts.map +1 -0
  130. package/dist/types.d.ts +8 -0
  131. package/dist/types.d.ts.map +1 -0
  132. package/dist/vite.config.d.ts +3 -0
  133. package/dist/vite.config.d.ts.map +1 -0
  134. package/package.json +56 -0
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const ApiKeyContext: import("react").Context<{
3
+ key: string;
4
+ error: string;
5
+ }>;
6
+ export declare const useApiKey: () => {
7
+ key: string;
8
+ error: string;
9
+ };
10
+ //# sourceMappingURL=useApiKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApiKeys.d.ts","sourceRoot":"","sources":["../../hooks/useApiKeys.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;;EAAwC,CAAC;AAEnE,eAAO,MAAM,SAAS;;;CAAkC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import type enTranslations from "@calcom/web/public/static/locales/en/common.json";
3
+ import type http from "../lib/http";
4
+ type translationKeys = keyof typeof enTranslations;
5
+ export interface IAtomsContextOptions {
6
+ refreshUrl?: string;
7
+ apiUrl: string;
8
+ }
9
+ export interface IAtomsContext {
10
+ clientId: string;
11
+ accessToken?: string;
12
+ options: IAtomsContextOptions;
13
+ error?: string;
14
+ getClient: () => typeof http | void;
15
+ refreshToken?: string;
16
+ isRefreshing?: boolean;
17
+ isAuth: boolean;
18
+ isValidClient: boolean;
19
+ isInit: boolean;
20
+ t: (key: string, values: Record<string, string | number | undefined | null>) => string;
21
+ i18n: {
22
+ language: string;
23
+ defaultLocale: string;
24
+ locales: [string];
25
+ exists: (key: translationKeys | string) => boolean;
26
+ };
27
+ }
28
+ export declare const AtomsContext: import("react").Context<IAtomsContext>;
29
+ export declare const useAtomsContext: () => IAtomsContext;
30
+ export {};
31
+ //# sourceMappingURL=useAtomsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAtomsContext.d.ts","sourceRoot":"","sources":["../../hooks/useAtomsContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,cAAc,MAAM,kDAAkD,CAAC;AAEnF,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,KAAK,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AACnD,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,OAAO,IAAI,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC;IACvF,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAClB,MAAM,EAAE,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,KAAK,OAAO,CAAC;KACpD,CAAC;CACH;AAED,eAAO,MAAM,YAAY,wCAQN,CAAC;AAEpB,eAAO,MAAM,eAAe,qBAAiC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { GetAvailableSlotsInput } from "@calcom/platform-types";
2
+ export declare const QUERY_KEY = "get-available-slots";
3
+ export declare const useAvailableSlots: ({ enabled, ...rest }: GetAvailableSlotsInput & {
4
+ enabled: boolean;
5
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
6
+ //# sourceMappingURL=useAvailableSlots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAvailableSlots.d.ts","sourceRoot":"","sources":["../../hooks/useAvailableSlots.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAmC,MAAM,wBAAwB,CAAC;AAItG,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAE/C,eAAO,MAAM,iBAAiB;aAA8D,OAAO;mFAkBlG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IUseBookings } from "@calcom/features/bookings/Booker/components/hooks/useBookings";
2
+ export declare const useBookings: ({ event, hashedLink, bookingForm, metadata }: IUseBookings) => void;
3
+ //# sourceMappingURL=useBookings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBookings.d.ts","sourceRoot":"","sources":["../../hooks/useBookings.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAGlG,eAAO,MAAM,WAAW,iDAAkD,YAAY,SAYrF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { CalendarBusyTimesInput } from "@calcom/platform-types";
2
+ import type { EventBusyDate } from "@calcom/types/Calendar";
3
+ export declare const QUERY_KEY = "get-calendars-busy-times";
4
+ type UseCalendarsBusyTimesProps = CalendarBusyTimesInput & {
5
+ onError?: () => void;
6
+ enabled: boolean;
7
+ };
8
+ export declare const useCalendarsBusyTimes: ({ onError, enabled, ...rest }: UseCalendarsBusyTimesProps) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@calcom/platform-types").ApiSuccessResponse<EventBusyDate[]>, Error>;
9
+ export {};
10
+ //# sourceMappingURL=useCalendarsBusyTimes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCalendarsBusyTimes.d.ts","sourceRoot":"","sources":["../../hooks/useCalendarsBusyTimes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAe,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,eAAO,MAAM,SAAS,6BAA6B,CAAC;AAEpD,KAAK,0BAA0B,GAAG,sBAAsB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEtG,eAAO,MAAM,qBAAqB,kCAAmC,0BAA0B,mJAyB9F,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const QUERY_KEY = "user-schedule";
2
+ declare const useClientSchedule: (id?: string) => {
3
+ isLoading: boolean;
4
+ error: Error | null;
5
+ data: import("@calcom/platform-types").ApiSuccessResponseWithoutData | import("@calcom/platform-types").ApiSuccessResponse<ScheduleWithAvailabilitiesForWeb> | undefined;
6
+ };
7
+ export default useClientSchedule;
8
+ //# sourceMappingURL=useClientSchedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClientSchedule.d.ts","sourceRoot":"","sources":["../../hooks/useClientSchedule.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,kBAAkB,CAAC;AAEzC,QAAA,MAAM,iBAAiB,QAAS,MAAM;;;;CAsBrC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const QUERY_KEY = "get-connected-calendars";
2
+ export declare const useConnectedCalendars: () => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@calcom/platform-types").ApiSuccessResponseWithoutData | import("@calcom/platform-types").ApiSuccessResponse<ConnectedDestinationCalendars>, Error>;
3
+ //# sourceMappingURL=useConnectedCalendars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConnectedCalendars.d.ts","sourceRoot":"","sources":["../../hooks/useConnectedCalendars.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS,4BAA4B,CAAC;AACnD,eAAO,MAAM,qBAAqB,qOAmBjC,CAAC"}
@@ -0,0 +1,169 @@
1
+ import type { BookingResponse } from "@calcom/platform-libraries";
2
+ import type { ApiErrorResponse, ApiSuccessResponse } from "@calcom/platform-types";
3
+ interface IUseCreateBooking {
4
+ onSuccess?: (res: ApiSuccessResponse<BookingResponse>) => void;
5
+ onError?: (err: ApiErrorResponse | Error) => void;
6
+ }
7
+ export declare const useCreateBooking: ({ onSuccess, onError }?: IUseCreateBooking) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ApiErrorResponse | ApiSuccessResponse<{
8
+ luckyUsers?: number[] | undefined;
9
+ user: {
10
+ email: null;
11
+ username?: string | null | undefined;
12
+ name?: string | null | undefined;
13
+ timeZone?: string | undefined;
14
+ };
15
+ payment?: {
16
+ data: import(".prisma/client").Prisma.JsonValue;
17
+ refunded: boolean;
18
+ success: boolean;
19
+ currency: string;
20
+ id: number;
21
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
22
+ bookingId: number;
23
+ uid: string;
24
+ externalId: string;
25
+ appId: string | null;
26
+ amount: number;
27
+ fee: number;
28
+ }[] | undefined;
29
+ attendees?: {
30
+ email: string;
31
+ name: string;
32
+ timeZone: string;
33
+ id: number;
34
+ bookingId: number | null;
35
+ locale: string | null;
36
+ }[] | undefined;
37
+ references?: {
38
+ type: string;
39
+ id: number;
40
+ credentialId: number | null;
41
+ deleted: boolean | null;
42
+ bookingId: number | null;
43
+ uid: string;
44
+ thirdPartyRecurringEventId: string | null;
45
+ meetingId: string | null;
46
+ meetingPassword: string | null;
47
+ meetingUrl: string | null;
48
+ externalCalendarId: string | null;
49
+ }[] | undefined;
50
+ paid?: boolean | undefined;
51
+ location?: string | null | undefined;
52
+ title?: string | undefined;
53
+ description?: string | null | undefined;
54
+ status?: import(".prisma/client").$Enums.BookingStatus | undefined;
55
+ rescheduled?: boolean | null | undefined;
56
+ metadata?: import(".prisma/client").Prisma.JsonValue | undefined;
57
+ id?: number | undefined;
58
+ userId?: number | null | undefined;
59
+ customInputs?: import(".prisma/client").Prisma.JsonValue | undefined;
60
+ smsReminderNumber?: string | null | undefined;
61
+ eventTypeId?: number | null | undefined;
62
+ recurringEventId?: string | null | undefined;
63
+ uid?: string | undefined;
64
+ cancellationReason?: string | null | undefined;
65
+ iCalUID?: string | null | undefined;
66
+ responses?: import(".prisma/client").Prisma.JsonValue | undefined;
67
+ startTime?: Date | undefined;
68
+ endTime?: Date | undefined;
69
+ createdAt?: Date | undefined;
70
+ updatedAt?: Date | null | undefined;
71
+ idempotencyKey?: string | null | undefined;
72
+ userPrimaryEmail?: string | null | undefined;
73
+ destinationCalendarId?: number | null | undefined;
74
+ rejectionReason?: string | null | undefined;
75
+ dynamicEventSlugRef?: string | null | undefined;
76
+ dynamicGroupSlugRef?: string | null | undefined;
77
+ fromReschedule?: string | null | undefined;
78
+ scheduledJobs?: string[] | undefined;
79
+ isRecorded?: boolean | undefined;
80
+ iCalSequence?: number | undefined;
81
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
82
+ seatReferenceUid?: string | undefined;
83
+ paymentUid?: string | undefined;
84
+ message?: string | undefined;
85
+ paymentId?: number | undefined;
86
+ }> | ApiSuccessResponse<{
87
+ references: import("@calcom/types/EventManager").PartialReference[];
88
+ seatReferenceUid: string | undefined;
89
+ luckyUsers?: number[] | undefined;
90
+ user: {
91
+ email: null;
92
+ username?: string | null | undefined;
93
+ name?: string | null | undefined;
94
+ timeZone?: string | undefined;
95
+ };
96
+ payment: {
97
+ data: import(".prisma/client").Prisma.JsonValue;
98
+ refunded: boolean;
99
+ success: boolean;
100
+ currency: string;
101
+ id: number;
102
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
103
+ bookingId: number;
104
+ uid: string;
105
+ externalId: string;
106
+ appId: string | null;
107
+ amount: number;
108
+ fee: number;
109
+ }[];
110
+ attendees: {
111
+ email: string;
112
+ name: string;
113
+ timeZone: string;
114
+ id: number;
115
+ bookingId: number | null;
116
+ locale: string | null;
117
+ }[];
118
+ paid: boolean;
119
+ location: string | null;
120
+ title: string;
121
+ description: string | null;
122
+ status: import(".prisma/client").$Enums.BookingStatus;
123
+ rescheduled: boolean | null;
124
+ metadata: import(".prisma/client").Prisma.JsonValue;
125
+ id: number;
126
+ userId: number | null;
127
+ customInputs: import(".prisma/client").Prisma.JsonValue;
128
+ smsReminderNumber: string | null;
129
+ eventTypeId: number | null;
130
+ recurringEventId: string | null;
131
+ uid: string;
132
+ cancellationReason: string | null;
133
+ iCalUID: string | null;
134
+ responses: import(".prisma/client").Prisma.JsonValue;
135
+ startTime: Date;
136
+ endTime: Date;
137
+ createdAt: Date;
138
+ updatedAt: Date | null;
139
+ idempotencyKey: string | null;
140
+ userPrimaryEmail: string | null;
141
+ destinationCalendarId: number | null;
142
+ rejectionReason: string | null;
143
+ dynamicEventSlugRef: string | null;
144
+ dynamicGroupSlugRef: string | null;
145
+ fromReschedule: string | null;
146
+ scheduledJobs: string[];
147
+ isRecorded: boolean;
148
+ iCalSequence: number;
149
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
150
+ paymentUid?: string | undefined;
151
+ paymentId?: number | undefined;
152
+ }>, Error, {
153
+ language: string;
154
+ timeZone: string;
155
+ metadata: Record<string, string>;
156
+ start: string;
157
+ eventTypeId: number;
158
+ end?: string | undefined;
159
+ eventTypeSlug?: string | undefined;
160
+ rescheduleUid?: string | undefined;
161
+ recurringEventId?: string | undefined;
162
+ user?: string | string[] | undefined;
163
+ bookingUid?: string | undefined;
164
+ hasHashedBookingLink?: boolean | undefined;
165
+ hashedLink?: string | null | undefined;
166
+ seatReferenceUid?: string | undefined;
167
+ }, unknown>;
168
+ export {};
169
+ //# sourceMappingURL=useCreateBooking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateBooking.d.ts","sourceRoot":"","sources":["../../hooks/useCreateBooking.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAKhG,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC/D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,KAAK,IAAI,CAAC;CACnD;AACD,eAAO,MAAM,gBAAgB,4BACH,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA8B1C,CAAC"}
@@ -0,0 +1,169 @@
1
+ import type { BookingResponse } from "@calcom/platform-libraries";
2
+ import type { ApiErrorResponse, ApiSuccessResponse } from "@calcom/platform-types";
3
+ interface IUseCreateInstantBooking {
4
+ onSuccess?: (res: ApiSuccessResponse<BookingResponse>) => void;
5
+ onError?: (err: ApiErrorResponse | Error) => void;
6
+ }
7
+ export declare const useCreateInstantBooking: ({ onSuccess, onError }?: IUseCreateInstantBooking) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ApiErrorResponse | ApiSuccessResponse<{
8
+ luckyUsers?: number[] | undefined;
9
+ user: {
10
+ email: null;
11
+ username?: string | null | undefined;
12
+ name?: string | null | undefined;
13
+ timeZone?: string | undefined;
14
+ };
15
+ payment?: {
16
+ data: import(".prisma/client").Prisma.JsonValue;
17
+ refunded: boolean;
18
+ success: boolean;
19
+ currency: string;
20
+ id: number;
21
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
22
+ bookingId: number;
23
+ uid: string;
24
+ externalId: string;
25
+ appId: string | null;
26
+ amount: number;
27
+ fee: number;
28
+ }[] | undefined;
29
+ attendees?: {
30
+ email: string;
31
+ name: string;
32
+ timeZone: string;
33
+ id: number;
34
+ bookingId: number | null;
35
+ locale: string | null;
36
+ }[] | undefined;
37
+ references?: {
38
+ type: string;
39
+ id: number;
40
+ credentialId: number | null;
41
+ deleted: boolean | null;
42
+ bookingId: number | null;
43
+ uid: string;
44
+ thirdPartyRecurringEventId: string | null;
45
+ meetingId: string | null;
46
+ meetingPassword: string | null;
47
+ meetingUrl: string | null;
48
+ externalCalendarId: string | null;
49
+ }[] | undefined;
50
+ paid?: boolean | undefined;
51
+ location?: string | null | undefined;
52
+ title?: string | undefined;
53
+ description?: string | null | undefined;
54
+ status?: import(".prisma/client").$Enums.BookingStatus | undefined;
55
+ rescheduled?: boolean | null | undefined;
56
+ metadata?: import(".prisma/client").Prisma.JsonValue | undefined;
57
+ id?: number | undefined;
58
+ userId?: number | null | undefined;
59
+ customInputs?: import(".prisma/client").Prisma.JsonValue | undefined;
60
+ smsReminderNumber?: string | null | undefined;
61
+ eventTypeId?: number | null | undefined;
62
+ recurringEventId?: string | null | undefined;
63
+ uid?: string | undefined;
64
+ cancellationReason?: string | null | undefined;
65
+ iCalUID?: string | null | undefined;
66
+ responses?: import(".prisma/client").Prisma.JsonValue | undefined;
67
+ startTime?: Date | undefined;
68
+ endTime?: Date | undefined;
69
+ createdAt?: Date | undefined;
70
+ updatedAt?: Date | null | undefined;
71
+ idempotencyKey?: string | null | undefined;
72
+ userPrimaryEmail?: string | null | undefined;
73
+ destinationCalendarId?: number | null | undefined;
74
+ rejectionReason?: string | null | undefined;
75
+ dynamicEventSlugRef?: string | null | undefined;
76
+ dynamicGroupSlugRef?: string | null | undefined;
77
+ fromReschedule?: string | null | undefined;
78
+ scheduledJobs?: string[] | undefined;
79
+ isRecorded?: boolean | undefined;
80
+ iCalSequence?: number | undefined;
81
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
82
+ seatReferenceUid?: string | undefined;
83
+ paymentUid?: string | undefined;
84
+ message?: string | undefined;
85
+ paymentId?: number | undefined;
86
+ }> | ApiSuccessResponse<{
87
+ references: import("@calcom/types/EventManager").PartialReference[];
88
+ seatReferenceUid: string | undefined;
89
+ luckyUsers?: number[] | undefined;
90
+ user: {
91
+ email: null;
92
+ username?: string | null | undefined;
93
+ name?: string | null | undefined;
94
+ timeZone?: string | undefined;
95
+ };
96
+ payment: {
97
+ data: import(".prisma/client").Prisma.JsonValue;
98
+ refunded: boolean;
99
+ success: boolean;
100
+ currency: string;
101
+ id: number;
102
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
103
+ bookingId: number;
104
+ uid: string;
105
+ externalId: string;
106
+ appId: string | null;
107
+ amount: number;
108
+ fee: number;
109
+ }[];
110
+ attendees: {
111
+ email: string;
112
+ name: string;
113
+ timeZone: string;
114
+ id: number;
115
+ bookingId: number | null;
116
+ locale: string | null;
117
+ }[];
118
+ paid: boolean;
119
+ location: string | null;
120
+ title: string;
121
+ description: string | null;
122
+ status: import(".prisma/client").$Enums.BookingStatus;
123
+ rescheduled: boolean | null;
124
+ metadata: import(".prisma/client").Prisma.JsonValue;
125
+ id: number;
126
+ userId: number | null;
127
+ customInputs: import(".prisma/client").Prisma.JsonValue;
128
+ smsReminderNumber: string | null;
129
+ eventTypeId: number | null;
130
+ recurringEventId: string | null;
131
+ uid: string;
132
+ cancellationReason: string | null;
133
+ iCalUID: string | null;
134
+ responses: import(".prisma/client").Prisma.JsonValue;
135
+ startTime: Date;
136
+ endTime: Date;
137
+ createdAt: Date;
138
+ updatedAt: Date | null;
139
+ idempotencyKey: string | null;
140
+ userPrimaryEmail: string | null;
141
+ destinationCalendarId: number | null;
142
+ rejectionReason: string | null;
143
+ dynamicEventSlugRef: string | null;
144
+ dynamicGroupSlugRef: string | null;
145
+ fromReschedule: string | null;
146
+ scheduledJobs: string[];
147
+ isRecorded: boolean;
148
+ iCalSequence: number;
149
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
150
+ paymentUid?: string | undefined;
151
+ paymentId?: number | undefined;
152
+ }>, Error, {
153
+ language: string;
154
+ timeZone: string;
155
+ metadata: Record<string, string>;
156
+ start: string;
157
+ eventTypeId: number;
158
+ end?: string | undefined;
159
+ eventTypeSlug?: string | undefined;
160
+ rescheduleUid?: string | undefined;
161
+ recurringEventId?: string | undefined;
162
+ user?: string | string[] | undefined;
163
+ bookingUid?: string | undefined;
164
+ hasHashedBookingLink?: boolean | undefined;
165
+ hashedLink?: string | null | undefined;
166
+ seatReferenceUid?: string | undefined;
167
+ }, unknown>;
168
+ export {};
169
+ //# sourceMappingURL=useCreateInstantBooking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateInstantBooking.d.ts","sourceRoot":"","sources":["../../hooks/useCreateInstantBooking.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAKhG,UAAU,wBAAwB;IAChC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC/D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,KAAK,IAAI,CAAC;CACnD;AACD,eAAO,MAAM,uBAAuB,4BACV,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA8BjD,CAAC"}
@@ -0,0 +1,154 @@
1
+ import type { BookingResponse, RecurringBookingCreateBody } from "@calcom/platform-libraries";
2
+ import type { ApiErrorResponse, ApiSuccessResponse } from "@calcom/platform-types";
3
+ interface IUseCreateRecurringBooking {
4
+ onSuccess?: (res: ApiSuccessResponse<BookingResponse[]>) => void;
5
+ onError?: (err: ApiErrorResponse | Error) => void;
6
+ }
7
+ export declare const useCreateRecurringBooking: ({ onSuccess, onError }?: IUseCreateRecurringBooking) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ApiErrorResponse | ApiSuccessResponse<({
8
+ luckyUsers?: number[] | undefined;
9
+ user: {
10
+ email: null;
11
+ username?: string | null | undefined;
12
+ name?: string | null | undefined;
13
+ timeZone?: string | undefined;
14
+ };
15
+ payment?: {
16
+ data: import(".prisma/client").Prisma.JsonValue;
17
+ refunded: boolean;
18
+ success: boolean;
19
+ currency: string;
20
+ id: number;
21
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
22
+ bookingId: number;
23
+ uid: string;
24
+ externalId: string;
25
+ appId: string | null;
26
+ amount: number;
27
+ fee: number;
28
+ }[] | undefined;
29
+ attendees?: {
30
+ email: string;
31
+ name: string;
32
+ timeZone: string;
33
+ id: number;
34
+ bookingId: number | null;
35
+ locale: string | null;
36
+ }[] | undefined;
37
+ references?: {
38
+ type: string;
39
+ id: number;
40
+ credentialId: number | null;
41
+ deleted: boolean | null;
42
+ bookingId: number | null;
43
+ uid: string;
44
+ thirdPartyRecurringEventId: string | null;
45
+ meetingId: string | null;
46
+ meetingPassword: string | null;
47
+ meetingUrl: string | null;
48
+ externalCalendarId: string | null;
49
+ }[] | undefined;
50
+ paid?: boolean | undefined;
51
+ location?: string | null | undefined;
52
+ title?: string | undefined;
53
+ description?: string | null | undefined;
54
+ status?: import(".prisma/client").$Enums.BookingStatus | undefined;
55
+ rescheduled?: boolean | null | undefined;
56
+ metadata?: import(".prisma/client").Prisma.JsonValue | undefined;
57
+ id?: number | undefined;
58
+ userId?: number | null | undefined;
59
+ customInputs?: import(".prisma/client").Prisma.JsonValue | undefined;
60
+ smsReminderNumber?: string | null | undefined;
61
+ eventTypeId?: number | null | undefined;
62
+ recurringEventId?: string | null | undefined;
63
+ uid?: string | undefined;
64
+ cancellationReason?: string | null | undefined;
65
+ iCalUID?: string | null | undefined;
66
+ responses?: import(".prisma/client").Prisma.JsonValue | undefined;
67
+ startTime?: Date | undefined;
68
+ endTime?: Date | undefined;
69
+ createdAt?: Date | undefined;
70
+ updatedAt?: Date | null | undefined;
71
+ idempotencyKey?: string | null | undefined;
72
+ userPrimaryEmail?: string | null | undefined;
73
+ destinationCalendarId?: number | null | undefined;
74
+ rejectionReason?: string | null | undefined;
75
+ dynamicEventSlugRef?: string | null | undefined;
76
+ dynamicGroupSlugRef?: string | null | undefined;
77
+ fromReschedule?: string | null | undefined;
78
+ scheduledJobs?: string[] | undefined;
79
+ isRecorded?: boolean | undefined;
80
+ iCalSequence?: number | undefined;
81
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
82
+ seatReferenceUid?: string | undefined;
83
+ paymentUid?: string | undefined;
84
+ message?: string | undefined;
85
+ paymentId?: number | undefined;
86
+ } | {
87
+ references: import("@calcom/types/EventManager").PartialReference[];
88
+ seatReferenceUid: string | undefined;
89
+ luckyUsers?: number[] | undefined;
90
+ user: {
91
+ email: null;
92
+ username?: string | null | undefined;
93
+ name?: string | null | undefined;
94
+ timeZone?: string | undefined;
95
+ };
96
+ payment: {
97
+ data: import(".prisma/client").Prisma.JsonValue;
98
+ refunded: boolean;
99
+ success: boolean;
100
+ currency: string;
101
+ id: number;
102
+ paymentOption: import(".prisma/client").$Enums.PaymentOption | null;
103
+ bookingId: number;
104
+ uid: string;
105
+ externalId: string;
106
+ appId: string | null;
107
+ amount: number;
108
+ fee: number;
109
+ }[];
110
+ attendees: {
111
+ email: string;
112
+ name: string;
113
+ timeZone: string;
114
+ id: number;
115
+ bookingId: number | null;
116
+ locale: string | null;
117
+ }[];
118
+ paid: boolean;
119
+ location: string | null;
120
+ title: string;
121
+ description: string | null;
122
+ status: import(".prisma/client").$Enums.BookingStatus;
123
+ rescheduled: boolean | null;
124
+ metadata: import(".prisma/client").Prisma.JsonValue;
125
+ id: number;
126
+ userId: number | null;
127
+ customInputs: import(".prisma/client").Prisma.JsonValue;
128
+ smsReminderNumber: string | null;
129
+ eventTypeId: number | null;
130
+ recurringEventId: string | null;
131
+ uid: string;
132
+ cancellationReason: string | null;
133
+ iCalUID: string | null;
134
+ responses: import(".prisma/client").Prisma.JsonValue;
135
+ startTime: Date;
136
+ endTime: Date;
137
+ createdAt: Date;
138
+ updatedAt: Date | null;
139
+ idempotencyKey: string | null;
140
+ userPrimaryEmail: string | null;
141
+ destinationCalendarId: number | null;
142
+ rejectionReason: string | null;
143
+ dynamicEventSlugRef: string | null;
144
+ dynamicGroupSlugRef: string | null;
145
+ fromReschedule: string | null;
146
+ scheduledJobs: string[];
147
+ isRecorded: boolean;
148
+ iCalSequence: number;
149
+ appsStatus?: import("@calcom/platform-libraries").AppsStatus[] | undefined;
150
+ paymentUid?: string | undefined;
151
+ paymentId?: number | undefined;
152
+ })[]>, Error, RecurringBookingCreateBody[], unknown>;
153
+ export {};
154
+ //# sourceMappingURL=useCreateRecurringBooking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateRecurringBooking.d.ts","sourceRoot":"","sources":["../../hooks/useCreateRecurringBooking.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,KAAK,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAIhG,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,eAAe,EAAE,CAAC,KAAK,IAAI,CAAC;IACjE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,yBAAyB,4BACZ,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+BnD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ApiResponse, ApiErrorResponse } from "@calcom/platform-types";
2
+ interface IUseDeleteScheduleProps {
3
+ onSuccess?: (res: ApiResponse) => void;
4
+ onError?: (err: ApiErrorResponse) => void;
5
+ }
6
+ type DeleteScheduleInput = {
7
+ id: number;
8
+ };
9
+ declare const useDeleteSchedule: ({ onSuccess, onError }?: IUseDeleteScheduleProps) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("@calcom/platform-types").ApiSuccessResponseWithoutData | ApiErrorResponse, unknown, DeleteScheduleInput, unknown>;
10
+ export default useDeleteSchedule;
11
+ //# sourceMappingURL=useDeleteSchedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeleteSchedule.d.ts","sourceRoot":"","sources":["../../hooks/useDeleteSchedule.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK5E,UAAU,uBAAuB;IAC/B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC3C;AAED,KAAK,mBAAmB,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,iBAAiB,4BACG,uBAAuB,mMAoChD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { RemoveSelectedSlotInput, ApiSuccessResponseWithoutData, ApiErrorResponse } from "@calcom/platform-types";
2
+ interface IUseDeleteSelectedSlot {
3
+ onSuccess?: (res: ApiSuccessResponseWithoutData) => void;
4
+ onError?: (err: ApiErrorResponse) => void;
5
+ }
6
+ export declare const useDeleteSelectedSlot: ({ onSuccess, onError }?: IUseDeleteSelectedSlot) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ApiSuccessResponseWithoutData | ApiErrorResponse, unknown, RemoveSelectedSlotInput, unknown>;
7
+ export {};
8
+ //# sourceMappingURL=useDeleteSelectedSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeleteSelectedSlot.d.ts","sourceRoot":"","sources":["../../hooks/useDeleteSelectedSlot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,uBAAuB,EAEvB,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAIhC,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,6BAA6B,KAAK,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC3C;AACD,eAAO,MAAM,qBAAqB,4BACR,sBAAsB,sKAkC/C,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface useGcalProps {
2
+ isAuth: boolean;
3
+ }
4
+ export declare const useGcal: ({ isAuth }: useGcalProps) => {
5
+ allowConnect: boolean;
6
+ checked: boolean;
7
+ redirectToGcalOAuth: () => void;
8
+ };
9
+ //# sourceMappingURL=useGcal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGcal.d.ts","sourceRoot":"","sources":["../../hooks/useGcal.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,eAAgB,YAAY;;;;CA0B/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useGetCityTimezones: () => {
2
+ isLoading: boolean;
3
+ data: any;
4
+ };
5
+ export default useGetCityTimezones;
6
+ //# sourceMappingURL=useGetCityTimezones.d.ts.map