riverbankcms 0.32.2 → 0.33.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 +3331 -1921
- package/dist/cli/init-docs/content/cli-reference.md +14 -1
- package/dist/cli/init-docs/content/content-management.md +5 -4
- package/dist/{entryCommands-B2kELFEc.mjs → entryCommands-wcOr-fKy.mjs} +483 -223
- package/dist/{eventUpsertInputSchema-B79taa8f.mjs → eventUpsertInputSchema-Df67rs3n.mjs} +2 -2
- package/dist/load-config-CKgy6Yct.mjs +4 -0
- package/dist/{load-config-CTuNN3xv.mjs → load-config-CexajivS.mjs} +2 -2
- package/dist/{plan-pGcbGyYC.mjs → plan-Bhv4iKa3.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-B3Ln6jqq.mjs → sdk-event-upsert-Y4Iyx0N4.mjs} +3 -6
- package/dist/{src-wXdYu3yt.mjs → src-90EK8rKq.mjs} +19 -3
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-BXZoGsU5.mjs +0 -4
|
@@ -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 {
|
|
2
|
+
import { En as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-Y4Iyx0N4.mjs";
|
|
3
|
+
import { b as EVENT_PRESET_VALUES } from "./src-90EK8rKq.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.33.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.33.0" === "string" ? "0.33.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 {
|
|
2
|
+
import { Dr as err, Or as ok, hr as parseSiteId } from "./src-90EK8rKq.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-90EK8rKq.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-Bhv4iKa3.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
|
|
2
|
+
import { $n as unsafeAsOriginalFilename, Bt as localScheduleTimePattern, Cn as mapNonEmptyArray, Dr as err, G as parseConfiguredMailingListProvider, In as unsafeAsBookingRequirementId, Jn as parseMediaAssetId, K as parseMailingListGlobalForm, Kt as parseBookingTimeZone, Or as ok, Pn as assertNever, Qn as unsafeAsMediaAssetId, Sn as fromArray, Un as unsafeAsEntitlementId, X as parseFooterCompositionV1, Xn as unsafeAsDetectedMimeType, Xt as validateBookingPaymentOptionKinds, Yn as unsafeAsDeclaredMimeType, Yt as BOOKING_COURSE_INSTALMENT_DEADLINES, Zn as unsafeAsFileChecksumSha256, _r as unsafeAsSiteId, ar as unsafeAsStoragePath, at as parseWeeklyOpeningHours, b as EVENT_PRESET_VALUES, ct as SENSITIVE_COLLECTION_MODES, er as unsafeAsPositiveByteCount, hr as parseSiteId, i as isRecord$6, ir as unsafeAsStorageBucketName, it as parsePublicContactDetails, n as OFFLINE_PAYMENT_METHODS, nr as unsafeAsSafeDownloadFilename, o as STAFF_OPERATIONAL_CAPABILITIES, or as unsafeAsUploadSessionId, p as NAVIGATION_LOCATIONS, pr as unsafeAsSiteFontId, pt as locationValueSchema, qn as unsafeAsBookingSessionId, qt as parseUtcIsoDateTimeString, rr as unsafeAsSiteScopedStoragePath, sr as unsafeAsProductId, st as SENSITIVE_COLLECTION_CONFIRMATION_VERSION, t as isEventOccurrenceRouteSegment, tr as unsafeAsPositiveSeconds, tt as isCanonicalRichTextDoc, ut as stableJsonStringify, v as resolveSiteVerticalBookingConfig, vr as unsafeAsUserId, wn as mapReadonlyNonEmptyArray, x as ORDINARY_EVENT_PRESET_VALUES, xr as unsafeAsEventCategoryId, yt as isPresent } from "./src-90EK8rKq.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -1034,6 +1034,7 @@ const SUPPORTED_LOADER_ENDPOINTS = [
|
|
|
1034
1034
|
"listPublicEventCalendarWindow",
|
|
1035
1035
|
"listPublicRecurringSchedule",
|
|
1036
1036
|
"getPublicEventDetails",
|
|
1037
|
+
"getPublicMapLocation",
|
|
1037
1038
|
"listPublicRouteCandidates",
|
|
1038
1039
|
"listPublicTeamMembers",
|
|
1039
1040
|
"listPublicProducts",
|
|
@@ -43409,11 +43410,7 @@ const upsertStaffMemberCommandSchema = z.object({
|
|
|
43409
43410
|
identity: staffMemberIdentitySchema,
|
|
43410
43411
|
access: z.object({
|
|
43411
43412
|
memberId: z.string().uuid(),
|
|
43412
|
-
capabilities: z.array(z.enum(
|
|
43413
|
-
"appointments",
|
|
43414
|
-
"event_ops",
|
|
43415
|
-
"packages"
|
|
43416
|
-
])).min(1)
|
|
43413
|
+
capabilities: z.array(z.enum(STAFF_OPERATIONAL_CAPABILITIES)).min(1)
|
|
43417
43414
|
}).strict().optional(),
|
|
43418
43415
|
displayName: z.string().min(1),
|
|
43419
43416
|
roleLabel: z.string().optional(),
|
|
@@ -3698,6 +3698,8 @@ function resolvePermittedLocation(permission, location, siteCountry) {
|
|
|
3698
3698
|
|
|
3699
3699
|
//#endregion
|
|
3700
3700
|
//#region ../core/src/venue-location.ts
|
|
3701
|
+
/** The owner's option and what visitors read are the same words, so the option says what you'll see. */
|
|
3702
|
+
const EVENT_ADDRESS_AFTER_BOOKING_LABEL = "Address shared after booking";
|
|
3701
3703
|
/** Eligibility to read the venue is decided by the resource owner before disclosure. */
|
|
3702
3704
|
function decidePublicVenueLocation(venue, siteCountry) {
|
|
3703
3705
|
if (venue.location === null) return {
|
|
@@ -9734,6 +9736,20 @@ function formatCreditProductPayment(input) {
|
|
|
9734
9736
|
return payment + (input.creditsRemaining === undefined ? "" : ` (${input.creditsRemaining} left)`);
|
|
9735
9737
|
}
|
|
9736
9738
|
|
|
9739
|
+
//#endregion
|
|
9740
|
+
//#region ../core/src/staff-capabilities.ts
|
|
9741
|
+
/**
|
|
9742
|
+
* What a team member's login can be given, as stored on their membership.
|
|
9743
|
+
* `own_offerings` is creating what only they offer, which needs `appointments`
|
|
9744
|
+
* and `packages` beside it.
|
|
9745
|
+
*/
|
|
9746
|
+
const STAFF_OPERATIONAL_CAPABILITIES = [
|
|
9747
|
+
"appointments",
|
|
9748
|
+
"event_ops",
|
|
9749
|
+
"packages",
|
|
9750
|
+
"own_offerings"
|
|
9751
|
+
];
|
|
9752
|
+
|
|
9737
9753
|
//#endregion
|
|
9738
9754
|
//#region ../core/src/patch/index.ts
|
|
9739
9755
|
function settableFrom(wireValue) {
|
|
@@ -10959,12 +10975,12 @@ const EMAIL_DEFINITIONS = {
|
|
|
10959
10975
|
perEvent: false,
|
|
10960
10976
|
templateStorage: false
|
|
10961
10977
|
},
|
|
10962
|
-
|
|
10978
|
+
admin_attention_summary: {
|
|
10963
10979
|
wording: "fixed",
|
|
10964
10980
|
perEvent: false,
|
|
10965
10981
|
templateStorage: false
|
|
10966
10982
|
},
|
|
10967
|
-
|
|
10983
|
+
support_email_acknowledgement: {
|
|
10968
10984
|
wording: "fixed",
|
|
10969
10985
|
perEvent: false,
|
|
10970
10986
|
templateStorage: false
|
|
@@ -11358,4 +11374,4 @@ function isEventOccurrenceRouteSegment(segment) {
|
|
|
11358
11374
|
}
|
|
11359
11375
|
|
|
11360
11376
|
//#endregion
|
|
11361
|
-
export {
|
|
11377
|
+
export { DEFAULT_MAILING_LIST_TARGETING as $, unsafeAsOriginalFilename as $n, clampConfiguredAmount as $t, CANCELLED_SESSION_STATUS as A, unsafeAsNonNegativeCents as An, resolveBookingDisplayContext as At, parseMailingListBlockId as B, parseCustomerId as Bn, localScheduleTimePattern as Bt, WHOLE_SERIES_EVENT_PRESET_VALUES as C, mapNonEmptyArray as Cn, unsafeAsEventOfferingId as Cr, formatDate as Ct, isPublicReadEndpoint as D, parsePositiveCents as Dn, err as Dr, formatTime as Dt, getPublicReadCachePolicy as E, parseNonNegativeCents as En, unsafeAsPricingOptionId as Er, formatDateTimeRange as Et, resolveWholeSeriesRunLifecycle as F, formatDurationUnitLabel as Fn, formatLocalScheduleDate as Ft, parseConfiguredMailingListProvider as G, parseDatedOfferingCapacityHoldAuditRef as Gn, toBookingTimeZone as Gt, parseMailingListSignedSourceToken as H, parseMembershipId as Hn, parseLocalScheduleTime as Ht, createSecret as I, unsafeAsBookingRequirementId as In, formatLocalScheduleTime as It, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as J, parseMediaAssetId as Jn, toUtcIsoDateTimeString as Jt, parseMailingListGlobalForm as K, parseDatedOfferingCapacityHoldId as Kn, parseBookingTimeZone as Kt, exposeSecret as L, unsafeAsDemoCapability as Ln, getBookingLocalDateKey as Lt, nextLiveRunSessionStartMs as M, formatCurrencyAmount as Mn, buildBookingUtcDateWindow as Mt, orderedLiveRunSessions as N, parseCurrencyCode as Nn, addLocalScheduleDays as Nt, publicReadBatchFreshnessSeconds as O, toCents as On, ok as Or, formatTimeRange as Ot, resolveWholeSeriesBookingPhase as P, assertNever as Pn, compareLocalScheduleDates as Pt, parseMailingListPlacementTargeting as Q, unsafeAsMediaAssetId as Qn, addIntervalPreservingMonthAnchor as Qt, parseManagementKey as R, unsafeAsAppointmentResourceId as Rn, getLocalScheduleDate as Rt, SURFACE_EVENT_PRESET_VALUES as S, fromArray as Sn, unsafeAsEventInstanceId as Sr, selectCategoryView as St, PUBLIC_CONTENT_FRESHNESS_SECONDS as T, isNonNegativeWholeCents as Tn, unsafeAsOccurrenceId as Tr, formatDateTime as Tt, parseMailingListRuntimeContext as U, unsafeAsEntitlementId as Un, resolveBookingBusinessTimeZone as Ut, parseMailingListContentVersionId as V, parseSiteTermsVersionId as Vn, parseBookingLocalDate as Vt, assessMailingListTargeting as W, unsafeAsPassId as Wn, resolveBookingTimeZoneId as Wt, parseFooterCompositionV1 as X, unsafeAsDetectedMimeType as Xn, validateBookingPaymentOptionKinds as Xt, parseMailingListProviderScope as Y, unsafeAsDeclaredMimeType as Yn, BOOKING_COURSE_INSTALMENT_DEADLINES as Yt, footerLayoutForLookId as Z, unsafeAsFileChecksumSha256 as Zn, isLiveOrderInstalmentPlanStatus as Zt, parseVerticalPresetId as _, publicEventPricingOptions as _n, unsafeAsSiteId as _r, publicLocationSchema as _t, authoredValuesEqual as a, businessCancellationRefusalCodes as an, unsafeAsStoragePath as ar, parseWeeklyOpeningHours as at, EVENT_PRESET_VALUES as b, resolveExactOrFreePriceDisplay as bn, parseRetiredCourseId as br, trimmedStringOrNull as bt, formatCreditProductPayment as c, resolveFlexibleBalanceInitialPaymentCents as cn, unsafeAsCheckoutLineId as cr, SENSITIVE_COLLECTION_MODES as ct, resolveEventCatalogue as d, EVENT_PRESET_VOCABULARY as dn, parseEditorSessionGeneration as dr, locationMapLinks as dt, getBookingInstalmentDepositRefundability as en, unsafeAsPositiveByteCount as er, planMailingListChoicePresentation as et, withBookingModulesForSelectionChange as f, formatBookingPriceDisplay as fn, parsePageId as fr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as ft, parseVerticalId as g, publicEventPricingDisplay as gn, parseUserId as gr, projectPublicLocation as gt, canonicalizeConfiguredBookingVerticalConfig as h, publicEventPricingCurrency as hn, parseSiteId as hr, parseLocationValue as ht, isRecord as i, splitAmountWithRemainderInFirst as in, unsafeAsStorageBucketName as ir, parsePublicContactDetails as it, firstLiveRunSessionStartMs as j, unsafeAsPositiveCents as jn, toScheduledBookingDateTime as jt, publicReadFreshnessSeconds as k, toNonNegativeCents as kn, blockInteractionContextSchema as kr, inferSiteDateLocale as kt, formatCreditProductUnits as l, deriveTotalTicketQuantity as ln, unsafeAsOrderFlexibleBalanceContractId as lr, decideLocationSave as lt, areConfiguredBookingVerticalConfigsEqual as m, isPublicEventPricingOptionDisplayable as mn, parseApiKeyId as mr, normalizeLocationAddressText as mt, OFFLINE_PAYMENT_METHODS as n, getBookingInstalmentProtectedDepositAmountCents as nn, unsafeAsSafeDownloadFilename as nr, richTextHasText as nt, STAFF_OPERATIONAL_CAPABILITIES as o, scheduleBookingReasonCodes as on, unsafeAsUploadSessionId as or, assertAllowedPublicUrl as ot, NAVIGATION_LOCATIONS as p, formatEventPricing as pn, unsafeAsSiteFontId as pr, locationValueSchema as pt, DEFAULT_MAILING_LIST_PRIVACY_NOTE as q, unsafeAsBookingSessionId as qn, parseUtcIsoDateTimeString as qt, committedWriteProofSchema as r, omitZeroAmountFutureRows as rn, unsafeAsSiteScopedStoragePath as rr, formatOpeningHoursRows as rt, creditProductUnitNoun as s, resolveFlexibleBalanceDueAt as sn, unsafeAsProductId as sr, SENSITIVE_COLLECTION_CONFIRMATION_VERSION as st, isEventOccurrenceRouteSegment as t, getBookingInstalmentPlanIntervalCount as tn, unsafeAsPositiveSeconds as tr, isCanonicalRichTextDoc as tt, planTurningOnCourses as u, parsePageSurfaceSubject as un, unsafeAsOrderPaymentPlanId as ur, stableJsonStringify as ut, resolveSiteVerticalBookingConfig as v, publicEventPricingStrategy as vn, unsafeAsUserId as vr, toLocationCoordinates as vt, PUBLIC_AVAILABILITY_FRESHNESS_SECONDS as w, mapReadonlyNonEmptyArray as wn, unsafeAsEventSeriesId as wr, formatDateRange as wt, ORDINARY_EVENT_PRESET_VALUES as x, resolvePricingOptionsPriceDisplay as xn, unsafeAsEventCategoryId as xr, mapDrawingSchema as xt, DEFAULT_EVENT_TYPE_PRESETS as y, publicEventPricingType as yn, parseEventSeriesId as yr, isPresent as yt, slugify as z, unsafeAsStaffMemberId as zn, getLocalScheduleTime 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 { G as syncLocalMediaForPull, Gt as applyPushConfigPlan, Jt as preparePushConfigTarget, W as syncLocalMediaForPush, at as readEntries, ht as writeMediaManifest,
|
|
5
|
-
import "./load-config-
|
|
2
|
+
import "./sdk-event-upsert-Y4Iyx0N4.mjs";
|
|
3
|
+
import "./src-90EK8rKq.mjs";
|
|
4
|
+
import { G as syncLocalMediaForPull, Gt as applyPushConfigPlan, Jt as preparePushConfigTarget, On as createOutput, W as syncLocalMediaForPush, at as readEntries, ht as writeMediaManifest, o as executeEntryCommandPlanAsSyncResult, t as compileEntryPushCommands, z as calculateEntryDiffs } from "./entryCommands-wcOr-fKy.mjs";
|
|
5
|
+
import "./load-config-CexajivS.mjs";
|
|
6
6
|
|
|
7
7
|
export { applyPushConfigPlan, calculateEntryDiffs, compileEntryPushCommands, createOutput, executeEntryCommandPlanAsSyncResult, preparePushConfigTarget, readEntries, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
|
package/package.json
CHANGED