riverbankcms 0.35.0 → 0.37.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.
@@ -2537,6 +2537,11 @@ const MS_PER_WEEK = 7 * 24 * MS_PER_HOUR;
2537
2537
  function resolveBookingCutOffHours(input) {
2538
2538
  return input.eventHours ?? input.siteHours;
2539
2539
  }
2540
+ const STARTS_BOOKING = { kind: "startsBooking" };
2541
+ /** The cut-off a request is admitted against. Carrying on a booking only has the start to beat. */
2542
+ function admissionCutOffHours(continuation, cutOffHours) {
2543
+ return continuation.kind === "continuesBooking" ? BOOKING_CUT_OFF_AT_START : cutOffHours;
2544
+ }
2540
2545
  /** The instant bookings stop for something starting at `startsAt`. */
2541
2546
  function bookingClosesAt(startsAt, cutOffHours) {
2542
2547
  return new Date(Date.parse(startsAt) - cutOffHours * MS_PER_HOUR).toISOString();
@@ -2713,6 +2718,7 @@ const scheduleBookingReasonCodes = [
2713
2718
  "target_not_bookable",
2714
2719
  "target_changed",
2715
2720
  "already_booked_on_target",
2721
+ "has_room",
2716
2722
  "no_replacement_in_week",
2717
2723
  "changed_after_review",
2718
2724
  "added_after_review",
@@ -2730,12 +2736,60 @@ const businessCancellationRefusalCodes = [
2730
2736
  const businessCancellationRefusalCopy = {
2731
2737
  review_changed: "Bookings have changed since you reviewed this schedule. Review the changes again before saving.",
2732
2738
  not_found: "One of these dates could not be found. Refresh the dates and review your changes again.",
2733
- payment_in_progress: "A payment is still being processed for one of these bookings. Wait for it to finish, then review the cancellation again.",
2739
+ payment_in_progress: "A payment for one of these bookings is still going through. This usually clears within a day, so please try again later. If it's still showing tomorrow, contact us and we'll sort it out.",
2734
2740
  payment_check_unavailable: "We could not check a payment for one of these bookings. Review the cancellation again later, or contact us for help.",
2735
2741
  partial_payment_terms: "One of these bookings shares a payment arrangement with another booking. Cancel the bookings together or contact us for help.",
2736
2742
  settlement_not_allowed: "A refund choice can't be used any more: account credit may have been turned off, or how a booking was paid has changed. Review the cancellation again and choose again."
2737
2743
  };
2738
2744
 
2745
+ //#endregion
2746
+ //#region ../core/src/cancellation-kept-copy.ts
2747
+ /**
2748
+ * What the client paid and won't get back, from what the cancellation plan
2749
+ * promised and whether a refund went through. A refund it promised that didn't
2750
+ * happen can only be sorted out by the business. Credit it promised and didn't
2751
+ * put back was already refunded another way, so there's nothing to say about it.
2752
+ */
2753
+ function moneyKeptByCancellation(outcome, refunded) {
2754
+ if (refunded) return null;
2755
+ switch (outcome.kind) {
2756
+ case "keep_money":
2757
+ case "keep_credit":
2758
+ case "contact_business": return outcome;
2759
+ case "refund": return {
2760
+ kind: "contact_business",
2761
+ money: outcome.money
2762
+ };
2763
+ case "credit_back":
2764
+ case "nothing_to_return": return null;
2765
+ }
2766
+ }
2767
+ function named(businessName) {
2768
+ return businessName !== null && businessName !== undefined && businessName.trim() !== "" ? businessName : null;
2769
+ }
2770
+ function keepReasonClause(reason, context) {
2771
+ switch (reason.kind) {
2772
+ case "cutoff_passed": return `it's less than ${formatCancellationCutoffSpan(reason.cutoffHours)} until it starts`;
2773
+ case "never_refunded": {
2774
+ const business = named(context.businessName);
2775
+ return business !== null ? `${business} doesn't refund cancelled ${context.booking}s` : `cancelled ${context.booking}s aren't refunded`;
2776
+ }
2777
+ case "non_refundable_deposit": return "the deposit isn't refundable";
2778
+ }
2779
+ }
2780
+ function credits(count, context) {
2781
+ const noun = context.booking === "appointment" ? "package credit" : "pass credit";
2782
+ return count === 1 ? noun : `${count} ${noun}s`;
2783
+ }
2784
+ /** "You won't get your £10.00 back, because it's less than 2 days until it starts." */
2785
+ function cancellationKeptSentence(kept, context) {
2786
+ switch (kept.kind) {
2787
+ case "keep_money": return `You won't get your ${formatCurrencyAmount(kept.money.amountCents, kept.money.currency)} back, because ${keepReasonClause(kept.reason, context)}.`;
2788
+ case "keep_credit": return `You won't get your ${credits(kept.credits, context)} back, because ${keepReasonClause(kept.reason, context)}.`;
2789
+ case "contact_business": return `Your ${formatCurrencyAmount(kept.money.amountCents, kept.money.currency)} can't be refunded online, so please contact ${named(context.businessName) ?? "the business"} about it.`;
2790
+ }
2791
+ }
2792
+
2739
2793
  //#endregion
2740
2794
  //#region ../core/src/booking-instalments.ts
2741
2795
  function isDepositBearingBookingInstalmentPlan(plan) {
@@ -8598,7 +8652,6 @@ const PUBLIC_READ_CACHE_POLICIES = {
8598
8652
  "public_memberships"
8599
8653
  ], "batch_only"),
8600
8654
  getPublicMapLocation: availability(["public_events", "public_event_filters"], "batch_only"),
8601
- resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
8602
8655
  listPublicRouteCandidates: content(["published_content"], "batch_only"),
8603
8656
  listPublicTeamMembers: content(["public_team_members"]),
8604
8657
  listPublicProducts: availability(["public_products"], "direct"),
@@ -9642,7 +9695,7 @@ function resolveBusinessVocabulary(verticalId) {
9642
9695
  }
9643
9696
  /** What the dashboard calls the person where the business type names nobody. */
9644
9697
  const TEAM_MEMBER_NOUN = person("team member", "team members");
9645
- const indefiniteArticle = (word) => /^[aeiou]/i.test(word) ? "an" : "a";
9698
+ const indefiniteArticle = (word) => /^(honest|honour|hour|heir)/i.test(word) ? "an" : /^(uni([^nmd]|$)|use|user|euro|one|once)/i.test(word) ? "a" : /^[aeiou]/i.test(word) ? "an" : "a";
9646
9699
  function businessPersonPhrases(noun) {
9647
9700
  const withArticle = `${indefiniteArticle(noun.singular)} ${noun.singular}`;
9648
9701
  return {
@@ -10729,6 +10782,16 @@ const EMAIL_DEFINITIONS = {
10729
10782
  perEvent: false,
10730
10783
  templateStorage: true
10731
10784
  },
10785
+ event_room_changed: {
10786
+ wording: "editable",
10787
+ perEvent: false,
10788
+ templateStorage: true
10789
+ },
10790
+ event_booking_ticket_changed_admin: {
10791
+ wording: "editable",
10792
+ perEvent: false,
10793
+ templateStorage: true
10794
+ },
10732
10795
  membership_purchase_confirmation: {
10733
10796
  wording: "editable",
10734
10797
  perEvent: false,
@@ -10894,12 +10957,6 @@ const EMAIL_DEFINITIONS = {
10894
10957
  perEvent: false,
10895
10958
  templateStorage: true
10896
10959
  },
10897
- bundle_booking_confirmation: {
10898
- wording: "shared",
10899
- sharesWordingWith: "event_confirmation",
10900
- perEvent: false,
10901
- templateStorage: true
10902
- },
10903
10960
  appointment_rescheduled_customer: {
10904
10961
  wording: "editable",
10905
10962
  perEvent: false,
@@ -11178,6 +11235,126 @@ function isEventEmailTemplateType(value) {
11178
11235
  return EVENT_EMAIL_TEMPLATE_TYPES.some((key) => key === value);
11179
11236
  }
11180
11237
 
11238
+ //#endregion
11239
+ //#region ../core/src/booking-payment-copy.ts
11240
+ function siteDay(dueAt, context) {
11241
+ const parsed = parseUtcIsoDateTimeString(dueAt);
11242
+ return parsed.ok ? formatDate({
11243
+ kind: "instant",
11244
+ value: parsed.value
11245
+ }, {
11246
+ timeZone: context.siteTimezone,
11247
+ locale: context.locale
11248
+ }) : null;
11249
+ }
11250
+ /** Balance deadlines name their payable instant's site-local calendar day. */
11251
+ function formatManagedBalanceDueText(dueAt, context) {
11252
+ const date = dueAt === null ? null : siteDay(dueAt, context);
11253
+ return date === null ? "Remaining balance due before the due date" : `Remaining balance due by ${date}`;
11254
+ }
11255
+ /** "£20.00 paid, £80.00 due by 5 Dec 2026", for a balance the client pays on the site later. */
11256
+ function managedBalanceText(summary, context) {
11257
+ const outstanding = formatCurrencyAmount(summary.amountOutstandingCents, summary.currency);
11258
+ const date = summary.dueAt === null ? null : siteDay(summary.dueAt, context);
11259
+ const due = date === null ? `${outstanding} still to pay` : `${outstanding} due by ${date}`;
11260
+ return summary.amountPaidCents > 0 ? `${formatCurrencyAmount(summary.amountPaidCents, summary.currency)} paid, ${due}` : due;
11261
+ }
11262
+ /** Zero and unavailable counts do not describe credits consumed. */
11263
+ function hasUsedPassCredits(credits$1) {
11264
+ return credits$1 !== undefined && credits$1 !== 0 && !Number.isNaN(credits$1);
11265
+ }
11266
+ /** Older stored emails have no balance; zero is a known balance, not missing data. */
11267
+ function remainingPassCredits(summary) {
11268
+ return summary.passCreditsRemaining === undefined ? "" : ` (${summary.passCreditsRemaining} left)`;
11269
+ }
11270
+ function withDiscount(payment, text) {
11271
+ if (payment?.discount === undefined) return text;
11272
+ const discount = `Discount code ${payment.discount.code}: ${formatCurrencyAmount(payment.discount.savingCents, payment.discount.currency)} off`;
11273
+ return text !== null && text.length > 0 ? `${text}. ${discount}` : discount;
11274
+ }
11275
+ /** The plain payment row, as the business's notifications and the older email layout say it. */
11276
+ function formatConfirmationEmailPaymentInfo(summary, context) {
11277
+ return withDiscount(summary, baseConfirmationEmailPaymentInfo(summary, context));
11278
+ }
11279
+ function baseConfirmationEmailPaymentInfo(summary, context) {
11280
+ if (summary === undefined) return null;
11281
+ switch (summary.kind) {
11282
+ case "free":
11283
+ case "waived": return null;
11284
+ case "manual_due": return `${formatCurrencyAmount(summary.amountDueCents, summary.currency)} to be paid directly`;
11285
+ case "managed_balance_due": return managedBalanceText(summary, context);
11286
+ case "pass":
11287
+ if (!hasText(summary.passName)) return null;
11288
+ return (hasUsedPassCredits(summary.passCreditsUsed) ? `${summary.passName} (${summary.passCreditsUsed} credit${summary.passCreditsUsed === 1 ? "" : "s"} used)` : summary.passName) + remainingPassCredits(summary);
11289
+ case "membership": return `${summary.membershipName ?? "Membership"} membership`;
11290
+ case "monetary":
11291
+ if (summary.amountOutstandingCents == null || summary.amountOutstandingCents === 0) {
11292
+ return formatCurrencyAmount(summary.amountPaidCents, summary.currency);
11293
+ }
11294
+ return `${formatCurrencyAmount(summary.amountPaidCents, summary.currency)} paid. ${formatCurrencyAmount(summary.amountOutstandingCents, summary.currency)} remaining${hasText(summary.dueAt) ? ` — ${formatManagedBalanceDueText(summary.dueAt, context)}` : ""}`;
11295
+ }
11296
+ return assertNever(summary);
11297
+ }
11298
+ /** How a paid booking was paid, as the customer shell's Payment row says it. */
11299
+ function paidWith(method) {
11300
+ switch (method) {
11301
+ case "stripe": return "by card";
11302
+ case "store_credit": return "with your account credit";
11303
+ case "mixed": return "by card and account credit";
11304
+ case "manual": return "";
11305
+ }
11306
+ }
11307
+ /** What's owed outside the site, and what was paid already: nothing either way says arrival. */
11308
+ function directBalance(summary) {
11309
+ if (summary?.kind === "manual_due") return {
11310
+ paidCents: 0,
11311
+ owedCents: summary.amountDueCents,
11312
+ currency: summary.currency
11313
+ };
11314
+ if (summary?.kind !== "monetary" || summary.paymentMethod !== "manual" || (summary.amountOutstandingCents ?? 0) === 0) return null;
11315
+ return {
11316
+ paidCents: summary.amountPaidCents,
11317
+ owedCents: summary.amountOutstandingCents ?? 0,
11318
+ currency: summary.currency
11319
+ };
11320
+ }
11321
+ /** A balance agreed outside the system has no link or portal payment, so say who it goes to. */
11322
+ function directBalanceSentence(summary, context) {
11323
+ const balance = directBalance(summary);
11324
+ if (balance === null) return null;
11325
+ const owed = formatCurrencyAmount(balance.owedCents, balance.currency);
11326
+ const paid = balance.paidCents > 0 ? `${formatCurrencyAmount(balance.paidCents, balance.currency)} paid. ` : "";
11327
+ const business = hasText(context.siteTitle) ? context.siteTitle : "the business";
11328
+ const questions = context.surface === "email" ? " If you have any questions, just reply to this email." : "";
11329
+ return `${paid}${owed} to pay directly to ${business}.${questions}`;
11330
+ }
11331
+ /** Whether the payment owes the client a direct-balance sentence, which every layout says the same way. */
11332
+ function formatDirectBalancePaymentSentence(summary, context) {
11333
+ const direct = directBalanceSentence(summary, context);
11334
+ return direct === null ? null : withDiscount(summary, direct);
11335
+ }
11336
+ /** Customer payment copy shared by built-in confirmations, editable wording and the success page. */
11337
+ function formatBookingPaymentSentence(summary, context) {
11338
+ return withDiscount(summary, baseBookingPaymentSentence(summary, context));
11339
+ }
11340
+ function baseBookingPaymentSentence(summary, context) {
11341
+ if (summary === undefined) return null;
11342
+ const direct = directBalanceSentence(summary, context);
11343
+ if (direct !== null) return direct;
11344
+ switch (summary.kind) {
11345
+ case "free": return "Free";
11346
+ case "waived": return "Nothing to pay";
11347
+ case "pass":
11348
+ if (!hasText(summary.passName)) return null;
11349
+ return `Paid with your ${summary.passName}${context.passNoun ? ` ${context.passNoun}` : ""}${remainingPassCredits(summary)}`;
11350
+ case "membership": return hasText(summary.membershipName) ? `Included in your ${summary.membershipName} membership` : "Included in your membership";
11351
+ case "monetary": return summary.amountOutstandingCents == null || summary.amountOutstandingCents === 0 ? `Paid ${formatCurrencyAmount(summary.amountPaidCents, summary.currency, { decimals: "auto" })}${paidWith(summary.paymentMethod) ? ` ${paidWith(summary.paymentMethod)}` : ""}` : baseConfirmationEmailPaymentInfo(summary, context);
11352
+ case "manual_due": return null;
11353
+ case "managed_balance_due": return managedBalanceText(summary, context);
11354
+ }
11355
+ return assertNever(summary);
11356
+ }
11357
+
11181
11358
  //#endregion
11182
11359
  //#region ../core/src/editor-value-ownership.ts
11183
11360
  /** Captured editor payloads are deeply immutable; caller-owned inputs are never frozen in place. */
@@ -11484,4 +11661,4 @@ function isEventOccurrenceRouteSegment(segment) {
11484
11661
  }
11485
11662
 
11486
11663
  //#endregion
11487
- export { footerLayoutForLookId as $, parseDatedOfferingCapacityHoldId as $n, resolveBookingDisplayContext as $t, publicReadBatchFreshnessSeconds as A, mapNonEmptyArray as An, unsafeAsEventSeriesId as Ar, clampConfiguredAmount as At, parseManagementKey as B, parseCurrencyCode as Bn, deriveTotalTicketQuantity as Bt, ORDINARY_EVENT_PRESET_VALUES as C, publicEventPricingDisplay as Cn, unsafeAsSiteId as Cr, mapDrawingSchema as Ct, PUBLIC_CONTENT_FRESHNESS_SECONDS as D, resolveExactOrFreePriceDisplay as Dn, unsafeAsEventCategoryId as Dr, validateBookingPaymentOptionKinds as Dt, PUBLIC_AVAILABILITY_FRESHNESS_SECONDS as E, publicEventPricingType as En, parseRetiredCourseId as Er, BOOKING_COURSE_INSTALMENT_DEADLINES as Et, orderedLiveRunSessions as F, toCents as Fn, blockInteractionContextSchema as Fr, splitAmountWithRemainderInFirst as Ft, parseMailingListRuntimeContext as G, unsafeAsAppointmentResourceId as Gn, hasBookingClosed as Gt, parseMailingListBlockId as H, formatDurationUnitLabel as Hn, bookingCutOffHoursBetween as Ht, resolveWholeSeriesBookingPhase as I, toNonNegativeCents as In, businessCancellationRefusalCodes as It, parseMailingListGlobalForm as J, parseSiteTermsVersionId as Jn, formatDateTime as Jt, assessMailingListTargeting as K, unsafeAsStaffMemberId as Kn, formatDate as Kt, resolveWholeSeriesRunLifecycle as L, unsafeAsNonNegativeCents as Ln, scheduleBookingReasonCodes as Lt, CANCELLED_SESSION_STATUS as M, isNonNegativeWholeCents as Mn, unsafeAsPricingOptionId as Mr, getBookingInstalmentPlanIntervalCount as Mt, firstLiveRunSessionStartMs as N, parseNonNegativeCents as Nn, err as Nr, getBookingInstalmentProtectedDepositAmountCents as Nt, getPublicReadCachePolicy as O, resolvePricingOptionsPriceDisplay as On, unsafeAsEventInstanceId as Or, isLiveOrderInstalmentPlanStatus as Ot, nextLiveRunSessionStartMs as P, parsePositiveCents as Pn, ok as Pr, omitZeroAmountFutureRows as Pt, parseFooterCompositionV1 as Q, parseDatedOfferingCapacityHoldAuditRef as Qn, inferSiteDateLocale as Qt, createSecret as R, unsafeAsPositiveCents as Rn, resolveFlexibleBalanceDueAt as Rt, EVENT_PRESET_VALUES as S, publicEventPricingCurrency as Sn, parseUserId as Sr, trimmedStringOrNull as St, WHOLE_SERIES_EVENT_PRESET_VALUES as T, publicEventPricingStrategy as Tn, parseEventSeriesId as Tr, buildBookingUtcDateWindow as Tt, parseMailingListContentVersionId as U, unsafeAsBookingRequirementId as Un, formatBookingClosedTime as Ut, slugify as V, assertNever as Vn, MAX_BOOKING_CUT_OFF_HOURS as Vt, parseMailingListSignedSourceToken as W, unsafeAsDemoCapability as Wn, formatBookingCutOffHours as Wt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as X, unsafeAsEntitlementId as Xn, formatTime as Xt, DEFAULT_MAILING_LIST_PRIVACY_NOTE as Y, parseMembershipId as Yn, formatDateTimeRange as Yt, parseMailingListProviderScope as Z, unsafeAsPassId as Zn, formatTimeRange as Zt, canonicalizeConfiguredBookingVerticalConfig as _, parsePageSurfaceSubject as _n, unsafeAsOrderPaymentPlanId as _r, parseLocationValue as _t, authoredValuesEqual as a, getBookingLocalDateKey as an, unsafeAsMediaAssetId as ar, formatOpeningHoursRows as at, resolveSiteVerticalBookingConfig as b, formatEventPricing as bn, parseApiKeyId as br, toLocationCoordinates as bt, STAFF_OPERATIONAL_CAPABILITIES as c, localScheduleTimePattern as cn, unsafeAsPositiveSeconds as cr, assertAllowedPublicUrl as ct, formatCreditProductUnits as d, parseUtcIsoDateTimeString as dn, unsafeAsStorageBucketName as dr, decideLocationSave as dt, toScheduledBookingDateTime as en, unsafeAsBookingSessionId as er, parseMailingListPlacementTargeting as et, planTurningOnCourses as f, toUtcIsoDateTimeString as fn, unsafeAsStoragePath as fr, stableJsonStringify as ft, areConfiguredBookingVerticalConfigsEqual as g, parseBookingTimeZone as gn, unsafeAsOrderFlexibleBalanceContractId as gr, normalizeLocationAddressText as gt, NAVIGATION_LOCATIONS as h, toBookingTimeZone as hn, unsafeAsCheckoutLineId as hr, locationValueSchema as ht, isRecord as i, formatLocalScheduleTime as in, unsafeAsFileChecksumSha256 as ir, richTextHasText as it, publicReadFreshnessSeconds as j, mapReadonlyNonEmptyArray as jn, unsafeAsOccurrenceId as jr, getBookingInstalmentDepositRefundability as jt, isPublicReadEndpoint as k, fromArray as kn, unsafeAsEventOfferingId as kr, addIntervalPreservingMonthAnchor as kt, creditProductUnitNoun as l, parseBookingLocalDate as ln, unsafeAsSafeDownloadFilename as lr, SENSITIVE_COLLECTION_CONFIRMATION_VERSION as lt, withBookingModulesForSelectionChange as m, resolveBookingTimeZoneId as mn, unsafeAsProductId as mr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as mt, OFFLINE_PAYMENT_METHODS as n, compareLocalScheduleDates as nn, unsafeAsDeclaredMimeType as nr, planMailingListChoicePresentation as nt, applyClearable as o, getLocalScheduleDate as on, unsafeAsOriginalFilename as or, parsePublicContactDetails as ot, resolveEventCatalogue as p, resolveBookingBusinessTimeZone as pn, unsafeAsUploadSessionId as pr, locationMapLinks as pt, parseConfiguredMailingListProvider as q, parseCustomerId as qn, formatDateRange as qt, committedWriteProofSchema as r, formatLocalScheduleDate as rn, unsafeAsDetectedMimeType as rr, isCanonicalRichTextDoc as rt, clearableFrom as s, getLocalScheduleTime as sn, unsafeAsPositiveByteCount as sr, parseWeeklyOpeningHours as st, isEventOccurrenceRouteSegment as t, addLocalScheduleDays as tn, parseMediaAssetId as tr, DEFAULT_MAILING_LIST_TARGETING as tt, formatCreditProductPayment as u, parseLocalScheduleTime as un, unsafeAsSiteScopedStoragePath as ur, SENSITIVE_COLLECTION_MODES as ut, parseVerticalId as v, EVENT_PRESET_VOCABULARY as vn, parseEditorSessionGeneration as vr, projectPublicLocation as vt, SURFACE_EVENT_PRESET_VALUES as w, publicEventPricingOptions as wn, unsafeAsUserId as wr, selectCategoryView as wt, DEFAULT_EVENT_TYPE_PRESETS as x, isPublicEventPricingOptionDisplayable as xn, parseSiteId as xr, isPresent as xt, parseVerticalPresetId as y, formatBookingPriceDisplay as yn, unsafeAsSiteFontId as yr, publicLocationSchema as yt, exposeSecret as z, formatCurrencyAmount as zn, resolveFlexibleBalanceInitialPaymentCents as zt };
11664
+ export { parseFooterCompositionV1 as $, unsafeAsPassId as $n, inferSiteDateLocale as $t, publicReadBatchFreshnessSeconds as A, fromArray as An, parseRetiredCourseId as Ar, addIntervalPreservingMonthAnchor as At, exposeSecret as B, formatCurrencyAmount as Bn, resolveFlexibleBalanceInitialPaymentCents as Bt, ORDINARY_EVENT_PRESET_VALUES as C, publicEventPricingCurrency as Cn, unsafeAsSiteFontId as Cr, trimmedStringOrNull as Ct, PUBLIC_CONTENT_FRESHNESS_SECONDS as D, publicEventPricingType as Dn, unsafeAsSiteId as Dr, BOOKING_COURSE_INSTALMENT_DEADLINES as Dt, PUBLIC_AVAILABILITY_FRESHNESS_SECONDS as E, publicEventPricingStrategy as En, parseUserId as Er, buildBookingUtcDateWindow as Et, orderedLiveRunSessions as F, parsePositiveCents as Fn, unsafeAsPricingOptionId as Fr, omitZeroAmountFutureRows as Ft, parseMailingListSignedSourceToken as G, unsafeAsDemoCapability as Gn, formatBookingCutOffHours as Gt, slugify as H, assertNever as Hn, MAX_BOOKING_CUT_OFF_HOURS as Ht, resolveWholeSeriesBookingPhase as I, toCents as In, err as Ir, splitAmountWithRemainderInFirst as It, parseConfiguredMailingListProvider as J, unsafeAsStaffMemberId as Jn, formatDateRange as Jt, parseMailingListRuntimeContext as K, unsafeAsContentEntryId as Kn, hasBookingClosed as Kt, resolveWholeSeriesPaymentDates as L, toNonNegativeCents as Ln, ok as Lr, businessCancellationRefusalCodes as Lt, CANCELLED_SESSION_STATUS as M, mapReadonlyNonEmptyArray as Mn, unsafeAsEventOfferingId as Mr, getBookingInstalmentDepositRefundability as Mt, firstLiveRunSessionStartMs as N, isNonNegativeWholeCents as Nn, unsafeAsEventSeriesId as Nr, getBookingInstalmentPlanIntervalCount as Nt, getPublicReadCachePolicy as O, resolveExactOrFreePriceDisplay as On, unsafeAsUserId as Or, validateBookingPaymentOptionKinds as Ot, nextLiveRunSessionStartMs as P, parseNonNegativeCents as Pn, unsafeAsOccurrenceId as Pr, getBookingInstalmentProtectedDepositAmountCents as Pt, parseMailingListProviderScope as Q, unsafeAsEntitlementId as Qn, formatTimeRange as Qt, resolveWholeSeriesRunLifecycle as R, unsafeAsNonNegativeCents as Rn, blockInteractionContextSchema as Rr, scheduleBookingReasonCodes as Rt, EVENT_PRESET_VALUES as S, isPublicEventPricingOptionDisplayable as Sn, unsafeAsPageSurfaceId as Sr, isPresent as St, WHOLE_SERIES_EVENT_PRESET_VALUES as T, publicEventPricingOptions as Tn, parseSiteId as Tr, selectCategoryView as Tt, parseMailingListBlockId as U, formatDurationUnitLabel as Un, bookingCutOffHoursBetween as Ut, parseManagementKey as V, parseCurrencyCode as Vn, deriveTotalTicketQuantity as Vt, parseMailingListContentVersionId as W, unsafeAsBookingRequirementId as Wn, formatBookingClosedTime as Wt, DEFAULT_MAILING_LIST_PRIVACY_NOTE as X, parseSiteTermsVersionId as Xn, formatDateTimeRange as Xt, parseMailingListGlobalForm as Y, parseCustomerId as Yn, formatDateTime as Yt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Z, parseMembershipId as Zn, formatTime as Zt, canonicalizeConfiguredBookingVerticalConfig as _, parseBookingTimeZone as _n, unsafeAsCheckoutLineId as _r, normalizeLocationAddressText as _t, authoredValuesEqual as a, formatLocalScheduleTime as an, unsafeAsDetectedMimeType as ar, richTextHasText as at, resolveSiteVerticalBookingConfig as b, formatBookingPriceDisplay as bn, unsafeAsOrderPaymentReceiptId as br, publicLocationSchema as bt, STAFF_OPERATIONAL_CAPABILITIES as c, getLocalScheduleTime as cn, unsafeAsOriginalFilename as cr, parseWeeklyOpeningHours as ct, formatCreditProductUnits as d, parseLocalScheduleTime as dn, unsafeAsSafeDownloadFilename as dr, SENSITIVE_COLLECTION_MODES as dt, resolveBookingDisplayContext as en, parseDatedOfferingCapacityHoldAuditRef as er, footerLayoutForLookId as et, planTurningOnCourses as f, parseUtcIsoDateTimeString as fn, unsafeAsSiteScopedStoragePath as fr, decideLocationSave as ft, areConfiguredBookingVerticalConfigsEqual as g, toBookingTimeZone as gn, unsafeAsProductId as gr, locationValueSchema as gt, NAVIGATION_LOCATIONS as h, resolveBookingTimeZoneId as hn, unsafeAsUploadSessionId as hr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as ht, isRecord as i, formatLocalScheduleDate as in, unsafeAsDeclaredMimeType as ir, isCanonicalRichTextDoc as it, publicReadFreshnessSeconds as j, mapNonEmptyArray as jn, unsafeAsEventCategoryId as jr, clampConfiguredAmount as jt, isPublicReadEndpoint as k, resolvePricingOptionsPriceDisplay as kn, parseEventSeriesId as kr, isLiveOrderInstalmentPlanStatus as kt, creditProductUnitNoun as l, localScheduleTimePattern as ln, unsafeAsPositiveByteCount as lr, assertAllowedPublicUrl as lt, withBookingModulesForSelectionChange as m, resolveBookingBusinessTimeZone as mn, unsafeAsStoragePath as mr, locationMapLinks as mt, OFFLINE_PAYMENT_METHODS as n, addLocalScheduleDays as nn, unsafeAsBookingSessionId as nr, DEFAULT_MAILING_LIST_TARGETING as nt, applyClearable as o, getBookingLocalDateKey as on, unsafeAsFileChecksumSha256 as or, formatOpeningHoursRows as ot, resolveEventCatalogue as p, toUtcIsoDateTimeString as pn, unsafeAsStorageBucketName as pr, stableJsonStringify as pt, assessMailingListTargeting as q, unsafeAsAppointmentResourceId as qn, formatDate as qt, committedWriteProofSchema as r, compareLocalScheduleDates as rn, parseMediaAssetId as rr, planMailingListChoicePresentation as rt, clearableFrom as s, getLocalScheduleDate as sn, unsafeAsMediaAssetId as sr, parsePublicContactDetails as st, isEventOccurrenceRouteSegment as t, toScheduledBookingDateTime as tn, parseDatedOfferingCapacityHoldId as tr, parseMailingListPlacementTargeting as tt, formatCreditProductPayment as u, parseBookingLocalDate as un, unsafeAsPositiveSeconds as ur, SENSITIVE_COLLECTION_CONFIRMATION_VERSION as ut, parseVerticalId as v, parsePageSurfaceSubject as vn, unsafeAsOrderFlexibleBalanceContractId as vr, parseLocationValue as vt, SURFACE_EVENT_PRESET_VALUES as w, publicEventPricingDisplay as wn, parseApiKeyId as wr, mapDrawingSchema as wt, DEFAULT_EVENT_TYPE_PRESETS as x, formatEventPricing as xn, parseEditorSessionGeneration as xr, toLocationCoordinates as xt, parseVerticalPresetId as y, EVENT_PRESET_VOCABULARY as yn, unsafeAsOrderPaymentPlanId as yr, projectPublicLocation as yt, createSecret as z, unsafeAsPositiveCents as zn, resolveFlexibleBalanceDueAt as zt };
package/dist/testing.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import "./sdk-event-upsert-DoazwQVt.mjs";
3
- import "./src-CysOxz1U.mjs";
4
- import { Dn as createOutput, R as calculateEntryDiffs, U as syncLocalMediaForPush, W as syncLocalMediaForPull, Wt as applyPushConfigPlan, it as readEntries, mt as writeMediaManifest, o as executeEntryCommandPlanAsSyncResult, qt as preparePushConfigTarget, t as compileEntryPushCommands } from "./entryCommands-D-1ldejM.mjs";
5
- import "./load-config-DB_S_gdr.mjs";
2
+ import "./sdk-event-upsert-BL6uAz53.mjs";
3
+ import "./src-ClX_VLD6.mjs";
4
+ import { Dn as createOutput, R as calculateEntryDiffs, U as syncLocalMediaForPush, W as syncLocalMediaForPull, Wt as applyPushConfigPlan, it as readEntries, mt as writeMediaManifest, o as executeEntryCommandPlanAsSyncResult, qt as preparePushConfigTarget, t as compileEntryPushCommands } from "./entryCommands-CXGj-eca.mjs";
5
+ import "./load-config-Bhh-kYhx.mjs";
6
6
 
7
7
  export { applyPushConfigPlan, calculateEntryDiffs, compileEntryPushCommands, createOutput, executeEntryCommandPlanAsSyncResult, preparePushConfigTarget, readEntries, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "riverbankcms",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "Riverbank CMS command-line tools for SDK site developers",
5
5
  "bin": {
6
6
  "riverbankcms": "dist/cli/index.mjs"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as loadConfigFile } from "./load-config-DB_S_gdr.mjs";
3
-
4
- export { loadConfigFile };