riverbankcms 0.38.0 → 0.38.1
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.
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +11178 -10234
- package/dist/{entryCommands-Db_o9w2r.mjs → entryCommands-CINe1Vw0.mjs} +258 -64
- package/dist/{eventUpsertInputSchema-CHMFsN8M.mjs → eventUpsertInputSchema-DLz8m6J9.mjs} +2 -2
- package/dist/load-config-DUFFruh_.mjs +4 -0
- package/dist/{load-config-aVpLIpK_.mjs → load-config-Dl_o53yP.mjs} +2 -2
- package/dist/{plan-CNisrgzZ.mjs → plan-D0-jU0Ye.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-CLqEh-D2.mjs → sdk-event-upsert-78zikPNp.mjs} +2 -2
- package/dist/{src-CE4CDO3T.mjs → src-e6JfJMDt.mjs} +1 -1
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-CkNUO_cn.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { $n as parseCustomerId, A as getPublicReadCachePolicy, At as validateBookingPaymentOptionKinds, Bn as unsafeAsNonNegativeCents, Br as parseRetiredCourseId, Bt as scheduleBookingReasonCodes, C as DEFAULT_EVENT_TYPE_PRESETS, Cr as parseOrderId, Dr as unsafeAsOrderPaymentPlanId, E as SURFACE_EVENT_PRESET_VALUES, Er as unsafeAsOrderFlexibleBalanceContractId, Fn as isNonNegativeWholeCents$1, Gr as unsafeAsPricingOptionId, H as exposeSecret, Hn as formatCurrencyAmount, Hr as unsafeAsEventOfferingId, Ht as resolveFlexibleBalanceInitialPaymentCents, In as parseNonNegativeCents, Kr as err, Ln as parsePositiveCents, Lr as parseAttendeeId, Lt as omitZeroAmountFutureRows, M as publicReadBatchFreshnessSeconds, Mn as fromArray, Mr as parseApiKeyId, Mt as addIntervalPreservingMonthAnchor, N as publicReadFreshnessSeconds, Nr as parseSiteId, Nt as clampConfiguredAmount, O as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, Or as unsafeAsOrderPaymentReceiptId, Pr as parseUserId, Pt as getBookingInstalmentDepositRefundability, Qn as unsafeAsStaffMemberId, Rn as toCents, Rr as parseEventSeriesId, Rt as splitAmountWithRemainderInFirst, S as resolveSiteVerticalBookingConfig, St as publicLocationSchema, Tr as unsafeAsCheckoutLineId, Tt as trimmedStringOrNull, U as parseManagementKey, Un as parseCurrencyCode, Ur as unsafeAsEventSeriesId, V as createSecret, Vn as unsafeAsPositiveCents, Vt as resolveFlexibleBalanceDueAt, Wn as assertNever, Wr as unsafeAsOccurrenceId, Xn as parseClientArrangementId, Yn as parseAppointmentId, Yt as formatDate, Zn as unsafeAsAppointmentResourceId, _n as resolveBookingTimeZoneId, ar as parseDatedOfferingCapacityHoldAuditRef, b as parseVerticalId, dt as assertAllowedPublicUrl, er as parseSiteTermsVersionId, et as parseMailingListProviderScope, fn as parseBookingLocalDate, g as withBookingModulesForSelectionChange, h as resolveEventCatalogue, hn as toUtcIsoDateTimeString, ht as stableJsonStringify, i as committedWriteProofSchema, in as addLocalScheduleDays, ir as unsafeAsPassId, j as isPublicReadEndpoint, jt as isLiveOrderInstalmentPlanStatus, k as PUBLIC_CONTENT_FRESHNESS_SECONDS, kr as parseEditorSessionGeneration, ln as getLocalScheduleDate, lr as parseMediaAssetId, m as planTurningOnCourses, n as OFFLINE_PAYMENT_METHODS, nr as parseMembershipId, on as formatLocalScheduleDate, or as parseDatedOfferingCapacityHoldId, qr as ok, r as bookingContextId, s as APPOINTMENT_REQUEST_OUTCOME_VALUES, sr as parseWaitlistEntryId, tr as parseEntitlementId, tt as parseFooterCompositionV1, u as STAFF_OPERATIONAL_CAPABILITIES, v as areConfiguredBookingVerticalConfigsEqual, vt as locationValueSchema, w as EVENT_PRESET_VALUES, wr as parseOrderPaymentReceiptId, x as parseVerticalPresetId, y as canonicalizeConfiguredBookingVerticalConfig, zn as toNonNegativeCents, zr as parseEventSeriesRegistrationId, zt as businessCancellationRefusalCodes } from "./src-
|
|
4
|
-
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-
|
|
2
|
+
import { At as getMimeType, Br as createSiteCommandSiteRef, Bt as footerPreferencesSchema, Cn as require_dist, Dr as compareEntrySlug, Er as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema, In as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Kn as ICON_PICKER_PRESETS, Mr as createCommandRef, Mt as normalizeAmbiguousStoragePathForSite, Nr as createContentEntryRef, Or as bookingQuestionAttachmentSchema, Pt as FILE_SIZE_LIMITS, Qn as asHeaderStyleId, St as buildMediaIdentifierFromFilename, Tr as asSiteStyleId, Tt as resolveMediaIdentifier, Ur as slugPart, V as themeSchema, Xn as asFooterLookId, Yn as SUPPORTED_LOADER_ENDPOINTS, Zn as asHeaderLayoutId, Zt as buttonStyleSelectionSchema, at as parseAspectRatioValue, b as getSiteCommandMetadata, br as asDesignBoundaryId, bt as mediaTypeDiscriminants, ct as getDirectImageUrlForSiteScopedPath, er as footerLookIdValues, h as parseAndPlanCommandBatchForTypes, hr as asAppearancePresetId, k as headerPreferencesSchema, kt as getExtensionForMimeType, l as resolvePageUpsertSeo, m as createDryRunReport, n as sdkCourseBookingSettingsSchema, nr as headerStyleIdValues, or as SYSTEM_BLOCK_KINDS, p as stableStringify, r as sdkEventOccurrenceInputSchema, s as eventVisibilitySchema, tr as headerLayoutIdValues, v as evaluateSiteCommandBatchExposure, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wn as eventBookingOfferIntentSchema, wr as asPageFlowPresetId, y as evaluateSiteCommandExposure, yr as asDesignBlockId, yt as isDisplayMediaKind } from "./sdk-event-upsert-78zikPNp.mjs";
|
|
3
|
+
import { $n as parseCustomerId, A as getPublicReadCachePolicy, At as validateBookingPaymentOptionKinds, Bn as unsafeAsNonNegativeCents, Br as parseRetiredCourseId, Bt as scheduleBookingReasonCodes, C as DEFAULT_EVENT_TYPE_PRESETS, Cr as parseOrderId, Dr as unsafeAsOrderPaymentPlanId, E as SURFACE_EVENT_PRESET_VALUES, Er as unsafeAsOrderFlexibleBalanceContractId, Fn as isNonNegativeWholeCents$1, Gr as unsafeAsPricingOptionId, H as exposeSecret, Hn as formatCurrencyAmount, Hr as unsafeAsEventOfferingId, Ht as resolveFlexibleBalanceInitialPaymentCents, In as parseNonNegativeCents, Kr as err, Ln as parsePositiveCents, Lr as parseAttendeeId, Lt as omitZeroAmountFutureRows, M as publicReadBatchFreshnessSeconds, Mn as fromArray, Mr as parseApiKeyId, Mt as addIntervalPreservingMonthAnchor, N as publicReadFreshnessSeconds, Nr as parseSiteId, Nt as clampConfiguredAmount, O as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, Or as unsafeAsOrderPaymentReceiptId, Pr as parseUserId, Pt as getBookingInstalmentDepositRefundability, Qn as unsafeAsStaffMemberId, Rn as toCents, Rr as parseEventSeriesId, Rt as splitAmountWithRemainderInFirst, S as resolveSiteVerticalBookingConfig, St as publicLocationSchema, Tr as unsafeAsCheckoutLineId, Tt as trimmedStringOrNull, U as parseManagementKey, Un as parseCurrencyCode, Ur as unsafeAsEventSeriesId, V as createSecret, Vn as unsafeAsPositiveCents, Vt as resolveFlexibleBalanceDueAt, Wn as assertNever, Wr as unsafeAsOccurrenceId, Xn as parseClientArrangementId, Yn as parseAppointmentId, Yt as formatDate, Zn as unsafeAsAppointmentResourceId, _n as resolveBookingTimeZoneId, ar as parseDatedOfferingCapacityHoldAuditRef, b as parseVerticalId, dt as assertAllowedPublicUrl, er as parseSiteTermsVersionId, et as parseMailingListProviderScope, fn as parseBookingLocalDate, g as withBookingModulesForSelectionChange, h as resolveEventCatalogue, hn as toUtcIsoDateTimeString, ht as stableJsonStringify, i as committedWriteProofSchema, in as addLocalScheduleDays, ir as unsafeAsPassId, j as isPublicReadEndpoint, jt as isLiveOrderInstalmentPlanStatus, k as PUBLIC_CONTENT_FRESHNESS_SECONDS, kr as parseEditorSessionGeneration, ln as getLocalScheduleDate, lr as parseMediaAssetId, m as planTurningOnCourses, n as OFFLINE_PAYMENT_METHODS, nr as parseMembershipId, on as formatLocalScheduleDate, or as parseDatedOfferingCapacityHoldId, qr as ok, r as bookingContextId, s as APPOINTMENT_REQUEST_OUTCOME_VALUES, sr as parseWaitlistEntryId, tr as parseEntitlementId, tt as parseFooterCompositionV1, u as STAFF_OPERATIONAL_CAPABILITIES, v as areConfiguredBookingVerticalConfigsEqual, vt as locationValueSchema, w as EVENT_PRESET_VALUES, wr as parseOrderPaymentReceiptId, x as parseVerticalPresetId, y as canonicalizeConfiguredBookingVerticalConfig, zn as toNonNegativeCents, zr as parseEventSeriesRegistrationId, zt as businessCancellationRefusalCodes } from "./src-e6JfJMDt.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-Dl_o53yP.mjs";
|
|
5
5
|
import { safeParse, z } from "zod";
|
|
6
6
|
import { Argument, Command, Option } from "commander";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -4108,11 +4108,6 @@ const eventCalendarListLayoutCompatibleDisplayModeValues = ["combined", "list"];
|
|
|
4108
4108
|
//#region ../site-contracts/src/siteData/eventCheckoutTypes.ts
|
|
4109
4109
|
/** The most dates or runs one booking request may name; the block stops ticking at the same number. */
|
|
4110
4110
|
const MAX_EVENT_BOOKING_SELECTION_ITEMS = 20;
|
|
4111
|
-
/**
|
|
4112
|
-
* The most earlier bookings one request may name as its own. A tab holds one place at a time, so the
|
|
4113
|
-
* few are that booking and the attempts that might have replaced it.
|
|
4114
|
-
*/
|
|
4115
|
-
const MAX_REPLACED_REGISTRATION_COMMAND_IDS = 3;
|
|
4116
4111
|
|
|
4117
4112
|
//#endregion
|
|
4118
4113
|
//#region ../site-contracts/src/siteData/eventSelectionFunding.ts
|
|
@@ -8817,39 +8812,6 @@ function orderRefundNeedsReconciliation(refund) {
|
|
|
8817
8812
|
return !orderRefundEffectsComplete(refund.entitlementActionStatus) || refund.status === "reconciliation_needed" || refund.status === "failed";
|
|
8818
8813
|
}
|
|
8819
8814
|
|
|
8820
|
-
//#endregion
|
|
8821
|
-
//#region ../commerce/src/purchase/eventCheckoutRecoveryWindow.ts
|
|
8822
|
-
const EVENT_CHECKOUT_HOLD_DURATION_MS = 35 * 60 * 1e3;
|
|
8823
|
-
/** The crons that release lapsed holds run every five minutes, so a place can stay held this much longer. */
|
|
8824
|
-
const EVENT_CHECKOUT_HOLD_SWEEP_ALLOWANCE_MS = 5 * 60 * 1e3;
|
|
8825
|
-
/**
|
|
8826
|
-
* How long after an unfinished checkout starts its places are free again, in whole minutes. Copy that
|
|
8827
|
-
* tells a booker when to try again reads this ("about 40 minutes"), so it follows the hold if that changes.
|
|
8828
|
-
*/
|
|
8829
|
-
const EVENT_CHECKOUT_PLACES_FREE_AFTER_MINUTES = Math.ceil((EVENT_CHECKOUT_HOLD_DURATION_MS + EVENT_CHECKOUT_HOLD_SWEEP_ALLOWANCE_MS) / 6e4);
|
|
8830
|
-
const EVENT_CHECKOUT_RECOVERY_GRACE_MS = 24 * 60 * 60 * 1e3;
|
|
8831
|
-
/** Admission deadlines close new bookings; an admitted payment gets the full hold window. */
|
|
8832
|
-
function eventCheckoutPaymentDeadlineEpoch(deadlineEpoch, nowMs) {
|
|
8833
|
-
return Math.max(deadlineEpoch, Math.floor((nowMs + EVENT_CHECKOUT_HOLD_DURATION_MS) / 1e3));
|
|
8834
|
-
}
|
|
8835
|
-
function validInstant(value) {
|
|
8836
|
-
const instant = Date.parse(value);
|
|
8837
|
-
return Number.isFinite(instant) ? instant : null;
|
|
8838
|
-
}
|
|
8839
|
-
function eventCheckoutProvisionalRecoverableUntil(now) {
|
|
8840
|
-
return new Date(now.getTime() + EVENT_CHECKOUT_HOLD_DURATION_MS + EVENT_CHECKOUT_RECOVERY_GRACE_MS).toISOString();
|
|
8841
|
-
}
|
|
8842
|
-
function eventCheckoutRecoverableUntil(input) {
|
|
8843
|
-
const holdExpiresAt = validInstant(input.holdExpiresAt);
|
|
8844
|
-
const sessionExpiresAt = input.sessionExpiresAtEpochSeconds * 1e3;
|
|
8845
|
-
if (holdExpiresAt === null || !Number.isFinite(sessionExpiresAt)) return null;
|
|
8846
|
-
return new Date(Math.max(holdExpiresAt, sessionExpiresAt) + EVENT_CHECKOUT_RECOVERY_GRACE_MS).toISOString();
|
|
8847
|
-
}
|
|
8848
|
-
function eventCheckoutRecoveryIsDiscoverable(recoverableUntil, now) {
|
|
8849
|
-
const instant = validInstant(recoverableUntil);
|
|
8850
|
-
return instant !== null && instant > now.getTime();
|
|
8851
|
-
}
|
|
8852
|
-
|
|
8853
8815
|
//#endregion
|
|
8854
8816
|
//#region ../commerce/src/purchase/roomWords.ts
|
|
8855
8817
|
const PEOPLE_WORD = {
|
|
@@ -8933,19 +8895,18 @@ const fundingChangedMessages = {
|
|
|
8933
8895
|
membership: "Your membership changed since you chose it. Check how you’d like to pay and try again."
|
|
8934
8896
|
};
|
|
8935
8897
|
/**
|
|
8936
|
-
* Said to a booker whose earlier
|
|
8937
|
-
*
|
|
8938
|
-
*
|
|
8898
|
+
* Said to a booker whose earlier booking this one can't replace, because its payment has started (or
|
|
8899
|
+
* can't be checked yet). An unpaid one would just be replaced (#1832). It doesn't hand back the earlier
|
|
8900
|
+
* booking, so it tells them where the answer will come from: the confirmation email, or the organiser.
|
|
8939
8901
|
*/
|
|
8940
8902
|
function earlierBookingUnpaid(subject, otherwise = "") {
|
|
8941
|
-
const
|
|
8942
|
-
return
|
|
8903
|
+
const started = subject === null ? "You’ve already started paying for an earlier booking, so we can’t take another one." : `You’ve already started paying for ${subject}, so we can’t take another booking for it.`;
|
|
8904
|
+
return `${started} ${otherwise}If that payment goes through, you’ll get a confirmation email. If you don’t get one, please contact the organiser.`;
|
|
8943
8905
|
}
|
|
8944
8906
|
/** The server picks one of these, since it knows the date and what else was chosen; the form shows it as sent. */
|
|
8945
8907
|
const earlierBookingUnpaidMessages = {
|
|
8946
8908
|
oneDate: (date) => earlierBookingUnpaid(date),
|
|
8947
|
-
amongDates: (date) => earlierBookingUnpaid(date, "untick that date
|
|
8948
|
-
thisDate: earlierBookingUnpaid("this date"),
|
|
8909
|
+
amongDates: (date) => earlierBookingUnpaid(date, "You can untick that date to book the others. "),
|
|
8949
8910
|
run: earlierBookingUnpaid("this run")
|
|
8950
8911
|
};
|
|
8951
8912
|
const eventRegistrationErrors = {
|
|
@@ -9119,6 +9080,32 @@ function eventRegistrationErrorEndsCommand(value) {
|
|
|
9119
9080
|
return reason !== null && eventRegistrationErrors[reason].endsCommand;
|
|
9120
9081
|
}
|
|
9121
9082
|
|
|
9083
|
+
//#endregion
|
|
9084
|
+
//#region ../commerce/src/purchase/eventCheckoutRecoveryWindow.ts
|
|
9085
|
+
const EVENT_CHECKOUT_HOLD_DURATION_MS = 35 * 60 * 1e3;
|
|
9086
|
+
const EVENT_CHECKOUT_RECOVERY_GRACE_MS = 24 * 60 * 60 * 1e3;
|
|
9087
|
+
/** Admission deadlines close new bookings; an admitted payment gets the full hold window. */
|
|
9088
|
+
function eventCheckoutPaymentDeadlineEpoch(deadlineEpoch, nowMs) {
|
|
9089
|
+
return Math.max(deadlineEpoch, Math.floor((nowMs + EVENT_CHECKOUT_HOLD_DURATION_MS) / 1e3));
|
|
9090
|
+
}
|
|
9091
|
+
function validInstant(value) {
|
|
9092
|
+
const instant = Date.parse(value);
|
|
9093
|
+
return Number.isFinite(instant) ? instant : null;
|
|
9094
|
+
}
|
|
9095
|
+
function eventCheckoutProvisionalRecoverableUntil(now) {
|
|
9096
|
+
return new Date(now.getTime() + EVENT_CHECKOUT_HOLD_DURATION_MS + EVENT_CHECKOUT_RECOVERY_GRACE_MS).toISOString();
|
|
9097
|
+
}
|
|
9098
|
+
function eventCheckoutRecoverableUntil(input) {
|
|
9099
|
+
const holdExpiresAt = validInstant(input.holdExpiresAt);
|
|
9100
|
+
const sessionExpiresAt = input.sessionExpiresAtEpochSeconds * 1e3;
|
|
9101
|
+
if (holdExpiresAt === null || !Number.isFinite(sessionExpiresAt)) return null;
|
|
9102
|
+
return new Date(Math.max(holdExpiresAt, sessionExpiresAt) + EVENT_CHECKOUT_RECOVERY_GRACE_MS).toISOString();
|
|
9103
|
+
}
|
|
9104
|
+
function eventCheckoutRecoveryIsDiscoverable(recoverableUntil, now) {
|
|
9105
|
+
const instant = validInstant(recoverableUntil);
|
|
9106
|
+
return instant !== null && instant > now.getTime();
|
|
9107
|
+
}
|
|
9108
|
+
|
|
9122
9109
|
//#endregion
|
|
9123
9110
|
//#region ../commerce/src/purchase/checkoutPresentation.ts
|
|
9124
9111
|
function publishableKeyMode(publishableKey) {
|
|
@@ -11853,10 +11840,20 @@ const customerPortalWaitlistSubjectSchema = exactSchema()(z.discriminatedUnion("
|
|
|
11853
11840
|
startsAt: z.string(),
|
|
11854
11841
|
endsAt: z.string(),
|
|
11855
11842
|
timeZone: z.string(),
|
|
11843
|
+
deliveryMode: z.enum([
|
|
11844
|
+
"in_person",
|
|
11845
|
+
"online",
|
|
11846
|
+
"hybrid"
|
|
11847
|
+
]),
|
|
11856
11848
|
isOnline: z.boolean()
|
|
11857
11849
|
}), z.object({
|
|
11858
11850
|
kind: z.literal("wholeSeries"),
|
|
11859
11851
|
timeZone: z.string(),
|
|
11852
|
+
deliveryMode: z.enum([
|
|
11853
|
+
"in_person",
|
|
11854
|
+
"online",
|
|
11855
|
+
"hybrid"
|
|
11856
|
+
]),
|
|
11860
11857
|
isOnline: z.boolean(),
|
|
11861
11858
|
eventSeriesId: z.string(),
|
|
11862
11859
|
scheduleSummary: z.string().nullable()
|
|
@@ -11887,6 +11884,7 @@ const waitlistEntryBase = {
|
|
|
11887
11884
|
subject: customerPortalWaitlistSubjectSchema,
|
|
11888
11885
|
eventTitle: z.string(),
|
|
11889
11886
|
eventPath: z.string().nullable(),
|
|
11887
|
+
venueName: z.string().nullable(),
|
|
11890
11888
|
requestedPlaces: z.number(),
|
|
11891
11889
|
joinedAt: z.string()
|
|
11892
11890
|
};
|
|
@@ -12434,6 +12432,8 @@ const knownTaskSchema = evolvingSchema()(z.discriminatedUnion("kind", [
|
|
|
12434
12432
|
...taskBase,
|
|
12435
12433
|
kind: z.literal("pay"),
|
|
12436
12434
|
orderId: z.string(),
|
|
12435
|
+
orderNumber: z.string(),
|
|
12436
|
+
placedAt: z.string(),
|
|
12437
12437
|
for: portalPaymentForViewSchema,
|
|
12438
12438
|
due: portalPaymentDueSchema,
|
|
12439
12439
|
moneyLine: z.string()
|
|
@@ -12738,6 +12738,7 @@ const knownEntrySchema = exactSchema()(z.discriminatedUnion("kind", [z.object({
|
|
|
12738
12738
|
kind: z.literal("refund"),
|
|
12739
12739
|
key: z.string(),
|
|
12740
12740
|
order: paymentOrderSchema,
|
|
12741
|
+
paymentReceiptId: z.string().nullable(),
|
|
12741
12742
|
...refundFields
|
|
12742
12743
|
})]));
|
|
12743
12744
|
const unsupportedEntrySchema = unknownKind(ENTRY_KINDS).extend({
|
|
@@ -14154,6 +14155,21 @@ const GIFTING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
14154
14155
|
"server:internal_error"
|
|
14155
14156
|
]
|
|
14156
14157
|
},
|
|
14158
|
+
changeGiftExpiry: {
|
|
14159
|
+
path: "/sites/{siteId}/gifting/gifts/{giftId}/expiry",
|
|
14160
|
+
method: "POST",
|
|
14161
|
+
tags: ["site-{siteId}", "gifting-gifts-{siteId}"],
|
|
14162
|
+
auth: "user",
|
|
14163
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN,
|
|
14164
|
+
responseKind: "json",
|
|
14165
|
+
errors: [
|
|
14166
|
+
"validation:invalid_input",
|
|
14167
|
+
"auth:forbidden",
|
|
14168
|
+
"resource:not_found",
|
|
14169
|
+
"resource:conflict",
|
|
14170
|
+
"server:internal_error"
|
|
14171
|
+
]
|
|
14172
|
+
},
|
|
14157
14173
|
updateGiftingSettings: {
|
|
14158
14174
|
path: "/sites/{siteId}/gifting/settings",
|
|
14159
14175
|
method: "PATCH",
|
|
@@ -20545,7 +20561,11 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
20545
20561
|
method: "GET",
|
|
20546
20562
|
auth: "public",
|
|
20547
20563
|
responseKind: "json",
|
|
20548
|
-
errors: [
|
|
20564
|
+
errors: [
|
|
20565
|
+
"resource:not_found",
|
|
20566
|
+
"resource:gone",
|
|
20567
|
+
"server:internal_error"
|
|
20568
|
+
]
|
|
20549
20569
|
},
|
|
20550
20570
|
portalGetBooking: {
|
|
20551
20571
|
path: "/portal/bookings/{kind}/{bookingId}",
|
|
@@ -22293,7 +22313,11 @@ const BOOKING_SETTINGS_EMAIL_SEND_KEYS = [
|
|
|
22293
22313
|
//#endregion
|
|
22294
22314
|
//#region ../api/src/event-listing-destination.ts
|
|
22295
22315
|
const EVENT_LISTING_DESTINATION_SETTINGS_KEY = "listingDestination";
|
|
22316
|
+
/** The button's label for an external event with no page: the card is all there is. */
|
|
22296
22317
|
const DEFAULT_EXTERNAL_EVENT_CTA_LABEL = "View details";
|
|
22318
|
+
/** The button's label for an external event with a page: its title already opens the details. */
|
|
22319
|
+
const DEFAULT_EXTERNAL_EVENT_WITH_PAGE_CTA_LABEL = "Book";
|
|
22320
|
+
const externalEventPageValues = ["own", "none"];
|
|
22297
22321
|
function isRecord$11(value) {
|
|
22298
22322
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
22299
22323
|
}
|
|
@@ -22303,16 +22327,32 @@ function normalizeOptionalLabel(value) {
|
|
|
22303
22327
|
function normalizeOptionalUrl(value) {
|
|
22304
22328
|
return typeof value === "string" ? value.trim() : "";
|
|
22305
22329
|
}
|
|
22306
|
-
function
|
|
22330
|
+
function readStoredPage(value) {
|
|
22331
|
+
return value === "own" ? "own" : "none";
|
|
22332
|
+
}
|
|
22333
|
+
function normalizeDestinationInput(value, pageWhenNotGiven) {
|
|
22307
22334
|
if (!value || value.kind === "native") {
|
|
22308
22335
|
return { kind: "native" };
|
|
22309
22336
|
}
|
|
22310
22337
|
return {
|
|
22311
22338
|
kind: "external",
|
|
22312
22339
|
url: normalizeOptionalUrl(value.url),
|
|
22313
|
-
label: normalizeOptionalLabel(value.label)
|
|
22340
|
+
label: normalizeOptionalLabel(value.label),
|
|
22341
|
+
page: value.page ?? pageWhenNotGiven
|
|
22314
22342
|
};
|
|
22315
22343
|
}
|
|
22344
|
+
/** A new event's destination: an external one has its own page unless told otherwise. */
|
|
22345
|
+
function normalizeEventListingDestinationInput(value) {
|
|
22346
|
+
return normalizeDestinationInput(value, "own");
|
|
22347
|
+
}
|
|
22348
|
+
/**
|
|
22349
|
+
* An existing event's next destination. An omitted `page` keeps the stored
|
|
22350
|
+
* choice; an event switching from booking here to booking elsewhere keeps the
|
|
22351
|
+
* page it already has.
|
|
22352
|
+
*/
|
|
22353
|
+
function resolveEventListingDestinationUpdate(current, value) {
|
|
22354
|
+
return normalizeDestinationInput(value, current.kind === "external" ? current.page : "own");
|
|
22355
|
+
}
|
|
22316
22356
|
function readEventListingDestinationFromSettings(settingsJson) {
|
|
22317
22357
|
if (!isRecord$11(settingsJson)) {
|
|
22318
22358
|
return { kind: "native" };
|
|
@@ -22324,16 +22364,55 @@ function readEventListingDestinationFromSettings(settingsJson) {
|
|
|
22324
22364
|
return {
|
|
22325
22365
|
kind: "external",
|
|
22326
22366
|
url: normalizeOptionalUrl(rawDestination.url),
|
|
22327
|
-
label: normalizeOptionalLabel(rawDestination.label)
|
|
22367
|
+
label: normalizeOptionalLabel(rawDestination.label),
|
|
22368
|
+
page: readStoredPage(rawDestination.page)
|
|
22328
22369
|
};
|
|
22329
22370
|
}
|
|
22371
|
+
/**
|
|
22372
|
+
* Whether the event has a page people are sent to: every event booked here,
|
|
22373
|
+
* and one booked elsewhere that has its own page. Page links, serving, the
|
|
22374
|
+
* Content tab, page checks and taking the page offline follow this;
|
|
22375
|
+
* cancellation, payments and availability follow `kind`.
|
|
22376
|
+
*/
|
|
22377
|
+
function eventDestinationHasPage(destination) {
|
|
22378
|
+
return destination.kind === "native" || destination.page === "own";
|
|
22379
|
+
}
|
|
22380
|
+
/**
|
|
22381
|
+
* The page fact for a page backed by several series: a series page has one,
|
|
22382
|
+
* an offering page has its linked series. A valid ordinary offering has exactly
|
|
22383
|
+
* one; if the links are malformed, any series without a page withholds it
|
|
22384
|
+
* rather than guessing which one speaks for it.
|
|
22385
|
+
*/
|
|
22386
|
+
function eventPageDestinationFromSettings(linkedSeriesSettings) {
|
|
22387
|
+
const destinations = linkedSeriesSettings.map(readEventListingDestinationFromSettings);
|
|
22388
|
+
if (!destinations.some((destination) => destination.kind === "external")) {
|
|
22389
|
+
return { kind: "native" };
|
|
22390
|
+
}
|
|
22391
|
+
return {
|
|
22392
|
+
kind: "external",
|
|
22393
|
+
page: destinations.every(eventDestinationHasPage) ? "own" : "none"
|
|
22394
|
+
};
|
|
22395
|
+
}
|
|
22396
|
+
/**
|
|
22397
|
+
* Whether an event page is withheld from the public (#1540, #1864).
|
|
22398
|
+
*
|
|
22399
|
+
* Every event keeps its page, and the page's publish state follows Go live as
|
|
22400
|
+
* it does for any event. An event booked on another website without its own
|
|
22401
|
+
* page sends nobody there, so public reads treat that page as not found and
|
|
22402
|
+
* its card links out instead. Switching back to booking on the site, or giving
|
|
22403
|
+
* it its own page, serves the page again as it stands.
|
|
22404
|
+
*/
|
|
22405
|
+
function isEventPageWithheld(linkedSeriesSettings) {
|
|
22406
|
+
return !eventDestinationHasPage(eventPageDestinationFromSettings(linkedSeriesSettings));
|
|
22407
|
+
}
|
|
22330
22408
|
function serializeEventListingDestination(destination) {
|
|
22331
22409
|
switch (destination.kind) {
|
|
22332
22410
|
case "native": return { kind: "native" };
|
|
22333
22411
|
case "external": return {
|
|
22334
22412
|
kind: "external",
|
|
22335
22413
|
url: destination.url,
|
|
22336
|
-
label: destination.label
|
|
22414
|
+
label: destination.label,
|
|
22415
|
+
page: destination.page
|
|
22337
22416
|
};
|
|
22338
22417
|
}
|
|
22339
22418
|
}
|
|
@@ -22371,7 +22450,7 @@ function parseExternalEventUrl(value) {
|
|
|
22371
22450
|
}
|
|
22372
22451
|
}
|
|
22373
22452
|
function getExternalEventCtaLabel(destination) {
|
|
22374
|
-
return destination.label ?? DEFAULT_EXTERNAL_EVENT_CTA_LABEL;
|
|
22453
|
+
return destination.label ?? (destination.page === "own" ? DEFAULT_EXTERNAL_EVENT_WITH_PAGE_CTA_LABEL : DEFAULT_EXTERNAL_EVENT_CTA_LABEL);
|
|
22375
22454
|
}
|
|
22376
22455
|
function getEventListingDestinationPublicationIssue(destination) {
|
|
22377
22456
|
if (destination.kind === "native") {
|
|
@@ -22387,26 +22466,43 @@ function getEventListingDestinationPublicationIssue(destination) {
|
|
|
22387
22466
|
message: validation.error.message
|
|
22388
22467
|
};
|
|
22389
22468
|
}
|
|
22469
|
+
/**
|
|
22470
|
+
* Where a public event sends people. A native event needs its page path. An
|
|
22471
|
+
* external event needs a valid link, and carries its page when it has one and
|
|
22472
|
+
* the page has a path; without a path it links out like an event with no page.
|
|
22473
|
+
*/
|
|
22390
22474
|
function buildPublicEventDestination(input) {
|
|
22475
|
+
const pagePath = input.pagePath.trim() ? input.pagePath : null;
|
|
22391
22476
|
if (input.listingDestination.kind === "native") {
|
|
22392
|
-
|
|
22393
|
-
return null;
|
|
22394
|
-
}
|
|
22395
|
-
return {
|
|
22477
|
+
return pagePath ? {
|
|
22396
22478
|
kind: "native",
|
|
22397
|
-
mode: input.
|
|
22398
|
-
path:
|
|
22399
|
-
};
|
|
22479
|
+
mode: input.pageMode,
|
|
22480
|
+
path: pagePath
|
|
22481
|
+
} : null;
|
|
22400
22482
|
}
|
|
22401
22483
|
const validation = parseExternalEventUrl(input.listingDestination.url);
|
|
22402
22484
|
if (!validation.ok) {
|
|
22403
22485
|
return null;
|
|
22404
22486
|
}
|
|
22405
|
-
|
|
22487
|
+
const base = {
|
|
22406
22488
|
kind: "external",
|
|
22407
22489
|
url: validation.url,
|
|
22408
22490
|
label: getExternalEventCtaLabel(input.listingDestination)
|
|
22409
22491
|
};
|
|
22492
|
+
return input.listingDestination.page === "own" && pagePath ? {
|
|
22493
|
+
...base,
|
|
22494
|
+
page: {
|
|
22495
|
+
mode: input.pageMode,
|
|
22496
|
+
path: pagePath
|
|
22497
|
+
}
|
|
22498
|
+
} : base;
|
|
22499
|
+
}
|
|
22500
|
+
/** The page a public destination links to, if it has one. */
|
|
22501
|
+
function publicEventDestinationPage(destination) {
|
|
22502
|
+
return destination.kind === "native" ? {
|
|
22503
|
+
mode: destination.mode,
|
|
22504
|
+
path: destination.path
|
|
22505
|
+
} : destination.page ?? null;
|
|
22410
22506
|
}
|
|
22411
22507
|
|
|
22412
22508
|
//#endregion
|
|
@@ -29489,6 +29585,103 @@ Examples:
|
|
|
29489
29585
|
}
|
|
29490
29586
|
});
|
|
29491
29587
|
|
|
29588
|
+
//#endregion
|
|
29589
|
+
//#region ../api/src/navigation/siteLegalLinks.ts
|
|
29590
|
+
const noPlatformLegalPages = {
|
|
29591
|
+
privacyPolicyHref: null,
|
|
29592
|
+
bookingTermsHref: null,
|
|
29593
|
+
siteHosts: []
|
|
29594
|
+
};
|
|
29595
|
+
const PLATFORM_LEGAL_MENU_ID = "platform-legal-menu";
|
|
29596
|
+
/** Stands in for the site's own origin while resolving a relative link. */
|
|
29597
|
+
const OWN_SITE_BASE = "https://own-site.invalid";
|
|
29598
|
+
function bareHost(host) {
|
|
29599
|
+
return host.trim().toLowerCase().replace(/^https?:\/\//u, "").replace(/[/:].*$/u, "").replace(/^www\./u, "");
|
|
29600
|
+
}
|
|
29601
|
+
/**
|
|
29602
|
+
* Where a link goes, compared case-insensitively and without trailing
|
|
29603
|
+
* slashes: a path on the site itself (relative, or absolute on one of its
|
|
29604
|
+
* hosts) is keyed by its path alone; any other link keeps its whole address.
|
|
29605
|
+
*/
|
|
29606
|
+
function destinationKey(href, siteHosts) {
|
|
29607
|
+
const trimmed = href.trim().toLowerCase();
|
|
29608
|
+
const parsed = URL.canParse(trimmed, OWN_SITE_BASE) ? new URL(trimmed, OWN_SITE_BASE) : null;
|
|
29609
|
+
if (parsed === null || !/^https?:$/u.test(parsed.protocol)) return trimmed.replace(/(.)\/+$/u, "$1");
|
|
29610
|
+
const path$3 = parsed.pathname.replace(/(.)\/+$/u, "$1") + parsed.search;
|
|
29611
|
+
const own = parsed.origin === OWN_SITE_BASE || siteHosts.has(bareHost(parsed.hostname));
|
|
29612
|
+
return own ? path$3 : `${parsed.protocol}//${bareHost(parsed.host)}${path$3}`;
|
|
29613
|
+
}
|
|
29614
|
+
/**
|
|
29615
|
+
* The written address of an owner's link, whatever its kind (url, external or
|
|
29616
|
+
* an internal link that carries one). Links to the owner's own pages can't
|
|
29617
|
+
* point at the platform's reserved legal routes, so they never duplicate one.
|
|
29618
|
+
*/
|
|
29619
|
+
function urlHref(url) {
|
|
29620
|
+
if (url === null || typeof url !== "object" || Array.isArray(url)) return null;
|
|
29621
|
+
const href = url.href;
|
|
29622
|
+
return typeof href === "string" && href.trim().length > 0 ? href : null;
|
|
29623
|
+
}
|
|
29624
|
+
/**
|
|
29625
|
+
* The one owner of which platform legal links a site's footer adds: a link
|
|
29626
|
+
* for each published platform page the owner's Legal links menu doesn't
|
|
29627
|
+
* already point at. Derived on every read, so it can't outlive the page.
|
|
29628
|
+
*/
|
|
29629
|
+
function platformLegalLinks(pages, ownerLegalItems) {
|
|
29630
|
+
const siteHosts = new Set(pages.siteHosts.map(bareHost));
|
|
29631
|
+
const ownerHrefs = new Set(ownerLegalItems.flatMap((item) => {
|
|
29632
|
+
const href = urlHref(item.url);
|
|
29633
|
+
return href === null ? [] : [destinationKey(href, siteHosts)];
|
|
29634
|
+
}));
|
|
29635
|
+
const candidates = [pages.privacyPolicyHref === null ? null : {
|
|
29636
|
+
id: "platform-legal-privacy",
|
|
29637
|
+
label: "Privacy policy",
|
|
29638
|
+
href: pages.privacyPolicyHref
|
|
29639
|
+
}, pages.bookingTermsHref === null ? null : {
|
|
29640
|
+
id: "platform-legal-booking-terms",
|
|
29641
|
+
label: "Booking terms",
|
|
29642
|
+
href: pages.bookingTermsHref
|
|
29643
|
+
}];
|
|
29644
|
+
return candidates.filter((link$1) => link$1 !== null && !ownerHrefs.has(destinationKey(link$1.href, siteHosts)));
|
|
29645
|
+
}
|
|
29646
|
+
/** The site's Legal links menu, with its platform links after the owner's own items. */
|
|
29647
|
+
function withPlatformLegalLinks(menus, pages, site) {
|
|
29648
|
+
const ownerMenu = menus.find((menu$1) => menu$1.location === "legal");
|
|
29649
|
+
const links = platformLegalLinks(pages, ownerMenu?.items ?? []);
|
|
29650
|
+
if (links.length === 0) return [...menus];
|
|
29651
|
+
const stamp = site.updatedAt;
|
|
29652
|
+
const menu = ownerMenu ?? {
|
|
29653
|
+
id: PLATFORM_LEGAL_MENU_ID,
|
|
29654
|
+
location: "legal",
|
|
29655
|
+
siteId: site.id,
|
|
29656
|
+
userId: site.userId,
|
|
29657
|
+
createdAt: stamp,
|
|
29658
|
+
updatedAt: stamp,
|
|
29659
|
+
sdkContentHash: null,
|
|
29660
|
+
sdkSyncedAt: null,
|
|
29661
|
+
items: []
|
|
29662
|
+
};
|
|
29663
|
+
const firstIndex = menu.items.reduce((max, item) => Math.max(max, item.orderIndex + 1), 0);
|
|
29664
|
+
const merged = {
|
|
29665
|
+
...menu,
|
|
29666
|
+
items: [...menu.items, ...links.map((link$1, index) => ({
|
|
29667
|
+
id: link$1.id,
|
|
29668
|
+
label: link$1.label,
|
|
29669
|
+
urlType: "url",
|
|
29670
|
+
url: {
|
|
29671
|
+
kind: "url",
|
|
29672
|
+
href: link$1.href
|
|
29673
|
+
},
|
|
29674
|
+
menuId: menu.id,
|
|
29675
|
+
isCta: false,
|
|
29676
|
+
orderIndex: firstIndex + index,
|
|
29677
|
+
parentId: null,
|
|
29678
|
+
createdAt: stamp,
|
|
29679
|
+
updatedAt: stamp
|
|
29680
|
+
}))]
|
|
29681
|
+
};
|
|
29682
|
+
return ownerMenu ? menus.map((candidate) => candidate === ownerMenu ? merged : candidate) : [...menus, merged];
|
|
29683
|
+
}
|
|
29684
|
+
|
|
29492
29685
|
//#endregion
|
|
29493
29686
|
//#region ../api/src/navigationMenuValidation.ts
|
|
29494
29687
|
function hasChildren(item) {
|
|
@@ -32658,8 +32851,9 @@ function footerNavigationFacts(menu) {
|
|
|
32658
32851
|
* the SDK and the editor preview (which has no route map) all decide alike, and a link
|
|
32659
32852
|
* that needs a route can't drop the whole links module.
|
|
32660
32853
|
*/
|
|
32661
|
-
function footerMenuNavigationFacts(menus) {
|
|
32854
|
+
function footerMenuNavigationFacts(menus, platformLegalPages = noPlatformLegalPages) {
|
|
32662
32855
|
const items = menus.find((menu) => menu.location === "footer")?.items ?? [];
|
|
32856
|
+
const legalItems = menus.find((menu) => menu.location === "legal")?.items ?? [];
|
|
32663
32857
|
const roots = items.filter((item) => !item.parentId);
|
|
32664
32858
|
const groups = roots.filter((item) => items.some((child) => child.parentId === item.id));
|
|
32665
32859
|
const links = roots.filter((item) => item.urlType !== "dropdown" && !groups.includes(item));
|
|
@@ -32668,7 +32862,7 @@ function footerMenuNavigationFacts(menus) {
|
|
|
32668
32862
|
groups,
|
|
32669
32863
|
links
|
|
32670
32864
|
}),
|
|
32671
|
-
hasLegalPolicyNavigation:
|
|
32865
|
+
hasLegalPolicyNavigation: legalItems.length > 0 || platformLegalLinks(platformLegalPages, legalItems).length > 0
|
|
32672
32866
|
};
|
|
32673
32867
|
}
|
|
32674
32868
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { w as EVENT_PRESET_VALUES } from "./src-
|
|
2
|
+
import { On as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-78zikPNp.mjs";
|
|
3
|
+
import { w as EVENT_PRESET_VALUES } from "./src-e6JfJMDt.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/eventUpsertInputSchema.ts
|
|
@@ -7,7 +7,7 @@ import { existsSync as existsSync$1 } from "fs";
|
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
|
|
9
9
|
//#region package.json
|
|
10
|
-
var version = "0.38.
|
|
10
|
+
var version = "0.38.1";
|
|
11
11
|
var peerDependencies = { "@riverbankcms/sdk": ">=0.157.0 <1.0.0" };
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "riverbankcms",
|
|
@@ -94,7 +94,7 @@ var package_default = {
|
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region src/version.ts
|
|
96
96
|
/** The package manifest is the source-run fallback; builds inject this value. */
|
|
97
|
-
const CLI_VERSION = typeof "0.38.
|
|
97
|
+
const CLI_VERSION = typeof "0.38.1" === "string" ? "0.38.1" : version;
|
|
98
98
|
/**
|
|
99
99
|
* The CLI's SDK peer range is bundled from the CLI manifest alongside its
|
|
100
100
|
* version. Runtime config loading uses this value as the single compatibility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Kr as err, Nr as parseSiteId, qr as ok } from "./src-
|
|
2
|
+
import { Kr as err, Nr as parseSiteId, qr as ok } from "./src-e6JfJMDt.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/dist/scaffold/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../src-
|
|
3
|
-
import { a as prepareScaffoldExecution, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, l as deriveGeneratedPackageRanges, o as writeScaffoldFiles, r as preflightScaffoldPlan, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath } from "../plan-
|
|
2
|
+
import "../src-e6JfJMDt.mjs";
|
|
3
|
+
import { a as prepareScaffoldExecution, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, l as deriveGeneratedPackageRanges, o as writeScaffoldFiles, r as preflightScaffoldPlan, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath } from "../plan-D0-jU0Ye.mjs";
|
|
4
4
|
|
|
5
5
|
export { deriveGeneratedPackageRanges, deriveScaffoldLocalManifest, deriveScaffoldPlan, findPackageManifestPath, loadGeneratedPackageRanges, preflightScaffoldPlan, preflightScaffoldTargets, prepareScaffoldExecution, writeScaffoldFiles };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Ar as unsafeAsPageSurfaceId, At as validateBookingPaymentOptionKinds, Fr as unsafeAsSiteId, Ir as unsafeAsUserId, Jn as unsafeAsContentEntryId, Kn as unsafeAsBookingRequirementId, Kr as err, Mn as fromArray, Nn as mapNonEmptyArray, Nr as parseSiteId, Pn as mapReadonlyNonEmptyArray, S as resolveSiteVerticalBookingConfig, Sr as unsafeAsProductId, T as ORDINARY_EVENT_PRESET_VALUES, Vr as unsafeAsEventCategoryId, Wn as assertNever, Wt as MAX_BOOKING_CUT_OFF_HOURS, X as parseConfiguredMailingListProvider, Z as parseMailingListGlobalForm, _ as NAVIGATION_LOCATIONS, _r as unsafeAsSafeDownloadFilename, a as isRecord$6, br as unsafeAsStoragePath, c as applyClearable, cr as unsafeAsBookingSessionId, dn as localScheduleTimePattern, dr as unsafeAsDetectedMimeType, fr as unsafeAsFileChecksumSha256, ft as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, gr as unsafeAsPositiveSeconds, hr as unsafeAsPositiveByteCount, ht as stableJsonStringify, jr as unsafeAsSiteFontId, kt as BOOKING_COURSE_INSTALMENT_DEADLINES, l as clearableFrom, lr as parseMediaAssetId, lt as parsePublicContactDetails, mn as parseUtcIsoDateTimeString, mr as unsafeAsOriginalFilename, n as OFFLINE_PAYMENT_METHODS, ot as isCanonicalRichTextDoc, pr as unsafeAsMediaAssetId, pt as SENSITIVE_COLLECTION_MODES, qr as ok, rr as unsafeAsEntitlementId, t as isEventOccurrenceRouteSegment, tt as parseFooterCompositionV1, u as STAFF_OPERATIONAL_CAPABILITIES, ur as unsafeAsDeclaredMimeType, ut as parseWeeklyOpeningHours, vr as unsafeAsSiteScopedStoragePath, vt as locationValueSchema, w as EVENT_PRESET_VALUES, wt as isPresent, xr as unsafeAsUploadSessionId, yn as parseBookingTimeZone, yr as unsafeAsStorageBucketName } from "./src-
|
|
2
|
+
import { Ar as unsafeAsPageSurfaceId, At as validateBookingPaymentOptionKinds, Fr as unsafeAsSiteId, Ir as unsafeAsUserId, Jn as unsafeAsContentEntryId, Kn as unsafeAsBookingRequirementId, Kr as err, Mn as fromArray, Nn as mapNonEmptyArray, Nr as parseSiteId, Pn as mapReadonlyNonEmptyArray, S as resolveSiteVerticalBookingConfig, Sr as unsafeAsProductId, T as ORDINARY_EVENT_PRESET_VALUES, Vr as unsafeAsEventCategoryId, Wn as assertNever, Wt as MAX_BOOKING_CUT_OFF_HOURS, X as parseConfiguredMailingListProvider, Z as parseMailingListGlobalForm, _ as NAVIGATION_LOCATIONS, _r as unsafeAsSafeDownloadFilename, a as isRecord$6, br as unsafeAsStoragePath, c as applyClearable, cr as unsafeAsBookingSessionId, dn as localScheduleTimePattern, dr as unsafeAsDetectedMimeType, fr as unsafeAsFileChecksumSha256, ft as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, gr as unsafeAsPositiveSeconds, hr as unsafeAsPositiveByteCount, ht as stableJsonStringify, jr as unsafeAsSiteFontId, kt as BOOKING_COURSE_INSTALMENT_DEADLINES, l as clearableFrom, lr as parseMediaAssetId, lt as parsePublicContactDetails, mn as parseUtcIsoDateTimeString, mr as unsafeAsOriginalFilename, n as OFFLINE_PAYMENT_METHODS, ot as isCanonicalRichTextDoc, pr as unsafeAsMediaAssetId, pt as SENSITIVE_COLLECTION_MODES, qr as ok, rr as unsafeAsEntitlementId, t as isEventOccurrenceRouteSegment, tt as parseFooterCompositionV1, u as STAFF_OPERATIONAL_CAPABILITIES, ur as unsafeAsDeclaredMimeType, ut as parseWeeklyOpeningHours, vr as unsafeAsSiteScopedStoragePath, vt as locationValueSchema, w as EVENT_PRESET_VALUES, wt as isPresent, xr as unsafeAsUploadSessionId, yn as parseBookingTimeZone, yr as unsafeAsStorageBucketName } from "./src-e6JfJMDt.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -46396,4 +46396,4 @@ function parseSdkEventRunUpsertInput(input, runIndex, options) {
|
|
|
46396
46396
|
}
|
|
46397
46397
|
|
|
46398
46398
|
//#endregion
|
|
46399
|
-
export { walkAndCollectImageAttrs as $,
|
|
46399
|
+
export { walkAndCollectImageAttrs as $, bookingPageLookIdValues as $n, flatInkHoverTreatmentSchema as $t, parseSiteChromeBackgroundColorToken as A, isRichTextDoc as An, createBlockRef as Ar, getMimeType as At, sectionStylesOverrideSchema as B, internalLinkSchema as Bn, createSiteCommandSiteRef as Br, footerPreferencesSchema as Bt, blockOrderIdentifiersForCommand as C, require_dist as Cn, asLayoutVariantKey as Cr, parseCanonicalMediaIdentifier as Ct, pagePathForCommand as D, eventCommandScheduleSchema as Dn, compareEntrySlug as Dr, deriveVideoSlotPolicy as Dt, pageIdentifierForCommand as E, bookingPaymentTermsSchema as En, makeBoundaryId as Er, slugifyMediaIdentifier as Et, defaultHeaderBrandPreferences as F, findUnfilledSentinels as Fn, createEventSeriesRef as Fr, MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES as Ft, headerInteractionQuietPalette as G, pageLinkSchema as Gn, __toESM as Gr, cardRoleValues as Gt, skinBookingBarSchema as H, internalRouteOnlyLinkSchema as Hn, refSlug as Hr, accordionIconSchema as Ht, footerModeSchema as I, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as In, createFooterRef as Ir, classifyKnownMimeType as It, boxBackgroundOverlaySchema as J, parseGradientPresetId as Jn, openCardRoleValue as Jt, blockCustomCssRuleSchema as K, ICON_PICKER_PRESETS as Kn, cardVariantRoleValues as Kt, cardStylesOverrideSchema as L, customLinkSchema as Ln, createFormRef as Lr, managementMediaLibraryUploadLimitForMimeType as Lt, defaultHeaderPreferences as M, sanitizeHref as Mn, createCommandRef as Mr, normalizeAmbiguousStoragePathForSite as Mt, defaultHeaderNavPreferences as N, buildEntryScaffold as Nn, createContentEntryRef as Nr, parseRelativeStoragePath as Nt, hasConfiguredBookingVertical as O, sdkEntrySlotBlocksInputSchema as On, bookingQuestionAttachmentSchema as Or, resolveVideoSelectionIntentForMediaField as Ot, defaultHeaderBrandPresentation as P, validateEntryInstance as Pn, createEventCategoryRef as Pr, FILE_SIZE_LIMITS as Pt, summarizePortableMediaReferences as Q, asHeaderStyleId as Qn, editorialLinkParametersSchema as Qt, containerStylesOverrideSchema as R, entryLinkSchema as Rn, createNavigationRef as Rr, parseSafeDownloadFilename as Rt, blockIdentifierForCommand as S, changeBookingQuestionsInputSchema as Sn, asDesignSystemTemplateId as Sr, buildMediaIdentifierFromFilename as St, pageIdentifierForBlockCommand as T, bookingPaymentCollectionOptionSchema as Tn, asSiteStyleId as Tr, resolveMediaIdentifier as Tt, headerVariantValues as U, isResolvedInternalLinkEntityType as Un, slugPart as Ur, boxlessCardVariantValue as Ut, themeSchema as V, internalResolvedLinkSchema as Vn, createVenueRef as Vr, getFontWidthRange as Vt, headerInteractionPaletteValues as W, linkSchema as Wn, __commonJSMin as Wr, cardRoleSchema as Wt, runtimeBoxBackgroundSchema as X, asFooterLookId as Xn, BUTTON_STYLE_IDS as Xt, boxBackgroundSchema as Y, SUPPORTED_LOADER_ENDPOINTS as Yn, surfaceCardRoleValues as Yt, collectPortableMediaReferencesFromContent as Z, asHeaderLayoutId as Zn, buttonStyleSelectionSchema as Zt, mapEventCommandContent as _, paletteColorsSchema as _n, asBlockOrderIndex as _r, resolveManagedMediaReference as _t, classifySdkEventSchedule as a, buttonSystemSchema as an, siteChromeBackgroundOverrideOwner as ar, parseAspectRatioValue as at, getSiteCommandMetadata as b, parseColorTokenParts as bn, asDesignBoundaryId as br, mediaTypeDiscriminants as bt, isEventVisibility as c, opaqueButtonColourTokenSchema as cn, arrangementModes as cr, getDirectImageUrlForSiteScopedPath as ct, venueManagementFields as d, blockColorTokenNames as dn, headingDecorationColorTokenValues as dr, imageMediaSchema as dt, flatInkParametersSchema as en, footerLookIdValues as er, deleteEnvSpecificKeys as et, sortRecord as f, hexColorSchema as fn, isArrangementMode as fr, mediaSchema as ft, resolveEventSeriesWaitlistMapping as g, paletteColorsFromEntries as gn, asBlockContentVersionId as gr, buildRenderableMediaAssetIndex as gt, parseAndPlanCommandBatchForTypes as h, paletteColorEntries as hn, asAppearancePresetId as hr, videoMediaSchema as ht, sdkEventUpsertOptionalFieldSchemas as i, buttonPressOffsetSchema as in, parseBookingPageLookId as ir, isExplicitRectCrop as it, backgroundAppearanceColorTokenNames as j, isSafeRichTextHref as jn, createBlocksRef as jr, asRecord as jt, headerPreferencesSchema as k, RichTextDocSchema as kn, ianaTimezoneSchema as kr, getExtensionForMimeType as kt, resolvePageUpsertSeo as l, parseOpaqueButtonColourToken as ln, eventListTreatmentValues as lr, getImageUrl as lt, createDryRunReport as m, normalizePaletteHex as mn, visibleHeadingDecorationFamilyValues as mr, runtimeMediaSchema as mt, sdkCourseBookingSettingsSchema as n, squareOutlineParametersSchema as nn, headerStyleIdValues as nr, rotateNormalizedPoint as nt, classifySdkEventBookingOffer as o, buttonVariantIdSchema as on, SYSTEM_BLOCK_KINDS as or, resolveMediaTransformForAspect as ot, stableStringify as p, isThemeColorToken as pn, tileTreatmentValues as pr, persistableMediaSchema as pt, customCssRuleSchema as q, gradientPresetIdValues as qn, itemRoleValues as qt, sdkEventOccurrenceInputSchema as r, buttonEffectApplicationSchema as rn, pageDesignEditorBackgroundOverrideOwner as rr, normalizeWidthCandidates as rt, eventVisibilitySchema as s, buttonVisualStatesSchema as sn, VARIANT_ROLES as sr, getDirectImageUrlForRelativePath as st, classifySdkEventTiming as t, quietArrowParametersSchema as tn, headerLayoutIdValues as tr, looksLikeUuid as tt, eventCategoryManagementFields as u, PALETTE_TOKEN_NAMES as un, eyebrowTreatmentValues as ur, isSiteScopedDirectImageStoragePath as ut, evaluateSiteCommandBatchExposure as v, paletteModeSchema as vn, asBoundaryOptionId as vr, PUBLIC_FILE_FIELD_KINDS as vt, entryIdentifierForCommand as w, eventBookingOfferIntentSchema as wn, asPageFlowPresetId as wr, parseMediaIdentifier as wt, eventManagementTiming as x, parseThemeColorToken as xn, asDesignPageId as xr, mediaIdentifierSchema as xt, evaluateSiteCommandExposure as y, paletteTokenNameSchema as yn, asDesignBlockId as yr, isDisplayMediaKind as yt, headerPositioningValues as z, externalLinkSchema as zn, createPageRef as zr, defaultFooterPreferences as zt };
|
|
@@ -9568,7 +9568,7 @@ const NAVIGATION_LOCATION_DESCRIPTORS = {
|
|
|
9568
9568
|
legal: {
|
|
9569
9569
|
location: "legal",
|
|
9570
9570
|
label: "Legal links",
|
|
9571
|
-
description: "Smaller links at the bottom of your footer, for
|
|
9571
|
+
description: "Smaller links at the bottom of your footer, for terms and other policies. Your published privacy policy and booking terms are linked there automatically."
|
|
9572
9572
|
}
|
|
9573
9573
|
};
|
|
9574
9574
|
function isNavigationLocation(value) {
|
package/dist/testing.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./sdk-event-upsert-
|
|
3
|
-
import "./src-
|
|
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-
|
|
5
|
-
import "./load-config-
|
|
2
|
+
import "./sdk-event-upsert-78zikPNp.mjs";
|
|
3
|
+
import "./src-e6JfJMDt.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-CINe1Vw0.mjs";
|
|
5
|
+
import "./load-config-Dl_o53yP.mjs";
|
|
6
6
|
|
|
7
7
|
export { applyPushConfigPlan, calculateEntryDiffs, compileEntryPushCommands, createOutput, executeEntryCommandPlanAsSyncResult, preparePushConfigTarget, readEntries, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
|
package/package.json
CHANGED