@riverbankcms/sdk 0.91.0 → 0.93.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/{PreviewEditorSidebar-3TT47WCF.mjs → PreviewEditorSidebar-D3PAF7NW.mjs} +3 -3
- package/dist/{PreviewEditorUI-ORCLLUNZ.mjs → PreviewEditorUI-G5JVJEIJ.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-NHTLRNQD.mjs +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +13 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +1 -0
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
- package/dist/_dts/api/src/common/envelope.d.ts +10 -0
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +6 -0
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +32 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +12 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +44 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +9 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +14 -14
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -15
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +46 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +43 -36
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +110 -2
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/event-pricing.d.ts +18 -1
- package/dist/_dts/core/src/money-input.d.ts +34 -4
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +70 -0
- package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
- package/dist/_dts/media-core/src/filePersistence.d.ts +5 -1
- package/dist/_dts/media-core/src/fileStorage.d.ts +1 -0
- package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +29 -1
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/legacyMediaValue.d.ts +11 -0
- package/dist/_dts/media-core/src/videoPrep.d.ts +15 -6
- package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +5 -5
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +54 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +7 -2
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +35 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +23 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/{chunk-GDT2QGIL.mjs → chunk-A63UXN3P.mjs} +21 -19
- package/dist/{chunk-U5YM4AWE.mjs → chunk-AJZGT6YG.mjs} +1 -1
- package/dist/{chunk-AFPMCLS7.mjs → chunk-AQ6RT6LZ.mjs} +2 -2
- package/dist/{chunk-ZA2S7H34.mjs → chunk-NT76QGIJ.mjs} +98 -1
- package/dist/{chunk-RQUZYSES.mjs → chunk-PCNCETBI.mjs} +1196 -426
- package/dist/{chunk-S3YHJWEU.mjs → chunk-XIK2HYI3.mjs} +7 -7
- package/dist/cli/index.mjs +749 -166
- package/dist/client/{accordion-AFX37652.mjs → accordion-RNQIPG55.mjs} +2 -2
- package/dist/client/{bookingForm-32V5QCOW.mjs → bookingForm-HYEEVRLP.mjs} +89 -14
- package/dist/client/bookings.mjs +243 -17
- package/dist/client/{carousel-TJGQJ7ER.mjs → carousel-W7DQ3YPU.mjs} +3 -3
- package/dist/client/{cart-JUU2JEW4.mjs → cart-PXJ3SXXO.mjs} +7 -7
- package/dist/client/{checkout-RD6BTFX4.mjs → checkout-X3JYSOXI.mjs} +7 -7
- package/dist/client/{chunk-MLBNVN4H.mjs → chunk-6SYGVVWA.mjs} +67 -4
- package/dist/client/{chunk-E6VIWZUG.mjs → chunk-DUOHLWLF.mjs} +3 -3
- package/dist/client/{chunk-6QZIBNGV.mjs → chunk-IXDSXF2D.mjs} +154 -16
- package/dist/client/{chunk-CKXEUWWA.mjs → chunk-J6TMMMXW.mjs} +3 -3
- package/dist/client/{chunk-PMNAV6LO.mjs → chunk-JNE6UI6U.mjs} +7 -6
- package/dist/client/{chunk-ISAUXU5R.mjs → chunk-OLAOAZEO.mjs} +1 -1
- package/dist/client/{chunk-RWYFG625.mjs → chunk-PCHACQEB.mjs} +30 -2
- package/dist/client/{chunk-FMZZHAIR.mjs → chunk-PICR3NTQ.mjs} +52 -5
- package/dist/client/{chunk-6RN62XBV.mjs → chunk-Q47XGAGS.mjs} +1 -1
- package/dist/client/{chunk-WHZQDPBZ.mjs → chunk-TNGL2WJF.mjs} +1 -0
- package/dist/client/{chunk-C4LP6BPG.mjs → chunk-WERRJXNJ.mjs} +1 -1
- package/dist/client/{chunk-RMOFBBNA.mjs → chunk-YYVGSYBO.mjs} +6 -6
- package/dist/client/client.mjs +641 -54
- package/dist/client/{courseRegistration-X63QAIVV.mjs → courseRegistration-QZ67PVHO.mjs} +111 -11
- package/dist/client/{eventCalendar-5T24GCZL.mjs → eventCalendar-V3BDHQNT.mjs} +9 -9
- package/dist/client/{eventCombined-AZVTF22X.mjs → eventCombined-XYFRN2RG.mjs} +9 -9
- package/dist/client/{eventDetails-7GPFNLGF.mjs → eventDetails-TFE5TWKV.mjs} +9 -9
- package/dist/client/{eventListing-QEUMTMUM.mjs → eventListing-IQ6AGWZ6.mjs} +9 -9
- package/dist/client/{eventRegistration-P2EDKCQZ.mjs → eventRegistration-WGJVFKQJ.mjs} +9 -9
- package/dist/client/{form-NUJ7H4IN.mjs → form-6UZY6RUA.mjs} +3 -3
- package/dist/client/{headerSection-JB7LECPL.mjs → headerSection-RSFXY6V3.mjs} +3 -3
- package/dist/client/hooks.mjs +57 -5
- package/dist/client/{locationMap-UEYWUCSW.mjs → locationMap-24FH67I4.mjs} +3 -3
- package/dist/client/{newsletterForm-S2YZQ2X7.mjs → newsletterForm-QVL3MLTN.mjs} +3 -3
- package/dist/client/{productDetail-H5MADGG7.mjs → productDetail-ZDYN3G4T.mjs} +7 -7
- package/dist/client/{productList-DK7YON7H.mjs → productList-4BMJLQHZ.mjs} +7 -7
- package/dist/client/rendering/client.mjs +503 -36
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +583 -39
- package/dist/client/{shop-6PA7RDRJ.mjs → shop-U5C634FF.mjs} +7 -7
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/{sdk-runtime-JP5347OB.mjs → sdk-runtime-VGV46WVB.mjs} +6 -6
- package/dist/server/components.mjs +287 -68
- package/dist/server/config-validation.mjs +58 -5
- package/dist/server/config.mjs +58 -5
- package/dist/server/data.mjs +57 -5
- package/dist/server/index.mjs +104 -29
- package/dist/server/next.mjs +347 -85
- package/dist/server/page-converter.mjs +22 -5
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +287 -68
- package/dist/server/rendering.mjs +287 -68
- package/dist/server/routing.mjs +131 -67
- package/dist/server/server.mjs +189 -94
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-GMCDQPZZ.mjs +0 -8
package/dist/server/routing.mjs
CHANGED
|
@@ -6607,6 +6607,7 @@ function publicEventPricingType(pricing) {
|
|
|
6607
6607
|
return "free";
|
|
6608
6608
|
case "single_paid":
|
|
6609
6609
|
case "ticket_types":
|
|
6610
|
+
case "sliding_scale":
|
|
6610
6611
|
case "course":
|
|
6611
6612
|
return isFreePublicEventPriceDisplay(pricing.display) ? "free" : "paid";
|
|
6612
6613
|
case "external":
|
|
@@ -7254,68 +7255,6 @@ var init_fieldPath = __esm({
|
|
|
7254
7255
|
}
|
|
7255
7256
|
});
|
|
7256
7257
|
|
|
7257
|
-
// ../blocks/src/system/types/link.ts
|
|
7258
|
-
import { z as z3 } from "zod";
|
|
7259
|
-
var nullableString, resolvedInternalLinkKeys, internalRouteOnlyLinkSchema, internalResolvedLinkSchema, internalLinkSchema, externalLinkSchema2, customLinkSchema2, pageLinkSchema2, entryLinkSchema2, linkSchema;
|
|
7260
|
-
var init_link = __esm({
|
|
7261
|
-
"../blocks/src/system/types/link.ts"() {
|
|
7262
|
-
"use strict";
|
|
7263
|
-
nullableString = z3.union([z3.string().min(1), z3.null()]);
|
|
7264
|
-
resolvedInternalLinkKeys = ["entityId", "entityType", "href", "title", "typeLabel"];
|
|
7265
|
-
internalRouteOnlyLinkSchema = z3.object({
|
|
7266
|
-
kind: z3.literal("internal"),
|
|
7267
|
-
routeId: z3.string().min(1)
|
|
7268
|
-
}).passthrough().superRefine((value, ctx) => {
|
|
7269
|
-
const hasResolvedMetadata = resolvedInternalLinkKeys.some((key) => value[key] != null);
|
|
7270
|
-
if (!hasResolvedMetadata) return;
|
|
7271
|
-
ctx.addIssue({
|
|
7272
|
-
code: "custom",
|
|
7273
|
-
message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
|
|
7274
|
-
});
|
|
7275
|
-
});
|
|
7276
|
-
internalResolvedLinkSchema = z3.object({
|
|
7277
|
-
kind: z3.literal("internal"),
|
|
7278
|
-
routeId: z3.string().min(1),
|
|
7279
|
-
entityId: z3.string().min(1),
|
|
7280
|
-
entityType: z3.enum(["page", "content"]),
|
|
7281
|
-
href: z3.string().min(1),
|
|
7282
|
-
title: z3.string().min(1),
|
|
7283
|
-
typeLabel: z3.string().min(1),
|
|
7284
|
-
contentTypeKey: nullableString.optional(),
|
|
7285
|
-
contentTypeName: nullableString.optional(),
|
|
7286
|
-
updatedAt: nullableString.optional()
|
|
7287
|
-
}).passthrough();
|
|
7288
|
-
internalLinkSchema = z3.union([
|
|
7289
|
-
internalResolvedLinkSchema,
|
|
7290
|
-
internalRouteOnlyLinkSchema
|
|
7291
|
-
]);
|
|
7292
|
-
externalLinkSchema2 = z3.object({
|
|
7293
|
-
kind: z3.literal("external"),
|
|
7294
|
-
href: z3.string().min(1)
|
|
7295
|
-
}).passthrough();
|
|
7296
|
-
customLinkSchema2 = z3.object({
|
|
7297
|
-
kind: z3.literal("url"),
|
|
7298
|
-
href: z3.string().min(1)
|
|
7299
|
-
}).passthrough();
|
|
7300
|
-
pageLinkSchema2 = z3.object({
|
|
7301
|
-
kind: z3.literal("page"),
|
|
7302
|
-
identifier: z3.string().min(1)
|
|
7303
|
-
}).passthrough();
|
|
7304
|
-
entryLinkSchema2 = z3.object({
|
|
7305
|
-
kind: z3.literal("entry"),
|
|
7306
|
-
contentType: z3.string().min(1),
|
|
7307
|
-
identifier: z3.string().min(1)
|
|
7308
|
-
}).passthrough();
|
|
7309
|
-
linkSchema = z3.union([
|
|
7310
|
-
internalLinkSchema,
|
|
7311
|
-
externalLinkSchema2,
|
|
7312
|
-
customLinkSchema2,
|
|
7313
|
-
pageLinkSchema2,
|
|
7314
|
-
entryLinkSchema2
|
|
7315
|
-
]);
|
|
7316
|
-
}
|
|
7317
|
-
});
|
|
7318
|
-
|
|
7319
7258
|
// ../media-core/src/types.ts
|
|
7320
7259
|
var init_types = __esm({
|
|
7321
7260
|
"../media-core/src/types.ts"() {
|
|
@@ -7543,14 +7482,18 @@ var init_uploadVerificationContract = __esm({
|
|
|
7543
7482
|
});
|
|
7544
7483
|
|
|
7545
7484
|
// ../media-core/src/videoPrep.ts
|
|
7485
|
+
function unsafeAsPositiveVideoDurationSeconds(value) {
|
|
7486
|
+
return value;
|
|
7487
|
+
}
|
|
7546
7488
|
var VIDEO_PREP_LIMITS;
|
|
7547
7489
|
var init_videoPrep = __esm({
|
|
7548
7490
|
"../media-core/src/videoPrep.ts"() {
|
|
7549
7491
|
"use strict";
|
|
7492
|
+
init_src();
|
|
7550
7493
|
VIDEO_PREP_LIMITS = {
|
|
7551
|
-
maxRawByteCount: 500 * 1024 * 1024,
|
|
7552
|
-
inlineContentMaxDurationSeconds: 60,
|
|
7553
|
-
backgroundVideoMaxDurationSeconds: 30,
|
|
7494
|
+
maxRawByteCount: unsafeAsPositiveByteCount(500 * 1024 * 1024),
|
|
7495
|
+
inlineContentMaxDurationSeconds: unsafeAsPositiveVideoDurationSeconds(60),
|
|
7496
|
+
backgroundVideoMaxDurationSeconds: unsafeAsPositiveVideoDurationSeconds(30),
|
|
7554
7497
|
targetMaxDimensionPixels: 1080
|
|
7555
7498
|
};
|
|
7556
7499
|
}
|
|
@@ -7764,6 +7707,13 @@ var init_renderableMediaAsset = __esm({
|
|
|
7764
7707
|
}
|
|
7765
7708
|
});
|
|
7766
7709
|
|
|
7710
|
+
// ../media-core/src/legacyMediaValue.ts
|
|
7711
|
+
var init_legacyMediaValue = __esm({
|
|
7712
|
+
"../media-core/src/legacyMediaValue.ts"() {
|
|
7713
|
+
"use strict";
|
|
7714
|
+
}
|
|
7715
|
+
});
|
|
7716
|
+
|
|
7767
7717
|
// ../media-core/src/index.ts
|
|
7768
7718
|
var init_src2 = __esm({
|
|
7769
7719
|
"../media-core/src/index.ts"() {
|
|
@@ -7803,6 +7753,69 @@ var init_src2 = __esm({
|
|
|
7803
7753
|
init_mediaUsageProjection();
|
|
7804
7754
|
init_portableMediaReferences();
|
|
7805
7755
|
init_renderableMediaAsset();
|
|
7756
|
+
init_legacyMediaValue();
|
|
7757
|
+
}
|
|
7758
|
+
});
|
|
7759
|
+
|
|
7760
|
+
// ../blocks/src/system/types/link.ts
|
|
7761
|
+
import { z as z3 } from "zod";
|
|
7762
|
+
var nullableString, resolvedInternalLinkKeys, internalRouteOnlyLinkSchema, internalResolvedLinkSchema, internalLinkSchema, externalLinkSchema2, customLinkSchema2, pageLinkSchema2, entryLinkSchema2, linkSchema;
|
|
7763
|
+
var init_link = __esm({
|
|
7764
|
+
"../blocks/src/system/types/link.ts"() {
|
|
7765
|
+
"use strict";
|
|
7766
|
+
nullableString = z3.union([z3.string().min(1), z3.null()]);
|
|
7767
|
+
resolvedInternalLinkKeys = ["entityId", "entityType", "href", "title", "typeLabel"];
|
|
7768
|
+
internalRouteOnlyLinkSchema = z3.object({
|
|
7769
|
+
kind: z3.literal("internal"),
|
|
7770
|
+
routeId: z3.string().min(1)
|
|
7771
|
+
}).passthrough().superRefine((value, ctx) => {
|
|
7772
|
+
const hasResolvedMetadata = resolvedInternalLinkKeys.some((key) => value[key] != null);
|
|
7773
|
+
if (!hasResolvedMetadata) return;
|
|
7774
|
+
ctx.addIssue({
|
|
7775
|
+
code: "custom",
|
|
7776
|
+
message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
|
|
7777
|
+
});
|
|
7778
|
+
});
|
|
7779
|
+
internalResolvedLinkSchema = z3.object({
|
|
7780
|
+
kind: z3.literal("internal"),
|
|
7781
|
+
routeId: z3.string().min(1),
|
|
7782
|
+
entityId: z3.string().min(1),
|
|
7783
|
+
entityType: z3.enum(["page", "content"]),
|
|
7784
|
+
href: z3.string().min(1),
|
|
7785
|
+
title: z3.string().min(1),
|
|
7786
|
+
typeLabel: z3.string().min(1),
|
|
7787
|
+
contentTypeKey: nullableString.optional(),
|
|
7788
|
+
contentTypeName: nullableString.optional(),
|
|
7789
|
+
updatedAt: nullableString.optional()
|
|
7790
|
+
}).passthrough();
|
|
7791
|
+
internalLinkSchema = z3.union([
|
|
7792
|
+
internalResolvedLinkSchema,
|
|
7793
|
+
internalRouteOnlyLinkSchema
|
|
7794
|
+
]);
|
|
7795
|
+
externalLinkSchema2 = z3.object({
|
|
7796
|
+
kind: z3.literal("external"),
|
|
7797
|
+
href: z3.string().min(1)
|
|
7798
|
+
}).passthrough();
|
|
7799
|
+
customLinkSchema2 = z3.object({
|
|
7800
|
+
kind: z3.literal("url"),
|
|
7801
|
+
href: z3.string().min(1)
|
|
7802
|
+
}).passthrough();
|
|
7803
|
+
pageLinkSchema2 = z3.object({
|
|
7804
|
+
kind: z3.literal("page"),
|
|
7805
|
+
identifier: z3.string().min(1)
|
|
7806
|
+
}).passthrough();
|
|
7807
|
+
entryLinkSchema2 = z3.object({
|
|
7808
|
+
kind: z3.literal("entry"),
|
|
7809
|
+
contentType: z3.string().min(1),
|
|
7810
|
+
identifier: z3.string().min(1)
|
|
7811
|
+
}).passthrough();
|
|
7812
|
+
linkSchema = z3.union([
|
|
7813
|
+
internalLinkSchema,
|
|
7814
|
+
externalLinkSchema2,
|
|
7815
|
+
customLinkSchema2,
|
|
7816
|
+
pageLinkSchema2,
|
|
7817
|
+
entryLinkSchema2
|
|
7818
|
+
]);
|
|
7806
7819
|
}
|
|
7807
7820
|
});
|
|
7808
7821
|
|
|
@@ -32466,9 +32479,12 @@ var init_schemas = __esm({
|
|
|
32466
32479
|
});
|
|
32467
32480
|
coursePricingSchema = z45.object({
|
|
32468
32481
|
bookingRequirement: z45.enum(["none", "required"]),
|
|
32469
|
-
pricingStrategy: z45.enum(["free", "single", "tiered"]),
|
|
32482
|
+
pricingStrategy: z45.enum(["free", "single", "tiered", "sliding_scale"]),
|
|
32470
32483
|
currency: z45.string(),
|
|
32471
32484
|
singlePriceAmount: z45.number().nullable(),
|
|
32485
|
+
slidingMinAmount: z45.number().nullable().optional(),
|
|
32486
|
+
slidingMaxAmount: z45.number().nullable().optional(),
|
|
32487
|
+
slidingSuggestedAmount: z45.number().nullable().optional(),
|
|
32472
32488
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
32473
32489
|
options: z45.array(coursePricingOptionSchema)
|
|
32474
32490
|
});
|
|
@@ -32633,6 +32649,19 @@ var init_schemas2 = __esm({
|
|
|
32633
32649
|
ticketTypes: z46.array(publicEventTicketTypeSchema),
|
|
32634
32650
|
display: publicEventTicketTypePriceDisplaySchema
|
|
32635
32651
|
}),
|
|
32652
|
+
z46.object({
|
|
32653
|
+
kind: z46.literal("sliding_scale"),
|
|
32654
|
+
minAmount: z46.number(),
|
|
32655
|
+
maxAmount: z46.number(),
|
|
32656
|
+
suggestedAmount: z46.number().nullable(),
|
|
32657
|
+
currency: z46.string(),
|
|
32658
|
+
display: z46.object({
|
|
32659
|
+
kind: z46.literal("range"),
|
|
32660
|
+
minAmount: z46.number(),
|
|
32661
|
+
maxAmount: z46.number(),
|
|
32662
|
+
currency: z46.string()
|
|
32663
|
+
})
|
|
32664
|
+
}),
|
|
32636
32665
|
z46.object({
|
|
32637
32666
|
kind: z46.literal("course"),
|
|
32638
32667
|
display: z46.object({ kind: z46.literal("course"), display: publicCoursePriceDisplaySchema })
|
|
@@ -33101,7 +33130,7 @@ function isRecord4(value) {
|
|
|
33101
33130
|
}
|
|
33102
33131
|
function isPublicEventPricing(value) {
|
|
33103
33132
|
if (!isRecord4(value) || typeof value.kind !== "string") return false;
|
|
33104
|
-
return value.kind === "drop_in" || value.kind === "free_registration" || value.kind === "single_paid" || value.kind === "ticket_types" || value.kind === "course" || value.kind === "external";
|
|
33133
|
+
return value.kind === "drop_in" || value.kind === "free_registration" || value.kind === "single_paid" || value.kind === "sliding_scale" || value.kind === "ticket_types" || value.kind === "course" || value.kind === "external";
|
|
33105
33134
|
}
|
|
33106
33135
|
function isPublicEventTicketType(value) {
|
|
33107
33136
|
return isRecord4(value) && typeof value.id === "string";
|
|
@@ -45396,9 +45425,40 @@ var init_url = __esm({
|
|
|
45396
45425
|
});
|
|
45397
45426
|
|
|
45398
45427
|
// ../api/src/common/envelope.ts
|
|
45428
|
+
var API_ERROR_CODES, API_ERROR_CODE_SET;
|
|
45399
45429
|
var init_envelope = __esm({
|
|
45400
45430
|
"../api/src/common/envelope.ts"() {
|
|
45401
45431
|
"use strict";
|
|
45432
|
+
API_ERROR_CODES = [
|
|
45433
|
+
"auth:unauthenticated",
|
|
45434
|
+
"auth:token_expired",
|
|
45435
|
+
"auth:token_invalid",
|
|
45436
|
+
"auth:forbidden",
|
|
45437
|
+
"auth:mfa_required",
|
|
45438
|
+
"auth:sudo_required",
|
|
45439
|
+
"auth:insufficient_permissions",
|
|
45440
|
+
"auth:impersonation_restricted",
|
|
45441
|
+
"validation:invalid_input",
|
|
45442
|
+
"validation:missing_field",
|
|
45443
|
+
"validation:invalid_format",
|
|
45444
|
+
"validation:payload_too_large",
|
|
45445
|
+
"resource:not_found",
|
|
45446
|
+
"resource:already_exists",
|
|
45447
|
+
"resource:conflict",
|
|
45448
|
+
"resource:gone",
|
|
45449
|
+
"rate_limit:exceeded",
|
|
45450
|
+
"billing:payment_required",
|
|
45451
|
+
"billing:plan_limit_exceeded",
|
|
45452
|
+
"billing:pass_redemption_failed",
|
|
45453
|
+
"server:internal_error",
|
|
45454
|
+
"server:unavailable",
|
|
45455
|
+
"external:service_error",
|
|
45456
|
+
"external:registrar_orphaned_contact_profile",
|
|
45457
|
+
"network:connection_error",
|
|
45458
|
+
"network:timeout",
|
|
45459
|
+
"network:dns_error"
|
|
45460
|
+
];
|
|
45461
|
+
API_ERROR_CODE_SET = new Set(API_ERROR_CODES);
|
|
45402
45462
|
}
|
|
45403
45463
|
});
|
|
45404
45464
|
|
|
@@ -45424,6 +45484,7 @@ var init_request = __esm({
|
|
|
45424
45484
|
init_token();
|
|
45425
45485
|
init_url();
|
|
45426
45486
|
init_env2();
|
|
45487
|
+
init_envelope();
|
|
45427
45488
|
}
|
|
45428
45489
|
});
|
|
45429
45490
|
|
|
@@ -45440,6 +45501,7 @@ var init_customerMembershipOutcomes = __esm({
|
|
|
45440
45501
|
];
|
|
45441
45502
|
CANONICAL_REFUND_PLANNER_ERROR_CODES = [
|
|
45442
45503
|
...CANONICAL_REFUND_CONFLICT_CODES,
|
|
45504
|
+
"invalid_amount",
|
|
45443
45505
|
"amount_exceeds_remaining",
|
|
45444
45506
|
"pass_revoke_requires_full_refund",
|
|
45445
45507
|
"refund_failed"
|
|
@@ -45473,6 +45535,7 @@ var init_bookingRefundOutcomes = __esm({
|
|
|
45473
45535
|
init_customerMembershipOutcomes();
|
|
45474
45536
|
STANDARD_LINE_ITEM_REFUND_INVALID_CODES = [
|
|
45475
45537
|
"missing_amount",
|
|
45538
|
+
"invalid_amount",
|
|
45476
45539
|
"amount_exceeds_remaining",
|
|
45477
45540
|
"credit_refunds_disabled",
|
|
45478
45541
|
"missing_credit_customer",
|
|
@@ -45487,6 +45550,7 @@ var init_bookingRefundOutcomes = __esm({
|
|
|
45487
45550
|
MANAGED_PRODUCT_REFUND_INVALID_CODES = [
|
|
45488
45551
|
"credit_refunds_disabled",
|
|
45489
45552
|
"not_refundable",
|
|
45553
|
+
"invalid_amount",
|
|
45490
45554
|
"amount_exceeds_remaining"
|
|
45491
45555
|
];
|
|
45492
45556
|
CUSTOMER_PASS_REFUND_INVALID_CODES = [
|