@burdenoff/microfe-calendar 2026.626.2 → 2026.704.2

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.
@@ -3,13 +3,14 @@ import { useOpenEvent as t } from "../hooks/useOpenEvent.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/EventBlock.tsx
5
5
  function i({ event: i }) {
6
- let a = t();
6
+ let a = t(), o = (e) => {
7
+ e.stopPropagation(), a(i);
8
+ }, s = i.sourceKind === "task" || i.sourceKind === "milestone", c = s ? "bg-bg-canvas text-text-primary border-l-2 border-border-default hover:bg-bg-elevated" : i.sourceKind === "scheduler" ? "bg-bg-canvas text-text-primary border-border-strong hover:bg-bg-elevated" : "bg-bg-elevated text-text-primary border-border-default hover:bg-bg-canvas";
7
9
  return /* @__PURE__ */ r("button", {
8
10
  type: "button",
9
- onClick: (e) => {
10
- e.stopPropagation(), a(i);
11
- },
12
- className: `w-full text-left px-1.5 py-0.5 rounded text-xs border transition-colors cursor-pointer truncate ${i.sourceKind === "scheduler" ? "bg-bg-canvas text-text-primary border-border-strong hover:bg-bg-elevated" : "bg-bg-elevated text-text-primary border-border-default hover:bg-bg-canvas"}`,
11
+ onClick: o,
12
+ style: s ? { borderLeftColor: i.calendarColor ?? "var(--color-action-primary-bg)" } : void 0,
13
+ className: `w-full text-left px-1.5 py-0.5 rounded text-xs border transition-colors cursor-pointer truncate ${c}`,
13
14
  title: `${i.title} (${e(i.startTime)} - ${e(i.endTime)})`,
14
15
  children: [/* @__PURE__ */ n("span", {
15
16
  className: "font-medium",
@@ -1 +1 @@
1
- {"version":3,"file":"EventBlock.js","names":[],"sources":["../../src/components/EventBlock.tsx"],"sourcesContent":["/**\n * EventBlock — Renders a single event inside a time grid cell\n *\n * Displays the event title and time range. Clicking selects the event\n * in the calendar store for detail view.\n */\n\nimport { useOpenEvent } from '../hooks/useOpenEvent';\nimport { formatTime } from '../utils/dateHelpers';\nimport type { CalendarEvent } from '../types';\n\ninterface EventBlockProps {\n event: CalendarEvent;\n}\n\nexport function EventBlock({ event }: EventBlockProps) {\n const openEvent = useOpenEvent();\n\n const handleClick = (e: React.MouseEvent) => {\n e.stopPropagation();\n openEvent(event);\n };\n\n const isSchedulerEvent = event.sourceKind === 'scheduler';\n const baseClasses = isSchedulerEvent\n ? 'bg-bg-canvas text-text-primary border-border-strong hover:bg-bg-elevated'\n : 'bg-bg-elevated text-text-primary border-border-default hover:bg-bg-canvas';\n\n return (\n <button\n type=\"button\"\n onClick={handleClick}\n className={`w-full text-left px-1.5 py-0.5 rounded text-xs border transition-colors cursor-pointer truncate ${baseClasses}`}\n title={`${event.title} (${formatTime(event.startTime)} - ${formatTime(event.endTime)})`}\n >\n <span className=\"font-medium\">{event.title}</span>\n {!event.isAllDay && <span className=\"ml-1 opacity-70\">{formatTime(event.startTime)}</span>}\n </button>\n );\n}\n"],"mappings":";;;;AAeA,SAAgB,EAAW,EAAE,YAA0B;CACrD,IAAM,IAAY,GAAc;AAYhC,QACE,kBAAC,UAAD;EACE,MAAK;EACL,UAbiB,MAAwB;AAE3C,GADA,EAAE,iBAAiB,EACnB,EAAU,EAAM;;EAYd,WAAW,mGATU,EAAM,eAAe,cAE1C,6EACA;EAOA,OAAO,GAAG,EAAM,MAAM,IAAI,EAAW,EAAM,UAAU,CAAC,KAAK,EAAW,EAAM,QAAQ,CAAC;YAJvF,CAME,kBAAC,QAAD;GAAM,WAAU;aAAe,EAAM;GAAa,CAAA,EACjD,CAAC,EAAM,YAAY,kBAAC,QAAD;GAAM,WAAU;aAAmB,EAAW,EAAM,UAAU;GAAQ,CAAA,CACnF"}
1
+ {"version":3,"file":"EventBlock.js","names":[],"sources":["../../src/components/EventBlock.tsx"],"sourcesContent":["/**\n * EventBlock — Renders a single event inside a time grid cell\n *\n * Displays the event title and time range. Clicking selects the event\n * in the calendar store for detail view.\n */\n\nimport { useOpenEvent } from '../hooks/useOpenEvent';\nimport { formatTime } from '../utils/dateHelpers';\nimport type { CalendarEvent } from '../types';\n\ninterface EventBlockProps {\n event: CalendarEvent;\n}\n\nexport function EventBlock({ event }: EventBlockProps) {\n const openEvent = useOpenEvent();\n\n const handleClick = (e: React.MouseEvent) => {\n e.stopPropagation();\n openEvent(event);\n };\n\n // Task / milestone overlay events read as a distinct layer: canvas background\n // + a colored left accent (the synthetic event's calendarColor), so they're\n // visually separable from real calendar events without inventing new tokens.\n const isOverlayEvent = event.sourceKind === 'task' || event.sourceKind === 'milestone';\n const baseClasses = isOverlayEvent\n ? 'bg-bg-canvas text-text-primary border-l-2 border-border-default hover:bg-bg-elevated'\n : event.sourceKind === 'scheduler'\n ? 'bg-bg-canvas text-text-primary border-border-strong hover:bg-bg-elevated'\n : 'bg-bg-elevated text-text-primary border-border-default hover:bg-bg-canvas';\n const overlayStyle = isOverlayEvent\n ? { borderLeftColor: event.calendarColor ?? 'var(--color-action-primary-bg)' }\n : undefined;\n\n return (\n <button\n type=\"button\"\n onClick={handleClick}\n style={overlayStyle}\n className={`w-full text-left px-1.5 py-0.5 rounded text-xs border transition-colors cursor-pointer truncate ${baseClasses}`}\n title={`${event.title} (${formatTime(event.startTime)} - ${formatTime(event.endTime)})`}\n >\n <span className=\"font-medium\">{event.title}</span>\n {!event.isAllDay && <span className=\"ml-1 opacity-70\">{formatTime(event.startTime)}</span>}\n </button>\n );\n}\n"],"mappings":";;;;AAeA,SAAgB,EAAW,EAAE,YAA0B;CACrD,IAAM,IAAY,GAAc,EAE1B,KAAe,MAAwB;AAE3C,EADA,EAAE,iBAAiB,EACnB,EAAU,EAAM;IAMZ,IAAiB,EAAM,eAAe,UAAU,EAAM,eAAe,aACrE,IAAc,IAChB,yFACA,EAAM,eAAe,cACnB,6EACA;AAKN,QACE,kBAAC,UAAD;EACE,MAAK;EACL,SAAS;EACT,OARiB,IACjB,EAAE,iBAAiB,EAAM,iBAAiB,kCAAkC,GAC5E,KAAA;EAOA,WAAW,mGAAmG;EAC9G,OAAO,GAAG,EAAM,MAAM,IAAI,EAAW,EAAM,UAAU,CAAC,KAAK,EAAW,EAAM,QAAQ,CAAC;YALvF,CAOE,kBAAC,QAAD;GAAM,WAAU;aAAe,EAAM;GAAa,CAAA,EACjD,CAAC,EAAM,YAAY,kBAAC,QAAD;GAAM,WAAU;aAAmB,EAAW,EAAM,UAAU;GAAQ,CAAA,CACnF"}
@@ -0,0 +1,107 @@
1
+ import { useCalendar as e } from "../providers/CalendarProvider.js";
2
+ import { useCalendarStore as t } from "../store/calendarStore.js";
3
+ import { formatDate as n } from "../utils/dateHelpers.js";
4
+ import { useEffect as r, useRef as i } from "react";
5
+ import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
+ import { ExternalLink as o, Flag as s, ListChecks as c, X as l } from "lucide-react";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
+ //#region src/components/TaskEventDetail.tsx
9
+ function f(e) {
10
+ return typeof e != "string" || !e ? null : e.toLowerCase().split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
11
+ }
12
+ var p = () => {
13
+ let p = t((e) => e.taskDetailEvent), m = t((e) => e.closeTaskDetail), { navigate: h } = e(), g = i(null), { t: _ } = a(), v = (e, t) => {
14
+ let n = _(e);
15
+ return n === e ? t : n;
16
+ }, y = !!p;
17
+ if (r(() => {
18
+ let e = g.current;
19
+ e && (y && !e.open ? e.showModal() : !y && e.open && e.close());
20
+ }, [y]), !p) return null;
21
+ let b = p.metadata ?? {}, x = p.sourceKind === "milestone", S = f(b.status), C = f(b.priority), w = !!b.assigneeId, T = [{
22
+ label: v("calendar.dueDate", "Due date"),
23
+ value: n(p.startTime)
24
+ }, {
25
+ label: v("calendar.type", "Type"),
26
+ value: x ? v("calendar.milestone", "Milestone") : v("calendar.task", "Task")
27
+ }];
28
+ return S && T.push({
29
+ label: v("calendar.status", "Status"),
30
+ value: S
31
+ }), !x && C && T.push({
32
+ label: v("calendar.priority", "Priority"),
33
+ value: C
34
+ }), x || T.push({
35
+ label: v("calendar.assignee", "Assignee"),
36
+ value: w ? v("calendar.assigned", "Assigned") : v("calendar.unassigned", "Unassigned")
37
+ }), /* @__PURE__ */ u("dialog", {
38
+ ref: g,
39
+ className: "fixed inset-0 z-50 m-auto w-full max-w-md rounded-radius-lg border border-border-default bg-bg-surface p-0 shadow-lg backdrop:bg-black/50",
40
+ onClose: m,
41
+ children: /* @__PURE__ */ d("div", {
42
+ className: "p-6",
43
+ children: [
44
+ /* @__PURE__ */ d("div", {
45
+ className: "flex items-start gap-3",
46
+ children: [
47
+ /* @__PURE__ */ u("div", {
48
+ className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-bg-neutral text-text-secondary",
49
+ children: u(x ? s : c, { className: "size-4" })
50
+ }),
51
+ /* @__PURE__ */ d("div", {
52
+ className: "min-w-0 flex-1",
53
+ children: [/* @__PURE__ */ u("p", {
54
+ className: "font-text-xs font-weight-medium uppercase tracking-wide text-text-tertiary",
55
+ children: x ? v("calendar.milestone", "Milestone") : v("calendar.task", "Task")
56
+ }), /* @__PURE__ */ u("h3", {
57
+ className: "font-heading-sm text-text-primary",
58
+ children: p.title
59
+ })]
60
+ }),
61
+ /* @__PURE__ */ u("button", {
62
+ type: "button",
63
+ onClick: m,
64
+ className: "inline-flex size-8 shrink-0 items-center justify-center rounded-radius-sm text-text-tertiary transition-colors hover:bg-bg-elevated",
65
+ "aria-label": v("calendar.close", "Close"),
66
+ children: /* @__PURE__ */ u(l, { className: "size-4" })
67
+ })
68
+ ]
69
+ }),
70
+ /* @__PURE__ */ u("dl", {
71
+ className: "mt-4 space-y-2",
72
+ children: T.map((e) => /* @__PURE__ */ d("div", {
73
+ className: "flex items-center justify-between gap-4",
74
+ children: [/* @__PURE__ */ u("dt", {
75
+ className: "font-text-sm text-text-secondary",
76
+ children: e.label
77
+ }), /* @__PURE__ */ u("dd", {
78
+ className: "font-text-sm font-weight-medium text-text-primary",
79
+ children: e.value
80
+ })]
81
+ }, e.label))
82
+ }),
83
+ /* @__PURE__ */ d("div", {
84
+ className: "mt-6 flex justify-end gap-3",
85
+ children: [/* @__PURE__ */ u("button", {
86
+ type: "button",
87
+ onClick: m,
88
+ className: "rounded-radius-md border border-border-default bg-bg-surface px-4 py-2 font-text-sm font-weight-medium text-text-primary transition-colors hover:bg-bg-elevated",
89
+ children: v("calendar.close", "Close")
90
+ }), /* @__PURE__ */ d("button", {
91
+ type: "button",
92
+ onClick: () => {
93
+ let e = p.deepLink;
94
+ m(), e && h(e);
95
+ },
96
+ className: "inline-flex items-center gap-2 rounded-radius-md bg-action-primary-bg px-4 py-2 font-text-sm font-weight-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover",
97
+ children: [/* @__PURE__ */ u(o, { className: "size-4" }), v("calendar.openInTasks", "Open in Tasks")]
98
+ })]
99
+ })
100
+ ]
101
+ })
102
+ });
103
+ };
104
+ //#endregion
105
+ export { p as TaskEventDetail };
106
+
107
+ //# sourceMappingURL=TaskEventDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskEventDetail.js","names":[],"sources":["../../src/components/TaskEventDetail.tsx"],"sourcesContent":["/**\n * TaskEventDetail — a read-only details modal for a PlanMagnet task / milestone\n * overlay event.\n *\n * The calendar VIEWS task info; it does not own or edit it. Clicking a\n * task/milestone opens this modal (title, due date, status, priority, assignee)\n * rendered entirely from the in-memory synthetic event — no calendar-svc fetch,\n * so a synthetic id never 404s. The \"Open in Tasks\" button deep-links to the\n * host's Tasks page (`event.deepLink` → `/…/tasks?item=<id>`) where the task can\n * actually be edited/managed. Flow: Calendar → Event Details → Open in PlanMagnet.\n */\n\nimport { useEffect, useRef, type FC } from 'react';\nimport { ExternalLink, Flag, ListChecks, X } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { useCalendarStore } from '../store/calendarStore';\nimport { useCalendar } from '../providers/CalendarProvider';\nimport { formatDate } from '../utils/dateHelpers';\n\n/** Humanize an ENUM_VALUE → \"Enum Value\" for display. */\nfunction humanize(value: unknown): string | null {\n if (typeof value !== 'string' || !value) return null;\n return value\n .toLowerCase()\n .split('_')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n}\n\nexport const TaskEventDetail: FC = () => {\n const event = useCalendarStore((state) => state.taskDetailEvent);\n const closeTaskDetail = useCalendarStore((state) => state.closeTaskDetail);\n const { navigate } = useCalendar();\n const dialogRef = useRef<HTMLDialogElement>(null);\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const value = t(key);\n return value === key ? fallback : value;\n };\n\n const open = Boolean(event);\n\n useEffect(() => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (open && !dialog.open) dialog.showModal();\n else if (!open && dialog.open) dialog.close();\n }, [open]);\n\n if (!event) return null;\n\n const metadata = (event.metadata ?? {}) as Record<string, unknown>;\n const isMilestone = event.sourceKind === 'milestone';\n const status = humanize(metadata.status);\n const priority = humanize(metadata.priority);\n const hasAssignee = Boolean(metadata.assigneeId);\n\n const rows: Array<{ label: string; value: string }> = [\n { label: tr('calendar.dueDate', 'Due date'), value: formatDate(event.startTime) },\n {\n label: tr('calendar.type', 'Type'),\n value: isMilestone ? tr('calendar.milestone', 'Milestone') : tr('calendar.task', 'Task'),\n },\n ];\n if (status) rows.push({ label: tr('calendar.status', 'Status'), value: status });\n if (!isMilestone && priority)\n rows.push({ label: tr('calendar.priority', 'Priority'), value: priority });\n if (!isMilestone)\n rows.push({\n label: tr('calendar.assignee', 'Assignee'),\n value: hasAssignee\n ? tr('calendar.assigned', 'Assigned')\n : tr('calendar.unassigned', 'Unassigned'),\n });\n\n const openInTasks = () => {\n const deepLink = event.deepLink;\n closeTaskDetail();\n if (deepLink) navigate(deepLink);\n };\n\n return (\n <dialog\n ref={dialogRef}\n className=\"fixed inset-0 z-50 m-auto w-full max-w-md rounded-radius-lg border border-border-default bg-bg-surface p-0 shadow-lg backdrop:bg-black/50\"\n onClose={closeTaskDetail}\n >\n <div className=\"p-6\">\n {/* Header */}\n <div className=\"flex items-start gap-3\">\n <div className=\"flex size-9 shrink-0 items-center justify-center rounded-full bg-bg-neutral text-text-secondary\">\n {isMilestone ? <Flag className=\"size-4\" /> : <ListChecks className=\"size-4\" />}\n </div>\n <div className=\"min-w-0 flex-1\">\n <p className=\"font-text-xs font-weight-medium uppercase tracking-wide text-text-tertiary\">\n {isMilestone ? tr('calendar.milestone', 'Milestone') : tr('calendar.task', 'Task')}\n </p>\n <h3 className=\"font-heading-sm text-text-primary\">{event.title}</h3>\n </div>\n <button\n type=\"button\"\n onClick={closeTaskDetail}\n className=\"inline-flex size-8 shrink-0 items-center justify-center rounded-radius-sm text-text-tertiary transition-colors hover:bg-bg-elevated\"\n aria-label={tr('calendar.close', 'Close')}\n >\n <X className=\"size-4\" />\n </button>\n </div>\n\n {/* Read-only fields */}\n <dl className=\"mt-4 space-y-2\">\n {rows.map((row) => (\n <div key={row.label} className=\"flex items-center justify-between gap-4\">\n <dt className=\"font-text-sm text-text-secondary\">{row.label}</dt>\n <dd className=\"font-text-sm font-weight-medium text-text-primary\">{row.value}</dd>\n </div>\n ))}\n </dl>\n\n {/* Actions */}\n <div className=\"mt-6 flex justify-end gap-3\">\n <button\n type=\"button\"\n onClick={closeTaskDetail}\n className=\"rounded-radius-md border border-border-default bg-bg-surface px-4 py-2 font-text-sm font-weight-medium text-text-primary transition-colors hover:bg-bg-elevated\"\n >\n {tr('calendar.close', 'Close')}\n </button>\n <button\n type=\"button\"\n onClick={openInTasks}\n className=\"inline-flex items-center gap-2 rounded-radius-md bg-action-primary-bg px-4 py-2 font-text-sm font-weight-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover\"\n >\n <ExternalLink className=\"size-4\" />\n {tr('calendar.openInTasks', 'Open in Tasks')}\n </button>\n </div>\n </div>\n </dialog>\n );\n};\n"],"mappings":"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"}
@@ -1,6 +1,32 @@
1
1
  import { gql as e } from "@apollo/client";
2
2
  //#region src/graphql/calendarDocuments.ts
3
3
  var t = e`
4
+ query CalendarPlanmagnetWorkItems($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {
5
+ planmagnetWorkItems(workspaceId: $workspaceId, pagination: $pagination) {
6
+ items {
7
+ id
8
+ key
9
+ title
10
+ type
11
+ status
12
+ priority
13
+ assigneeId
14
+ dueDate
15
+ }
16
+ }
17
+ }
18
+ `, n = e`
19
+ query CalendarPlanmagnetMilestones($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {
20
+ planmagnetMilestones(workspaceId: $workspaceId, pagination: $pagination) {
21
+ items {
22
+ id
23
+ name
24
+ status
25
+ dueDate
26
+ }
27
+ }
28
+ }
29
+ `, r = e`
4
30
  query CalendarEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {
5
31
  eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {
6
32
  id
@@ -67,7 +93,7 @@ var t = e`
67
93
  attachments
68
94
  }
69
95
  }
70
- `, n = e`
96
+ `, i = e`
71
97
  query CalendarScheduledJobs(
72
98
  $workspaceId: ID!
73
99
  $nextExecutionAfter: DateTime
@@ -97,7 +123,7 @@ var t = e`
97
123
  }
98
124
  }
99
125
  }
100
- `, r = e`
126
+ `, a = e`
101
127
  query CalendarDetails($id: ID!) {
102
128
  calendar(id: $id) {
103
129
  id
@@ -130,7 +156,7 @@ var t = e`
130
156
  }
131
157
  }
132
158
  }
133
- `, i = e`
159
+ `, o = e`
134
160
  query CalendarAvailabilityRules($calendarId: ID!) {
135
161
  getAvailabilityRules(calendarId: $calendarId) {
136
162
  id
@@ -148,7 +174,7 @@ var t = e`
148
174
  priority
149
175
  }
150
176
  }
151
- `, a = e`
177
+ `, s = e`
152
178
  query CalendarBlackoutDates($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {
153
179
  getBlackoutDates(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {
154
180
  id
@@ -160,7 +186,7 @@ var t = e`
160
186
  createdAt
161
187
  }
162
188
  }
163
- `, o = e`
189
+ `, c = e`
164
190
  query CalendarExternalSyncs($calendarId: ID!) {
165
191
  getExternalCalendarSyncs(calendarId: $calendarId) {
166
192
  id
@@ -181,7 +207,7 @@ var t = e`
181
207
  updatedAt
182
208
  }
183
209
  }
184
- `, s = e`
210
+ `, l = e`
185
211
  mutation ShareCalendar(
186
212
  $calendarId: ID!
187
213
  $userId: String
@@ -207,11 +233,11 @@ var t = e`
207
233
  createdAt
208
234
  }
209
235
  }
210
- `, c = e`
236
+ `, u = e`
211
237
  mutation RevokeCalendarShare($shareId: ID!) {
212
238
  revokeCalendarShare(shareId: $shareId)
213
239
  }
214
- `, l = e`
240
+ `, d = e`
215
241
  mutation CreateAvailabilityRule($input: CreateAvailabilityRuleInput!) {
216
242
  createAvailabilityRule(input: $input) {
217
243
  id
@@ -228,11 +254,11 @@ var t = e`
228
254
  priority
229
255
  }
230
256
  }
231
- `, u = e`
257
+ `, f = e`
232
258
  mutation DeleteAvailabilityRule($id: ID!) {
233
259
  deleteAvailabilityRule(id: $id)
234
260
  }
235
- `, d = e`
261
+ `, p = e`
236
262
  mutation CreateBlackoutDate($input: CreateBlackoutDateInput!) {
237
263
  createBlackoutDate(input: $input) {
238
264
  id
@@ -244,11 +270,11 @@ var t = e`
244
270
  createdAt
245
271
  }
246
272
  }
247
- `, f = e`
273
+ `, m = e`
248
274
  mutation DeleteBlackoutDate($id: ID!) {
249
275
  deleteBlackoutDate(id: $id)
250
276
  }
251
- `, p = e`
277
+ `, h = e`
252
278
  mutation CreateBookingPage($input: CreateBookingPageInput!) {
253
279
  createBookingPage(input: $input) {
254
280
  id
@@ -263,11 +289,11 @@ var t = e`
263
289
  maxAttendees
264
290
  }
265
291
  }
266
- `, m = e`
292
+ `, g = e`
267
293
  mutation DeleteBookingPage($id: ID!) {
268
294
  deleteBookingPage(id: $id)
269
295
  }
270
- `, h = e`
296
+ `, _ = e`
271
297
  mutation ConnectExternalCalendar($input: ConnectExternalCalendarInput!) {
272
298
  connectExternalCalendar(input: $input) {
273
299
  id
@@ -284,7 +310,7 @@ var t = e`
284
310
  nextSyncAt
285
311
  }
286
312
  }
287
- `, g = e`
313
+ `, v = e`
288
314
  mutation TriggerExternalCalendarSync($syncId: ID!) {
289
315
  triggerSync(syncId: $syncId) {
290
316
  id
@@ -295,7 +321,7 @@ var t = e`
295
321
  nextSyncAt
296
322
  }
297
323
  }
298
- `, _ = e`
324
+ `, y = e`
299
325
  mutation PauseExternalCalendarSync($syncId: ID!) {
300
326
  pauseSync(syncId: $syncId) {
301
327
  id
@@ -303,7 +329,7 @@ var t = e`
303
329
  syncEnabled
304
330
  }
305
331
  }
306
- `, v = e`
332
+ `, b = e`
307
333
  mutation ResumeExternalCalendarSync($syncId: ID!) {
308
334
  resumeSync(syncId: $syncId) {
309
335
  id
@@ -311,11 +337,11 @@ var t = e`
311
337
  syncEnabled
312
338
  }
313
339
  }
314
- `, y = e`
340
+ `, x = e`
315
341
  mutation DisconnectExternalCalendar($syncId: ID!) {
316
342
  disconnectExternalCalendar(syncId: $syncId)
317
343
  }
318
- `, b = e`
344
+ `, S = e`
319
345
  mutation AddCalendarAttendee($eventId: ID!, $userId: String, $email: String, $name: String) {
320
346
  addAttendee(eventId: $eventId, userId: $userId, email: $email, name: $name) {
321
347
  id
@@ -326,11 +352,11 @@ var t = e`
326
352
  isOptional
327
353
  }
328
354
  }
329
- `, x = e`
355
+ `, C = e`
330
356
  mutation RemoveCalendarAttendee($attendeeId: ID!) {
331
357
  removeAttendee(attendeeId: $attendeeId)
332
358
  }
333
- `, S = e`
359
+ `, w = e`
334
360
  mutation RespondToCalendarEvent($eventId: ID!, $status: RSVPStatus!) {
335
361
  respondToEvent(eventId: $eventId, status: $status) {
336
362
  id
@@ -341,7 +367,7 @@ var t = e`
341
367
  isOptional
342
368
  }
343
369
  }
344
- `, C = e`
370
+ `, T = e`
345
371
  mutation CreateCalendarReminder($input: CreateReminderInput!) {
346
372
  createReminder(input: $input) {
347
373
  id
@@ -349,12 +375,12 @@ var t = e`
349
375
  channel
350
376
  }
351
377
  }
352
- `, w = e`
378
+ `, E = e`
353
379
  mutation DeleteCalendarReminder($id: ID!) {
354
380
  deleteReminder(id: $id)
355
381
  }
356
382
  `;
357
383
  //#endregion
358
- export { b as ADD_ATTENDEE_MUTATION, i as AVAILABILITY_RULES_QUERY, a as BLACKOUT_DATES_QUERY, r as CALENDAR_DETAILS_QUERY, h as CONNECT_EXTERNAL_CALENDAR_MUTATION, l as CREATE_AVAILABILITY_RULE_MUTATION, d as CREATE_BLACKOUT_DATE_MUTATION, p as CREATE_BOOKING_PAGE_MUTATION, C as CREATE_REMINDER_MUTATION, u as DELETE_AVAILABILITY_RULE_MUTATION, f as DELETE_BLACKOUT_DATE_MUTATION, m as DELETE_BOOKING_PAGE_MUTATION, w as DELETE_REMINDER_MUTATION, y as DISCONNECT_EXTERNAL_CALENDAR_MUTATION, t as EVENTS_IN_RANGE_QUERY, o as EXTERNAL_SYNCS_QUERY, _ as PAUSE_SYNC_MUTATION, x as REMOVE_ATTENDEE_MUTATION, S as RESPOND_TO_EVENT_MUTATION, v as RESUME_SYNC_MUTATION, c as REVOKE_CALENDAR_SHARE_MUTATION, n as SCHEDULED_JOBS_QUERY, s as SHARE_CALENDAR_MUTATION, g as TRIGGER_SYNC_MUTATION };
384
+ export { S as ADD_ATTENDEE_MUTATION, o as AVAILABILITY_RULES_QUERY, s as BLACKOUT_DATES_QUERY, a as CALENDAR_DETAILS_QUERY, _ as CONNECT_EXTERNAL_CALENDAR_MUTATION, d as CREATE_AVAILABILITY_RULE_MUTATION, p as CREATE_BLACKOUT_DATE_MUTATION, h as CREATE_BOOKING_PAGE_MUTATION, T as CREATE_REMINDER_MUTATION, f as DELETE_AVAILABILITY_RULE_MUTATION, m as DELETE_BLACKOUT_DATE_MUTATION, g as DELETE_BOOKING_PAGE_MUTATION, E as DELETE_REMINDER_MUTATION, x as DISCONNECT_EXTERNAL_CALENDAR_MUTATION, r as EVENTS_IN_RANGE_QUERY, c as EXTERNAL_SYNCS_QUERY, y as PAUSE_SYNC_MUTATION, n as PLANMAGNET_MILESTONES_QUERY, t as PLANMAGNET_WORK_ITEMS_QUERY, C as REMOVE_ATTENDEE_MUTATION, w as RESPOND_TO_EVENT_MUTATION, b as RESUME_SYNC_MUTATION, u as REVOKE_CALENDAR_SHARE_MUTATION, i as SCHEDULED_JOBS_QUERY, l as SHARE_CALENDAR_MUTATION, v as TRIGGER_SYNC_MUTATION };
359
385
 
360
386
  //# sourceMappingURL=calendarDocuments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendarDocuments.js","names":[],"sources":["../../src/graphql/calendarDocuments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const EVENTS_IN_RANGE_QUERY = gql`\n query CalendarEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n checkInEnabled\n onlineMeetingUrl\n onlineMeetingProvider\n metadata\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n attachments\n }\n }\n`;\n\nexport const SCHEDULED_JOBS_QUERY = gql`\n query CalendarScheduledJobs(\n $workspaceId: ID!\n $nextExecutionAfter: DateTime\n $nextExecutionBefore: DateTime\n ) {\n scheduledJobs(\n workspaceId: $workspaceId\n filter: { nextExecutionAfter: $nextExecutionAfter, nextExecutionBefore: $nextExecutionBefore }\n pagination: { first: 100 }\n ) {\n jobs {\n id\n name\n description\n scheduleType\n status\n priority\n scheduledAt\n nextExecutionAt\n lastExecutionAt\n timezone\n tags\n actionId\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CALENDAR_DETAILS_QUERY = gql`\n query CalendarDetails($id: ID!) {\n calendar(id: $id) {\n id\n name\n description\n color\n timezone\n calendarType\n isPublic\n isDefault\n shares {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n bookingPages {\n id\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n }\n`;\n\nexport const AVAILABILITY_RULES_QUERY = gql`\n query CalendarAvailabilityRules($calendarId: ID!) {\n getAvailabilityRules(calendarId: $calendarId) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n minGapBetweenEvents\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const BLACKOUT_DATES_QUERY = gql`\n query CalendarBlackoutDates($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n getBlackoutDates(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const EXTERNAL_SYNCS_QUERY = gql`\n query CalendarExternalSyncs($calendarId: ID!) {\n getExternalCalendarSyncs(calendarId: $calendarId) {\n id\n calendarId\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SHARE_CALENDAR_MUTATION = gql`\n mutation ShareCalendar(\n $calendarId: ID!\n $userId: String\n $teamId: String\n $canView: Boolean!\n $canEdit: Boolean!\n $canManage: Boolean!\n ) {\n shareCalendar(\n calendarId: $calendarId\n userId: $userId\n teamId: $teamId\n canView: $canView\n canEdit: $canEdit\n canManage: $canManage\n ) {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n }\n`;\n\nexport const REVOKE_CALENDAR_SHARE_MUTATION = gql`\n mutation RevokeCalendarShare($shareId: ID!) {\n revokeCalendarShare(shareId: $shareId)\n }\n`;\n\nexport const CREATE_AVAILABILITY_RULE_MUTATION = gql`\n mutation CreateAvailabilityRule($input: CreateAvailabilityRuleInput!) {\n createAvailabilityRule(input: $input) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const DELETE_AVAILABILITY_RULE_MUTATION = gql`\n mutation DeleteAvailabilityRule($id: ID!) {\n deleteAvailabilityRule(id: $id)\n }\n`;\n\nexport const CREATE_BLACKOUT_DATE_MUTATION = gql`\n mutation CreateBlackoutDate($input: CreateBlackoutDateInput!) {\n createBlackoutDate(input: $input) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const DELETE_BLACKOUT_DATE_MUTATION = gql`\n mutation DeleteBlackoutDate($id: ID!) {\n deleteBlackoutDate(id: $id)\n }\n`;\n\nexport const CREATE_BOOKING_PAGE_MUTATION = gql`\n mutation CreateBookingPage($input: CreateBookingPageInput!) {\n createBookingPage(input: $input) {\n id\n calendarId\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n`;\n\nexport const DELETE_BOOKING_PAGE_MUTATION = gql`\n mutation DeleteBookingPage($id: ID!) {\n deleteBookingPage(id: $id)\n }\n`;\n\nexport const CONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation ConnectExternalCalendar($input: ConnectExternalCalendarInput!) {\n connectExternalCalendar(input: $input) {\n id\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const TRIGGER_SYNC_MUTATION = gql`\n mutation TriggerExternalCalendarSync($syncId: ID!) {\n triggerSync(syncId: $syncId) {\n id\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const PAUSE_SYNC_MUTATION = gql`\n mutation PauseExternalCalendarSync($syncId: ID!) {\n pauseSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const RESUME_SYNC_MUTATION = gql`\n mutation ResumeExternalCalendarSync($syncId: ID!) {\n resumeSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const DISCONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation DisconnectExternalCalendar($syncId: ID!) {\n disconnectExternalCalendar(syncId: $syncId)\n }\n`;\n\nexport const ADD_ATTENDEE_MUTATION = gql`\n mutation AddCalendarAttendee($eventId: ID!, $userId: String, $email: String, $name: String) {\n addAttendee(eventId: $eventId, userId: $userId, email: $email, name: $name) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const REMOVE_ATTENDEE_MUTATION = gql`\n mutation RemoveCalendarAttendee($attendeeId: ID!) {\n removeAttendee(attendeeId: $attendeeId)\n }\n`;\n\nexport const RESPOND_TO_EVENT_MUTATION = gql`\n mutation RespondToCalendarEvent($eventId: ID!, $status: RSVPStatus!) {\n respondToEvent(eventId: $eventId, status: $status) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const CREATE_REMINDER_MUTATION = gql`\n mutation CreateCalendarReminder($input: CreateReminderInput!) {\n createReminder(input: $input) {\n id\n minutesBefore\n channel\n }\n }\n`;\n\nexport const DELETE_REMINDER_MUTATION = gql`\n mutation DeleteCalendarReminder($id: ID!) {\n deleteReminder(id: $id)\n }\n`;\n"],"mappings":";;AAEA,IAAa,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqE3B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC1B,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC5B,IAA2B,CAAG;;;;;;;;;;;;;;;;;;GAoB9B,IAAuB,CAAG;;;;;;;;;;;;GAc1B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;GAuB1B,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7B,IAAiC,CAAG;;;;GAMpC,IAAoC,CAAG;;;;;;;;;;;;;;;;;GAmBvC,IAAoC,CAAG;;;;GAMvC,IAAgC,CAAG;;;;;;;;;;;;GAcnC,IAAgC,CAAG;;;;GAMnC,IAA+B,CAAG;;;;;;;;;;;;;;;GAiBlC,IAA+B,CAAG;;;;GAMlC,IAAqC,CAAG;;;;;;;;;;;;;;;;;GAmBxC,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAAsB,CAAG;;;;;;;;GAUzB,IAAuB,CAAG;;;;;;;;GAU1B,IAAwC,CAAG;;;;GAM3C,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAA2B,CAAG;;;;GAM9B,IAA4B,CAAG;;;;;;;;;;;GAa/B,IAA2B,CAAG;;;;;;;;GAU9B,IAA2B,CAAG"}
1
+ {"version":3,"file":"calendarDocuments.js","names":[],"sources":["../../src/graphql/calendarDocuments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\n/**\n * PlanMagnet work items for the task overlay. Deliberately selects a MINIMAL\n * field set and does NOT select `sortOrder` — that field is `Int!` in the SDL\n * but backed by the Prisma `position` column, and selecting it triggers a\n * gateway serialization crash on some paths (the same class of bug the svc\n * field-resolver fix addresses). We only need enough to place + label + link a\n * task on the calendar. Workspace-scoped, no date filter exists on the list\n * query, so we page a generous window and filter by dueDate client-side.\n */\nexport const PLANMAGNET_WORK_ITEMS_QUERY = gql`\n query CalendarPlanmagnetWorkItems($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetWorkItems(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n key\n title\n type\n status\n priority\n assigneeId\n dueDate\n }\n }\n }\n`;\n\nexport const PLANMAGNET_MILESTONES_QUERY = gql`\n query CalendarPlanmagnetMilestones($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetMilestones(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n name\n status\n dueDate\n }\n }\n }\n`;\n\nexport const EVENTS_IN_RANGE_QUERY = gql`\n query CalendarEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n checkInEnabled\n onlineMeetingUrl\n onlineMeetingProvider\n metadata\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n attachments\n }\n }\n`;\n\nexport const SCHEDULED_JOBS_QUERY = gql`\n query CalendarScheduledJobs(\n $workspaceId: ID!\n $nextExecutionAfter: DateTime\n $nextExecutionBefore: DateTime\n ) {\n scheduledJobs(\n workspaceId: $workspaceId\n filter: { nextExecutionAfter: $nextExecutionAfter, nextExecutionBefore: $nextExecutionBefore }\n pagination: { first: 100 }\n ) {\n jobs {\n id\n name\n description\n scheduleType\n status\n priority\n scheduledAt\n nextExecutionAt\n lastExecutionAt\n timezone\n tags\n actionId\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CALENDAR_DETAILS_QUERY = gql`\n query CalendarDetails($id: ID!) {\n calendar(id: $id) {\n id\n name\n description\n color\n timezone\n calendarType\n isPublic\n isDefault\n shares {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n bookingPages {\n id\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n }\n`;\n\nexport const AVAILABILITY_RULES_QUERY = gql`\n query CalendarAvailabilityRules($calendarId: ID!) {\n getAvailabilityRules(calendarId: $calendarId) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n minGapBetweenEvents\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const BLACKOUT_DATES_QUERY = gql`\n query CalendarBlackoutDates($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n getBlackoutDates(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const EXTERNAL_SYNCS_QUERY = gql`\n query CalendarExternalSyncs($calendarId: ID!) {\n getExternalCalendarSyncs(calendarId: $calendarId) {\n id\n calendarId\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SHARE_CALENDAR_MUTATION = gql`\n mutation ShareCalendar(\n $calendarId: ID!\n $userId: String\n $teamId: String\n $canView: Boolean!\n $canEdit: Boolean!\n $canManage: Boolean!\n ) {\n shareCalendar(\n calendarId: $calendarId\n userId: $userId\n teamId: $teamId\n canView: $canView\n canEdit: $canEdit\n canManage: $canManage\n ) {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n }\n`;\n\nexport const REVOKE_CALENDAR_SHARE_MUTATION = gql`\n mutation RevokeCalendarShare($shareId: ID!) {\n revokeCalendarShare(shareId: $shareId)\n }\n`;\n\nexport const CREATE_AVAILABILITY_RULE_MUTATION = gql`\n mutation CreateAvailabilityRule($input: CreateAvailabilityRuleInput!) {\n createAvailabilityRule(input: $input) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const DELETE_AVAILABILITY_RULE_MUTATION = gql`\n mutation DeleteAvailabilityRule($id: ID!) {\n deleteAvailabilityRule(id: $id)\n }\n`;\n\nexport const CREATE_BLACKOUT_DATE_MUTATION = gql`\n mutation CreateBlackoutDate($input: CreateBlackoutDateInput!) {\n createBlackoutDate(input: $input) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const DELETE_BLACKOUT_DATE_MUTATION = gql`\n mutation DeleteBlackoutDate($id: ID!) {\n deleteBlackoutDate(id: $id)\n }\n`;\n\nexport const CREATE_BOOKING_PAGE_MUTATION = gql`\n mutation CreateBookingPage($input: CreateBookingPageInput!) {\n createBookingPage(input: $input) {\n id\n calendarId\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n`;\n\nexport const DELETE_BOOKING_PAGE_MUTATION = gql`\n mutation DeleteBookingPage($id: ID!) {\n deleteBookingPage(id: $id)\n }\n`;\n\nexport const CONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation ConnectExternalCalendar($input: ConnectExternalCalendarInput!) {\n connectExternalCalendar(input: $input) {\n id\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const TRIGGER_SYNC_MUTATION = gql`\n mutation TriggerExternalCalendarSync($syncId: ID!) {\n triggerSync(syncId: $syncId) {\n id\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const PAUSE_SYNC_MUTATION = gql`\n mutation PauseExternalCalendarSync($syncId: ID!) {\n pauseSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const RESUME_SYNC_MUTATION = gql`\n mutation ResumeExternalCalendarSync($syncId: ID!) {\n resumeSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const DISCONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation DisconnectExternalCalendar($syncId: ID!) {\n disconnectExternalCalendar(syncId: $syncId)\n }\n`;\n\nexport const ADD_ATTENDEE_MUTATION = gql`\n mutation AddCalendarAttendee($eventId: ID!, $userId: String, $email: String, $name: String) {\n addAttendee(eventId: $eventId, userId: $userId, email: $email, name: $name) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const REMOVE_ATTENDEE_MUTATION = gql`\n mutation RemoveCalendarAttendee($attendeeId: ID!) {\n removeAttendee(attendeeId: $attendeeId)\n }\n`;\n\nexport const RESPOND_TO_EVENT_MUTATION = gql`\n mutation RespondToCalendarEvent($eventId: ID!, $status: RSVPStatus!) {\n respondToEvent(eventId: $eventId, status: $status) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const CREATE_REMINDER_MUTATION = gql`\n mutation CreateCalendarReminder($input: CreateReminderInput!) {\n createReminder(input: $input) {\n id\n minutesBefore\n channel\n }\n }\n`;\n\nexport const DELETE_REMINDER_MUTATION = gql`\n mutation DeleteCalendarReminder($id: ID!) {\n deleteReminder(id: $id)\n }\n`;\n"],"mappings":";;AAWA,IAAa,IAA8B,CAAG;;;;;;;;;;;;;;;GAiBjC,IAA8B,CAAG;;;;;;;;;;;GAajC,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqE3B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC1B,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC5B,IAA2B,CAAG;;;;;;;;;;;;;;;;;;GAoB9B,IAAuB,CAAG;;;;;;;;;;;;GAc1B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;GAuB1B,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7B,IAAiC,CAAG;;;;GAMpC,IAAoC,CAAG;;;;;;;;;;;;;;;;;GAmBvC,IAAoC,CAAG;;;;GAMvC,IAAgC,CAAG;;;;;;;;;;;;GAcnC,IAAgC,CAAG;;;;GAMnC,IAA+B,CAAG;;;;;;;;;;;;;;;GAiBlC,IAA+B,CAAG;;;;GAMlC,IAAqC,CAAG;;;;;;;;;;;;;;;;;GAmBxC,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAAsB,CAAG;;;;;;;;GAUzB,IAAuB,CAAG;;;;;;;;GAU1B,IAAwC,CAAG;;;;GAM3C,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAA2B,CAAG;;;;GAM9B,IAA4B,CAAG;;;;;;;;;;;GAa/B,IAA2B,CAAG;;;;;;;;GAU9B,IAA2B,CAAG"}