riverbankcms 0.35.0 → 0.36.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.
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +12 -71
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +2 -0
- package/dist/{entryCommands-D-1ldejM.mjs → entryCommands-Cx1aj859.mjs} +260 -52
- package/dist/{eventUpsertInputSchema-D1CXYu1M.mjs → eventUpsertInputSchema-Dj2LtxCt.mjs} +2 -2
- package/dist/load-config-D7f6MXJV.mjs +4 -0
- package/dist/{load-config-DB_S_gdr.mjs → load-config-k3XF8V97.mjs} +2 -2
- package/dist/{plan-CMMvs6Nr.mjs → plan-D-bOngd3.mjs} +7 -11
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-DoazwQVt.mjs → sdk-event-upsert-n4in1E4v.mjs} +1 -1
- package/dist/{src-CysOxz1U.mjs → src-DHIn60_q.mjs} +10 -1
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-DSGN-x3K.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../sdk-event-upsert-
|
|
3
|
-
import "../src-
|
|
4
|
-
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-
|
|
2
|
+
import "../sdk-event-upsert-n4in1E4v.mjs";
|
|
3
|
+
import "../src-DHIn60_q.mjs";
|
|
4
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-Dj2LtxCt.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/acceptance/matrix-builders.ts
|
|
7
7
|
const workflow = (scenario, stepId) => ({
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as walkAndCollectImageAttrs, $t as flatInkParametersSchema, A as parseSiteChromeBackgroundColorToken, An as buildEntryScaffold, Ar as createContentEntryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlockRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as ianaTimezoneSchema, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createNavigationRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Hr as __toESM, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, Ir as createPageRef, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createEventSeriesRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFooterRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createBlocksRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createFormRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as createVenueRef, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __commonJSMin, Vt as getFontWidthRange, W as headerInteractionPaletteValues, Wn as gradientPresetIdValues, Wt as cardRoleValues, X as runtimeBoxBackgroundSchema, Xn as bookingPageLookIdValues, Xt as buttonStyleSelectionSchema, Y as boxBackgroundSchema, Yn as asHeaderStyleId, Yt as BUTTON_STYLE_IDS, Z as collectPortableMediaReferencesFromContent, Zt as editorialLinkParametersSchema, _ as mapEventCommandContent, _n as paletteTokenNameSchema, _t as resolveManagedMediaReference, an as buttonVariantIdSchema, ar as arrangementModes, at as parseAspectRatioValue, bn as changeBookingQuestionsInputSchema, br as asLayoutVariantKey, bt as mediaTypeDiscriminants, c as isEventVisibility, cn as parseOpaqueButtonColourToken, cr as headingDecorationColorTokenValues, ct as getDirectImageUrlForSiteScopedPath, d as venueManagementFields, dn as hexColorSchema, dr as visibleHeadingDecorationFamilyValues, dt as imageMediaSchema, en as quietArrowParametersSchema, er as pageDesignEditorBackgroundOverrideOwner, et as deleteEnvSpecificKeys, f as sortRecord, fn as normalizePaletteHex, fr as asAppearancePresetId, ft as mediaSchema, g as resolveEventSeriesWaitlistMapping, gn as paletteModeSchema, gr as asDesignBlockId, gt as buildRenderableMediaAssetIndex, hn as paletteColorsSchema, hr as asBoundaryOptionId, ht as videoMediaSchema, i as sdkEventUpsertOptionalFieldSchemas, in as buttonSystemSchema, ir as VARIANT_ROLES, it as isExplicitRectCrop, j as backgroundAppearanceColorTokenNames, jn as validateEntryInstance, jr as createEventCategoryRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createCommandRef, ln as PALETTE_TOKEN_NAMES, lr as isArrangementMode, lt as getImageUrl, mn as paletteColorsFromEntries, mr as asBlockOrderIndex, mt as runtimeMediaSchema, nn as buttonEffectApplicationSchema, nr as siteChromeBackgroundOverrideOwner, nt as rotateNormalizedPoint, o as classifySdkEventBookingOffer, on as buttonVisualStatesSchema, or as eventListTreatmentValues, ot as resolveMediaTransformForAspect, p as stableStringify, pn as paletteColorEntries, pr as asBlockContentVersionId, pt as persistableMediaSchema, q as customCssRuleSchema, qn as asFooterLookId, qt as openCardRoleValue, rn as buttonPressOffsetSchema, rt as normalizeWidthCandidates, sn as opaqueButtonColourTokenSchema, sr as eyebrowTreatmentValues, st as getDirectImageUrlForRelativePath, t as classifySdkEventTiming, tn as squareOutlineParametersSchema, tr as parseBookingPageLookId, tt as looksLikeUuid, u as eventCategoryManagementFields, un as blockColorTokenNames, ur as tileTreatmentValues, ut as isSiteScopedDirectImageStoragePath, vn as parseColorTokenParts, vr as asDesignPageId, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wn as bookingPaymentTermsSchema, wt as parseMediaIdentifier, x as eventManagementTiming, xr as asPageFlowPresetId, xt as mediaIdentifierSchema, yn as parseThemeColorToken, yr as asDesignSystemTemplateId, z as headerPositioningValues, zn as internalRouteOnlyLinkSchema, zr as refSlug, zt as defaultFooterPreferences } from "../sdk-event-upsert-
|
|
3
|
-
import { $ as footerLayoutForLookId, $t as resolveBookingDisplayContext, B as parseManagementKey, Bt as deriveTotalTicketQuantity, Cn as publicEventPricingDisplay, Ct as mapDrawingSchema, Dn as resolveExactOrFreePriceDisplay, En as publicEventPricingType, F as orderedLiveRunSessions, Fr as blockInteractionContextSchema, G as parseMailingListRuntimeContext, Gt as hasBookingClosed, H as parseMailingListBlockId, Hn as formatDurationUnitLabel, Ht as bookingCutOffHoursBetween, I as resolveWholeSeriesBookingPhase, In as toNonNegativeCents, Jn as parseSiteTermsVersionId, Jt as formatDateTime, K as assessMailingListTargeting, Kt as formatDate, L as resolveWholeSeriesRunLifecycle, M as CANCELLED_SESSION_STATUS, Mt as getBookingInstalmentPlanIntervalCount, N as firstLiveRunSessionStartMs, Nr as err, Nt as getBookingInstalmentProtectedDepositAmountCents, On as resolvePricingOptionsPriceDisplay, P as nextLiveRunSessionStartMs, Pr as ok, Q as parseFooterCompositionV1, Qt as inferSiteDateLocale, R as createSecret, S as EVENT_PRESET_VALUES, Sn as publicEventPricingCurrency, Sr as parseUserId, St as trimmedStringOrNull, T as WHOLE_SERIES_EVENT_PRESET_VALUES, Tn as publicEventPricingStrategy, Tr as parseEventSeriesId, Tt as buildBookingUtcDateWindow, U as parseMailingListContentVersionId, Ut as formatBookingClosedTime, V as slugify, Vn as assertNever, W as parseMailingListSignedSourceToken, Wn as unsafeAsDemoCapability, Wt as formatBookingCutOffHours, X as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Xt as formatTime$1, Y as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Yt as formatDateTimeRange, Zt as formatTimeRange, _n as parsePageSurfaceSubject, _t as parseLocationValue, a as authoredValuesEqual, an as getBookingLocalDateKey, ar as unsafeAsMediaAssetId, at as formatOpeningHoursRows, b as resolveSiteVerticalBookingConfig, bn as formatEventPricing, br as parseApiKeyId, bt as toLocationCoordinates, d as formatCreditProductUnits, dn as parseUtcIsoDateTimeString, dt as decideLocationSave, en as toScheduledBookingDateTime, et as parseMailingListPlacementTargeting, fn as toUtcIsoDateTimeString, ft as stableJsonStringify, gt as normalizeLocationAddressText, h as NAVIGATION_LOCATIONS, hn as toBookingTimeZone, ht as locationValueSchema, i as isRecord$27, in as formatLocalScheduleTime, it as richTextHasText, jn as mapReadonlyNonEmptyArray, l as creditProductUnitNoun, ln as parseBookingLocalDate, mn as resolveBookingTimeZoneId, mt as EVENT_ADDRESS_AFTER_BOOKING_LABEL, nn as compareLocalScheduleDates, nt as planMailingListChoicePresentation, on as getLocalScheduleDate, pn as resolveBookingBusinessTimeZone, pt as locationMapLinks, qt as formatDateRange, rn as formatLocalScheduleDate, rt as isCanonicalRichTextDoc, sn as getLocalScheduleTime, sr as unsafeAsPositiveByteCount, st as parseWeeklyOpeningHours, tt as DEFAULT_MAILING_LIST_TARGETING, u as formatCreditProductPayment, un as parseLocalScheduleTime, vn as EVENT_PRESET_VOCABULARY, vt as projectPublicLocation, wn as publicEventPricingOptions, wt as selectCategoryView, xn as isPublicEventPricingOptionDisplayable, xr as parseSiteId, yn as formatBookingPriceDisplay, yt as publicLocationSchema, z as exposeSecret, zn as formatCurrencyAmount } from "../src-
|
|
4
|
-
import { $ as walkLocalContentMedia, $n as extractApiErrorMessage, $r as ApiEnvelopeError, $t as commandContexts, A as formatDiffSummary, An as isLocalConfigured, Ar as getBookingLaterInstalments, At as navigationIdentityMap, B as formatFieldChange, Bn as DEFAULT_MEDIA_FIELD_KINDS, Br as publicProductSchema, Bt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, C as reportFromOutcomes, Cn as ErrorCodes, Cr as planFlexibleBalanceCreditFirst, Ct as listFiles, D as calculateDiff, Dr as resolveAvailableBookingCollectionOptions, Dt as isMediaValue, E as createEmptySyncResult, En as CliExit, Er as repriceBookingCollectionOptions, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as cardListKnobBlocks, Fr as eventCalendarListLayoutValues, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as MAX_REPEATER_GRID_COLUMNS, Gr as calendarMonthWindowSchema, Gt as createPushConfigCommand, H as revalidateLocalMediaPushPlan, Hn as blockContentSourceSchema, Hr as purchasablePublicPassProductSchema, Ht as navigationCommandItemToManagementInput, I as hasPageOperations, In as lookKnobBlocks, Ir as publicMapLocationResultSchema, It as ACCOUNT_SITE_CURSOR_MAX_LENGTH, J as readStableBinaryFile, Jn as resolveRepeaterGridColumnFieldId, Jr as eventSurfacePresetValues, Jt as revalidatePushConfigPlan, K as prepareLocalMediaForPush, Kn as isAcceptedRepeaterGridSpan, Kr as calendarSourceCursorSchema, Kt as loadPushConfigTarget, L as pageMetadataForUpsert, Ln as NodeSchema, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, M as findChangedFieldsWithValues, Mn as loadSdkEnvironment, Mr as eventCalendarDefaultViewValues, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nn as cardListBlockParts, Nr as eventCalendarDisplayModeValues, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as getEnvPrefix, Or as resolveBookingCollectionOptionFacts, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pn as cardListFamilyBlocks, Pr as eventCalendarListLayoutCompatibleDisplayModeValues, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as ManagementApiError, Qr as publicEventLoaderQuerySchemaShape, Qt as CommandFailure, Rn as NodeTreeSchema, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_MAX, S as planCliCommandBatchForBindings, Sn as withRiverbankEnv, Sr as planCheckoutPaymentFlow, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as transportSuggestion, Tr as isBookingCollectionEquivalentToUpfront, Tt as writeJsonFile, Un as blockRequiredFeatureSchema, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as normalizeNavigationConfigItemForCommand, V as formatFieldPath, Vn as blockCategoryEnum, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_TITLE_MAX_LENGTH, W as syncLocalMediaForPull, Wn as fieldSchema$1, Wr as calendarMonthDate, Wt as applyPushConfigPlan, X as sha256, Xn as resolveRepeaterGridSpanFieldId, Xr as monthNumber, Xt as deriveCmsApiUrlFromDashboardUrl, Y as writeBinaryFileAtomic, Yn as resolveRepeaterGridRowFieldId, Yr as eventSurfaceScopeValues, Yt as createBearerAPIClient, Z as normalizeMediaIdentifierInput, Zn as visibilityLevels, Zr as normalizeCalendarFilterId, Zt as mapEnvironmentExecutionOutcomesJson, _ as commandExecutionToReport, _n as executeEnvironmentPlan, _r as nextCombinationHint, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, an as confirmAction, ar as linkPayloadSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as planEnvironmentWriteAuthorization, br as checkoutCopy, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as formatDateShort, cr as pageDesignIntentSchemaVersion, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientFor, dr as areEventBookingRequirementsIdentical, dt as readPagesMeta, ei as unwrapResponse, en as defineCommand, er as normalizeApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as eventBookingConsentContentKey, ft as readSettingsMeta, g as commandCompileFailureToReport, gn as runWithInvocation, gr as checkoutStatusArms, gt as metadataFilePath, h as mutationCounterForEffect, hn as resolveCommandPath, hr as resolveSelectionAttendanceMode, ht as ensureMetadataDir, i as entrySiteCommandTypes, in as bindRequestTimeout, ir as sdkSettingsUpdateSchema, it as readEntries, j as hasPendingChanges, jn as isRemoteConfigured, jr as MAX_EVENT_BOOKING_SELECTION_ITEMS, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as getEnvironmentDebugInfo, kr as getStripeMinimumChargeRequirement, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, ln as handleCommandError, lr as sdkConfiguredBookingVerticalConfigSchema, lt as readFormsMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as decideSelectionAttendance, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, nn as registerCommand, nr as ApiRequestError, nt as extractMediaIdentifiers, o as executeEntryCommandPlanAsSyncResult, on as createOutputForCommand, or as portablePageDesignSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as INCOMPATIBLE_ATTENDANCE_MESSAGE, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as parseRepeaterGridInteger, qr as eventScheduleScopeValues, qt as preparePushConfigTarget, r as entryCommandReportToSyncResult, rn as renderedByOwner, rr as sdkEventScheduleSchema, rt as findLegacyEntryFiles, s as syncResultForEntryCommandCompileError, sn as currentInvocationEnvelope, sr as pageDesignDecisionsV2Schema, st as readEventsMeta, t as compileEntryPushCommands, tn as defineCommandGroup, tr as isRecord$2, tt as downloadMedia, u as unsafeAsCliContentTypeKey, un as loadManagementTarget, ur as API_ENDPOINTS, ut as readNavigationMeta, v as commandReportHasFailures, vn as parseEnvironmentSelection, vr as planSelectionCombinationPrices, vt as readMetadataFile, w as mergeManySyncResults, wn as formatError, wr as flexibleBalanceDueDay, wt as readJsonFile, x as formatManagementError, xn as requireEnvironmentWriteAuthorization, xr as unsafeAsPositiveCheckoutQuantity, xt as ensureDir, y as executeCliCommandPlan, yn as planEnvironmentExecution, yr as eventRegistrationErrors, yt as writeMetadataFile, z as buildFieldChanges, zn as bindingSchema, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MIN } from "../entryCommands-
|
|
5
|
-
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-
|
|
6
|
-
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-
|
|
7
|
-
import { a as prepareScaffoldExecution, c as LOCAL_PACKAGE_VENDOR_DIR, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, n as createScaffoldCompletion, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan } from "../plan-
|
|
2
|
+
import { $ as walkAndCollectImageAttrs, $t as flatInkParametersSchema, A as parseSiteChromeBackgroundColorToken, An as buildEntryScaffold, Ar as createContentEntryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlockRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as ianaTimezoneSchema, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createNavigationRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Hr as __toESM, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, Ir as createPageRef, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createEventSeriesRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFooterRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createBlocksRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createFormRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as createVenueRef, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __commonJSMin, Vt as getFontWidthRange, W as headerInteractionPaletteValues, Wn as gradientPresetIdValues, Wt as cardRoleValues, X as runtimeBoxBackgroundSchema, Xn as bookingPageLookIdValues, Xt as buttonStyleSelectionSchema, Y as boxBackgroundSchema, Yn as asHeaderStyleId, Yt as BUTTON_STYLE_IDS, Z as collectPortableMediaReferencesFromContent, Zt as editorialLinkParametersSchema, _ as mapEventCommandContent, _n as paletteTokenNameSchema, _t as resolveManagedMediaReference, an as buttonVariantIdSchema, ar as arrangementModes, at as parseAspectRatioValue, bn as changeBookingQuestionsInputSchema, br as asLayoutVariantKey, bt as mediaTypeDiscriminants, c as isEventVisibility, cn as parseOpaqueButtonColourToken, cr as headingDecorationColorTokenValues, ct as getDirectImageUrlForSiteScopedPath, d as venueManagementFields, dn as hexColorSchema, dr as visibleHeadingDecorationFamilyValues, dt as imageMediaSchema, en as quietArrowParametersSchema, er as pageDesignEditorBackgroundOverrideOwner, et as deleteEnvSpecificKeys, f as sortRecord, fn as normalizePaletteHex, fr as asAppearancePresetId, ft as mediaSchema, g as resolveEventSeriesWaitlistMapping, gn as paletteModeSchema, gr as asDesignBlockId, gt as buildRenderableMediaAssetIndex, hn as paletteColorsSchema, hr as asBoundaryOptionId, ht as videoMediaSchema, i as sdkEventUpsertOptionalFieldSchemas, in as buttonSystemSchema, ir as VARIANT_ROLES, it as isExplicitRectCrop, j as backgroundAppearanceColorTokenNames, jn as validateEntryInstance, jr as createEventCategoryRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createCommandRef, ln as PALETTE_TOKEN_NAMES, lr as isArrangementMode, lt as getImageUrl, mn as paletteColorsFromEntries, mr as asBlockOrderIndex, mt as runtimeMediaSchema, nn as buttonEffectApplicationSchema, nr as siteChromeBackgroundOverrideOwner, nt as rotateNormalizedPoint, o as classifySdkEventBookingOffer, on as buttonVisualStatesSchema, or as eventListTreatmentValues, ot as resolveMediaTransformForAspect, p as stableStringify, pn as paletteColorEntries, pr as asBlockContentVersionId, pt as persistableMediaSchema, q as customCssRuleSchema, qn as asFooterLookId, qt as openCardRoleValue, rn as buttonPressOffsetSchema, rt as normalizeWidthCandidates, sn as opaqueButtonColourTokenSchema, sr as eyebrowTreatmentValues, st as getDirectImageUrlForRelativePath, t as classifySdkEventTiming, tn as squareOutlineParametersSchema, tr as parseBookingPageLookId, tt as looksLikeUuid, u as eventCategoryManagementFields, un as blockColorTokenNames, ur as tileTreatmentValues, ut as isSiteScopedDirectImageStoragePath, vn as parseColorTokenParts, vr as asDesignPageId, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wn as bookingPaymentTermsSchema, wt as parseMediaIdentifier, x as eventManagementTiming, xr as asPageFlowPresetId, xt as mediaIdentifierSchema, yn as parseThemeColorToken, yr as asDesignSystemTemplateId, z as headerPositioningValues, zn as internalRouteOnlyLinkSchema, zr as refSlug, zt as defaultFooterPreferences } from "../sdk-event-upsert-n4in1E4v.mjs";
|
|
3
|
+
import { $ as footerLayoutForLookId, $t as resolveBookingDisplayContext, B as parseManagementKey, Bt as deriveTotalTicketQuantity, Cn as publicEventPricingDisplay, Ct as mapDrawingSchema, Dn as resolveExactOrFreePriceDisplay, En as publicEventPricingType, F as orderedLiveRunSessions, Fr as blockInteractionContextSchema, G as parseMailingListRuntimeContext, Gt as hasBookingClosed, H as parseMailingListBlockId, Hn as formatDurationUnitLabel, Ht as bookingCutOffHoursBetween, I as resolveWholeSeriesBookingPhase, In as toNonNegativeCents, Jn as parseSiteTermsVersionId, Jt as formatDateTime, K as assessMailingListTargeting, Kt as formatDate, L as resolveWholeSeriesRunLifecycle, M as CANCELLED_SESSION_STATUS, Mt as getBookingInstalmentPlanIntervalCount, N as firstLiveRunSessionStartMs, Nr as err, Nt as getBookingInstalmentProtectedDepositAmountCents, On as resolvePricingOptionsPriceDisplay, P as nextLiveRunSessionStartMs, Pr as ok, Q as parseFooterCompositionV1, Qt as inferSiteDateLocale, R as createSecret, S as EVENT_PRESET_VALUES, Sn as publicEventPricingCurrency, Sr as parseUserId, St as trimmedStringOrNull, T as WHOLE_SERIES_EVENT_PRESET_VALUES, Tn as publicEventPricingStrategy, Tr as parseEventSeriesId, Tt as buildBookingUtcDateWindow, U as parseMailingListContentVersionId, Ut as formatBookingClosedTime, V as slugify, Vn as assertNever, W as parseMailingListSignedSourceToken, Wn as unsafeAsDemoCapability, Wt as formatBookingCutOffHours, X as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Xt as formatTime$1, Y as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Yt as formatDateTimeRange, Zt as formatTimeRange, _n as parsePageSurfaceSubject, _t as parseLocationValue, a as authoredValuesEqual, an as getBookingLocalDateKey, ar as unsafeAsMediaAssetId, at as formatOpeningHoursRows, b as resolveSiteVerticalBookingConfig, bn as formatEventPricing, br as parseApiKeyId, bt as toLocationCoordinates, d as formatCreditProductUnits, dn as parseUtcIsoDateTimeString, dt as decideLocationSave, en as toScheduledBookingDateTime, et as parseMailingListPlacementTargeting, fn as toUtcIsoDateTimeString, ft as stableJsonStringify, gt as normalizeLocationAddressText, h as NAVIGATION_LOCATIONS, hn as toBookingTimeZone, ht as locationValueSchema, i as isRecord$27, in as formatLocalScheduleTime, it as richTextHasText, jn as mapReadonlyNonEmptyArray, l as creditProductUnitNoun, ln as parseBookingLocalDate, mn as resolveBookingTimeZoneId, mt as EVENT_ADDRESS_AFTER_BOOKING_LABEL, nn as compareLocalScheduleDates, nt as planMailingListChoicePresentation, on as getLocalScheduleDate, pn as resolveBookingBusinessTimeZone, pt as locationMapLinks, qt as formatDateRange, rn as formatLocalScheduleDate, rt as isCanonicalRichTextDoc, sn as getLocalScheduleTime, sr as unsafeAsPositiveByteCount, st as parseWeeklyOpeningHours, tt as DEFAULT_MAILING_LIST_TARGETING, u as formatCreditProductPayment, un as parseLocalScheduleTime, vn as EVENT_PRESET_VOCABULARY, vt as projectPublicLocation, wn as publicEventPricingOptions, wt as selectCategoryView, xn as isPublicEventPricingOptionDisplayable, xr as parseSiteId, yn as formatBookingPriceDisplay, yt as publicLocationSchema, z as exposeSecret, zn as formatCurrencyAmount } from "../src-DHIn60_q.mjs";
|
|
4
|
+
import { $ as walkLocalContentMedia, $n as extractApiErrorMessage, $r as ApiEnvelopeError, $t as commandContexts, A as formatDiffSummary, An as isLocalConfigured, Ar as getBookingLaterInstalments, At as navigationIdentityMap, B as formatFieldChange, Bn as DEFAULT_MEDIA_FIELD_KINDS, Br as publicProductSchema, Bt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, C as reportFromOutcomes, Cn as ErrorCodes, Cr as planFlexibleBalanceCreditFirst, Ct as listFiles, D as calculateDiff, Dr as resolveAvailableBookingCollectionOptions, Dt as isMediaValue, E as createEmptySyncResult, En as CliExit, Er as repriceBookingCollectionOptions, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as cardListKnobBlocks, Fr as eventCalendarListLayoutValues, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as MAX_REPEATER_GRID_COLUMNS, Gr as calendarMonthWindowSchema, Gt as createPushConfigCommand, H as revalidateLocalMediaPushPlan, Hn as blockContentSourceSchema, Hr as purchasablePublicPassProductSchema, Ht as navigationCommandItemToManagementInput, I as hasPageOperations, In as lookKnobBlocks, Ir as publicMapLocationResultSchema, It as ACCOUNT_SITE_CURSOR_MAX_LENGTH, J as readStableBinaryFile, Jn as resolveRepeaterGridColumnFieldId, Jr as eventSurfacePresetValues, Jt as revalidatePushConfigPlan, K as prepareLocalMediaForPush, Kn as isAcceptedRepeaterGridSpan, Kr as calendarSourceCursorSchema, Kt as loadPushConfigTarget, L as pageMetadataForUpsert, Ln as NodeSchema, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, M as findChangedFieldsWithValues, Mn as loadSdkEnvironment, Mr as eventCalendarDefaultViewValues, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nn as cardListBlockParts, Nr as eventCalendarDisplayModeValues, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as getEnvPrefix, Or as resolveBookingCollectionOptionFacts, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pn as cardListFamilyBlocks, Pr as eventCalendarListLayoutCompatibleDisplayModeValues, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as ManagementApiError, Qr as publicEventLoaderQuerySchemaShape, Qt as CommandFailure, Rn as NodeTreeSchema, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_MAX, S as planCliCommandBatchForBindings, Sn as withRiverbankEnv, Sr as planCheckoutPaymentFlow, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as transportSuggestion, Tr as isBookingCollectionEquivalentToUpfront, Tt as writeJsonFile, Un as blockRequiredFeatureSchema, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as normalizeNavigationConfigItemForCommand, V as formatFieldPath, Vn as blockCategoryEnum, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_TITLE_MAX_LENGTH, W as syncLocalMediaForPull, Wn as fieldSchema$1, Wr as calendarMonthDate, Wt as applyPushConfigPlan, X as sha256, Xn as resolveRepeaterGridSpanFieldId, Xr as monthNumber, Xt as deriveCmsApiUrlFromDashboardUrl, Y as writeBinaryFileAtomic, Yn as resolveRepeaterGridRowFieldId, Yr as eventSurfaceScopeValues, Yt as createBearerAPIClient, Z as normalizeMediaIdentifierInput, Zn as visibilityLevels, Zr as normalizeCalendarFilterId, Zt as mapEnvironmentExecutionOutcomesJson, _ as commandExecutionToReport, _n as executeEnvironmentPlan, _r as nextCombinationHint, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, an as confirmAction, ar as linkPayloadSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as planEnvironmentWriteAuthorization, br as checkoutCopy, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as formatDateShort, cr as pageDesignIntentSchemaVersion, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientFor, dr as areEventBookingRequirementsIdentical, dt as readPagesMeta, ei as unwrapResponse, en as defineCommand, er as normalizeApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as eventBookingConsentContentKey, ft as readSettingsMeta, g as commandCompileFailureToReport, gn as runWithInvocation, gr as checkoutStatusArms, gt as metadataFilePath, h as mutationCounterForEffect, hn as resolveCommandPath, hr as resolveSelectionAttendanceMode, ht as ensureMetadataDir, i as entrySiteCommandTypes, in as bindRequestTimeout, ir as sdkSettingsUpdateSchema, it as readEntries, j as hasPendingChanges, jn as isRemoteConfigured, jr as MAX_EVENT_BOOKING_SELECTION_ITEMS, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as getEnvironmentDebugInfo, kr as getStripeMinimumChargeRequirement, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, ln as handleCommandError, lr as sdkConfiguredBookingVerticalConfigSchema, lt as readFormsMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as decideSelectionAttendance, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, nn as registerCommand, nr as ApiRequestError, nt as extractMediaIdentifiers, o as executeEntryCommandPlanAsSyncResult, on as createOutputForCommand, or as portablePageDesignSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as INCOMPATIBLE_ATTENDANCE_MESSAGE, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as parseRepeaterGridInteger, qr as eventScheduleScopeValues, qt as preparePushConfigTarget, r as entryCommandReportToSyncResult, rn as renderedByOwner, rr as sdkEventScheduleSchema, rt as findLegacyEntryFiles, s as syncResultForEntryCommandCompileError, sn as currentInvocationEnvelope, sr as pageDesignDecisionsV2Schema, st as readEventsMeta, t as compileEntryPushCommands, tn as defineCommandGroup, tr as isRecord$2, tt as downloadMedia, u as unsafeAsCliContentTypeKey, un as loadManagementTarget, ur as API_ENDPOINTS, ut as readNavigationMeta, v as commandReportHasFailures, vn as parseEnvironmentSelection, vr as planSelectionCombinationPrices, vt as readMetadataFile, w as mergeManySyncResults, wn as formatError, wr as flexibleBalanceDueDay, wt as readJsonFile, x as formatManagementError, xn as requireEnvironmentWriteAuthorization, xr as unsafeAsPositiveCheckoutQuantity, xt as ensureDir, y as executeCliCommandPlan, yn as planEnvironmentExecution, yr as eventRegistrationErrors, yt as writeMetadataFile, z as buildFieldChanges, zn as bindingSchema, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MIN } from "../entryCommands-Cx1aj859.mjs";
|
|
5
|
+
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-k3XF8V97.mjs";
|
|
6
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-Dj2LtxCt.mjs";
|
|
7
|
+
import { a as prepareScaffoldExecution, c as LOCAL_PACKAGE_VENDOR_DIR, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, n as createScaffoldCompletion, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan } from "../plan-D-bOngd3.mjs";
|
|
8
8
|
import { config } from "dotenv";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { Command, CommanderError } from "commander";
|
|
@@ -79799,24 +79799,6 @@ function hasEventBookingClosedEarly(event, now) {
|
|
|
79799
79799
|
|
|
79800
79800
|
//#endregion
|
|
79801
79801
|
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
79802
|
-
/**
|
|
79803
|
-
* What a system-managed Event URL actually selected.
|
|
79804
|
-
*
|
|
79805
|
-
* The resolver used to assume that one returned `PublicEvent` meant one
|
|
79806
|
-
* occurrence. A whole-series Event breaks that assumption in two directions: a
|
|
79807
|
-
* parent Event path selects nothing concrete until a run is chosen, and a run
|
|
79808
|
-
* path selects a run whose identity spans every one of its sessions. This
|
|
79809
|
-
* module parses those cases once, so the renderer switches over a closed set of
|
|
79810
|
-
* page states instead of probing booking scopes at render time.
|
|
79811
|
-
*
|
|
79812
|
-
* Everything here is pure. Loading events and resolving run slugs is the
|
|
79813
|
-
* resolver's job; deciding what the page is and which runs the chooser
|
|
79814
|
-
* advertises happens here. When a run is open to join, and where it sits in its
|
|
79815
|
-
* own life, come from `@riverbankcms/core`: the same authority the
|
|
79816
|
-
* public read projection and the write-side run-facts loader use, so a run
|
|
79817
|
-
* cannot report itself open on the storefront and closed at the point of
|
|
79818
|
-
* booking.
|
|
79819
|
-
*/
|
|
79820
79802
|
function planWholeSeriesParentBooking(eligibleRuns) {
|
|
79821
79803
|
const [first, second, ...rest] = eligibleRuns;
|
|
79822
79804
|
if (!second) return {
|
|
@@ -84145,6 +84127,7 @@ function transformRegistrationOptionsResponse(response) {
|
|
|
84145
84127
|
const eventAcceptsMemberships = response.entitlements.requiresLoginForMemberships || eligibleMemberships.length > 0 || response.entitlements.availableForPurchase.memberships.length > 0;
|
|
84146
84128
|
const monetaryPaymentAvailable = hasMonetaryPaymentOption(response);
|
|
84147
84129
|
return {
|
|
84130
|
+
discountPreview: response.discountPreview,
|
|
84148
84131
|
availability: response.availability,
|
|
84149
84132
|
registration: response.registration,
|
|
84150
84133
|
paymentOptions: response.paymentOptions,
|
|
@@ -113225,40 +113208,8 @@ function withLookParts(props$1, arrangement) {
|
|
|
113225
113208
|
|
|
113226
113209
|
//#endregion
|
|
113227
113210
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
113228
|
-
function eventDetailsIslandValue({ props: props$1, presentation: presentation$1, scopedEvents, subject }) {
|
|
113229
|
-
return {
|
|
113230
|
-
...props$1.arrangement ? {
|
|
113231
|
-
arrangement: props$1.arrangement,
|
|
113232
|
-
entryTitle: props$1.entryTitle,
|
|
113233
|
-
actionSize: props$1.actionSize,
|
|
113234
|
-
lookSlots: props$1.lookSlots,
|
|
113235
|
-
surfacePresentation: props$1.surfacePresentation,
|
|
113236
|
-
panelHeading: props$1.panelHeading
|
|
113237
|
-
} : {},
|
|
113238
|
-
quickFacts: props$1.quickFacts,
|
|
113239
|
-
occurrenceContext: props$1.occurrenceContext ?? null,
|
|
113240
|
-
subject,
|
|
113241
|
-
events: scopedEvents,
|
|
113242
|
-
venueDrawing: props$1.venueDrawing ?? null,
|
|
113243
|
-
showVenue: presentation$1.showVenue,
|
|
113244
|
-
showMap: presentation$1.showMap,
|
|
113245
|
-
showOtherDates: presentation$1.showOtherDates,
|
|
113246
|
-
otherDatesLimit: props$1.otherDatesLimit,
|
|
113247
|
-
showCost: presentation$1.showCost,
|
|
113248
|
-
showTitle: presentation$1.showTitle,
|
|
113249
|
-
showDescription: presentation$1.showDescription,
|
|
113250
|
-
showCapacity: presentation$1.showCapacity,
|
|
113251
|
-
showAcceptedPasses: presentation$1.showAcceptedPasses,
|
|
113252
|
-
showAcceptedMemberships: presentation$1.showAcceptedMemberships,
|
|
113253
|
-
sitePasses: props$1.sitePasses,
|
|
113254
|
-
siteMemberships: props$1.siteMemberships,
|
|
113255
|
-
autoApplyDiscount: presentation$1.autoApplyDiscount,
|
|
113256
|
-
className: props$1.className,
|
|
113257
|
-
now: props$1.now
|
|
113258
|
-
};
|
|
113259
|
-
}
|
|
113260
113211
|
function EventDetailsSSR(props$1) {
|
|
113261
|
-
const {
|
|
113212
|
+
const { occurrenceContext = null, subject, events = null, className, children } = props$1;
|
|
113262
113213
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
113263
113214
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
113264
113215
|
occurrenceContext,
|
|
@@ -113270,19 +113221,9 @@ function EventDetailsSSR(props$1) {
|
|
|
113270
113221
|
occurrenceContext,
|
|
113271
113222
|
subject: normalizedSubject
|
|
113272
113223
|
});
|
|
113273
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
113274
|
-
|
|
113275
|
-
|
|
113276
|
-
attributes: {
|
|
113277
|
-
className: `event-details ${className ?? ""}`.trim(),
|
|
113278
|
-
"data-block": "event-details"
|
|
113279
|
-
},
|
|
113280
|
-
value: eventDetailsIslandValue({
|
|
113281
|
-
props: props$1,
|
|
113282
|
-
presentation: presentation$1,
|
|
113283
|
-
scopedEvents,
|
|
113284
|
-
subject: normalizedSubject
|
|
113285
|
-
}),
|
|
113224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
113225
|
+
className: `event-details ${className ?? ""}`.trim(),
|
|
113226
|
+
"data-block": "event-details",
|
|
113286
113227
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EventDetailsView, {
|
|
113287
113228
|
...presentation$1,
|
|
113288
113229
|
mapClassName: "venue-map event-details-map"
|
|
@@ -131911,7 +131852,7 @@ async function loadConfig(configPath, output) {
|
|
|
131911
131852
|
return { errorMessage: "No config path provided." };
|
|
131912
131853
|
}
|
|
131913
131854
|
try {
|
|
131914
|
-
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-
|
|
131855
|
+
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-D7f6MXJV.mjs");
|
|
131915
131856
|
const rawConfig = await loadConfigFile$1(configPath);
|
|
131916
131857
|
const parsed = z.safeParse(riverbankSiteConfigSchema, rawConfig);
|
|
131917
131858
|
if (!parsed.success) {
|
|
@@ -17,6 +17,8 @@ remains unchanged.
|
|
|
17
17
|
|
|
18
18
|
## Configure the Catch-All Route
|
|
19
19
|
|
|
20
|
+
The generated `src/lib/riverbank-client.ts` imports `createRiverbankClient` from `@riverbankcms/sdk/next`. That constructor installs Next caching automatically. Ordinary content uses a one-hour budget; admitted availability uses 60 seconds and availability tags. SDK page-memory and durable-cache hits register the same policy on the rendered page. Preview reads stay uncached. The catch-all also installs this binding on existing SDK root/server clients, so upgrading an existing catch-all site needs no client-file edit.
|
|
21
|
+
|
|
20
22
|
In `src/app/[[...slug]]/page.tsx`:
|
|
21
23
|
|
|
22
24
|
```tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $n as headerStyleIdValues, Ar as createContentEntryRef, At as getMimeType, Br as slugPart, Bt as footerPreferencesSchema, Cr as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema, Jn as asHeaderLayoutId, Kn as SUPPORTED_LOADER_ENDPOINTS, Lr as createSiteCommandSiteRef, Mt as normalizeAmbiguousStoragePathForSite, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Pt as FILE_SIZE_LIMITS, Qn as headerLayoutIdValues, Sn as eventBookingOfferIntentSchema, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, Tr as bookingQuestionAttachmentSchema, Tt as resolveMediaIdentifier, Un as ICON_PICKER_PRESETS, V as themeSchema, Xt as buttonStyleSelectionSchema, Yn as asHeaderStyleId, Zn as footerLookIdValues, _r as asDesignBoundaryId, at as parseAspectRatioValue, b as getSiteCommandMetadata, bt as mediaTypeDiscriminants, ct as getDirectImageUrlForSiteScopedPath, fr as asAppearancePresetId, gr as asDesignBlockId, h as parseAndPlanCommandBatchForTypes, k as headerPreferencesSchema, kr as createCommandRef, kt as getExtensionForMimeType, l as resolvePageUpsertSeo, m as createDryRunReport, n as sdkCourseBookingSettingsSchema, p as stableStringify, qn as asFooterLookId, r as sdkEventOccurrenceInputSchema, rr as SYSTEM_BLOCK_KINDS, s as eventVisibilitySchema, v as evaluateSiteCommandBatchExposure, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wr as compareEntrySlug, xn as require_dist, xr as asPageFlowPresetId, y as evaluateSiteCommandExposure, yt as isDisplayMediaKind } from "./sdk-event-upsert-
|
|
3
|
-
import { $n as parseDatedOfferingCapacityHoldId, A as publicReadBatchFreshnessSeconds, Ar as unsafeAsEventSeriesId, At as clampConfiguredAmount, B as parseManagementKey, Bn as parseCurrencyCode, D as PUBLIC_CONTENT_FRESHNESS_SECONDS, Dt as validateBookingPaymentOptionKinds, E as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, Er as parseRetiredCourseId, Fn as toCents, Ft as splitAmountWithRemainderInFirst, Gn as unsafeAsAppointmentResourceId, In as toNonNegativeCents, It as businessCancellationRefusalCodes, Kn as unsafeAsStaffMemberId, Kt as formatDate, Ln as unsafeAsNonNegativeCents, Lt as scheduleBookingReasonCodes, Mn as isNonNegativeWholeCents$1, Mr as unsafeAsPricingOptionId, Nn as parseNonNegativeCents, Nr as err, O as getPublicReadCachePolicy, Or as unsafeAsEventInstanceId, Ot as isLiveOrderInstalmentPlanStatus, Pn as parsePositiveCents, Pr as ok, Pt as omitZeroAmountFutureRows, Q as parseFooterCompositionV1, Qn as parseDatedOfferingCapacityHoldAuditRef, R as createSecret, Rn as unsafeAsPositiveCents, Rt as resolveFlexibleBalanceDueAt, S as EVENT_PRESET_VALUES, Sr as parseUserId, St as trimmedStringOrNull, Tr as parseEventSeriesId, Vn as assertNever, Yn as parseMembershipId, Z as parseMailingListProviderScope, Zn as unsafeAsPassId, _ as canonicalizeConfiguredBookingVerticalConfig, _r as unsafeAsOrderPaymentPlanId, b as resolveSiteVerticalBookingConfig, br as parseApiKeyId, c as STAFF_OPERATIONAL_CAPABILITIES, ct as assertAllowedPublicUrl, f as planTurningOnCourses, fn as toUtcIsoDateTimeString, ft as stableJsonStringify, g as areConfiguredBookingVerticalConfigsEqual, gr as unsafeAsOrderFlexibleBalanceContractId, hr as unsafeAsCheckoutLineId, ht as locationValueSchema, j as publicReadFreshnessSeconds, jr as unsafeAsOccurrenceId, jt as getBookingInstalmentDepositRefundability, k as isPublicReadEndpoint, kn as fromArray, kr as unsafeAsEventOfferingId, kt as addIntervalPreservingMonthAnchor, ln as parseBookingLocalDate, m as withBookingModulesForSelectionChange, mn as resolveBookingTimeZoneId, n as OFFLINE_PAYMENT_METHODS, on as getLocalScheduleDate, p as resolveEventCatalogue, qn as parseCustomerId, r as committedWriteProofSchema, rn as formatLocalScheduleDate, tn as addLocalScheduleDays, v as parseVerticalId, vr as parseEditorSessionGeneration, w as SURFACE_EVENT_PRESET_VALUES, x as DEFAULT_EVENT_TYPE_PRESETS, xr as parseSiteId, y as parseVerticalPresetId, yt as publicLocationSchema, z as exposeSecret, zn as formatCurrencyAmount, zt as resolveFlexibleBalanceInitialPaymentCents } from "./src-
|
|
4
|
-
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-
|
|
2
|
+
import { $n as headerStyleIdValues, Ar as createContentEntryRef, At as getMimeType, Br as slugPart, Bt as footerPreferencesSchema, Cr as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema, Jn as asHeaderLayoutId, Kn as SUPPORTED_LOADER_ENDPOINTS, Lr as createSiteCommandSiteRef, Mt as normalizeAmbiguousStoragePathForSite, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Pt as FILE_SIZE_LIMITS, Qn as headerLayoutIdValues, Sn as eventBookingOfferIntentSchema, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, Tr as bookingQuestionAttachmentSchema, Tt as resolveMediaIdentifier, Un as ICON_PICKER_PRESETS, V as themeSchema, Xt as buttonStyleSelectionSchema, Yn as asHeaderStyleId, Zn as footerLookIdValues, _r as asDesignBoundaryId, at as parseAspectRatioValue, b as getSiteCommandMetadata, bt as mediaTypeDiscriminants, ct as getDirectImageUrlForSiteScopedPath, fr as asAppearancePresetId, gr as asDesignBlockId, h as parseAndPlanCommandBatchForTypes, k as headerPreferencesSchema, kr as createCommandRef, kt as getExtensionForMimeType, l as resolvePageUpsertSeo, m as createDryRunReport, n as sdkCourseBookingSettingsSchema, p as stableStringify, qn as asFooterLookId, r as sdkEventOccurrenceInputSchema, rr as SYSTEM_BLOCK_KINDS, s as eventVisibilitySchema, v as evaluateSiteCommandBatchExposure, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wr as compareEntrySlug, xn as require_dist, xr as asPageFlowPresetId, y as evaluateSiteCommandExposure, yt as isDisplayMediaKind } from "./sdk-event-upsert-n4in1E4v.mjs";
|
|
3
|
+
import { $n as parseDatedOfferingCapacityHoldId, A as publicReadBatchFreshnessSeconds, Ar as unsafeAsEventSeriesId, At as clampConfiguredAmount, B as parseManagementKey, Bn as parseCurrencyCode, D as PUBLIC_CONTENT_FRESHNESS_SECONDS, Dt as validateBookingPaymentOptionKinds, E as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, Er as parseRetiredCourseId, Fn as toCents, Ft as splitAmountWithRemainderInFirst, Gn as unsafeAsAppointmentResourceId, In as toNonNegativeCents, It as businessCancellationRefusalCodes, Kn as unsafeAsStaffMemberId, Kt as formatDate, Ln as unsafeAsNonNegativeCents, Lt as scheduleBookingReasonCodes, Mn as isNonNegativeWholeCents$1, Mr as unsafeAsPricingOptionId, Nn as parseNonNegativeCents, Nr as err, O as getPublicReadCachePolicy, Or as unsafeAsEventInstanceId, Ot as isLiveOrderInstalmentPlanStatus, Pn as parsePositiveCents, Pr as ok, Pt as omitZeroAmountFutureRows, Q as parseFooterCompositionV1, Qn as parseDatedOfferingCapacityHoldAuditRef, R as createSecret, Rn as unsafeAsPositiveCents, Rt as resolveFlexibleBalanceDueAt, S as EVENT_PRESET_VALUES, Sr as parseUserId, St as trimmedStringOrNull, Tr as parseEventSeriesId, Vn as assertNever, Yn as parseMembershipId, Z as parseMailingListProviderScope, Zn as unsafeAsPassId, _ as canonicalizeConfiguredBookingVerticalConfig, _r as unsafeAsOrderPaymentPlanId, b as resolveSiteVerticalBookingConfig, br as parseApiKeyId, c as STAFF_OPERATIONAL_CAPABILITIES, ct as assertAllowedPublicUrl, f as planTurningOnCourses, fn as toUtcIsoDateTimeString, ft as stableJsonStringify, g as areConfiguredBookingVerticalConfigsEqual, gr as unsafeAsOrderFlexibleBalanceContractId, hr as unsafeAsCheckoutLineId, ht as locationValueSchema, j as publicReadFreshnessSeconds, jr as unsafeAsOccurrenceId, jt as getBookingInstalmentDepositRefundability, k as isPublicReadEndpoint, kn as fromArray, kr as unsafeAsEventOfferingId, kt as addIntervalPreservingMonthAnchor, ln as parseBookingLocalDate, m as withBookingModulesForSelectionChange, mn as resolveBookingTimeZoneId, n as OFFLINE_PAYMENT_METHODS, on as getLocalScheduleDate, p as resolveEventCatalogue, qn as parseCustomerId, r as committedWriteProofSchema, rn as formatLocalScheduleDate, tn as addLocalScheduleDays, v as parseVerticalId, vr as parseEditorSessionGeneration, w as SURFACE_EVENT_PRESET_VALUES, x as DEFAULT_EVENT_TYPE_PRESETS, xr as parseSiteId, y as parseVerticalPresetId, yt as publicLocationSchema, z as exposeSecret, zn as formatCurrencyAmount, zt as resolveFlexibleBalanceInitialPaymentCents } from "./src-DHIn60_q.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-k3XF8V97.mjs";
|
|
5
5
|
import { safeParse, z } from "zod";
|
|
6
6
|
import { Argument, Command, Option } from "commander";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -83,20 +83,20 @@ function isApiError(result) {
|
|
|
83
83
|
function isApiSuccess(result) {
|
|
84
84
|
return result.success === true;
|
|
85
85
|
}
|
|
86
|
-
function isRecord$
|
|
86
|
+
function isRecord$12(value) {
|
|
87
87
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
88
88
|
}
|
|
89
89
|
function isFieldError$1(value) {
|
|
90
|
-
return isRecord$
|
|
90
|
+
return isRecord$12(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === undefined || isCapacityOverrideRefusal(value.capacityOverride));
|
|
91
91
|
}
|
|
92
92
|
function fieldErrorsFromUnknown(value) {
|
|
93
93
|
if (!Array.isArray(value)) return null;
|
|
94
94
|
return value.every(isFieldError$1) ? value : null;
|
|
95
95
|
}
|
|
96
96
|
function extractEnvelopeErrorObject(body) {
|
|
97
|
-
if (!isRecord$
|
|
97
|
+
if (!isRecord$12(body)) return null;
|
|
98
98
|
const error = body.error;
|
|
99
|
-
if (!isRecord$
|
|
99
|
+
if (!isRecord$12(error)) return null;
|
|
100
100
|
if ("success" in body && body.success !== false) {
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
@@ -458,7 +458,7 @@ const retentionPolicyRegistry = {
|
|
|
458
458
|
executionModes: ["dry_run", "scheduled"],
|
|
459
459
|
executionSubstrate: "vercel_cron"
|
|
460
460
|
},
|
|
461
|
-
rationale: "Technical support snapshots are cleared after 90 days; the summary and conversation remain separately for support."
|
|
461
|
+
rationale: "Technical support snapshots and screenshots are cleared after 90 days; the summary and conversation remain separately for support. The same run removes screenshots whose ticket no longer exists, such as after account deletion."
|
|
462
462
|
},
|
|
463
463
|
support_correspondence: {
|
|
464
464
|
dataClass: "support_correspondence",
|
|
@@ -1620,6 +1620,23 @@ function buildPublicReadFetchPolicy(siteId, reads) {
|
|
|
1620
1620
|
function buildPublicReadBatchFetchPolicy(siteId, reads) {
|
|
1621
1621
|
return buildFetchPolicy(siteId, reads, publicReadBatchFreshnessSeconds);
|
|
1622
1622
|
}
|
|
1623
|
+
/** A page may depend on admission even when an ordinary CMS page won precedence. */
|
|
1624
|
+
function buildPageReadCachePolicy(siteId, dependencies) {
|
|
1625
|
+
return dependencies === "availability" ? {
|
|
1626
|
+
tags: normalizeRevalidateTags([
|
|
1627
|
+
...buildCacheReadTags([TAG_TEMPLATES.siteRoutableContent], { siteId }),
|
|
1628
|
+
...buildPublicReadFetchTags("listPublicEvents", { siteId }),
|
|
1629
|
+
...buildPublicReadFetchTags("getPublicBookingService", { siteId })
|
|
1630
|
+
]),
|
|
1631
|
+
revalidate: PUBLIC_AVAILABILITY_FRESHNESS_SECONDS
|
|
1632
|
+
} : {
|
|
1633
|
+
tags: buildCacheReadTags([TAG_TEMPLATES.siteRoutableContent], { siteId }),
|
|
1634
|
+
revalidate: PUBLIC_CONTENT_FRESHNESS_SECONDS
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
function pageReadDependencies(payload) {
|
|
1638
|
+
return typeof payload === "object" && payload !== null && "dependencies" in payload && payload.dependencies === "content" ? "content" : "availability";
|
|
1639
|
+
}
|
|
1623
1640
|
|
|
1624
1641
|
//#endregion
|
|
1625
1642
|
//#region ../api/src/sdkEntryReadEndpoints.ts
|
|
@@ -10035,15 +10052,6 @@ const PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
10035
10052
|
"resource:conflict",
|
|
10036
10053
|
"server:internal_error"
|
|
10037
10054
|
]
|
|
10038
|
-
},
|
|
10039
|
-
resolveEventSubroute: {
|
|
10040
|
-
path: "/public/sites/{siteId}/events/subroutes/resolve",
|
|
10041
|
-
method: "GET",
|
|
10042
|
-
revalidate: publicReadFreshnessSeconds("resolveEventSubroute"),
|
|
10043
|
-
tags: [TAG_TEMPLATES.publicEvents, "event-subroute"],
|
|
10044
|
-
auth: "public",
|
|
10045
|
-
responseKind: "json",
|
|
10046
|
-
errors: []
|
|
10047
10055
|
}
|
|
10048
10056
|
});
|
|
10049
10057
|
|
|
@@ -13264,6 +13272,14 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
13264
13272
|
responseKind: "json",
|
|
13265
13273
|
errors: []
|
|
13266
13274
|
},
|
|
13275
|
+
adminDeleteSupportTicketScreenshot: {
|
|
13276
|
+
path: "/admin/support/tickets/screenshot/delete",
|
|
13277
|
+
method: "POST",
|
|
13278
|
+
tags: ["admin", "support"],
|
|
13279
|
+
auth: "admin",
|
|
13280
|
+
responseKind: "json",
|
|
13281
|
+
errors: []
|
|
13282
|
+
},
|
|
13267
13283
|
mfaTotpEnroll: {
|
|
13268
13284
|
path: "/auth/mfa/totp/enroll",
|
|
13269
13285
|
method: "POST",
|
|
@@ -14265,6 +14281,7 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
14265
14281
|
responseKind: "json"
|
|
14266
14282
|
},
|
|
14267
14283
|
resolveRouteOutcome: {
|
|
14284
|
+
revalidate: PUBLIC_CONTENT_FRESHNESS_SECONDS,
|
|
14268
14285
|
path: "/sites/{siteId}/route-outcome",
|
|
14269
14286
|
method: "GET",
|
|
14270
14287
|
tags: [
|
|
@@ -15192,6 +15209,25 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
15192
15209
|
"bookings"
|
|
15193
15210
|
]
|
|
15194
15211
|
},
|
|
15212
|
+
listEventBookingTicketChoices: {
|
|
15213
|
+
errors: [],
|
|
15214
|
+
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/ticket-choices",
|
|
15215
|
+
method: "GET",
|
|
15216
|
+
auth: "user",
|
|
15217
|
+
responseKind: "json"
|
|
15218
|
+
},
|
|
15219
|
+
changeEventBookingTickets: {
|
|
15220
|
+
errors: [],
|
|
15221
|
+
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/change-tickets",
|
|
15222
|
+
method: "POST",
|
|
15223
|
+
auth: "user",
|
|
15224
|
+
responseKind: "json",
|
|
15225
|
+
tags: [
|
|
15226
|
+
"site-{siteId}",
|
|
15227
|
+
"event-attendee-{attendeeId}",
|
|
15228
|
+
"bookings"
|
|
15229
|
+
]
|
|
15230
|
+
},
|
|
15195
15231
|
restoreEventBooking: {
|
|
15196
15232
|
errors: [],
|
|
15197
15233
|
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/restore",
|
|
@@ -18577,7 +18613,7 @@ const BOOKING_SETTINGS_EMAIL_SEND_KEYS = [
|
|
|
18577
18613
|
//#region ../api/src/event-listing-destination.ts
|
|
18578
18614
|
const EVENT_LISTING_DESTINATION_SETTINGS_KEY = "listingDestination";
|
|
18579
18615
|
const DEFAULT_EXTERNAL_EVENT_CTA_LABEL = "View details";
|
|
18580
|
-
function isRecord$
|
|
18616
|
+
function isRecord$11(value) {
|
|
18581
18617
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
18582
18618
|
}
|
|
18583
18619
|
function normalizeOptionalLabel(value) {
|
|
@@ -18597,11 +18633,11 @@ function normalizeEventListingDestinationInput(value) {
|
|
|
18597
18633
|
};
|
|
18598
18634
|
}
|
|
18599
18635
|
function readEventListingDestinationFromSettings(settingsJson) {
|
|
18600
|
-
if (!isRecord$
|
|
18636
|
+
if (!isRecord$11(settingsJson)) {
|
|
18601
18637
|
return { kind: "native" };
|
|
18602
18638
|
}
|
|
18603
18639
|
const rawDestination = settingsJson[EVENT_LISTING_DESTINATION_SETTINGS_KEY];
|
|
18604
|
-
if (!isRecord$
|
|
18640
|
+
if (!isRecord$11(rawDestination) || rawDestination.kind !== "external") {
|
|
18605
18641
|
return { kind: "native" };
|
|
18606
18642
|
}
|
|
18607
18643
|
return {
|
|
@@ -19301,7 +19337,7 @@ const sdkConfigureBookingVerticalResponseSchema = sdkCommandApplicationResultSch
|
|
|
19301
19337
|
|
|
19302
19338
|
//#endregion
|
|
19303
19339
|
//#region ../management-client/src/responseValidation.ts
|
|
19304
|
-
function isRecord$
|
|
19340
|
+
function isRecord$10(value) {
|
|
19305
19341
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
19306
19342
|
}
|
|
19307
19343
|
function pullSchemaForRequest(path$3) {
|
|
@@ -19322,8 +19358,8 @@ function pullSchemaForRequest(path$3) {
|
|
|
19322
19358
|
function rootMutationSchema(method, path$3, body) {
|
|
19323
19359
|
if (method === "POST") {
|
|
19324
19360
|
switch (path$3) {
|
|
19325
|
-
case "/entries": return isRecord$
|
|
19326
|
-
case "/pages": return isRecord$
|
|
19361
|
+
case "/entries": return isRecord$10(body) && body.publication === "publish" ? sdkUpsertEntryPublishResponseSchema : sdkUpsertEntryDraftResponseSchema;
|
|
19362
|
+
case "/pages": return isRecord$10(body) && body.publication === "publish" ? sdkUpsertPagePublishResponseSchema : sdkUpsertPageDraftResponseSchema;
|
|
19327
19363
|
case "/navigation": return sdkUpsertNavigationMenuResponseSchema;
|
|
19328
19364
|
case "/forms": return sdkUpsertFormResponseSchema;
|
|
19329
19365
|
case "/venues": return sdkUpsertVenueResponseSchema;
|
|
@@ -19616,14 +19652,14 @@ function parseRuntimeResponse(value, schema, requestInfo, statusCode) {
|
|
|
19616
19652
|
if (validation.valid) throw new Error("Response schema parsing was inconsistent");
|
|
19617
19653
|
throw new ManagementInvalidResponseError(validation.details, statusCode, requestInfo);
|
|
19618
19654
|
}
|
|
19619
|
-
function isRecord$
|
|
19655
|
+
function isRecord$9(value) {
|
|
19620
19656
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
19621
19657
|
}
|
|
19622
19658
|
function isFieldError(value) {
|
|
19623
|
-
return isRecord$
|
|
19659
|
+
return isRecord$9(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string";
|
|
19624
19660
|
}
|
|
19625
19661
|
function parseApiResponse(value) {
|
|
19626
|
-
if (!isRecord$
|
|
19662
|
+
if (!isRecord$9(value)) return null;
|
|
19627
19663
|
if (value.success === true) {
|
|
19628
19664
|
return {
|
|
19629
19665
|
success: true,
|
|
@@ -19632,7 +19668,7 @@ function parseApiResponse(value) {
|
|
|
19632
19668
|
}
|
|
19633
19669
|
if (value.success === false) {
|
|
19634
19670
|
const error = value.error;
|
|
19635
|
-
if (!isRecord$
|
|
19671
|
+
if (!isRecord$9(error) || typeof error.code !== "string" || typeof error.message !== "string") {
|
|
19636
19672
|
return {
|
|
19637
19673
|
success: false,
|
|
19638
19674
|
error: {
|
|
@@ -21156,16 +21192,16 @@ var BlockPatchStaleContentError = class extends ManagementApiError {
|
|
|
21156
21192
|
function isBlockPatchStaleContentError(error) {
|
|
21157
21193
|
return error instanceof BlockPatchStaleContentError;
|
|
21158
21194
|
}
|
|
21159
|
-
function isRecord$
|
|
21195
|
+
function isRecord$8(value) {
|
|
21160
21196
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
21161
21197
|
}
|
|
21162
21198
|
function extractStaleContentCurrentHash(error) {
|
|
21163
21199
|
if (error.statusCode !== 409) return null;
|
|
21164
|
-
if (!isRecord$
|
|
21200
|
+
if (!isRecord$8(error.details)) return null;
|
|
21165
21201
|
const fieldErrors = error.details.fieldErrors;
|
|
21166
21202
|
if (!Array.isArray(fieldErrors)) return null;
|
|
21167
21203
|
for (const fieldError of fieldErrors) {
|
|
21168
|
-
if (isRecord$
|
|
21204
|
+
if (isRecord$8(fieldError) && fieldError.field === SDK_PATCH_STALE_CONTENT_FIELD && fieldError.code === SDK_PATCH_STALE_CONTENT_CODE && typeof fieldError.message === "string") {
|
|
21169
21205
|
return fieldError.message;
|
|
21170
21206
|
}
|
|
21171
21207
|
}
|
|
@@ -23691,6 +23727,168 @@ function parsePublicProductCategorySelector(value) {
|
|
|
23691
23727
|
return undefined;
|
|
23692
23728
|
}
|
|
23693
23729
|
|
|
23730
|
+
//#endregion
|
|
23731
|
+
//#region ../api/src/pageReadResponseCache.ts
|
|
23732
|
+
var CacheProbeMiss = class extends Error {};
|
|
23733
|
+
/** Next has no response-dependent fetch TTL. Only the matching policy may store a page read. */
|
|
23734
|
+
var UncachedPageRead = class extends Error {
|
|
23735
|
+
constructor(snapshot) {
|
|
23736
|
+
super("Page read belongs to another cache policy");
|
|
23737
|
+
this.snapshot = snapshot;
|
|
23738
|
+
}
|
|
23739
|
+
};
|
|
23740
|
+
function isRecord$7(value) {
|
|
23741
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23742
|
+
}
|
|
23743
|
+
function isResolvedPage(page) {
|
|
23744
|
+
return page?.kind === "resolved" && typeof page.requestedPath === "string" && (page.dependencies === "content" || page.dependencies === "availability") && isRecord$7(page.result) && [
|
|
23745
|
+
"cms",
|
|
23746
|
+
"system_event",
|
|
23747
|
+
"system_service"
|
|
23748
|
+
].includes(String(page.result.kind));
|
|
23749
|
+
}
|
|
23750
|
+
function envelopePage(body) {
|
|
23751
|
+
const data = isRecord$7(body) && body.success === true && isRecord$7(body.data) ? body.data : null;
|
|
23752
|
+
return data?.type === "content" && isRecord$7(data.content) ? data.content : data;
|
|
23753
|
+
}
|
|
23754
|
+
function admit(snapshot) {
|
|
23755
|
+
try {
|
|
23756
|
+
const body = JSON.parse(snapshot.body);
|
|
23757
|
+
const page = envelopePage(body);
|
|
23758
|
+
if (snapshot.status === 200 && isResolvedPage(page)) return {
|
|
23759
|
+
resolved: true,
|
|
23760
|
+
dependencies: page.dependencies
|
|
23761
|
+
};
|
|
23762
|
+
} catch {}
|
|
23763
|
+
return {
|
|
23764
|
+
resolved: false,
|
|
23765
|
+
dependencies: snapshot.status === 200 || snapshot.headers.some(([key, value]) => key === "x-riverbank-page-dependencies" && value === "availability") ? "availability" : "content"
|
|
23766
|
+
};
|
|
23767
|
+
}
|
|
23768
|
+
/** A scoped transport read is shared with Next's background refresh, never across requests. */
|
|
23769
|
+
function liveResponse(read) {
|
|
23770
|
+
const pending = new Map();
|
|
23771
|
+
return () => {
|
|
23772
|
+
const existing = pending.get("response");
|
|
23773
|
+
if (existing) return existing;
|
|
23774
|
+
const response = read().then(async (value) => ({
|
|
23775
|
+
body: await value.text(),
|
|
23776
|
+
status: value.status,
|
|
23777
|
+
headers: [...value.headers.entries()],
|
|
23778
|
+
cachedAt: Date.now()
|
|
23779
|
+
}));
|
|
23780
|
+
pending.set("response", response);
|
|
23781
|
+
return response;
|
|
23782
|
+
};
|
|
23783
|
+
}
|
|
23784
|
+
/** Neutral probes do not register a policy; the chosen entry is then checked with its real tags. */
|
|
23785
|
+
async function readPolicy(input, probe = false) {
|
|
23786
|
+
const policy = buildPageReadCachePolicy(input.siteId, input.dependency);
|
|
23787
|
+
const revalidate = Math.min(policy.revalidate, input.maxAge ?? policy.revalidate);
|
|
23788
|
+
const cached = input.cache(async () => {
|
|
23789
|
+
const snapshot$1 = await input.read();
|
|
23790
|
+
const admission = admit(snapshot$1);
|
|
23791
|
+
if (!admission.resolved || admission.dependencies !== input.dependency) throw new UncachedPageRead(snapshot$1);
|
|
23792
|
+
return snapshot$1;
|
|
23793
|
+
}, [
|
|
23794
|
+
"page-read-envelope-v2",
|
|
23795
|
+
input.key,
|
|
23796
|
+
input.dependency
|
|
23797
|
+
], probe ? {
|
|
23798
|
+
revalidate: false,
|
|
23799
|
+
tags: []
|
|
23800
|
+
} : {
|
|
23801
|
+
...policy,
|
|
23802
|
+
revalidate
|
|
23803
|
+
});
|
|
23804
|
+
const snapshot = await cached();
|
|
23805
|
+
if (Date.now() - snapshot.cachedAt < revalidate * 1e3) return snapshot;
|
|
23806
|
+
return probe ? null : input.read();
|
|
23807
|
+
}
|
|
23808
|
+
async function probePolicy(input) {
|
|
23809
|
+
return readPolicy({
|
|
23810
|
+
...input,
|
|
23811
|
+
read: async () => {
|
|
23812
|
+
throw new CacheProbeMiss();
|
|
23813
|
+
}
|
|
23814
|
+
}, true).catch((error) => {
|
|
23815
|
+
if (error instanceof CacheProbeMiss) return null;
|
|
23816
|
+
throw error;
|
|
23817
|
+
});
|
|
23818
|
+
}
|
|
23819
|
+
/** Read in a framework cache scope, but never store an unclassified or failed response. */
|
|
23820
|
+
async function readInCacheScope(cache, key, read) {
|
|
23821
|
+
try {
|
|
23822
|
+
return await cache(async () => {
|
|
23823
|
+
throw new UncachedPageRead(await read());
|
|
23824
|
+
}, ["page-read-live-v2", key], {
|
|
23825
|
+
revalidate: false,
|
|
23826
|
+
tags: []
|
|
23827
|
+
})();
|
|
23828
|
+
} catch (error) {
|
|
23829
|
+
if (error instanceof UncachedPageRead) return error.snapshot;
|
|
23830
|
+
throw error;
|
|
23831
|
+
}
|
|
23832
|
+
}
|
|
23833
|
+
async function selectResponse(input) {
|
|
23834
|
+
const candidate = await probePolicy({
|
|
23835
|
+
...input,
|
|
23836
|
+
dependency: "content"
|
|
23837
|
+
}) ?? await probePolicy({
|
|
23838
|
+
...input,
|
|
23839
|
+
dependency: "availability"
|
|
23840
|
+
});
|
|
23841
|
+
if (candidate) {
|
|
23842
|
+
try {
|
|
23843
|
+
const checked = await readPolicy({
|
|
23844
|
+
...input,
|
|
23845
|
+
dependency: admit(candidate).dependencies
|
|
23846
|
+
});
|
|
23847
|
+
if (checked) return checked;
|
|
23848
|
+
} catch (error) {
|
|
23849
|
+
if (error instanceof UncachedPageRead) return storeResponse(input, error.snapshot);
|
|
23850
|
+
throw error;
|
|
23851
|
+
}
|
|
23852
|
+
}
|
|
23853
|
+
return storeResponse(input, await readInCacheScope(input.cache, input.key, input.read));
|
|
23854
|
+
}
|
|
23855
|
+
async function storeResponse(input, snapshot) {
|
|
23856
|
+
const admission = admit(snapshot);
|
|
23857
|
+
try {
|
|
23858
|
+
return await readPolicy({
|
|
23859
|
+
...input,
|
|
23860
|
+
key: admission.resolved ? input.key : `${input.key}:refusal:${snapshot.status}`,
|
|
23861
|
+
dependency: admission.dependencies,
|
|
23862
|
+
read: async () => snapshot
|
|
23863
|
+
}) ?? snapshot;
|
|
23864
|
+
} catch (error) {
|
|
23865
|
+
if (error instanceof UncachedPageRead) return error.snapshot;
|
|
23866
|
+
throw error;
|
|
23867
|
+
}
|
|
23868
|
+
}
|
|
23869
|
+
async function cachePageReadResponse(input) {
|
|
23870
|
+
if (!input.cache) return input.read();
|
|
23871
|
+
const result = await selectResponse({
|
|
23872
|
+
...input,
|
|
23873
|
+
cache: input.cache,
|
|
23874
|
+
read: liveResponse(input.read)
|
|
23875
|
+
});
|
|
23876
|
+
return new Response(result.body, {
|
|
23877
|
+
status: result.status,
|
|
23878
|
+
headers: result.headers
|
|
23879
|
+
});
|
|
23880
|
+
}
|
|
23881
|
+
/** Result adapters use this for cache fallbacks that did not return through the HTTP transport. */
|
|
23882
|
+
async function observePageReadPolicy(cache, siteId, payload) {
|
|
23883
|
+
if (!cache) return;
|
|
23884
|
+
const dependency = pageReadDependencies(payload);
|
|
23885
|
+
await cache(async () => true, [
|
|
23886
|
+
"page-read-policy-v2",
|
|
23887
|
+
siteId,
|
|
23888
|
+
dependency
|
|
23889
|
+
], buildPageReadCachePolicy(siteId, dependency))();
|
|
23890
|
+
}
|
|
23891
|
+
|
|
23694
23892
|
//#endregion
|
|
23695
23893
|
//#region ../api/src/token.ts
|
|
23696
23894
|
async function getAuthHeaders(supabase) {
|
|
@@ -24169,20 +24367,9 @@ function normalizeCmsApiKey(raw) {
|
|
|
24169
24367
|
|
|
24170
24368
|
//#endregion
|
|
24171
24369
|
//#region ../api/src/request.ts
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
if (revalidateTagResolved) return revalidateTag;
|
|
24176
|
-
revalidateTagResolved = true;
|
|
24177
|
-
if (typeof window !== "undefined") return null;
|
|
24178
|
-
try {
|
|
24179
|
-
const dynamicRequire = new Function("modulePath", "return require(modulePath)");
|
|
24180
|
-
const nextCache = dynamicRequire("next/cache");
|
|
24181
|
-
revalidateTag = nextCache.revalidateTag ?? null;
|
|
24182
|
-
} catch {
|
|
24183
|
-
revalidateTag = null;
|
|
24184
|
-
}
|
|
24185
|
-
return revalidateTag;
|
|
24370
|
+
/** Preserve the returned dependency even when the SDK served a durable fallback. */
|
|
24371
|
+
function observePageReadResponse(adapter, siteId, payload) {
|
|
24372
|
+
return observePageReadPolicy(adapter?.cache ?? null, siteId, payload);
|
|
24186
24373
|
}
|
|
24187
24374
|
/**
|
|
24188
24375
|
* Generate a UUID, with fallback for environments where crypto.randomUUID isn't available.
|
|
@@ -24292,8 +24479,8 @@ function serializePathParam(endpoint, key, value) {
|
|
|
24292
24479
|
}
|
|
24293
24480
|
throw new Error(`Invalid path param for endpoint ${String(endpoint)}: ${key} must be a string`);
|
|
24294
24481
|
}
|
|
24295
|
-
function invalidateCacheTags(tags$1, params) {
|
|
24296
|
-
const resolved =
|
|
24482
|
+
function invalidateCacheTags(adapter, tags$1, params) {
|
|
24483
|
+
const resolved = adapter?.invalidateTag;
|
|
24297
24484
|
if (typeof window !== "undefined" || !resolved || !tags$1) return;
|
|
24298
24485
|
tags$1.forEach((tag) => {
|
|
24299
24486
|
let processedTag = tag;
|
|
@@ -24303,7 +24490,7 @@ function invalidateCacheTags(tags$1, params) {
|
|
|
24303
24490
|
});
|
|
24304
24491
|
}
|
|
24305
24492
|
try {
|
|
24306
|
-
resolved(processedTag
|
|
24493
|
+
resolved(processedTag);
|
|
24307
24494
|
} catch {}
|
|
24308
24495
|
});
|
|
24309
24496
|
}
|
|
@@ -24416,7 +24603,7 @@ async function createAuthenticatedApiClient(supabase) {
|
|
|
24416
24603
|
}
|
|
24417
24604
|
return createCMSClient(authHeaders);
|
|
24418
24605
|
}
|
|
24419
|
-
function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersion } = {}) {
|
|
24606
|
+
function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersion, frameworkCache } = {}) {
|
|
24420
24607
|
return ({ endpoint, body, params, options = {} }) => {
|
|
24421
24608
|
const plan = buildApiRequestPlan({
|
|
24422
24609
|
endpoint,
|
|
@@ -24430,11 +24617,11 @@ function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersi
|
|
|
24430
24617
|
baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl()),
|
|
24431
24618
|
sdkVersion
|
|
24432
24619
|
});
|
|
24433
|
-
const fetchPromise =
|
|
24620
|
+
const fetchPromise = executeApiRequest(plan, endpoint, params, options, frameworkCache);
|
|
24434
24621
|
if (plan.cacheInvalidationTags) {
|
|
24435
24622
|
return fetchPromise.then((response) => {
|
|
24436
24623
|
if (response.ok) {
|
|
24437
|
-
invalidateCacheTags(plan.cacheInvalidationTags, params);
|
|
24624
|
+
invalidateCacheTags(frameworkCache, plan.cacheInvalidationTags, params);
|
|
24438
24625
|
}
|
|
24439
24626
|
return response;
|
|
24440
24627
|
});
|
|
@@ -24442,6 +24629,24 @@ function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersi
|
|
|
24442
24629
|
return fetchPromise;
|
|
24443
24630
|
};
|
|
24444
24631
|
}
|
|
24632
|
+
function isPublishedPageRead(endpoint, params, options) {
|
|
24633
|
+
return (endpoint === "getContentByPath" || endpoint === "resolveRouteOutcome") && params?.preview !== true && params?.preview !== "true" && options.cache !== "no-store";
|
|
24634
|
+
}
|
|
24635
|
+
function executeApiRequest(plan, endpoint, params, options, frameworkCache) {
|
|
24636
|
+
const inputParams = params;
|
|
24637
|
+
const { next: fetchPolicy, ...uncachedInit } = plan.init;
|
|
24638
|
+
const publishedPage = isPublishedPageRead(endpoint, inputParams, options);
|
|
24639
|
+
return publishedPage ? cachePageReadResponse({
|
|
24640
|
+
cache: frameworkCache?.cache ?? null,
|
|
24641
|
+
key: JSON.stringify([plan.url, [...new Headers(plan.init.headers).entries()]]),
|
|
24642
|
+
siteId: typeof inputParams?.siteId === "string" ? inputParams.siteId : "",
|
|
24643
|
+
maxAge: typeof fetchPolicy?.revalidate === "number" ? fetchPolicy.revalidate : undefined,
|
|
24644
|
+
read: () => fetch(plan.url, {
|
|
24645
|
+
...uncachedInit,
|
|
24646
|
+
cache: "no-store"
|
|
24647
|
+
})
|
|
24648
|
+
}) : fetch(plan.url, plan.init);
|
|
24649
|
+
}
|
|
24445
24650
|
const batchReadPolicyBodySchema = z.object({ requests: z.array(z.object({
|
|
24446
24651
|
endpoint: z.string(),
|
|
24447
24652
|
params: z.record(z.string(), z.unknown()).optional()
|
|
@@ -24475,10 +24680,12 @@ function batchReadRequestOptions(params, body, options) {
|
|
|
24475
24680
|
function publicReadRequestOptions(endpoint, params, body, options) {
|
|
24476
24681
|
if (endpoint === "batchBlockLoaders") return batchReadRequestOptions(params, body, options);
|
|
24477
24682
|
const preview = params?.preview === true || params?.preview === "true";
|
|
24478
|
-
|
|
24683
|
+
if (endpoint !== "getContentByPath" && endpoint !== "resolveRouteOutcome") return options;
|
|
24684
|
+
if (preview) return {
|
|
24479
24685
|
...options,
|
|
24480
24686
|
cache: "no-store"
|
|
24481
|
-
}
|
|
24687
|
+
};
|
|
24688
|
+
return options;
|
|
24482
24689
|
}
|
|
24483
24690
|
function assertResolvedEndpointPath(endpoint, url) {
|
|
24484
24691
|
const tokens = [...url.match(/\{[^}]+\}/g) ?? [], ...url.match(/(^|\/):([A-Za-z][A-Za-z0-9_]*)\b/g) ?? []];
|
|
@@ -24661,6 +24868,7 @@ const BOOKING_ACTIVITY_TYPE_VALUES = [
|
|
|
24661
24868
|
"appointment_moved",
|
|
24662
24869
|
"event_booking_moved",
|
|
24663
24870
|
"event_booking_restored",
|
|
24871
|
+
"event_booking_ticket_changed",
|
|
24664
24872
|
"waitlist_joined",
|
|
24665
24873
|
"balance_paid",
|
|
24666
24874
|
"payment_recorded",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { En as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-
|
|
3
|
-
import { S as EVENT_PRESET_VALUES } from "./src-
|
|
2
|
+
import { En as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-n4in1E4v.mjs";
|
|
3
|
+
import { S as EVENT_PRESET_VALUES } from "./src-DHIn60_q.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.
|
|
10
|
+
var version = "0.36.0";
|
|
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.
|
|
97
|
+
const CLI_VERSION = typeof "0.36.0" === "string" ? "0.36.0" : 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 { Nr as err, Pr as ok, xr as parseSiteId } from "./src-
|
|
2
|
+
import { Nr as err, Pr as ok, xr as parseSiteId } from "./src-DHIn60_q.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";
|
|
@@ -1810,21 +1810,16 @@ export function isPreviewMode(): boolean {
|
|
|
1810
1810
|
` : "";
|
|
1811
1811
|
return {
|
|
1812
1812
|
path: "src/lib/riverbank-client.ts",
|
|
1813
|
-
content: `import { createRiverbankClient, type RiverbankClient } from '@riverbankcms/sdk/
|
|
1813
|
+
content: `import { createRiverbankClient, type RiverbankClient } from '@riverbankcms/sdk/next';
|
|
1814
1814
|
import config from '../../riverbank.config';
|
|
1815
1815
|
import { getCmsConfig } from './env';
|
|
1816
1816
|
|
|
1817
1817
|
/**
|
|
1818
1818
|
* Singleton client instance.
|
|
1819
1819
|
*
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
* Note: In Next.js server components, each request typically runs in a fresh
|
|
1825
|
-
* context, so cache is effectively per-request unless using persistent processes.
|
|
1826
|
-
* The singleton pattern primarily benefits scenarios with multiple SDK calls
|
|
1827
|
-
* within a single request or when running in long-lived processes.
|
|
1820
|
+
* Reuses SDK memory and resilience state within the process. The Next constructor
|
|
1821
|
+
* also installs the persistent tagged response cache and registers the returned
|
|
1822
|
+
* freshness and tags on rendered pages, including SDK page-memory cache hits.
|
|
1828
1823
|
*/
|
|
1829
1824
|
let clientInstance: RiverbankClient | null = null;
|
|
1830
1825
|
|
|
@@ -1834,7 +1829,8 @@ let clientInstance: RiverbankClient | null = null;
|
|
|
1834
1829
|
* Returns a cached client instance, creating one if it doesn't exist.
|
|
1835
1830
|
* The client handles:
|
|
1836
1831
|
* - API authentication via environment-specific API key
|
|
1837
|
-
* -
|
|
1832
|
+
* - Next caching with one-hour content and 60-second availability policies
|
|
1833
|
+
* - SDK memory caching (100 entries max)
|
|
1838
1834
|
* - Type-safe API responses
|
|
1839
1835
|
*
|
|
1840
1836
|
* Configuration is read based on RIVERBANK_ENV (local | remote).
|
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-DHIn60_q.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-D-bOngd3.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 { An as mapNonEmptyArray, C as ORDINARY_EVENT_PRESET_VALUES, Cr as unsafeAsSiteId, Dr as unsafeAsEventCategoryId, Dt as validateBookingPaymentOptionKinds, Et as BOOKING_COURSE_INSTALMENT_DEADLINES, J as parseMailingListGlobalForm, Nr as err, Pr as ok, Q as parseFooterCompositionV1, S as EVENT_PRESET_VALUES, Un as unsafeAsBookingRequirementId, Vn as assertNever, Vt as MAX_BOOKING_CUT_OFF_HOURS, Xn as unsafeAsEntitlementId, ar as unsafeAsMediaAssetId, b as resolveSiteVerticalBookingConfig, c as STAFF_OPERATIONAL_CAPABILITIES, cn as localScheduleTimePattern, cr as unsafeAsPositiveSeconds, dn as parseUtcIsoDateTimeString, dr as unsafeAsStorageBucketName, er as unsafeAsBookingSessionId, fr as unsafeAsStoragePath, ft as stableJsonStringify, gn as parseBookingTimeZone, h as NAVIGATION_LOCATIONS, ht as locationValueSchema, i as isRecord$6, ir as unsafeAsFileChecksumSha256, jn as mapReadonlyNonEmptyArray, kn as fromArray, lr as unsafeAsSafeDownloadFilename, lt as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, mr as unsafeAsProductId, n as OFFLINE_PAYMENT_METHODS, nr as unsafeAsDeclaredMimeType, o as applyClearable, or as unsafeAsOriginalFilename, ot as parsePublicContactDetails, pr as unsafeAsUploadSessionId, q as parseConfiguredMailingListProvider, rr as unsafeAsDetectedMimeType, rt as isCanonicalRichTextDoc, s as clearableFrom, sr as unsafeAsPositiveByteCount, st as parseWeeklyOpeningHours, t as isEventOccurrenceRouteSegment, tr as parseMediaAssetId, ur as unsafeAsSiteScopedStoragePath, ut as SENSITIVE_COLLECTION_MODES, wr as unsafeAsUserId, xr as parseSiteId, xt as isPresent, yr as unsafeAsSiteFontId } from "./src-
|
|
2
|
+
import { An as mapNonEmptyArray, C as ORDINARY_EVENT_PRESET_VALUES, Cr as unsafeAsSiteId, Dr as unsafeAsEventCategoryId, Dt as validateBookingPaymentOptionKinds, Et as BOOKING_COURSE_INSTALMENT_DEADLINES, J as parseMailingListGlobalForm, Nr as err, Pr as ok, Q as parseFooterCompositionV1, S as EVENT_PRESET_VALUES, Un as unsafeAsBookingRequirementId, Vn as assertNever, Vt as MAX_BOOKING_CUT_OFF_HOURS, Xn as unsafeAsEntitlementId, ar as unsafeAsMediaAssetId, b as resolveSiteVerticalBookingConfig, c as STAFF_OPERATIONAL_CAPABILITIES, cn as localScheduleTimePattern, cr as unsafeAsPositiveSeconds, dn as parseUtcIsoDateTimeString, dr as unsafeAsStorageBucketName, er as unsafeAsBookingSessionId, fr as unsafeAsStoragePath, ft as stableJsonStringify, gn as parseBookingTimeZone, h as NAVIGATION_LOCATIONS, ht as locationValueSchema, i as isRecord$6, ir as unsafeAsFileChecksumSha256, jn as mapReadonlyNonEmptyArray, kn as fromArray, lr as unsafeAsSafeDownloadFilename, lt as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, mr as unsafeAsProductId, n as OFFLINE_PAYMENT_METHODS, nr as unsafeAsDeclaredMimeType, o as applyClearable, or as unsafeAsOriginalFilename, ot as parsePublicContactDetails, pr as unsafeAsUploadSessionId, q as parseConfiguredMailingListProvider, rr as unsafeAsDetectedMimeType, rt as isCanonicalRichTextDoc, s as clearableFrom, sr as unsafeAsPositiveByteCount, st as parseWeeklyOpeningHours, t as isEventOccurrenceRouteSegment, tr as parseMediaAssetId, ur as unsafeAsSiteScopedStoragePath, ut as SENSITIVE_COLLECTION_MODES, wr as unsafeAsUserId, xr as parseSiteId, xt as isPresent, yr as unsafeAsSiteFontId } from "./src-DHIn60_q.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -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();
|
|
@@ -8598,7 +8603,6 @@ const PUBLIC_READ_CACHE_POLICIES = {
|
|
|
8598
8603
|
"public_memberships"
|
|
8599
8604
|
], "batch_only"),
|
|
8600
8605
|
getPublicMapLocation: availability(["public_events", "public_event_filters"], "batch_only"),
|
|
8601
|
-
resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
|
|
8602
8606
|
listPublicRouteCandidates: content(["published_content"], "batch_only"),
|
|
8603
8607
|
listPublicTeamMembers: content(["public_team_members"]),
|
|
8604
8608
|
listPublicProducts: availability(["public_products"], "direct"),
|
|
@@ -10729,6 +10733,11 @@ const EMAIL_DEFINITIONS = {
|
|
|
10729
10733
|
perEvent: false,
|
|
10730
10734
|
templateStorage: true
|
|
10731
10735
|
},
|
|
10736
|
+
event_booking_ticket_changed_admin: {
|
|
10737
|
+
wording: "editable",
|
|
10738
|
+
perEvent: false,
|
|
10739
|
+
templateStorage: true
|
|
10740
|
+
},
|
|
10732
10741
|
membership_purchase_confirmation: {
|
|
10733
10742
|
wording: "editable",
|
|
10734
10743
|
perEvent: false,
|
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-n4in1E4v.mjs";
|
|
3
|
+
import "./src-DHIn60_q.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-Cx1aj859.mjs";
|
|
5
|
+
import "./load-config-k3XF8V97.mjs";
|
|
6
6
|
|
|
7
7
|
export { applyPushConfigPlan, calculateEntryDiffs, compileEntryPushCommands, createOutput, executeEntryCommandPlanAsSyncResult, preparePushConfigTarget, readEntries, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
|
package/package.json
CHANGED