riverbankcms 0.16.0 → 0.17.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.
@@ -1778,10 +1778,21 @@ function isSettleableOrderInstalmentPlanStatus(status) {
1778
1778
  function isSettleableFlexibleBalanceContractStatus(status) {
1779
1779
  return isLiveFlexibleBalanceContractStatus(status) && !CONTRACT_COLLECTION_IN_FLIGHT[status];
1780
1780
  }
1781
- function decideContractClosureForFailedOrder(status) {
1781
+ /** Shared reason for closing either form of booking payment terms. */
1782
+ const PAYMENT_TERMS_CLOSURE_REASONS = ["cancelled", "refunded"];
1783
+ /** Refund closure records its outcome even when collection has already ended. */
1784
+ function decideContractClosure(status, reason) {
1785
+ if (reason === "refunded") {
1786
+ return status === "refunded" ? { kind: "keep" } : {
1787
+ kind: "close",
1788
+ from: status,
1789
+ to: "refunded"
1790
+ };
1791
+ }
1782
1792
  return isLiveFlexibleBalanceContractStatus(status) ? {
1783
1793
  kind: "close",
1784
- from: status
1794
+ from: status,
1795
+ to: "closed_order_failed"
1785
1796
  } : { kind: "keep" };
1786
1797
  }
1787
1798
 
@@ -6254,7 +6265,6 @@ const SECRET_KINDS = [
6254
6265
  "webhook-secret",
6255
6266
  "oauth-access-token",
6256
6267
  "oauth-refresh-token",
6257
- "preview-session-refresh-token",
6258
6268
  "oauth-authorization-code",
6259
6269
  "oauth-pkce-verifier",
6260
6270
  "registrar-epp-code"
@@ -7418,4 +7428,4 @@ function mergeBag(stored, patch, options) {
7418
7428
  }
7419
7429
 
7420
7430
  //#endregion
7421
- export { parseBookingTimeZone as $, unsafeAsEventSeriesId as $t, footerNavigationLayouts as A, parseCurrencyCode as At, buildBookingUtcDateWindow as B, parseRetiredCourseId as Bt, parseMailingListContentVersionId as C, isNonNegativeWholeCents as Ct, sameMailingListPlacementTargeting as D, unsafeAsNonNegativeCents as Dt, planMailingListChoicePresentation as E, toNonNegativeCents as Et, assertAllowedPublicUrl as F, parseDatedOfferingCapacityHoldId as Ft, formatLocalScheduleTime as G, unsafeAsBookingSessionId as Gt, formatBookingDateParts as H, parseUserId as Ht, isPresent as I, parseEventSeriesId as It, getLocalScheduleTime as J, unsafeAsDemoCapability as Jt, getBookingLocalDateKey as K, unsafeAsCheckoutLineId as Kt, normalizeLocationAddressText as L, parseMediaAssetId as Lt, parseMailingListPlacementTargeting as M, parseApiKeyId as Mt, isCanonicalRichTextDoc as N, parseCustomerId as Nt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as O, unsafeAsPositiveCents as Ot, parsePublicContactDetails as P, parseDatedOfferingCapacityHoldAuditRef as Pt, toScheduledBookingDateTime as Q, unsafeAsEventOfferingId as Qt, toLocationCoordinates as R, parseMembershipId as Rt, parseMailingListBlockId as S, mapNonEmptyArray as St, parseMailingListRuntimeContext as T, toCents as Tt, formatBookingTime as U, unsafeAsAppointmentResourceId as Ut, formatBookingDate as V, parseSiteId as Vt, formatLocalScheduleDate as W, unsafeAsBookingRequirementId as Wt, toBookingTimeZone as X, unsafeAsEntitlementId as Xt, parseUtcIsoDateTimeString as Y, unsafeAsDetectedMimeType as Yt, toScheduledBookingDateRange as Z, unsafeAsEventInstanceId as Zt, createSecret as _, unsafeAsUserId as _n, publicEventPricingDisplay as _t, parseVerticalId as a, unsafeAsPositiveByteCount as an, clampConfiguredAmount as at, stableJsonStringify as b, resolvePricingOptionsPriceDisplay as bt, DEFAULT_EVENT_TYPE_PRESETS as c, unsafeAsProductId as cn, omitZeroAmountFutureRows as ct, SURFACE_EVENT_PRESET_VALUES as d, unsafeAsSiteId as dn, resolveFlexibleBalanceInitialPaymentCents as dt, unsafeAsFileChecksumSha256 as en, validateBookingPaymentOptionKinds as et, WHOLE_SERIES_EVENT_PRESET_VALUES as f, unsafeAsSiteScopedStoragePath as fn, parseEventPageSurfaceSubject as ft, resolveWholeSeriesBookingPhase as g, unsafeAsUploadSessionId as gn, publicEventPricingCurrency as gt, orderedLiveRunSessions as h, unsafeAsStoragePath as hn, isPublicEventPricingOptionDisplayable as ht, canonicalizeConfiguredBookingVerticalConfig as i, unsafeAsPassId as in, addIntervalPreservingMonthAnchor as it, parseFooterCompositionV1 as j, assertNever as jt, parseMailingListProviderScope as k, formatCurrencyAmount as kt, EVENT_PRESET_VALUES as l, unsafeAsSafeDownloadFilename as ln, splitAmountWithRemainderInFirst as lt, CANCELLED_SESSION_STATUS as m, unsafeAsStorageBucketName as mn, formatEventPricing as mt, NAVIGATION_LOCATIONS as n, unsafeAsOccurrenceId as nn, isSettleableFlexibleBalanceContractStatus as nt, parseVerticalPresetId as o, unsafeAsPositiveSeconds as on, getBookingInstalmentDepositRefundability as ot, publicReadFreshnessSeconds as p, unsafeAsStaffMemberId as pn, formatBookingPriceDisplay as pt, getLocalScheduleDate as q, unsafeAsDeclaredMimeType as qt, areConfiguredBookingVerticalConfigsEqual as r, unsafeAsOriginalFilename as rn, isSettleableOrderInstalmentPlanStatus as rt, resolveSiteVerticalBookingConfig as s, unsafeAsPricingOptionId as sn, getBookingInstalmentProtectedDepositAmountCents as st, resolveEventCatalogue as t, unsafeAsMediaAssetId as tn, isLiveOrderInstalmentPlanStatus as tt, ORDINARY_EVENT_PRESET_VALUES as u, unsafeAsSiteFontId as un, resolveFlexibleBalanceDueAt as ut, exposeSecret as v, err as vn, publicEventPricingType as vt, parseMailingListSignedSourceToken as w, parseNonNegativeCents as wt, buildMailingListSignupBlockSourceRef as x, fromArray as xt, parseManagementKey as y, ok as yn, resolveExactOrFreePriceDisplay as yt, selectCategoryView as z, parsePageId as zt };
7431
+ export { parseBookingTimeZone as $, unsafeAsEventOfferingId as $t, footerNavigationLayouts as A, parseCurrencyCode as At, buildBookingUtcDateWindow as B, parsePageId as Bt, parseMailingListContentVersionId as C, isNonNegativeWholeCents as Ct, sameMailingListPlacementTargeting as D, unsafeAsNonNegativeCents as Dt, planMailingListChoicePresentation as E, toNonNegativeCents as Et, assertAllowedPublicUrl as F, parseDatedOfferingCapacityHoldAuditRef as Ft, formatLocalScheduleTime as G, unsafeAsBookingRequirementId as Gt, formatBookingDateParts as H, parseSiteId as Ht, isPresent as I, parseDatedOfferingCapacityHoldId as It, getLocalScheduleTime as J, unsafeAsDeclaredMimeType as Jt, getBookingLocalDateKey as K, unsafeAsBookingSessionId as Kt, normalizeLocationAddressText as L, parseEventSeriesId as Lt, parseMailingListPlacementTargeting as M, formatDurationUnitLabel as Mt, isCanonicalRichTextDoc as N, parseApiKeyId as Nt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as O, unsafeAsPositiveCents as Ot, parsePublicContactDetails as P, parseCustomerId as Pt, toScheduledBookingDateTime as Q, unsafeAsEventInstanceId as Qt, toLocationCoordinates as R, parseMediaAssetId as Rt, parseMailingListBlockId as S, mapNonEmptyArray as St, parseMailingListRuntimeContext as T, toCents as Tt, formatBookingTime as U, parseUserId as Ut, formatBookingDate as V, parseRetiredCourseId as Vt, formatLocalScheduleDate as W, unsafeAsAppointmentResourceId as Wt, toBookingTimeZone as X, unsafeAsDetectedMimeType as Xt, parseUtcIsoDateTimeString as Y, unsafeAsDemoCapability as Yt, toScheduledBookingDateRange as Z, unsafeAsEntitlementId as Zt, createSecret as _, unsafeAsUploadSessionId as _n, publicEventPricingDisplay as _t, parseVerticalId as a, unsafeAsPassId as an, clampConfiguredAmount as at, stableJsonStringify as b, ok as bn, resolvePricingOptionsPriceDisplay as bt, DEFAULT_EVENT_TYPE_PRESETS as c, unsafeAsPricingOptionId as cn, omitZeroAmountFutureRows as ct, SURFACE_EVENT_PRESET_VALUES as d, unsafeAsSiteFontId as dn, resolveFlexibleBalanceInitialPaymentCents as dt, unsafeAsEventSeriesId as en, validateBookingPaymentOptionKinds as et, WHOLE_SERIES_EVENT_PRESET_VALUES as f, unsafeAsSiteId as fn, parseEventPageSurfaceSubject as ft, resolveWholeSeriesBookingPhase as g, unsafeAsStoragePath as gn, publicEventPricingCurrency as gt, orderedLiveRunSessions as h, unsafeAsStorageBucketName as hn, isPublicEventPricingOptionDisplayable as ht, canonicalizeConfiguredBookingVerticalConfig as i, unsafeAsOriginalFilename as in, addIntervalPreservingMonthAnchor as it, parseFooterCompositionV1 as j, assertNever as jt, parseMailingListProviderScope as k, formatCurrencyAmount as kt, EVENT_PRESET_VALUES as l, unsafeAsProductId as ln, splitAmountWithRemainderInFirst as lt, CANCELLED_SESSION_STATUS as m, unsafeAsStaffMemberId as mn, formatEventPricing as mt, NAVIGATION_LOCATIONS as n, unsafeAsMediaAssetId as nn, isSettleableFlexibleBalanceContractStatus as nt, parseVerticalPresetId as o, unsafeAsPositiveByteCount as on, getBookingInstalmentDepositRefundability as ot, publicReadFreshnessSeconds as p, unsafeAsSiteScopedStoragePath as pn, formatBookingPriceDisplay as pt, getLocalScheduleDate as q, unsafeAsCheckoutLineId as qt, areConfiguredBookingVerticalConfigsEqual as r, unsafeAsOccurrenceId as rn, isSettleableOrderInstalmentPlanStatus as rt, resolveSiteVerticalBookingConfig as s, unsafeAsPositiveSeconds as sn, getBookingInstalmentProtectedDepositAmountCents as st, resolveEventCatalogue as t, unsafeAsFileChecksumSha256 as tn, isLiveOrderInstalmentPlanStatus as tt, ORDINARY_EVENT_PRESET_VALUES as u, unsafeAsSafeDownloadFilename as un, resolveFlexibleBalanceDueAt as ut, exposeSecret as v, unsafeAsUserId as vn, publicEventPricingType as vt, parseMailingListSignedSourceToken as w, parseNonNegativeCents as wt, buildMailingListSignupBlockSourceRef as x, fromArray as xt, parseManagementKey as y, err as yn, resolveExactOrFreePriceDisplay as yt, selectCategoryView as z, parseMembershipId as zt };
package/dist/testing.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import "./sdk-event-upsert-TBJhbame.mjs";
3
- import "./src-DxiCPcDa.mjs";
4
- import { n as syncLocalMediaForPush, r as syncLocalMediaForPull, y as writeMediaManifest } from "./local-sync-2x8FP35G.mjs";
2
+ import "./sdk-event-upsert-BfdOApMM.mjs";
3
+ import "./src-DwdPY0Os.mjs";
4
+ import { n as syncLocalMediaForPush, r as syncLocalMediaForPull, y as writeMediaManifest } from "./local-sync-Cnqnhvry.mjs";
5
5
 
6
6
  export { syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "riverbankcms",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Riverbank CMS command-line tools for SDK site developers",
5
5
  "bin": {
6
6
  "riverbankcms": "dist/cli/index.mjs"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as loadConfigFile } from "./load-config-CKdduOqm.mjs";
3
-
4
- export { loadConfigFile };