@riverbankcms/sdk 0.60.12 → 0.60.14

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 (91) hide show
  1. package/README.md +10 -7
  2. package/dist/_dts/api/src/bookingConfig.d.ts +31 -1
  3. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +38 -1
  4. package/dist/_dts/api/src/bookingOperations.d.ts +3 -0
  5. package/dist/_dts/api/src/bookingRecords.d.ts +45 -0
  6. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
  7. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -5
  8. package/dist/_dts/api/src/communications.d.ts +1 -1
  9. package/dist/_dts/api/src/contentRuntime.d.ts +1 -1
  10. package/dist/_dts/api/src/endpoints.d.ts +89 -9
  11. package/dist/_dts/api/src/index.d.ts +2 -1
  12. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
  13. package/dist/_dts/api/src/seoEndpoints.d.ts +2 -0
  14. package/dist/_dts/api/src/siteAssets.d.ts +0 -10
  15. package/dist/_dts/api/src/types.d.ts +1 -1
  16. package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -0
  17. package/dist/_dts/blocks/src/index.d.ts +1 -0
  18. package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
  19. package/dist/_dts/blocks/src/server.d.ts +1 -0
  20. package/dist/_dts/blocks/src/subroutes/fold.d.ts +40 -0
  21. package/dist/_dts/blocks/src/subroutes/formatDate.d.ts +12 -0
  22. package/dist/_dts/blocks/src/subroutes/index.d.ts +3 -0
  23. package/dist/_dts/blocks/src/subroutes/kinds.d.ts +32 -0
  24. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +3 -1
  25. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +2 -0
  26. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +1 -0
  27. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +1 -0
  28. package/dist/_dts/blocks/src/system/spacing.d.ts +2 -1
  29. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +5 -0
  30. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +5 -1
  31. package/dist/_dts/core/src/booking-refunds.d.ts +8 -0
  32. package/dist/_dts/core/src/participant-identity.d.ts +1 -73
  33. package/dist/_dts/core/src/participants.d.ts +19 -7
  34. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +188 -36
  35. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +3 -3
  36. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +3 -3
  37. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -3
  38. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -3
  39. package/dist/_dts/preview-next/src/client/preview/SubrouteNoticePanel.d.ts +13 -0
  40. package/dist/_dts/preview-next/src/client/preview/subrouteNotice.d.ts +26 -0
  41. package/dist/_dts/sdk/src/contracts/page.d.ts +1 -0
  42. package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
  43. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -0
  44. package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +4 -5
  45. package/dist/_dts/sdk/src/version.d.ts +1 -1
  46. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
  47. package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +17 -0
  48. package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -1
  49. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  50. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +66 -30
  51. package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +16 -0
  52. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
  53. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +3 -3
  54. package/dist/_dts/theme-core/src/schema.d.ts +174 -6
  55. package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +328 -15
  56. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +54 -2
  57. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +124 -0
  58. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  59. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  60. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +21 -0
  61. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +2 -1
  62. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
  63. package/dist/_dts/theme-core/src/site-styles/types.d.ts +135 -2
  64. package/dist/_dts/ui/src/badge.d.ts +1 -1
  65. package/dist/_dts/ui/src/button.d.ts +1 -1
  66. package/dist/cli/index.mjs +744 -176
  67. package/dist/client/bookings.mjs +115 -63
  68. package/dist/client/client.mjs +848 -227
  69. package/dist/client/hooks.mjs +737 -173
  70. package/dist/client/rendering/client.mjs +179 -100
  71. package/dist/client/rendering/islands.mjs +179 -99
  72. package/dist/client/rendering.mjs +847 -226
  73. package/dist/preview-next/before-render.mjs +103 -16
  74. package/dist/preview-next/client/runtime.mjs +1615 -319
  75. package/dist/preview-next/middleware.mjs +103 -16
  76. package/dist/server/components.mjs +838 -227
  77. package/dist/server/config-validation.mjs +737 -173
  78. package/dist/server/config.mjs +737 -173
  79. package/dist/server/data.mjs +737 -173
  80. package/dist/server/index.mjs +106 -79
  81. package/dist/server/next.mjs +841 -229
  82. package/dist/server/page-converter.mjs +589 -144
  83. package/dist/server/prebuild.mjs +1 -1
  84. package/dist/server/rendering/server.mjs +838 -227
  85. package/dist/server/rendering.mjs +838 -227
  86. package/dist/server/routing.mjs +771 -178
  87. package/dist/server/server.mjs +738 -174
  88. package/dist/server/theme-bridge.mjs +216 -39
  89. package/dist/server/theme.mjs +139 -37
  90. package/dist/styles/index.css +44 -2
  91. package/package.json +1 -1
@@ -610,7 +610,7 @@ var ENDPOINT_DEFINITIONS = {
610
610
  method: "GET",
611
611
  tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
612
612
  auth: "user",
613
- responseKind: "text"
613
+ responseKind: "blob"
614
614
  },
615
615
  getNewsletterSubscriber: {
616
616
  path: "/sites/{siteId}/newsletter/subscribers/{subscriberId}",
@@ -941,12 +941,7 @@ var ENDPOINT_DEFINITIONS = {
941
941
  ],
942
942
  auth: "user",
943
943
  responseKind: "json",
944
- errors: [
945
- "validation:invalid_input",
946
- "resource:not_found",
947
- "resource:conflict",
948
- "server:internal_error"
949
- ]
944
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
950
945
  },
951
946
  unpublishTeamMemberProfile: {
952
947
  path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/unpublish",
@@ -1199,6 +1194,13 @@ var ENDPOINT_DEFINITIONS = {
1199
1194
  auth: "user",
1200
1195
  responseKind: "json"
1201
1196
  },
1197
+ exportBookingAppointmentsCsv: {
1198
+ path: "/sites/{siteId}/bookings/appointments/export.csv",
1199
+ method: "GET",
1200
+ auth: "user",
1201
+ errors: [],
1202
+ responseKind: "blob"
1203
+ },
1202
1204
  createAppointment: {
1203
1205
  path: "/sites/{siteId}/bookings/appointments",
1204
1206
  method: "POST",
@@ -1326,6 +1328,13 @@ var ENDPOINT_DEFINITIONS = {
1326
1328
  auth: "user",
1327
1329
  responseKind: "json"
1328
1330
  },
1331
+ exportCourseEnrollmentsCsv: {
1332
+ path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments/export.csv",
1333
+ method: "GET",
1334
+ auth: "user",
1335
+ errors: [],
1336
+ responseKind: "blob"
1337
+ },
1329
1338
  listCourseWaitlist: {
1330
1339
  path: "/sites/{siteId}/bookings/courses/{courseId}/waitlist",
1331
1340
  method: "GET",
@@ -2688,6 +2697,14 @@ var ENDPOINT_DEFINITIONS = {
2688
2697
  auth: "user",
2689
2698
  responseKind: "json"
2690
2699
  },
2700
+ exportSeoPagesCsv: {
2701
+ path: "/sites/{siteId}/seo/pages",
2702
+ method: "GET",
2703
+ tags: ["site-{siteId}", "seo-pages-{siteId}"],
2704
+ auth: "user",
2705
+ responseKind: "blob",
2706
+ errors: []
2707
+ },
2691
2708
  getSeoQueries: {
2692
2709
  path: "/sites/{siteId}/seo/queries",
2693
2710
  method: "GET",
@@ -2696,6 +2713,14 @@ var ENDPOINT_DEFINITIONS = {
2696
2713
  auth: "user",
2697
2714
  responseKind: "json"
2698
2715
  },
2716
+ exportSeoQueriesCsv: {
2717
+ path: "/sites/{siteId}/seo/queries",
2718
+ method: "GET",
2719
+ tags: ["site-{siteId}", "seo-queries-{siteId}"],
2720
+ auth: "user",
2721
+ responseKind: "blob",
2722
+ errors: []
2723
+ },
2699
2724
  getPerformanceOverview: {
2700
2725
  path: "/sites/{siteId}/performance/overview",
2701
2726
  method: "GET",
@@ -2744,7 +2769,12 @@ var ENDPOINT_DEFINITIONS = {
2744
2769
  path: "/media/{assetId}/canonical-crop",
2745
2770
  method: "POST",
2746
2771
  tags: ["media", "media-{assetId}"],
2747
- errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"],
2772
+ errors: [
2773
+ "validation:invalid_input",
2774
+ "resource:not_found",
2775
+ "resource:conflict",
2776
+ "server:internal_error"
2777
+ ],
2748
2778
  auth: "user",
2749
2779
  responseKind: "json"
2750
2780
  },
@@ -3076,7 +3106,7 @@ var ENDPOINT_DEFINITIONS = {
3076
3106
  method: "GET",
3077
3107
  tags: [TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug],
3078
3108
  auth: "user",
3079
- responseKind: "text"
3109
+ responseKind: "blob"
3080
3110
  },
3081
3111
  // Public submit
3082
3112
  submitForm: {
@@ -3959,6 +3989,14 @@ var ENDPOINT_DEFINITIONS = {
3959
3989
  auth: "user",
3960
3990
  responseKind: "json"
3961
3991
  },
3992
+ exportEventSeriesAttendeesCsv: {
3993
+ path: "/sites/{siteId}/bookings/event-series/{seriesId}/attendees/export.csv",
3994
+ method: "GET",
3995
+ tags: ["site-{siteId}", "event-series-{seriesId}"],
3996
+ auth: "user",
3997
+ errors: [],
3998
+ responseKind: "blob"
3999
+ },
3962
4000
  listEventSeriesWaitlist: {
3963
4001
  path: "/sites/{siteId}/bookings/event-series/{seriesId}/waitlist",
3964
4002
  method: "GET",
@@ -4522,6 +4560,14 @@ var ENDPOINT_DEFINITIONS = {
4522
4560
  auth: "user",
4523
4561
  responseKind: "json"
4524
4562
  },
4563
+ exportBookingCustomersCsv: {
4564
+ path: "/sites/{siteId}/bookings/customers/export.csv",
4565
+ method: "GET",
4566
+ tags: ["site-{siteId}", "customers-{siteId}"],
4567
+ auth: "user",
4568
+ errors: [],
4569
+ responseKind: "blob"
4570
+ },
4525
4571
  createBookingCustomer: {
4526
4572
  path: "/sites/{siteId}/bookings/customers",
4527
4573
  method: "POST",
@@ -4549,6 +4595,21 @@ var ENDPOINT_DEFINITIONS = {
4549
4595
  "server:internal_error"
4550
4596
  ]
4551
4597
  },
4598
+ rectifyBookingParticipantIdentity: {
4599
+ path: "/sites/{siteId}/bookings/participants/{participantId}/identity",
4600
+ method: "PATCH",
4601
+ tags: ["site-{siteId}", "customers-{siteId}"],
4602
+ auth: "user",
4603
+ responseKind: "json",
4604
+ errors: [
4605
+ "validation:invalid_input",
4606
+ "auth:forbidden",
4607
+ "resource:not_found",
4608
+ "resource:already_exists",
4609
+ "resource:conflict",
4610
+ "server:internal_error"
4611
+ ]
4612
+ },
4552
4613
  listCustomerPasses: {
4553
4614
  path: "/sites/{siteId}/bookings/customers/{customerId}/passes",
4554
4615
  method: "GET",
@@ -4683,13 +4744,46 @@ var ENDPOINT_DEFINITIONS = {
4683
4744
  auth: "user",
4684
4745
  responseKind: "json"
4685
4746
  },
4747
+ exportMoneyPaymentsCsv: {
4748
+ path: "/sites/{siteId}/bookings/money/payments/export.csv",
4749
+ method: "GET",
4750
+ tags: ["site-{siteId}", "bookings", "money-payments-{siteId}"],
4751
+ errors: [],
4752
+ auth: "user",
4753
+ responseKind: "blob"
4754
+ },
4755
+ exportMoneyBreakdownsCsv: {
4756
+ path: "/sites/{siteId}/bookings/money/report/breakdowns/export.csv",
4757
+ method: "GET",
4758
+ tags: ["site-{siteId}", "bookings", "money-report-{siteId}"],
4759
+ errors: [],
4760
+ auth: "user",
4761
+ responseKind: "blob"
4762
+ },
4763
+ exportMoneyTimeSeriesCsv: {
4764
+ path: "/sites/{siteId}/bookings/money/report/time-series/export.csv",
4765
+ method: "GET",
4766
+ tags: ["site-{siteId}", "bookings", "money-report-{siteId}"],
4767
+ errors: [],
4768
+ auth: "user",
4769
+ responseKind: "blob"
4770
+ },
4686
4771
  listBookingActivity: {
4687
4772
  path: "/sites/{siteId}/bookings/activity",
4688
4773
  method: "GET",
4689
4774
  tags: ["site-{siteId}", "bookings", "activity-{siteId}"],
4775
+ errors: [],
4690
4776
  auth: "user",
4691
4777
  responseKind: "json"
4692
4778
  },
4779
+ exportBookingActivityCsv: {
4780
+ path: "/sites/{siteId}/bookings/activity/export.csv",
4781
+ method: "GET",
4782
+ tags: ["site-{siteId}", "bookings", "activity-{siteId}"],
4783
+ errors: [],
4784
+ auth: "user",
4785
+ responseKind: "blob"
4786
+ },
4693
4787
  // Site logs
4694
4788
  listSiteActivityLogs: {
4695
4789
  path: "/sites/{siteId}/logs/activity",
@@ -4841,13 +4935,6 @@ var ENDPOINT_DEFINITIONS = {
4841
4935
  auth: "user",
4842
4936
  responseKind: "blob"
4843
4937
  },
4844
- exportSeoCsv: {
4845
- path: "/sites/{siteId}/seo/export",
4846
- method: "GET",
4847
- tags: ["site-{siteId}", "seo"],
4848
- auth: "user",
4849
- responseKind: "blob"
4850
- },
4851
4938
  // Admin site cost (for admin panel)
4852
4939
  adminSiteCost: {
4853
4940
  path: "/admin/sites/{siteId}/cost",
@@ -6286,7 +6373,7 @@ var SimpleCache = class {
6286
6373
  };
6287
6374
 
6288
6375
  // src/version.ts
6289
- var SDK_VERSION = "0.60.12";
6376
+ var SDK_VERSION = "0.60.14";
6290
6377
 
6291
6378
  // src/client/error.ts
6292
6379
  var RiverbankApiError = class _RiverbankApiError extends Error {
@@ -8145,68 +8232,6 @@ import { z as z4 } from "zod";
8145
8232
  // ../blocks/src/system/manifest/schema.ts
8146
8233
  import { z as z3 } from "zod";
8147
8234
 
8148
- // ../core/src/participant-identity.ts
8149
- var PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD = {
8150
- participant_id: {
8151
- field: "participant_id",
8152
- role: "canonical_link",
8153
- canonicalSource: "booking_participants.id",
8154
- contractAction: "tighten_in_839",
8155
- notes: "Canonical person-subject link for a participation. #839 should enforce this once preflight is clean."
8156
- },
8157
- display_name: {
8158
- field: "display_name",
8159
- role: "contextual_snapshot",
8160
- canonicalSource: "booking_participants.display_name for live identity",
8161
- contractAction: "retain_as_snapshot",
8162
- notes: "Participation-time display context. Readers must not treat it as mutable live participant identity."
8163
- },
8164
- email: {
8165
- field: "email",
8166
- role: "contextual_snapshot",
8167
- canonicalSource: "booking_participants.email_normalized for live email identity",
8168
- contractAction: "retain_as_snapshot",
8169
- notes: "Participation-time contact snapshot used for notifications/context. Live identity belongs to the participant row."
8170
- },
8171
- email_normalized: {
8172
- field: "email_normalized",
8173
- role: "contextual_snapshot",
8174
- canonicalSource: "booking_participants.email_normalized for live email identity",
8175
- contractAction: "retain_as_snapshot",
8176
- notes: "Normalized snapshot/dedupe helper for the participation slot, not live person authority."
8177
- },
8178
- phone: {
8179
- field: "phone",
8180
- role: "contextual_snapshot",
8181
- canonicalSource: "booking_participants.phone for live phone identity",
8182
- contractAction: "retain_as_snapshot",
8183
- notes: "Participation-time phone context. Live identity belongs to the participant row."
8184
- },
8185
- identity_state: {
8186
- field: "identity_state",
8187
- role: "materialization_state",
8188
- canonicalSource: "booking_participants.identity_state for subject state",
8189
- contractAction: "review_for_later_contract_cleanup",
8190
- notes: "Slot materialization state: booker_supplied, contactable, portal_claimed, or staff_verified."
8191
- },
8192
- event_attendee_guest_id: {
8193
- field: "event_attendee_guest_id",
8194
- role: "compatibility_projection",
8195
- canonicalSource: "canonical participant slot plus #838 event guest compatibility projection",
8196
- contractAction: "retain_as_projection",
8197
- notes: "Compatibility FK for event guest read models. It is not person identity authority."
8198
- }
8199
- };
8200
- var PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATIONS = [
8201
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.participant_id,
8202
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.display_name,
8203
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.email,
8204
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.email_normalized,
8205
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.phone,
8206
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.identity_state,
8207
- PARTICIPANT_PARTICIPATION_IDENTITY_FIELD_CLASSIFICATION_BY_FIELD.event_attendee_guest_id
8208
- ];
8209
-
8210
8235
  // ../media-core/src/aspectTransforms.ts
8211
8236
  function parseAspectRatioValue(value) {
8212
8237
  if (typeof value === "number") {
@@ -9221,6 +9246,8 @@ var CUSTOMER_MEMBERSHIP_PAYMENT_REFUND_FAILED_CODES = [
9221
9246
  var STANDARD_LINE_ITEM_REFUND_INVALID_CODES = [
9222
9247
  "missing_amount",
9223
9248
  "amount_exceeds_remaining",
9249
+ "credit_refunds_disabled",
9250
+ "missing_credit_customer",
9224
9251
  "deposit_refund_override_required",
9225
9252
  "refund_revoke_requires_full_line_refund",
9226
9253
  "unified_order_link_required"