riverbankcms 0.33.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 +528 -284
- package/dist/cli/init-docs/content/cli-reference.md +1 -2
- package/dist/cli/init-docs/content/content-management.md +18 -6
- package/dist/cli/init-docs/content/getting-started.md +4 -4
- package/dist/cli/init-docs/content/workflow-content-types.md +8 -0
- package/dist/cli/init-docs/content/workflow-preview-mode.md +1 -0
- package/dist/{entryCommands-wcOr-fKy.mjs → entryCommands-D-1ldejM.mjs} +178 -114
- package/dist/{eventUpsertInputSchema-Df67rs3n.mjs → eventUpsertInputSchema-D1CXYu1M.mjs} +3 -2
- package/dist/{load-config-CexajivS.mjs → load-config-DB_S_gdr.mjs} +2 -2
- package/dist/load-config-DSGN-x3K.mjs +4 -0
- package/dist/{plan-Bhv4iKa3.mjs → plan-CMMvs6Nr.mjs} +9 -12
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-Y4Iyx0N4.mjs → sdk-event-upsert-DoazwQVt.mjs} +33 -3
- package/dist/{src-90EK8rKq.mjs → src-CysOxz1U.mjs} +880 -770
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-CKgy6Yct.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $n as headerStyleIdValues, At as getMimeType, Bt as footerPreferencesSchema, Cr as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema,
|
|
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", [
|
|
@@ -1939,7 +1946,8 @@ const arrangementDateResultSchema = z.intersection(z.object({ occurrenceDate: lo
|
|
|
1939
1946
|
]) }),
|
|
1940
1947
|
z.object({
|
|
1941
1948
|
code: z.literal("clash"),
|
|
1942
|
-
customerFirstName: z.string().nullable()
|
|
1949
|
+
customerFirstName: z.string().nullable(),
|
|
1950
|
+
clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
|
|
1943
1951
|
}),
|
|
1944
1952
|
z.object({
|
|
1945
1953
|
code: z.literal("command_failed"),
|
|
@@ -2534,6 +2542,20 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2534
2542
|
auth: "user",
|
|
2535
2543
|
responseKind: "json"
|
|
2536
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
|
+
},
|
|
2537
2559
|
getServiceResources: {
|
|
2538
2560
|
path: "/sites/{siteId}/bookings/services/{serviceId}/resources",
|
|
2539
2561
|
method: "GET",
|
|
@@ -2933,6 +2955,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
2933
2955
|
"server:internal_error"
|
|
2934
2956
|
]
|
|
2935
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
|
+
},
|
|
2936
2970
|
listEventOfferingCombinationPrices: {
|
|
2937
2971
|
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
|
|
2938
2972
|
method: "GET",
|
|
@@ -10732,7 +10766,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
10732
10766
|
path: "/public/content/{siteId}/{type}/{slug}/preview",
|
|
10733
10767
|
method: "GET",
|
|
10734
10768
|
revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
|
|
10735
|
-
tags: [
|
|
10769
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
10736
10770
|
auth: "public",
|
|
10737
10771
|
responseKind: "json"
|
|
10738
10772
|
},
|
|
@@ -10740,7 +10774,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
10740
10774
|
path: "/public/content/{siteId}/{type}/entries",
|
|
10741
10775
|
method: "GET",
|
|
10742
10776
|
revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
|
|
10743
|
-
tags: [
|
|
10777
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
10744
10778
|
auth: "public",
|
|
10745
10779
|
responseKind: "json"
|
|
10746
10780
|
},
|
|
@@ -14876,6 +14910,18 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
14876
14910
|
auth: "admin",
|
|
14877
14911
|
responseKind: "json"
|
|
14878
14912
|
},
|
|
14913
|
+
adminSyncPriceOverride: {
|
|
14914
|
+
path: "/admin/billing/price-override",
|
|
14915
|
+
method: "PUT",
|
|
14916
|
+
tags: [
|
|
14917
|
+
"admin",
|
|
14918
|
+
"billing",
|
|
14919
|
+
"price-override"
|
|
14920
|
+
],
|
|
14921
|
+
auth: "admin",
|
|
14922
|
+
responseKind: "json",
|
|
14923
|
+
errors: []
|
|
14924
|
+
},
|
|
14879
14925
|
...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
14880
14926
|
getEventSeries: {
|
|
14881
14927
|
path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
|
|
@@ -17035,6 +17081,27 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
17035
17081
|
responseKind: "json",
|
|
17036
17082
|
errors: []
|
|
17037
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
|
+
},
|
|
17038
17105
|
portalLogout: {
|
|
17039
17106
|
path: "/portal/auth/logout",
|
|
17040
17107
|
method: "POST",
|
|
@@ -18184,17 +18251,19 @@ const sdkSeoDefaultsSchema = z.object({
|
|
|
18184
18251
|
});
|
|
18185
18252
|
const sdkSettingsUpdateSchema = z.object({
|
|
18186
18253
|
siteTitle: siteTitleSchema.optional(),
|
|
18187
|
-
homepageId: z.string().nullable().optional(),
|
|
18188
18254
|
seoDefaults: sdkSeoDefaultsSchema.nullable().optional(),
|
|
18189
18255
|
logoIdentifier: z.string().min(1).nullable().optional(),
|
|
18190
18256
|
logoDarkBackgroundIdentifier: z.string().min(1).nullable().optional(),
|
|
18191
18257
|
faviconIdentifier: z.string().min(1).nullable().optional()
|
|
18192
18258
|
}).strict();
|
|
18259
|
+
/**
|
|
18260
|
+
* Strips rather than refuses unknown keys: the API still echoes the retired
|
|
18261
|
+
* `homepageId` for clients on older SDK versions.
|
|
18262
|
+
*/
|
|
18193
18263
|
const sdkPullSettingsSchema = sdkSettingsUpdateSchema.extend({
|
|
18194
|
-
homepageId: z.string().nullable(),
|
|
18195
18264
|
seoDefaults: sdkSeoDefaultsSchema.nullable(),
|
|
18196
18265
|
verticalConfig: sdkConfiguredBookingVerticalConfigSchema.optional()
|
|
18197
|
-
});
|
|
18266
|
+
}).strip();
|
|
18198
18267
|
/** Existing flat form wire shape; detailed questionnaires retain their canonical sections. */
|
|
18199
18268
|
const sdkPullFlatFormSchema = z.object({
|
|
18200
18269
|
schemaVersion: z.undefined().optional(),
|
|
@@ -18471,6 +18540,7 @@ const BOOKING_SETTINGS_SECTION_KEYS = {
|
|
|
18471
18540
|
"collectAllAttendeeDetails",
|
|
18472
18541
|
"eventTypeBookingDefaults",
|
|
18473
18542
|
"eventBookingPolicies",
|
|
18543
|
+
"eventBookingCutOffHours",
|
|
18474
18544
|
"defaultEventImage",
|
|
18475
18545
|
"eventDestinationPolicy"
|
|
18476
18546
|
],
|
|
@@ -18481,7 +18551,11 @@ const BOOKING_SETTINGS_SECTION_KEYS = {
|
|
|
18481
18551
|
"appointmentDefaultMaxBookingNoticeMinutes",
|
|
18482
18552
|
"appointmentBookingPolicies"
|
|
18483
18553
|
],
|
|
18484
|
-
messages: [
|
|
18554
|
+
messages: [
|
|
18555
|
+
"notificationSettings",
|
|
18556
|
+
"appointmentStaffChangeNotifications",
|
|
18557
|
+
"discreetAppointmentEmails"
|
|
18558
|
+
]
|
|
18485
18559
|
};
|
|
18486
18560
|
/**
|
|
18487
18561
|
* Whether each email is sent, and when. No section owns these: the command
|
|
@@ -18795,7 +18869,12 @@ const appointmentSetupServiceDraftSchema = z.object({
|
|
|
18795
18869
|
timezone: z.string().trim().min(1).nullable(),
|
|
18796
18870
|
payment: appointmentSetupPaymentDraftSchema,
|
|
18797
18871
|
assignment: appointmentSetupServiceAssignmentDraftSchema,
|
|
18798
|
-
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()
|
|
18799
18878
|
}).superRefine((service, ctx) => {
|
|
18800
18879
|
if (service.payment.kind !== "free" && (service.priceAmount === null || service.priceAmount <= 0)) {
|
|
18801
18880
|
ctx.addIssue({
|
|
@@ -18910,6 +18989,14 @@ const eventOccurrenceRestorationSummarySchema = z.object({
|
|
|
18910
18989
|
customerEmail: z.string().nullable()
|
|
18911
18990
|
}))
|
|
18912
18991
|
});
|
|
18992
|
+
/**
|
|
18993
|
+
* Whether this site's appointment emails leave the service name out of their
|
|
18994
|
+
* subjects. Someone else can often read a phone's lock screen, so therapists
|
|
18995
|
+
* start with it on until they choose otherwise.
|
|
18996
|
+
*/
|
|
18997
|
+
function appointmentEmailsAreDiscreet(settings) {
|
|
18998
|
+
return settings.discreetAppointmentEmails ?? settings.verticalConfig?.verticalId === "therapist_practitioner";
|
|
18999
|
+
}
|
|
18913
19000
|
const DEFAULT_BOOKING_NOTIFICATION_SEND_RULE = {
|
|
18914
19001
|
kind: "send",
|
|
18915
19002
|
sendToAssignedStaff: true,
|
|
@@ -23437,6 +23524,29 @@ function defineCommandGroup(definition) {
|
|
|
23437
23524
|
return commandHandle(group);
|
|
23438
23525
|
}
|
|
23439
23526
|
|
|
23527
|
+
//#endregion
|
|
23528
|
+
//#region src/retiredSiteSettings.ts
|
|
23529
|
+
/** What each removed `content.settings` key used to do, for the message that asks to delete it. */
|
|
23530
|
+
const RETIRED_SITE_SETTINGS = {
|
|
23531
|
+
homepagePath: "The homepage is always the page at \"/\".",
|
|
23532
|
+
siteTitle: "The site name comes from the dashboard, or from siteTitle in content/settings.json."
|
|
23533
|
+
};
|
|
23534
|
+
/**
|
|
23535
|
+
* The dashboard has to keep parsing configs from older SDKs, so its shared schema
|
|
23536
|
+
* drops these keys silently. Only the CLI refuses them, so a stale line gets deleted.
|
|
23537
|
+
*/
|
|
23538
|
+
function findRetiredSiteSettings(rawConfig) {
|
|
23539
|
+
const settings = readSettings(rawConfig);
|
|
23540
|
+
return Object.entries(RETIRED_SITE_SETTINGS).filter(([key]) => settings !== null && key in settings).map(([key, reason]) => `Remove \`${key}\` from content.settings in your Riverbank config. ${reason}`);
|
|
23541
|
+
}
|
|
23542
|
+
function readSettings(rawConfig) {
|
|
23543
|
+
if (!isObject(rawConfig) || !isObject(rawConfig.content)) return null;
|
|
23544
|
+
return isObject(rawConfig.content.settings) ? rawConfig.content.settings : null;
|
|
23545
|
+
}
|
|
23546
|
+
function isObject(value) {
|
|
23547
|
+
return typeof value === "object" && value !== null;
|
|
23548
|
+
}
|
|
23549
|
+
|
|
23440
23550
|
//#endregion
|
|
23441
23551
|
//#region src/environment-outcome-json.ts
|
|
23442
23552
|
function mapEnvironmentTargetOutcomeJson(outcome, formatApplied, formatApplicationFailed) {
|
|
@@ -25025,6 +25135,8 @@ function pushConfigFailure(error, timeoutMs, requestInfo) {
|
|
|
25025
25135
|
return managementTransportError(error, timeoutMs, requestInfo);
|
|
25026
25136
|
}
|
|
25027
25137
|
function validatePushConfig(rawConfig) {
|
|
25138
|
+
const retired = findRetiredSiteSettings(rawConfig);
|
|
25139
|
+
if (retired.length > 0) throw new Error(retired.join("\n"));
|
|
25028
25140
|
const parsed = z.safeParse(riverbankSiteConfigSchema, rawConfig);
|
|
25029
25141
|
if (!parsed.success) {
|
|
25030
25142
|
const issues = parsed.error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; ");
|
|
@@ -26102,6 +26214,17 @@ async function deletePriceOverride(apiClient, body, options) {
|
|
|
26102
26214
|
return normalizeApiError(error, "Failed to clear custom price");
|
|
26103
26215
|
}
|
|
26104
26216
|
}
|
|
26217
|
+
async function syncPriceOverride(apiClient, body, options) {
|
|
26218
|
+
try {
|
|
26219
|
+
return unwrapResponse(await apiClient({
|
|
26220
|
+
endpoint: "adminSyncPriceOverride",
|
|
26221
|
+
body,
|
|
26222
|
+
options
|
|
26223
|
+
}));
|
|
26224
|
+
} catch (error) {
|
|
26225
|
+
return normalizeApiError(error, "Failed to update Stripe");
|
|
26226
|
+
}
|
|
26227
|
+
}
|
|
26105
26228
|
async function adminClearSitePublicCache(apiClient, siteId, options) {
|
|
26106
26229
|
try {
|
|
26107
26230
|
return unwrapResponse(await apiClient({
|
|
@@ -29255,11 +29378,7 @@ async function applyEntryMetadata(contentDir, contentType, entries, metadataTarg
|
|
|
29255
29378
|
|
|
29256
29379
|
//#endregion
|
|
29257
29380
|
//#region ../management-client/src/settings-branding.ts
|
|
29258
|
-
const SETTINGS_BASE_FIELDS = [
|
|
29259
|
-
"siteTitle",
|
|
29260
|
-
"homepageId",
|
|
29261
|
-
"seoDefaults"
|
|
29262
|
-
];
|
|
29381
|
+
const SETTINGS_BASE_FIELDS = ["siteTitle", "seoDefaults"];
|
|
29263
29382
|
const SETTINGS_BRANDING_FIELDS = [
|
|
29264
29383
|
"logoIdentifier",
|
|
29265
29384
|
"logoDarkBackgroundIdentifier",
|
|
@@ -29290,9 +29409,6 @@ function buildSettingsUpdateInput(settings) {
|
|
|
29290
29409
|
case "siteTitle":
|
|
29291
29410
|
update.siteTitle = settings.siteTitle;
|
|
29292
29411
|
break;
|
|
29293
|
-
case "homepageId":
|
|
29294
|
-
update.homepageId = settings.homepageId;
|
|
29295
|
-
break;
|
|
29296
29412
|
case "seoDefaults":
|
|
29297
29413
|
update.seoDefaults = settings.seoDefaults;
|
|
29298
29414
|
break;
|
|
@@ -29310,10 +29426,7 @@ function buildSettingsUpdateInput(settings) {
|
|
|
29310
29426
|
return update;
|
|
29311
29427
|
}
|
|
29312
29428
|
function applySettingsBrandingPullResolutions(baseSettings, resolutions) {
|
|
29313
|
-
const settings = {
|
|
29314
|
-
homepageId: baseSettings.homepageId,
|
|
29315
|
-
seoDefaults: baseSettings.seoDefaults
|
|
29316
|
-
};
|
|
29429
|
+
const settings = { seoDefaults: baseSettings.seoDefaults };
|
|
29317
29430
|
const warnings = [];
|
|
29318
29431
|
for (const resolution of resolutions) {
|
|
29319
29432
|
switch (resolution.kind) {
|
|
@@ -30739,7 +30852,7 @@ const normalizeLocalContentMedia = (content, assetsByIdentifier) => ({
|
|
|
30739
30852
|
forms: content.forms.map((form) => ({
|
|
30740
30853
|
...form,
|
|
30741
30854
|
schema: normalizeRecord(form.schema, assetsByIdentifier),
|
|
30742
|
-
settings: normalizeRecord(form.settings, assetsByIdentifier)
|
|
30855
|
+
...form.settings === undefined ? {} : { settings: normalizeRecord(form.settings, assetsByIdentifier) }
|
|
30743
30856
|
})),
|
|
30744
30857
|
footer: normalizeValueTree(content.footer, assetsByIdentifier),
|
|
30745
30858
|
venues: content.venues.map((venue) => normalizeRecord(venue, assetsByIdentifier)),
|
|
@@ -32170,18 +32283,32 @@ function buildRemoteLookup(remoteEntries) {
|
|
|
32170
32283
|
typeMap.set(entry.identifier, {
|
|
32171
32284
|
data: entry.data,
|
|
32172
32285
|
status: entry.status,
|
|
32173
|
-
manualOrder: entry.manualOrder
|
|
32286
|
+
manualOrder: entry.manualOrder,
|
|
32287
|
+
slug: entry.slug
|
|
32174
32288
|
});
|
|
32175
32289
|
}
|
|
32176
32290
|
remoteLookup.set(contentType, typeMap);
|
|
32177
32291
|
}
|
|
32178
32292
|
return remoteLookup;
|
|
32179
32293
|
}
|
|
32294
|
+
/**
|
|
32295
|
+
* A slug that sanitises to nothing still counts as a change, shown as written, so
|
|
32296
|
+
* the push sends it and the server refuses it with a clear message.
|
|
32297
|
+
*/
|
|
32298
|
+
function entrySlugChange(localEntry, remoteEntry) {
|
|
32299
|
+
const edit = compareEntrySlug(localEntry.slug, remoteEntry.slug);
|
|
32300
|
+
if (edit.kind === "unchanged" || !localEntry.slug || remoteEntry.slug === undefined) return undefined;
|
|
32301
|
+
return {
|
|
32302
|
+
from: remoteEntry.slug,
|
|
32303
|
+
to: edit.kind === "edited" ? edit.slug : localEntry.slug
|
|
32304
|
+
};
|
|
32305
|
+
}
|
|
32180
32306
|
function changedEntryFields(localEntry, remoteEntry) {
|
|
32181
32307
|
const changes = equal(localEntry.data, remoteEntry.data) ? [] : findChangedFieldPaths(localEntry.data, remoteEntry.data);
|
|
32182
32308
|
if (typeof localEntry.manualOrder === "number" && localEntry.manualOrder !== remoteEntry.manualOrder) {
|
|
32183
32309
|
changes.push("manualOrder");
|
|
32184
32310
|
}
|
|
32311
|
+
if (entrySlugChange(localEntry, remoteEntry)) changes.push("slug");
|
|
32185
32312
|
return changes;
|
|
32186
32313
|
}
|
|
32187
32314
|
function classifyEntry(localEntry, remoteEntry, contentType, options) {
|
|
@@ -32209,6 +32336,7 @@ function classifyEntry(localEntry, remoteEntry, contentType, options) {
|
|
|
32209
32336
|
identifier: localEntry.identifier,
|
|
32210
32337
|
contentType,
|
|
32211
32338
|
changes,
|
|
32339
|
+
slugChange: entrySlugChange(localEntry, remoteEntry),
|
|
32212
32340
|
statusChange
|
|
32213
32341
|
};
|
|
32214
32342
|
}
|
|
@@ -33151,8 +33279,14 @@ function formatEntryDetails(diff, contentType, localEntries, remoteEntries) {
|
|
|
33151
33279
|
if (diff.type !== "update") return [];
|
|
33152
33280
|
const localData = localEntries.get(contentType)?.get(diff.identifier);
|
|
33153
33281
|
const remoteData = remoteEntries.get(contentType)?.get(diff.identifier);
|
|
33154
|
-
|
|
33155
|
-
|
|
33282
|
+
const dataChanges = localData && remoteData ? findChangedFieldsWithValues(localData, remoteData) : [];
|
|
33283
|
+
const slugChanges = diff.slugChange ? [{
|
|
33284
|
+
kind: "changed",
|
|
33285
|
+
path: "slug",
|
|
33286
|
+
before: diff.slugChange.from,
|
|
33287
|
+
after: diff.slugChange.to
|
|
33288
|
+
}] : [];
|
|
33289
|
+
return [...slugChanges, ...dataChanges].map((change) => ` ${formatFieldChange(change)}`);
|
|
33156
33290
|
}
|
|
33157
33291
|
function formatPageDetails(diff, localPages, remotePages) {
|
|
33158
33292
|
if (diff.type !== "update") return [];
|
|
@@ -33492,6 +33626,14 @@ function calculateSettingsDiff(localSettings, remoteSettings) {
|
|
|
33492
33626
|
summary
|
|
33493
33627
|
};
|
|
33494
33628
|
}
|
|
33629
|
+
/** A file with no settings keeps the saved ones, so that isn't a change. */
|
|
33630
|
+
function changedFormFields(localForm, remoteForm) {
|
|
33631
|
+
return [
|
|
33632
|
+
...localForm.name === remoteForm.name ? [] : ["name"],
|
|
33633
|
+
...equal(localForm.schema, remoteForm.schema) ? [] : ["schema"],
|
|
33634
|
+
...localForm.settings === undefined || equal(localForm.settings, remoteForm.settings) ? [] : ["settings"]
|
|
33635
|
+
];
|
|
33636
|
+
}
|
|
33495
33637
|
function calculateFormDiffs(localForms, remoteForms, options) {
|
|
33496
33638
|
const diffs = [];
|
|
33497
33639
|
const summary = {
|
|
@@ -33518,14 +33660,8 @@ function calculateFormDiffs(localForms, remoteForms, options) {
|
|
|
33518
33660
|
});
|
|
33519
33661
|
summary.unchanged++;
|
|
33520
33662
|
} else {
|
|
33521
|
-
const
|
|
33522
|
-
|
|
33523
|
-
const settingsChanged = !equal(localForm.settings, remoteForm.settings);
|
|
33524
|
-
if (nameChanged || schemaChanged || settingsChanged) {
|
|
33525
|
-
const changes = [];
|
|
33526
|
-
if (nameChanged) changes.push("name");
|
|
33527
|
-
if (schemaChanged) changes.push("schema");
|
|
33528
|
-
if (settingsChanged) changes.push("settings");
|
|
33663
|
+
const changes = changedFormFields(localForm, remoteForm);
|
|
33664
|
+
if (changes.length > 0) {
|
|
33529
33665
|
diffs.push({
|
|
33530
33666
|
type: "update",
|
|
33531
33667
|
slug: localForm.slug,
|
|
@@ -33615,80 +33751,6 @@ function calculateDiff(local, remote, options) {
|
|
|
33615
33751
|
};
|
|
33616
33752
|
}
|
|
33617
33753
|
|
|
33618
|
-
//#endregion
|
|
33619
|
-
//#region src/sync/homepage-reference.ts
|
|
33620
|
-
/**
|
|
33621
|
-
* Content files use a page identifier for portability across environments,
|
|
33622
|
-
* while the management API stores the target-specific page UUID.
|
|
33623
|
-
*/
|
|
33624
|
-
function normalizeRemoteHomepageReference(content) {
|
|
33625
|
-
if (!content.settings) return {
|
|
33626
|
-
ok: true,
|
|
33627
|
-
content
|
|
33628
|
-
};
|
|
33629
|
-
const homepageId = content.settings.homepageId;
|
|
33630
|
-
if (homepageId === null || !parsePageId(homepageId).ok) {
|
|
33631
|
-
return {
|
|
33632
|
-
ok: true,
|
|
33633
|
-
content
|
|
33634
|
-
};
|
|
33635
|
-
}
|
|
33636
|
-
const homepage = content.pages.find((page) => page.id === homepageId);
|
|
33637
|
-
if (!homepage) {
|
|
33638
|
-
const truncated = content.meta.truncation.truncated;
|
|
33639
|
-
return {
|
|
33640
|
-
ok: false,
|
|
33641
|
-
error: {
|
|
33642
|
-
kind: "unresolved-homepage-reference",
|
|
33643
|
-
reason: "page-not-in-pull",
|
|
33644
|
-
homepageId,
|
|
33645
|
-
truncated,
|
|
33646
|
-
message: `Could not resolve remote homepage UUID ${homepageId} to a portable page identifier.` + (truncated ? " The remote pull was truncated and did not include the homepage page." : "")
|
|
33647
|
-
}
|
|
33648
|
-
};
|
|
33649
|
-
}
|
|
33650
|
-
if (homepage.identifier === null) {
|
|
33651
|
-
return {
|
|
33652
|
-
ok: false,
|
|
33653
|
-
error: {
|
|
33654
|
-
kind: "unresolved-homepage-reference",
|
|
33655
|
-
reason: "page-has-no-identifier",
|
|
33656
|
-
homepageId,
|
|
33657
|
-
truncated: content.meta.truncation.truncated,
|
|
33658
|
-
message: `Could not make remote homepage UUID ${homepageId} portable because the page has no identifier.`
|
|
33659
|
-
}
|
|
33660
|
-
};
|
|
33661
|
-
}
|
|
33662
|
-
return {
|
|
33663
|
-
ok: true,
|
|
33664
|
-
content: {
|
|
33665
|
-
...content,
|
|
33666
|
-
settings: {
|
|
33667
|
-
...content.settings,
|
|
33668
|
-
homepageId: homepage.identifier
|
|
33669
|
-
}
|
|
33670
|
-
}
|
|
33671
|
-
};
|
|
33672
|
-
}
|
|
33673
|
-
async function buildTargetSettingsUpdateInput(client, settings) {
|
|
33674
|
-
const input = buildSettingsUpdateInput(settings);
|
|
33675
|
-
const homepageReference = input.homepageId;
|
|
33676
|
-
if (homepageReference === undefined || homepageReference === null) {
|
|
33677
|
-
return input;
|
|
33678
|
-
}
|
|
33679
|
-
if (parsePageId(homepageReference).ok) {
|
|
33680
|
-
return input;
|
|
33681
|
-
}
|
|
33682
|
-
const homepage = await client.pages.get(homepageReference);
|
|
33683
|
-
if (!homepage) {
|
|
33684
|
-
throw new Error(`Homepage page not found: ${homepageReference}. ` + "Use a page identifier from content/pages or set homepageId to null.");
|
|
33685
|
-
}
|
|
33686
|
-
return {
|
|
33687
|
-
...input,
|
|
33688
|
-
homepageId: homepage.id
|
|
33689
|
-
};
|
|
33690
|
-
}
|
|
33691
|
-
|
|
33692
33754
|
//#endregion
|
|
33693
33755
|
//#region src/sync/syncResult.ts
|
|
33694
33756
|
function createEmptySyncResult() {
|
|
@@ -33893,7 +33955,7 @@ async function syncSettings(client, diff, local, options, result) {
|
|
|
33893
33955
|
result.settings.updated++;
|
|
33894
33956
|
return;
|
|
33895
33957
|
}
|
|
33896
|
-
await client.settings.update(
|
|
33958
|
+
await client.settings.update(buildSettingsUpdateInput(local.settings));
|
|
33897
33959
|
result.settings.updated++;
|
|
33898
33960
|
} catch (error) {
|
|
33899
33961
|
result.settings.failed++;
|
|
@@ -34436,6 +34498,7 @@ async function executeEntryCommandPlan(input) {
|
|
|
34436
34498
|
contentType: command.input.contentTypeKey,
|
|
34437
34499
|
data: command.input.data ?? {},
|
|
34438
34500
|
slug: command.input.slug,
|
|
34501
|
+
...command.input.renameAddress ? { renameAddress: true } : {},
|
|
34439
34502
|
manualOrder: command.input.manualOrder,
|
|
34440
34503
|
blocks: command.input.blocks
|
|
34441
34504
|
})).effect;
|
|
@@ -34518,7 +34581,7 @@ function entryCommandsForDiff(input) {
|
|
|
34518
34581
|
return err(missingLocalEntryError(input, identifier));
|
|
34519
34582
|
}
|
|
34520
34583
|
const upsertedInBatch = input.entryDiff.type !== "unchanged";
|
|
34521
|
-
const upsertBinding = input.entryDiff.type === "create" || input.entryDiff.type === "update" ? buildUpsertEntryBinding(input.contentType, localEntry, input.entryDiff
|
|
34584
|
+
const upsertBinding = input.entryDiff.type === "create" || input.entryDiff.type === "update" ? buildUpsertEntryBinding(input.contentType, localEntry, input.entryDiff, entryRef) : null;
|
|
34522
34585
|
const statusBinding = buildStatusEntryBinding(input.contentType, identifier, input.entryDiff.statusChange, entryRef, upsertedInBatch);
|
|
34523
34586
|
return ok([...upsertBinding ? [upsertBinding] : [], ...statusBinding ? [statusBinding] : []]);
|
|
34524
34587
|
}
|
|
@@ -34548,7 +34611,7 @@ function buildDeleteEntryBinding(contentType, identifier) {
|
|
|
34548
34611
|
})
|
|
34549
34612
|
};
|
|
34550
34613
|
}
|
|
34551
|
-
function buildUpsertEntryBinding(contentType, localEntry,
|
|
34614
|
+
function buildUpsertEntryBinding(contentType, localEntry, entryDiff, entryRef) {
|
|
34552
34615
|
const identifier = unsafeAsCliEntryIdentifier(localEntry.identifier);
|
|
34553
34616
|
const command = {
|
|
34554
34617
|
type: "upsertContentEntry",
|
|
@@ -34557,6 +34620,7 @@ function buildUpsertEntryBinding(contentType, localEntry, diffType, entryRef) {
|
|
|
34557
34620
|
identifier,
|
|
34558
34621
|
contentTypeKey: contentType,
|
|
34559
34622
|
...localEntry.slug ? { slug: localEntry.slug } : {},
|
|
34623
|
+
...entryDiff.slugChange ? { renameAddress: true } : {},
|
|
34560
34624
|
...typeof localEntry.manualOrder === "number" ? { manualOrder: localEntry.manualOrder } : {},
|
|
34561
34625
|
...optionalTitle(localEntry.data),
|
|
34562
34626
|
data: localEntry.data,
|
|
@@ -34568,7 +34632,7 @@ function buildUpsertEntryBinding(contentType, localEntry, diffType, entryRef) {
|
|
|
34568
34632
|
reportSubject: reportSubject({
|
|
34569
34633
|
contentType,
|
|
34570
34634
|
identifier,
|
|
34571
|
-
counter:
|
|
34635
|
+
counter: entryDiff.type === "create" ? "created" : "updated"
|
|
34572
34636
|
})
|
|
34573
34637
|
};
|
|
34574
34638
|
}
|
|
@@ -34664,4 +34728,4 @@ function optionalTitle(data) {
|
|
|
34664
34728
|
}
|
|
34665
34729
|
|
|
34666
34730
|
//#endregion
|
|
34667
|
-
export {
|
|
34731
|
+
export { walkLocalContentMedia as $, extractApiErrorMessage as $n, ApiEnvelopeError as $r, commandContexts as $t, formatDiffSummary as A, isLocalConfigured as An, getBookingLaterInstalments as Ar, navigationIdentityMap as At, formatFieldChange as B, DEFAULT_MEDIA_FIELD_KINDS as Bn, publicProductSchema as Br, ACCOUNT_SITE_SEARCH_MAX_LENGTH as Bt, reportFromOutcomes as C, ErrorCodes as Cn, planFlexibleBalanceCreditFirst as Cr, listFiles as Ct, calculateDiff as D, createOutput as Dn, resolveAvailableBookingCollectionOptions as Dr, isMediaValue as Dt, createEmptySyncResult as E, CliExit as En, repriceBookingCollectionOptions as Er, writeJsonFileAtomic as Et, buildJsonDiff as F, cardListKnobBlocks as Fn, eventCalendarListLayoutValues as Fr, createBearerAccountApi as Ft, applyLocalMediaPush as G, MAX_REPEATER_GRID_COLUMNS as Gn, calendarMonthWindowSchema as Gr, createPushConfigCommand as Gt, revalidateLocalMediaPushPlan as H, blockContentSourceSchema as Hn, purchasablePublicPassProductSchema as Hr, navigationCommandItemToManagementInput as Ht, hasPageOperations as I, lookKnobBlocks as In, publicMapLocationResultSchema as Ir, ACCOUNT_SITE_CURSOR_MAX_LENGTH as It, readStableBinaryFile as J, resolveRepeaterGridColumnFieldId as Jn, eventSurfacePresetValues as Jr, revalidatePushConfigPlan as Jt, prepareLocalMediaForPush as K, isAcceptedRepeaterGridSpan as Kn, calendarSourceCursorSchema as Kr, loadPushConfigTarget as Kt, pageMetadataForUpsert as L, NodeSchema as Ln, publicVenueMapLocationSchema as Lr, ACCOUNT_SITE_LIST_LIMIT_DEFAULT as Lt, findChangedFieldsWithValues as M, loadSdkEnvironment as Mn, eventCalendarDefaultViewValues as Mr, convertPulledNavigationToLocal as Mt, formatHumanDiff as N, cardListBlockParts as Nn, eventCalendarDisplayModeValues as Nr, convertPulledPagesToLocal as Nt, calculateFooterDiff as O, getEnvPrefix as On, resolveBookingCollectionOptionFacts as Or, duplicateNavigationIdentityMessage as Ot, calculatePullDiff as P, cardListFamilyBlocks as Pn, eventCalendarListLayoutCompatibleDisplayModeValues as Pr, AccountApiMalformedResponseError as Pt, normalizeMediaValueToIdentifierOnly as Q, ManagementApiError as Qn, publicEventLoaderQuerySchemaShape as Qr, CommandFailure as Qt, calculateEntryDiffs as R, NodeTreeSchema as Rn, publicMembershipProductSchema as Rr, ACCOUNT_SITE_LIST_LIMIT_MAX as Rt, planCliCommandBatchForBindings as S, withRiverbankEnv as Sn, planCheckoutPaymentFlow as Sr, fileExists$1 as St, executeResidualSettingsSyncPlan as T, transportSuggestion as Tn, isBookingCollectionEquivalentToUpfront as Tr, writeJsonFile$1 as Tt, syncLocalMediaForPush as U, blockRequiredFeatureSchema as Un, CALENDAR_SSR_PAGE_SIZE as Ur, normalizeNavigationConfigItemForCommand as Ut, formatFieldPath as V, blockCategoryEnum as Vn, purchasablePublicMembershipProductSchema as Vr, ACCOUNT_SITE_TITLE_MAX_LENGTH as Vt, syncLocalMediaForPull as W, fieldSchema as Wn, calendarMonthDate as Wr, applyPushConfigPlan as Wt, sha256 as X, resolveRepeaterGridSpanFieldId as Xn, monthNumber as Xr, deriveCmsApiUrlFromDashboardUrl as Xt, writeBinaryFileAtomic as Y, resolveRepeaterGridRowFieldId as Yn, eventSurfaceScopeValues as Yr, createBearerAPIClient as Yt, normalizeMediaIdentifierInput as Z, visibilityLevels as Zn, normalizeCalendarFilterId as Zr, mapEnvironmentExecutionOutcomesJson as Zt, commandExecutionToReport as _, executeEnvironmentPlan as _n, nextCombinationHint as _r, metadataTargetFromEnvironment as _t, executeEntryCommandPlanAsReport as a, confirmAction as an, linkPayloadSchema as ar, readAllMeta as at, executeCompiledCliCommandPlanAsReport as b, planEnvironmentWriteAuthorization as bn, checkoutCopy as br, writeMetadataRecordMap as bt, titleFromEntryData as c, formatDateShort as cn, pageDesignIntentSchemaVersion as cr, readFooterMeta as ct, unsafeAsCliEntryIdentifier as d, managementClientFor as dn, areEventBookingRequirementsIdentical as dr, readPagesMeta as dt, unwrapResponse as ei, defineCommand as en, normalizeApiError as er, buildStorageUrl as et, unsafeAsCliFormSlug as f, mapEntryForOutput as fn, eventBookingConsentContentKey as fr, readSettingsMeta as ft, commandCompileFailureToReport as g, runWithInvocation as gn, checkoutStatusArms as gr, metadataFilePath as gt, mutationCounterForEffect as h, resolveCommandPath as hn, resolveSelectionAttendanceMode as hr, ensureMetadataDir as ht, entrySiteCommandTypes as i, bindRequestTimeout as in, sdkSettingsUpdateSchema as ir, readEntries as it, hasPendingChanges as j, isRemoteConfigured as jn, MAX_EVENT_BOOKING_SELECTION_ITEMS as jr, convertPulledFooterToLocal as jt, formatDiffDetail as k, getEnvironmentDebugInfo as kn, getStripeMinimumChargeRequirement as kr, navigationIdentity as kt, unsafeAsCliBlockIdentifier as l, handleCommandError as ln, sdkConfiguredBookingVerticalConfigSchema as lr, readFormsMeta as lt, commandReportToSyncResult as m, parseJsonData as mn, decideSelectionAttendance as mr, writeMediaManifest as mt, entryCommandCompileErrorToReport as n, registerCommand as nn, ApiRequestError as nr, extractMediaIdentifiers as nt, executeEntryCommandPlanAsSyncResult as o, createOutputForCommand as on, portablePageDesignSchema as or, readEventCategoriesMeta as ot, unsafeAsCliPageIdentifier as p, parseJsonArray as pn, INCOMPATIBLE_ATTENDANCE_MESSAGE as pr, readVenuesMeta as pt, admitBinaryWriteDestination as q, parseRepeaterGridInteger as qn, eventScheduleScopeValues as qr, preparePushConfigTarget as qt, entryCommandReportToSyncResult as r, renderedByOwner as rn, sdkEventScheduleSchema as rr, findLegacyEntryFiles as rt, syncResultForEntryCommandCompileError as s, currentInvocationEnvelope as sn, pageDesignDecisionsV2Schema as sr, readEventsMeta as st, compileEntryPushCommands as t, defineCommandGroup as tn, isRecord$5 as tr, downloadMedia as tt, unsafeAsCliContentTypeKey as u, loadManagementTarget as un, API_ENDPOINTS as ur, readNavigationMeta as ut, commandReportHasFailures as v, parseEnvironmentSelection as vn, planSelectionCombinationPrices as vr, readMetadataFile as vt, mergeManySyncResults as w, formatError as wn, flexibleBalanceDueDay as wr, readJsonFile as wt, formatManagementError as x, requireEnvironmentWriteAuthorization as xn, unsafeAsPositiveCheckoutQuantity as xr, ensureDir$1 as xt, executeCliCommandPlan as y, planEnvironmentExecution as yn, eventRegistrationErrors as yr, writeMetadataFile as yt, buildFieldChanges as z, bindingSchema as zn, publicPassProductSchema as zr, ACCOUNT_SITE_LIST_LIMIT_MIN as zt };
|
|
@@ -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-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
|