riverbankcms 0.40.0 → 0.40.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 +1 -1
- package/dist/cli/index.mjs +568 -80
- package/dist/{entryCommands-DC808i9P.mjs → entryCommands-X7gsvEhS.mjs} +20 -202
- package/dist/{eventUpsertInputSchema-DkVayfO1.mjs → eventUpsertInputSchema-DzMuFAid.mjs} +2 -2
- package/dist/load-config-C9iXzX97.mjs +2 -0
- package/dist/{load-config-BHD3Ugbc.mjs → load-config-DHwkmd3-.mjs} +1 -1
- package/dist/{plan-DPzqAUzU.mjs → plan-C5yEQouF.mjs} +1 -1
- package/dist/scaffold/index.mjs +1 -1
- package/dist/{sdk-event-upsert-Ch_VUpkB.mjs → sdk-event-upsert-Bl8Z95H0.mjs} +175 -95
- package/dist/{src-C5150tVc.mjs → src-oeP1NG4L.mjs} +29 -6
- package/dist/testing.mjs +1 -1
- package/package.json +1 -1
- package/dist/load-config-DZyvZVAv.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Br as createCommandRef, Cr as asAppearancePresetId, Dr as asDesignBlockId, Dt as resolveMediaIdentifier, Fr as compareEntrySlug,
|
|
3
|
-
import { A as getPublicReadCachePolicy, Ar as
|
|
4
|
-
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-
|
|
2
|
+
import { At as getExtensionForMimeType, Br as createCommandRef, Cr as asAppearancePresetId, Ct as buildMediaIdentifierFromFilename, Dr as asDesignBlockId, Dt as slugifyMediaIdentifier, Et as resolveMediaIdentifier, Fr as compareEntrySlug, Ft as FILE_SIZE_LIMITS, H as themeSchema, Ir as bookingQuestionAttachmentSchema, It as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, Jr as createSiteCommandSiteRef, L as footerModeSchema, Mn as eventBookingOfferIntentSchema, Mr as asPageFlowPresetId, Nr as asSiteStyleId, Nt as normalizeAmbiguousStoragePathForSite, Or as asDesignBoundaryId, Pr as makeBoundaryId, Vr as createContentEntryRef, Vt as footerPreferencesSchema, Wn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Zr as slugPart, ar as asHeaderLayoutId, b as getSiteCommandMetadata, bt as isDisplayMediaKind, cr as footerLookIdValues, en as buttonStyleSelectionSchema, er as ICON_PICKER_PRESETS, h as parseAndPlanCommandBatchForTypes, ir as asFooterLookId, jn as require_dist, jt as getMimeType, k as headerPreferencesSchema, l as resolvePageUpsertSeo, lr as headerLayoutIdValues, lt as getDirectImageUrlForSiteScopedPath, m as createDryRunReport, mr as SYSTEM_BLOCK_KINDS, n as sdkCourseBookingSettingsSchema, or as asHeaderStyleId, ot as parseAspectRatioValue, p as stableStringify, r as sdkEventOccurrenceInputSchema, rr as SUPPORTED_LOADER_ENDPOINTS, s as eventVisibilitySchema, ur as headerStyleIdValues, v as evaluateSiteCommandBatchExposure, w as entryIdentifierForCommand, xt as mediaTypeDiscriminants, y as evaluateSiteCommandExposure, yt as PUBLIC_FILE_FIELD_KINDS } from "./sdk-event-upsert-Bl8Z95H0.mjs";
|
|
3
|
+
import { A as getPublicReadCachePolicy, Ar as unsafeAsOrderPaymentReceiptId, E as SURFACE_EVENT_PRESET_VALUES, Fr as parseSiteId, Gr as unsafeAsEventSeriesId, H as exposeSecret, Hn as parseCurrencyCode, In as parsePositiveCents, Ir as parseUserId, It as omitZeroAmountFutureRows, Jr as err, Kr as unsafeAsOccurrenceId, Lt as splitAmountWithRemainderInFirst, M as publicReadBatchFreshnessSeconds, Mt as clampConfiguredAmount, N as publicReadFreshnessSeconds, Nt as getBookingInstalmentDepositRefundability, O as PUBLIC_CONTENT_FRESHNESS_SECONDS, Or as unsafeAsOrderFlexibleBalanceContractId, Pr as parseApiKeyId, Rn as toNonNegativeCents, Rt as businessCancellationRefusalCodes, S as resolveSiteVerticalBookingConfig, U as parseManagementKey, Un as assertNever$3, V as createSecret, Vr as parseEventSeriesRegistrationId, Vt as resolveFlexibleBalanceInitialPaymentCents, Wr as unsafeAsEventOfferingId, Xn as parseClientArrangementId, Yn as parseAppointmentId, Yr as ok, _t as locationValueSchema, b as parseVerticalId, er as parseSiteTermsVersionId, et as parseMailingListProviderScope, hn as resolveBookingTimeZoneId, i as committedWriteProofSchema, in as formatLocalScheduleDate, j as isPublicReadEndpoint, jr as parseEditorSessionGeneration, jt as addIntervalPreservingMonthAnchor, k as PUBLIC_RENDERED_AVAILABILITY_FRESHNESS_SECONDS, kr as unsafeAsOrderPaymentPlanId, kt as validateBookingPaymentOptionKinds, mt as stableJsonStringify, n as OFFLINE_PAYMENT_METHODS, nn as addLocalScheduleDays, qn as unsafeAsGiftingOfferId, qt as formatDate, s as APPOINTMENT_REQUEST_OUTCOME_VALUES, sn as getLocalScheduleDate, tt as parseFooterCompositionV1, un as parseBookingLocalDate, v as areConfiguredBookingVerticalConfigsEqual, w as EVENT_PRESET_VALUES, wt as trimmedStringOrNull, x as parseVerticalPresetId, xt as publicLocationSchema, y as canonicalizeConfiguredBookingVerticalConfig, zr as parseAttendeeId, zt as scheduleBookingReasonCodes } from "./src-oeP1NG4L.mjs";
|
|
4
|
+
import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-DHwkmd3-.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { Argument, Command, Option } from "commander";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1619,7 +1619,7 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
1619
1619
|
}), z.object({ kind: z.literal("kept") })])
|
|
1620
1620
|
}),
|
|
1621
1621
|
z.object({
|
|
1622
|
-
outcome: z.
|
|
1622
|
+
outcome: z.enum(["cancelled", "cancelling"]),
|
|
1623
1623
|
appointmentId: z.string(),
|
|
1624
1624
|
startAt: z.string(),
|
|
1625
1625
|
endAt: z.string(),
|
|
@@ -1963,199 +1963,6 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1963
1963
|
"server:internal_error"
|
|
1964
1964
|
]
|
|
1965
1965
|
},
|
|
1966
|
-
createTeamMemberProfile: {
|
|
1967
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
1968
|
-
method: "POST",
|
|
1969
|
-
auth: "user",
|
|
1970
|
-
responseKind: "json",
|
|
1971
|
-
errors: [
|
|
1972
|
-
"validation:invalid_input",
|
|
1973
|
-
"resource:not_found",
|
|
1974
|
-
"resource:conflict",
|
|
1975
|
-
"server:internal_error"
|
|
1976
|
-
]
|
|
1977
|
-
},
|
|
1978
|
-
resolveTeamMemberProfileEditorOwner: {
|
|
1979
|
-
path: "/sites/{siteId}/bookings/profile-editor/{entryId}/owner",
|
|
1980
|
-
method: "GET",
|
|
1981
|
-
auth: "user",
|
|
1982
|
-
responseKind: "json",
|
|
1983
|
-
errors: [
|
|
1984
|
-
"auth:forbidden",
|
|
1985
|
-
"resource:not_found",
|
|
1986
|
-
"server:internal_error"
|
|
1987
|
-
]
|
|
1988
|
-
},
|
|
1989
|
-
getTeamMemberProfileContent: {
|
|
1990
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}",
|
|
1991
|
-
method: "GET",
|
|
1992
|
-
auth: "user",
|
|
1993
|
-
responseKind: "json",
|
|
1994
|
-
errors: [
|
|
1995
|
-
"auth:forbidden",
|
|
1996
|
-
"resource:not_found",
|
|
1997
|
-
"server:internal_error"
|
|
1998
|
-
]
|
|
1999
|
-
},
|
|
2000
|
-
listTeamMemberProfileContentSlots: {
|
|
2001
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/slots",
|
|
2002
|
-
method: "GET",
|
|
2003
|
-
auth: "user",
|
|
2004
|
-
responseKind: "json",
|
|
2005
|
-
errors: [
|
|
2006
|
-
"auth:forbidden",
|
|
2007
|
-
"resource:not_found",
|
|
2008
|
-
"server:internal_error"
|
|
2009
|
-
]
|
|
2010
|
-
},
|
|
2011
|
-
getTeamMemberTemplatePreview: {
|
|
2012
|
-
path: "/sites/{siteId}/bookings/profile-editor/{entryId}/template-preview",
|
|
2013
|
-
method: "GET",
|
|
2014
|
-
auth: "user",
|
|
2015
|
-
responseKind: "json",
|
|
2016
|
-
errors: [
|
|
2017
|
-
"auth:forbidden",
|
|
2018
|
-
"resource:not_found",
|
|
2019
|
-
"server:internal_error"
|
|
2020
|
-
]
|
|
2021
|
-
},
|
|
2022
|
-
updateTeamMemberProfilePolicy: {
|
|
2023
|
-
path: "/sites/{siteId}/bookings/resources/profile-policy",
|
|
2024
|
-
method: "PUT",
|
|
2025
|
-
auth: "user",
|
|
2026
|
-
responseKind: "json",
|
|
2027
|
-
errors: ["validation:invalid_input", "server:internal_error"]
|
|
2028
|
-
},
|
|
2029
|
-
updateTeamMemberProfileContent: {
|
|
2030
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/content",
|
|
2031
|
-
method: "PUT",
|
|
2032
|
-
tags: [
|
|
2033
|
-
"site-{siteId}",
|
|
2034
|
-
"content-{siteId}-team-member",
|
|
2035
|
-
"content-entry-{entryId}"
|
|
2036
|
-
],
|
|
2037
|
-
auth: "user",
|
|
2038
|
-
responseKind: "json",
|
|
2039
|
-
errors: [
|
|
2040
|
-
"validation:invalid_input",
|
|
2041
|
-
"resource:not_found",
|
|
2042
|
-
"resource:conflict",
|
|
2043
|
-
"server:internal_error"
|
|
2044
|
-
]
|
|
2045
|
-
},
|
|
2046
|
-
publishTeamMemberProfile: {
|
|
2047
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/publish",
|
|
2048
|
-
method: "POST",
|
|
2049
|
-
tags: [
|
|
2050
|
-
"site-{siteId}",
|
|
2051
|
-
"content-{siteId}-team-member",
|
|
2052
|
-
"content-entry-{entryId}"
|
|
2053
|
-
],
|
|
2054
|
-
auth: "user",
|
|
2055
|
-
responseKind: "json",
|
|
2056
|
-
errors: [
|
|
2057
|
-
"validation:invalid_input",
|
|
2058
|
-
"resource:not_found",
|
|
2059
|
-
"server:internal_error"
|
|
2060
|
-
]
|
|
2061
|
-
},
|
|
2062
|
-
discardTeamMemberProfileDraft: {
|
|
2063
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/discard",
|
|
2064
|
-
method: "POST",
|
|
2065
|
-
tags: [
|
|
2066
|
-
"site-{siteId}",
|
|
2067
|
-
"content-{siteId}-team-member",
|
|
2068
|
-
"content-entry-{entryId}"
|
|
2069
|
-
],
|
|
2070
|
-
auth: "user",
|
|
2071
|
-
responseKind: "json",
|
|
2072
|
-
errors: [
|
|
2073
|
-
"validation:invalid_input",
|
|
2074
|
-
"resource:not_found",
|
|
2075
|
-
"resource:conflict",
|
|
2076
|
-
"server:internal_error"
|
|
2077
|
-
]
|
|
2078
|
-
},
|
|
2079
|
-
unpublishTeamMemberProfile: {
|
|
2080
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/unpublish",
|
|
2081
|
-
method: "POST",
|
|
2082
|
-
tags: [
|
|
2083
|
-
"site-{siteId}",
|
|
2084
|
-
"content-{siteId}-team-member",
|
|
2085
|
-
"content-entry-{entryId}"
|
|
2086
|
-
],
|
|
2087
|
-
auth: "user",
|
|
2088
|
-
responseKind: "json",
|
|
2089
|
-
errors: [
|
|
2090
|
-
"validation:invalid_input",
|
|
2091
|
-
"resource:not_found",
|
|
2092
|
-
"resource:conflict",
|
|
2093
|
-
"server:internal_error"
|
|
2094
|
-
]
|
|
2095
|
-
},
|
|
2096
|
-
draftTeamMemberProfileBio: {
|
|
2097
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/bio-draft",
|
|
2098
|
-
method: "POST",
|
|
2099
|
-
auth: "user",
|
|
2100
|
-
responseKind: "json",
|
|
2101
|
-
errors: [
|
|
2102
|
-
"auth:forbidden",
|
|
2103
|
-
"resource:not_found",
|
|
2104
|
-
"server:internal_error"
|
|
2105
|
-
],
|
|
2106
|
-
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
2107
|
-
},
|
|
2108
|
-
scheduleTeamMemberProfile: {
|
|
2109
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/schedule",
|
|
2110
|
-
method: "POST",
|
|
2111
|
-
tags: [
|
|
2112
|
-
"site-{siteId}",
|
|
2113
|
-
"content-{siteId}-team-member",
|
|
2114
|
-
"content-entry-{entryId}"
|
|
2115
|
-
],
|
|
2116
|
-
auth: "user",
|
|
2117
|
-
responseKind: "json",
|
|
2118
|
-
errors: [
|
|
2119
|
-
"validation:invalid_input",
|
|
2120
|
-
"resource:not_found",
|
|
2121
|
-
"resource:conflict",
|
|
2122
|
-
"server:internal_error"
|
|
2123
|
-
]
|
|
2124
|
-
},
|
|
2125
|
-
cancelScheduledTeamMemberProfile: {
|
|
2126
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/schedule",
|
|
2127
|
-
method: "DELETE",
|
|
2128
|
-
tags: [
|
|
2129
|
-
"site-{siteId}",
|
|
2130
|
-
"content-{siteId}-team-member",
|
|
2131
|
-
"content-entry-{entryId}"
|
|
2132
|
-
],
|
|
2133
|
-
auth: "user",
|
|
2134
|
-
responseKind: "json",
|
|
2135
|
-
errors: [
|
|
2136
|
-
"validation:invalid_input",
|
|
2137
|
-
"resource:not_found",
|
|
2138
|
-
"resource:conflict",
|
|
2139
|
-
"server:internal_error"
|
|
2140
|
-
]
|
|
2141
|
-
},
|
|
2142
|
-
updateTeamMemberProfileRouteMetadata: {
|
|
2143
|
-
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/routes/{routeId}/metadata",
|
|
2144
|
-
method: "PATCH",
|
|
2145
|
-
tags: [
|
|
2146
|
-
TAG_TEMPLATES.site,
|
|
2147
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
2148
|
-
TAG_TEMPLATES.routeById
|
|
2149
|
-
],
|
|
2150
|
-
auth: "user",
|
|
2151
|
-
responseKind: "json",
|
|
2152
|
-
errors: [
|
|
2153
|
-
"validation:invalid_input",
|
|
2154
|
-
"resource:not_found",
|
|
2155
|
-
"resource:conflict",
|
|
2156
|
-
"server:internal_error"
|
|
2157
|
-
]
|
|
2158
|
-
},
|
|
2159
1966
|
listAppointmentServices: {
|
|
2160
1967
|
path: "/sites/{siteId}/bookings/services",
|
|
2161
1968
|
method: "GET",
|
|
@@ -10437,6 +10244,7 @@ const API_ENDPOINTS = {
|
|
|
10437
10244
|
"validation:invalid_input",
|
|
10438
10245
|
"auth:forbidden",
|
|
10439
10246
|
"resource:not_found",
|
|
10247
|
+
"resource:conflict",
|
|
10440
10248
|
"server:internal_error"
|
|
10441
10249
|
]
|
|
10442
10250
|
},
|
|
@@ -16810,6 +16618,12 @@ const mediaUsageLocationSchema = z.discriminatedUnion("kind", [
|
|
|
16810
16618
|
eventId: identifierSchema.nullable(),
|
|
16811
16619
|
eventTitle: z.string()
|
|
16812
16620
|
}),
|
|
16621
|
+
z.object({
|
|
16622
|
+
kind: z.literal("pageSection"),
|
|
16623
|
+
siteId: identifierSchema,
|
|
16624
|
+
sectionId: identifierSchema,
|
|
16625
|
+
sectionLabel: z.string()
|
|
16626
|
+
}),
|
|
16813
16627
|
z.object({
|
|
16814
16628
|
kind: z.literal("newsletterCampaign"),
|
|
16815
16629
|
siteId: identifierSchema,
|
|
@@ -21913,6 +21727,14 @@ function mapEnvironmentTargetOutcomeJson(outcome, formatApplied, formatApplicati
|
|
|
21913
21727
|
function mapEnvironmentExecutionOutcomesJson(execution, formatApplied, formatApplicationFailed) {
|
|
21914
21728
|
return execution.outcomes.map((outcome) => mapEnvironmentTargetOutcomeJson(outcome, formatApplied, formatApplicationFailed));
|
|
21915
21729
|
}
|
|
21730
|
+
const PAGE_DESTINATION_KINDS = ["cms", ...[
|
|
21731
|
+
"system_event",
|
|
21732
|
+
"system_service",
|
|
21733
|
+
"system_team_member"
|
|
21734
|
+
]];
|
|
21735
|
+
function isPageDestinationKind(value) {
|
|
21736
|
+
return PAGE_DESTINATION_KINDS.some((kind) => kind === value);
|
|
21737
|
+
}
|
|
21916
21738
|
// ../api/src/pageReadResponseCache.ts
|
|
21917
21739
|
function pageReadPolicy(siteId, policy) {
|
|
21918
21740
|
return policy === "retry" ? buildPageReadRetryPolicy(siteId) : buildPageReadCachePolicy(siteId, policy);
|
|
@@ -21921,11 +21743,7 @@ function isRecord$6(value) {
|
|
|
21921
21743
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21922
21744
|
}
|
|
21923
21745
|
function isResolvedPage(page) {
|
|
21924
|
-
return page?.kind === "resolved" && typeof page.requestedPath === "string" && (page.dependencies === "content" || page.dependencies === "availability") && isRecord$6(page.result) &&
|
|
21925
|
-
"cms",
|
|
21926
|
-
"system_event",
|
|
21927
|
-
"system_service"
|
|
21928
|
-
].includes(String(page.result.kind));
|
|
21746
|
+
return page?.kind === "resolved" && typeof page.requestedPath === "string" && (page.dependencies === "content" || page.dependencies === "availability") && isRecord$6(page.result) && isPageDestinationKind(page.result.kind);
|
|
21929
21747
|
}
|
|
21930
21748
|
/**
|
|
21931
21749
|
* The key `serializeSurfaceTree` (theme-core) wraps a response in when it carries surface revisions. This package
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { In as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-
|
|
3
|
-
import { w as EVENT_PRESET_VALUES } from "./src-
|
|
2
|
+
import { In as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-Bl8Z95H0.mjs";
|
|
3
|
+
import { w as EVENT_PRESET_VALUES } from "./src-oeP1NG4L.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
// src/commands/eventUpsertInputSchema.ts
|
|
6
6
|
const eventScheduleInputSchema = z.object({
|
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "url";
|
|
|
8
8
|
var peerDependencies = { "@riverbankcms/sdk": ">=0.157.0 <1.0.0" };
|
|
9
9
|
// src/version.ts
|
|
10
10
|
/** The package manifest is the source-run fallback; builds inject this value. */
|
|
11
|
-
const CLI_VERSION = "0.40.
|
|
11
|
+
const CLI_VERSION = "0.40.1";
|
|
12
12
|
/**
|
|
13
13
|
* The CLI's SDK peer range is bundled from the CLI manifest alongside its
|
|
14
14
|
* 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 { Fr as parseSiteId, Jr as err, Yr as ok } from "./src-oeP1NG4L.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,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { l as deriveGeneratedPackageRanges, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath, d as loadGeneratedPackageRanges, r as preflightScaffoldPlan, i as preflightScaffoldTargets, a as prepareScaffoldExecution, o as writeScaffoldFiles } from "../plan-
|
|
2
|
+
export { l as deriveGeneratedPackageRanges, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath, d as loadGeneratedPackageRanges, r as preflightScaffoldPlan, i as preflightScaffoldTargets, a as prepareScaffoldExecution, o as writeScaffoldFiles } from "../plan-C5yEQouF.mjs";
|