riverbankcms 0.30.0 → 0.30.1
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 +516 -50
- package/dist/{entryCommands-DqqGit0l.mjs → entryCommands-BdWO_ZfG.mjs} +98 -11
- package/dist/{eventUpsertInputSchema-EGy8zFUx.mjs → eventUpsertInputSchema-u-IyFUEF.mjs} +3 -500
- package/dist/load-config-BqyywgbJ.mjs +4 -0
- package/dist/{load-config-Dgw0C6y3.mjs → load-config-C4powIPE.mjs} +2 -2
- package/dist/{plan-cE7TKMc1.mjs → plan-AJDYca86.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-mPJpEQ2x.mjs → sdk-event-upsert-RMUvPiD5.mjs} +784 -134
- package/dist/{src-DOwrYdTk.mjs → src-BntuEwG8.mjs} +107 -0
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-3e2Npz2O.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { An as parseDatedOfferingCapacityHoldId, At as resolveBookingTimeZoneId, Bt as addIntervalPreservingMonthAnchor, Cn as unsafeAsStaffMemberId, D as parseManagementKey, Dt as parseBookingLocalDate, E as exposeSecret, En as parseMembershipId, Gt as omitZeroAmountFutureRows, Ht as getBookingInstalmentDepositRefundability, It as validateBookingPaymentOptionKinds, J as assertAllowedPublicUrl, Jn as parsePageId, Jt as resolveFlexibleBalanceInitialPaymentCents, Kn as unsafeAsCheckoutLineId, Kt as splitAmountWithRemainderInFirst, Lt as isLiveOrderInstalmentPlanStatus, On as unsafeAsPassId, Qn as parseUserId, R as parseMailingListProviderScope, Rt as isSettleableFlexibleBalanceContractStatus, Sn as unsafeAsAppointmentResourceId, T as createSecret, Vt as clampConfiguredAmount, Wt as getBookingInstalmentProtectedDepositAmountCents, Xn as parseApiKeyId, Zn as parseSiteId, _n as parseCurrencyCode, a as resolveEventCatalogue, ar as unsafeAsEventSeriesId, c as areConfiguredBookingVerticalConfigsEqual, cr as err, d as parseVerticalPresetId, dn as parsePositiveCents, et as locationValueSchema, f as resolveSiteVerticalBookingConfig, fn as toCents, g as SURFACE_EVENT_PRESET_VALUES, hn as unsafeAsPositiveCents, ir as unsafeAsEventOfferingId, it as publicLocationSchema, kn as parseDatedOfferingCapacityHoldAuditRef, l as canonicalizeConfiguredBookingVerticalConfig, ln as isNonNegativeWholeCents$1, lr as ok, m as EVENT_PRESET_VALUES, mn as unsafeAsNonNegativeCents, n as committedWriteProofSchema, nr as parseRetiredCourseId, on as fromArray, or as unsafeAsOccurrenceId, p as DEFAULT_EVENT_TYPE_PRESETS, pn as toNonNegativeCents, qn as parseEditorSessionGeneration, qt as resolveFlexibleBalanceDueAt, rr as unsafeAsEventInstanceId, sr as unsafeAsPricingOptionId, st as trimmedStringOrNull, t as OFFLINE_PAYMENT_METHODS, tr as parseEventSeriesId, u as parseVerticalId, un as parseNonNegativeCents, ut as formatDate, v as getPublicReadCachePolicy, vn as assertNever, wn as parseCustomerId, y as publicReadFreshnessSeconds, z as parseFooterCompositionV1, zt as isSettleableOrderInstalmentPlanStatus } from "./src-
|
|
4
|
-
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-
|
|
2
|
+
import { $t as buttonStyleSelectionSchema, At as resolveMediaIdentifier, Bt as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, C as entryIdentifierForCommand, Cn as ICON_PICKER_PRESETS, Ct as PUBLIC_FILE_FIELD_KINDS, Dn as asFooterLookId, Dt as buildMediaIdentifierFromFilename, En as SUPPORTED_LOADER_ENDPOINTS, Er as createContentEntryRef, Ft as getMimeType, Ir as slugPart, K as themeSchema, Kn as asAppearancePresetId, Ln as SYSTEM_BLOCK_KINDS, Lt as normalizeAmbiguousStoragePathForSite, Mn as headerLayoutIdValues, N as footerPreferencesSchema, Nn as headerStyleIdValues, Nr as createSiteCommandSiteRef, On as asHeaderLayoutId, P as headerPreferencesSchema, Pt as getExtensionForMimeType, Tr as createCommandRef, Tt as mediaTypeDiscriminants, V as footerModeSchema, Xn as asDesignBlockId, Zn as asDesignBoundaryId, _ as evaluateSiteCommandBatchExposure, br as require_dist, f as stableStringify, jn as footerLookIdValues, jt as slugifyMediaIdentifier, k as eventBookingOfferIntentSchema, kn as asHeaderStyleId, l as resolvePageUpsertSeo, lr as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, m as parseAndPlanCommandBatchForTypes, n as sdkCourseBookingSettingsSchema, nr as asSiteStyleId, p as createDryRunReport, pt as getDirectImageUrlForSiteScopedPath, r as sdkEventOccurrenceInputSchema, rr as makeBoundaryId, s as eventVisibilitySchema, tr as asPageFlowPresetId, ut as parseAspectRatioValue, v as evaluateSiteCommandExposure, wt as isDisplayMediaKind, xr as bookingQuestionAttachmentSchema, y as getSiteCommandMetadata, zt as FILE_SIZE_LIMITS } from "./sdk-event-upsert-RMUvPiD5.mjs";
|
|
3
|
+
import { An as parseDatedOfferingCapacityHoldId, At as resolveBookingTimeZoneId, Bt as addIntervalPreservingMonthAnchor, Cn as unsafeAsStaffMemberId, D as parseManagementKey, Dt as parseBookingLocalDate, E as exposeSecret, En as parseMembershipId, Gt as omitZeroAmountFutureRows, Ht as getBookingInstalmentDepositRefundability, It as validateBookingPaymentOptionKinds, J as assertAllowedPublicUrl, Jn as parsePageId, Jt as resolveFlexibleBalanceInitialPaymentCents, Kn as unsafeAsCheckoutLineId, Kt as splitAmountWithRemainderInFirst, Lt as isLiveOrderInstalmentPlanStatus, On as unsafeAsPassId, Qn as parseUserId, R as parseMailingListProviderScope, Rt as isSettleableFlexibleBalanceContractStatus, Sn as unsafeAsAppointmentResourceId, T as createSecret, Vt as clampConfiguredAmount, Wt as getBookingInstalmentProtectedDepositAmountCents, Xn as parseApiKeyId, Zn as parseSiteId, _n as parseCurrencyCode, a as resolveEventCatalogue, ar as unsafeAsEventSeriesId, c as areConfiguredBookingVerticalConfigsEqual, cr as err, d as parseVerticalPresetId, dn as parsePositiveCents, et as locationValueSchema, f as resolveSiteVerticalBookingConfig, fn as toCents, g as SURFACE_EVENT_PRESET_VALUES, hn as unsafeAsPositiveCents, ir as unsafeAsEventOfferingId, it as publicLocationSchema, kn as parseDatedOfferingCapacityHoldAuditRef, l as canonicalizeConfiguredBookingVerticalConfig, ln as isNonNegativeWholeCents$1, lr as ok, m as EVENT_PRESET_VALUES, mn as unsafeAsNonNegativeCents, n as committedWriteProofSchema, nr as parseRetiredCourseId, on as fromArray, or as unsafeAsOccurrenceId, p as DEFAULT_EVENT_TYPE_PRESETS, pn as toNonNegativeCents, qn as parseEditorSessionGeneration, qt as resolveFlexibleBalanceDueAt, rr as unsafeAsEventInstanceId, sr as unsafeAsPricingOptionId, st as trimmedStringOrNull, t as OFFLINE_PAYMENT_METHODS, tr as parseEventSeriesId, u as parseVerticalId, un as parseNonNegativeCents, ut as formatDate, v as getPublicReadCachePolicy, vn as assertNever, wn as parseCustomerId, y as publicReadFreshnessSeconds, z as parseFooterCompositionV1, zt as isSettleableOrderInstalmentPlanStatus } from "./src-BntuEwG8.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-C4powIPE.mjs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { safeParse, z } from "zod";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -817,7 +817,6 @@ const PREVIEW_BLOCKED_REASONS = [
|
|
|
817
817
|
"invalid_refund_amount",
|
|
818
818
|
"invalid_refund_context",
|
|
819
819
|
"site_credit_unavailable",
|
|
820
|
-
"generated_schedule_is_managed",
|
|
821
820
|
"occurrence_completed",
|
|
822
821
|
"occurrence_cancelled",
|
|
823
822
|
"occurrence_not_cancelled",
|
|
@@ -3388,6 +3387,10 @@ const publicPassProductFields = {
|
|
|
3388
3387
|
validDays: z.number().nullable(),
|
|
3389
3388
|
eligibleCategoryIds: z.array(z.string()),
|
|
3390
3389
|
eligibleCategoryNames: z.array(z.string()),
|
|
3390
|
+
heldWithTeamMember: z.object({
|
|
3391
|
+
id: z.string(),
|
|
3392
|
+
name: z.string()
|
|
3393
|
+
}).nullable().optional(),
|
|
3391
3394
|
teamMemberSelection: z.discriminatedUnion("kind", [
|
|
3392
3395
|
z.object({ kind: z.literal("any") }),
|
|
3393
3396
|
z.object({
|
|
@@ -7123,12 +7126,16 @@ function parseOrderItemMetadata(kind, raw) {
|
|
|
7123
7126
|
timezone,
|
|
7124
7127
|
customerEmail,
|
|
7125
7128
|
customerName,
|
|
7129
|
+
...parseAppointmentPurchaseMetadata(raw),
|
|
7126
7130
|
...typeof raw.handAddedFingerprint === "string" ? { handAddedFingerprint: raw.handAddedFingerprint } : {}
|
|
7127
7131
|
});
|
|
7128
7132
|
}
|
|
7129
7133
|
case "membership": return parseMembershipOrderItemMetadata(raw, parseCheckoutLineMetadata(raw), commissionMetadata.value);
|
|
7130
7134
|
}
|
|
7131
7135
|
}
|
|
7136
|
+
function parseAppointmentPurchaseMetadata(raw) {
|
|
7137
|
+
return typeof raw.purchasePassId === "string" ? { purchasePassId: raw.purchasePassId } : {};
|
|
7138
|
+
}
|
|
7132
7139
|
|
|
7133
7140
|
//#endregion
|
|
7134
7141
|
//#region ../commerce/src/purchase/orderListFilters.ts
|
|
@@ -8640,6 +8647,14 @@ const SITE_API_KEY_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
8640
8647
|
//#endregion
|
|
8641
8648
|
//#region ../api/src/siteManagementEndpointDefinitions.ts
|
|
8642
8649
|
const SITE_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
8650
|
+
switchDemoView: {
|
|
8651
|
+
path: "/sites/{siteId}/demo/view",
|
|
8652
|
+
method: "POST",
|
|
8653
|
+
auth: "user",
|
|
8654
|
+
responseKind: "json",
|
|
8655
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
8656
|
+
errors: []
|
|
8657
|
+
},
|
|
8643
8658
|
createSite: {
|
|
8644
8659
|
path: "/sites/manage",
|
|
8645
8660
|
method: "POST",
|
|
@@ -11161,6 +11176,21 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
11161
11176
|
errors: ["resource:not_found", "server:internal_error"],
|
|
11162
11177
|
responseKind: "json"
|
|
11163
11178
|
},
|
|
11179
|
+
updateBookingEmbed: {
|
|
11180
|
+
path: "/sites/{siteId}/settings/embed",
|
|
11181
|
+
method: "POST",
|
|
11182
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
11183
|
+
auth: "user",
|
|
11184
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
11185
|
+
errors: [
|
|
11186
|
+
"auth:forbidden",
|
|
11187
|
+
"validation:invalid_input",
|
|
11188
|
+
"resource:not_found",
|
|
11189
|
+
"resource:conflict",
|
|
11190
|
+
"server:internal_error"
|
|
11191
|
+
],
|
|
11192
|
+
responseKind: "json"
|
|
11193
|
+
},
|
|
11164
11194
|
updateFooterCredit: {
|
|
11165
11195
|
path: "/sites/{siteId}/settings/footer-credit",
|
|
11166
11196
|
method: "POST",
|
|
@@ -13499,6 +13529,30 @@ const ENDPOINT_DEFINITIONS = {
|
|
|
13499
13529
|
auth: "user",
|
|
13500
13530
|
responseKind: "json"
|
|
13501
13531
|
},
|
|
13532
|
+
archiveVenue: {
|
|
13533
|
+
path: "/sites/{siteId}/bookings/venues/{venueId}/archive",
|
|
13534
|
+
method: "POST",
|
|
13535
|
+
tags: [
|
|
13536
|
+
"site-{siteId}",
|
|
13537
|
+
"venues-{siteId}",
|
|
13538
|
+
"venue-{venueId}"
|
|
13539
|
+
],
|
|
13540
|
+
auth: "user",
|
|
13541
|
+
responseKind: "json",
|
|
13542
|
+
errors: ["resource:not_found"]
|
|
13543
|
+
},
|
|
13544
|
+
restoreVenue: {
|
|
13545
|
+
path: "/sites/{siteId}/bookings/venues/{venueId}/restore",
|
|
13546
|
+
method: "POST",
|
|
13547
|
+
tags: [
|
|
13548
|
+
"site-{siteId}",
|
|
13549
|
+
"venues-{siteId}",
|
|
13550
|
+
"venue-{venueId}"
|
|
13551
|
+
],
|
|
13552
|
+
auth: "user",
|
|
13553
|
+
responseKind: "json",
|
|
13554
|
+
errors: ["resource:not_found"]
|
|
13555
|
+
},
|
|
13502
13556
|
createVenue: {
|
|
13503
13557
|
path: "/sites/{siteId}/bookings/venues",
|
|
13504
13558
|
method: "POST",
|
|
@@ -15469,8 +15523,14 @@ const sdkManagementEventOccurrenceSchema = z.object({
|
|
|
15469
15523
|
provenance: z.enum([
|
|
15470
15524
|
"manual",
|
|
15471
15525
|
"recurrence_generated",
|
|
15472
|
-
"recurrence_exception"
|
|
15526
|
+
"recurrence_exception",
|
|
15527
|
+
"recurrence_moved"
|
|
15473
15528
|
]),
|
|
15529
|
+
originalSlot: z.object({
|
|
15530
|
+
startsAt: timestampSchema,
|
|
15531
|
+
localDate: z.iso.date(),
|
|
15532
|
+
timeZone: z.string().min(1)
|
|
15533
|
+
}).nullable().optional(),
|
|
15474
15534
|
capacityOverride: z.number().int().nonnegative().nullable(),
|
|
15475
15535
|
capacity: z.number().int().nonnegative().nullable(),
|
|
15476
15536
|
confirmedPlaces: z.number().int().nonnegative().optional(),
|
|
@@ -17038,7 +17098,10 @@ const sdkPatchPageBlockResponseSchema = z.object({
|
|
|
17038
17098
|
const sdkUpsertNavigationMenuResponseSchema = sdkCommandApplicationResultSchema(sdkManagementNavigationMenuSchema);
|
|
17039
17099
|
const sdkUpsertSettingsResponseSchema = sdkCommandApplicationResultSchema(sdkPullSettingsSchema);
|
|
17040
17100
|
const sdkUpsertFormResponseSchema = sdkCommandApplicationResultSchema(sdkPullFormSchemaWithId);
|
|
17041
|
-
const sdkUpsertVenueResponseSchema = sdkCommandApplicationResultSchema(sdkPullVenueSchema.extend({
|
|
17101
|
+
const sdkUpsertVenueResponseSchema = sdkCommandApplicationResultSchema(sdkPullVenueSchema.extend({
|
|
17102
|
+
id: sdkIdentifierSchema,
|
|
17103
|
+
archivedAt: sdkTimestampSchema$1.nullable()
|
|
17104
|
+
})).extend({ warning: z.object({
|
|
17042
17105
|
code: z.literal("venue_public_refresh_delayed"),
|
|
17043
17106
|
message: z.string()
|
|
17044
17107
|
}).optional() });
|
|
@@ -22544,6 +22607,12 @@ function getEventDeliveryModeLabel(mode) {
|
|
|
22544
22607
|
}
|
|
22545
22608
|
}
|
|
22546
22609
|
|
|
22610
|
+
//#endregion
|
|
22611
|
+
//#region ../api/src/participantMessaging.ts
|
|
22612
|
+
/** Shared wire/editor bounds; sending and draft preparation use the same limits. */
|
|
22613
|
+
const PARTICIPANT_MESSAGE_SUBJECT_MAX_LENGTH = 140;
|
|
22614
|
+
const PARTICIPANT_MESSAGE_BODY_MAX_LENGTH = 2e4;
|
|
22615
|
+
|
|
22547
22616
|
//#endregion
|
|
22548
22617
|
//#region ../api/src/bookings.ts
|
|
22549
22618
|
const BOOKING_QUESTION_REQUIREMENT_SCOPES = ["before_booking_booking_level", "after_booking_due_by_participant"];
|
|
@@ -24572,6 +24641,12 @@ const SETTINGS_SURFACE_POLICIES = {
|
|
|
24572
24641
|
pageAccessPolicy: ownerPolicy,
|
|
24573
24642
|
actionIds: []
|
|
24574
24643
|
},
|
|
24644
|
+
"settings.embed": {
|
|
24645
|
+
surfaceId: "settings.embed",
|
|
24646
|
+
navVisibilityPolicy: administratorPolicy,
|
|
24647
|
+
pageAccessPolicy: administratorPolicy,
|
|
24648
|
+
actionIds: []
|
|
24649
|
+
},
|
|
24575
24650
|
"settings.fonts": {
|
|
24576
24651
|
surfaceId: "settings.fonts",
|
|
24577
24652
|
navVisibilityPolicy: editorPolicy,
|
|
@@ -24779,6 +24854,22 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
|
|
|
24779
24854
|
],
|
|
24780
24855
|
stage: "ga"
|
|
24781
24856
|
},
|
|
24857
|
+
{
|
|
24858
|
+
id: "settings.embed",
|
|
24859
|
+
label: "Add to your website",
|
|
24860
|
+
keywords: [
|
|
24861
|
+
"embed",
|
|
24862
|
+
"iframe",
|
|
24863
|
+
"widget",
|
|
24864
|
+
"squarespace",
|
|
24865
|
+
"wix",
|
|
24866
|
+
"wordpress",
|
|
24867
|
+
"webflow",
|
|
24868
|
+
"own website"
|
|
24869
|
+
],
|
|
24870
|
+
stage: "ga",
|
|
24871
|
+
featureFlag: "isHostedBookingPage"
|
|
24872
|
+
},
|
|
24782
24873
|
{
|
|
24783
24874
|
id: "settings.fonts",
|
|
24784
24875
|
label: "Fonts",
|
|
@@ -25473,11 +25564,7 @@ function createBearerAccountApi(token, baseUrl) {
|
|
|
25473
25564
|
|
|
25474
25565
|
//#endregion
|
|
25475
25566
|
//#region ../api/src/navigation/dashboardDemoNav.ts
|
|
25476
|
-
const hiddenDemoMoneyNavIds = new Set([
|
|
25477
|
-
"money.gifting",
|
|
25478
|
-
"money.financial",
|
|
25479
|
-
"money.settings"
|
|
25480
|
-
]);
|
|
25567
|
+
const hiddenDemoMoneyNavIds = new Set(["money.gifting", "money.settings"]);
|
|
25481
25568
|
const hiddenDemoShopNavIds = new Set(["shop.orders"]);
|
|
25482
25569
|
function isDemoMoneyNavSurfaceVisible(mode, surfaceId) {
|
|
25483
25570
|
return !isDemoDashboardUiRestricted(mode) || !hiddenDemoMoneyNavIds.has(surfaceId);
|