riverbankcms 0.22.1 → 0.22.2
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 +449 -431
- package/dist/{entryCommands-Bu-z9kxb.mjs → entryCommands-BGVgMNMw.mjs} +14 -7
- package/dist/{eventUpsertInputSchema-xHmuEKwM.mjs → eventUpsertInputSchema-CdX--hHz.mjs} +2 -2
- package/dist/{load-config-pAPKpeE0.mjs → load-config-BV9Ig2CH.mjs} +2 -2
- package/dist/load-config-JWz__Dkx.mjs +4 -0
- package/dist/{plan-DUdJbgTV.mjs → plan-CFMj_Hee.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-B3gflo1K.mjs → sdk-event-upsert-zWw5VolM.mjs} +8 -1
- package/dist/{src-RfhyMOpX.mjs → src-ZACBG29u.mjs} +15 -9
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-BRd0EUsF.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $t as pageDesignIntentSchemaVersion, A as getSiteCommandMetadata, B as eventBookingOfferIntentSchema, Dn as getDirectImageUrlForSiteScopedPath, E as parseAndPlanCommandBatchForTypes, Gn as getExtensionForMimeType, Hn as slugifyMediaIdentifier, J as createCommandRef, Jn as normalizeAmbiguousStoragePathForSite, Kn as getMimeType, O as evaluateSiteCommandBatchExposure, P as entryIdentifierForCommand, Qt as pageDesignBoundaryTreatmentSchema, Rn as buildMediaIdentifierFromFilename, T as createDryRunReport, Vn as resolveMediaIdentifier, Wt as buttonStyleSelectionSchema, Xn as FILE_SIZE_LIMITS, Y as createContentEntryRef, Zn as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, at as slugPart, en as footerPreferencesSchema, fr as asPageFlowPresetId, k as evaluateSiteCommandExposure, lr as asAppearancePresetId, m as isInternalResolvedLinkValue, n as sdkCourseBookingSettingsSchema, nt as createSiteCommandSiteRef, pr as asSiteStyleId, r as sdkEventOccurrenceInputSchema, s as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, w as stableStringify, wt as themeSchema, x as resolvePageUpsertSeo, y as eventVisibilitySchema } from "./sdk-event-upsert-
|
|
3
|
-
import {
|
|
4
|
-
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-
|
|
2
|
+
import { $t as pageDesignIntentSchemaVersion, A as getSiteCommandMetadata, B as eventBookingOfferIntentSchema, Dn as getDirectImageUrlForSiteScopedPath, E as parseAndPlanCommandBatchForTypes, Gn as getExtensionForMimeType, Hn as slugifyMediaIdentifier, J as createCommandRef, Jn as normalizeAmbiguousStoragePathForSite, Kn as getMimeType, O as evaluateSiteCommandBatchExposure, P as entryIdentifierForCommand, Qt as pageDesignBoundaryTreatmentSchema, Rn as buildMediaIdentifierFromFilename, T as createDryRunReport, Vn as resolveMediaIdentifier, Wt as buttonStyleSelectionSchema, Xn as FILE_SIZE_LIMITS, Y as createContentEntryRef, Zn as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, at as slugPart, en as footerPreferencesSchema, fr as asPageFlowPresetId, k as evaluateSiteCommandExposure, lr as asAppearancePresetId, m as isInternalResolvedLinkValue, n as sdkCourseBookingSettingsSchema, nt as createSiteCommandSiteRef, pr as asSiteStyleId, r as sdkEventOccurrenceInputSchema, s as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, w as stableStringify, wt as themeSchema, x as resolvePageUpsertSeo, y as eventVisibilitySchema } from "./sdk-event-upsert-zWw5VolM.mjs";
|
|
3
|
+
import { $t as assertNever, Cn as unsafeAsEventSeriesId, En as unsafeAsOccurrenceId, Hn as err, K as formatDate, Ln as unsafeAsStaffMemberId, M as parseFooterCompositionV1, S as parseManagementKey, Sn as unsafeAsEventOfferingId, Un as ok, a as canonicalizeConfiguredBookingVerticalConfig, b as createSecret, c as resolveSiteVerticalBookingConfig, cn as parsePageId, ct as parseBookingLocalDate, ft as resolveBookingTimeZoneId, i as areConfiguredBookingVerticalConfigsEqual, l as DEFAULT_EVENT_TYPE_PRESETS, m as publicReadFreshnessSeconds, o as parseVerticalId, pn as unsafeAsAppointmentResourceId, s as parseVerticalPresetId, t as resolveEventCatalogue, u as EVENT_PRESET_VALUES, un as parseSiteId, x as exposeSecret } from "./src-ZACBG29u.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-BV9Ig2CH.mjs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import * as fs$1 from "fs/promises";
|
|
@@ -3889,16 +3889,23 @@ function parsePaginationOptions(options) {
|
|
|
3889
3889
|
};
|
|
3890
3890
|
}
|
|
3891
3891
|
/**
|
|
3892
|
-
* Format an ISO
|
|
3892
|
+
* Format an ISO calendar day for human-readable metadata columns.
|
|
3893
|
+
* Keep the source's lexical day; these cross-site facts have no business zone.
|
|
3893
3894
|
*
|
|
3894
3895
|
* @param isoDate - ISO date string (e.g., "2024-01-15T10:30:00Z")
|
|
3895
|
-
* @returns Short date string (e.g., "2024
|
|
3896
|
+
* @returns Short date string (e.g., "15 Jan 2024")
|
|
3896
3897
|
*
|
|
3897
3898
|
* @example
|
|
3898
|
-
* formatDateShort("2024-01-15T10:30:00Z") // "2024
|
|
3899
|
+
* formatDateShort("2024-01-15T10:30:00Z") // "15 Jan 2024"
|
|
3899
3900
|
*/
|
|
3900
3901
|
function formatDateShort(isoDate) {
|
|
3901
|
-
return
|
|
3902
|
+
return formatDate({
|
|
3903
|
+
kind: "civil",
|
|
3904
|
+
value: parseBookingLocalDate(isoDate.split("T")[0] ?? "")
|
|
3905
|
+
}, {
|
|
3906
|
+
locale: "en-GB",
|
|
3907
|
+
timeZone: resolveBookingTimeZoneId("UTC")
|
|
3908
|
+
}, { date: "short" });
|
|
3902
3909
|
}
|
|
3903
3910
|
/**
|
|
3904
3911
|
* Parse JSON data from --data flag or --file flag.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as normalizeLinkValue, a as classifySdkEventSchedule, g as linkSchema, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-
|
|
3
|
-
import { u as EVENT_PRESET_VALUES } from "./src-
|
|
2
|
+
import { _ as normalizeLinkValue, a as classifySdkEventSchedule, g as linkSchema, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-zWw5VolM.mjs";
|
|
3
|
+
import { u as EVENT_PRESET_VALUES } from "./src-ZACBG29u.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region ../blocks/src/lib/typeGuards.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.22.
|
|
10
|
+
var version = "0.22.2";
|
|
11
11
|
var peerDependencies = { "@riverbankcms/sdk": ">=0.157.0 <1.0.0" };
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "riverbankcms",
|
|
@@ -83,7 +83,7 @@ var package_default = {
|
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/version.ts
|
|
85
85
|
/** The package manifest is the source-run fallback; builds inject this value. */
|
|
86
|
-
const CLI_VERSION = typeof "0.22.
|
|
86
|
+
const CLI_VERSION = typeof "0.22.2" === "string" ? "0.22.2" : version;
|
|
87
87
|
/**
|
|
88
88
|
* The CLI's SDK peer range is bundled from the CLI manifest alongside its
|
|
89
89
|
* version. Runtime config loading uses this value as the single compatibility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Hn as
|
|
2
|
+
import { Hn as err, Un as ok, un as parseSiteId } from "./src-ZACBG29u.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-ZACBG29u.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-CFMj_Hee.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 {
|
|
2
|
+
import { $t as assertNever, An as unsafeAsPositiveSeconds, B as parseWeeklyOpeningHours, Bn as unsafeAsUploadSessionId, C as stableJsonStringify, Dn as unsafeAsOriginalFilename, Fn as unsafeAsSiteId, H as isPresent, Hn as err, Ht as mapNonEmptyArray, In as unsafeAsSiteScopedStoragePath, L as isCanonicalRichTextDoc, M as parseFooterCompositionV1, Mn as unsafeAsProductId, N as footerNavigationLayouts, Nn as unsafeAsSafeDownloadFilename, Pn as unsafeAsSiteFontId, Rn as unsafeAsStorageBucketName, Tn as unsafeAsMediaAssetId, Un as ok, Ut as mapReadonlyNonEmptyArray, Vn as unsafeAsUserId, Vt as fromArray, _n as unsafeAsDeclaredMimeType, _t as validateBookingPaymentOptionKinds, bn as unsafeAsEntitlementId, c as resolveSiteVerticalBookingConfig, d as ORDINARY_EVENT_PRESET_VALUES, gt as parseBookingTimeZone, hn as unsafeAsBookingSessionId, kn as unsafeAsPositiveByteCount, mn as unsafeAsBookingRequirementId, on as parseMediaAssetId, r as NAVIGATION_LOCATIONS, st as localScheduleTimePattern, u as EVENT_PRESET_VALUES, un as parseSiteId, ut as parseUtcIsoDateTimeString, wn as unsafeAsFileChecksumSha256, yn as unsafeAsDetectedMimeType, z as parsePublicContactDetails, zn as unsafeAsStoragePath } from "./src-ZACBG29u.mjs";
|
|
3
3
|
import "node:module";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -47880,6 +47880,13 @@ function isEventVisibility(value) {
|
|
|
47880
47880
|
return value === "public" || value === "unlisted";
|
|
47881
47881
|
}
|
|
47882
47882
|
const eventVisibilitySchema = z.enum(EVENT_VISIBILITY_VALUES, { error: EVENT_VISIBILITY_ERROR_MESSAGE });
|
|
47883
|
+
/** Archived runs do not advertise a page. Announced and informational runs do.
|
|
47884
|
+
* Empty pages and unavailable run facts keep their existing indexing behavior.
|
|
47885
|
+
*/
|
|
47886
|
+
function isUnlistedEventPage(linkedRuns) {
|
|
47887
|
+
const pageRuns = linkedRuns.filter((run) => run?.status !== "archived");
|
|
47888
|
+
return pageRuns.length > 0 && pageRuns.every((run) => run?.visibility === "unlisted");
|
|
47889
|
+
}
|
|
47883
47890
|
|
|
47884
47891
|
//#endregion
|
|
47885
47892
|
//#region ../blocks/src/system/types/link.ts
|
|
@@ -1386,14 +1386,14 @@ function parseEventPageSurfaceDestinationMode(value) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
function parseEventPageSurfaceSubject(value) {
|
|
1388
1388
|
if (!isRecord$9(value)) return err({ kind: "notObject" });
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1389
|
+
const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
|
|
1390
|
+
kind: "unsupportedSubject",
|
|
1391
|
+
subjectKind: value.kind
|
|
1392
|
+
});
|
|
1393
|
+
return parsed.ok && value.noindex === true ? ok({
|
|
1394
|
+
...parsed.value,
|
|
1395
|
+
noindex: true
|
|
1396
|
+
}) : parsed;
|
|
1397
1397
|
}
|
|
1398
1398
|
function parseEventSeriesPageSurfaceSubject(value) {
|
|
1399
1399
|
const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
|
|
@@ -2009,6 +2009,12 @@ function resolveBookingTimeZoneId(...candidates) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
2011
2011
|
const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
2012
|
+
/** Stored site zones must be valid; a broken read must not silently choose another zone. */
|
|
2013
|
+
function requireBookingTimeZone(value) {
|
|
2014
|
+
const parsed = parseBookingTimeZone(value);
|
|
2015
|
+
if (!parsed.ok) throw new Error("Expected a valid canonical site time zone");
|
|
2016
|
+
return parsed.value;
|
|
2017
|
+
}
|
|
2012
2018
|
/** Effect boundary for browser-authored local inputs; formats no displayed date. */
|
|
2013
2019
|
function getRuntimeBookingTimeZone() {
|
|
2014
2020
|
return resolveBookingTimeZoneId(new Intl.DateTimeFormat("en-GB").resolvedOptions().timeZone);
|
|
@@ -8471,4 +8477,4 @@ function resolvePublicSiteVisibility(input) {
|
|
|
8471
8477
|
}
|
|
8472
8478
|
|
|
8473
8479
|
//#endregion
|
|
8474
|
-
export { resolveBookingDisplayContext as $,
|
|
8480
|
+
export { resolveBookingDisplayContext as $, assertNever as $t, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as A, unsafeAsPositiveSeconds as An, deriveTotalTicketQuantity as At, parseWeeklyOpeningHours as B, unsafeAsUploadSessionId as Bn, resolvePricingOptionsPriceDisplay as Bt, stableJsonStringify as C, unsafeAsEventSeriesId as Cn, getBookingInstalmentDepositRefundability as Ct, parseMailingListSignedSourceToken as D, unsafeAsOriginalFilename as Dn, splitAmountWithRemainderInFirst as Dt, parseMailingListContentVersionId as E, unsafeAsOccurrenceId as En, omitZeroAmountFutureRows as Et, DEFAULT_MAILING_LIST_TARGETING as F, unsafeAsSiteId as Fn, publicEventPricingCurrency as Ft, selectCategoryView as G, parseNonNegativeCents as Gt, isPresent as H, err as Hn, mapNonEmptyArray as Ht, planMailingListChoicePresentation as I, unsafeAsSiteScopedStoragePath as In, publicEventPricingDisplay as It, formatDateTime as J, toNonNegativeCents as Jt, formatDate as K, parsePositiveCents as Kt, isCanonicalRichTextDoc as L, unsafeAsStaffMemberId as Ln, publicEventPricingOptions as Lt, parseFooterCompositionV1 as M, unsafeAsProductId as Mn, formatBookingPriceDisplay as Mt, footerNavigationLayouts as N, unsafeAsSafeDownloadFilename as Nn, formatEventPricing as Nt, parseMailingListRuntimeContext as O, unsafeAsPassId as On, resolveFlexibleBalanceDueAt as Ot, parseMailingListPlacementTargeting as P, unsafeAsSiteFontId as Pn, isPublicEventPricingOptionDisplayable as Pt, inferSiteDateLocale as Q, parseCurrencyCode as Qt, formatOpeningHoursRows as R, unsafeAsStorageBucketName as Rn, publicEventPricingType as Rt, parseManagementKey as S, unsafeAsEventOfferingId as Sn, clampConfiguredAmount as St, parseMailingListBlockId as T, unsafeAsMediaAssetId as Tn, getBookingInstalmentProtectedDepositAmountCents as Tt, normalizeLocationAddressText as U, ok as Un, mapReadonlyNonEmptyArray as Ut, assertAllowedPublicUrl as V, unsafeAsUserId as Vn, fromArray as Vt, toLocationCoordinates as W, isNonNegativeWholeCents as Wt, formatTime as X, unsafeAsPositiveCents as Xt, formatDateTimeRange as Y, unsafeAsNonNegativeCents as Yt, formatTimeRange as Z, formatCurrencyAmount as Zt, orderedLiveRunSessions as _, unsafeAsDeclaredMimeType as _n, validateBookingPaymentOptionKinds as _t, canonicalizeConfiguredBookingVerticalConfig as a, parseEventSeriesId as an, getLocalScheduleDate as at, createSecret as b, unsafeAsEntitlementId as bn, isSettleableOrderInstalmentPlanStatus as bt, resolveSiteVerticalBookingConfig as c, parsePageId as cn, parseBookingLocalDate as ct, ORDINARY_EVENT_PRESET_VALUES as d, parseSiteTermsVersionId as dn, resolveBookingBusinessTimeZone as dt, formatDurationUnitLabel as en, buildBookingUtcDateWindow as et, SURFACE_EVENT_PRESET_VALUES as f, parseUserId as fn, resolveBookingTimeZoneId as ft, nextLiveRunSessionStartMs as g, unsafeAsCheckoutLineId as gn, parseBookingTimeZone as gt, CANCELLED_SESSION_STATUS as h, unsafeAsBookingSessionId as hn, toUtcIsoDateTimeString as ht, areConfiguredBookingVerticalConfigsEqual as i, parseDatedOfferingCapacityHoldId as in, getBookingLocalDateKey as it, parseMailingListProviderScope as j, unsafeAsPricingOptionId as jn, parseEventPageSurfaceSubject as jt, assessMailingListTargeting as k, unsafeAsPositiveByteCount as kn, resolveFlexibleBalanceInitialPaymentCents as kt, DEFAULT_EVENT_TYPE_PRESETS as l, parseRetiredCourseId as ln, parseLocalScheduleTime as lt, publicReadFreshnessSeconds as m, unsafeAsBookingRequirementId as mn, toScheduledBookingDateTime as mt, EVENT_PRESET_VOCABULARY as n, parseCustomerId as nn, formatLocalScheduleDate as nt, parseVerticalId as o, parseMediaAssetId as on, getLocalScheduleTime as ot, WHOLE_SERIES_EVENT_PRESET_VALUES as p, unsafeAsAppointmentResourceId as pn, toBookingTimeZone as pt, formatDateRange as q, toCents as qt, NAVIGATION_LOCATIONS as r, parseDatedOfferingCapacityHoldAuditRef as rn, formatLocalScheduleTime as rt, parseVerticalPresetId as s, parseMembershipId as sn, localScheduleTimePattern as st, resolveEventCatalogue as t, parseApiKeyId as tn, compareLocalScheduleDates as tt, EVENT_PRESET_VALUES as u, parseSiteId as un, parseUtcIsoDateTimeString as ut, resolveWholeSeriesBookingPhase as v, unsafeAsDemoCapability as vn, isLiveOrderInstalmentPlanStatus as vt, slugify as w, unsafeAsFileChecksumSha256 as wn, getBookingInstalmentPlanIntervalCount as wt, exposeSecret as x, unsafeAsEventInstanceId as xn, addIntervalPreservingMonthAnchor as xt, resolveWholeSeriesRunLifecycle as y, unsafeAsDetectedMimeType as yn, isSettleableFlexibleBalanceContractStatus as yt, parsePublicContactDetails as z, unsafeAsStoragePath as zn, resolveExactOrFreePriceDisplay as zt };
|
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 { Bt as preparePushConfigTarget, G as syncLocalMediaForPull, Lt as applyPushConfigPlan, Mn as createOutput, W as syncLocalMediaForPush, at as readEntries, ht as writeMediaManifest, o as executeEntryCommandPlanAsSyncResult, t as compileEntryPushCommands, z as calculateEntryDiffs } from "./entryCommands-
|
|
5
|
-
import "./load-config-
|
|
2
|
+
import "./sdk-event-upsert-zWw5VolM.mjs";
|
|
3
|
+
import "./src-ZACBG29u.mjs";
|
|
4
|
+
import { Bt as preparePushConfigTarget, G as syncLocalMediaForPull, Lt as applyPushConfigPlan, Mn as createOutput, W as syncLocalMediaForPush, at as readEntries, ht as writeMediaManifest, o as executeEntryCommandPlanAsSyncResult, t as compileEntryPushCommands, z as calculateEntryDiffs } from "./entryCommands-BGVgMNMw.mjs";
|
|
5
|
+
import "./load-config-BV9Ig2CH.mjs";
|
|
6
6
|
|
|
7
7
|
export { applyPushConfigPlan, calculateEntryDiffs, compileEntryPushCommands, createOutput, executeEntryCommandPlanAsSyncResult, preparePushConfigTarget, readEntries, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
|
package/package.json
CHANGED