@burdenoff/microfe-calendar 2026.1120.1 → 2026.1123.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.
Files changed (64) hide show
  1. package/dist/CalendarRoutes.d.ts +3 -0
  2. package/dist/CalendarRoutes.js +37 -32
  3. package/dist/CalendarRoutes.js.map +1 -1
  4. package/dist/generated/global-operations.d.ts +74 -0
  5. package/dist/generated/global-operations.js +20 -0
  6. package/dist/generated/global-operations.js.map +1 -0
  7. package/dist/generated/global-types.d.ts +9902 -578
  8. package/dist/generated/wspace-operations.d.ts +298 -0
  9. package/dist/generated/wspace-operations.js +126 -1
  10. package/dist/generated/wspace-operations.js.map +1 -1
  11. package/dist/generated/wspace-types.d.ts +204825 -48049
  12. package/dist/providers/CalendarProvider.d.ts +2 -0
  13. package/dist/providers/CalendarProvider.js +12 -10
  14. package/dist/providers/CalendarProvider.js.map +1 -1
  15. package/dist/translations/en.d.ts +5 -0
  16. package/dist/types/index.d.ts +6 -0
  17. package/dist/v2/CalendarPageV2.d.ts +1 -0
  18. package/dist/v2/CalendarPageV2.js +19 -0
  19. package/dist/v2/CalendarPageV2.js.map +1 -0
  20. package/dist/v2/CalendarRoutesV2.d.ts +1 -0
  21. package/dist/v2/CalendarRoutesV2.js +117 -0
  22. package/dist/v2/CalendarRoutesV2.js.map +1 -0
  23. package/dist/v2/data/invalidation.d.ts +4 -0
  24. package/dist/v2/data/normalize.d.ts +26 -0
  25. package/dist/v2/data/normalize.js +87 -0
  26. package/dist/v2/data/normalize.js.map +1 -0
  27. package/dist/v2/data/useCalendarsV2.d.ts +16 -0
  28. package/dist/v2/data/useCalendarsV2.js +25 -0
  29. package/dist/v2/data/useCalendarsV2.js.map +1 -0
  30. package/dist/v2/data/useEventsInRangeV2.d.ts +18 -0
  31. package/dist/v2/data/useFreeBusy.d.ts +22 -0
  32. package/dist/v2/data/useKeyedLoad.d.ts +17 -0
  33. package/dist/v2/prefs/CalendarPrefsProvider.d.ts +25 -0
  34. package/dist/v2/prefs/CalendarPrefsProvider.js +52 -0
  35. package/dist/v2/prefs/CalendarPrefsProvider.js.map +1 -0
  36. package/dist/v2/prefs/calendarPrefs.d.ts +73 -0
  37. package/dist/v2/prefs/calendarPrefs.js +71 -0
  38. package/dist/v2/prefs/calendarPrefs.js.map +1 -0
  39. package/dist/v2/prefs/prefsApi.d.ts +16 -0
  40. package/dist/v2/prefs/prefsApi.js +46 -0
  41. package/dist/v2/prefs/prefsApi.js.map +1 -0
  42. package/dist/v2/prefs/prefsSession.d.ts +55 -0
  43. package/dist/v2/prefs/prefsSession.js +94 -0
  44. package/dist/v2/prefs/prefsSession.js.map +1 -0
  45. package/dist/v2/prefs/prefsStorage.d.ts +17 -0
  46. package/dist/v2/prefs/prefsStorage.js +56 -0
  47. package/dist/v2/prefs/prefsStorage.js.map +1 -0
  48. package/dist/v2/routes.d.ts +43 -0
  49. package/dist/v2/routes.js +60 -0
  50. package/dist/v2/routes.js.map +1 -0
  51. package/dist/v2/state/calendarV2Store.d.ts +54 -0
  52. package/dist/v2/state/calendarV2Store.js +78 -0
  53. package/dist/v2/state/calendarV2Store.js.map +1 -0
  54. package/dist/v2/state/useCalendarV2Navigation.d.ts +25 -0
  55. package/dist/v2/state/useCalendarV2Navigation.js +52 -0
  56. package/dist/v2/state/useCalendarV2Navigation.js.map +1 -0
  57. package/dist/v2/state/useCalendarV2PrefsBridge.d.ts +1 -0
  58. package/dist/v2/state/useCalendarV2PrefsBridge.js +28 -0
  59. package/dist/v2/state/useCalendarV2PrefsBridge.js.map +1 -0
  60. package/dist/v2/time/calendarTime.d.ts +115 -0
  61. package/dist/v2/time/calendarTime.js +59 -0
  62. package/dist/v2/time/calendarTime.js.map +1 -0
  63. package/dist/v2/types.d.ts +202 -0
  64. package/package.json +12 -5
@@ -16,5 +16,8 @@
16
16
  * - ResourcesPage: Lazy (secondary feature)
17
17
  * - SettingsPage: Lazy (infrequently accessed)
18
18
  * - SubscriptionsPage: Lazy (infrequently accessed)
19
+ *
20
+ * With `calendarRedesign` (FluidGrids only) the redesigned routes render instead
21
+ * (`v2/CalendarRoutesV2`); without it, nothing below changes.
19
22
  */
20
23
  export declare function CalendarRoutes(): import('react').JSX.Element;
@@ -1,70 +1,75 @@
1
1
  import { useTr as e } from "./shared/hooks/useTr.js";
2
2
  import { CalendarPage as t } from "./pages/CalendarPage.js";
3
- import { Suspense as n, lazy as r } from "react";
4
- import { Navigate as i, Route as a, Routes as o } from "react-router";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
3
+ import { useCalendar as n } from "./providers/CalendarProvider.js";
4
+ import { Suspense as r, lazy as i } from "react";
5
+ import { Navigate as a, Route as o, Routes as s } from "react-router";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
7
  // src/CalendarRoutes.tsx
7
- var l = r(() => import("./pages/EventDetailsPage.js").then((e) => ({ default: e.EventDetailsPage }))), u = r(() => import("./pages/ResourcesPage.js").then((e) => ({ default: e.ResourcesPage }))), d = r(() => import("./pages/SettingsPage.js").then((e) => ({ default: e.SettingsPage }))), f = r(() => import("./pages/SubscriptionsPage.js").then((e) => ({ default: e.SubscriptionsPage })));
8
- function p() {
8
+ var u = i(() => import("./v2/CalendarRoutesV2.js").then((e) => ({ default: e.CalendarRoutesV2 }))), d = i(() => import("./pages/EventDetailsPage.js").then((e) => ({ default: e.EventDetailsPage }))), f = i(() => import("./pages/ResourcesPage.js").then((e) => ({ default: e.ResourcesPage }))), p = i(() => import("./pages/SettingsPage.js").then((e) => ({ default: e.SettingsPage }))), m = i(() => import("./pages/SubscriptionsPage.js").then((e) => ({ default: e.SubscriptionsPage })));
9
+ function h() {
9
10
  let t = e();
10
- return /* @__PURE__ */ s("div", {
11
+ return /* @__PURE__ */ c("div", {
11
12
  className: "min-h-screen bg-bg-canvas flex items-center justify-center",
12
- children: /* @__PURE__ */ s("div", {
13
+ children: /* @__PURE__ */ c("div", {
13
14
  className: "text-text-secondary font-text-md",
14
15
  children: t("calendar.loadingPage", "Loading…")
15
16
  })
16
17
  });
17
18
  }
18
- function m() {
19
- return /* @__PURE__ */ c(o, { children: [
20
- /* @__PURE__ */ s(a, {
19
+ function g() {
20
+ let { calendarRedesign: e } = n();
21
+ return e ? /* @__PURE__ */ c(r, {
22
+ fallback: /* @__PURE__ */ c(h, {}),
23
+ children: /* @__PURE__ */ c(u, {})
24
+ }) : /* @__PURE__ */ l(s, { children: [
25
+ /* @__PURE__ */ c(o, {
21
26
  index: !0,
22
- element: /* @__PURE__ */ s(i, {
27
+ element: /* @__PURE__ */ c(a, {
23
28
  to: "view/week",
24
29
  replace: !0
25
30
  })
26
31
  }),
27
- /* @__PURE__ */ s(a, {
32
+ /* @__PURE__ */ c(o, {
28
33
  path: "view/:viewType",
29
- element: /* @__PURE__ */ s(t, {})
34
+ element: /* @__PURE__ */ c(t, {})
30
35
  }),
31
- /* @__PURE__ */ s(a, {
36
+ /* @__PURE__ */ c(o, {
32
37
  path: "event/:eventId",
33
- element: /* @__PURE__ */ s(n, {
34
- fallback: /* @__PURE__ */ s(p, {}),
35
- children: /* @__PURE__ */ s(l, {})
38
+ element: /* @__PURE__ */ c(r, {
39
+ fallback: /* @__PURE__ */ c(h, {}),
40
+ children: /* @__PURE__ */ c(d, {})
36
41
  })
37
42
  }),
38
- /* @__PURE__ */ s(a, {
43
+ /* @__PURE__ */ c(o, {
39
44
  path: "resources",
40
- element: /* @__PURE__ */ s(n, {
41
- fallback: /* @__PURE__ */ s(p, {}),
42
- children: /* @__PURE__ */ s(u, {})
45
+ element: /* @__PURE__ */ c(r, {
46
+ fallback: /* @__PURE__ */ c(h, {}),
47
+ children: /* @__PURE__ */ c(f, {})
43
48
  })
44
49
  }),
45
- /* @__PURE__ */ s(a, {
50
+ /* @__PURE__ */ c(o, {
46
51
  path: "settings",
47
- element: /* @__PURE__ */ s(n, {
48
- fallback: /* @__PURE__ */ s(p, {}),
49
- children: /* @__PURE__ */ s(d, {})
52
+ element: /* @__PURE__ */ c(r, {
53
+ fallback: /* @__PURE__ */ c(h, {}),
54
+ children: /* @__PURE__ */ c(p, {})
50
55
  })
51
56
  }),
52
- /* @__PURE__ */ s(a, {
57
+ /* @__PURE__ */ c(o, {
53
58
  path: "subscriptions",
54
- element: /* @__PURE__ */ s(n, {
55
- fallback: /* @__PURE__ */ s(p, {}),
56
- children: /* @__PURE__ */ s(f, {})
59
+ element: /* @__PURE__ */ c(r, {
60
+ fallback: /* @__PURE__ */ c(h, {}),
61
+ children: /* @__PURE__ */ c(m, {})
57
62
  })
58
63
  }),
59
- /* @__PURE__ */ s(a, {
64
+ /* @__PURE__ */ c(o, {
60
65
  path: "*",
61
- element: /* @__PURE__ */ s(i, {
66
+ element: /* @__PURE__ */ c(a, {
62
67
  to: "view/week",
63
68
  replace: !0
64
69
  })
65
70
  })
66
71
  ] });
67
72
  }
68
- export { m as CalendarRoutes };
73
+ export { g as CalendarRoutes };
69
74
 
70
75
  //# sourceMappingURL=CalendarRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarRoutes.js","names":["EventDetailsPage","lazy","m","ResourcesPage","SettingsPage","SubscriptionsPage","PageLoadingFallback","tr","useTr","CalendarRoutes","Routes","Route","Navigate","CalendarPage","Suspense"],"sources":["../src/CalendarRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useTr } from './shared/hooks/useTr';\nimport { CalendarPage } from './pages/CalendarPage';\n\n// Lazy-loaded pages for code splitting\nconst EventDetailsPage = lazy(() =>\n import('./pages/EventDetailsPage').then((m) => ({ default: m.EventDetailsPage }))\n);\nconst ResourcesPage = lazy(() =>\n import('./pages/ResourcesPage').then((m) => ({ default: m.ResourcesPage }))\n);\nconst SettingsPage = lazy(() =>\n import('./pages/SettingsPage').then((m) => ({ default: m.SettingsPage }))\n);\nconst SubscriptionsPage = lazy(() =>\n import('./pages/SubscriptionsPage').then((m) => ({ default: m.SubscriptionsPage }))\n);\n\n/**\n * Fallback component for lazy-loaded pages\n */\nfunction PageLoadingFallback() {\n const tr = useTr();\n return (\n <div className=\"min-h-screen bg-bg-canvas flex items-center justify-center\">\n <div className=\"text-text-secondary font-text-md\">\n {tr('calendar.loadingPage', 'Loading…')}\n </div>\n </div>\n );\n}\n\n/**\n * Internal routing for the Calendar microfrontend.\n *\n * All routes are relative to the basePath provided by the host.\n * Example: If basePath=\"/calendar\", then:\n * - /calendar → redirects to /calendar/view/week\n * - /calendar/view/week → CalendarPage (week view)\n * - /calendar/event/:eventId → EventDetailsPage\n * - /calendar/resources → ResourcesPage\n * - /calendar/settings → SettingsPage\n * - /calendar/subscriptions → SubscriptionsPage\n *\n * Lazy Loading Strategy:\n * - CalendarPage: Eager (main entry point, most frequently accessed)\n * - EventDetailsPage: Lazy (accessed on-demand)\n * - ResourcesPage: Lazy (secondary feature)\n * - SettingsPage: Lazy (infrequently accessed)\n * - SubscriptionsPage: Lazy (infrequently accessed)\n */\nexport function CalendarRoutes() {\n return (\n <Routes>\n {/* Default redirect to week view */}\n <Route index element={<Navigate to=\"view/week\" replace />} />\n\n {/* Calendar views - Eager loaded (primary entry point) */}\n <Route path=\"view/:viewType\" element={<CalendarPage />} />\n {/* viewType: day | week | month | year | agenda | timeline */}\n\n {/* Event details - Lazy loaded */}\n <Route\n path=\"event/:eventId\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <EventDetailsPage />\n </Suspense>\n }\n />\n\n {/* Resources - Lazy loaded */}\n <Route\n path=\"resources\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <ResourcesPage />\n </Suspense>\n }\n />\n\n {/* Settings - Lazy loaded */}\n <Route\n path=\"settings\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <SettingsPage />\n </Suspense>\n }\n />\n\n {/* Subscriptions - Lazy loaded */}\n <Route\n path=\"subscriptions\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <SubscriptionsPage />\n </Suspense>\n }\n />\n\n {/* Catch-all: redirect to default view */}\n <Route path=\"*\" element={<Navigate to=\"view/week\" replace />} />\n </Routes>\n );\n}\n"],"mappings":";;;;;;AAMA,IAAMA,IAAmBC,QACvB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,iBAAiB,EAAE,CAClF,GACMC,IAAgBF,QACpB,OAAO,2BAAwB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,cAAc,EAAE,CAC5E,GACME,IAAeH,QACnB,OAAO,0BAAuB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,aAAa,EAAE,CAC1E,GACMG,IAAoBJ,QACxB,OAAO,+BAA4B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,kBAAkB,EAAE,CACpF;AAKA,SAASI,IAAsB;CAC7B,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAAD,EAAG,wBAAwB,UAAU;EACnC,CAAA;CACF,CAAA;AAET;AAqBA,SAAgBE,IAAiB;CAC/B,OACE,kBAACC,GAAD,EAAA,UAAA;EAEE,kBAACC,GAAD;GAAO,OAAA;GAAM,SAAS,kBAACC,GAAD;IAAU,IAAG;IAAY,SAAA;GAAS,CAAA;EAAI,CAAA;EAG5D,kBAACD,GAAD;GAAO,MAAK;GAAiB,SAAS,kBAACE,GAAD,CAAe,CAAA;EAAI,CAAA;EAIzD,kBAACF,GAAD;GACE,MAAK;GACL,SACE,kBAACG,GAAD;IAAU,UAAU,kBAACR,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACN,GAAD,CAAmB,CAAA;GACX,CAAA;EAEb,CAAA;EAGD,kBAACW,GAAD;GACE,MAAK;GACL,SACE,kBAACG,GAAD;IAAU,UAAU,kBAACR,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACH,GAAD,CAAgB,CAAA;GACR,CAAA;EAEb,CAAA;EAGD,kBAACQ,GAAD;GACE,MAAK;GACL,SACE,kBAACG,GAAD;IAAU,UAAU,kBAACR,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACF,GAAD,CAAe,CAAA;GACP,CAAA;EAEb,CAAA;EAGD,kBAACO,GAAD;GACE,MAAK;GACL,SACE,kBAACG,GAAD;IAAU,UAAU,kBAACR,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACD,GAAD,CAAoB,CAAA;GACZ,CAAA;EAEb,CAAA;EAGD,kBAACM,GAAD;GAAO,MAAK;GAAI,SAAS,kBAACC,GAAD;IAAU,IAAG;IAAY,SAAA;GAAS,CAAA;EAAI,CAAA;CACzD,EAAA,CAAA;AAEZ"}
1
+ {"version":3,"file":"CalendarRoutes.js","names":["CalendarRoutesV2","lazy","m","EventDetailsPage","ResourcesPage","SettingsPage","SubscriptionsPage","PageLoadingFallback","tr","useTr","CalendarRoutes","useCalendar","calendarRedesign","Suspense","Routes","Route","Navigate","CalendarPage"],"sources":["../src/CalendarRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useTr } from './shared/hooks/useTr';\nimport { CalendarPage } from './pages/CalendarPage';\nimport { useCalendar } from './providers/CalendarProvider';\n\n// The redesigned calendar (BOFF-15698), behind `calendarRedesign`. A separate chunk: an app\n// that never opts in never loads it.\nconst CalendarRoutesV2 = lazy(() =>\n import('./v2/CalendarRoutesV2').then((m) => ({ default: m.CalendarRoutesV2 }))\n);\n\n// Lazy-loaded pages for code splitting\nconst EventDetailsPage = lazy(() =>\n import('./pages/EventDetailsPage').then((m) => ({ default: m.EventDetailsPage }))\n);\nconst ResourcesPage = lazy(() =>\n import('./pages/ResourcesPage').then((m) => ({ default: m.ResourcesPage }))\n);\nconst SettingsPage = lazy(() =>\n import('./pages/SettingsPage').then((m) => ({ default: m.SettingsPage }))\n);\nconst SubscriptionsPage = lazy(() =>\n import('./pages/SubscriptionsPage').then((m) => ({ default: m.SubscriptionsPage }))\n);\n\n/**\n * Fallback component for lazy-loaded pages\n */\nfunction PageLoadingFallback() {\n const tr = useTr();\n return (\n <div className=\"min-h-screen bg-bg-canvas flex items-center justify-center\">\n <div className=\"text-text-secondary font-text-md\">\n {tr('calendar.loadingPage', 'Loading…')}\n </div>\n </div>\n );\n}\n\n/**\n * Internal routing for the Calendar microfrontend.\n *\n * All routes are relative to the basePath provided by the host.\n * Example: If basePath=\"/calendar\", then:\n * - /calendar → redirects to /calendar/view/week\n * - /calendar/view/week → CalendarPage (week view)\n * - /calendar/event/:eventId → EventDetailsPage\n * - /calendar/resources → ResourcesPage\n * - /calendar/settings → SettingsPage\n * - /calendar/subscriptions → SubscriptionsPage\n *\n * Lazy Loading Strategy:\n * - CalendarPage: Eager (main entry point, most frequently accessed)\n * - EventDetailsPage: Lazy (accessed on-demand)\n * - ResourcesPage: Lazy (secondary feature)\n * - SettingsPage: Lazy (infrequently accessed)\n * - SubscriptionsPage: Lazy (infrequently accessed)\n *\n * With `calendarRedesign` (FluidGrids only) the redesigned routes render instead\n * (`v2/CalendarRoutesV2`); without it, nothing below changes.\n */\nexport function CalendarRoutes() {\n const { calendarRedesign } = useCalendar();\n if (calendarRedesign) {\n return (\n <Suspense fallback={<PageLoadingFallback />}>\n <CalendarRoutesV2 />\n </Suspense>\n );\n }\n return (\n <Routes>\n {/* Default redirect to week view */}\n <Route index element={<Navigate to=\"view/week\" replace />} />\n\n {/* Calendar views - Eager loaded (primary entry point) */}\n <Route path=\"view/:viewType\" element={<CalendarPage />} />\n {/* viewType: day | week | month | year | agenda | timeline */}\n\n {/* Event details - Lazy loaded */}\n <Route\n path=\"event/:eventId\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <EventDetailsPage />\n </Suspense>\n }\n />\n\n {/* Resources - Lazy loaded */}\n <Route\n path=\"resources\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <ResourcesPage />\n </Suspense>\n }\n />\n\n {/* Settings - Lazy loaded */}\n <Route\n path=\"settings\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <SettingsPage />\n </Suspense>\n }\n />\n\n {/* Subscriptions - Lazy loaded */}\n <Route\n path=\"subscriptions\"\n element={\n <Suspense fallback={<PageLoadingFallback />}>\n <SubscriptionsPage />\n </Suspense>\n }\n />\n\n {/* Catch-all: redirect to default view */}\n <Route path=\"*\" element={<Navigate to=\"view/week\" replace />} />\n </Routes>\n );\n}\n"],"mappings":";;;;;;;AAQA,IAAMA,IAAmBC,QACvB,OAAO,2BAAwB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,iBAAiB,EAAE,CAC/E,GAGMC,IAAmBF,QACvB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,iBAAiB,EAAE,CAClF,GACME,IAAgBH,QACpB,OAAO,2BAAwB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,cAAc,EAAE,CAC5E,GACMG,IAAeJ,QACnB,OAAO,0BAAuB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,aAAa,EAAE,CAC1E,GACMI,IAAoBL,QACxB,OAAO,+BAA4B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,kBAAkB,EAAE,CACpF;AAKA,SAASK,IAAsB;CAC7B,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAAD,EAAG,wBAAwB,UAAU;EACnC,CAAA;CACF,CAAA;AAET;AAwBA,SAAgBE,IAAiB;CAC/B,IAAM,EAAE,wBAAqBC,EAAY;CAQzC,OAPIC,IAEA,kBAACC,GAAD;EAAU,UAAU,kBAACN,GAAD,CAAsB,CAAA;EACxC,UAAA,kBAACP,GAAD,CAAmB,CAAA;CACX,CAAA,IAIZ,kBAACc,GAAD,EAAA,UAAA;EAEE,kBAACC,GAAD;GAAO,OAAA;GAAM,SAAS,kBAACC,GAAD;IAAU,IAAG;IAAY,SAAA;GAAS,CAAA;EAAI,CAAA;EAG5D,kBAACD,GAAD;GAAO,MAAK;GAAiB,SAAS,kBAACE,GAAD,CAAe,CAAA;EAAI,CAAA;EAIzD,kBAACF,GAAD;GACE,MAAK;GACL,SACE,kBAACF,GAAD;IAAU,UAAU,kBAACN,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACJ,GAAD,CAAmB,CAAA;GACX,CAAA;EAEb,CAAA;EAGD,kBAACY,GAAD;GACE,MAAK;GACL,SACE,kBAACF,GAAD;IAAU,UAAU,kBAACN,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACH,GAAD,CAAgB,CAAA;GACR,CAAA;EAEb,CAAA;EAGD,kBAACW,GAAD;GACE,MAAK;GACL,SACE,kBAACF,GAAD;IAAU,UAAU,kBAACN,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACF,GAAD,CAAe,CAAA;GACP,CAAA;EAEb,CAAA;EAGD,kBAACU,GAAD;GACE,MAAK;GACL,SACE,kBAACF,GAAD;IAAU,UAAU,kBAACN,GAAD,CAAsB,CAAA;IACxC,UAAA,kBAACD,GAAD,CAAoB,CAAA;GACZ,CAAA;EAEb,CAAA;EAGD,kBAACS,GAAD;GAAO,MAAK;GAAI,SAAS,kBAACC,GAAD;IAAU,IAAG;IAAY,SAAA;GAAS,CAAA;EAAI,CAAA;CACzD,EAAA,CAAA;AAEZ"}
@@ -1,4 +1,78 @@
1
1
  /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
2
8
  export type Incremental<T> = T | {
3
9
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
4
10
  };
11
+ import * as Types from './global-types';
12
+ import * as Apollo from '@apollo/client';
13
+ import * as ApolloReactHooks from '@apollo/client/react';
14
+ export type CalendarV2MyPreferencesQueryVariables = Exact<{
15
+ [key: string]: never;
16
+ }>;
17
+ export type CalendarV2MyPreferencesQuery = {
18
+ myPreferences: {
19
+ id: string;
20
+ preferences: Record<string, unknown> | null;
21
+ } | null;
22
+ };
23
+ export type CalendarV2SavePreferencesMutationVariables = Exact<{
24
+ input: Record<string, unknown>;
25
+ }>;
26
+ export type CalendarV2SavePreferencesMutation = {
27
+ updateMyPreferences: {
28
+ id: string;
29
+ };
30
+ };
31
+ export declare const CalendarV2MyPreferencesDocument: Apollo.DocumentNode;
32
+ /**
33
+ * __useCalendarV2MyPreferencesQuery__
34
+ *
35
+ * To run a query within a React component, call `useCalendarV2MyPreferencesQuery` and pass it any options that fit your needs.
36
+ * When your component renders, `useCalendarV2MyPreferencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
37
+ * you can use to render your UI.
38
+ *
39
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
40
+ *
41
+ * @example
42
+ * const { data, loading, error } = useCalendarV2MyPreferencesQuery({
43
+ * variables: {
44
+ * },
45
+ * });
46
+ */
47
+ export declare function useCalendarV2MyPreferencesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.useQuery.Result<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables, "empty" | "complete" | "streaming", Types.CalendarV2MyPreferencesQueryVariables, undefined>;
48
+ export declare function useCalendarV2MyPreferencesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables, "empty" | "complete" | "streaming", undefined>;
49
+ export declare function useCalendarV2MyPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>;
50
+ export declare function useCalendarV2MyPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2MyPreferencesQuery | undefined, Types.CalendarV2MyPreferencesQueryVariables>;
51
+ export type CalendarV2MyPreferencesQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesQuery>;
52
+ export type CalendarV2MyPreferencesLazyQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesLazyQuery>;
53
+ export type CalendarV2MyPreferencesSuspenseQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesSuspenseQuery>;
54
+ export type CalendarV2MyPreferencesQueryResult = Apollo.QueryResult<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>;
55
+ export declare const CalendarV2SavePreferencesDocument: Apollo.DocumentNode;
56
+ export type CalendarV2SavePreferencesMutationFn = Apollo.MutationFunction<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>;
57
+ /**
58
+ * __useCalendarV2SavePreferencesMutation__
59
+ *
60
+ * To run a mutation, you first call `useCalendarV2SavePreferencesMutation` within a React component and pass it any options that fit your needs.
61
+ * When your component renders, `useCalendarV2SavePreferencesMutation` returns a tuple that includes:
62
+ * - A mutate function that you can call at any time to execute the mutation
63
+ * - An object with fields that represent the current status of the mutation's execution
64
+ *
65
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
66
+ *
67
+ * @example
68
+ * const [calendarV2SavePreferencesMutation, { data, loading, error }] = useCalendarV2SavePreferencesMutation({
69
+ * variables: {
70
+ * input: // value for 'input'
71
+ * },
72
+ * });
73
+ */
74
+ export declare function useCalendarV2SavePreferencesMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CalendarV2SavePreferencesMutation, any, Apollo.ApolloCache, undefined>;
75
+ export type CalendarV2SavePreferencesMutationHookResult = ReturnType<typeof useCalendarV2SavePreferencesMutation>;
76
+ export type CalendarV2SavePreferencesMutationResult = Apollo.MutationResult<Types.CalendarV2SavePreferencesMutation>;
77
+ export type CalendarV2SavePreferencesMutationOptions = Apollo.BaseMutationOptions<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>;
78
+ export {};
@@ -0,0 +1,20 @@
1
+ import { gql as e } from "@apollo/client";
2
+ import "@apollo/client/react";
3
+ // src/generated/global-operations.ts
4
+ var t = e`
5
+ query CalendarV2MyPreferences {
6
+ myPreferences {
7
+ id
8
+ preferences
9
+ }
10
+ }
11
+ `, n = e`
12
+ mutation CalendarV2SavePreferences($input: JSON!) {
13
+ updateMyPreferences(input: $input) {
14
+ id
15
+ }
16
+ }
17
+ `;
18
+ export { t as CalendarV2MyPreferencesDocument, n as CalendarV2SavePreferencesDocument };
19
+
20
+ //# sourceMappingURL=global-operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-operations.js","names":["CalendarV2MyPreferencesDocument","CalendarV2SavePreferencesDocument"],"sources":["../../src/generated/global-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './global-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type CalendarV2MyPreferencesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type CalendarV2MyPreferencesQuery = { myPreferences: { id: string, preferences: Record<string, unknown> | null } | null };\n\nexport type CalendarV2SavePreferencesMutationVariables = Exact<{\n input: Record<string, unknown>;\n}>;\n\n\nexport type CalendarV2SavePreferencesMutation = { updateMyPreferences: { id: string } };\n\n\nexport const CalendarV2MyPreferencesDocument = gql`\n query CalendarV2MyPreferences {\n myPreferences {\n id\n preferences\n }\n}\n `;\n\n/**\n * __useCalendarV2MyPreferencesQuery__\n *\n * To run a query within a React component, call `useCalendarV2MyPreferencesQuery` and pass it any options that fit your needs.\n * When your component renders, `useCalendarV2MyPreferencesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useCalendarV2MyPreferencesQuery({\n * variables: {\n * },\n * });\n */\nexport function useCalendarV2MyPreferencesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>(CalendarV2MyPreferencesDocument, options);\n }\nexport function useCalendarV2MyPreferencesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>(CalendarV2MyPreferencesDocument, options);\n }\n// @ts-ignore\nexport function useCalendarV2MyPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>;\nexport function useCalendarV2MyPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2MyPreferencesQuery | undefined, Types.CalendarV2MyPreferencesQueryVariables>;\nexport function useCalendarV2MyPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>(CalendarV2MyPreferencesDocument, options);\n }\nexport type CalendarV2MyPreferencesQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesQuery>;\nexport type CalendarV2MyPreferencesLazyQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesLazyQuery>;\nexport type CalendarV2MyPreferencesSuspenseQueryHookResult = ReturnType<typeof useCalendarV2MyPreferencesSuspenseQuery>;\nexport type CalendarV2MyPreferencesQueryResult = Apollo.QueryResult<Types.CalendarV2MyPreferencesQuery, Types.CalendarV2MyPreferencesQueryVariables>;\nexport const CalendarV2SavePreferencesDocument = gql`\n mutation CalendarV2SavePreferences($input: JSON!) {\n updateMyPreferences(input: $input) {\n id\n }\n}\n `;\nexport type CalendarV2SavePreferencesMutationFn = Apollo.MutationFunction<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>;\n\n/**\n * __useCalendarV2SavePreferencesMutation__\n *\n * To run a mutation, you first call `useCalendarV2SavePreferencesMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCalendarV2SavePreferencesMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [calendarV2SavePreferencesMutation, { data, loading, error }] = useCalendarV2SavePreferencesMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCalendarV2SavePreferencesMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>(CalendarV2SavePreferencesDocument, options);\n }\nexport type CalendarV2SavePreferencesMutationHookResult = ReturnType<typeof useCalendarV2SavePreferencesMutation>;\nexport type CalendarV2SavePreferencesMutationResult = Apollo.MutationResult<Types.CalendarV2SavePreferencesMutation>;\nexport type CalendarV2SavePreferencesMutationOptions = Apollo.BaseMutationOptions<Types.CalendarV2SavePreferencesMutation, Types.CalendarV2SavePreferencesMutationVariables>;"],"mappings":";;;AAwBA,IAAaA,IAAkC,CAAG;;;;;;;OA2CrCC,IAAoC,CAAG"}