@riverbankcms/sdk 0.144.0 → 0.145.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 (162) hide show
  1. package/dist/{PreviewEditorSidebar-CQZNnFiM.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +4 -4
  2. package/dist/{PreviewEditorUI-DCNxnmI0.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-BJolUbr1.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +419 -348
  5. package/dist/{SiteChromeCustomizeContext-CKgEpoxi.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +2081 -1313
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
  7. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
  9. package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
  10. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
  12. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
  13. package/dist/_dts/api/src/communications.d.ts +14 -22
  14. package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
  15. package/dist/_dts/api/src/endpoints.d.ts +105 -58
  16. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  17. package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
  18. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
  19. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
  20. package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
  21. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
  22. package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
  23. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
  24. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
  25. package/dist/_dts/api/src/types.d.ts +2 -1
  26. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
  27. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  28. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -0
  29. package/dist/_dts/blocks/src/index.d.ts +1 -1
  30. package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
  31. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
  32. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
  33. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
  34. package/dist/_dts/blocks/src/server.d.ts +1 -1
  35. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
  36. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
  37. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
  39. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
  40. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
  41. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
  42. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
  43. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
  44. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
  45. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
  46. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
  47. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
  48. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
  49. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
  50. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -3
  51. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
  52. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
  53. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  54. package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
  55. package/dist/_dts/core/src/editor-state.d.ts +6 -0
  56. package/dist/_dts/core/src/index.d.ts +1 -0
  57. package/dist/_dts/core/src/public-profile.d.ts +9 -0
  58. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +663 -241
  59. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
  60. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
  61. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
  62. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
  63. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
  64. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  65. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
  66. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
  67. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  68. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
  69. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  70. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
  71. package/dist/_dts/sdk/src/client/types.d.ts +1 -1
  72. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  73. package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
  74. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  75. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
  76. package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -8
  77. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -2
  78. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
  79. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  80. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
  81. package/dist/_dts/sdk/src/version.d.ts +1 -1
  82. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  83. package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
  84. package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
  85. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
  86. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
  87. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
  88. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  89. package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
  90. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
  91. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
  92. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  93. package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
  94. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
  95. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
  96. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
  97. package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
  98. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
  99. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
  100. package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
  101. package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
  102. package/dist/client/{BookingConsentAgreement-DoAILrkN.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +2 -2
  103. package/dist/client/{DiscountCodeDisclosure-X528hUTf.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +1 -1
  104. package/dist/client/{EventCombined.client-DSBVwq5m.mjs → EventCombined.client-DnsUeONl.mjs} +6 -6
  105. package/dist/client/{EventListing.client-DmFAX7Vb.mjs → EventListing.client-CNBFqJS4.mjs} +2 -2
  106. package/dist/client/{LeafletStaticMap-BAqXdfhq.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
  107. package/dist/client/{ThemedButton-BwNFVwi4.mjs → ThemedButton-LAJTNrS8.mjs} +1 -1
  108. package/dist/client/{accordion-DRhMdkbd.mjs → accordion-BcNF9TjX.mjs} +1 -1
  109. package/dist/client/{bookingForm-iJ_nCsNF.mjs → bookingForm-BUaQ3S03.mjs} +142 -50
  110. package/dist/client/bookings.mjs +191 -64
  111. package/dist/client/{carousel-D8zuffZr.mjs → carousel-CTdF6e0V.mjs} +1 -1
  112. package/dist/client/{cart-DeMGJViN.mjs → cart-pGtyf_XU.mjs} +3 -3
  113. package/dist/client/{checkout-DXc06Km2.mjs → checkout-Da9WSn7Y.mjs} +3 -3
  114. package/dist/client/client.mjs +1630 -816
  115. package/dist/client/{context-CDLCfDep.mjs → context-BFeY_Wbm.mjs} +1 -1
  116. package/dist/client/{dates-ClFx7Epy.mjs → dates-BhwVSxDg.mjs} +2 -2
  117. package/dist/client/{eventCalendar-BaGpnOGN.mjs → eventCalendar-BAtdnR4s.mjs} +9 -9
  118. package/dist/client/{eventCombined-ywONOx2m.mjs → eventCombined-RksA3tRC.mjs} +4 -4
  119. package/dist/client/{eventDetails-B2LlOTYY.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
  120. package/dist/client/{eventListing-CMgxWpqP.mjs → eventListing-BpJBkviM.mjs} +4 -4
  121. package/dist/client/{eventRegistration-BarLDNHR.mjs → eventRegistration-B18jFq_o.mjs} +8 -8
  122. package/dist/client/{form-BjqKaBJ7.mjs → form-Dodt8Y8t.mjs} +3 -3
  123. package/dist/client/{headerSection-CP4XDwz1.mjs → headerSection-B0qj9ttg.mjs} +3 -3
  124. package/dist/client/hooks.mjs +550 -99
  125. package/dist/client/{locationMap-C5gW-d-w.mjs → locationMap-gn-iMk7a.mjs} +3 -3
  126. package/dist/client/{newsletterForm-afXlVSA0.mjs → newsletterForm-oByLdFkr.mjs} +26 -5
  127. package/dist/client/{pricing-Bl1CAl28.mjs → pricing-BOU0_Hai.mjs} +1 -1
  128. package/dist/client/{productDetail-CvQ3jWQe.mjs → productDetail-D9v1zH2j.mjs} +3 -3
  129. package/dist/client/{productList-U874PGO7.mjs → productList-D-mItx1n.mjs} +3 -3
  130. package/dist/client/{propsDecoder-DPXtCZWP.mjs → propsDecoder-C3TP_z4x.mjs} +72 -33
  131. package/dist/client/rendering/client.mjs +900 -266
  132. package/dist/client/rendering/islands.mjs +17 -17
  133. package/dist/client/rendering.mjs +1637 -788
  134. package/dist/client/{routeIslandApiConfig-NGYiUWXu.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +1 -1
  135. package/dist/client/{scrollToBlock-0-C3DVhK.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
  136. package/dist/client/{shop-BXjXhM9P.mjs → shop-Dufw7N7o.mjs} +7 -7
  137. package/dist/client/{shop-commerce-BZ6UlWJ7.mjs → shop-commerce-gklw_hLF.mjs} +6 -6
  138. package/dist/client/{shop-commerce-store-DlSBXb3D.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
  139. package/dist/client/{shopShared-kkEOiLPA.mjs → shopShared-B5nyA41S.mjs} +4 -4
  140. package/dist/client/{useEventFilters-zvnnE1ro.mjs → useEventFilters-CLL829vy.mjs} +6 -6
  141. package/dist/preview-next/before-render.mjs +147 -77
  142. package/dist/preview-next/client/runtime.mjs +4 -4
  143. package/dist/preview-next/keepAlive.mjs +147 -77
  144. package/dist/preview-next/middleware.mjs +147 -77
  145. package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
  146. package/dist/{sdk-runtime-DFJlQt3q.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
  147. package/dist/{separator-o8GHb1xh.mjs → separator-EvdCAn4V.mjs} +1 -1
  148. package/dist/server/components.mjs +1727 -991
  149. package/dist/server/config-validation.mjs +537 -97
  150. package/dist/server/config.mjs +537 -97
  151. package/dist/server/data.mjs +549 -98
  152. package/dist/server/index.mjs +159 -81
  153. package/dist/server/next.mjs +1460 -748
  154. package/dist/server/page-converter.mjs +384 -54
  155. package/dist/server/prebuild.mjs +1 -1
  156. package/dist/server/rendering/server.mjs +1712 -973
  157. package/dist/server/rendering.mjs +1748 -1001
  158. package/dist/server/routing.mjs +624 -131
  159. package/dist/server/server.mjs +554 -138
  160. package/dist/server/theme-bridge.mjs +1192 -27
  161. package/dist/server/theme.mjs +6 -4
  162. package/package.json +2 -1
@@ -1181,8 +1181,50 @@ export type Database = {
1181
1181
  }
1182
1182
  ];
1183
1183
  };
1184
+ appointment_service_categories: {
1185
+ Row: {
1186
+ created_at: string;
1187
+ description: string | null;
1188
+ id: string;
1189
+ identifier: string;
1190
+ name: string;
1191
+ site_id: string;
1192
+ sort_order: number;
1193
+ updated_at: string;
1194
+ };
1195
+ Insert: {
1196
+ created_at?: string;
1197
+ description?: string | null;
1198
+ id?: string;
1199
+ identifier: string;
1200
+ name: string;
1201
+ site_id: string;
1202
+ sort_order?: number;
1203
+ updated_at?: string;
1204
+ };
1205
+ Update: {
1206
+ created_at?: string;
1207
+ description?: string | null;
1208
+ id?: string;
1209
+ identifier?: string;
1210
+ name?: string;
1211
+ site_id?: string;
1212
+ sort_order?: number;
1213
+ updated_at?: string;
1214
+ };
1215
+ Relationships: [
1216
+ {
1217
+ foreignKeyName: "appointment_service_categories_site_id_fkey";
1218
+ columns: ["site_id"];
1219
+ isOneToOne: false;
1220
+ referencedRelation: "sites";
1221
+ referencedColumns: ["id"];
1222
+ }
1223
+ ];
1224
+ };
1184
1225
  appointment_services: {
1185
1226
  Row: {
1227
+ category_id: string | null;
1186
1228
  cleanup_minutes: number;
1187
1229
  color_hex: string | null;
1188
1230
  created_at: string;
@@ -1199,6 +1241,7 @@ export type Database = {
1199
1241
  settings_json: Json;
1200
1242
  site_id: string;
1201
1243
  slug: string;
1244
+ sort_order: number;
1202
1245
  timezone: string | null;
1203
1246
  title: string;
1204
1247
  updated_at: string;
@@ -1206,6 +1249,7 @@ export type Database = {
1206
1249
  visibility: string;
1207
1250
  };
1208
1251
  Insert: {
1252
+ category_id?: string | null;
1209
1253
  cleanup_minutes?: number;
1210
1254
  color_hex?: string | null;
1211
1255
  created_at?: string;
@@ -1222,6 +1266,7 @@ export type Database = {
1222
1266
  settings_json?: Json;
1223
1267
  site_id: string;
1224
1268
  slug: string;
1269
+ sort_order?: number;
1225
1270
  timezone?: string | null;
1226
1271
  title: string;
1227
1272
  updated_at?: string;
@@ -1229,6 +1274,7 @@ export type Database = {
1229
1274
  visibility?: string;
1230
1275
  };
1231
1276
  Update: {
1277
+ category_id?: string | null;
1232
1278
  cleanup_minutes?: number;
1233
1279
  color_hex?: string | null;
1234
1280
  created_at?: string;
@@ -1245,6 +1291,7 @@ export type Database = {
1245
1291
  settings_json?: Json;
1246
1292
  site_id?: string;
1247
1293
  slug?: string;
1294
+ sort_order?: number;
1248
1295
  timezone?: string | null;
1249
1296
  title?: string;
1250
1297
  updated_at?: string;
@@ -1252,6 +1299,13 @@ export type Database = {
1252
1299
  visibility?: string;
1253
1300
  };
1254
1301
  Relationships: [
1302
+ {
1303
+ foreignKeyName: "appointment_services_category_site_fk";
1304
+ columns: ["site_id", "category_id"];
1305
+ isOneToOne: false;
1306
+ referencedRelation: "appointment_service_categories";
1307
+ referencedColumns: ["site_id", "id"];
1308
+ },
1255
1309
  {
1256
1310
  foreignKeyName: "appointment_services_form_id_fkey";
1257
1311
  columns: ["form_id"];
@@ -7480,6 +7534,99 @@ export type Database = {
7480
7534
  }
7481
7535
  ];
7482
7536
  };
7537
+ email_webhook_receipts: {
7538
+ Row: {
7539
+ applied_at: string | null;
7540
+ association_deadline: string;
7541
+ bounce_subtype: string | null;
7542
+ bounce_type: string | null;
7543
+ correlation_invalid: boolean;
7544
+ delivery_id: string | null;
7545
+ email_id: string | null;
7546
+ event_type: string;
7547
+ foreign_source: boolean;
7548
+ id: string;
7549
+ last_error_code: string | null;
7550
+ next_attempt_at: string;
7551
+ observed_at: string;
7552
+ provider: string;
7553
+ provider_event_id: string;
7554
+ provider_message_id: string;
7555
+ reason: string | null;
7556
+ received_at: string;
7557
+ recipient_email: string | null;
7558
+ site_id: string | null;
7559
+ source_marker: string | null;
7560
+ state: string;
7561
+ transactional_job_id: string | null;
7562
+ };
7563
+ Insert: {
7564
+ applied_at?: string | null;
7565
+ association_deadline?: string;
7566
+ bounce_subtype?: string | null;
7567
+ bounce_type?: string | null;
7568
+ correlation_invalid?: boolean;
7569
+ delivery_id?: string | null;
7570
+ email_id?: string | null;
7571
+ event_type: string;
7572
+ foreign_source?: boolean;
7573
+ id?: string;
7574
+ last_error_code?: string | null;
7575
+ next_attempt_at?: string;
7576
+ observed_at: string;
7577
+ provider: string;
7578
+ provider_event_id: string;
7579
+ provider_message_id: string;
7580
+ reason?: string | null;
7581
+ received_at?: string;
7582
+ recipient_email?: string | null;
7583
+ site_id?: string | null;
7584
+ source_marker?: string | null;
7585
+ state?: string;
7586
+ transactional_job_id?: string | null;
7587
+ };
7588
+ Update: {
7589
+ applied_at?: string | null;
7590
+ association_deadline?: string;
7591
+ bounce_subtype?: string | null;
7592
+ bounce_type?: string | null;
7593
+ correlation_invalid?: boolean;
7594
+ delivery_id?: string | null;
7595
+ email_id?: string | null;
7596
+ event_type?: string;
7597
+ foreign_source?: boolean;
7598
+ id?: string;
7599
+ last_error_code?: string | null;
7600
+ next_attempt_at?: string;
7601
+ observed_at?: string;
7602
+ provider?: string;
7603
+ provider_event_id?: string;
7604
+ provider_message_id?: string;
7605
+ reason?: string | null;
7606
+ received_at?: string;
7607
+ recipient_email?: string | null;
7608
+ site_id?: string | null;
7609
+ source_marker?: string | null;
7610
+ state?: string;
7611
+ transactional_job_id?: string | null;
7612
+ };
7613
+ Relationships: [
7614
+ {
7615
+ foreignKeyName: "email_webhook_receipts_email_id_fkey";
7616
+ columns: ["email_id"];
7617
+ isOneToOne: false;
7618
+ referencedRelation: "emails";
7619
+ referencedColumns: ["id"];
7620
+ },
7621
+ {
7622
+ foreignKeyName: "email_webhook_receipts_site_id_fkey";
7623
+ columns: ["site_id"];
7624
+ isOneToOne: false;
7625
+ referencedRelation: "sites";
7626
+ referencedColumns: ["id"];
7627
+ }
7628
+ ];
7629
+ };
7483
7630
  emails: {
7484
7631
  Row: {
7485
7632
  body_html: string | null;
@@ -10986,91 +11133,220 @@ export type Database = {
10986
11133
  }
10987
11134
  ];
10988
11135
  };
11136
+ newsletter_address_suppressions: {
11137
+ Row: {
11138
+ created_at: string;
11139
+ email: string;
11140
+ reason: string;
11141
+ site_id: string;
11142
+ };
11143
+ Insert: {
11144
+ created_at?: string;
11145
+ email: string;
11146
+ reason: string;
11147
+ site_id: string;
11148
+ };
11149
+ Update: {
11150
+ created_at?: string;
11151
+ email?: string;
11152
+ reason?: string;
11153
+ site_id?: string;
11154
+ };
11155
+ Relationships: [
11156
+ {
11157
+ foreignKeyName: "newsletter_address_suppressions_site_id_fkey";
11158
+ columns: ["site_id"];
11159
+ isOneToOne: false;
11160
+ referencedRelation: "sites";
11161
+ referencedColumns: ["id"];
11162
+ }
11163
+ ];
11164
+ };
11165
+ newsletter_campaign_deliveries: {
11166
+ Row: {
11167
+ accepted_at: string | null;
11168
+ attempt_count: number;
11169
+ bounce_type: string | null;
11170
+ bounced_at: string | null;
11171
+ campaign_id: string;
11172
+ captured_email: string | null;
11173
+ claim_expires_at: string | null;
11174
+ claim_token: string | null;
11175
+ click_count: number;
11176
+ clicked_at: string | null;
11177
+ complained_at: string | null;
11178
+ created_at: string;
11179
+ delivered_at: string | null;
11180
+ first_possible_acceptance_at: string | null;
11181
+ id: string;
11182
+ last_error_code: string | null;
11183
+ next_attempt_at: string | null;
11184
+ open_count: number;
11185
+ opened_at: string | null;
11186
+ payload_json: Json | null;
11187
+ provider_message_id: string | null;
11188
+ reason: Database["public"]["Enums"]["newsletter_delivery_reason"] | null;
11189
+ retry_cutoff_at: string | null;
11190
+ site_id: string;
11191
+ state: Database["public"]["Enums"]["newsletter_delivery_state"];
11192
+ subscriber_id: string | null;
11193
+ unsubscribed_at: string | null;
11194
+ updated_at: string;
11195
+ };
11196
+ Insert: {
11197
+ accepted_at?: string | null;
11198
+ attempt_count?: number;
11199
+ bounce_type?: string | null;
11200
+ bounced_at?: string | null;
11201
+ campaign_id: string;
11202
+ captured_email?: string | null;
11203
+ claim_expires_at?: string | null;
11204
+ claim_token?: string | null;
11205
+ click_count?: number;
11206
+ clicked_at?: string | null;
11207
+ complained_at?: string | null;
11208
+ created_at?: string;
11209
+ delivered_at?: string | null;
11210
+ first_possible_acceptance_at?: string | null;
11211
+ id?: string;
11212
+ last_error_code?: string | null;
11213
+ next_attempt_at?: string | null;
11214
+ open_count?: number;
11215
+ opened_at?: string | null;
11216
+ payload_json?: Json | null;
11217
+ provider_message_id?: string | null;
11218
+ reason?: Database["public"]["Enums"]["newsletter_delivery_reason"] | null;
11219
+ retry_cutoff_at?: string | null;
11220
+ site_id: string;
11221
+ state?: Database["public"]["Enums"]["newsletter_delivery_state"];
11222
+ subscriber_id?: string | null;
11223
+ unsubscribed_at?: string | null;
11224
+ updated_at?: string;
11225
+ };
11226
+ Update: {
11227
+ accepted_at?: string | null;
11228
+ attempt_count?: number;
11229
+ bounce_type?: string | null;
11230
+ bounced_at?: string | null;
11231
+ campaign_id?: string;
11232
+ captured_email?: string | null;
11233
+ claim_expires_at?: string | null;
11234
+ claim_token?: string | null;
11235
+ click_count?: number;
11236
+ clicked_at?: string | null;
11237
+ complained_at?: string | null;
11238
+ created_at?: string;
11239
+ delivered_at?: string | null;
11240
+ first_possible_acceptance_at?: string | null;
11241
+ id?: string;
11242
+ last_error_code?: string | null;
11243
+ next_attempt_at?: string | null;
11244
+ open_count?: number;
11245
+ opened_at?: string | null;
11246
+ payload_json?: Json | null;
11247
+ provider_message_id?: string | null;
11248
+ reason?: Database["public"]["Enums"]["newsletter_delivery_reason"] | null;
11249
+ retry_cutoff_at?: string | null;
11250
+ site_id?: string;
11251
+ state?: Database["public"]["Enums"]["newsletter_delivery_state"];
11252
+ subscriber_id?: string | null;
11253
+ unsubscribed_at?: string | null;
11254
+ updated_at?: string;
11255
+ };
11256
+ Relationships: [
11257
+ {
11258
+ foreignKeyName: "newsletter_campaign_deliveries_campaign_id_fkey";
11259
+ columns: ["campaign_id"];
11260
+ isOneToOne: false;
11261
+ referencedRelation: "newsletter_campaigns";
11262
+ referencedColumns: ["id"];
11263
+ },
11264
+ {
11265
+ foreignKeyName: "newsletter_campaign_deliveries_site_id_fkey";
11266
+ columns: ["site_id"];
11267
+ isOneToOne: false;
11268
+ referencedRelation: "sites";
11269
+ referencedColumns: ["id"];
11270
+ },
11271
+ {
11272
+ foreignKeyName: "newsletter_campaign_deliveries_subscriber_id_fkey";
11273
+ columns: ["subscriber_id"];
11274
+ isOneToOne: false;
11275
+ referencedRelation: "newsletter_subscribers";
11276
+ referencedColumns: ["id"];
11277
+ }
11278
+ ];
11279
+ };
10989
11280
  newsletter_campaigns: {
10990
11281
  Row: {
10991
11282
  audience_list_ids: string[];
10992
- audience_mode: string;
10993
11283
  audience_tags: string[];
10994
- bounced_count: number;
10995
- clicked_count: number;
10996
- complained_count: number;
11284
+ captured_at: string | null;
10997
11285
  created_at: string;
10998
11286
  created_by: string | null;
10999
- delivered_count: number;
11287
+ deadline_at: string | null;
11288
+ finish_reason: Database["public"]["Enums"]["newsletter_campaign_finish_reason"] | null;
11289
+ finished_at: string | null;
11000
11290
  id: string;
11001
- last_activity_at: string | null;
11291
+ intended_start_at: string | null;
11292
+ last_claimed_at: string | null;
11002
11293
  name: string;
11003
- opened_count: number;
11004
11294
  preheader: string | null;
11005
- rendered_html: string | null;
11006
- rendered_text: string | null;
11007
11295
  scheduled_at: string | null;
11008
- sent_count: number;
11009
11296
  site_id: string;
11010
11297
  snapshot_json: Json | null;
11011
- status: Database["public"]["Enums"]["newsletter_campaign_status"];
11298
+ status: Database["public"]["Enums"]["newsletter_campaign_control_state"];
11012
11299
  subject: string | null;
11013
11300
  template_id: string | null;
11014
11301
  timezone: string | null;
11015
- unsubscribed_count: number;
11016
11302
  updated_at: string;
11017
11303
  updated_by: string | null;
11018
11304
  };
11019
11305
  Insert: {
11020
11306
  audience_list_ids?: string[];
11021
- audience_mode?: string;
11022
11307
  audience_tags?: string[];
11023
- bounced_count?: number;
11024
- clicked_count?: number;
11025
- complained_count?: number;
11308
+ captured_at?: string | null;
11026
11309
  created_at?: string;
11027
11310
  created_by?: string | null;
11028
- delivered_count?: number;
11311
+ deadline_at?: string | null;
11312
+ finish_reason?: Database["public"]["Enums"]["newsletter_campaign_finish_reason"] | null;
11313
+ finished_at?: string | null;
11029
11314
  id?: string;
11030
- last_activity_at?: string | null;
11315
+ intended_start_at?: string | null;
11316
+ last_claimed_at?: string | null;
11031
11317
  name: string;
11032
- opened_count?: number;
11033
11318
  preheader?: string | null;
11034
- rendered_html?: string | null;
11035
- rendered_text?: string | null;
11036
11319
  scheduled_at?: string | null;
11037
- sent_count?: number;
11038
11320
  site_id: string;
11039
11321
  snapshot_json?: Json | null;
11040
- status?: Database["public"]["Enums"]["newsletter_campaign_status"];
11322
+ status?: Database["public"]["Enums"]["newsletter_campaign_control_state"];
11041
11323
  subject?: string | null;
11042
11324
  template_id?: string | null;
11043
11325
  timezone?: string | null;
11044
- unsubscribed_count?: number;
11045
11326
  updated_at?: string;
11046
11327
  updated_by?: string | null;
11047
11328
  };
11048
11329
  Update: {
11049
11330
  audience_list_ids?: string[];
11050
- audience_mode?: string;
11051
11331
  audience_tags?: string[];
11052
- bounced_count?: number;
11053
- clicked_count?: number;
11054
- complained_count?: number;
11332
+ captured_at?: string | null;
11055
11333
  created_at?: string;
11056
11334
  created_by?: string | null;
11057
- delivered_count?: number;
11335
+ deadline_at?: string | null;
11336
+ finish_reason?: Database["public"]["Enums"]["newsletter_campaign_finish_reason"] | null;
11337
+ finished_at?: string | null;
11058
11338
  id?: string;
11059
- last_activity_at?: string | null;
11339
+ intended_start_at?: string | null;
11340
+ last_claimed_at?: string | null;
11060
11341
  name?: string;
11061
- opened_count?: number;
11062
11342
  preheader?: string | null;
11063
- rendered_html?: string | null;
11064
- rendered_text?: string | null;
11065
11343
  scheduled_at?: string | null;
11066
- sent_count?: number;
11067
11344
  site_id?: string;
11068
11345
  snapshot_json?: Json | null;
11069
- status?: Database["public"]["Enums"]["newsletter_campaign_status"];
11346
+ status?: Database["public"]["Enums"]["newsletter_campaign_control_state"];
11070
11347
  subject?: string | null;
11071
11348
  template_id?: string | null;
11072
11349
  timezone?: string | null;
11073
- unsubscribed_count?: number;
11074
11350
  updated_at?: string;
11075
11351
  updated_by?: string | null;
11076
11352
  };
@@ -11175,192 +11451,31 @@ export type Database = {
11175
11451
  }
11176
11452
  ];
11177
11453
  };
11178
- newsletter_send_jobs: {
11454
+ newsletter_settings: {
11179
11455
  Row: {
11180
- attempt_count: number;
11181
- campaign_id: string;
11456
+ charity_number: string | null;
11457
+ company_registration_number: string | null;
11182
11458
  created_at: string;
11183
- id: string;
11184
- last_error: string | null;
11185
- locked_at: string | null;
11186
- locked_by: string | null;
11187
- max_attempts: number;
11188
- run_after: string | null;
11459
+ from_localpart: string;
11460
+ from_name: string | null;
11461
+ reply_to_email: string | null;
11462
+ sender_address_line_1: string | null;
11463
+ sender_address_line_2: string | null;
11464
+ sender_address_source: string;
11465
+ sender_city: string | null;
11466
+ sender_country: string | null;
11467
+ sender_display_name: string | null;
11468
+ sender_entity_type: Database["public"]["Enums"]["newsletter_sender_entity_type"];
11469
+ sender_postcode: string | null;
11189
11470
  site_id: string;
11190
- status: Database["public"]["Enums"]["newsletter_send_job_status"];
11471
+ track_clicks: boolean;
11472
+ track_opens: boolean;
11191
11473
  updated_at: string;
11474
+ vat_number: string | null;
11192
11475
  };
11193
11476
  Insert: {
11194
- attempt_count?: number;
11195
- campaign_id: string;
11196
- created_at?: string;
11197
- id?: string;
11198
- last_error?: string | null;
11199
- locked_at?: string | null;
11200
- locked_by?: string | null;
11201
- max_attempts?: number;
11202
- run_after?: string | null;
11203
- site_id: string;
11204
- status?: Database["public"]["Enums"]["newsletter_send_job_status"];
11205
- updated_at?: string;
11206
- };
11207
- Update: {
11208
- attempt_count?: number;
11209
- campaign_id?: string;
11210
- created_at?: string;
11211
- id?: string;
11212
- last_error?: string | null;
11213
- locked_at?: string | null;
11214
- locked_by?: string | null;
11215
- max_attempts?: number;
11216
- run_after?: string | null;
11217
- site_id?: string;
11218
- status?: Database["public"]["Enums"]["newsletter_send_job_status"];
11219
- updated_at?: string;
11220
- };
11221
- Relationships: [
11222
- {
11223
- foreignKeyName: "newsletter_send_jobs_campaign_id_fkey";
11224
- columns: ["campaign_id"];
11225
- isOneToOne: false;
11226
- referencedRelation: "newsletter_campaigns";
11227
- referencedColumns: ["id"];
11228
- },
11229
- {
11230
- foreignKeyName: "newsletter_send_jobs_site_id_fkey";
11231
- columns: ["site_id"];
11232
- isOneToOne: false;
11233
- referencedRelation: "sites";
11234
- referencedColumns: ["id"];
11235
- }
11236
- ];
11237
- };
11238
- newsletter_send_outcomes: {
11239
- Row: {
11240
- bounce_sub_type: string | null;
11241
- bounce_type: string | null;
11242
- bounced_at: string | null;
11243
- campaign_id: string;
11244
- click_count: number;
11245
- clicked_at: string | null;
11246
- complained_at: string | null;
11247
- created_at: string;
11248
- delivered_at: string | null;
11249
- id: string;
11250
- idempotency_key: string;
11251
- is_test: boolean;
11252
- job_id: string | null;
11253
- open_count: number;
11254
- opened_at: string | null;
11255
- provider_message_id: string | null;
11256
- provider_status: string | null;
11257
- site_id: string;
11258
- subscriber_id: string | null;
11259
- unsubscribed_at: string | null;
11260
- updated_at: string;
11261
- };
11262
- Insert: {
11263
- bounce_sub_type?: string | null;
11264
- bounce_type?: string | null;
11265
- bounced_at?: string | null;
11266
- campaign_id: string;
11267
- click_count?: number;
11268
- clicked_at?: string | null;
11269
- complained_at?: string | null;
11270
- created_at?: string;
11271
- delivered_at?: string | null;
11272
- id?: string;
11273
- idempotency_key: string;
11274
- is_test?: boolean;
11275
- job_id?: string | null;
11276
- open_count?: number;
11277
- opened_at?: string | null;
11278
- provider_message_id?: string | null;
11279
- provider_status?: string | null;
11280
- site_id: string;
11281
- subscriber_id?: string | null;
11282
- unsubscribed_at?: string | null;
11283
- updated_at?: string;
11284
- };
11285
- Update: {
11286
- bounce_sub_type?: string | null;
11287
- bounce_type?: string | null;
11288
- bounced_at?: string | null;
11289
- campaign_id?: string;
11290
- click_count?: number;
11291
- clicked_at?: string | null;
11292
- complained_at?: string | null;
11293
- created_at?: string;
11294
- delivered_at?: string | null;
11295
- id?: string;
11296
- idempotency_key?: string;
11297
- is_test?: boolean;
11298
- job_id?: string | null;
11299
- open_count?: number;
11300
- opened_at?: string | null;
11301
- provider_message_id?: string | null;
11302
- provider_status?: string | null;
11303
- site_id?: string;
11304
- subscriber_id?: string | null;
11305
- unsubscribed_at?: string | null;
11306
- updated_at?: string;
11307
- };
11308
- Relationships: [
11309
- {
11310
- foreignKeyName: "newsletter_send_outcomes_campaign_id_fkey";
11311
- columns: ["campaign_id"];
11312
- isOneToOne: false;
11313
- referencedRelation: "newsletter_campaigns";
11314
- referencedColumns: ["id"];
11315
- },
11316
- {
11317
- foreignKeyName: "newsletter_send_outcomes_job_id_fkey";
11318
- columns: ["job_id"];
11319
- isOneToOne: false;
11320
- referencedRelation: "newsletter_send_jobs";
11321
- referencedColumns: ["id"];
11322
- },
11323
- {
11324
- foreignKeyName: "newsletter_send_outcomes_site_id_fkey";
11325
- columns: ["site_id"];
11326
- isOneToOne: false;
11327
- referencedRelation: "sites";
11328
- referencedColumns: ["id"];
11329
- },
11330
- {
11331
- foreignKeyName: "newsletter_send_outcomes_subscriber_id_fkey";
11332
- columns: ["subscriber_id"];
11333
- isOneToOne: false;
11334
- referencedRelation: "newsletter_subscribers";
11335
- referencedColumns: ["id"];
11336
- }
11337
- ];
11338
- };
11339
- newsletter_settings: {
11340
- Row: {
11341
- charity_number: string | null;
11342
- company_registration_number: string | null;
11343
- created_at: string;
11344
- from_localpart: string;
11345
- from_name: string | null;
11346
- reply_to_email: string | null;
11347
- sender_address_line_1: string | null;
11348
- sender_address_line_2: string | null;
11349
- sender_address_source: string;
11350
- sender_city: string | null;
11351
- sender_country: string | null;
11352
- sender_display_name: string | null;
11353
- sender_entity_type: Database["public"]["Enums"]["newsletter_sender_entity_type"];
11354
- sender_postcode: string | null;
11355
- site_id: string;
11356
- track_clicks: boolean;
11357
- track_opens: boolean;
11358
- updated_at: string;
11359
- vat_number: string | null;
11360
- };
11361
- Insert: {
11362
- charity_number?: string | null;
11363
- company_registration_number?: string | null;
11477
+ charity_number?: string | null;
11478
+ company_registration_number?: string | null;
11364
11479
  created_at?: string;
11365
11480
  from_localpart?: string;
11366
11481
  from_name?: string | null;
@@ -11461,9 +11576,13 @@ export type Database = {
11461
11576
  anonymized_by: string | null;
11462
11577
  confirm_token_expires_at: string | null;
11463
11578
  confirm_token_hash: string | null;
11579
+ confirmation_list_ids: string[] | null;
11580
+ confirmation_revision: number | null;
11581
+ confirmed_at: string | null;
11464
11582
  consent_ip: string | null;
11465
11583
  consent_metadata: Json | null;
11466
11584
  consent_referer: string | null;
11585
+ consent_revision: number;
11467
11586
  consent_source: string | null;
11468
11587
  consent_source_block_id: string | null;
11469
11588
  consent_user_agent: string | null;
@@ -11492,9 +11611,13 @@ export type Database = {
11492
11611
  anonymized_by?: string | null;
11493
11612
  confirm_token_expires_at?: string | null;
11494
11613
  confirm_token_hash?: string | null;
11614
+ confirmation_list_ids?: string[] | null;
11615
+ confirmation_revision?: number | null;
11616
+ confirmed_at?: string | null;
11495
11617
  consent_ip?: string | null;
11496
11618
  consent_metadata?: Json | null;
11497
11619
  consent_referer?: string | null;
11620
+ consent_revision?: number;
11498
11621
  consent_source?: string | null;
11499
11622
  consent_source_block_id?: string | null;
11500
11623
  consent_user_agent?: string | null;
@@ -11523,9 +11646,13 @@ export type Database = {
11523
11646
  anonymized_by?: string | null;
11524
11647
  confirm_token_expires_at?: string | null;
11525
11648
  confirm_token_hash?: string | null;
11649
+ confirmation_list_ids?: string[] | null;
11650
+ confirmation_revision?: number | null;
11651
+ confirmed_at?: string | null;
11526
11652
  consent_ip?: string | null;
11527
11653
  consent_metadata?: Json | null;
11528
11654
  consent_referer?: string | null;
11655
+ consent_revision?: number;
11529
11656
  consent_source?: string | null;
11530
11657
  consent_source_block_id?: string | null;
11531
11658
  consent_user_agent?: string | null;
@@ -11605,6 +11732,10 @@ export type Database = {
11605
11732
  brand_guidelines: Json | null;
11606
11733
  cancelled_at: string | null;
11607
11734
  completed_at: string | null;
11735
+ confirmation_resend_count: number;
11736
+ confirmation_resend_previous_resent_at: string | null;
11737
+ confirmation_resend_reservation_id: string | null;
11738
+ confirmation_resent_at: string | null;
11608
11739
  created_at: string;
11609
11740
  generate_request: Json;
11610
11741
  generation_intake: Json;
@@ -11631,6 +11762,10 @@ export type Database = {
11631
11762
  brand_guidelines?: Json | null;
11632
11763
  cancelled_at?: string | null;
11633
11764
  completed_at?: string | null;
11765
+ confirmation_resend_count?: number;
11766
+ confirmation_resend_previous_resent_at?: string | null;
11767
+ confirmation_resend_reservation_id?: string | null;
11768
+ confirmation_resent_at?: string | null;
11634
11769
  created_at?: string;
11635
11770
  generate_request: Json;
11636
11771
  generation_intake: Json;
@@ -11657,6 +11792,10 @@ export type Database = {
11657
11792
  brand_guidelines?: Json | null;
11658
11793
  cancelled_at?: string | null;
11659
11794
  completed_at?: string | null;
11795
+ confirmation_resend_count?: number;
11796
+ confirmation_resend_previous_resent_at?: string | null;
11797
+ confirmation_resend_reservation_id?: string | null;
11798
+ confirmation_resent_at?: string | null;
11660
11799
  created_at?: string;
11661
11800
  generate_request?: Json;
11662
11801
  generation_intake?: Json;
@@ -18029,6 +18168,14 @@ export type Database = {
18029
18168
  };
18030
18169
  Returns: boolean;
18031
18170
  };
18171
+ append_appointment_service_to_category: {
18172
+ Args: {
18173
+ p_category_id?: string;
18174
+ p_service_id: string;
18175
+ p_site_id: string;
18176
+ };
18177
+ Returns: string;
18178
+ };
18032
18179
  apply_canonical_order_refund_projection: {
18033
18180
  Args: {
18034
18181
  p_expected_order_refunded_cents: number;
@@ -19290,6 +19437,59 @@ export type Database = {
19290
19437
  };
19291
19438
  Returns: Json;
19292
19439
  };
19440
+ create_page_with_route: {
19441
+ Args: {
19442
+ p_draft_meta_description?: string;
19443
+ p_draft_meta_title?: string;
19444
+ p_identifier: string;
19445
+ p_path: string;
19446
+ p_published_meta_title?: string;
19447
+ p_purpose: string;
19448
+ p_site_id: string;
19449
+ p_title: string;
19450
+ p_user_id: string;
19451
+ };
19452
+ Returns: {
19453
+ canonical_url: string | null;
19454
+ created_at: string;
19455
+ created_by: string | null;
19456
+ deleted_at: string | null;
19457
+ deleted_by: string | null;
19458
+ draft_meta_description: string | null;
19459
+ draft_meta_title: string | null;
19460
+ draft_path: string;
19461
+ draft_slug: string | null;
19462
+ draft_status: Database["public"]["Enums"]["route_status"];
19463
+ draft_title: string;
19464
+ draft_updated_at: string;
19465
+ id: string;
19466
+ node_id: string;
19467
+ node_type: Database["public"]["Enums"]["route_node_type"];
19468
+ og_image_id: string | null;
19469
+ published_at: string | null;
19470
+ published_meta_description: string | null;
19471
+ published_meta_title: string | null;
19472
+ published_path: string;
19473
+ published_slug: string | null;
19474
+ published_title: string;
19475
+ scheduled_publish_at: string | null;
19476
+ scheduled_publish_attempts: number;
19477
+ scheduled_publish_failed_at: string | null;
19478
+ scheduled_publish_last_error: string | null;
19479
+ scheduled_publish_last_error_at: string | null;
19480
+ scheduled_publish_requested_by: string | null;
19481
+ site_id: string;
19482
+ status: Database["public"]["Enums"]["route_status"];
19483
+ updated_at: string;
19484
+ updated_by: string | null;
19485
+ };
19486
+ SetofOptions: {
19487
+ from: "*";
19488
+ to: "site_routes";
19489
+ isOneToOne: true;
19490
+ isSetofReturn: false;
19491
+ };
19492
+ };
19293
19493
  create_site_invitation: {
19294
19494
  Args: {
19295
19495
  p_email: string;
@@ -19390,6 +19590,13 @@ export type Database = {
19390
19590
  used_capacity: number;
19391
19591
  }[];
19392
19592
  };
19593
+ delete_appointment_service_category: {
19594
+ Args: {
19595
+ p_category_id: string;
19596
+ p_site_id: string;
19597
+ };
19598
+ Returns: string;
19599
+ };
19393
19600
  delete_event_occurrence_if_unregistered: {
19394
19601
  Args: {
19395
19602
  p_occurrence_id: string;
@@ -19471,6 +19678,38 @@ export type Database = {
19471
19678
  holds_cancelled: number;
19472
19679
  }[];
19473
19680
  };
19681
+ email_apply_webhook_receipt_atomic: {
19682
+ Args: {
19683
+ p_receipt_id: string;
19684
+ };
19685
+ Returns: string;
19686
+ };
19687
+ email_feedback_last_event: {
19688
+ Args: {
19689
+ p_email_id: string;
19690
+ };
19691
+ Returns: Json;
19692
+ };
19693
+ email_issue_evidence: {
19694
+ Args: {
19695
+ p_limit?: number;
19696
+ p_offset?: number;
19697
+ };
19698
+ Returns: Json;
19699
+ };
19700
+ email_reconcile_receipt_audits: {
19701
+ Args: {
19702
+ p_limit?: number;
19703
+ };
19704
+ Returns: number;
19705
+ };
19706
+ email_status_from_feedback: {
19707
+ Args: {
19708
+ p_email_id: string;
19709
+ p_fallback: string;
19710
+ };
19711
+ Returns: string;
19712
+ };
19474
19713
  enqueue_participant_roster_assertion_job: {
19475
19714
  Args: {
19476
19715
  p_customer_id: string;
@@ -19992,60 +20231,149 @@ export type Database = {
19992
20231
  };
19993
20232
  Returns: undefined;
19994
20233
  };
19995
- newsletter_claim_send_jobs: {
20234
+ newsletter_begin_attempt_atomic: {
19996
20235
  Args: {
19997
- p_limit: number;
19998
- p_worker_id: string;
20236
+ p_claim_token: string;
20237
+ p_delivery_id: string;
20238
+ };
20239
+ Returns: string;
20240
+ };
20241
+ newsletter_capture_audience_atomic: {
20242
+ Args: {
20243
+ p_campaign_id: string;
19999
20244
  };
20245
+ Returns: number;
20246
+ };
20247
+ newsletter_claim_delivery_atomic: {
20248
+ Args: never;
20000
20249
  Returns: {
20250
+ accepted_at: string | null;
20001
20251
  attempt_count: number;
20252
+ bounce_type: string | null;
20253
+ bounced_at: string | null;
20002
20254
  campaign_id: string;
20255
+ captured_email: string | null;
20256
+ claim_expires_at: string | null;
20257
+ claim_token: string | null;
20258
+ click_count: number;
20259
+ clicked_at: string | null;
20260
+ complained_at: string | null;
20003
20261
  created_at: string;
20262
+ delivered_at: string | null;
20263
+ first_possible_acceptance_at: string | null;
20004
20264
  id: string;
20005
- last_error: string | null;
20006
- locked_at: string | null;
20007
- locked_by: string | null;
20008
- max_attempts: number;
20009
- run_after: string | null;
20265
+ last_error_code: string | null;
20266
+ next_attempt_at: string | null;
20267
+ open_count: number;
20268
+ opened_at: string | null;
20269
+ payload_json: Json | null;
20270
+ provider_message_id: string | null;
20271
+ reason: Database["public"]["Enums"]["newsletter_delivery_reason"] | null;
20272
+ retry_cutoff_at: string | null;
20010
20273
  site_id: string;
20011
- status: Database["public"]["Enums"]["newsletter_send_job_status"];
20274
+ state: Database["public"]["Enums"]["newsletter_delivery_state"];
20275
+ subscriber_id: string | null;
20276
+ unsubscribed_at: string | null;
20012
20277
  updated_at: string;
20013
20278
  }[];
20014
20279
  SetofOptions: {
20015
20280
  from: "*";
20016
- to: "newsletter_send_jobs";
20281
+ to: "newsletter_campaign_deliveries";
20017
20282
  isOneToOne: false;
20018
20283
  isSetofReturn: true;
20019
20284
  };
20020
20285
  };
20286
+ newsletter_complete_campaign_atomic: {
20287
+ Args: {
20288
+ p_campaign_id: string;
20289
+ };
20290
+ Returns: boolean;
20291
+ };
20292
+ newsletter_complete_idle_campaigns: {
20293
+ Args: never;
20294
+ Returns: string[];
20295
+ };
20296
+ newsletter_confirm_atomic: {
20297
+ Args: {
20298
+ p_hash: string;
20299
+ p_site_id: string;
20300
+ };
20301
+ Returns: boolean;
20302
+ };
20021
20303
  newsletter_count_recipients: {
20022
20304
  Args: {
20023
20305
  p_list_ids: string[];
20024
- p_mode: string;
20025
20306
  p_site_id: string;
20026
20307
  p_tags: string[];
20027
20308
  };
20028
20309
  Returns: number;
20029
20310
  };
20030
- newsletter_recompute_campaign_stats: {
20311
+ newsletter_delivery_stats: {
20312
+ Args: {
20313
+ p_campaign_id: string;
20314
+ };
20315
+ Returns: {
20316
+ bounced_count: number;
20317
+ clicked_count: number;
20318
+ complained_count: number;
20319
+ delivered_count: number;
20320
+ last_activity_at: string;
20321
+ not_sent_count: number;
20322
+ not_sent_reasons: Json;
20323
+ opened_count: number;
20324
+ remaining_count: number;
20325
+ selected_count: number;
20326
+ sent_count: number;
20327
+ unknown_count: number;
20328
+ unsubscribed_count: number;
20329
+ }[];
20330
+ };
20331
+ newsletter_finish_campaign_atomic: {
20031
20332
  Args: {
20032
20333
  p_campaign_id: string;
20334
+ p_reason: string;
20335
+ };
20336
+ Returns: boolean;
20337
+ };
20338
+ newsletter_preferences_atomic: {
20339
+ Args: {
20340
+ p_campaign_id?: string;
20341
+ p_list_ids: string[];
20342
+ p_nonce: string;
20033
20343
  p_site_id: string;
20344
+ p_subscriber_id: string;
20345
+ p_unsubscribe?: boolean;
20034
20346
  };
20035
- Returns: undefined;
20347
+ Returns: string;
20036
20348
  };
20037
- newsletter_select_recipients: {
20349
+ newsletter_record_acceptance_atomic: {
20038
20350
  Args: {
20039
- p_limit: number;
20351
+ p_delivery_id: string;
20352
+ p_provider_message_id: string;
20353
+ };
20354
+ Returns: string;
20355
+ };
20356
+ newsletter_signup_atomic: {
20357
+ Args: {
20358
+ p_confirmation_expires_at: string;
20359
+ p_confirmation_hash: string;
20360
+ p_consent: Json;
20361
+ p_double_opt_in: boolean;
20362
+ p_email: string;
20040
20363
  p_list_ids: string[];
20041
- p_mode: string;
20042
- p_offset: number;
20364
+ p_profile: Json;
20043
20365
  p_site_id: string;
20044
- p_tags: string[];
20045
20366
  };
20046
- Returns: {
20047
- subscriber_id: string;
20048
- }[];
20367
+ Returns: boolean;
20368
+ };
20369
+ newsletter_suppress_address_atomic: {
20370
+ Args: {
20371
+ p_email: string;
20372
+ p_observed_at?: string;
20373
+ p_reason: string;
20374
+ p_site_id: string;
20375
+ };
20376
+ Returns: undefined;
20049
20377
  };
20050
20378
  newsletter_update_list_memberships: {
20051
20379
  Args: {
@@ -20434,6 +20762,13 @@ export type Database = {
20434
20762
  outcome: string;
20435
20763
  }[];
20436
20764
  };
20765
+ release_onboarding_confirmation_resend_atomic: {
20766
+ Args: {
20767
+ p_attempt_id: string;
20768
+ p_reservation_id: string;
20769
+ };
20770
+ Returns: boolean;
20771
+ };
20437
20772
  release_site_invitation_resend_claim: {
20438
20773
  Args: {
20439
20774
  p_actor_user_id: string;
@@ -20498,6 +20833,23 @@ export type Database = {
20498
20833
  locked_until: string;
20499
20834
  }[];
20500
20835
  };
20836
+ reorder_appointment_service_categories: {
20837
+ Args: {
20838
+ p_expected_order: string[];
20839
+ p_next_order: string[];
20840
+ p_site_id: string;
20841
+ };
20842
+ Returns: string;
20843
+ };
20844
+ reorder_appointment_services: {
20845
+ Args: {
20846
+ p_category_id?: string;
20847
+ p_expected_order: string[];
20848
+ p_next_order: string[];
20849
+ p_site_id: string;
20850
+ };
20851
+ Returns: string;
20852
+ };
20501
20853
  replace_appointment_availability_schedule_payload: {
20502
20854
  Args: {
20503
20855
  p_interval_minutes: number;
@@ -20594,6 +20946,15 @@ export type Database = {
20594
20946
  reservation_id: string;
20595
20947
  }[];
20596
20948
  };
20949
+ reserve_onboarding_confirmation_resend_atomic: {
20950
+ Args: {
20951
+ p_attempt_id: string;
20952
+ p_cooldown_seconds: number;
20953
+ p_limit: number;
20954
+ p_reservation_id: string;
20955
+ };
20956
+ Returns: Json;
20957
+ };
20597
20958
  reserve_order_refund_capacity: {
20598
20959
  Args: {
20599
20960
  p_refund: Json;
@@ -20810,6 +21171,53 @@ export type Database = {
20810
21171
  };
20811
21172
  Returns: boolean;
20812
21173
  };
21174
+ soft_delete_page_with_route: {
21175
+ Args: {
21176
+ p_page_id: string;
21177
+ p_site_id: string;
21178
+ p_user_id: string;
21179
+ };
21180
+ Returns: {
21181
+ canonical_url: string | null;
21182
+ created_at: string;
21183
+ created_by: string | null;
21184
+ deleted_at: string | null;
21185
+ deleted_by: string | null;
21186
+ draft_meta_description: string | null;
21187
+ draft_meta_title: string | null;
21188
+ draft_path: string;
21189
+ draft_slug: string | null;
21190
+ draft_status: Database["public"]["Enums"]["route_status"];
21191
+ draft_title: string;
21192
+ draft_updated_at: string;
21193
+ id: string;
21194
+ node_id: string;
21195
+ node_type: Database["public"]["Enums"]["route_node_type"];
21196
+ og_image_id: string | null;
21197
+ published_at: string | null;
21198
+ published_meta_description: string | null;
21199
+ published_meta_title: string | null;
21200
+ published_path: string;
21201
+ published_slug: string | null;
21202
+ published_title: string;
21203
+ scheduled_publish_at: string | null;
21204
+ scheduled_publish_attempts: number;
21205
+ scheduled_publish_failed_at: string | null;
21206
+ scheduled_publish_last_error: string | null;
21207
+ scheduled_publish_last_error_at: string | null;
21208
+ scheduled_publish_requested_by: string | null;
21209
+ site_id: string;
21210
+ status: Database["public"]["Enums"]["route_status"];
21211
+ updated_at: string;
21212
+ updated_by: string | null;
21213
+ };
21214
+ SetofOptions: {
21215
+ from: "*";
21216
+ to: "site_routes";
21217
+ isOneToOne: true;
21218
+ isSetofReturn: false;
21219
+ };
21220
+ };
20813
21221
  staff_member_has_customer_record_relationship: {
20814
21222
  Args: {
20815
21223
  p_customer_id: string;
@@ -21185,6 +21593,16 @@ export type Database = {
21185
21593
  next_available_at: string;
21186
21594
  }[];
21187
21595
  };
21596
+ try_acquire_newsletter_email_capacity: {
21597
+ Args: {
21598
+ p_interval_ms: number;
21599
+ p_provider: string;
21600
+ };
21601
+ Returns: {
21602
+ allowed: boolean;
21603
+ next_available_at: string;
21604
+ }[];
21605
+ };
21188
21606
  try_cast_boolean: {
21189
21607
  Args: {
21190
21608
  input: string;
@@ -21635,8 +22053,10 @@ export type Database = {
21635
22053
  mailchimp_oauth_state_action: "connect" | "reauth";
21636
22054
  mailchimp_reauth_reason: "token_revoked" | "account_access_lost" | "permission_denied" | "unknown_auth_failure";
21637
22055
  navigation_location: "main" | "footer" | "legal";
21638
- newsletter_campaign_status: "draft" | "scheduled" | "sending" | "sent" | "cancelled" | "failed";
21639
- newsletter_send_job_status: "pending" | "processing" | "completed" | "failed" | "cancelled";
22056
+ newsletter_campaign_control_state: "draft" | "scheduled" | "sending" | "finished";
22057
+ newsletter_campaign_finish_reason: "completed" | "stopped_by_owner" | "deadline_reached" | "campaign_blocked";
22058
+ newsletter_delivery_reason: "ineligible" | "address_changed" | "owner_stopped" | "deadline" | "campaign_blocked" | "definitive_rejection" | "retry_cutoff" | "attempts_exhausted" | "payload_mismatch";
22059
+ newsletter_delivery_state: "pending" | "claimed" | "retry_wait" | "accepted" | "not_sent" | "unresolved";
21640
22060
  newsletter_sender_entity_type: "individual" | "company" | "llp" | "charity" | "other";
21641
22061
  newsletter_subscriber_status: "pending_confirmation" | "active" | "unsubscribed";
21642
22062
  plan_price_interval: "month" | "year";
@@ -22304,8 +22724,10 @@ export declare const Constants: {
22304
22724
  readonly mailchimp_oauth_state_action: readonly ["connect", "reauth"];
22305
22725
  readonly mailchimp_reauth_reason: readonly ["token_revoked", "account_access_lost", "permission_denied", "unknown_auth_failure"];
22306
22726
  readonly navigation_location: readonly ["main", "footer", "legal"];
22307
- readonly newsletter_campaign_status: readonly ["draft", "scheduled", "sending", "sent", "cancelled", "failed"];
22308
- readonly newsletter_send_job_status: readonly ["pending", "processing", "completed", "failed", "cancelled"];
22727
+ readonly newsletter_campaign_control_state: readonly ["draft", "scheduled", "sending", "finished"];
22728
+ readonly newsletter_campaign_finish_reason: readonly ["completed", "stopped_by_owner", "deadline_reached", "campaign_blocked"];
22729
+ readonly newsletter_delivery_reason: readonly ["ineligible", "address_changed", "owner_stopped", "deadline", "campaign_blocked", "definitive_rejection", "retry_cutoff", "attempts_exhausted", "payload_mismatch"];
22730
+ readonly newsletter_delivery_state: readonly ["pending", "claimed", "retry_wait", "accepted", "not_sent", "unresolved"];
22309
22731
  readonly newsletter_sender_entity_type: readonly ["individual", "company", "llp", "charity", "other"];
22310
22732
  readonly newsletter_subscriber_status: readonly ["pending_confirmation", "active", "unsubscribed"];
22311
22733
  readonly plan_price_interval: readonly ["month", "year"];