@riverbankcms/sdk 0.121.0 → 0.124.0

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 (259) hide show
  1. package/README.md +14 -9
  2. package/dist/{PreviewEditorSidebar-lZ600tJx.mjs → PreviewEditorSidebar-DBmAJJkQ.mjs} +24 -41
  3. package/dist/{PreviewEditorUI-CTBWzLSb.mjs → PreviewEditorUI-CfGaz9cY.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BHT8CJvZ.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-DhPU58s7.mjs → SdkPreviewModeRuntime-BW9Z8j8T.mjs} +1020 -1234
  6. package/dist/{SiteChromeCustomizeContext-BkNvpzNZ.mjs → SiteChromeCustomizeContext-2z8moxYf.mjs} +1902 -1961
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1236 -4152
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +435 -0
  9. package/dist/_dts/api/src/bookingClosures.d.ts +3 -3
  10. package/dist/_dts/api/src/bookingConfig.d.ts +100 -75
  11. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +26 -35
  12. package/dist/_dts/api/src/bookingRecords.d.ts +4 -15
  13. package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +746 -0
  14. package/dist/_dts/api/src/bookingVerticalPreset.d.ts +38 -0
  15. package/dist/_dts/api/src/bookingVerticals.d.ts +11 -652
  16. package/dist/_dts/api/src/bookings.d.ts +11 -9
  17. package/dist/_dts/api/src/cache-tags.d.ts +2 -2
  18. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +10 -10
  19. package/dist/_dts/api/src/common/envelope.d.ts +2 -0
  20. package/dist/_dts/api/src/contentRuntime.d.ts +0 -17
  21. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +99 -0
  22. package/dist/_dts/api/src/courses.d.ts +22 -33
  23. package/dist/_dts/api/src/defineEndpointDefinitions.d.ts +14 -0
  24. package/dist/_dts/api/src/demoMutationPolicies.d.ts +4 -0
  25. package/dist/_dts/api/src/endpoints.d.ts +3740 -3733
  26. package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
  27. package/dist/_dts/api/src/event-presentation.d.ts +4 -9
  28. package/dist/_dts/api/src/index.d.ts +10 -12
  29. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +376 -0
  30. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  31. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  32. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +272 -0
  33. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +274 -0
  34. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +31 -0
  35. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +152 -0
  36. package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +95 -0
  37. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +154 -0
  38. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -962
  39. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +52 -0
  40. package/dist/_dts/api/src/sdkContracts.d.ts +0 -51
  41. package/dist/_dts/api/src/sdkEntryReadEndpoints.d.ts +23 -0
  42. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -38
  43. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -7
  44. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -15
  45. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  46. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +0 -16
  47. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -222
  48. package/dist/_dts/blocks/src/portal/types.d.ts +3 -3
  49. package/dist/_dts/blocks/src/subroutes/fold.d.ts +1 -14
  50. package/dist/_dts/blocks/src/subroutes/index.d.ts +1 -1
  51. package/dist/_dts/blocks/src/subroutes/kinds.d.ts +3 -3
  52. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -11
  53. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -4
  54. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +401 -12
  56. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +9 -10
  57. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -13
  58. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +1 -2
  59. package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -4
  60. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +19 -18
  61. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +9 -11
  62. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -2
  63. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +10 -10
  65. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -10
  66. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +162 -0
  68. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +59 -0
  69. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +134 -0
  70. package/dist/_dts/blocks/src/system/runtime/api/types/discounts.d.ts +85 -0
  71. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +241 -0
  72. package/dist/_dts/blocks/src/system/runtime/api/types/forms.d.ts +53 -0
  73. package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +32 -0
  74. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +220 -0
  75. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +176 -0
  76. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +12 -1121
  77. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +19 -583
  78. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -276
  79. package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +1 -12
  80. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  81. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -1
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +2 -3
  83. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +1 -18
  84. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -2
  85. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +1 -5
  86. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/courseRegistrationViewState.d.ts +21 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/index.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +14 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +0 -25
  90. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseEligibility.d.ts +24 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +9 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +35 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationPortal.d.ts +7 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +31 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +80 -55
  96. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseWaitlistSelection.d.ts +14 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +4 -5
  98. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -38
  99. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
  100. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +1 -2
  101. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +0 -1
  102. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +12 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +0 -4
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -9
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +0 -5
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +0 -11
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +13 -0
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -21
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  110. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +24 -433
  111. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -2
  112. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +52 -266
  113. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -15
  114. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventFilters.d.ts +0 -8
  115. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1573 -0
  116. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +1 -3
  117. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -3
  118. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
  119. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -5
  120. package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -5
  121. package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -3
  122. package/dist/_dts/core/src/editor-state.d.ts +1 -13
  123. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1587 -115
  124. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +6 -6
  125. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +6 -1
  126. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +27 -4
  127. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -2
  128. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +1 -1
  129. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +4 -6
  130. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
  131. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +1 -1
  132. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -1
  133. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +1 -1
  134. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +23 -0
  135. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +25 -0
  136. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -52
  137. package/dist/_dts/sdk/src/cli/content/writer.d.ts +3 -81
  138. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +6 -9
  139. package/dist/_dts/sdk/src/client/contentReadOperations.d.ts +40 -0
  140. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -3
  141. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -91
  142. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +72 -0
  143. package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +10 -75
  144. package/dist/_dts/sdk/src/client/types.d.ts +7 -33
  145. package/dist/_dts/sdk/src/components.d.ts +1 -1
  146. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  147. package/dist/_dts/sdk/src/config/validation.d.ts +3 -6
  148. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  149. package/dist/_dts/sdk/src/contracts/page.d.ts +0 -8
  150. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -34
  151. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +4 -3
  152. package/dist/_dts/sdk/src/next/catch-all-utils.d.ts +0 -11
  153. package/dist/_dts/sdk/src/next/catch-all.d.ts +1 -76
  154. package/dist/_dts/sdk/src/next/types.d.ts +0 -19
  155. package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -207
  156. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  157. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
  158. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
  159. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +0 -7
  160. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +81 -0
  161. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  162. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -51
  163. package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -1
  164. package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +6 -6
  165. package/dist/_dts/sdk/src/routing/index.d.ts +0 -2
  166. package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +3 -3
  167. package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +10 -39
  168. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  169. package/dist/_dts/sdk/src/version.d.ts +1 -1
  170. package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
  171. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +100 -0
  172. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
  173. package/dist/_dts/site-commands/src/commandContract.d.ts +1242 -0
  174. package/dist/_dts/site-commands/src/commandDomain.d.ts +20 -0
  175. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +7 -0
  176. package/dist/_dts/site-commands/src/commandValidation.d.ts +10 -0
  177. package/dist/_dts/site-commands/src/commands.d.ts +729 -2659
  178. package/dist/_dts/site-commands/src/domain.d.ts +1 -1
  179. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +11 -0
  180. package/dist/_dts/site-commands/src/exposure.d.ts +1 -1
  181. package/dist/_dts/site-commands/src/index.d.ts +6 -0
  182. package/dist/_dts/site-commands/src/metadata.d.ts +1 -27
  183. package/dist/_dts/site-commands/src/planner.d.ts +1 -1
  184. package/dist/_dts/site-commands/src/refContributions.d.ts +1 -1
  185. package/dist/_dts/site-commands/src/refs.d.ts +1 -4
  186. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +378 -0
  187. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +46 -0
  188. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +2 -2
  189. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +21 -0
  190. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +58 -0
  191. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +1 -0
  192. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  193. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +47 -24
  194. package/dist/cli/index.mjs +7392 -10989
  195. package/dist/cli/init-docs/content/cli-reference.md +5 -21
  196. package/dist/cli/init-docs/content/content-management.md +4 -5
  197. package/dist/client/{DiscountCodeDisclosure-DIWj-P9v.mjs → DiscountCodeDisclosure-DxvjKvck.mjs} +2 -2
  198. package/dist/client/{EventCombined.client-De8YWBSr.mjs → EventCombined.client-BydMGc4c.mjs} +5 -16
  199. package/dist/client/{EventListing.client-seHTjimY.mjs → EventListing.client-vpzhhysN.mjs} +3 -10
  200. package/dist/client/{LeafletStaticMap-BmQxFcJW.mjs → LeafletStaticMap-CB07rpf8.mjs} +1 -1
  201. package/dist/client/{MagicLinkForm-OoJAIUIj.mjs → MagicLinkForm-BzyRJ8VF.mjs} +2 -2
  202. package/dist/client/{StepIndicator-CiZ8kdPk.mjs → StepIndicator-CTcGf8Be.mjs} +2 -2
  203. package/dist/client/{accordion-6lnN__XJ.mjs → accordion-B-DUDLRD.mjs} +1 -1
  204. package/dist/client/{bookingForm-5uyqhONU.mjs → bookingForm-DSbClLcZ.mjs} +6 -6
  205. package/dist/client/bookings.mjs +753 -818
  206. package/dist/client/{carousel-Dtnifil_.mjs → carousel-B6Ccdx8M.mjs} +1 -1
  207. package/dist/client/{cart-5Tc5S7NV.mjs → cart-BZh8G8wM.mjs} +3 -3
  208. package/dist/client/{checkout-CYKKN5Hr.mjs → checkout-o6zaC-kM.mjs} +3 -3
  209. package/dist/client/client.mjs +7398 -7687
  210. package/dist/client/{context-BGZNlGXB.mjs → context-CJz1Vlsz.mjs} +40 -43
  211. package/dist/client/{courseRegistration-CxCBybB4.mjs → courseRegistration-Cf11pNDs.mjs} +606 -621
  212. package/dist/client/{eventCalendar-Xj2jZS9X.mjs → eventCalendar-BeXrdsSE.mjs} +5 -13
  213. package/dist/client/{eventCombined-CgcMoOgM.mjs → eventCombined-DA76PZgG.mjs} +3 -3
  214. package/dist/client/{eventDetails-CEAH8Edc.mjs → eventDetails-BLxg0rok.mjs} +140 -116
  215. package/dist/client/{eventListing-qyPVQ0wP.mjs → eventListing-tO9LheBX.mjs} +3 -3
  216. package/dist/client/{eventRegistration-DDu79CtL.mjs → eventRegistration-Cnene9D9.mjs} +165 -68
  217. package/dist/client/{form-Bc7JKI7I.mjs → form-DZf72CHB.mjs} +2 -2
  218. package/dist/client/{headerSection-vTku_LEl.mjs → headerSection-Hioja5Cr.mjs} +2 -2
  219. package/dist/client/hooks.mjs +3452 -2365
  220. package/dist/client/{locationMap-Bg7X4Jna.mjs → locationMap-DwhUXEix.mjs} +2 -2
  221. package/dist/client/{newsletterForm-lpylVdp5.mjs → newsletterForm-C350bEQf.mjs} +2 -2
  222. package/dist/client/{pricing-DE8fjJiT.mjs → pricing-BYWN_ATa.mjs} +3 -19
  223. package/dist/client/{productDetail-D7Bo2RMH.mjs → productDetail-CCqCyXgU.mjs} +3 -3
  224. package/dist/client/{productList-VjnZqiqN.mjs → productList-BAiNJrOU.mjs} +3 -3
  225. package/dist/client/{propsDecoder-DreFXjNP.mjs → propsDecoder-DeunRj6m.mjs} +210 -378
  226. package/dist/client/rendering/client.mjs +2541 -2813
  227. package/dist/client/rendering/islands.mjs +18 -18
  228. package/dist/client/rendering.mjs +5622 -4734
  229. package/dist/client/{shop-IRsHHbf7.mjs → shop-DUmCdBtw.mjs} +6 -6
  230. package/dist/client/{shop-commerce-gnI8PieZ.mjs → shop-commerce-CY27mEUr.mjs} +5 -5
  231. package/dist/client/{shop-commerce-store-BTbrhObn.mjs → shop-commerce-store-ChXPbWfa.mjs} +1 -1
  232. package/dist/client/{shopShared-D6KS2_qk.mjs → shopShared-q0kin1cv.mjs} +3 -3
  233. package/dist/client/{useDiscountCodeUi-DCccGCxV.mjs → useDiscountCodeUi-I-92-x2V.mjs} +2 -2
  234. package/dist/client/{useEventFilters-eGs3rPZQ.mjs → useEventFilters-DlcVluZh.mjs} +59 -124
  235. package/dist/client/{usePolling-CvSU2sur.mjs → usePolling-Bz7GFV_a.mjs} +2 -2
  236. package/dist/preview-next/before-render.mjs +1115 -1043
  237. package/dist/preview-next/client/runtime.mjs +4 -4
  238. package/dist/preview-next/middleware.mjs +1116 -1044
  239. package/dist/{previewAuthStore-31xH13Jc.mjs → previewAuthStore-CJX21dGi.mjs} +1119 -1044
  240. package/dist/{sdk-runtime-BE_vcGua.mjs → sdk-runtime-OnPM8Z69.mjs} +2 -2
  241. package/dist/{separator-CiffYtk3.mjs → separator-CPtfzHqA.mjs} +1 -1
  242. package/dist/server/components.mjs +11120 -12601
  243. package/dist/server/config-validation.mjs +3454 -2356
  244. package/dist/server/config.mjs +3454 -2356
  245. package/dist/server/data.mjs +3452 -2367
  246. package/dist/server/index.mjs +1499 -1488
  247. package/dist/server/next.mjs +18291 -21201
  248. package/dist/server/page-converter.mjs +1898 -2040
  249. package/dist/server/prebuild.mjs +1 -1
  250. package/dist/server/rendering/server.mjs +19666 -21153
  251. package/dist/server/rendering.mjs +17117 -18651
  252. package/dist/server/routing.mjs +3614 -2509
  253. package/dist/server/server.mjs +3298 -3478
  254. package/package.json +1 -1
  255. package/dist/_dts/api/src/previewContentContract.d.ts +0 -4
  256. package/dist/_dts/sdk/src/cli/commands/course.d.ts +0 -6
  257. package/dist/_dts/sdk/src/cli/commands/push/scopes/courses.d.ts +0 -4
  258. package/dist/_dts/sdk/src/client/management/courses.d.ts +0 -10
  259. package/dist/_dts/sdk/src/routing/resolveEntrySubroute.d.ts +0 -36
@@ -2431,6 +2431,13 @@ export type Database = {
2431
2431
  referencedRelation: "booking_customer_memberships";
2432
2432
  referencedColumns: ["id"];
2433
2433
  },
2434
+ {
2435
+ foreignKeyName: "booking_customer_credit_reservations_course_enrollment_id_fkey";
2436
+ columns: ["course_enrollment_id"];
2437
+ isOneToOne: false;
2438
+ referencedRelation: "course_enrollment_projection_canonical";
2439
+ referencedColumns: ["id"];
2440
+ },
2434
2441
  {
2435
2442
  foreignKeyName: "booking_customer_credit_reservations_course_enrollment_id_fkey";
2436
2443
  columns: ["course_enrollment_id"];
@@ -2438,6 +2445,13 @@ export type Database = {
2438
2445
  referencedRelation: "course_enrollments";
2439
2446
  referencedColumns: ["id"];
2440
2447
  },
2448
+ {
2449
+ foreignKeyName: "booking_customer_credit_reservations_course_enrollment_id_fkey";
2450
+ columns: ["course_enrollment_id"];
2451
+ isOneToOne: false;
2452
+ referencedRelation: "course_enrollments_canonical";
2453
+ referencedColumns: ["id"];
2454
+ },
2441
2455
  {
2442
2456
  foreignKeyName: "booking_customer_credit_reservations_customer_id_fkey";
2443
2457
  columns: ["customer_id"];
@@ -2845,6 +2859,13 @@ export type Database = {
2845
2859
  referencedRelation: "appointments";
2846
2860
  referencedColumns: ["id"];
2847
2861
  },
2862
+ {
2863
+ foreignKeyName: "booking_encounter_records_course_enrollment_id_fkey";
2864
+ columns: ["course_enrollment_id"];
2865
+ isOneToOne: false;
2866
+ referencedRelation: "course_enrollment_projection_canonical";
2867
+ referencedColumns: ["id"];
2868
+ },
2848
2869
  {
2849
2870
  foreignKeyName: "booking_encounter_records_course_enrollment_id_fkey";
2850
2871
  columns: ["course_enrollment_id"];
@@ -2852,6 +2873,13 @@ export type Database = {
2852
2873
  referencedRelation: "course_enrollments";
2853
2874
  referencedColumns: ["id"];
2854
2875
  },
2876
+ {
2877
+ foreignKeyName: "booking_encounter_records_course_enrollment_id_fkey";
2878
+ columns: ["course_enrollment_id"];
2879
+ isOneToOne: false;
2880
+ referencedRelation: "course_enrollments_canonical";
2881
+ referencedColumns: ["id"];
2882
+ },
2855
2883
  {
2856
2884
  foreignKeyName: "booking_encounter_records_event_attendee_guest_id_fkey";
2857
2885
  columns: ["event_attendee_guest_id"];
@@ -3152,6 +3180,13 @@ export type Database = {
3152
3180
  referencedRelation: "appointments";
3153
3181
  referencedColumns: ["id"];
3154
3182
  },
3183
+ {
3184
+ foreignKeyName: "booking_participant_participations_course_enrollment_id_fkey";
3185
+ columns: ["course_enrollment_id"];
3186
+ isOneToOne: false;
3187
+ referencedRelation: "course_enrollment_projection_canonical";
3188
+ referencedColumns: ["id"];
3189
+ },
3155
3190
  {
3156
3191
  foreignKeyName: "booking_participant_participations_course_enrollment_id_fkey";
3157
3192
  columns: ["course_enrollment_id"];
@@ -3159,6 +3194,13 @@ export type Database = {
3159
3194
  referencedRelation: "course_enrollments";
3160
3195
  referencedColumns: ["id"];
3161
3196
  },
3197
+ {
3198
+ foreignKeyName: "booking_participant_participations_course_enrollment_id_fkey";
3199
+ columns: ["course_enrollment_id"];
3200
+ isOneToOne: false;
3201
+ referencedRelation: "course_enrollments_canonical";
3202
+ referencedColumns: ["id"];
3203
+ },
3162
3204
  {
3163
3205
  foreignKeyName: "booking_participant_participations_event_attendee_guest_id_fkey";
3164
3206
  columns: ["event_attendee_guest_id"];
@@ -3512,6 +3554,13 @@ export type Database = {
3512
3554
  updated_at?: string;
3513
3555
  };
3514
3556
  Relationships: [
3557
+ {
3558
+ foreignKeyName: "booking_payments_course_enrollment_id_fkey";
3559
+ columns: ["course_enrollment_id"];
3560
+ isOneToOne: false;
3561
+ referencedRelation: "course_enrollment_projection_canonical";
3562
+ referencedColumns: ["id"];
3563
+ },
3515
3564
  {
3516
3565
  foreignKeyName: "booking_payments_course_enrollment_id_fkey";
3517
3566
  columns: ["course_enrollment_id"];
@@ -3519,6 +3568,13 @@ export type Database = {
3519
3568
  referencedRelation: "course_enrollments";
3520
3569
  referencedColumns: ["id"];
3521
3570
  },
3571
+ {
3572
+ foreignKeyName: "booking_payments_course_enrollment_id_fkey";
3573
+ columns: ["course_enrollment_id"];
3574
+ isOneToOne: false;
3575
+ referencedRelation: "course_enrollments_canonical";
3576
+ referencedColumns: ["id"];
3577
+ },
3522
3578
  {
3523
3579
  foreignKeyName: "booking_payments_customer_id_fkey";
3524
3580
  columns: ["customer_id"];
@@ -3683,6 +3739,13 @@ export type Database = {
3683
3739
  referencedRelation: "booking_pricing_profiles";
3684
3740
  referencedColumns: ["id"];
3685
3741
  },
3742
+ {
3743
+ foreignKeyName: "booking_pricing_options_pricing_profile_id_fkey";
3744
+ columns: ["pricing_profile_id"];
3745
+ isOneToOne: false;
3746
+ referencedRelation: "booking_pricing_profiles_canonical";
3747
+ referencedColumns: ["id"];
3748
+ },
3686
3749
  {
3687
3750
  foreignKeyName: "booking_pricing_options_site_id_fkey";
3688
3751
  columns: ["site_id"];
@@ -4009,6 +4072,13 @@ export type Database = {
4009
4072
  referencedRelation: "booking_requirement_evidence";
4010
4073
  referencedColumns: ["id"];
4011
4074
  },
4075
+ {
4076
+ foreignKeyName: "booking_requirement_document_uploads_course_enrollment_id_fkey";
4077
+ columns: ["course_enrollment_id"];
4078
+ isOneToOne: false;
4079
+ referencedRelation: "course_enrollment_projection_canonical";
4080
+ referencedColumns: ["id"];
4081
+ },
4012
4082
  {
4013
4083
  foreignKeyName: "booking_requirement_document_uploads_course_enrollment_id_fkey";
4014
4084
  columns: ["course_enrollment_id"];
@@ -4016,6 +4086,13 @@ export type Database = {
4016
4086
  referencedRelation: "course_enrollments";
4017
4087
  referencedColumns: ["id"];
4018
4088
  },
4089
+ {
4090
+ foreignKeyName: "booking_requirement_document_uploads_course_enrollment_id_fkey";
4091
+ columns: ["course_enrollment_id"];
4092
+ isOneToOne: false;
4093
+ referencedRelation: "course_enrollments_canonical";
4094
+ referencedColumns: ["id"];
4095
+ },
4019
4096
  {
4020
4097
  foreignKeyName: "booking_requirement_document_uploads_customer_id_fkey";
4021
4098
  columns: ["customer_id"];
@@ -4044,6 +4121,13 @@ export type Database = {
4044
4121
  referencedRelation: "booking_requirements";
4045
4122
  referencedColumns: ["id"];
4046
4123
  },
4124
+ {
4125
+ foreignKeyName: "booking_requirement_document_uploads_requirement_id_fkey";
4126
+ columns: ["requirement_id"];
4127
+ isOneToOne: false;
4128
+ referencedRelation: "booking_requirements_canonical";
4129
+ referencedColumns: ["id"];
4130
+ },
4047
4131
  {
4048
4132
  foreignKeyName: "booking_requirement_document_uploads_site_id_fkey";
4049
4133
  columns: ["site_id"];
@@ -4113,6 +4197,13 @@ export type Database = {
4113
4197
  referencedRelation: "appointments";
4114
4198
  referencedColumns: ["id"];
4115
4199
  },
4200
+ {
4201
+ foreignKeyName: "booking_requirement_evidence_course_enrollment_id_fkey";
4202
+ columns: ["course_enrollment_id"];
4203
+ isOneToOne: false;
4204
+ referencedRelation: "course_enrollment_projection_canonical";
4205
+ referencedColumns: ["id"];
4206
+ },
4116
4207
  {
4117
4208
  foreignKeyName: "booking_requirement_evidence_course_enrollment_id_fkey";
4118
4209
  columns: ["course_enrollment_id"];
@@ -4120,6 +4211,13 @@ export type Database = {
4120
4211
  referencedRelation: "course_enrollments";
4121
4212
  referencedColumns: ["id"];
4122
4213
  },
4214
+ {
4215
+ foreignKeyName: "booking_requirement_evidence_course_enrollment_id_fkey";
4216
+ columns: ["course_enrollment_id"];
4217
+ isOneToOne: false;
4218
+ referencedRelation: "course_enrollments_canonical";
4219
+ referencedColumns: ["id"];
4220
+ },
4123
4221
  {
4124
4222
  foreignKeyName: "booking_requirement_evidence_event_attendee_id_fkey";
4125
4223
  columns: ["event_attendee_id"];
@@ -4148,6 +4246,13 @@ export type Database = {
4148
4246
  referencedRelation: "booking_requirements";
4149
4247
  referencedColumns: ["id"];
4150
4248
  },
4249
+ {
4250
+ foreignKeyName: "booking_requirement_evidence_requirement_id_fkey";
4251
+ columns: ["requirement_id"];
4252
+ isOneToOne: false;
4253
+ referencedRelation: "booking_requirements_canonical";
4254
+ referencedColumns: ["id"];
4255
+ },
4151
4256
  {
4152
4257
  foreignKeyName: "booking_requirement_evidence_site_id_fkey";
4153
4258
  columns: ["site_id"];
@@ -4218,6 +4323,13 @@ export type Database = {
4218
4323
  referencedRelation: "booking_requirements";
4219
4324
  referencedColumns: ["id"];
4220
4325
  },
4326
+ {
4327
+ foreignKeyName: "booking_requirement_evidence_attachments_requirement_id_fkey";
4328
+ columns: ["requirement_id"];
4329
+ isOneToOne: false;
4330
+ referencedRelation: "booking_requirements_canonical";
4331
+ referencedColumns: ["id"];
4332
+ },
4221
4333
  {
4222
4334
  foreignKeyName: "booking_requirement_evidence_attachments_site_id_fkey";
4223
4335
  columns: ["site_id"];
@@ -4285,6 +4397,13 @@ export type Database = {
4285
4397
  referencedRelation: "booking_participant_participations";
4286
4398
  referencedColumns: ["id"];
4287
4399
  },
4400
+ {
4401
+ foreignKeyName: "booking_requirement_reminder_deliveri_course_enrollment_id_fkey";
4402
+ columns: ["course_enrollment_id"];
4403
+ isOneToOne: false;
4404
+ referencedRelation: "course_enrollment_projection_canonical";
4405
+ referencedColumns: ["id"];
4406
+ },
4288
4407
  {
4289
4408
  foreignKeyName: "booking_requirement_reminder_deliveri_course_enrollment_id_fkey";
4290
4409
  columns: ["course_enrollment_id"];
@@ -4292,6 +4411,13 @@ export type Database = {
4292
4411
  referencedRelation: "course_enrollments";
4293
4412
  referencedColumns: ["id"];
4294
4413
  },
4414
+ {
4415
+ foreignKeyName: "booking_requirement_reminder_deliveri_course_enrollment_id_fkey";
4416
+ columns: ["course_enrollment_id"];
4417
+ isOneToOne: false;
4418
+ referencedRelation: "course_enrollments_canonical";
4419
+ referencedColumns: ["id"];
4420
+ },
4295
4421
  {
4296
4422
  foreignKeyName: "booking_requirement_reminder_deliveries_appointment_id_fkey";
4297
4423
  columns: ["appointment_id"];
@@ -4320,6 +4446,13 @@ export type Database = {
4320
4446
  referencedRelation: "booking_requirements";
4321
4447
  referencedColumns: ["id"];
4322
4448
  },
4449
+ {
4450
+ foreignKeyName: "booking_requirement_reminder_deliveries_requirement_id_fkey";
4451
+ columns: ["requirement_id"];
4452
+ isOneToOne: false;
4453
+ referencedRelation: "booking_requirements_canonical";
4454
+ referencedColumns: ["id"];
4455
+ },
4323
4456
  {
4324
4457
  foreignKeyName: "booking_requirement_reminder_deliveries_site_id_fkey";
4325
4458
  columns: ["site_id"];
@@ -4332,6 +4465,7 @@ export type Database = {
4332
4465
  booking_requirements: {
4333
4466
  Row: {
4334
4467
  appointment_service_id: string | null;
4468
+ canonical_event_series_id: string | null;
4335
4469
  completion_subject: string;
4336
4470
  consent_agreement_text: string | null;
4337
4471
  consent_checkbox_label: string | null;
@@ -4359,6 +4493,7 @@ export type Database = {
4359
4493
  };
4360
4494
  Insert: {
4361
4495
  appointment_service_id?: string | null;
4496
+ canonical_event_series_id?: string | null;
4362
4497
  completion_subject: string;
4363
4498
  consent_agreement_text?: string | null;
4364
4499
  consent_checkbox_label?: string | null;
@@ -4386,6 +4521,7 @@ export type Database = {
4386
4521
  };
4387
4522
  Update: {
4388
4523
  appointment_service_id?: string | null;
4524
+ canonical_event_series_id?: string | null;
4389
4525
  completion_subject?: string;
4390
4526
  consent_agreement_text?: string | null;
4391
4527
  consent_checkbox_label?: string | null;
@@ -4419,6 +4555,13 @@ export type Database = {
4419
4555
  referencedRelation: "appointment_services";
4420
4556
  referencedColumns: ["id"];
4421
4557
  },
4558
+ {
4559
+ foreignKeyName: "booking_requirements_canonical_event_series_site_fk";
4560
+ columns: ["canonical_event_series_id", "site_id"];
4561
+ isOneToOne: false;
4562
+ referencedRelation: "event_series";
4563
+ referencedColumns: ["id", "site_id"];
4564
+ },
4422
4565
  {
4423
4566
  foreignKeyName: "booking_requirements_course_id_fkey";
4424
4567
  columns: ["course_id"];
@@ -5041,7 +5184,7 @@ export type Database = {
5041
5184
  course_enrollment_history_ledger: {
5042
5185
  Row: {
5043
5186
  course_description: Json | null;
5044
- course_id: string;
5187
+ course_id: string | null;
5045
5188
  course_path: string | null;
5046
5189
  course_title: string;
5047
5190
  created_at: string;
@@ -5049,6 +5192,7 @@ export type Database = {
5049
5192
  customer_id: string;
5050
5193
  customer_name: string | null;
5051
5194
  enrolled_at: string | null;
5195
+ event_series_id: string | null;
5052
5196
  id: string;
5053
5197
  next_session_at: string | null;
5054
5198
  payment_method: string | null;
@@ -5064,7 +5208,7 @@ export type Database = {
5064
5208
  };
5065
5209
  Insert: {
5066
5210
  course_description?: Json | null;
5067
- course_id: string;
5211
+ course_id?: string | null;
5068
5212
  course_path?: string | null;
5069
5213
  course_title: string;
5070
5214
  created_at: string;
@@ -5072,6 +5216,7 @@ export type Database = {
5072
5216
  customer_id: string;
5073
5217
  customer_name?: string | null;
5074
5218
  enrolled_at?: string | null;
5219
+ event_series_id?: string | null;
5075
5220
  id: string;
5076
5221
  next_session_at?: string | null;
5077
5222
  payment_method?: string | null;
@@ -5087,7 +5232,7 @@ export type Database = {
5087
5232
  };
5088
5233
  Update: {
5089
5234
  course_description?: Json | null;
5090
- course_id?: string;
5235
+ course_id?: string | null;
5091
5236
  course_path?: string | null;
5092
5237
  course_title?: string;
5093
5238
  created_at?: string;
@@ -5095,6 +5240,7 @@ export type Database = {
5095
5240
  customer_id?: string;
5096
5241
  customer_name?: string | null;
5097
5242
  enrolled_at?: string | null;
5243
+ event_series_id?: string | null;
5098
5244
  id?: string;
5099
5245
  next_session_at?: string | null;
5100
5246
  payment_method?: string | null;
@@ -5121,7 +5267,7 @@ export type Database = {
5121
5267
  course_enrollments: {
5122
5268
  Row: {
5123
5269
  cancelled_at: string | null;
5124
- course_id: string;
5270
+ course_id: string | null;
5125
5271
  created_at: string;
5126
5272
  customer_id: string;
5127
5273
  customer_membership_id: string | null;
@@ -5140,7 +5286,7 @@ export type Database = {
5140
5286
  };
5141
5287
  Insert: {
5142
5288
  cancelled_at?: string | null;
5143
- course_id: string;
5289
+ course_id?: string | null;
5144
5290
  created_at?: string;
5145
5291
  customer_id: string;
5146
5292
  customer_membership_id?: string | null;
@@ -5159,7 +5305,7 @@ export type Database = {
5159
5305
  };
5160
5306
  Update: {
5161
5307
  cancelled_at?: string | null;
5162
- course_id?: string;
5308
+ course_id?: string | null;
5163
5309
  created_at?: string;
5164
5310
  customer_id?: string;
5165
5311
  customer_membership_id?: string | null;
@@ -5503,7 +5649,7 @@ export type Database = {
5503
5649
  audit_ref: string;
5504
5650
  consumed_at: string | null;
5505
5651
  course_enrollment_id: string | null;
5506
- course_id: string;
5652
+ course_id: string | null;
5507
5653
  created_at: string;
5508
5654
  customer_id: string;
5509
5655
  engine_contract_version: string;
@@ -5525,7 +5671,7 @@ export type Database = {
5525
5671
  audit_ref?: string;
5526
5672
  consumed_at?: string | null;
5527
5673
  course_enrollment_id?: string | null;
5528
- course_id: string;
5674
+ course_id?: string | null;
5529
5675
  created_at?: string;
5530
5676
  customer_id: string;
5531
5677
  engine_contract_version?: string;
@@ -5547,7 +5693,7 @@ export type Database = {
5547
5693
  audit_ref?: string;
5548
5694
  consumed_at?: string | null;
5549
5695
  course_enrollment_id?: string | null;
5550
- course_id?: string;
5696
+ course_id?: string | null;
5551
5697
  created_at?: string;
5552
5698
  customer_id?: string;
5553
5699
  engine_contract_version?: string;
@@ -5566,6 +5712,13 @@ export type Database = {
5566
5712
  updated_at?: string;
5567
5713
  };
5568
5714
  Relationships: [
5715
+ {
5716
+ foreignKeyName: "dated_offering_capacity_holds_course_enrollment_id_fkey";
5717
+ columns: ["course_enrollment_id"];
5718
+ isOneToOne: false;
5719
+ referencedRelation: "course_enrollment_projection_canonical";
5720
+ referencedColumns: ["id"];
5721
+ },
5569
5722
  {
5570
5723
  foreignKeyName: "dated_offering_capacity_holds_course_enrollment_id_fkey";
5571
5724
  columns: ["course_enrollment_id"];
@@ -5573,6 +5726,13 @@ export type Database = {
5573
5726
  referencedRelation: "course_enrollments";
5574
5727
  referencedColumns: ["id"];
5575
5728
  },
5729
+ {
5730
+ foreignKeyName: "dated_offering_capacity_holds_course_enrollment_id_fkey";
5731
+ columns: ["course_enrollment_id"];
5732
+ isOneToOne: false;
5733
+ referencedRelation: "course_enrollments_canonical";
5734
+ referencedColumns: ["id"];
5735
+ },
5576
5736
  {
5577
5737
  foreignKeyName: "dated_offering_capacity_holds_course_id_fkey";
5578
5738
  columns: ["course_id"];
@@ -5834,6 +5994,13 @@ export type Database = {
5834
5994
  updated_at?: string;
5835
5995
  };
5836
5996
  Relationships: [
5997
+ {
5998
+ foreignKeyName: "dated_offering_non_cash_order_projections_enrollment_id_fkey";
5999
+ columns: ["enrollment_id"];
6000
+ isOneToOne: true;
6001
+ referencedRelation: "course_enrollment_projection_canonical";
6002
+ referencedColumns: ["id"];
6003
+ },
5837
6004
  {
5838
6005
  foreignKeyName: "dated_offering_non_cash_order_projections_enrollment_id_fkey";
5839
6006
  columns: ["enrollment_id"];
@@ -5841,6 +6008,13 @@ export type Database = {
5841
6008
  referencedRelation: "course_enrollments";
5842
6009
  referencedColumns: ["id"];
5843
6010
  },
6011
+ {
6012
+ foreignKeyName: "dated_offering_non_cash_order_projections_enrollment_id_fkey";
6013
+ columns: ["enrollment_id"];
6014
+ isOneToOne: true;
6015
+ referencedRelation: "course_enrollments_canonical";
6016
+ referencedColumns: ["id"];
6017
+ },
5844
6018
  {
5845
6019
  foreignKeyName: "dated_offering_non_cash_order_projections_site_id_fkey";
5846
6020
  columns: ["site_id"];
@@ -5897,9 +6071,10 @@ export type Database = {
5897
6071
  claim_token: string | null;
5898
6072
  claimed_at: string | null;
5899
6073
  completed_at: string | null;
5900
- course_id: string;
6074
+ course_id: string | null;
5901
6075
  created_at: string;
5902
6076
  enrollment_id: string;
6077
+ event_series_id: string | null;
5903
6078
  id: string;
5904
6079
  last_attempt_at: string | null;
5905
6080
  last_error: string | null;
@@ -5917,9 +6092,10 @@ export type Database = {
5917
6092
  claim_token?: string | null;
5918
6093
  claimed_at?: string | null;
5919
6094
  completed_at?: string | null;
5920
- course_id: string;
6095
+ course_id?: string | null;
5921
6096
  created_at?: string;
5922
6097
  enrollment_id: string;
6098
+ event_series_id?: string | null;
5923
6099
  id?: string;
5924
6100
  last_attempt_at?: string | null;
5925
6101
  last_error?: string | null;
@@ -5937,9 +6113,10 @@ export type Database = {
5937
6113
  claim_token?: string | null;
5938
6114
  claimed_at?: string | null;
5939
6115
  completed_at?: string | null;
5940
- course_id?: string;
6116
+ course_id?: string | null;
5941
6117
  created_at?: string;
5942
6118
  enrollment_id?: string;
6119
+ event_series_id?: string | null;
5943
6120
  id?: string;
5944
6121
  last_attempt_at?: string | null;
5945
6122
  last_error?: string | null;
@@ -5960,6 +6137,13 @@ export type Database = {
5960
6137
  referencedRelation: "courses";
5961
6138
  referencedColumns: ["id"];
5962
6139
  },
6140
+ {
6141
+ foreignKeyName: "dated_offering_waitlist_capacity_effects_enrollment_id_fkey";
6142
+ columns: ["enrollment_id"];
6143
+ isOneToOne: false;
6144
+ referencedRelation: "course_enrollment_projection_canonical";
6145
+ referencedColumns: ["id"];
6146
+ },
5963
6147
  {
5964
6148
  foreignKeyName: "dated_offering_waitlist_capacity_effects_enrollment_id_fkey";
5965
6149
  columns: ["enrollment_id"];
@@ -5967,6 +6151,13 @@ export type Database = {
5967
6151
  referencedRelation: "course_enrollments";
5968
6152
  referencedColumns: ["id"];
5969
6153
  },
6154
+ {
6155
+ foreignKeyName: "dated_offering_waitlist_capacity_effects_enrollment_id_fkey";
6156
+ columns: ["enrollment_id"];
6157
+ isOneToOne: false;
6158
+ referencedRelation: "course_enrollments_canonical";
6159
+ referencedColumns: ["id"];
6160
+ },
5970
6161
  {
5971
6162
  foreignKeyName: "dated_offering_waitlist_capacity_effects_site_id_fkey";
5972
6163
  columns: ["site_id"];
@@ -5980,6 +6171,13 @@ export type Database = {
5980
6171
  isOneToOne: false;
5981
6172
  referencedRelation: "dated_offering_capacity_hold_history";
5982
6173
  referencedColumns: ["id"];
6174
+ },
6175
+ {
6176
+ foreignKeyName: "dated_offering_waitlist_effects_event_series_site_fk";
6177
+ columns: ["event_series_id", "site_id"];
6178
+ isOneToOne: false;
6179
+ referencedRelation: "event_series";
6180
+ referencedColumns: ["id", "site_id"];
5983
6181
  }
5984
6182
  ];
5985
6183
  };
@@ -6885,23 +7083,26 @@ export type Database = {
6885
7083
  };
6886
7084
  discount_code_courses: {
6887
7085
  Row: {
6888
- course_id: string;
7086
+ course_id: string | null;
6889
7087
  created_at: string;
6890
7088
  discount_code_id: string;
7089
+ event_series_id: string | null;
6891
7090
  id: string;
6892
7091
  site_id: string;
6893
7092
  };
6894
7093
  Insert: {
6895
- course_id: string;
7094
+ course_id?: string | null;
6896
7095
  created_at?: string;
6897
7096
  discount_code_id: string;
7097
+ event_series_id?: string | null;
6898
7098
  id?: string;
6899
7099
  site_id: string;
6900
7100
  };
6901
7101
  Update: {
6902
- course_id?: string;
7102
+ course_id?: string | null;
6903
7103
  created_at?: string;
6904
7104
  discount_code_id?: string;
7105
+ event_series_id?: string | null;
6905
7106
  id?: string;
6906
7107
  site_id?: string;
6907
7108
  };
@@ -6933,6 +7134,13 @@ export type Database = {
6933
7134
  isOneToOne: false;
6934
7135
  referencedRelation: "sites";
6935
7136
  referencedColumns: ["id"];
7137
+ },
7138
+ {
7139
+ foreignKeyName: "discount_code_courses_event_series_site_fk";
7140
+ columns: ["event_series_id", "site_id"];
7141
+ isOneToOne: false;
7142
+ referencedRelation: "event_series";
7143
+ referencedColumns: ["id", "site_id"];
6936
7144
  }
6937
7145
  ];
6938
7146
  };
@@ -7453,6 +7661,13 @@ export type Database = {
7453
7661
  referencedRelation: "booking_payments_list_view";
7454
7662
  referencedColumns: ["id"];
7455
7663
  },
7664
+ {
7665
+ foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
7666
+ columns: ["course_enrollment_id"];
7667
+ isOneToOne: false;
7668
+ referencedRelation: "course_enrollment_projection_canonical";
7669
+ referencedColumns: ["id"];
7670
+ },
7456
7671
  {
7457
7672
  foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
7458
7673
  columns: ["course_enrollment_id"];
@@ -7460,6 +7675,13 @@ export type Database = {
7460
7675
  referencedRelation: "course_enrollments";
7461
7676
  referencedColumns: ["id"];
7462
7677
  },
7678
+ {
7679
+ foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
7680
+ columns: ["course_enrollment_id"];
7681
+ isOneToOne: false;
7682
+ referencedRelation: "course_enrollments_canonical";
7683
+ referencedColumns: ["id"];
7684
+ },
7463
7685
  {
7464
7686
  foreignKeyName: "booking_discount_redemptions_customer_id_fkey";
7465
7687
  columns: ["customer_id"];
@@ -12146,6 +12368,13 @@ export type Database = {
12146
12368
  referencedRelation: "event_attendee_ticket_lines";
12147
12369
  referencedColumns: ["id", "site_id"];
12148
12370
  },
12371
+ {
12372
+ foreignKeyName: "order_items_enrollment_site_fk";
12373
+ columns: ["course_enrollment_id", "site_id"];
12374
+ isOneToOne: false;
12375
+ referencedRelation: "course_enrollment_projection_canonical";
12376
+ referencedColumns: ["id", "site_id"];
12377
+ },
12149
12378
  {
12150
12379
  foreignKeyName: "order_items_enrollment_site_fk";
12151
12380
  columns: ["course_enrollment_id", "site_id"];
@@ -12153,6 +12382,13 @@ export type Database = {
12153
12382
  referencedRelation: "course_enrollments";
12154
12383
  referencedColumns: ["id", "site_id"];
12155
12384
  },
12385
+ {
12386
+ foreignKeyName: "order_items_enrollment_site_fk";
12387
+ columns: ["course_enrollment_id", "site_id"];
12388
+ isOneToOne: false;
12389
+ referencedRelation: "course_enrollments_canonical";
12390
+ referencedColumns: ["id", "site_id"];
12391
+ },
12156
12392
  {
12157
12393
  foreignKeyName: "order_items_membership_site_fk";
12158
12394
  columns: ["customer_membership_id", "site_id"];
@@ -16461,6 +16697,7 @@ export type Database = {
16461
16697
  customer_name: string;
16462
16698
  customer_phone: string | null;
16463
16699
  event_occurrence_id: string | null;
16700
+ event_series_id: string | null;
16464
16701
  expired_at: string | null;
16465
16702
  form_snapshot: Json;
16466
16703
  id: string;
@@ -16484,6 +16721,7 @@ export type Database = {
16484
16721
  customer_name: string;
16485
16722
  customer_phone?: string | null;
16486
16723
  event_occurrence_id?: string | null;
16724
+ event_series_id?: string | null;
16487
16725
  expired_at?: string | null;
16488
16726
  form_snapshot?: Json;
16489
16727
  id?: string;
@@ -16507,6 +16745,7 @@ export type Database = {
16507
16745
  customer_name?: string;
16508
16746
  customer_phone?: string | null;
16509
16747
  event_occurrence_id?: string | null;
16748
+ event_series_id?: string | null;
16510
16749
  expired_at?: string | null;
16511
16750
  form_snapshot?: Json;
16512
16751
  id?: string;
@@ -16541,6 +16780,13 @@ export type Database = {
16541
16780
  referencedRelation: "event_occurrences";
16542
16781
  referencedColumns: ["id"];
16543
16782
  },
16783
+ {
16784
+ foreignKeyName: "waitlist_entries_event_series_site_fk";
16785
+ columns: ["event_series_id", "site_id"];
16786
+ isOneToOne: false;
16787
+ referencedRelation: "event_series";
16788
+ referencedColumns: ["id", "site_id"];
16789
+ },
16544
16790
  {
16545
16791
  foreignKeyName: "waitlist_entries_site_id_fkey";
16546
16792
  columns: ["site_id"];
@@ -16559,6 +16805,7 @@ export type Database = {
16559
16805
  created_at: string;
16560
16806
  email_delivery_status: string;
16561
16807
  event_occurrence_id: string | null;
16808
+ event_series_id: string | null;
16562
16809
  expired_at: string | null;
16563
16810
  expires_at: string;
16564
16811
  id: string;
@@ -16581,6 +16828,7 @@ export type Database = {
16581
16828
  created_at?: string;
16582
16829
  email_delivery_status?: string;
16583
16830
  event_occurrence_id?: string | null;
16831
+ event_series_id?: string | null;
16584
16832
  expired_at?: string | null;
16585
16833
  expires_at: string;
16586
16834
  id?: string;
@@ -16603,6 +16851,7 @@ export type Database = {
16603
16851
  created_at?: string;
16604
16852
  email_delivery_status?: string;
16605
16853
  event_occurrence_id?: string | null;
16854
+ event_series_id?: string | null;
16606
16855
  expired_at?: string | null;
16607
16856
  expires_at?: string;
16608
16857
  id?: string;
@@ -16632,6 +16881,13 @@ export type Database = {
16632
16881
  referencedRelation: "event_occurrences";
16633
16882
  referencedColumns: ["id"];
16634
16883
  },
16884
+ {
16885
+ foreignKeyName: "waitlist_holds_event_series_site_fk";
16886
+ columns: ["event_series_id", "site_id"];
16887
+ isOneToOne: false;
16888
+ referencedRelation: "event_series";
16889
+ referencedColumns: ["id", "site_id"];
16890
+ },
16635
16891
  {
16636
16892
  foreignKeyName: "waitlist_holds_site_id_fkey";
16637
16893
  columns: ["site_id"];
@@ -16645,6 +16901,13 @@ export type Database = {
16645
16901
  isOneToOne: false;
16646
16902
  referencedRelation: "waitlist_entries";
16647
16903
  referencedColumns: ["id"];
16904
+ },
16905
+ {
16906
+ foreignKeyName: "waitlist_holds_waitlist_entry_id_fkey";
16907
+ columns: ["waitlist_entry_id"];
16908
+ isOneToOne: false;
16909
+ referencedRelation: "waitlist_entries_canonical";
16910
+ referencedColumns: ["id"];
16648
16911
  }
16649
16912
  ];
16650
16913
  };
@@ -17446,14 +17709,28 @@ export type Database = {
17446
17709
  foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
17447
17710
  columns: ["course_enrollment_id"];
17448
17711
  isOneToOne: false;
17449
- referencedRelation: "course_enrollments";
17712
+ referencedRelation: "course_enrollment_projection_canonical";
17450
17713
  referencedColumns: ["id"];
17451
17714
  },
17452
17715
  {
17453
- foreignKeyName: "booking_discount_redemptions_customer_id_fkey";
17454
- columns: ["customer_id"];
17716
+ foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
17717
+ columns: ["course_enrollment_id"];
17455
17718
  isOneToOne: false;
17456
- referencedRelation: "booking_customers";
17719
+ referencedRelation: "course_enrollments";
17720
+ referencedColumns: ["id"];
17721
+ },
17722
+ {
17723
+ foreignKeyName: "booking_discount_redemptions_course_enrollment_id_fkey";
17724
+ columns: ["course_enrollment_id"];
17725
+ isOneToOne: false;
17726
+ referencedRelation: "course_enrollments_canonical";
17727
+ referencedColumns: ["id"];
17728
+ },
17729
+ {
17730
+ foreignKeyName: "booking_discount_redemptions_customer_id_fkey";
17731
+ columns: ["customer_id"];
17732
+ isOneToOne: false;
17733
+ referencedRelation: "booking_customers";
17457
17734
  referencedColumns: ["id"];
17458
17735
  },
17459
17736
  {
@@ -17485,28 +17762,566 @@ export type Database = {
17485
17762
  referencedColumns: ["id"];
17486
17763
  },
17487
17764
  {
17488
- foreignKeyName: "booking_discount_redemptions_discount_code_id_fkey";
17489
- columns: ["discount_code_id"];
17765
+ foreignKeyName: "booking_discount_redemptions_discount_code_id_fkey";
17766
+ columns: ["discount_code_id"];
17767
+ isOneToOne: false;
17768
+ referencedRelation: "discount_codes";
17769
+ referencedColumns: ["id"];
17770
+ },
17771
+ {
17772
+ foreignKeyName: "booking_discount_redemptions_event_attendee_id_fkey";
17773
+ columns: ["event_attendee_id"];
17774
+ isOneToOne: false;
17775
+ referencedRelation: "event_attendees";
17776
+ referencedColumns: ["id"];
17777
+ },
17778
+ {
17779
+ foreignKeyName: "booking_discount_redemptions_order_id_fkey";
17780
+ columns: ["order_id"];
17781
+ isOneToOne: false;
17782
+ referencedRelation: "orders";
17783
+ referencedColumns: ["id"];
17784
+ },
17785
+ {
17786
+ foreignKeyName: "booking_discount_redemptions_site_id_fkey";
17787
+ columns: ["site_id"];
17788
+ isOneToOne: false;
17789
+ referencedRelation: "sites";
17790
+ referencedColumns: ["id"];
17791
+ }
17792
+ ];
17793
+ };
17794
+ booking_payments_list_view: {
17795
+ Row: {
17796
+ amount_discount_cents: number | null;
17797
+ amount_paid_cents: number | null;
17798
+ amount_refunded_cents: number | null;
17799
+ amount_subtotal_cents: number | null;
17800
+ course_enrollment_id: string | null;
17801
+ created_at: string | null;
17802
+ currency: string | null;
17803
+ customer_email: string | null;
17804
+ customer_id: string | null;
17805
+ customer_membership_id: string | null;
17806
+ customer_name: string | null;
17807
+ customer_pass_id: string | null;
17808
+ discount_code: string | null;
17809
+ discount_code_id: string | null;
17810
+ discount_public_label: string | null;
17811
+ event_attendee_id: string | null;
17812
+ id: string | null;
17813
+ kind: string | null;
17814
+ provider: string | null;
17815
+ search_text: string | null;
17816
+ site_id: string | null;
17817
+ source_label: string | null;
17818
+ status: string | null;
17819
+ stripe_account_id: string | null;
17820
+ stripe_checkout_session_id: string | null;
17821
+ stripe_created_at: string | null;
17822
+ stripe_invoice_id: string | null;
17823
+ stripe_payment_intent_id: string | null;
17824
+ updated_at: string | null;
17825
+ };
17826
+ Relationships: [
17827
+ {
17828
+ foreignKeyName: "booking_payments_course_enrollment_id_fkey";
17829
+ columns: ["course_enrollment_id"];
17830
+ isOneToOne: false;
17831
+ referencedRelation: "course_enrollment_projection_canonical";
17832
+ referencedColumns: ["id"];
17833
+ },
17834
+ {
17835
+ foreignKeyName: "booking_payments_course_enrollment_id_fkey";
17836
+ columns: ["course_enrollment_id"];
17837
+ isOneToOne: false;
17838
+ referencedRelation: "course_enrollments";
17839
+ referencedColumns: ["id"];
17840
+ },
17841
+ {
17842
+ foreignKeyName: "booking_payments_course_enrollment_id_fkey";
17843
+ columns: ["course_enrollment_id"];
17844
+ isOneToOne: false;
17845
+ referencedRelation: "course_enrollments_canonical";
17846
+ referencedColumns: ["id"];
17847
+ },
17848
+ {
17849
+ foreignKeyName: "booking_payments_customer_id_fkey";
17850
+ columns: ["customer_id"];
17851
+ isOneToOne: false;
17852
+ referencedRelation: "booking_customers";
17853
+ referencedColumns: ["id"];
17854
+ },
17855
+ {
17856
+ foreignKeyName: "booking_payments_customer_membership_id_fkey";
17857
+ columns: ["customer_membership_id"];
17858
+ isOneToOne: false;
17859
+ referencedRelation: "booking_customer_memberships";
17860
+ referencedColumns: ["id"];
17861
+ },
17862
+ {
17863
+ foreignKeyName: "booking_payments_customer_pass_id_fkey";
17864
+ columns: ["customer_pass_id"];
17865
+ isOneToOne: false;
17866
+ referencedRelation: "booking_customer_passes";
17867
+ referencedColumns: ["id"];
17868
+ },
17869
+ {
17870
+ foreignKeyName: "booking_payments_customer_pass_id_fkey";
17871
+ columns: ["customer_pass_id"];
17872
+ isOneToOne: false;
17873
+ referencedRelation: "booking_customer_passes_list_view";
17874
+ referencedColumns: ["id"];
17875
+ },
17876
+ {
17877
+ foreignKeyName: "booking_payments_discount_code_id_fkey";
17878
+ columns: ["discount_code_id"];
17879
+ isOneToOne: false;
17880
+ referencedRelation: "booking_discount_codes";
17881
+ referencedColumns: ["id"];
17882
+ },
17883
+ {
17884
+ foreignKeyName: "booking_payments_discount_code_id_fkey";
17885
+ columns: ["discount_code_id"];
17886
+ isOneToOne: false;
17887
+ referencedRelation: "discount_codes";
17888
+ referencedColumns: ["id"];
17889
+ },
17890
+ {
17891
+ foreignKeyName: "booking_payments_event_attendee_id_fkey";
17892
+ columns: ["event_attendee_id"];
17893
+ isOneToOne: false;
17894
+ referencedRelation: "event_attendees";
17895
+ referencedColumns: ["id"];
17896
+ },
17897
+ {
17898
+ foreignKeyName: "booking_payments_site_id_fkey";
17899
+ columns: ["site_id"];
17900
+ isOneToOne: false;
17901
+ referencedRelation: "sites";
17902
+ referencedColumns: ["id"];
17903
+ }
17904
+ ];
17905
+ };
17906
+ booking_pricing_profiles_canonical: {
17907
+ Row: {
17908
+ appointment_service_id: string | null;
17909
+ booking_requirement: string | null;
17910
+ created_at: string | null;
17911
+ currency: string | null;
17912
+ event_series_id: string | null;
17913
+ id: string | null;
17914
+ payment_terms_json: Json | null;
17915
+ pricing_strategy: string | null;
17916
+ single_price_amount: number | null;
17917
+ site_id: string | null;
17918
+ sliding_max_amount: number | null;
17919
+ sliding_min_amount: number | null;
17920
+ sliding_suggested_amount: number | null;
17921
+ updated_at: string | null;
17922
+ };
17923
+ Insert: {
17924
+ appointment_service_id?: string | null;
17925
+ booking_requirement?: string | null;
17926
+ created_at?: string | null;
17927
+ currency?: string | null;
17928
+ event_series_id?: string | null;
17929
+ id?: string | null;
17930
+ payment_terms_json?: Json | null;
17931
+ pricing_strategy?: string | null;
17932
+ single_price_amount?: number | null;
17933
+ site_id?: string | null;
17934
+ sliding_max_amount?: number | null;
17935
+ sliding_min_amount?: number | null;
17936
+ sliding_suggested_amount?: number | null;
17937
+ updated_at?: string | null;
17938
+ };
17939
+ Update: {
17940
+ appointment_service_id?: string | null;
17941
+ booking_requirement?: string | null;
17942
+ created_at?: string | null;
17943
+ currency?: string | null;
17944
+ event_series_id?: string | null;
17945
+ id?: string | null;
17946
+ payment_terms_json?: Json | null;
17947
+ pricing_strategy?: string | null;
17948
+ single_price_amount?: number | null;
17949
+ site_id?: string | null;
17950
+ sliding_max_amount?: number | null;
17951
+ sliding_min_amount?: number | null;
17952
+ sliding_suggested_amount?: number | null;
17953
+ updated_at?: string | null;
17954
+ };
17955
+ Relationships: [
17956
+ {
17957
+ foreignKeyName: "booking_pricing_profiles_appointment_service_id_fkey";
17958
+ columns: ["appointment_service_id"];
17959
+ isOneToOne: false;
17960
+ referencedRelation: "appointment_services";
17961
+ referencedColumns: ["id"];
17962
+ },
17963
+ {
17964
+ foreignKeyName: "booking_pricing_profiles_event_series_id_fkey";
17965
+ columns: ["event_series_id"];
17966
+ isOneToOne: false;
17967
+ referencedRelation: "event_series";
17968
+ referencedColumns: ["id"];
17969
+ },
17970
+ {
17971
+ foreignKeyName: "booking_pricing_profiles_site_id_fkey";
17972
+ columns: ["site_id"];
17973
+ isOneToOne: false;
17974
+ referencedRelation: "sites";
17975
+ referencedColumns: ["id"];
17976
+ }
17977
+ ];
17978
+ };
17979
+ booking_requirements_canonical: {
17980
+ Row: {
17981
+ appointment_service_id: string | null;
17982
+ completion_subject: string | null;
17983
+ consent_agreement_text: string | null;
17984
+ consent_checkbox_label: string | null;
17985
+ consent_title: string | null;
17986
+ created_at: string | null;
17987
+ due_offset_minutes: number | null;
17988
+ event_series_id: string | null;
17989
+ form_id: string | null;
17990
+ id: string | null;
17991
+ question_reuse_mode: string | null;
17992
+ question_shape: string | null;
17993
+ reminder_offset_minutes: number | null;
17994
+ requirement_kind: string | null;
17995
+ sensitive_collection_confirmation_version: number | null;
17996
+ sensitive_collection_enabled_at: string | null;
17997
+ sensitive_collection_enabled_by_user_id: string | null;
17998
+ sensitive_collection_mode: string | null;
17999
+ site_id: string | null;
18000
+ target_type: string | null;
18001
+ timing: string | null;
18002
+ updated_at: string | null;
18003
+ validity_months: number | null;
18004
+ validity_policy: string | null;
18005
+ };
18006
+ Insert: {
18007
+ appointment_service_id?: string | null;
18008
+ completion_subject?: string | null;
18009
+ consent_agreement_text?: string | null;
18010
+ consent_checkbox_label?: string | null;
18011
+ consent_title?: string | null;
18012
+ created_at?: string | null;
18013
+ due_offset_minutes?: number | null;
18014
+ event_series_id?: never;
18015
+ form_id?: string | null;
18016
+ id?: string | null;
18017
+ question_reuse_mode?: string | null;
18018
+ question_shape?: string | null;
18019
+ reminder_offset_minutes?: number | null;
18020
+ requirement_kind?: string | null;
18021
+ sensitive_collection_confirmation_version?: number | null;
18022
+ sensitive_collection_enabled_at?: string | null;
18023
+ sensitive_collection_enabled_by_user_id?: string | null;
18024
+ sensitive_collection_mode?: string | null;
18025
+ site_id?: string | null;
18026
+ target_type?: never;
18027
+ timing?: string | null;
18028
+ updated_at?: string | null;
18029
+ validity_months?: number | null;
18030
+ validity_policy?: string | null;
18031
+ };
18032
+ Update: {
18033
+ appointment_service_id?: string | null;
18034
+ completion_subject?: string | null;
18035
+ consent_agreement_text?: string | null;
18036
+ consent_checkbox_label?: string | null;
18037
+ consent_title?: string | null;
18038
+ created_at?: string | null;
18039
+ due_offset_minutes?: number | null;
18040
+ event_series_id?: never;
18041
+ form_id?: string | null;
18042
+ id?: string | null;
18043
+ question_reuse_mode?: string | null;
18044
+ question_shape?: string | null;
18045
+ reminder_offset_minutes?: number | null;
18046
+ requirement_kind?: string | null;
18047
+ sensitive_collection_confirmation_version?: number | null;
18048
+ sensitive_collection_enabled_at?: string | null;
18049
+ sensitive_collection_enabled_by_user_id?: string | null;
18050
+ sensitive_collection_mode?: string | null;
18051
+ site_id?: string | null;
18052
+ target_type?: never;
18053
+ timing?: string | null;
18054
+ updated_at?: string | null;
18055
+ validity_months?: number | null;
18056
+ validity_policy?: string | null;
18057
+ };
18058
+ Relationships: [
18059
+ {
18060
+ foreignKeyName: "booking_requirements_appointment_service_id_fkey";
18061
+ columns: ["appointment_service_id"];
18062
+ isOneToOne: false;
18063
+ referencedRelation: "appointment_services";
18064
+ referencedColumns: ["id"];
18065
+ },
18066
+ {
18067
+ foreignKeyName: "booking_requirements_form_id_fkey";
18068
+ columns: ["form_id"];
18069
+ isOneToOne: false;
18070
+ referencedRelation: "forms";
18071
+ referencedColumns: ["id"];
18072
+ },
18073
+ {
18074
+ foreignKeyName: "booking_requirements_site_id_fkey";
18075
+ columns: ["site_id"];
18076
+ isOneToOne: false;
18077
+ referencedRelation: "sites";
18078
+ referencedColumns: ["id"];
18079
+ }
18080
+ ];
18081
+ };
18082
+ course_enrollment_projection_canonical: {
18083
+ Row: {
18084
+ created_at: string | null;
18085
+ customer_email: string | null;
18086
+ customer_id: string | null;
18087
+ customer_name: string | null;
18088
+ enrolled_at: string | null;
18089
+ event_series_id: string | null;
18090
+ event_series_title: string | null;
18091
+ id: string | null;
18092
+ payment_method: string | null;
18093
+ payment_status: string | null;
18094
+ site_id: string | null;
18095
+ site_title: string | null;
18096
+ site_user_id: string | null;
18097
+ status: string | null;
18098
+ updated_at: string | null;
18099
+ };
18100
+ Relationships: [
18101
+ {
18102
+ foreignKeyName: "course_enrollments_customer_id_fkey";
18103
+ columns: ["customer_id"];
18104
+ isOneToOne: false;
18105
+ referencedRelation: "booking_customers";
18106
+ referencedColumns: ["id"];
18107
+ },
18108
+ {
18109
+ foreignKeyName: "course_enrollments_event_series_site_fkey";
18110
+ columns: ["event_series_id", "site_id"];
18111
+ isOneToOne: false;
18112
+ referencedRelation: "event_series";
18113
+ referencedColumns: ["id", "site_id"];
18114
+ },
18115
+ {
18116
+ foreignKeyName: "course_enrollments_site_id_fkey";
18117
+ columns: ["site_id"];
18118
+ isOneToOne: false;
18119
+ referencedRelation: "sites";
18120
+ referencedColumns: ["id"];
18121
+ }
18122
+ ];
18123
+ };
18124
+ course_enrollments_canonical: {
18125
+ Row: {
18126
+ cancelled_at: string | null;
18127
+ created_at: string | null;
18128
+ customer_id: string | null;
18129
+ customer_membership_id: string | null;
18130
+ enrolled_at: string | null;
18131
+ event_series_id: string | null;
18132
+ form_submission_json: Json | null;
18133
+ id: string | null;
18134
+ metadata: Json | null;
18135
+ payment_id: string | null;
18136
+ payment_method: string | null;
18137
+ payment_status: string | null;
18138
+ pricing_option_id: string | null;
18139
+ site_id: string | null;
18140
+ status: string | null;
18141
+ updated_at: string | null;
18142
+ };
18143
+ Insert: {
18144
+ cancelled_at?: string | null;
18145
+ created_at?: string | null;
18146
+ customer_id?: string | null;
18147
+ customer_membership_id?: string | null;
18148
+ enrolled_at?: string | null;
18149
+ event_series_id?: string | null;
18150
+ form_submission_json?: Json | null;
18151
+ id?: string | null;
18152
+ metadata?: Json | null;
18153
+ payment_id?: string | null;
18154
+ payment_method?: string | null;
18155
+ payment_status?: string | null;
18156
+ pricing_option_id?: string | null;
18157
+ site_id?: string | null;
18158
+ status?: string | null;
18159
+ updated_at?: string | null;
18160
+ };
18161
+ Update: {
18162
+ cancelled_at?: string | null;
18163
+ created_at?: string | null;
18164
+ customer_id?: string | null;
18165
+ customer_membership_id?: string | null;
18166
+ enrolled_at?: string | null;
18167
+ event_series_id?: string | null;
18168
+ form_submission_json?: Json | null;
18169
+ id?: string | null;
18170
+ metadata?: Json | null;
18171
+ payment_id?: string | null;
18172
+ payment_method?: string | null;
18173
+ payment_status?: string | null;
18174
+ pricing_option_id?: string | null;
18175
+ site_id?: string | null;
18176
+ status?: string | null;
18177
+ updated_at?: string | null;
18178
+ };
18179
+ Relationships: [
18180
+ {
18181
+ foreignKeyName: "course_enrollments_customer_id_fkey";
18182
+ columns: ["customer_id"];
18183
+ isOneToOne: false;
18184
+ referencedRelation: "booking_customers";
18185
+ referencedColumns: ["id"];
18186
+ },
18187
+ {
18188
+ foreignKeyName: "course_enrollments_customer_membership_id_fkey";
18189
+ columns: ["customer_membership_id"];
18190
+ isOneToOne: false;
18191
+ referencedRelation: "booking_customer_memberships";
18192
+ referencedColumns: ["id"];
18193
+ },
18194
+ {
18195
+ foreignKeyName: "course_enrollments_event_series_site_fkey";
18196
+ columns: ["event_series_id", "site_id"];
18197
+ isOneToOne: false;
18198
+ referencedRelation: "event_series";
18199
+ referencedColumns: ["id", "site_id"];
18200
+ },
18201
+ {
18202
+ foreignKeyName: "course_enrollments_payment_id_fkey";
18203
+ columns: ["payment_id"];
18204
+ isOneToOne: false;
18205
+ referencedRelation: "booking_payments";
18206
+ referencedColumns: ["id"];
18207
+ },
18208
+ {
18209
+ foreignKeyName: "course_enrollments_payment_id_fkey";
18210
+ columns: ["payment_id"];
18211
+ isOneToOne: false;
18212
+ referencedRelation: "booking_payments_list_view";
18213
+ referencedColumns: ["id"];
18214
+ },
18215
+ {
18216
+ foreignKeyName: "course_enrollments_pricing_option_id_fkey";
18217
+ columns: ["pricing_option_id"];
18218
+ isOneToOne: false;
18219
+ referencedRelation: "booking_pricing_options";
18220
+ referencedColumns: ["id"];
18221
+ },
18222
+ {
18223
+ foreignKeyName: "course_enrollments_site_id_fkey";
18224
+ columns: ["site_id"];
18225
+ isOneToOne: false;
18226
+ referencedRelation: "sites";
18227
+ referencedColumns: ["id"];
18228
+ }
18229
+ ];
18230
+ };
18231
+ waitlist_entries_canonical: {
18232
+ Row: {
18233
+ attendance_mode: string | null;
18234
+ cancelled_at: string | null;
18235
+ claimed_at: string | null;
18236
+ created_at: string | null;
18237
+ customer_email: string | null;
18238
+ customer_id: string | null;
18239
+ customer_name: string | null;
18240
+ customer_phone: string | null;
18241
+ event_occurrence_id: string | null;
18242
+ event_series_id: string | null;
18243
+ expired_at: string | null;
18244
+ form_snapshot: Json | null;
18245
+ id: string | null;
18246
+ joined_at: string | null;
18247
+ metadata: Json | null;
18248
+ seat_count: number | null;
18249
+ site_id: string | null;
18250
+ source: string | null;
18251
+ status: string | null;
18252
+ subject_kind: string | null;
18253
+ updated_at: string | null;
18254
+ };
18255
+ Insert: {
18256
+ attendance_mode?: string | null;
18257
+ cancelled_at?: string | null;
18258
+ claimed_at?: string | null;
18259
+ created_at?: string | null;
18260
+ customer_email?: string | null;
18261
+ customer_id?: string | null;
18262
+ customer_name?: string | null;
18263
+ customer_phone?: string | null;
18264
+ event_occurrence_id?: string | null;
18265
+ event_series_id?: string | null;
18266
+ expired_at?: string | null;
18267
+ form_snapshot?: Json | null;
18268
+ id?: string | null;
18269
+ joined_at?: string | null;
18270
+ metadata?: Json | null;
18271
+ seat_count?: number | null;
18272
+ site_id?: string | null;
18273
+ source?: string | null;
18274
+ status?: string | null;
18275
+ subject_kind?: never;
18276
+ updated_at?: string | null;
18277
+ };
18278
+ Update: {
18279
+ attendance_mode?: string | null;
18280
+ cancelled_at?: string | null;
18281
+ claimed_at?: string | null;
18282
+ created_at?: string | null;
18283
+ customer_email?: string | null;
18284
+ customer_id?: string | null;
18285
+ customer_name?: string | null;
18286
+ customer_phone?: string | null;
18287
+ event_occurrence_id?: string | null;
18288
+ event_series_id?: string | null;
18289
+ expired_at?: string | null;
18290
+ form_snapshot?: Json | null;
18291
+ id?: string | null;
18292
+ joined_at?: string | null;
18293
+ metadata?: Json | null;
18294
+ seat_count?: number | null;
18295
+ site_id?: string | null;
18296
+ source?: string | null;
18297
+ status?: string | null;
18298
+ subject_kind?: never;
18299
+ updated_at?: string | null;
18300
+ };
18301
+ Relationships: [
18302
+ {
18303
+ foreignKeyName: "waitlist_entries_customer_id_fkey";
18304
+ columns: ["customer_id"];
17490
18305
  isOneToOne: false;
17491
- referencedRelation: "discount_codes";
18306
+ referencedRelation: "booking_customers";
17492
18307
  referencedColumns: ["id"];
17493
18308
  },
17494
18309
  {
17495
- foreignKeyName: "booking_discount_redemptions_event_attendee_id_fkey";
17496
- columns: ["event_attendee_id"];
18310
+ foreignKeyName: "waitlist_entries_event_occurrence_id_fkey";
18311
+ columns: ["event_occurrence_id"];
17497
18312
  isOneToOne: false;
17498
- referencedRelation: "event_attendees";
18313
+ referencedRelation: "event_occurrences";
17499
18314
  referencedColumns: ["id"];
17500
18315
  },
17501
18316
  {
17502
- foreignKeyName: "booking_discount_redemptions_order_id_fkey";
17503
- columns: ["order_id"];
18317
+ foreignKeyName: "waitlist_entries_event_series_site_fk";
18318
+ columns: ["event_series_id", "site_id"];
17504
18319
  isOneToOne: false;
17505
- referencedRelation: "orders";
17506
- referencedColumns: ["id"];
18320
+ referencedRelation: "event_series";
18321
+ referencedColumns: ["id", "site_id"];
17507
18322
  },
17508
18323
  {
17509
- foreignKeyName: "booking_discount_redemptions_site_id_fkey";
18324
+ foreignKeyName: "waitlist_entries_site_id_fkey";
17510
18325
  columns: ["site_id"];
17511
18326
  isOneToOne: false;
17512
18327
  referencedRelation: "sites";
@@ -17514,100 +18329,107 @@ export type Database = {
17514
18329
  }
17515
18330
  ];
17516
18331
  };
17517
- booking_payments_list_view: {
18332
+ waitlist_holds_canonical: {
17518
18333
  Row: {
17519
- amount_discount_cents: number | null;
17520
- amount_paid_cents: number | null;
17521
- amount_refunded_cents: number | null;
17522
- amount_subtotal_cents: number | null;
17523
- course_enrollment_id: string | null;
18334
+ attendance_mode: string | null;
18335
+ cancelled_at: string | null;
18336
+ consumed_at: string | null;
17524
18337
  created_at: string | null;
17525
- currency: string | null;
17526
- customer_email: string | null;
17527
- customer_id: string | null;
17528
- customer_membership_id: string | null;
17529
- customer_name: string | null;
17530
- customer_pass_id: string | null;
17531
- discount_code: string | null;
17532
- discount_code_id: string | null;
17533
- discount_public_label: string | null;
17534
- event_attendee_id: string | null;
18338
+ email_delivery_status: string | null;
18339
+ event_occurrence_id: string | null;
18340
+ event_series_id: string | null;
18341
+ expired_at: string | null;
18342
+ expires_at: string | null;
17535
18343
  id: string | null;
17536
- kind: string | null;
17537
- provider: string | null;
17538
- search_text: string | null;
18344
+ last_emailed_at: string | null;
18345
+ metadata: Json | null;
18346
+ reserved_at: string | null;
17539
18347
  site_id: string | null;
17540
- source_label: string | null;
17541
18348
  status: string | null;
17542
- stripe_account_id: string | null;
17543
- stripe_checkout_session_id: string | null;
17544
- stripe_created_at: string | null;
17545
- stripe_invoice_id: string | null;
17546
- stripe_payment_intent_id: string | null;
18349
+ subject_kind: string | null;
18350
+ token_public_id: string | null;
18351
+ token_secret_hash: string | null;
17547
18352
  updated_at: string | null;
18353
+ waitlist_entry_id: string | null;
18354
+ };
18355
+ Insert: {
18356
+ attendance_mode?: string | null;
18357
+ cancelled_at?: string | null;
18358
+ consumed_at?: string | null;
18359
+ created_at?: string | null;
18360
+ email_delivery_status?: string | null;
18361
+ event_occurrence_id?: string | null;
18362
+ event_series_id?: string | null;
18363
+ expired_at?: string | null;
18364
+ expires_at?: string | null;
18365
+ id?: string | null;
18366
+ last_emailed_at?: string | null;
18367
+ metadata?: Json | null;
18368
+ reserved_at?: string | null;
18369
+ site_id?: string | null;
18370
+ status?: string | null;
18371
+ subject_kind?: never;
18372
+ token_public_id?: string | null;
18373
+ token_secret_hash?: string | null;
18374
+ updated_at?: string | null;
18375
+ waitlist_entry_id?: string | null;
18376
+ };
18377
+ Update: {
18378
+ attendance_mode?: string | null;
18379
+ cancelled_at?: string | null;
18380
+ consumed_at?: string | null;
18381
+ created_at?: string | null;
18382
+ email_delivery_status?: string | null;
18383
+ event_occurrence_id?: string | null;
18384
+ event_series_id?: string | null;
18385
+ expired_at?: string | null;
18386
+ expires_at?: string | null;
18387
+ id?: string | null;
18388
+ last_emailed_at?: string | null;
18389
+ metadata?: Json | null;
18390
+ reserved_at?: string | null;
18391
+ site_id?: string | null;
18392
+ status?: string | null;
18393
+ subject_kind?: never;
18394
+ token_public_id?: string | null;
18395
+ token_secret_hash?: string | null;
18396
+ updated_at?: string | null;
18397
+ waitlist_entry_id?: string | null;
17548
18398
  };
17549
18399
  Relationships: [
17550
18400
  {
17551
- foreignKeyName: "booking_payments_course_enrollment_id_fkey";
17552
- columns: ["course_enrollment_id"];
17553
- isOneToOne: false;
17554
- referencedRelation: "course_enrollments";
17555
- referencedColumns: ["id"];
17556
- },
17557
- {
17558
- foreignKeyName: "booking_payments_customer_id_fkey";
17559
- columns: ["customer_id"];
17560
- isOneToOne: false;
17561
- referencedRelation: "booking_customers";
17562
- referencedColumns: ["id"];
17563
- },
17564
- {
17565
- foreignKeyName: "booking_payments_customer_membership_id_fkey";
17566
- columns: ["customer_membership_id"];
17567
- isOneToOne: false;
17568
- referencedRelation: "booking_customer_memberships";
17569
- referencedColumns: ["id"];
17570
- },
17571
- {
17572
- foreignKeyName: "booking_payments_customer_pass_id_fkey";
17573
- columns: ["customer_pass_id"];
17574
- isOneToOne: false;
17575
- referencedRelation: "booking_customer_passes";
17576
- referencedColumns: ["id"];
17577
- },
17578
- {
17579
- foreignKeyName: "booking_payments_customer_pass_id_fkey";
17580
- columns: ["customer_pass_id"];
18401
+ foreignKeyName: "waitlist_holds_event_occurrence_id_fkey";
18402
+ columns: ["event_occurrence_id"];
17581
18403
  isOneToOne: false;
17582
- referencedRelation: "booking_customer_passes_list_view";
18404
+ referencedRelation: "event_occurrences";
17583
18405
  referencedColumns: ["id"];
17584
18406
  },
17585
18407
  {
17586
- foreignKeyName: "booking_payments_discount_code_id_fkey";
17587
- columns: ["discount_code_id"];
18408
+ foreignKeyName: "waitlist_holds_event_series_site_fk";
18409
+ columns: ["event_series_id", "site_id"];
17588
18410
  isOneToOne: false;
17589
- referencedRelation: "booking_discount_codes";
17590
- referencedColumns: ["id"];
18411
+ referencedRelation: "event_series";
18412
+ referencedColumns: ["id", "site_id"];
17591
18413
  },
17592
18414
  {
17593
- foreignKeyName: "booking_payments_discount_code_id_fkey";
17594
- columns: ["discount_code_id"];
18415
+ foreignKeyName: "waitlist_holds_site_id_fkey";
18416
+ columns: ["site_id"];
17595
18417
  isOneToOne: false;
17596
- referencedRelation: "discount_codes";
18418
+ referencedRelation: "sites";
17597
18419
  referencedColumns: ["id"];
17598
18420
  },
17599
18421
  {
17600
- foreignKeyName: "booking_payments_event_attendee_id_fkey";
17601
- columns: ["event_attendee_id"];
18422
+ foreignKeyName: "waitlist_holds_waitlist_entry_id_fkey";
18423
+ columns: ["waitlist_entry_id"];
17602
18424
  isOneToOne: false;
17603
- referencedRelation: "event_attendees";
18425
+ referencedRelation: "waitlist_entries";
17604
18426
  referencedColumns: ["id"];
17605
18427
  },
17606
18428
  {
17607
- foreignKeyName: "booking_payments_site_id_fkey";
17608
- columns: ["site_id"];
18429
+ foreignKeyName: "waitlist_holds_waitlist_entry_id_fkey";
18430
+ columns: ["waitlist_entry_id"];
17609
18431
  isOneToOne: false;
17610
- referencedRelation: "sites";
18432
+ referencedRelation: "waitlist_entries_canonical";
17611
18433
  referencedColumns: ["id"];
17612
18434
  }
17613
18435
  ];
@@ -17800,6 +18622,18 @@ export type Database = {
17800
18622
  outcome: string;
17801
18623
  }[];
17802
18624
  };
18625
+ apply_dated_offering_course_contract_backfill_v1_atomic: {
18626
+ Args: {
18627
+ p_course_id: string;
18628
+ p_event_series_id: string;
18629
+ p_operation: string;
18630
+ p_row_id: string;
18631
+ p_site_id: string;
18632
+ };
18633
+ Returns: {
18634
+ outcome: string;
18635
+ }[];
18636
+ };
17803
18637
  apply_dated_offering_course_data_backfill_v1_atomic: {
17804
18638
  Args: {
17805
18639
  p_attendee_id?: string;
@@ -17831,6 +18665,14 @@ export type Database = {
17831
18665
  outcome: string;
17832
18666
  }[];
17833
18667
  };
18668
+ apply_event_series_page_authority: {
18669
+ Args: {
18670
+ p_command: Json;
18671
+ p_site_id: string;
18672
+ p_user_id: string;
18673
+ };
18674
+ Returns: Json;
18675
+ };
17834
18676
  apply_newsletter_subscriber_rectification: {
17835
18677
  Args: {
17836
18678
  audit_actor_user_id: string;
@@ -18085,10 +18927,6 @@ export type Database = {
18085
18927
  participant_participation_id: string;
18086
18928
  }[];
18087
18929
  };
18088
- backfill_order_item_attendee_reservations: {
18089
- Args: never;
18090
- Returns: number;
18091
- };
18092
18930
  begin_site_billing_transition_attempt_atomic: {
18093
18931
  Args: {
18094
18932
  p_billing_user_id?: string;
@@ -18277,6 +19115,20 @@ export type Database = {
18277
19115
  stateless_rows: number;
18278
19116
  }[];
18279
19117
  };
19118
+ cancel_dated_offering_occurrence_attendance_v2_atomic: {
19119
+ Args: {
19120
+ p_event_series_id: string;
19121
+ p_now: string;
19122
+ p_occurrence_id: string;
19123
+ p_site_id: string;
19124
+ };
19125
+ Returns: {
19126
+ attendance_rows: number;
19127
+ outcome: string;
19128
+ stateful_rows: number;
19129
+ stateless_rows: number;
19130
+ }[];
19131
+ };
18280
19132
  checkout_course_atomic: {
18281
19133
  Args: {
18282
19134
  p_course_id: string;
@@ -18307,6 +19159,22 @@ export type Database = {
18307
19159
  site_id: string;
18308
19160
  }[];
18309
19161
  };
19162
+ claim_dated_offering_non_cash_projections_v2_atomic: {
19163
+ Args: {
19164
+ p_claim_ttl?: unknown;
19165
+ p_limit?: number;
19166
+ p_now: string;
19167
+ };
19168
+ Returns: {
19169
+ claim_token: string;
19170
+ customer_id: string;
19171
+ enrollment_id: string;
19172
+ event_series_id: string;
19173
+ payment_method: string;
19174
+ pricing_option_id: string;
19175
+ site_id: string;
19176
+ }[];
19177
+ };
18310
19178
  claim_dated_offering_waitlist_capacity_effects_v1_atomic: {
18311
19179
  Args: {
18312
19180
  p_claim_ttl?: unknown;
@@ -18322,6 +19190,22 @@ export type Database = {
18322
19190
  site_id: string;
18323
19191
  }[];
18324
19192
  };
19193
+ claim_dated_offering_waitlist_capacity_effects_v2_atomic: {
19194
+ Args: {
19195
+ p_claim_ttl?: unknown;
19196
+ p_limit?: number;
19197
+ p_now: string;
19198
+ };
19199
+ Returns: {
19200
+ claim_token: string;
19201
+ course_id: string;
19202
+ effect_id: string;
19203
+ event_series_id: string;
19204
+ reason: string;
19205
+ seats_delta: number;
19206
+ site_id: string;
19207
+ }[];
19208
+ };
18325
19209
  claim_due_appointment_payment_requests: {
18326
19210
  Args: {
18327
19211
  p_claim_ttl_seconds?: number;
@@ -18450,13 +19334,6 @@ export type Database = {
18450
19334
  };
18451
19335
  Returns: Json;
18452
19336
  };
18453
- classify_order_item_attendee_reservations: {
18454
- Args: never;
18455
- Returns: {
18456
- classification: string;
18457
- row_count: number;
18458
- }[];
18459
- };
18460
19337
  commit_authoritative_page_surface_draft_version: {
18461
19338
  Args: {
18462
19339
  p_data: Json;
@@ -18515,7 +19392,65 @@ export type Database = {
18515
19392
  version: number;
18516
19393
  }[];
18517
19394
  };
18518
- commit_dated_offering_whole_series_registration_v1_atomic: {
19395
+ commit_dated_offering_whole_series_registration_v1_atomic: {
19396
+ Args: {
19397
+ p_course_id: string;
19398
+ p_customer_display_name?: string;
19399
+ p_customer_email_normalized?: string;
19400
+ p_customer_id: string;
19401
+ p_customer_membership_id?: string;
19402
+ p_customer_phone?: string;
19403
+ p_form_submission_json?: Json;
19404
+ p_idempotency_key: string;
19405
+ p_metadata?: Json;
19406
+ p_now?: string;
19407
+ p_payment_method?: string;
19408
+ p_pricing_option_id?: string;
19409
+ p_site_id: string;
19410
+ };
19411
+ Returns: {
19412
+ attendance_occurrences_included: number;
19413
+ attendance_rows_created: number;
19414
+ attendance_rows_existing_verified: number;
19415
+ customer_membership_id: string;
19416
+ enrollment_id: string;
19417
+ non_cash_projection_claim_token: string;
19418
+ participant_id: string;
19419
+ participant_participation_id: string;
19420
+ payment_method: string;
19421
+ replayed: boolean;
19422
+ }[];
19423
+ };
19424
+ commit_dated_offering_whole_series_registration_v2_atomic: {
19425
+ Args: {
19426
+ p_customer_display_name?: string;
19427
+ p_customer_email_normalized?: string;
19428
+ p_customer_id: string;
19429
+ p_customer_membership_id?: string;
19430
+ p_customer_phone?: string;
19431
+ p_event_series_id: string;
19432
+ p_form_submission_json?: Json;
19433
+ p_idempotency_key: string;
19434
+ p_metadata?: Json;
19435
+ p_now?: string;
19436
+ p_payment_method?: string;
19437
+ p_pricing_option_id?: string;
19438
+ p_site_id: string;
19439
+ };
19440
+ Returns: {
19441
+ attendance_occurrences_included: number;
19442
+ attendance_rows_created: number;
19443
+ attendance_rows_existing_verified: number;
19444
+ customer_membership_id: string;
19445
+ enrollment_id: string;
19446
+ non_cash_projection_claim_token: string;
19447
+ participant_id: string;
19448
+ participant_participation_id: string;
19449
+ payment_method: string;
19450
+ replayed: boolean;
19451
+ }[];
19452
+ };
19453
+ commit_dated_offering_whole_series_waitlist_claim_v1_atomic: {
18519
19454
  Args: {
18520
19455
  p_course_id: string;
18521
19456
  p_customer_display_name?: string;
@@ -18530,6 +19465,8 @@ export type Database = {
18530
19465
  p_payment_method?: string;
18531
19466
  p_pricing_option_id?: string;
18532
19467
  p_site_id: string;
19468
+ p_waitlist_entry_id: string;
19469
+ p_waitlist_hold_id: string;
18533
19470
  };
18534
19471
  Returns: {
18535
19472
  attendance_occurrences_included: number;
@@ -18544,14 +19481,14 @@ export type Database = {
18544
19481
  replayed: boolean;
18545
19482
  }[];
18546
19483
  };
18547
- commit_dated_offering_whole_series_waitlist_claim_v1_atomic: {
19484
+ commit_dated_offering_whole_series_waitlist_claim_v2_atomic: {
18548
19485
  Args: {
18549
- p_course_id: string;
18550
19486
  p_customer_display_name?: string;
18551
19487
  p_customer_email_normalized?: string;
18552
19488
  p_customer_id: string;
18553
19489
  p_customer_membership_id?: string;
18554
19490
  p_customer_phone?: string;
19491
+ p_event_series_id: string;
18555
19492
  p_form_submission_json?: Json;
18556
19493
  p_idempotency_key: string;
18557
19494
  p_metadata?: Json;
@@ -18587,6 +19524,19 @@ export type Database = {
18587
19524
  hold_id: string;
18588
19525
  }[];
18589
19526
  };
19527
+ compensate_dated_offering_waitlist_checkout_v2_atomic: {
19528
+ Args: {
19529
+ p_event_series_id: string;
19530
+ p_hold_id: string;
19531
+ p_now?: string;
19532
+ p_site_id: string;
19533
+ };
19534
+ Returns: {
19535
+ compensation_outcome: string;
19536
+ enrollment_id: string;
19537
+ hold_id: string;
19538
+ }[];
19539
+ };
18590
19540
  complete_demo_lifecycle_job_lease: {
18591
19541
  Args: {
18592
19542
  p_error_message?: string;
@@ -18837,6 +19787,23 @@ export type Database = {
18837
19787
  used_capacity: number;
18838
19788
  }[];
18839
19789
  };
19790
+ dated_offering_whole_series_capacity_snapshot_v2: {
19791
+ Args: {
19792
+ p_event_series_id: string;
19793
+ p_now?: string;
19794
+ p_site_id: string;
19795
+ };
19796
+ Returns: {
19797
+ active_checkout_holds: number;
19798
+ active_waitlist_holds: number;
19799
+ available_capacity: number;
19800
+ capacity: number;
19801
+ confirmed_registrations: number;
19802
+ is_unbounded: boolean;
19803
+ legacy_pending_registrations: number;
19804
+ used_capacity: number;
19805
+ }[];
19806
+ };
18840
19807
  delete_event_occurrence_if_unregistered: {
18841
19808
  Args: {
18842
19809
  p_occurrence_id: string;
@@ -18845,6 +19812,29 @@ export type Database = {
18845
19812
  };
18846
19813
  Returns: string;
18847
19814
  };
19815
+ delete_native_event_series_page_v1_atomic: {
19816
+ Args: {
19817
+ p_actor_user_id: string;
19818
+ p_event_series_id: string;
19819
+ p_now: string;
19820
+ p_site_id: string;
19821
+ };
19822
+ Returns: {
19823
+ outcome: string;
19824
+ }[];
19825
+ };
19826
+ delete_native_whole_series_offering_v1_atomic: {
19827
+ Args: {
19828
+ p_actor_user_id: string;
19829
+ p_event_offering_id: string;
19830
+ p_now: string;
19831
+ p_site_id: string;
19832
+ };
19833
+ Returns: {
19834
+ outcome: string;
19835
+ runs_count: number;
19836
+ }[];
19837
+ };
18848
19838
  discard_page_surface_draft_content_guarded: {
18849
19839
  Args: {
18850
19840
  p_expected_draft_updated_at: string;
@@ -18866,6 +19856,17 @@ export type Database = {
18866
19856
  disposed_holds: number;
18867
19857
  }[];
18868
19858
  };
19859
+ dispose_dated_offering_whole_series_waitlist_v2_atomic: {
19860
+ Args: {
19861
+ p_event_series_id: string;
19862
+ p_now: string;
19863
+ p_site_id: string;
19864
+ };
19865
+ Returns: {
19866
+ entries_cancelled: number;
19867
+ holds_cancelled: number;
19868
+ }[];
19869
+ };
18869
19870
  enqueue_participant_roster_assertion_job: {
18870
19871
  Args: {
18871
19872
  p_customer_id: string;
@@ -18970,6 +19971,20 @@ export type Database = {
18970
19971
  outcome: string;
18971
19972
  }[];
18972
19973
  };
19974
+ expire_dated_offering_whole_series_hold_v2_atomic: {
19975
+ Args: {
19976
+ p_event_series_id: string;
19977
+ p_hold_id: string;
19978
+ p_now?: string;
19979
+ p_site_id: string;
19980
+ };
19981
+ Returns: {
19982
+ enrollment_id: string;
19983
+ enrollment_outcome: string;
19984
+ hold_id: string;
19985
+ outcome: string;
19986
+ }[];
19987
+ };
18973
19988
  expire_demo_claim_atomic: {
18974
19989
  Args: {
18975
19990
  p_claim_id: string;
@@ -19027,6 +20042,32 @@ export type Database = {
19027
20042
  outcome: string;
19028
20043
  }[];
19029
20044
  };
20045
+ finalize_dated_offering_whole_series_checkout_v2_atomic: {
20046
+ Args: {
20047
+ p_checkout_session_ref: string;
20048
+ p_enrollment_id: string;
20049
+ p_event_series_id: string;
20050
+ p_hold_id: string;
20051
+ p_now?: string;
20052
+ p_order_item_id: string;
20053
+ p_settled_at: string;
20054
+ p_settlement_charge_ref?: string;
20055
+ p_settlement_evidence_ref: string;
20056
+ p_settlement_identity_kind: string;
20057
+ p_settlement_identity_ref: string;
20058
+ p_settlement_source: string;
20059
+ p_site_id: string;
20060
+ p_stripe_account_ref: string;
20061
+ };
20062
+ Returns: {
20063
+ attendance_occurrences_included: number;
20064
+ attendance_rows_created: number;
20065
+ attendance_rows_existing_verified: number;
20066
+ enrollment_id: string;
20067
+ hold_id: string;
20068
+ outcome: string;
20069
+ }[];
20070
+ };
19030
20071
  finalize_event_series_content_split: {
19031
20072
  Args: {
19032
20073
  p_event_offering_id: string;
@@ -19090,6 +20131,12 @@ export type Database = {
19090
20131
  };
19091
20132
  Returns: string;
19092
20133
  };
20134
+ get_event_series_waitlist_position: {
20135
+ Args: {
20136
+ p_enrollment_id: string;
20137
+ };
20138
+ Returns: number;
20139
+ };
19093
20140
  get_event_ticket_type_confirmed_attendee_counts: {
19094
20141
  Args: {
19095
20142
  ticket_type_ids: string[];
@@ -19158,6 +20205,19 @@ export type Database = {
19158
20205
  };
19159
20206
  Returns: undefined;
19160
20207
  };
20208
+ initialize_native_course_offering_page: {
20209
+ Args: {
20210
+ p_completion_plan: Json;
20211
+ p_content_entry_id: string;
20212
+ p_course_program_id: string;
20213
+ p_event_series_id: string;
20214
+ p_initialization_command_id: string;
20215
+ p_intent_fingerprint: string;
20216
+ p_site_id: string;
20217
+ p_user_id: string;
20218
+ };
20219
+ Returns: Json;
20220
+ };
19161
20221
  is_complete_palette_colors: {
19162
20222
  Args: {
19163
20223
  p_colors: Json;
@@ -19220,6 +20280,12 @@ export type Database = {
19220
20280
  start_at: string;
19221
20281
  }[];
19222
20282
  };
20283
+ load_ordinary_page_block_draft_candidate: {
20284
+ Args: {
20285
+ p_block_id: string;
20286
+ };
20287
+ Returns: Json;
20288
+ };
19223
20289
  mark_participant_roster_assertion_job_failed: {
19224
20290
  Args: {
19225
20291
  p_attempt_count: number;
@@ -19266,6 +20332,21 @@ export type Database = {
19266
20332
  included: number;
19267
20333
  }[];
19268
20334
  };
20335
+ materialize_dated_offering_whole_series_attendance_v2: {
20336
+ Args: {
20337
+ p_customer_id: string;
20338
+ p_enrollment_id: string;
20339
+ p_event_series_id: string;
20340
+ p_now: string;
20341
+ p_occurrence_ids?: string[];
20342
+ p_site_id: string;
20343
+ };
20344
+ Returns: {
20345
+ created: number;
20346
+ existing_verified: number;
20347
+ included: number;
20348
+ }[];
20349
+ };
19269
20350
  move_event_series_to_shared_offering_content: {
19270
20351
  Args: {
19271
20352
  p_event_offering_id: string;
@@ -19513,6 +20594,42 @@ export type Database = {
19513
20594
  pricing_profile_id: string;
19514
20595
  }[];
19515
20596
  };
20597
+ persist_dated_offering_whole_series_config_v2_atomic: {
20598
+ Args: {
20599
+ p_actor_user_id: string;
20600
+ p_completion_plan: Json;
20601
+ p_mode: string;
20602
+ p_now: string;
20603
+ p_page_authority_command: Json;
20604
+ p_pricing: Json;
20605
+ p_series_config: Json;
20606
+ p_series_id: string;
20607
+ p_site_id: string;
20608
+ };
20609
+ Returns: {
20610
+ event_series_id: string;
20611
+ page_authority_result: Json;
20612
+ pricing_profile_id: string;
20613
+ }[];
20614
+ };
20615
+ persist_dated_offering_whole_series_config_v3_atomic: {
20616
+ Args: {
20617
+ p_actor_user_id: string;
20618
+ p_completion_plan: Json;
20619
+ p_mode: string;
20620
+ p_now: string;
20621
+ p_page_authority_command: Json;
20622
+ p_pricing: Json;
20623
+ p_series_config: Json;
20624
+ p_series_id: string;
20625
+ p_site_id: string;
20626
+ };
20627
+ Returns: {
20628
+ event_series_id: string;
20629
+ page_authority_result: Json;
20630
+ pricing_profile_id: string;
20631
+ }[];
20632
+ };
19516
20633
  persist_unified_order_atomic: {
19517
20634
  Args: {
19518
20635
  p_credit_cents: number;
@@ -19568,6 +20685,36 @@ export type Database = {
19568
20685
  preparation_outcome: string;
19569
20686
  }[];
19570
20687
  };
20688
+ prepare_dated_offering_whole_series_checkout_v2_atomic: {
20689
+ Args: {
20690
+ p_allow_waitlist_conversion?: boolean;
20691
+ p_audit_ref: string;
20692
+ p_customer_display_name?: string;
20693
+ p_customer_email_normalized?: string;
20694
+ p_customer_id: string;
20695
+ p_customer_phone?: string;
20696
+ p_event_series_id: string;
20697
+ p_form_submission_json?: Json;
20698
+ p_hold_expires_at: string;
20699
+ p_hold_id: string;
20700
+ p_idempotency_key: string;
20701
+ p_metadata?: Json;
20702
+ p_now?: string;
20703
+ p_pricing_option_id?: string;
20704
+ p_quoted_currency: string;
20705
+ p_quoted_unit_amount_cents: number;
20706
+ p_site_id: string;
20707
+ };
20708
+ Returns: {
20709
+ enrollment_id: string;
20710
+ hold_audit_ref: string;
20711
+ hold_expires_at: string;
20712
+ hold_id: string;
20713
+ participant_id: string;
20714
+ participant_participation_id: string;
20715
+ preparation_outcome: string;
20716
+ }[];
20717
+ };
19571
20718
  prepare_dated_offering_whole_series_waitlist_checkout_v1_atomic: {
19572
20719
  Args: {
19573
20720
  p_audit_ref: string;
@@ -19599,6 +20746,37 @@ export type Database = {
19599
20746
  preparation_outcome: string;
19600
20747
  }[];
19601
20748
  };
20749
+ prepare_dated_offering_whole_series_waitlist_checkout_v2_atomic: {
20750
+ Args: {
20751
+ p_audit_ref: string;
20752
+ p_customer_display_name?: string;
20753
+ p_customer_email_normalized?: string;
20754
+ p_customer_id: string;
20755
+ p_customer_phone?: string;
20756
+ p_event_series_id: string;
20757
+ p_form_submission_json?: Json;
20758
+ p_hold_expires_at: string;
20759
+ p_hold_id: string;
20760
+ p_idempotency_key: string;
20761
+ p_metadata?: Json;
20762
+ p_now?: string;
20763
+ p_pricing_option_id?: string;
20764
+ p_quoted_currency: string;
20765
+ p_quoted_unit_amount_cents: number;
20766
+ p_site_id: string;
20767
+ p_waitlist_entry_id: string;
20768
+ p_waitlist_hold_id: string;
20769
+ };
20770
+ Returns: {
20771
+ enrollment_id: string;
20772
+ hold_audit_ref: string;
20773
+ hold_expires_at: string;
20774
+ hold_id: string;
20775
+ participant_id: string;
20776
+ participant_participation_id: string;
20777
+ preparation_outcome: string;
20778
+ }[];
20779
+ };
19602
20780
  provision_initial_site_theme_authoritative_atomic: {
19603
20781
  Args: {
19604
20782
  p_button_personality_id: string;
@@ -19674,14 +20852,34 @@ export type Database = {
19674
20852
  };
19675
20853
  Returns: Json;
19676
20854
  };
19677
- reactivate_dated_offering_whole_series_registration_v1_atomic: {
20855
+ reactivate_dated_offering_whole_series_registration_v1_atomic: {
20856
+ Args: {
20857
+ p_actor_user_id: string;
20858
+ p_course_id: string;
20859
+ p_enrollment_id: string;
20860
+ p_expected_contract_version: string;
20861
+ p_now: string;
20862
+ p_operation_id: string;
20863
+ p_site_id: string;
20864
+ };
20865
+ Returns: {
20866
+ attendance_occurrences_included: number;
20867
+ attendance_rows_created: number;
20868
+ attendance_rows_existing_verified: number;
20869
+ attendance_rows_reactivated: number;
20870
+ enrollment_id: string;
20871
+ replayed: boolean;
20872
+ }[];
20873
+ };
20874
+ reactivate_dated_offering_whole_series_registration_v2_atomic: {
19678
20875
  Args: {
19679
20876
  p_actor_user_id: string;
19680
- p_course_id: string;
19681
20877
  p_enrollment_id: string;
20878
+ p_event_series_id: string;
19682
20879
  p_expected_contract_version: string;
19683
20880
  p_now: string;
19684
20881
  p_operation_id: string;
20882
+ p_settlement_kind: string;
19685
20883
  p_site_id: string;
19686
20884
  };
19687
20885
  Returns: {
@@ -19760,6 +20958,16 @@ export type Database = {
19760
20958
  isSetofReturn: false;
19761
20959
  };
19762
20960
  };
20961
+ redeem_pass_credits_for_event_attendee: {
20962
+ Args: {
20963
+ p_attendee_id: string;
20964
+ p_credits?: number;
20965
+ p_customer_pass_id: string;
20966
+ p_event_instance_id: string;
20967
+ p_redeemed_at?: string;
20968
+ };
20969
+ Returns: Json;
20970
+ };
19763
20971
  release_dated_offering_whole_series_hold_v1_atomic: {
19764
20972
  Args: {
19765
20973
  p_hold_id: string;
@@ -19774,6 +20982,21 @@ export type Database = {
19774
20982
  outcome: string;
19775
20983
  }[];
19776
20984
  };
20985
+ release_dated_offering_whole_series_hold_v2_atomic: {
20986
+ Args: {
20987
+ p_event_series_id: string;
20988
+ p_hold_id: string;
20989
+ p_now?: string;
20990
+ p_reason: string;
20991
+ p_site_id: string;
20992
+ };
20993
+ Returns: {
20994
+ enrollment_id: string;
20995
+ enrollment_outcome: string;
20996
+ hold_id: string;
20997
+ outcome: string;
20998
+ }[];
20999
+ };
19777
21000
  release_site_invitation_resend_claim: {
19778
21001
  Args: {
19779
21002
  p_actor_user_id: string;
@@ -19947,6 +21170,27 @@ export type Database = {
19947
21170
  revocation_outcome: string;
19948
21171
  }[];
19949
21172
  };
21173
+ revoke_dated_offering_consumed_registration_v2_atomic: {
21174
+ Args: {
21175
+ p_enrollment_id: string;
21176
+ p_event_series_id: string;
21177
+ p_hold_id: string;
21178
+ p_intent: string;
21179
+ p_now: string;
21180
+ p_order_item_id?: string;
21181
+ p_refund_id?: string;
21182
+ p_refunded_amount_cents?: number;
21183
+ p_site_id: string;
21184
+ p_waitlist_effect?: string;
21185
+ };
21186
+ Returns: {
21187
+ audit_event_id: string;
21188
+ course_id: string;
21189
+ enrollment_id: string;
21190
+ hold_id: string;
21191
+ revocation_outcome: string;
21192
+ }[];
21193
+ };
19950
21194
  revoke_dated_offering_non_cash_registration_v1_atomic: {
19951
21195
  Args: {
19952
21196
  p_enrollment_id: string;
@@ -19961,6 +21205,38 @@ export type Database = {
19961
21205
  revocation_outcome: string;
19962
21206
  }[];
19963
21207
  };
21208
+ revoke_dated_offering_non_cash_registration_v2_atomic: {
21209
+ Args: {
21210
+ p_enrollment_id: string;
21211
+ p_event_series_id: string;
21212
+ p_now: string;
21213
+ p_order_item_id: string;
21214
+ p_site_id: string;
21215
+ p_waitlist_effect?: string;
21216
+ };
21217
+ Returns: {
21218
+ course_id: string;
21219
+ enrollment_id: string;
21220
+ revocation_outcome: string;
21221
+ }[];
21222
+ };
21223
+ revoke_historical_whole_series_registration_v1_atomic: {
21224
+ Args: {
21225
+ p_enrollment_id: string;
21226
+ p_event_series_id: string;
21227
+ p_now?: string;
21228
+ p_order_item_id?: string;
21229
+ p_payment_status?: string;
21230
+ p_refund_id?: string;
21231
+ p_refunded_amount_cents?: number;
21232
+ p_site_id: string;
21233
+ p_waitlist_effect?: string;
21234
+ };
21235
+ Returns: {
21236
+ enrollment_id: string;
21237
+ revocation_outcome: string;
21238
+ }[];
21239
+ };
19964
21240
  rollback_dated_offering_shared_v1_for_site_atomic: {
19965
21241
  Args: {
19966
21242
  p_site_id: string;
@@ -20041,6 +21317,21 @@ export type Database = {
20041
21317
  selection_outcome: string;
20042
21318
  }[];
20043
21319
  };
21320
+ select_dated_offering_run_cancellation_settlement_v2_atomic: {
21321
+ Args: {
21322
+ p_enrollment_id: string;
21323
+ p_event_series_id: string;
21324
+ p_note?: string;
21325
+ p_now: string;
21326
+ p_operation_id: string;
21327
+ p_selected_amount_cents?: number;
21328
+ p_settlement_kind: string;
21329
+ p_site_id: string;
21330
+ };
21331
+ Returns: {
21332
+ selection_outcome: string;
21333
+ }[];
21334
+ };
20044
21335
  shorten_dated_offering_whole_series_hold_deadline_v1_atomic: {
20045
21336
  Args: {
20046
21337
  p_expires_at: string;
@@ -20054,6 +21345,20 @@ export type Database = {
20054
21345
  shortened: boolean;
20055
21346
  }[];
20056
21347
  };
21348
+ shorten_dated_offering_whole_series_hold_deadline_v2_atomic: {
21349
+ Args: {
21350
+ p_event_series_id: string;
21351
+ p_expires_at: string;
21352
+ p_hold_id: string;
21353
+ p_now?: string;
21354
+ p_site_id: string;
21355
+ };
21356
+ Returns: {
21357
+ expires_at: string;
21358
+ hold_id: string;
21359
+ shortened: boolean;
21360
+ }[];
21361
+ };
20057
21362
  site_allows_person_record_mode: {
20058
21363
  Args: {
20059
21364
  p_record_mode: string;
@@ -20096,6 +21401,15 @@ export type Database = {
20096
21401
  };
20097
21402
  Returns: undefined;
20098
21403
  };
21404
+ teardown_native_draft_course_offering_page: {
21405
+ Args: {
21406
+ p_content_entry_id: string;
21407
+ p_course_program_id: string;
21408
+ p_site_id: string;
21409
+ p_user_id: string;
21410
+ };
21411
+ Returns: string;
21412
+ };
20099
21413
  transactional_email_claim_jobs: {
20100
21414
  Args: {
20101
21415
  p_limit: number;
@@ -20201,6 +21515,23 @@ export type Database = {
20201
21515
  transition_outcome: string;
20202
21516
  }[];
20203
21517
  };
21518
+ transition_ordinary_page_block_draft: {
21519
+ Args: {
21520
+ p_block_id: string;
21521
+ p_data?: Json;
21522
+ p_expected_draft_data: Json;
21523
+ p_expected_draft_updated_at: string;
21524
+ p_expected_draft_version_id: string;
21525
+ p_expected_published_data: Json;
21526
+ p_expected_published_updated_at: string;
21527
+ p_expected_published_version_id: string;
21528
+ p_page_id: string;
21529
+ p_site_id: string;
21530
+ p_transition: string;
21531
+ p_user_id: string;
21532
+ };
21533
+ Returns: Json;
21534
+ };
20204
21535
  try_acquire_email_rate_gate: {
20205
21536
  Args: {
20206
21537
  p_interval_ms: number;
@@ -20350,6 +21681,80 @@ export type Database = {
20350
21681
  created_at: string;
20351
21682
  email_delivery_status: string;
20352
21683
  event_occurrence_id: string | null;
21684
+ event_series_id: string | null;
21685
+ expired_at: string | null;
21686
+ expires_at: string;
21687
+ id: string;
21688
+ last_emailed_at: string | null;
21689
+ metadata: Json;
21690
+ reserved_at: string;
21691
+ site_id: string;
21692
+ status: string;
21693
+ subject_kind: string;
21694
+ token_public_id: string;
21695
+ token_secret_hash: string;
21696
+ updated_at: string;
21697
+ waitlist_entry_id: string;
21698
+ }[];
21699
+ SetofOptions: {
21700
+ from: "*";
21701
+ to: "waitlist_holds";
21702
+ isOneToOne: false;
21703
+ isSetofReturn: true;
21704
+ };
21705
+ };
21706
+ waitlist_allocate_whole_series_holds_v2: {
21707
+ Args: {
21708
+ p_course_id: string;
21709
+ p_event_series_id: string;
21710
+ p_hold_payloads?: Json;
21711
+ p_site_id: string;
21712
+ };
21713
+ Returns: {
21714
+ attendance_mode: string | null;
21715
+ cancelled_at: string | null;
21716
+ consumed_at: string | null;
21717
+ course_id: string | null;
21718
+ created_at: string;
21719
+ email_delivery_status: string;
21720
+ event_occurrence_id: string | null;
21721
+ event_series_id: string | null;
21722
+ expired_at: string | null;
21723
+ expires_at: string;
21724
+ id: string;
21725
+ last_emailed_at: string | null;
21726
+ metadata: Json;
21727
+ reserved_at: string;
21728
+ site_id: string;
21729
+ status: string;
21730
+ subject_kind: string;
21731
+ token_public_id: string;
21732
+ token_secret_hash: string;
21733
+ updated_at: string;
21734
+ waitlist_entry_id: string;
21735
+ }[];
21736
+ SetofOptions: {
21737
+ from: "*";
21738
+ to: "waitlist_holds";
21739
+ isOneToOne: false;
21740
+ isSetofReturn: true;
21741
+ };
21742
+ };
21743
+ waitlist_allocate_whole_series_holds_v3: {
21744
+ Args: {
21745
+ p_event_series_id: string;
21746
+ p_hold_payloads?: Json;
21747
+ p_site_id: string;
21748
+ };
21749
+ Returns: {
21750
+ attendance_mode: string | null;
21751
+ cancelled_at: string | null;
21752
+ consumed_at: string | null;
21753
+ course_id: string | null;
21754
+ created_at: string;
21755
+ email_delivery_status: string;
21756
+ event_occurrence_id: string | null;
21757
+ event_series_id: string | null;
20353
21758
  expired_at: string | null;
20354
21759
  expires_at: string;
20355
21760
  id: string;
@@ -20417,6 +21822,44 @@ export type Database = {
20417
21822
  hold_waitlist_entry_id: string;
20418
21823
  }[];
20419
21824
  };
21825
+ waitlist_expire_due_holds_v2: {
21826
+ Args: {
21827
+ p_hold_id?: string;
21828
+ p_limit?: number;
21829
+ p_now?: string;
21830
+ };
21831
+ Returns: {
21832
+ entry_attendance_mode: string;
21833
+ entry_course_id: string;
21834
+ entry_customer_email: string;
21835
+ entry_customer_id: string;
21836
+ entry_customer_name: string;
21837
+ entry_customer_phone: string;
21838
+ entry_event_occurrence_id: string;
21839
+ entry_event_series_id: string;
21840
+ entry_form_snapshot: Json;
21841
+ entry_id: string;
21842
+ entry_joined_at: string;
21843
+ entry_metadata: Json;
21844
+ entry_site_id: string;
21845
+ entry_source: string;
21846
+ entry_status: string;
21847
+ entry_subject_kind: string;
21848
+ hold_attendance_mode: string;
21849
+ hold_course_id: string;
21850
+ hold_email_delivery_status: string;
21851
+ hold_event_occurrence_id: string;
21852
+ hold_event_series_id: string;
21853
+ hold_expires_at: string;
21854
+ hold_id: string;
21855
+ hold_site_id: string;
21856
+ hold_status: string;
21857
+ hold_subject_kind: string;
21858
+ hold_token_public_id: string;
21859
+ hold_token_secret_hash: string;
21860
+ hold_waitlist_entry_id: string;
21861
+ }[];
21862
+ };
20420
21863
  waitlist_subject_capacity_snapshot: {
20421
21864
  Args: {
20422
21865
  p_attendance_mode?: string;
@@ -20434,6 +21877,35 @@ export type Database = {
20434
21877
  occupied_seats: number;
20435
21878
  }[];
20436
21879
  };
21880
+ waitlist_whole_series_capacity_snapshot_v2: {
21881
+ Args: {
21882
+ p_course_id: string;
21883
+ p_event_series_id: string;
21884
+ p_now?: string;
21885
+ p_site_id: string;
21886
+ };
21887
+ Returns: {
21888
+ active_hold_seats: number;
21889
+ available_seats: number;
21890
+ capacity: number;
21891
+ is_unbounded: boolean;
21892
+ occupied_seats: number;
21893
+ }[];
21894
+ };
21895
+ waitlist_whole_series_capacity_snapshot_v3: {
21896
+ Args: {
21897
+ p_event_series_id: string;
21898
+ p_now?: string;
21899
+ p_site_id: string;
21900
+ };
21901
+ Returns: {
21902
+ active_hold_seats: number;
21903
+ available_seats: number;
21904
+ capacity: number;
21905
+ is_unbounded: boolean;
21906
+ occupied_seats: number;
21907
+ }[];
21908
+ };
20437
21909
  };
20438
21910
  Enums: {
20439
21911
  admin_role: "viewer" | "editor" | "org_admin" | "superadmin";