@riverbankcms/sdk 0.107.0 → 0.109.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 (256) hide show
  1. package/README.md +21 -1
  2. package/dist/{PreviewEditorSidebar-DpAbAl08.mjs → PreviewEditorSidebar-DWqwfy3_.mjs} +48 -28
  3. package/dist/{PreviewEditorUI-O7cn6Xxv.mjs → PreviewEditorUI-B7OL4sfR.mjs} +10 -9
  4. package/dist/{PreviewQueryProvider-D0tnKl0t.mjs → PreviewQueryProvider-D0y2l8JN.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-CVB7urtl.mjs → SdkPreviewModeRuntime-D8Gt9Gbe.mjs} +633 -220
  6. package/dist/{SiteChromeCustomizeContext-C_sizso-.mjs → SiteChromeCustomizeContext-DUpalEdL.mjs} +5764 -1556
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +15383 -11388
  8. package/dist/_dts/api/src/blocks.d.ts +41 -7
  9. package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
  10. package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
  11. package/dist/_dts/api/src/bookingRecords.d.ts +177 -127
  12. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
  13. package/dist/_dts/api/src/cache-tags.d.ts +3 -0
  14. package/dist/_dts/api/src/common/envelope.d.ts +7 -0
  15. package/dist/_dts/api/src/contentRuntime.d.ts +19 -1
  16. package/dist/_dts/api/src/courses.d.ts +1 -0
  17. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
  18. package/dist/_dts/api/src/endpoints.d.ts +134 -0
  19. package/dist/_dts/api/src/footer-settings.d.ts +1 -0
  20. package/dist/_dts/api/src/footerSettings.d.ts +8 -0
  21. package/dist/_dts/api/src/index.d.ts +7 -4
  22. package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
  23. package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
  24. package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
  25. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
  26. package/dist/_dts/api/src/sdkContracts.d.ts +309 -1
  27. package/dist/_dts/api/src/siteBanner.d.ts +2 -2
  28. package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
  29. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +144 -60
  30. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +35 -1
  31. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +74 -28
  32. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
  33. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
  34. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
  35. package/dist/_dts/blocks/src/index.d.ts +1 -1
  36. package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
  37. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  38. package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
  39. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
  40. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
  41. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +1 -22
  42. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +3 -0
  43. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -22
  44. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -0
  45. package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
  46. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
  47. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
  48. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +3 -0
  49. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
  50. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
  51. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
  52. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
  53. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
  54. package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
  55. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  56. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
  57. package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
  58. package/dist/_dts/blocks/src/system/fields/ctas.d.ts +8 -0
  59. package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
  60. package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
  61. package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
  62. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +33 -2
  63. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
  64. package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
  66. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
  67. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  68. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
  69. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
  70. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
  71. package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
  72. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
  73. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
  74. package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
  75. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
  76. package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
  77. package/dist/_dts/content-editor/src/index.d.ts +2 -0
  78. package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
  79. package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
  80. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
  81. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
  82. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
  83. package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
  84. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  85. package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
  86. package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
  87. package/dist/_dts/content-model/src/index.d.ts +3 -0
  88. package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
  89. package/dist/_dts/core/src/branded.d.ts +3 -0
  90. package/dist/_dts/core/src/editor-state.d.ts +4 -0
  91. package/dist/_dts/core/src/footer-composition.d.ts +143 -0
  92. package/dist/_dts/core/src/index.d.ts +2 -0
  93. package/dist/_dts/core/src/public-profile.d.ts +73 -0
  94. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +221 -205
  95. package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
  96. package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
  97. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
  98. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
  99. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
  100. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
  101. package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
  102. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  103. package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
  104. package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
  105. package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
  106. package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
  107. package/dist/_dts/path-utils/src/index.d.ts +5 -0
  108. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
  109. package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
  110. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
  111. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  112. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
  113. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
  114. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
  115. package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
  116. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
  117. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
  118. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
  119. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
  120. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
  121. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
  122. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
  123. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
  124. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
  125. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
  126. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
  127. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
  128. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
  129. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
  130. package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
  131. package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
  132. package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
  133. package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
  134. package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
  135. package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
  136. package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
  137. package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
  138. package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
  139. package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
  140. package/dist/_dts/sdk/src/client/management/types.d.ts +58 -20
  141. package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
  142. package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
  143. package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
  144. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
  145. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
  146. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
  147. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  148. package/dist/_dts/sdk/src/version.d.ts +1 -1
  149. package/dist/_dts/site-commands/src/commands.d.ts +900 -827
  150. package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
  151. package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
  152. package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
  153. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
  154. package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
  155. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  156. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
  157. package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
  158. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +45 -33
  159. package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
  160. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
  161. package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
  162. package/dist/_dts/theme-core/src/buttons/types.d.ts +104 -86
  163. package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
  164. package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
  165. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  166. package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
  167. package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
  168. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  169. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +117 -150
  170. package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
  171. package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
  172. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
  173. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
  174. package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
  175. package/dist/_dts/theme-core/src/schema.d.ts +1264 -138
  176. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  177. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
  178. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
  179. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
  180. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
  181. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +29 -8
  182. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
  183. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
  184. package/dist/cli/index.mjs +68552 -66955
  185. package/dist/cli/init-docs/content/cli-reference.md +50 -7
  186. package/dist/cli/init-docs/content/content-management.md +7 -4
  187. package/dist/cli/init-docs/content/workflow-publish.md +5 -1
  188. package/dist/client/{DiscountCodeDisclosure-BwGkvmVH.mjs → DiscountCodeDisclosure-DU1ygxU2.mjs} +1 -1
  189. package/dist/client/{EventCombined.client-JnWE6Hzc.mjs → EventCombined.client-DB5zagCo.mjs} +3 -3
  190. package/dist/client/{EventListing.client-DQewc_kg.mjs → EventListing.client-CTX9JHBL.mjs} +2 -2
  191. package/dist/client/{LeafletStaticMap-DPAU3SFt.mjs → LeafletStaticMap-BYImhgiB.mjs} +1 -1
  192. package/dist/client/{MagicLinkForm-D4kpWCbW.mjs → MagicLinkForm-CRkw_M3l.mjs} +2 -2
  193. package/dist/client/{StepIndicator-CBlkb4rA.mjs → StepIndicator-BnmVBJJh.mjs} +2 -2
  194. package/dist/client/{accordion-DAIBVpTS.mjs → accordion-CeGreumd.mjs} +1 -1
  195. package/dist/client/{bookingForm-DZ-4l5_1.mjs → bookingForm-CSzFNrpN.mjs} +6 -6
  196. package/dist/client/bookings.mjs +637 -328
  197. package/dist/client/{buttons-DJgynGHQ.mjs → buttons-DoFV7KDL.mjs} +618 -306
  198. package/dist/client/{carousel-D-SLfX8r.mjs → carousel-B2jDtogf.mjs} +1 -1
  199. package/dist/client/{cart-CEgbgJhX.mjs → cart-D-jZ-vaY.mjs} +3 -3
  200. package/dist/client/{checkout-CXWrCRAA.mjs → checkout-Dza-LA7N.mjs} +3 -3
  201. package/dist/client/client.mjs +2497 -1216
  202. package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-CrgzoXsm.mjs} +1 -30
  203. package/dist/client/{courseRegistration-DVmLrRVz.mjs → courseRegistration-TYkNychb.mjs} +7 -7
  204. package/dist/client/{eventCalendar-DCuyPY_c.mjs → eventCalendar-BI_90SsT.mjs} +5 -5
  205. package/dist/client/{eventCombined-kP2CA2D4.mjs → eventCombined-mNrpryE9.mjs} +2 -2
  206. package/dist/client/{eventDetails-DU0LeF5e.mjs → eventDetails-D4GVlCIY.mjs} +3 -3
  207. package/dist/client/{eventListing-CcHF87BI.mjs → eventListing-YhKN018y.mjs} +2 -2
  208. package/dist/client/{eventRegistration-DJnR0yFH.mjs → eventRegistration-CdHGtilr.mjs} +7 -7
  209. package/dist/client/foregroundContract-xICPq59x.mjs +31 -0
  210. package/dist/client/{form-CH1lCusH.mjs → form-AcAL45rA.mjs} +2 -2
  211. package/dist/client/{headerSection-CBPFZoku.mjs → headerSection-uEC52ueD.mjs} +3 -3
  212. package/dist/client/hooks.mjs +1249 -841
  213. package/dist/client/{locationMap-Cx1hBg5n.mjs → locationMap-_wJDSUYe.mjs} +3 -3
  214. package/dist/client/{media-DHtSxS5V.mjs → media-BK0O3b-U.mjs} +3 -2
  215. package/dist/client/{newsletterForm-1ZL_ti9u.mjs → newsletterForm-DrArsb2B.mjs} +2 -2
  216. package/dist/client/{pricing-BIbzmV0G.mjs → pricing-BSYVghwo.mjs} +1 -1
  217. package/dist/client/{productDetail-BTh5gHBV.mjs → productDetail-Dyk90sMs.mjs} +3 -3
  218. package/dist/client/{productList-Cc7OMrqN.mjs → productList-BCKThwAI.mjs} +3 -3
  219. package/dist/client/{propsDecoder-oR-M-ISN.mjs → propsDecoder-CkXxkdSR.mjs} +96 -33
  220. package/dist/client/rendering/client.mjs +1278 -523
  221. package/dist/client/rendering/islands.mjs +19 -19
  222. package/dist/client/rendering.mjs +2308 -1028
  223. package/dist/client/{shop-CQ_YbCnn.mjs → shop-DeltVH10.mjs} +6 -6
  224. package/dist/client/{shop-commerce-BM-AoD3M.mjs → shop-commerce-BD9Jsm2Z.mjs} +6 -6
  225. package/dist/client/{shop-commerce-store-DFMQhU5p.mjs → shop-commerce-store-CmXD6FDS.mjs} +1 -1
  226. package/dist/client/{shopShared-D0SKO2Cu.mjs → shopShared-B8v-lH_F.mjs} +2 -2
  227. package/dist/client/{useDiscountCodeUi-CrG4_ARt.mjs → useDiscountCodeUi-DbWJN8ld.mjs} +1 -1
  228. package/dist/client/{useEventFilters-CxK8Fekl.mjs → useEventFilters-EJIMUnqT.mjs} +46 -69
  229. package/dist/client/{usePolling-jcVryNgZ.mjs → usePolling-Cmh14fc7.mjs} +2 -2
  230. package/dist/preview-next/before-render.mjs +213 -0
  231. package/dist/preview-next/client/runtime.mjs +4 -4
  232. package/dist/preview-next/middleware.mjs +213 -0
  233. package/dist/{previewAuthStore-BPcJPzdz.mjs → previewAuthStore-CTO7CRPk.mjs} +213 -0
  234. package/dist/{sdk-runtime-C39Rsk-x.mjs → sdk-runtime-Dou0GAav.mjs} +2 -2
  235. package/dist/{separator-BoMSQnsP.mjs → separator-CI5wZNXT.mjs} +1 -1
  236. package/dist/server/components.mjs +2370 -1132
  237. package/dist/server/config-validation.mjs +1256 -842
  238. package/dist/server/config.mjs +1256 -843
  239. package/dist/server/data.mjs +1249 -841
  240. package/dist/server/date-time.mjs +386 -0
  241. package/dist/server/index.mjs +214 -1
  242. package/dist/server/navigation.mjs +9 -3
  243. package/dist/server/next.mjs +3421 -1949
  244. package/dist/server/page-converter.mjs +1236 -659
  245. package/dist/server/prebuild.mjs +1 -1
  246. package/dist/server/rendering/server.mjs +2074 -1060
  247. package/dist/server/rendering.mjs +2370 -1132
  248. package/dist/server/routing.mjs +1543 -1062
  249. package/dist/server/server.mjs +1464 -843
  250. package/dist/server/theme-bridge.mjs +1581 -474
  251. package/dist/server/theme.mjs +614 -305
  252. package/dist/styles/index.css +12 -1
  253. package/package.json +7 -1
  254. package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
  255. package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
  256. package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
@@ -1,5 +1,5 @@
1
- import type { PersonRecordNoteKind } from "../../core/src/index";
2
- import type { EventTicketBreakdownLine } from "./bookingOperations";
1
+ import type { PersonRecordNoteKind } from '../../core/src/index';
2
+ import type { EventTicketBreakdownLine } from './bookingOperations';
3
3
  /**
4
4
  * Booking Record Contracts
5
5
  *
@@ -22,66 +22,66 @@ export type BookingEventSeriesAttendeeGuest = {
22
22
  beforeYouCome?: BookingBeforeYouComeSummary | null;
23
23
  beforeYouComeReadiness?: BookingBeforeYouComeReadiness | null;
24
24
  };
25
- export type BookingPaymentIssueReason = "failed_recurring_charge" | "overdue_instalment" | "overdue_flexible_balance" | "partial_payment_remaining_overdue";
25
+ export type BookingPaymentIssueReason = 'failed_recurring_charge' | 'overdue_instalment' | 'overdue_flexible_balance' | 'partial_payment_remaining_overdue';
26
26
  export type BookingPaymentAttentionSummary = {
27
27
  reason: BookingPaymentIssueReason;
28
28
  label: string;
29
29
  };
30
30
  export type FlexibleBalanceAdminActionPlan = {
31
- kind: "unavailable";
32
- reason: "not_booking_item" | "not_flexible_balance" | "not_overdue" | "already_cancelled_due_to_non_payment" | "not_cancelled_due_to_non_payment" | "booking_item_already_cancelled" | "booking_item_not_cancelled" | "settled_or_closed" | "payment_in_progress";
31
+ kind: 'unavailable';
32
+ reason: 'not_booking_item' | 'not_flexible_balance' | 'not_overdue' | 'already_cancelled_due_to_non_payment' | 'not_cancelled_due_to_non_payment' | 'booking_item_already_cancelled' | 'booking_item_not_cancelled' | 'settled_or_closed' | 'payment_in_progress';
33
33
  } | {
34
- kind: "cancel_plan";
34
+ kind: 'cancel_plan';
35
35
  target: {
36
- kind: "appointment" | "event_attendee" | "course_enrollment";
36
+ kind: 'appointment' | 'event_attendee' | 'course_enrollment';
37
37
  orderId: string;
38
38
  orderItemId: string;
39
39
  };
40
40
  } | {
41
- kind: "reopen_plan";
41
+ kind: 'reopen_plan';
42
42
  target: {
43
- kind: "appointment" | "event_attendee" | "course_enrollment";
43
+ kind: 'appointment' | 'event_attendee' | 'course_enrollment';
44
44
  orderId: string;
45
45
  orderItemId: string;
46
46
  };
47
47
  };
48
48
  export type FlexibleBalanceAdminActionView = {
49
- contractStatus: "active" | "payment_pending" | "overdue" | "completed" | "waived" | "cancelled_due_to_non_payment" | "refunded";
49
+ contractStatus: 'active' | 'payment_pending' | 'overdue' | 'completed' | 'waived' | 'cancelled_due_to_non_payment' | 'refunded';
50
50
  label: string | null;
51
51
  plan: FlexibleBalanceAdminActionPlan;
52
52
  };
53
53
  export type BookingBeforeYouComeSummary = {
54
- status: "complete" | "incomplete" | "overdue";
54
+ status: 'complete' | 'incomplete' | 'overdue';
55
55
  dueAt: string;
56
56
  completedAt: string | null;
57
57
  prefillAvailable: boolean;
58
58
  };
59
59
  export type BookingBeforeYouComeDeliveryIssue = {
60
- kind: "email_bounced";
60
+ kind: 'email_bounced';
61
61
  detail: string;
62
62
  occurredAt: string;
63
63
  } | {
64
- kind: "send_failed";
64
+ kind: 'send_failed';
65
65
  detail: string;
66
66
  occurredAt: string;
67
67
  };
68
68
  export type BookingBeforeYouComeReadiness = {
69
- kind: "ready";
69
+ kind: 'ready';
70
70
  task: BookingBeforeYouComeSummary;
71
71
  } | {
72
- kind: "blocked";
73
- reason: "blocked_missing_email" | "blocked_staff_managed_only";
72
+ kind: 'blocked';
73
+ reason: 'blocked_missing_email' | 'blocked_staff_managed_only';
74
74
  } | {
75
- kind: "delivery_issue";
75
+ kind: 'delivery_issue';
76
76
  issue: BookingBeforeYouComeDeliveryIssue;
77
77
  };
78
78
  export type BookingBeforeYouComeReviewAnswer = {
79
- kind: "scalar";
79
+ kind: 'scalar';
80
80
  fieldId: string;
81
81
  label: string;
82
82
  valueSummary: string;
83
83
  } | {
84
- kind: "document";
84
+ kind: 'document';
85
85
  fieldId: string;
86
86
  label: string;
87
87
  fileName: string;
@@ -98,16 +98,16 @@ export type BookingBeforeYouComeReview = {
98
98
  };
99
99
  export type { PersonRecordNoteKind };
100
100
  export type PersonRecordEntrySubject = {
101
- kind: "customer";
101
+ kind: 'customer';
102
102
  customerId: string;
103
103
  } | {
104
- kind: "appointment";
104
+ kind: 'appointment';
105
105
  appointmentId: string;
106
106
  } | {
107
- kind: "participant";
107
+ kind: 'participant';
108
108
  participantId: string;
109
109
  } | {
110
- kind: "participation";
110
+ kind: 'participation';
111
111
  participantParticipationId: string;
112
112
  };
113
113
  export type CreatePersonRecordEntryRequest = {
@@ -155,7 +155,7 @@ export type AddEventOccurrenceAttendeeRequest = {
155
155
  customerEmail: string;
156
156
  customerPhone?: string | null;
157
157
  sendConfirmation?: boolean;
158
- attendanceMode?: "in_person" | "online" | null;
158
+ attendanceMode?: 'in_person' | 'online' | null;
159
159
  ticketTypeId?: string | null;
160
160
  customerPassId?: string | null;
161
161
  customerMembershipId?: string | null;
@@ -163,10 +163,10 @@ export type AddEventOccurrenceAttendeeRequest = {
163
163
  export type AddEventOccurrenceAttendeeResponse = {
164
164
  attendeeId: string;
165
165
  customerId: string;
166
- status: "confirmed";
166
+ status: 'confirmed';
167
167
  reinstated: boolean;
168
168
  customerCreated: boolean;
169
- paymentMethod: "free" | "pass" | "membership";
169
+ paymentMethod: 'free' | 'pass' | 'membership';
170
170
  passCreditsRemaining?: number;
171
171
  passName?: string;
172
172
  membershipName?: string;
@@ -193,7 +193,7 @@ export type EventAttendeeRecord = {
193
193
  occurrenceId: string | null;
194
194
  name: string;
195
195
  email: string;
196
- status: "registered" | "attended" | "cancelled";
196
+ status: 'registered' | 'attended' | 'cancelled';
197
197
  registeredAt: string;
198
198
  };
199
199
  export type EventOnlineDetails = {
@@ -206,18 +206,18 @@ export type EventOnlineDetailsInput = {
206
206
  accessCode?: string | null;
207
207
  notes?: string | null;
208
208
  };
209
- export type StaffAssignmentMode = "inherit" | "override";
209
+ export type StaffAssignmentMode = 'inherit' | 'override';
210
210
  export type EventOccurrenceOverrides = {
211
211
  title?: string;
212
212
  description?: string;
213
213
  venueId?: string;
214
214
  [key: string]: unknown;
215
215
  };
216
- export type EventOccurrenceStatus = "scheduled" | "cancelled" | "completed";
216
+ export type EventOccurrenceStatus = 'scheduled' | 'cancelled' | 'completed';
217
217
  export type EventOccurrenceDeletionEligibility = {
218
- kind: "allowed";
218
+ kind: 'allowed';
219
219
  } | {
220
- kind: "blocked_by_registrations";
220
+ kind: 'blocked_by_registrations';
221
221
  registrations: number;
222
222
  };
223
223
  export type EventOccurrenceRecord = {
@@ -341,8 +341,8 @@ export type BookingPassRecord = {
341
341
  priceCurrency: string;
342
342
  stripeProductId: string | null;
343
343
  stripePriceId: string | null;
344
- productUseCase: "event_pass" | "appointment_package";
345
- appointmentScopeMode: "all_services" | "selected_services" | null;
344
+ productUseCase: 'event_pass' | 'appointment_package';
345
+ appointmentScopeMode: 'all_services' | 'selected_services' | null;
346
346
  appointmentServiceIds: string[];
347
347
  eligibleCategoryIds: string[];
348
348
  isActive: boolean;
@@ -358,8 +358,8 @@ export type CreateBookingPassRequest = {
358
358
  creditsTotal: number;
359
359
  priceAmount: number;
360
360
  validDays?: number | null;
361
- productUseCase?: "event_pass" | "appointment_package";
362
- appointmentScopeMode?: "all_services" | "selected_services" | null;
361
+ productUseCase?: 'event_pass' | 'appointment_package';
362
+ appointmentScopeMode?: 'all_services' | 'selected_services' | null;
363
363
  appointmentServiceIds?: string[];
364
364
  eligibleCategoryIds?: string[];
365
365
  isActive?: boolean;
@@ -369,8 +369,8 @@ export type UpdateBookingPassRequest = {
369
369
  description?: string | null;
370
370
  priceAmount?: number;
371
371
  validDays?: number | null;
372
- productUseCase?: "event_pass" | "appointment_package";
373
- appointmentScopeMode?: "all_services" | "selected_services" | null;
372
+ productUseCase?: 'event_pass' | 'appointment_package';
373
+ appointmentScopeMode?: 'all_services' | 'selected_services' | null;
374
374
  appointmentServiceIds?: string[];
375
375
  eligibleCategoryIds?: string[];
376
376
  isActive?: boolean;
@@ -383,7 +383,7 @@ export type ListBookingPassesResponse = {
383
383
  };
384
384
  export type BookingPassResponse = {
385
385
  pass: BookingPassRecord;
386
- outcome?: "deleted" | "archived";
386
+ outcome?: 'deleted' | 'archived';
387
387
  };
388
388
  export type BookingMembershipRecord = {
389
389
  id: string;
@@ -392,7 +392,7 @@ export type BookingMembershipRecord = {
392
392
  description: string | null;
393
393
  priceAmount: number;
394
394
  priceCurrency: string;
395
- billingInterval: "month" | "year";
395
+ billingInterval: 'month' | 'year';
396
396
  stripeProductId: string | null;
397
397
  stripePriceId: string | null;
398
398
  includesUnlimitedEvents: boolean;
@@ -408,7 +408,7 @@ export type CreateBookingMembershipRequest = {
408
408
  name: string;
409
409
  description?: string | null;
410
410
  priceAmount: number;
411
- billingInterval: "month" | "year";
411
+ billingInterval: 'month' | 'year';
412
412
  eligibleCategoryIds?: string[];
413
413
  isActive?: boolean;
414
414
  };
@@ -416,7 +416,7 @@ export type UpdateBookingMembershipRequest = {
416
416
  name?: string;
417
417
  description?: string | null;
418
418
  priceAmount?: number;
419
- billingInterval?: "month" | "year";
419
+ billingInterval?: 'month' | 'year';
420
420
  eligibleCategoryIds?: string[];
421
421
  isActive?: boolean;
422
422
  };
@@ -428,7 +428,7 @@ export type ListBookingMembershipsRequest = {
428
428
  };
429
429
  export type BookingMembershipResponse = {
430
430
  membership: BookingMembershipRecord;
431
- outcome?: "deleted" | "archived";
431
+ outcome?: 'deleted' | 'archived';
432
432
  };
433
433
  export type BookingCustomerWithCounts = {
434
434
  id: string;
@@ -440,11 +440,11 @@ export type BookingCustomerWithCounts = {
440
440
  activePassesCount: number;
441
441
  activeMembershipsCount: number;
442
442
  };
443
- export type CustomerLifecycleSegmentCode = "new" | "active" | "at_risk" | "lapsed" | "unclassified";
444
- export type CustomerLifecycleFlagCode = "high_value";
445
- export type CustomerAggregateCoverage = "available" | "unavailable" | "deferred";
446
- export type CustomerFinancialCoverage = "available" | "no_completed_payments" | "mixed_currency" | "unavailable";
447
- export type CustomerWaitlistStatus = "none" | "waiting" | "hold_active" | "multiple";
443
+ export type CustomerLifecycleSegmentCode = 'new' | 'active' | 'at_risk' | 'lapsed' | 'unclassified';
444
+ export type CustomerLifecycleFlagCode = 'high_value';
445
+ export type CustomerAggregateCoverage = 'available' | 'unavailable' | 'deferred';
446
+ export type CustomerFinancialCoverage = 'available' | 'no_completed_payments' | 'mixed_currency' | 'unavailable';
447
+ export type CustomerWaitlistStatus = 'none' | 'waiting' | 'hold_active' | 'multiple';
448
448
  export type CustomerBookingActivitySummary = {
449
449
  firstBookingAt: string | null;
450
450
  lastCompletedBookingAt: string | null;
@@ -459,24 +459,24 @@ export type CustomerBookingActivitySummary = {
459
459
  noShowCoverage: CustomerAggregateCoverage;
460
460
  };
461
461
  export type CustomerFinancialValue = {
462
- coverage: "available";
462
+ coverage: 'available';
463
463
  currency: string;
464
464
  lifetimePaidCents: number;
465
465
  lifetimeRefundedCents: number;
466
466
  lifetimeNetCents: number;
467
467
  } | {
468
- coverage: Exclude<CustomerFinancialCoverage, "available">;
468
+ coverage: Exclude<CustomerFinancialCoverage, 'available'>;
469
469
  currency: string | null;
470
470
  lifetimePaidCents: null;
471
471
  lifetimeRefundedCents: null;
472
472
  lifetimeNetCents: null;
473
473
  };
474
474
  export type CustomerWaitlistSummary = {
475
- coverage: "available";
475
+ coverage: 'available';
476
476
  status: CustomerWaitlistStatus;
477
477
  count: number;
478
478
  } | {
479
- coverage: "deferred" | "unavailable";
479
+ coverage: 'deferred' | 'unavailable';
480
480
  status: null;
481
481
  count: null;
482
482
  };
@@ -504,14 +504,14 @@ export type ListBookingCustomersResponse = {
504
504
  total: number;
505
505
  };
506
506
  };
507
- export type CustomerSortColumn = "name" | "email" | "createdAt" | "passesCount" | "membershipsCount";
508
- export type CustomerFilter = "all" | "hasActivePass" | "hasActiveProducts" | "hasMembership" | "noProducts";
507
+ export type CustomerSortColumn = 'name' | 'email' | 'createdAt' | 'passesCount' | 'membershipsCount';
508
+ export type CustomerFilter = 'all' | 'hasActivePass' | 'hasActiveProducts' | 'hasMembership' | 'noProducts';
509
509
  export type ListBookingCustomersRequest = {
510
510
  page?: number;
511
511
  limit?: number;
512
512
  search?: string;
513
513
  sortBy?: CustomerSortColumn;
514
- sortDirection?: "asc" | "desc";
514
+ sortDirection?: 'asc' | 'desc';
515
515
  filter?: CustomerFilter;
516
516
  includeAggregates?: boolean;
517
517
  };
@@ -523,13 +523,13 @@ export type CreateBookingCustomerRequest = {
523
523
  export type CreateBookingCustomerResponse = {
524
524
  customer: BookingCustomerWithCounts;
525
525
  };
526
- export type CustomerContactField = "name" | "email" | "phone";
526
+ export type CustomerContactField = 'name' | 'email' | 'phone';
527
527
  export type CustomerContactChange = {
528
528
  field: CustomerContactField;
529
529
  before: string | null;
530
530
  after: string | null;
531
531
  };
532
- export type CustomerProfileRectificationSourceSurface = "appointment_booking" | "event_registration" | "retreat_registration" | "course_enrollment";
532
+ export type CustomerProfileRectificationSourceSurface = 'appointment_booking' | 'event_registration' | 'retreat_registration' | 'course_enrollment';
533
533
  export type CustomerProfileRectificationSourceContext = {
534
534
  surface: CustomerProfileRectificationSourceSurface;
535
535
  };
@@ -540,11 +540,11 @@ export type RectifyBookingCustomerProfileRequest = {
540
540
  sourceContext?: CustomerProfileRectificationSourceContext | null;
541
541
  };
542
542
  export type RectifyBookingCustomerProfileResponse = {
543
- status: "updated";
543
+ status: 'updated';
544
544
  customer: BookingCustomerWithCounts;
545
545
  changes: CustomerContactChange[];
546
546
  } | {
547
- status: "noop";
547
+ status: 'noop';
548
548
  customer: BookingCustomerWithCounts;
549
549
  changes: [];
550
550
  };
@@ -556,7 +556,7 @@ export type BookingParticipantIdentityForRectification = {
556
556
  email: string | null;
557
557
  emailNormalized: string | null;
558
558
  phone: string | null;
559
- identityState: "contactable" | "portal_claimed" | "staff_verified";
559
+ identityState: 'contactable' | 'portal_claimed' | 'staff_verified';
560
560
  updatedAt: string;
561
561
  };
562
562
  /**
@@ -566,7 +566,7 @@ export type BookingParticipantIdentityForRectification = {
566
566
  * reserved for a future participant-record editor and is accepted by the API
567
567
  * so that surface can ship without an additional contract change.
568
568
  */
569
- export type ParticipantIdentityRectificationSourceSurface = "event_registration_guest" | "participant_record";
569
+ export type ParticipantIdentityRectificationSourceSurface = 'event_registration_guest' | 'participant_record';
570
570
  export type ParticipantIdentityRectificationSourceContext = {
571
571
  surface: ParticipantIdentityRectificationSourceSurface;
572
572
  eventAttendeeId?: string | null;
@@ -580,12 +580,12 @@ export type RectifyBookingParticipantIdentityRequest = {
580
580
  sourceContext?: ParticipantIdentityRectificationSourceContext | null;
581
581
  };
582
582
  export type RectifyBookingParticipantIdentityResponse = {
583
- status: "updated";
583
+ status: 'updated';
584
584
  participant: BookingParticipantIdentityForRectification;
585
585
  auditEventId: string;
586
586
  changes: CustomerContactChange[];
587
587
  } | {
588
- status: "noop";
588
+ status: 'noop';
589
589
  participant: BookingParticipantIdentityForRectification;
590
590
  changes: [];
591
591
  };
@@ -600,7 +600,7 @@ export type CustomerPassRecord = {
600
600
  pass: {
601
601
  name: string;
602
602
  description: string | null;
603
- productUseCase: "event_pass" | "appointment_package";
603
+ productUseCase: 'event_pass' | 'appointment_package';
604
604
  };
605
605
  };
606
606
  export type ListCustomerPassesResponse = {
@@ -644,7 +644,7 @@ export type CustomerMembershipRecord = {
644
644
  membership: {
645
645
  name: string;
646
646
  description: string | null;
647
- billingInterval: "month" | "year";
647
+ billingInterval: 'month' | 'year';
648
648
  };
649
649
  };
650
650
  export declare const CUSTOMER_MEMBERSHIP_STATUS_VALUES: readonly ["active", "trialing", "past_due", "paused", "canceled"];
@@ -688,14 +688,14 @@ export type ListSiteCustomerMembershipsResponse = {
688
688
  customerMemberships: SiteCustomerMembershipRecord[];
689
689
  count: number;
690
690
  };
691
- export type BookingPaymentKind = "event" | "pass_purchase" | "membership_invoice" | "course";
692
- export type BookingPaymentStatus = "paid" | "partially_refunded" | "refunded" | "failed" | "pending";
693
- export type BookingPaymentsView = "successful" | "refunds" | "failed" | "pending" | "all";
691
+ export type BookingPaymentKind = 'event' | 'pass_purchase' | 'membership_invoice' | 'course';
692
+ export type BookingPaymentStatus = 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'pending';
693
+ export type BookingPaymentsView = 'successful' | 'refunds' | 'failed' | 'pending' | 'all';
694
694
  export type BookingPaymentListItem = {
695
695
  id: string;
696
696
  kind: BookingPaymentKind;
697
697
  status: BookingPaymentStatus;
698
- provider?: "stripe" | "internal";
698
+ provider?: 'stripe' | 'internal';
699
699
  amountPaidCents: number;
700
700
  amountSubtotalCents?: number;
701
701
  amountRefundedCents: number;
@@ -785,7 +785,7 @@ export type BookingActivityListItem = {
785
785
  currency: string | null;
786
786
  payment: {
787
787
  id: string | null;
788
- provider: BookingPaymentListItem["provider"] | null;
788
+ provider: BookingPaymentListItem['provider'] | null;
789
789
  status: string | null;
790
790
  method: string | null;
791
791
  stripeCheckoutSessionId: string | null;
@@ -886,7 +886,7 @@ export type GetCustomerCreditResponse = {
886
886
  } | null;
887
887
  };
888
888
  export type AdjustCustomerCreditRequest = {
889
- kind: "grant" | "revoke";
889
+ kind: 'grant' | 'revoke';
890
890
  amountCents: number;
891
891
  currency?: string;
892
892
  reason: string;
@@ -896,13 +896,11 @@ export type AdjustCustomerCreditResponse = {
896
896
  transaction: BookingCustomerCreditTransactionListItem;
897
897
  summary: BookingCustomerCreditSummary | null;
898
898
  };
899
- export type MoneyPeriodPreset = "1d" | "7d" | "30d" | "90d" | "365d";
900
- export type MoneyItemKind = "event" | "course" | "pass" | "membership" | "product";
901
- export type MoneyPaymentsView = "successful" | "refunds" | "failed" | "pending" | "all";
902
- export type MoneyTimeSeriesGranularity = "day" | "week" | "month";
903
- export type MoneyBreakdownDimension = "item_kind" | "event" | "event_category" | "venue" | "course" | "pass" | "membership" | "product" | "discount_code";
904
- export type MoneyNonCashUsageKind = "pass_redemption" | "membership_access";
905
- export type MoneyReportIncompleteReason = "refund_history_incomplete" | "missing_refund_processed_dates";
899
+ export type MoneyPeriodPreset = '1d' | '7d' | '30d' | '90d' | '365d';
900
+ export type MoneyItemKind = 'event' | 'course' | 'pass' | 'membership' | 'product';
901
+ export type MoneyPaymentsView = 'successful' | 'refunds' | 'all';
902
+ export type MoneyTimeSeriesGranularity = 'day' | 'week' | 'month';
903
+ export type MoneyBreakdownDimension = 'item_kind' | 'event' | 'event_category' | 'venue' | 'course' | 'pass' | 'membership' | 'product' | 'discount_code';
906
904
  export type MoneyFilterQuery = {
907
905
  period?: MoneyPeriodPreset;
908
906
  from?: string;
@@ -936,13 +934,13 @@ export type MoneyReportSummary = {
936
934
  netRevenueCents: MoneyComparisonMetric;
937
935
  discountCents: MoneyComparisonMetric;
938
936
  tax: {
939
- kind: "hidden";
937
+ kind: 'hidden';
940
938
  } | {
941
- kind: "visible";
939
+ kind: 'visible';
942
940
  taxCollectedCents: MoneyComparisonMetric;
943
941
  };
944
942
  orderCount: MoneyComparisonMetric;
945
- averageOrderValueCents: MoneyComparisonMetric;
943
+ averageCollectedPerOrderCents: MoneyComparisonMetric;
946
944
  };
947
945
  export type MoneyTimeSeriesBucket = {
948
946
  bucketStart: string;
@@ -969,16 +967,6 @@ export type MoneyBreakdownSection = {
969
967
  dimension: MoneyBreakdownDimension;
970
968
  rows: MoneyBreakdownRow[];
971
969
  };
972
- export type MoneyNonCashUsageRow = {
973
- key: string;
974
- label: string;
975
- kind: MoneyNonCashUsageKind;
976
- usageCount: number;
977
- };
978
- export type MoneyNonCashUsageSection = {
979
- dimension: "event" | "course";
980
- rows: MoneyNonCashUsageRow[];
981
- };
982
970
  export type GetMoneyReportRequest = MoneyFilterQuery;
983
971
  export type GetMoneyReportResponse = {
984
972
  range: MoneyDateRange;
@@ -988,35 +976,97 @@ export type GetMoneyReportResponse = {
988
976
  currentSeries: MoneyTimeSeriesBucket[];
989
977
  comparisonSeries: MoneyTimeSeriesBucket[];
990
978
  breakdowns: MoneyBreakdownSection[];
991
- nonCashUsage: MoneyNonCashUsageSection[];
992
- partial?: boolean;
993
- incompleteReasons?: MoneyReportIncompleteReason[];
994
979
  };
995
980
  export type MoneyPaymentListItem = {
996
981
  id: string;
997
- orderId: string | null;
982
+ orderId: string;
998
983
  orderNumber: string | null;
999
- kind: MoneyItemKind;
1000
- status: BookingPaymentStatus;
1001
- paymentMethod: "stripe" | "mixed" | "store_credit" | "pass_redemption" | "membership_access" | "free" | "manual" | "waived" | null;
1002
- provider?: "stripe" | "internal";
984
+ allocation: {
985
+ kind: 'single';
986
+ item: {
987
+ kind: 'event';
988
+ sourceLabel: string;
989
+ eventAttendeeId: string;
990
+ } | {
991
+ kind: 'course';
992
+ sourceLabel: string;
993
+ courseId: string;
994
+ courseEnrollmentId: string;
995
+ } | {
996
+ kind: 'pass';
997
+ sourceLabel: string;
998
+ customerPassId: string;
999
+ } | {
1000
+ kind: 'membership';
1001
+ sourceLabel: string;
1002
+ customerMembershipId: string;
1003
+ } | {
1004
+ kind: 'product';
1005
+ sourceLabel: string;
1006
+ };
1007
+ } | {
1008
+ kind: 'multiple';
1009
+ itemKinds: readonly MoneyItemKind[];
1010
+ sourceLabels: readonly string[];
1011
+ } | {
1012
+ kind: 'unresolved';
1013
+ itemKinds: readonly MoneyItemKind[];
1014
+ sourceLabels: readonly string[];
1015
+ };
1016
+ refundAccess: {
1017
+ kind: 'entity';
1018
+ target: {
1019
+ kind: 'event';
1020
+ sourceLabel: string;
1021
+ eventAttendeeId: string;
1022
+ } | {
1023
+ kind: 'course';
1024
+ sourceLabel: string;
1025
+ courseId: string;
1026
+ courseEnrollmentId: string;
1027
+ } | {
1028
+ kind: 'pass';
1029
+ sourceLabel: string;
1030
+ customerPassId: string;
1031
+ } | {
1032
+ kind: 'membership';
1033
+ sourceLabel: string;
1034
+ customerMembershipId: string;
1035
+ };
1036
+ onlineAction: {
1037
+ kind: 'available';
1038
+ } | {
1039
+ kind: 'unavailable';
1040
+ reason: 'manual_receipt' | 'provider_target_mismatch' | 'fully_refunded' | 'refund_attribution_pending';
1041
+ };
1042
+ } | {
1043
+ kind: 'unavailable';
1044
+ reason: 'multiple_allocations' | 'unresolved_allocation' | 'product';
1045
+ };
1046
+ status: 'paid' | 'partially_refunded' | 'refunded' | 'refund_attribution_pending';
1047
+ purpose: 'initial_checkout' | 'flexible_balance_paydown' | 'instalment' | 'instalment_payoff' | 'subscription_renewal';
1048
+ rail: 'stripe_checkout' | 'stripe_invoice' | 'manual';
1049
+ provenance: 'live' | 'backfilled_exact';
1050
+ paymentMethod: 'stripe' | 'mixed' | 'store_credit' | 'pass_redemption' | 'membership_access' | 'free' | 'manual' | 'waived' | null;
1051
+ provider: 'stripe' | 'internal';
1003
1052
  amountPaidCents: number;
1004
- amountSubtotalCents?: number;
1005
- amountRefundedCents: number;
1006
- amountDiscountCents?: number;
1053
+ amountSubtotalCents: number;
1054
+ knownRefundedCents: number;
1055
+ amountRefundedCents: number | null;
1056
+ amountDiscountCents: number;
1007
1057
  currency: string;
1058
+ orderTotalCents: number;
1059
+ orderCollectedCents: number;
1060
+ orderOutstandingCents: number;
1061
+ paymentDueAt: string | null;
1008
1062
  createdAt: string;
1009
1063
  stripeCheckoutSessionId: string | null;
1010
1064
  stripePaymentIntentId: string | null;
1011
1065
  stripeInvoiceId: string | null;
1012
- eventAttendeeId: string | null;
1013
- customerPassId: string | null;
1014
- customerMembershipId: string | null;
1015
- courseEnrollmentId?: string | null;
1016
- discountCode?: string | null;
1017
- discountPublicLabel?: string | null;
1066
+ stripeAccountId: string | null;
1067
+ discountCode: string | null;
1068
+ discountPublicLabel: string | null;
1018
1069
  customer: SiteCustomerRecord | null;
1019
- sourceLabel: string;
1020
1070
  };
1021
1071
  export type ListMoneyPaymentsRequest = MoneyFilterQuery & {
1022
1072
  search?: string;
@@ -1034,12 +1084,12 @@ export type ListMoneyPaymentsResponse = {
1034
1084
  hasMore: boolean;
1035
1085
  };
1036
1086
  };
1037
- export type DiscountCodeType = "percent" | "fixed";
1038
- export type DiscountPerEmailLimit = "once" | "unlimited";
1039
- export type DiscountMembershipDuration = "once" | "forever";
1040
- export type DiscountEventScopeMode = "all_categories" | "categories" | "event_series";
1041
- export type DiscountScopeMode = "all" | "selected";
1042
- export type ProductScopeMode = "all" | "categories" | "selected";
1087
+ export type DiscountCodeType = 'percent' | 'fixed';
1088
+ export type DiscountPerEmailLimit = 'once' | 'unlimited';
1089
+ export type DiscountMembershipDuration = 'once' | 'forever';
1090
+ export type DiscountEventScopeMode = 'all_categories' | 'categories' | 'event_series';
1091
+ export type DiscountScopeMode = 'all' | 'selected';
1092
+ export type ProductScopeMode = 'all' | 'categories' | 'selected';
1043
1093
  export type DiscountCodeRecord = {
1044
1094
  id: string;
1045
1095
  siteId: string;
@@ -1087,16 +1137,16 @@ export type DiscountCodeScopeIds = {
1087
1137
  export type DiscountCodeDetails = DiscountCodeRecord & {
1088
1138
  scopes: DiscountCodeScopeIds;
1089
1139
  };
1090
- export type CreateDiscountCodeRequest = (Omit<DiscountCodeRecord, "id" | "siteId" | "codeNormalized" | "autoApply" | "discountPercent" | "discountAmountCents" | "eventMinTicketsEnabled" | "eventMinTickets" | "stripeCouponId" | "createdAt" | "updatedAt"> & {
1091
- discountType: "percent";
1140
+ export type CreateDiscountCodeRequest = (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
1141
+ discountType: 'percent';
1092
1142
  discountPercent: number;
1093
1143
  discountAmountCents?: never;
1094
1144
  autoApply?: boolean;
1095
1145
  eventMinTicketsEnabled?: boolean;
1096
1146
  eventMinTickets?: number | null;
1097
1147
  scopeIds?: Partial<DiscountCodeScopeIds>;
1098
- }) | (Omit<DiscountCodeRecord, "id" | "siteId" | "codeNormalized" | "autoApply" | "discountPercent" | "discountAmountCents" | "eventMinTicketsEnabled" | "eventMinTickets" | "stripeCouponId" | "createdAt" | "updatedAt"> & {
1099
- discountType: "fixed";
1148
+ }) | (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
1149
+ discountType: 'fixed';
1100
1150
  discountAmountCents: number;
1101
1151
  discountPercent?: never;
1102
1152
  autoApply?: boolean;
@@ -1134,18 +1184,18 @@ type EventAutoApplyDiscountPreviewBase = {
1134
1184
  minTicketsRequired: number | null;
1135
1185
  };
1136
1186
  export type EventAutoApplyDiscountPreview = (EventAutoApplyDiscountPreviewBase & {
1137
- discountType: "percent";
1187
+ discountType: 'percent';
1138
1188
  discountPercent: number;
1139
1189
  discountAmountCents: null;
1140
1190
  }) | (EventAutoApplyDiscountPreviewBase & {
1141
- discountType: "fixed";
1191
+ discountType: 'fixed';
1142
1192
  discountPercent: null;
1143
1193
  discountAmountCents: number;
1144
1194
  });
1145
1195
  export type DeleteDiscountCodeResponse = {
1146
1196
  success: boolean;
1147
1197
  };
1148
- export type DiscountRedemptionStatus = "pending" | "redeemed" | "released" | "expired";
1198
+ export type DiscountRedemptionStatus = 'pending' | 'redeemed' | 'released' | 'expired';
1149
1199
  export type DiscountRedemptionListItem = {
1150
1200
  id: string;
1151
1201
  siteId: string;
@@ -1194,12 +1244,12 @@ export type ListDiscountRedemptionsResponse = {
1194
1244
  export type ListCustomerAttendancesRequest = {
1195
1245
  limit?: number;
1196
1246
  offset?: number;
1197
- status?: "confirmed" | "waitlist" | "cancelled";
1247
+ status?: 'confirmed' | 'waitlist' | 'cancelled';
1198
1248
  };
1199
- export type CustomerAttendancePaymentMethod = "free" | "pass" | "membership" | "stripe";
1200
- export type CustomerAttendancePaymentStatus = "not_required" | "pending" | "completed" | "failed" | "refunded";
1249
+ export type CustomerAttendancePaymentMethod = 'free' | 'pass' | 'membership' | 'stripe';
1250
+ export type CustomerAttendancePaymentStatus = 'not_required' | 'pending' | 'completed' | 'failed' | 'refunded';
1201
1251
  export type CustomerAttendanceLivePayment = {
1202
- kind: "live";
1252
+ kind: 'live';
1203
1253
  method: CustomerAttendancePaymentMethod;
1204
1254
  status: CustomerAttendancePaymentStatus;
1205
1255
  isAdminAdded?: boolean;
@@ -1209,13 +1259,13 @@ export type CustomerAttendanceLivePayment = {
1209
1259
  currency: string | null;
1210
1260
  };
1211
1261
  export type CustomerAttendanceArchivedPayment = {
1212
- kind: "archived";
1262
+ kind: 'archived';
1213
1263
  };
1214
1264
  export type CustomerAttendancePayment = CustomerAttendanceLivePayment | CustomerAttendanceArchivedPayment;
1215
1265
  export type CustomerAttendanceRecord = {
1216
1266
  id: string;
1217
1267
  ticketsCount: number;
1218
- status: "confirmed" | "waitlist" | "cancelled";
1268
+ status: 'confirmed' | 'waitlist' | 'cancelled';
1219
1269
  createdAt: string;
1220
1270
  event: {
1221
1271
  title: string;