@c1m-public/channel-client 0.36.0 → 0.37.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/README.md +32 -0
- package/dist/{chunk-EBITC4YV.js → chunk-HZBHUOJ5.js} +1 -1
- package/dist/{chunk-HS72FUTN.js → chunk-KQI2FMHI.js} +1 -1
- package/dist/{chunk-6UWL4X4P.js → chunk-T6OQ4CBQ.js} +35 -0
- package/dist/dash-next.d.ts +1 -1
- package/dist/dash-next.js +3 -3
- package/dist/dash.d.ts +1 -1
- package/dist/dash.js +2 -2
- package/dist/index.d.ts +21 -4
- package/dist/index.js +1 -1
- package/dist/next.d.ts +15 -2
- package/dist/next.js +2 -2
- package/dist/site.d.ts +1 -1
- package/dist/{types-A7bs15BP.d.ts → types-D1GrAYBX.d.ts} +120 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,6 +158,38 @@ The package must only be imported from server modules. Never expose the token in
|
|
|
158
158
|
asset requests. The `/next` entry point enforces Next's `server-only` boundary;
|
|
159
159
|
other runtimes must enforce their own server-module boundary.
|
|
160
160
|
|
|
161
|
+
### Bookings
|
|
162
|
+
|
|
163
|
+
Public paid booking: list services, show open times and a price, hold a slot,
|
|
164
|
+
then send the visitor to Stripe Checkout. Server-side only, like the rest of
|
|
165
|
+
the client; pass the verified visitor with `withVisitor` so intake limits see
|
|
166
|
+
the real caller.
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
const bookings = channel.withVisitor(visitor).bookings;
|
|
170
|
+
|
|
171
|
+
const { items: services } = await bookings.services.list();
|
|
172
|
+
const { availability } = await bookings.availability(services[0].id, {
|
|
173
|
+
from: "2026-11-02T00:00:00Z",
|
|
174
|
+
to: "2026-11-09T00:00:00Z",
|
|
175
|
+
});
|
|
176
|
+
const quote = await bookings.quote(services[0].id, { startsAt: availability.slots![0].starts_at });
|
|
177
|
+
|
|
178
|
+
// Server action: the idempotency key is required (one per submitted form),
|
|
179
|
+
// so a retried POST never holds the slot twice. Pass the hidden honeypot
|
|
180
|
+
// field through untouched as `_gotcha`.
|
|
181
|
+
const { hold } = await bookings.holds.create(
|
|
182
|
+
{ service_id: services[0].id, starts_at: slot.starts_at, customer: { name, email }, accept_terms: true, _gotcha: honeypot },
|
|
183
|
+
{ idempotencyKey: formAttemptId },
|
|
184
|
+
);
|
|
185
|
+
redirect(hold.checkout_url!);
|
|
186
|
+
|
|
187
|
+
// Return page (the hold token comes back in your own return URL): poll until
|
|
188
|
+
// the hold leaves "held", and call holds.checkout(token) to resume payment
|
|
189
|
+
// if the visitor abandoned Checkout before the hold expired.
|
|
190
|
+
const { hold: current } = await bookings.holds.get(token);
|
|
191
|
+
```
|
|
192
|
+
|
|
161
193
|
## Behavior
|
|
162
194
|
|
|
163
195
|
- The core retries transient reads once (`retry.attempts`, default 1) on
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isChannelAPIError, createChannelClient } from './chunk-
|
|
1
|
+
import { isChannelAPIError, createChannelClient } from './chunk-T6OQ4CBQ.js';
|
|
2
2
|
import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
|
|
3
3
|
import 'server-only';
|
|
4
4
|
|
|
@@ -261,6 +261,11 @@ function createChannelClient(options) {
|
|
|
261
261
|
function mutationHeaders(mutation) {
|
|
262
262
|
return mutation?.idempotencyKey ? { "Idempotency-Key": mutation.idempotencyKey } : void 0;
|
|
263
263
|
}
|
|
264
|
+
function requiredIdempotencyHeaders(mutation) {
|
|
265
|
+
const key = mutation?.idempotencyKey?.trim();
|
|
266
|
+
if (!key) throw new ChannelConfigurationError("idempotencyKey is required");
|
|
267
|
+
return { "Idempotency-Key": key };
|
|
268
|
+
}
|
|
264
269
|
return {
|
|
265
270
|
/**
|
|
266
271
|
* Verify the channel token and see what it points at.
|
|
@@ -484,6 +489,36 @@ function createChannelClient(options) {
|
|
|
484
489
|
)
|
|
485
490
|
}
|
|
486
491
|
},
|
|
492
|
+
// Public paid booking. Create a hold, send the visitor to its checkout_url,
|
|
493
|
+
// then poll holds.get on the return page until the hold is confirmed.
|
|
494
|
+
bookings: {
|
|
495
|
+
services: {
|
|
496
|
+
list: () => request("channel.book.services.list", "/book/services"),
|
|
497
|
+
get: (serviceId) => request("channel.book.services.get", `/book/services/${encodePath(serviceId)}`)
|
|
498
|
+
},
|
|
499
|
+
availability: (serviceId, params = {}) => request(
|
|
500
|
+
"channel.book.availability.get",
|
|
501
|
+
appendQuery(`/book/services/${encodePath(serviceId)}/availability`, params)
|
|
502
|
+
),
|
|
503
|
+
quote: (serviceId, params) => request(
|
|
504
|
+
"channel.book.quote.get",
|
|
505
|
+
appendQuery(`/book/services/${encodePath(serviceId)}/quote`, { starts_at: params.startsAt, ends_at: params.endsAt })
|
|
506
|
+
),
|
|
507
|
+
holds: {
|
|
508
|
+
// The key is required: a retried create must not hold the slot twice.
|
|
509
|
+
create: (input, mutation) => request("channel.book.holds.create", "/book/holds", {
|
|
510
|
+
method: "POST",
|
|
511
|
+
headers: requiredIdempotencyHeaders(mutation),
|
|
512
|
+
body: JSON.stringify(input)
|
|
513
|
+
}),
|
|
514
|
+
// Resume payment for a hold whose checkout_url was lost or has lapsed.
|
|
515
|
+
checkout: (token2, mutation) => request("channel.book.holds.checkout", `/book/holds/${encodePath(token2)}/checkout`, {
|
|
516
|
+
method: "POST",
|
|
517
|
+
headers: mutationHeaders(mutation)
|
|
518
|
+
}),
|
|
519
|
+
get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`)
|
|
520
|
+
}
|
|
521
|
+
},
|
|
487
522
|
paymentLinks: {
|
|
488
523
|
get: (linkId) => request(
|
|
489
524
|
"channel.payment_links.get",
|
package/dist/dash-next.d.ts
CHANGED
package/dist/dash-next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createNextChannelClient } from './chunk-
|
|
2
|
-
import { narrow } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createNextChannelClient } from './chunk-HZBHUOJ5.js';
|
|
2
|
+
import { narrow } from './chunk-KQI2FMHI.js';
|
|
3
|
+
import './chunk-T6OQ4CBQ.js';
|
|
4
4
|
import './chunk-XPO7C3DW.js';
|
|
5
5
|
import 'server-only';
|
|
6
6
|
|
package/dist/dash.d.ts
CHANGED
package/dist/dash.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDashChannelClient, narrow as narrowToDash } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDashChannelClient, narrow as narrowToDash } from './chunk-KQI2FMHI.js';
|
|
2
|
+
import './chunk-T6OQ4CBQ.js';
|
|
3
3
|
import './chunk-XPO7C3DW.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, A as AddCartItemInput, C as CartResponse, V as UpdateCartItemInput, X as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as
|
|
2
|
-
export {
|
|
1
|
+
import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, A as AddCartItemInput, C as CartResponse, V as UpdateCartItemInput, X as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as BookingService, a9 as BookingServiceResponse, aa as BookingAvailabilityParams, ab as BookingAvailabilityResponse, ac as BookingQuoteParams, ad as BookingQuoteResponse, ae as CreateBookingHoldInput, af as BookingHoldResponse, ag as PublicPaymentLinkResponse, ah as PaymentLinkCheckoutInput, ai as PaymentLinkCheckoutResponse, aj as PaymentLinkRedemptionStatusResponse, ak as PrintSettingsResponse, al as PrintOptionsSelection, am as PrintQuoteResponse, an as PrintIntakeInput, ao as PrintJob, ap as DiningMenu, aq as CustomerSignupResponse, ar as SendCodeResponse, as as CustomerSession, at as CustomerResponse, au as CustomerAuthSession, av as CustomerSecurityActivityPage, O as Order, aw as OrderSummary, ax as SavedAddress, ay as SavedAddressResponse, az as SavedAddressInput, aA as SavedAddressUpdateInput, aB as SavedPaymentMethod, aC as PaymentMethodSetupInput, aD as PaymentMethodSetupResult, aE as PaymentMethodConfirmInput, aF as PaymentMethodMutationResponse, aG as StartSubscriptionInput, aH as SubscriptionAgreementResponse, aI as SubscriptionListResponse, aJ as SubscriptionSourceResponse, aK as SubscriptionInvoiceListResponse, aL as SubscriptionInvoiceResponse, aM as GivingIntentListResponse, aN as LeadResponse } from './types-D1GrAYBX.js';
|
|
2
|
+
export { aO as BookingAvailability, aP as BookingCancellationPolicy, aQ as BookingCustomerInput, aR as BookingFreeSpan, aS as BookingHold, aT as BookingIntakeQuestion, aU as BookingPriceQuote, aV as BookingServicePricing, aW as BookingTimeRange, aX as CatalogProduct, aY as CheckoutAddress, aZ as CheckoutStatus, a_ as Customer, a$ as CustomerSecurityActivity, b0 as DashBrandingInfo, b1 as DashDirectoryProfile, b2 as DashLeadPortalMatch, b3 as DashLeadPortalMovingSummary, b4 as DashLeadPortalRequest, b5 as DashLeadPortalRequestStatus, b6 as DashLocaleInfo, b7 as DashPlan, b8 as DashPlanPricing, b9 as DashPlanRegion, ba as DashPublicPage, bb as DashPublicProfileInfo, bc as DashTenantInfo, bd as DiningAvailability, be as DiningAvailabilityRule, bf as DiningComboChoice, bg as DiningComboGroup, bh as DiningItemSize, bi as DiningMenuItem, bj as DiningModifier, bk as DiningModifierGroup, bl as DiningOffer, bm as DiningOfferBadge, bn as GivingIntent, bo as Menu, bp as MenuItem, bq as OrderItem, br as PaymentLinkRedemptionStatus, bs as PaymentMethodOption, bt as PaymentReadiness, bu as PrintBranding, bv as PrintIntakeLimits, bw as PrintJobFile, bx as PrintPaperSize, by as PrintPerPagePricing, bz as PrintPriceBreakdown, bA as PrintPriceLine, bB as PrintPricing, bC as PrintPricingOption, bD as PublicGate, bE as PublicPaymentLink, bF as PublicSiteSignals, bG as ShippingMethodOption, bH as SiteGatedDocument, bI as SiteRef, bJ as SiteResolvedDocument, bK as SiteSubject, bL as SubscriptionAgreement, bM as SubscriptionInvoice, bN as SubscriptionPlanOffer, bO as SubscriptionSourceDisplay, bP as WaitlistAttribution, bQ as WorkspaceInfo } from './types-D1GrAYBX.js';
|
|
3
3
|
export { AnyChannelWebhookEvent, CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelWebhookEvent, ChannelWebhookEventDataMap, ChannelWebhookEventType, ChannelWebhookVerificationCode, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, FulfillmentEventData, LeadCreatedEventData, MenuUpdatedEventData, OrderEventData, PagePublishedEventData, ParseChannelWebhookEventOptions, ParsedChannelWebhookEvent, ProductEventData, ReviewPublishedEventData, ReviewSubmittedEventData, UnknownChannelWebhookEvent, VerifyChannelWebhookSignatureOptions, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -58,7 +58,7 @@ interface ChannelVisitor {
|
|
|
58
58
|
userAgent?: string;
|
|
59
59
|
}
|
|
60
60
|
type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
|
|
61
|
-
type ChannelOperation = "channel.ping" | "channel.geo.detect" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.payment_methods.list" | "channel.account.payment_methods.setup" | "channel.account.payment_methods.confirm" | "channel.account.payment_methods.default" | "channel.account.payment_methods.delete" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.account.subscriptions.cancel" | "channel.account.subscriptions.pause" | "channel.account.subscriptions.resume" | "channel.account.subscriptions.invoices.list" | "channel.account.subscriptions.invoices.get" | "channel.account.subscriptions.invoices.pay_now" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
|
|
61
|
+
type ChannelOperation = "channel.ping" | "channel.geo.detect" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.payment_methods.list" | "channel.account.payment_methods.setup" | "channel.account.payment_methods.confirm" | "channel.account.payment_methods.default" | "channel.account.payment_methods.delete" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.account.subscriptions.cancel" | "channel.account.subscriptions.pause" | "channel.account.subscriptions.resume" | "channel.account.subscriptions.invoices.list" | "channel.account.subscriptions.invoices.get" | "channel.account.subscriptions.invoices.pay_now" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
|
|
62
62
|
interface ChannelRequestObservation {
|
|
63
63
|
operation: ChannelOperation;
|
|
64
64
|
method: string;
|
|
@@ -102,6 +102,10 @@ interface DashDirectoryListParams extends ChannelListParams {
|
|
|
102
102
|
interface ChannelMutationOptions {
|
|
103
103
|
idempotencyKey?: string;
|
|
104
104
|
}
|
|
105
|
+
/** A mutation whose idempotency key is mandatory. */
|
|
106
|
+
interface RequiredIdempotency {
|
|
107
|
+
idempotencyKey: string;
|
|
108
|
+
}
|
|
105
109
|
interface ChannelCheckoutStatusParams {
|
|
106
110
|
cartToken?: string;
|
|
107
111
|
checkoutSessionId?: string;
|
|
@@ -270,6 +274,19 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
270
274
|
readonly get: (planId: string) => Promise<SubscriptionPlanResponse>;
|
|
271
275
|
};
|
|
272
276
|
};
|
|
277
|
+
readonly bookings: {
|
|
278
|
+
readonly services: {
|
|
279
|
+
readonly list: () => Promise<ListResponse<BookingService>>;
|
|
280
|
+
readonly get: (serviceId: string) => Promise<BookingServiceResponse>;
|
|
281
|
+
};
|
|
282
|
+
readonly availability: (serviceId: string, params?: BookingAvailabilityParams) => Promise<BookingAvailabilityResponse>;
|
|
283
|
+
readonly quote: (serviceId: string, params: BookingQuoteParams) => Promise<BookingQuoteResponse>;
|
|
284
|
+
readonly holds: {
|
|
285
|
+
readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
|
|
286
|
+
readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
|
|
287
|
+
readonly get: (token: string) => Promise<BookingHoldResponse>;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
273
290
|
readonly paymentLinks: {
|
|
274
291
|
readonly get: (linkId: string) => Promise<PublicPaymentLinkResponse>;
|
|
275
292
|
readonly checkout: (linkId: string, input: PaymentLinkCheckoutInput, mutation?: ChannelMutationOptions) => Promise<PaymentLinkCheckoutResponse>;
|
|
@@ -393,4 +410,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
393
410
|
};
|
|
394
411
|
};
|
|
395
412
|
|
|
396
|
-
export { AddCartItemInput, BlogPost, BlogPostResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteDocument, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
|
|
413
|
+
export { AddCartItemInput, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, CreateBookingHoldInput, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteDocument, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-
|
|
1
|
+
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-T6OQ4CBQ.js';
|
|
2
2
|
export { CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelConfigurationError, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, isChannelConfigurationError, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './chunk-XPO7C3DW.js';
|
package/dist/next.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ChannelSubscriptionListParams, ChannelSubscriptionCancelParams, ChannelInvoiceListParams } from './index.js';
|
|
2
|
-
import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, V as UpdateCartItemInput, X as MergeCartInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as
|
|
1
|
+
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, RequiredIdempotency, ChannelSubscriptionListParams, ChannelSubscriptionCancelParams, ChannelInvoiceListParams } from './index.js';
|
|
2
|
+
import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, V as UpdateCartItemInput, X as MergeCartInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as BookingService, a9 as BookingServiceResponse, aa as BookingAvailabilityParams, ab as BookingAvailabilityResponse, ac as BookingQuoteParams, ad as BookingQuoteResponse, ae as CreateBookingHoldInput, af as BookingHoldResponse, ag as PublicPaymentLinkResponse, ah as PaymentLinkCheckoutInput, ai as PaymentLinkCheckoutResponse, aj as PaymentLinkRedemptionStatusResponse, ak as PrintSettingsResponse, al as PrintOptionsSelection, am as PrintQuoteResponse, an as PrintIntakeInput, ao as PrintJob, ap as DiningMenu, aq as CustomerSignupResponse, ar as SendCodeResponse, as as CustomerSession, at as CustomerResponse, au as CustomerAuthSession, av as CustomerSecurityActivityPage, aw as OrderSummary, ax as SavedAddress, ay as SavedAddressResponse, az as SavedAddressInput, aA as SavedAddressUpdateInput, aB as SavedPaymentMethod, aC as PaymentMethodSetupInput, aD as PaymentMethodSetupResult, aE as PaymentMethodConfirmInput, aF as PaymentMethodMutationResponse, aG as StartSubscriptionInput, aH as SubscriptionAgreementResponse, aI as SubscriptionListResponse, aJ as SubscriptionSourceResponse, aK as SubscriptionInvoiceListResponse, aL as SubscriptionInvoiceResponse, aM as GivingIntentListResponse, aN as LeadResponse } from './types-D1GrAYBX.js';
|
|
3
3
|
import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -412,6 +412,19 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
|
|
|
412
412
|
readonly get: (planId: string) => Promise<SubscriptionPlanResponse>;
|
|
413
413
|
};
|
|
414
414
|
};
|
|
415
|
+
readonly bookings: {
|
|
416
|
+
readonly services: {
|
|
417
|
+
readonly list: () => Promise<ListResponse<BookingService>>;
|
|
418
|
+
readonly get: (serviceId: string) => Promise<BookingServiceResponse>;
|
|
419
|
+
};
|
|
420
|
+
readonly availability: (serviceId: string, params?: BookingAvailabilityParams) => Promise<BookingAvailabilityResponse>;
|
|
421
|
+
readonly quote: (serviceId: string, params: BookingQuoteParams) => Promise<BookingQuoteResponse>;
|
|
422
|
+
readonly holds: {
|
|
423
|
+
readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
|
|
424
|
+
readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
|
|
425
|
+
readonly get: (token: string) => Promise<BookingHoldResponse>;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
415
428
|
readonly paymentLinks: {
|
|
416
429
|
readonly get: (linkId: string) => Promise<PublicPaymentLinkResponse>;
|
|
417
430
|
readonly checkout: (linkId: string, input: PaymentLinkCheckoutInput, mutation?: ChannelMutationOptions) => Promise<PaymentLinkCheckoutResponse>;
|
package/dist/next.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-HZBHUOJ5.js';
|
|
2
|
+
import './chunk-T6OQ4CBQ.js';
|
|
3
3
|
import './chunk-XPO7C3DW.js';
|
package/dist/site.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bI as SiteRef, bD as PublicGate, bF as PublicSiteSignals } from './types-D1GrAYBX.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Site signals: what a public site serves, decided from the `signals` block
|
|
@@ -1419,5 +1419,124 @@ interface SubscriptionPlanResponse {
|
|
|
1419
1419
|
interface StartSubscriptionInput {
|
|
1420
1420
|
plan_id: string;
|
|
1421
1421
|
}
|
|
1422
|
+
interface BookingIntakeQuestion {
|
|
1423
|
+
id: string;
|
|
1424
|
+
label: string;
|
|
1425
|
+
kind: string;
|
|
1426
|
+
options?: string[];
|
|
1427
|
+
required?: boolean;
|
|
1428
|
+
}
|
|
1429
|
+
interface BookingServicePricing {
|
|
1430
|
+
mode: string;
|
|
1431
|
+
price_cents: number;
|
|
1432
|
+
payment_policy: string;
|
|
1433
|
+
allow_pay_in_full?: boolean;
|
|
1434
|
+
currency?: string;
|
|
1435
|
+
deposit_kind?: string;
|
|
1436
|
+
deposit_value?: number;
|
|
1437
|
+
}
|
|
1438
|
+
interface BookingCancellationPolicy {
|
|
1439
|
+
late_fee_kind?: string;
|
|
1440
|
+
late_fee_value?: number;
|
|
1441
|
+
refund_before_hours?: number;
|
|
1442
|
+
}
|
|
1443
|
+
interface BookingService {
|
|
1444
|
+
id: string;
|
|
1445
|
+
name: string;
|
|
1446
|
+
confirmation: string;
|
|
1447
|
+
length_mode: string;
|
|
1448
|
+
duration_minutes: number;
|
|
1449
|
+
pricing: BookingServicePricing;
|
|
1450
|
+
intake_questions: BookingIntakeQuestion[];
|
|
1451
|
+
cancellation: BookingCancellationPolicy;
|
|
1452
|
+
roles: string[];
|
|
1453
|
+
description?: string;
|
|
1454
|
+
max_minutes?: number;
|
|
1455
|
+
min_minutes?: number;
|
|
1456
|
+
policy_text?: string;
|
|
1457
|
+
}
|
|
1458
|
+
interface BookingServiceResponse {
|
|
1459
|
+
service: BookingService;
|
|
1460
|
+
}
|
|
1461
|
+
interface BookingTimeRange {
|
|
1462
|
+
starts_at: string;
|
|
1463
|
+
ends_at: string;
|
|
1464
|
+
}
|
|
1465
|
+
interface BookingFreeSpan extends BookingTimeRange {
|
|
1466
|
+
open: BookingTimeRange[];
|
|
1467
|
+
}
|
|
1468
|
+
interface BookingAvailability {
|
|
1469
|
+
service_id: string;
|
|
1470
|
+
length_mode: string;
|
|
1471
|
+
timezone: string;
|
|
1472
|
+
earliest_start: string;
|
|
1473
|
+
latest_start: string;
|
|
1474
|
+
max_minutes?: number;
|
|
1475
|
+
more?: boolean;
|
|
1476
|
+
slots?: BookingTimeRange[];
|
|
1477
|
+
spans?: BookingFreeSpan[];
|
|
1478
|
+
}
|
|
1479
|
+
interface BookingAvailabilityResponse {
|
|
1480
|
+
availability: BookingAvailability;
|
|
1481
|
+
}
|
|
1482
|
+
interface BookingPriceQuote {
|
|
1483
|
+
mode: string;
|
|
1484
|
+
units: number;
|
|
1485
|
+
unit_price_cents: number;
|
|
1486
|
+
total_cents: number;
|
|
1487
|
+
currency: string;
|
|
1488
|
+
payment_policy: string;
|
|
1489
|
+
allow_pay_in_full?: boolean;
|
|
1490
|
+
deposit_cents?: number;
|
|
1491
|
+
}
|
|
1492
|
+
interface BookingQuoteResponse {
|
|
1493
|
+
due_now_cents: number;
|
|
1494
|
+
due_in_full_cents: number;
|
|
1495
|
+
pay_in_full_offered: boolean;
|
|
1496
|
+
price?: BookingPriceQuote;
|
|
1497
|
+
}
|
|
1498
|
+
interface BookingHold {
|
|
1499
|
+
hold_token: string;
|
|
1500
|
+
status: string;
|
|
1501
|
+
service_name: string;
|
|
1502
|
+
starts_at: string;
|
|
1503
|
+
ends_at: string;
|
|
1504
|
+
/** Stripe Checkout URL; redirect the visitor here. Absent once the hold is no longer payable. */
|
|
1505
|
+
checkout_url?: string;
|
|
1506
|
+
hold_expires_at?: string;
|
|
1507
|
+
}
|
|
1508
|
+
interface BookingHoldResponse {
|
|
1509
|
+
hold: BookingHold;
|
|
1510
|
+
}
|
|
1511
|
+
interface BookingCustomerInput {
|
|
1512
|
+
name?: string;
|
|
1513
|
+
email?: string;
|
|
1514
|
+
phone?: string;
|
|
1515
|
+
}
|
|
1516
|
+
interface CreateBookingHoldInput {
|
|
1517
|
+
service_id: string;
|
|
1518
|
+
/** RFC 3339. */
|
|
1519
|
+
starts_at: string;
|
|
1520
|
+
/** RFC 3339; flexible-length services only. */
|
|
1521
|
+
ends_at?: string;
|
|
1522
|
+
customer?: BookingCustomerInput;
|
|
1523
|
+
intake_answers?: Record<string, string>;
|
|
1524
|
+
accept_terms?: boolean;
|
|
1525
|
+
pay_option?: string;
|
|
1526
|
+
/** Honeypot: pass through the hidden form field's value untouched; a filled value marks a bot. */
|
|
1527
|
+
_gotcha?: string;
|
|
1528
|
+
}
|
|
1529
|
+
interface BookingAvailabilityParams {
|
|
1530
|
+
/** RFC 3339. */
|
|
1531
|
+
from?: string;
|
|
1532
|
+
/** RFC 3339. */
|
|
1533
|
+
to?: string;
|
|
1534
|
+
}
|
|
1535
|
+
interface BookingQuoteParams {
|
|
1536
|
+
/** RFC 3339. */
|
|
1537
|
+
startsAt: string;
|
|
1538
|
+
/** RFC 3339; omit for a fixed-length service. */
|
|
1539
|
+
endsAt?: string;
|
|
1540
|
+
}
|
|
1422
1541
|
|
|
1423
|
-
export type { ThemeResponse as $, AddCartItemInput as A, DashMovingAddressList as B, CartResponse as C, DashProfileResponse as D, DashMovingAddress as E, DashMovingDistance as F, PublicWorkspaceInit as G, LightInitResponse as H, PublicPageSummary as I, PublicPage as J, Product as K, ListResponse as L, ProductAsset as M, CatalogCategory as N, Order as O, PaymentCollectionAvailability as P, CatalogProductsResponse as Q, CatalogCollection as R, SiteDocument as S, CatalogBrand as T, CartLookupResponse as U, UpdateCartItemInput as V, WaitlistVerification as W, MergeCartInput as X, Review as Y, ReviewSummaryResponse as Z, PublicSubmitReviewInput as _, CheckoutOptions as a,
|
|
1542
|
+
export type { ThemeResponse as $, AddCartItemInput as A, DashMovingAddressList as B, CartResponse as C, DashProfileResponse as D, DashMovingAddress as E, DashMovingDistance as F, PublicWorkspaceInit as G, LightInitResponse as H, PublicPageSummary as I, PublicPage as J, Product as K, ListResponse as L, ProductAsset as M, CatalogCategory as N, Order as O, PaymentCollectionAvailability as P, CatalogProductsResponse as Q, CatalogCollection as R, SiteDocument as S, CatalogBrand as T, CartLookupResponse as U, UpdateCartItemInput as V, WaitlistVerification as W, MergeCartInput as X, Review as Y, ReviewSummaryResponse as Z, PublicSubmitReviewInput as _, CheckoutOptions as a, CustomerSecurityActivity as a$, MenuResponse as a0, BlogPost as a1, BlogPostResponse as a2, GivingEntry as a3, StartGivingInput as a4, StartGivingResponse as a5, SubscriptionPlanListResponse as a6, SubscriptionPlanResponse as a7, BookingService as a8, BookingServiceResponse as a9, SavedAddressUpdateInput as aA, SavedPaymentMethod as aB, PaymentMethodSetupInput as aC, PaymentMethodSetupResult as aD, PaymentMethodConfirmInput as aE, PaymentMethodMutationResponse as aF, StartSubscriptionInput as aG, SubscriptionAgreementResponse as aH, SubscriptionListResponse as aI, SubscriptionSourceResponse as aJ, SubscriptionInvoiceListResponse as aK, SubscriptionInvoiceResponse as aL, GivingIntentListResponse as aM, LeadResponse as aN, BookingAvailability as aO, BookingCancellationPolicy as aP, BookingCustomerInput as aQ, BookingFreeSpan as aR, BookingHold as aS, BookingIntakeQuestion as aT, BookingPriceQuote as aU, BookingServicePricing as aV, BookingTimeRange as aW, CatalogProduct as aX, CheckoutAddress as aY, CheckoutStatus as aZ, Customer as a_, BookingAvailabilityParams as aa, BookingAvailabilityResponse as ab, BookingQuoteParams as ac, BookingQuoteResponse as ad, CreateBookingHoldInput as ae, BookingHoldResponse as af, PublicPaymentLinkResponse as ag, PaymentLinkCheckoutInput as ah, PaymentLinkCheckoutResponse as ai, PaymentLinkRedemptionStatusResponse as aj, PrintSettingsResponse as ak, PrintOptionsSelection as al, PrintQuoteResponse as am, PrintIntakeInput as an, PrintJob as ao, DiningMenu as ap, CustomerSignupResponse as aq, SendCodeResponse as ar, CustomerSession as as, CustomerResponse as at, CustomerAuthSession as au, CustomerSecurityActivityPage as av, OrderSummary as aw, SavedAddress as ax, SavedAddressResponse as ay, SavedAddressInput as az, CheckoutStatusResponse as b, DashBrandingInfo as b0, DashDirectoryProfile as b1, DashLeadPortalMatch as b2, DashLeadPortalMovingSummary as b3, DashLeadPortalRequest as b4, DashLeadPortalRequestStatus as b5, DashLocaleInfo as b6, DashPlan as b7, DashPlanPricing as b8, DashPlanRegion as b9, PrintPriceLine as bA, PrintPricing as bB, PrintPricingOption as bC, PublicGate as bD, PublicPaymentLink as bE, PublicSiteSignals as bF, ShippingMethodOption as bG, SiteGatedDocument as bH, SiteRef as bI, SiteResolvedDocument as bJ, SiteSubject as bK, SubscriptionAgreement as bL, SubscriptionInvoice as bM, SubscriptionPlanOffer as bN, SubscriptionSourceDisplay as bO, WaitlistAttribution as bP, WorkspaceInfo as bQ, DashPublicPage as ba, DashPublicProfileInfo as bb, DashTenantInfo as bc, DiningAvailability as bd, DiningAvailabilityRule as be, DiningComboChoice as bf, DiningComboGroup as bg, DiningItemSize as bh, DiningMenuItem as bi, DiningModifier as bj, DiningModifierGroup as bk, DiningOffer as bl, DiningOfferBadge as bm, GivingIntent as bn, Menu as bo, MenuItem as bp, OrderItem as bq, PaymentLinkRedemptionStatus as br, PaymentMethodOption as bs, PaymentReadiness as bt, PrintBranding as bu, PrintIntakeLimits as bv, PrintJobFile as bw, PrintPaperSize as bx, PrintPerPagePricing as by, PrintPriceBreakdown as bz, CheckoutCustomerInput as c, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistUnsubscription as k, DashInitResponse as l, WaitlistGateStatus as m, WaitlistFormSettings as n, WaitlistSubmission as o, WaitlistAcknowledgement as p, DashPlansResponse as q, DashDirectoryRegion as r, DashDirectoryEntry as s, DashDirectoryProfileResponse as t, DashLead as u, DashLeadPortalRequestLinkInput as v, DashLeadPortalRequestLinkResponse as w, DashLeadPortalView as x, DashMovingQuoteInput as y, DashMovingQuoteReceipt as z };
|