riverbankcms 0.34.0 → 0.35.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 +419 -247
- package/dist/cli/init-docs/content/getting-started.md +4 -4
- package/dist/{entryCommands-DoJE41hf.mjs → entryCommands-D-1ldejM.mjs} +64 -4
- package/dist/{eventUpsertInputSchema-o-ntZyOs.mjs → eventUpsertInputSchema-D1CXYu1M.mjs} +3 -2
- package/dist/{load-config-FQqihBPt.mjs → load-config-DB_S_gdr.mjs} +2 -2
- package/dist/load-config-DSGN-x3K.mjs +4 -0
- package/dist/{plan-DQbhrxOI.mjs → plan-CMMvs6Nr.mjs} +2 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-DNjdjBVm.mjs → sdk-event-upsert-DoazwQVt.mjs} +3 -1
- package/dist/{src-B3ufN6kf.mjs → src-CysOxz1U.mjs} +864 -769
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-CwqwHzX8.mjs +0 -4
|
@@ -175,6 +175,7 @@ When portal auth is enabled, `riverbankcms init` generates these reserved routes
|
|
|
175
175
|
| Route | SDK helper | Scaffold template |
|
|
176
176
|
| --- | --- | --- |
|
|
177
177
|
| `/portal` | `createPortalPage` from `@riverbankcms/sdk/next` | `portalPageTemplates` |
|
|
178
|
+
| `/portal/continue` | `createPortalContinuePage` | `portalPageTemplates` |
|
|
178
179
|
| `/portal/tickets/[registrationId]` | `createPortalTicketPage` | `portalPageTemplates` |
|
|
179
180
|
| `/portal/digital-products/[entitlementId]` | `createPortalDigitalProductPage` | `portalPageTemplates` |
|
|
180
181
|
| `/portal/digital-products/[entitlementId]/files/[assetId]` | `createPortalDigitalProductFilePage` | `portalPageTemplates` |
|
|
@@ -190,8 +191,8 @@ resolver receives `content.type === 'portal'` and `content.site` on these routes
|
|
|
190
191
|
The file route authenticates before redirecting to a signed download URL.
|
|
191
192
|
|
|
192
193
|
For a custom host, `CustomerPortal` from `@riverbankcms/sdk/portal/client` takes
|
|
193
|
-
`siteId`, `apiBaseUrl`, `portalToken` (nullable), `demoEmailSuppressed`, plus optional `
|
|
194
|
-
(defaults `/api/portal/
|
|
194
|
+
`siteId`, `apiBaseUrl`, `portalToken` (nullable), `demoEmailSuppressed`, plus optional `logoutPath` and `bookPath`
|
|
195
|
+
(defaults `/api/portal/logout`, `/book`). Sign-in always goes through `/api/portal/callback`. Wrap it in the
|
|
195
196
|
site's `ThemeScope`. This is a reserved route component, not a CMS block.
|
|
196
197
|
`@riverbankcms/sdk/portal` remains the server helper entry.
|
|
197
198
|
|
|
@@ -204,8 +205,7 @@ includes it); this protects emailed gift tokens in outbound referrers.
|
|
|
204
205
|
|
|
205
206
|
For a custom host, `RedeemGiftCard` from `@riverbankcms/sdk/gifting/client` takes
|
|
206
207
|
`siteId`, `apiBaseUrl`, `siteTitle`, `publicContactEmail` (nullable), optional
|
|
207
|
-
`token` and `code`, and optional `
|
|
208
|
-
`/api/portal/callback`, `/portal`, `/`). Its `onSignedIn` callback refreshes host
|
|
208
|
+
`token` and `code`, and optional `portalPath`, `homePath` (defaults `/portal`, `/`). Its `onSignedIn` callback refreshes host
|
|
209
209
|
chrome after sign-in; the Next helper supplies that callback. Wrap the shared
|
|
210
210
|
component in the site's `ThemeScope`. The callback POST expects JSON
|
|
211
211
|
`{ portalCode }` from the same origin and returns JSON without redirecting.
|
|
@@ -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 { $
|
|
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-DoazwQVt.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-CysOxz1U.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-DB_S_gdr.mjs";
|
|
5
5
|
import { safeParse, z } from "zod";
|
|
6
6
|
import { Argument, Command, Option } from "commander";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1792,8 +1792,10 @@ const arrangementEndRequestSchema = z.object({
|
|
|
1792
1792
|
...recordedReturn,
|
|
1793
1793
|
lastDate: localDate
|
|
1794
1794
|
}).strict();
|
|
1795
|
+
/** `expectedUpdatedAt` is the version the dialog was showing, so a save can't overwrite a newer change. */
|
|
1795
1796
|
const arrangementEditSchema = z.object({
|
|
1796
1797
|
...operation,
|
|
1798
|
+
expectedUpdatedAt: z.string().min(1),
|
|
1797
1799
|
serviceId: z.string().uuid(),
|
|
1798
1800
|
holdsTime: z.boolean(),
|
|
1799
1801
|
payment: arrangementPaymentSchema
|
|
@@ -1827,6 +1829,11 @@ const previewClientArrangementSchema = z.discriminatedUnion("kind", [
|
|
|
1827
1829
|
kind: z.literal("end"),
|
|
1828
1830
|
arrangementId: z.string().uuid(),
|
|
1829
1831
|
request: arrangementEndRequestSchema
|
|
1832
|
+
}).strict(),
|
|
1833
|
+
z.object({
|
|
1834
|
+
kind: z.literal("edit"),
|
|
1835
|
+
arrangementId: z.string().uuid(),
|
|
1836
|
+
request: arrangementEditSchema
|
|
1830
1837
|
}).strict()
|
|
1831
1838
|
]);
|
|
1832
1839
|
const arrangementTimeOffChoiceSchema = z.discriminatedUnion("kind", [
|
|
@@ -2535,6 +2542,20 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2535
2542
|
auth: "user",
|
|
2536
2543
|
responseKind: "json"
|
|
2537
2544
|
},
|
|
2545
|
+
listStaffServiceOnlineDetails: {
|
|
2546
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
|
|
2547
|
+
method: "GET",
|
|
2548
|
+
auth: "user",
|
|
2549
|
+
responseKind: "json",
|
|
2550
|
+
errors: []
|
|
2551
|
+
},
|
|
2552
|
+
setStaffServiceOnlineDetails: {
|
|
2553
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
|
|
2554
|
+
method: "PUT",
|
|
2555
|
+
auth: "user",
|
|
2556
|
+
responseKind: "json",
|
|
2557
|
+
errors: []
|
|
2558
|
+
},
|
|
2538
2559
|
getServiceResources: {
|
|
2539
2560
|
path: "/sites/{siteId}/bookings/services/{serviceId}/resources",
|
|
2540
2561
|
method: "GET",
|
|
@@ -2934,6 +2955,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
2934
2955
|
"server:internal_error"
|
|
2935
2956
|
]
|
|
2936
2957
|
},
|
|
2958
|
+
setEventAttendeesNoShow: {
|
|
2959
|
+
path: "/sites/{siteId}/bookings/attendees/no-show",
|
|
2960
|
+
method: "POST",
|
|
2961
|
+
auth: "user",
|
|
2962
|
+
responseKind: "json",
|
|
2963
|
+
errors: [
|
|
2964
|
+
"validation:invalid_input",
|
|
2965
|
+
"auth:forbidden",
|
|
2966
|
+
"resource:conflict",
|
|
2967
|
+
"server:internal_error"
|
|
2968
|
+
]
|
|
2969
|
+
},
|
|
2937
2970
|
listEventOfferingCombinationPrices: {
|
|
2938
2971
|
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
|
|
2939
2972
|
method: "GET",
|
|
@@ -17048,6 +17081,27 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
17048
17081
|
responseKind: "json",
|
|
17049
17082
|
errors: []
|
|
17050
17083
|
},
|
|
17084
|
+
portalEntryPreview: {
|
|
17085
|
+
path: "/portal/auth/entry/preview",
|
|
17086
|
+
method: "POST",
|
|
17087
|
+
auth: "public",
|
|
17088
|
+
responseKind: "json",
|
|
17089
|
+
errors: []
|
|
17090
|
+
},
|
|
17091
|
+
portalEntryRedeem: {
|
|
17092
|
+
path: "/portal/auth/entry/redeem",
|
|
17093
|
+
method: "POST",
|
|
17094
|
+
auth: "public",
|
|
17095
|
+
responseKind: "json",
|
|
17096
|
+
errors: []
|
|
17097
|
+
},
|
|
17098
|
+
portalEntryResend: {
|
|
17099
|
+
path: "/portal/auth/entry/resend",
|
|
17100
|
+
method: "POST",
|
|
17101
|
+
auth: "public",
|
|
17102
|
+
responseKind: "json",
|
|
17103
|
+
errors: []
|
|
17104
|
+
},
|
|
17051
17105
|
portalLogout: {
|
|
17052
17106
|
path: "/portal/auth/logout",
|
|
17053
17107
|
method: "POST",
|
|
@@ -18486,6 +18540,7 @@ const BOOKING_SETTINGS_SECTION_KEYS = {
|
|
|
18486
18540
|
"collectAllAttendeeDetails",
|
|
18487
18541
|
"eventTypeBookingDefaults",
|
|
18488
18542
|
"eventBookingPolicies",
|
|
18543
|
+
"eventBookingCutOffHours",
|
|
18489
18544
|
"defaultEventImage",
|
|
18490
18545
|
"eventDestinationPolicy"
|
|
18491
18546
|
],
|
|
@@ -18814,7 +18869,12 @@ const appointmentSetupServiceDraftSchema = z.object({
|
|
|
18814
18869
|
timezone: z.string().trim().min(1).nullable(),
|
|
18815
18870
|
payment: appointmentSetupPaymentDraftSchema,
|
|
18816
18871
|
assignment: appointmentSetupServiceAssignmentDraftSchema,
|
|
18817
|
-
categoryId: z.string().uuid().nullable().optional()
|
|
18872
|
+
categoryId: z.string().uuid().nullable().optional(),
|
|
18873
|
+
onlineDetails: z.object({
|
|
18874
|
+
joinUrl: z.string().trim().max(2e3).nullable().optional(),
|
|
18875
|
+
accessCode: z.string().trim().max(200).nullable().optional(),
|
|
18876
|
+
notes: z.string().trim().max(2e3).nullable().optional()
|
|
18877
|
+
}).strict().nullable().optional()
|
|
18818
18878
|
}).superRefine((service, ctx) => {
|
|
18819
18879
|
if (service.payment.kind !== "free" && (service.priceAmount === null || service.priceAmount <= 0)) {
|
|
18820
18880
|
ctx.addIssue({
|
|
@@ -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-DoazwQVt.mjs";
|
|
3
|
+
import { S as EVENT_PRESET_VALUES } from "./src-CysOxz1U.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,
|
|
@@ -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.35.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.35.0" === "string" ? "0.35.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 { Nr as err, Pr as ok, xr as parseSiteId } from "./src-CysOxz1U.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")
|
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-CysOxz1U.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-CMMvs6Nr.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 { 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-CysOxz1U.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
|
};
|