riverbankcms 0.34.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.
@@ -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-DNjdjBVm.mjs";
3
- import { S as EVENT_PRESET_VALUES } from "./src-B3ufN6kf.mjs";
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
@@ -66,6 +66,7 @@ const eventRunCommonInputSchema = z.object({
66
66
  status: sdkEventUpsertOptionalFieldSchemas.status,
67
67
  visibility: sdkEventUpsertOptionalFieldSchemas.visibility,
68
68
  waitlistMode: sdkEventUpsertOptionalFieldSchemas.waitlistMode,
69
+ bookingCutOffHours: sdkEventUpsertOptionalFieldSchemas.bookingCutOffHours,
69
70
  occurrences: sdkEventUpsertOptionalFieldSchemas.occurrences.unwrap(),
70
71
  schedule: eventScheduleInputSchema.optional(),
71
72
  bookings: sdkEventUpsertOptionalFieldSchemas.bookings,
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { t as loadConfigFile } from "./load-config-k3XF8V97.mjs";
3
+
4
+ export { loadConfigFile };
@@ -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.34.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.34.0" === "string" ? "0.34.0" : version;
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 { Or as err, gr as parseSiteId, kr as ok } from "./src-B3ufN6kf.mjs";
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";
@@ -1338,6 +1338,7 @@ function portalPageTemplates() {
1338
1338
  return [
1339
1339
  portalPageTemplate("redeem", "createRedeemPage", "../../../riverbank.config", "export const metadata = { title: 'Redeem a gift card', referrer: 'no-referrer', robots: { index: false, follow: false } };\n"),
1340
1340
  portalPageTemplate("portal", "createPortalPage", "../../../riverbank.config"),
1341
+ portalPageTemplate("portal/continue", "createPortalContinuePage", "../../../../riverbank.config", "export const metadata = { title: 'Continue', robots: { index: false, follow: false } };\n"),
1341
1342
  portalPageTemplate("portal/tickets/[registrationId]", "createPortalTicketPage", "../../../../../riverbank.config"),
1342
1343
  portalPageTemplate("portal/digital-products/[entitlementId]", "createPortalDigitalProductPage", "../../../../../riverbank.config"),
1343
1344
  portalPageTemplate("portal/digital-products/[entitlementId]/files/[assetId]", "createPortalDigitalProductFilePage", "../../../../../../../riverbank.config")
@@ -1809,21 +1810,16 @@ export function isPreviewMode(): boolean {
1809
1810
  ` : "";
1810
1811
  return {
1811
1812
  path: "src/lib/riverbank-client.ts",
1812
- content: `import { createRiverbankClient, type RiverbankClient } from '@riverbankcms/sdk/server';
1813
+ content: `import { createRiverbankClient, type RiverbankClient } from '@riverbankcms/sdk/next';
1813
1814
  import config from '../../riverbank.config';
1814
1815
  import { getCmsConfig } from './env';
1815
1816
 
1816
1817
  /**
1817
1818
  * Singleton client instance.
1818
1819
  *
1819
- * The client is created once per process and reused for all subsequent calls.
1820
- * This provides shared caching across all SDK operations, improving performance
1821
- * by avoiding redundant API calls within the cache TTL window.
1822
- *
1823
- * Note: In Next.js server components, each request typically runs in a fresh
1824
- * context, so cache is effectively per-request unless using persistent processes.
1825
- * The singleton pattern primarily benefits scenarios with multiple SDK calls
1826
- * 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.
1827
1823
  */
1828
1824
  let clientInstance: RiverbankClient | null = null;
1829
1825
 
@@ -1833,7 +1829,8 @@ let clientInstance: RiverbankClient | null = null;
1833
1829
  * Returns a cached client instance, creating one if it doesn't exist.
1834
1830
  * The client handles:
1835
1831
  * - API authentication via environment-specific API key
1836
- * - Request caching (300s TTL, 100 entries max, shared across all calls)
1832
+ * - Next caching with one-hour content and 60-second availability policies
1833
+ * - SDK memory caching (100 entries max)
1837
1834
  * - Type-safe API responses
1838
1835
  *
1839
1836
  * Configuration is read based on RIVERBANK_ENV (local | remote).
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "../src-B3ufN6kf.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-DQbhrxOI.mjs";
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 { $n as unsafeAsFileChecksumSha256, C as ORDINARY_EVENT_PRESET_VALUES, En as mapReadonlyNonEmptyArray, Gn as unsafeAsEntitlementId, Ht as localScheduleTimePattern, In as assertNever, J as parseMailingListGlobalForm, Jt as parseBookingTimeZone, Or as err, Q as parseFooterCompositionV1, Qn as unsafeAsDetectedMimeType, Qt as validateBookingPaymentOptionKinds, Rn as unsafeAsBookingRequirementId, S as EVENT_PRESET_VALUES, Sr as unsafeAsEventCategoryId, Tn as mapNonEmptyArray, Xn as parseMediaAssetId, Yn as unsafeAsBookingSessionId, Yt as parseUtcIsoDateTimeString, Zn as unsafeAsDeclaredMimeType, Zt as BOOKING_COURSE_INSTALMENT_DEADLINES, ar as unsafeAsSiteScopedStoragePath, b as resolveSiteVerticalBookingConfig, c as STAFF_OPERATIONAL_CAPABILITIES, cr as unsafeAsUploadSessionId, er as unsafeAsMediaAssetId, ft as stableJsonStringify, gr as parseSiteId, h as NAVIGATION_LOCATIONS, ht as locationValueSchema, i as isRecord$6, ir as unsafeAsSafeDownloadFilename, kr as ok, lr as unsafeAsProductId, lt as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, mr as unsafeAsSiteFontId, n as OFFLINE_PAYMENT_METHODS, nr as unsafeAsPositiveByteCount, o as applyClearable, or as unsafeAsStorageBucketName, ot as parsePublicContactDetails, q as parseConfiguredMailingListProvider, rr as unsafeAsPositiveSeconds, rt as isCanonicalRichTextDoc, s as clearableFrom, sr as unsafeAsStoragePath, st as parseWeeklyOpeningHours, t as isEventOccurrenceRouteSegment, tr as unsafeAsOriginalFilename, ut as SENSITIVE_COLLECTION_MODES, vr as unsafeAsSiteId, wn as fromArray, xt as isPresent, yr as unsafeAsUserId } from "./src-B3ufN6kf.mjs";
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
 
@@ -7416,6 +7416,7 @@ const courseBookingSettingsSchema = z.object({
7416
7416
  "disabled"
7417
7417
  ]).optional(),
7418
7418
  collectAllAttendeeDetails: z.boolean().nullable().optional(),
7419
+ bookingCutOffHours: z.number().int().min(0).max(MAX_BOOKING_CUT_OFF_HOURS).nullable().optional(),
7419
7420
  cancellationPolicy: z.object({
7420
7421
  refunds: coursePolicyOverrideSchema,
7421
7422
  transfers: coursePolicyOverrideSchema
@@ -46064,6 +46065,7 @@ const sdkEventUpsertOptionalFieldSchemas = {
46064
46065
  "off",
46065
46066
  "on"
46066
46067
  ]).optional(),
46068
+ bookingCutOffHours: z.number().int().min(0).max(MAX_BOOKING_CUT_OFF_HOURS).nullable().optional(),
46067
46069
  bookings: z.enum(["move", "cancel"]).optional(),
46068
46070
  attendeeMigration: z.object({ pricingOptionIdentifier: z.string().trim().min(1) }).strict().optional()
46069
46071
  };