@c1m-public/channel-client 4.0.0 → 4.1.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.
@@ -1,4 +1,4 @@
1
- import { isChannelAPIError, createChannelClient } from './chunk-CXNWN5M5.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-SZ2GFSXD.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -190,12 +190,19 @@ async function visitorHeaders(token, method, path, visitor) {
190
190
  "X-C1M-Visitor-Signature": signature
191
191
  };
192
192
  }
193
+ var SITE_PAGES = ["receipt", "account", "manage-subscription"];
194
+ function sitePagesOf(options) {
195
+ const declared = new Set(options.sitePages ?? []);
196
+ if (options.receiptPage) declared.add("receipt");
197
+ return SITE_PAGES.filter((page) => declared.has(page));
198
+ }
193
199
  function createChannelClient(options) {
194
200
  return buildChannelClient(options);
195
201
  }
196
202
  function buildChannelClient(options, viewer) {
197
203
  const baseUrl = (options.baseUrl === void 0 ? DEFAULT_CHANNEL_API_URL : required(options.baseUrl, "baseUrl")).replace(/\/+$/, "");
198
204
  const token = required(options.token, "token");
205
+ const declaredSitePages = sitePagesOf(options);
199
206
  if (!token.startsWith(CHANNEL_TOKEN_PREFIX)) throw new ChannelConfigurationError("token must start with sk_chan_");
200
207
  const fetcher = options.fetch ?? globalThis.fetch;
201
208
  if (!fetcher) throw new ChannelConfigurationError("fetch implementation is required");
@@ -218,7 +225,8 @@ function buildChannelClient(options, viewer) {
218
225
  if (signedVisitor) {
219
226
  for (const [key, value] of Object.entries(signedVisitor)) headers.set(key, value);
220
227
  }
221
- if (options.receiptPage) headers.set("X-Receipt-Page", "1");
228
+ if (declaredSitePages.length) headers.set("X-Site-Pages", declaredSitePages.join(","));
229
+ if (declaredSitePages.includes("receipt")) headers.set("X-Receipt-Page", "1");
222
230
  const effectiveSession = session ?? viewer;
223
231
  if (effectiveSession) headers.set("X-End-User-Token", effectiveSession);
224
232
  if (init.body !== void 0 && !isFormDataBody(init.body) && !headers.has("Content-Type")) {
@@ -718,6 +726,13 @@ function buildChannelClient(options, viewer) {
718
726
  get: (agreementId) => request("channel.account.subscriptions.get", `/account/subscriptions/${encodePath(agreementId)}`, {}, customerSession),
719
727
  source: (agreementId) => request("channel.account.subscriptions.source", `/account/subscriptions/${encodePath(agreementId)}/source`, {}, customerSession)
720
728
  },
729
+ bookings: {
730
+ list: (params = {}) => request("channel.account.bookings.list", appendQuery("/account/bookings", params), {}, customerSession)
731
+ },
732
+ payments: {
733
+ /** The customer's payment-link payments. */
734
+ list: (params = {}) => request("channel.account.payment_links.list", appendQuery("/account/payments", params), {}, customerSession)
735
+ },
721
736
  giving: {
722
737
  list: () => request("channel.account.giving.list", "/account/giving", {}, customerSession),
723
738
  start: (input, mutation) => request("channel.giving.start", "/give/start", {
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-CXNWN5M5.js';
1
+ import { createChannelClient } from './chunk-SZ2GFSXD.js';
2
2
  import 'server-only';
3
3
 
4
4
  function narrow(client) {
@@ -1,7 +1,7 @@
1
1
  import { DashChannelClient } from './dash.js';
2
2
  import { CreateNextChannelClientOptions } from './next.js';
3
3
  import './index.js';
4
- import './types-SZWnEWzJ.js';
4
+ import './types-tOFjxrQP.js';
5
5
  import './webhooks.js';
6
6
 
7
7
  /**
package/dist/dash-next.js CHANGED
@@ -1,6 +1,6 @@
1
- import { createNextChannelClient } from './chunk-IDWCPTIC.js';
2
- import { narrow } from './chunk-JV3I6LIR.js';
3
- import './chunk-CXNWN5M5.js';
1
+ import { createNextChannelClient } from './chunk-GZB2OOOK.js';
2
+ import { narrow } from './chunk-VRKR3SGI.js';
3
+ import './chunk-SZ2GFSXD.js';
4
4
  import './chunk-XPO7C3DW.js';
5
5
  import 'server-only';
6
6
 
package/dist/dash.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createChannelClient, ChannelVisitor, CreateChannelClientOptions } from './index.js';
2
- import './types-SZWnEWzJ.js';
2
+ import './types-tOFjxrQP.js';
3
3
  import './webhooks.js';
4
4
 
5
5
  /**
package/dist/dash.js CHANGED
@@ -1,3 +1,3 @@
1
- export { createDashChannelClient, narrow as narrowToDash } from './chunk-JV3I6LIR.js';
2
- import './chunk-CXNWN5M5.js';
1
+ export { createDashChannelClient, narrow as narrowToDash } from './chunk-VRKR3SGI.js';
2
+ import './chunk-SZ2GFSXD.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 WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, aY as BeginUploadInput, aZ as CompleteUploadInput, $ as ArtworkMutationReceipt, a_ as DecisionInput, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a8 as UpdateCartItemInput, a9 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, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, O as Order, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as GivingIntentListResponse, aX as LeadResponse, a$ as Slot } from './types-SZWnEWzJ.js';
2
- export { b0 as BookingAvailability, b1 as BookingCancellationPolicy, b2 as BookingCustomerInput, b3 as BookingFreeSpan, b4 as BookingHold, b5 as BookingIntakeQuestion, b6 as BookingPriceQuote, b7 as BookingServicePricing, b8 as BookingTimeRange, b9 as CatalogProduct, ba as ChannelReceipt, bb as ChannelReceiptLine, bc as ChannelReceiptRecurring, bd as CheckoutAddress, be as CheckoutStatus, bf as ConfigDocument, bg as ConfigQuote, bh as ConfigSelectionRequest, bi as Customer, bj as CustomerSecurityActivity, bk as DashBrandingInfo, bl as DashDirectoryProfile, bm as DashLeadPortalMatch, bn as DashLeadPortalMovingSummary, bo as DashLeadPortalRequest, bp as DashLeadPortalRequestStatus, bq as DashLocaleInfo, br as DashPlan, bs as DashPlanLimitValue, bt as DashPlanPricing, bu as DashPublicPage, bv as DashPublicProfileInfo, bw as DashTenantInfo, bx as DiningAvailability, by as DiningAvailabilityRule, bz as DiningComboChoice, bA as DiningComboGroup, bB as DiningItemSize, bC as DiningMenuItem, bD as DiningModifier, bE as DiningModifierGroup, bF as DiningOffer, bG as DiningOfferBadge, bH as FileRequestTokenInput, bI as GivingIntent, bJ as Menu, bK as MenuItem, bL as OrderItem, bM as PaymentLinkRedemptionStatus, bN as PaymentMethodOption, bO as PaymentReadiness, bP as PrintBranding, bQ as PrintIntakeLimits, bR as PrintJobFile, bS as PrintPaperSize, bT as PrintPerPagePricing, bU as PrintPriceBreakdown, bV as PrintPriceLine, bW as PrintPricing, bX as PrintPricingOption, bY as ProductLineConfiguration, bZ as PublicGate, b_ as PublicPaymentLink, b$ as PublicSiteSignals, c0 as ShippingMethodOption, c1 as SiteGatedDocument, c2 as SiteRef, c3 as SiteResolvedDocument, c4 as SiteSubject, c5 as SubscriptionAgreement, c6 as SubscriptionPlanOffer, c7 as SubscriptionSourceDisplay, c8 as WaitlistAttribution, c9 as WorkspaceInfo } from './types-SZWnEWzJ.js';
1
+ import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, a_ as BeginUploadInput, a$ as CompleteUploadInput, $ as ArtworkMutationReceipt, b0 as DecisionInput, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a8 as UpdateCartItemInput, a9 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, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, O as Order, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as AccountBooking, aX as AccountPayment, aY as GivingIntentListResponse, aZ as LeadResponse, b1 as Slot } from './types-tOFjxrQP.js';
2
+ export { b2 as BookingAvailability, b3 as BookingCancellationPolicy, b4 as BookingCustomerInput, b5 as BookingFreeSpan, b6 as BookingHold, b7 as BookingIntakeQuestion, b8 as BookingPriceQuote, b9 as BookingServicePricing, ba as BookingTimeRange, bb as CatalogProduct, bc as ChannelReceipt, bd as ChannelReceiptLine, be as ChannelReceiptRecurring, bf as CheckoutAddress, bg as CheckoutStatus, bh as ConfigDocument, bi as ConfigQuote, bj as ConfigSelectionRequest, bk as Customer, bl as CustomerSecurityActivity, bm as DashBrandingInfo, bn as DashDirectoryProfile, bo as DashLeadPortalMatch, bp as DashLeadPortalMovingSummary, bq as DashLeadPortalRequest, br as DashLeadPortalRequestStatus, bs as DashLocaleInfo, bt as DashPlan, bu as DashPlanLimitValue, bv as DashPlanPricing, bw as DashPublicPage, bx as DashPublicProfileInfo, by as DashTenantInfo, bz as DiningAvailability, bA as DiningAvailabilityRule, bB as DiningComboChoice, bC as DiningComboGroup, bD as DiningItemSize, bE as DiningMenuItem, bF as DiningModifier, bG as DiningModifierGroup, bH as DiningOffer, bI as DiningOfferBadge, bJ as FileRequestTokenInput, bK as GivingIntent, bL as Menu, bM as MenuItem, bN as OrderItem, bO as PaymentLinkRedemptionStatus, bP as PaymentMethodOption, bQ as PaymentReadiness, bR as PrintBranding, bS as PrintIntakeLimits, bT as PrintJobFile, bU as PrintPaperSize, bV as PrintPerPagePricing, bW as PrintPriceBreakdown, bX as PrintPriceLine, bY as PrintPricing, bZ as PrintPricingOption, b_ as ProductLineConfiguration, b$ as PublicGate, c0 as PublicPaymentLink, c1 as PublicSiteSignals, c2 as ShippingMethodOption, c3 as SiteGatedDocument, c4 as SiteRef, c5 as SiteResolvedDocument, c6 as SiteSubject, c7 as SubscriptionAgreement, c8 as SubscriptionPlanOffer, c9 as SubscriptionSourceDisplay, ca as WaitlistAttribution, cb as WorkspaceInfo } from './types-tOFjxrQP.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
  /**
@@ -76,14 +76,25 @@ interface CreateChannelClientOptions {
76
76
  * own success pages.
77
77
  */
78
78
  receiptPage?: boolean;
79
+ /**
80
+ * The customer pages this site serves at the built-in site's paths:
81
+ * `receipt` (`/receipt/{token}`), `account` (`/account`, `/account/orders/{id}`,
82
+ * `/account/subscriptions/{id}`, `/account/giving`, `/account/bookings`,
83
+ * `/account/payments`) and `manage-subscription`. When the site serves the
84
+ * workspace's primary domain, purchase emails link these pages instead of
85
+ * the built-in site's. Declare only pages that exist. `receiptPage: true`
86
+ * is the same as including `receipt`.
87
+ */
88
+ sitePages?: readonly ChannelSitePage[];
79
89
  }
90
+ type ChannelSitePage = "receipt" | "account" | "manage-subscription";
80
91
  interface ChannelVisitor {
81
92
  ip?: string;
82
93
  country?: string;
83
94
  userAgent?: string;
84
95
  }
85
96
  type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
86
- type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.access" | "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.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "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.book.holds.release" | "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.billing.portal" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "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.waitlist.status" | "channel.waitlist.form" | "channel.waitlist.submit" | "channel.file_requests.view" | "channel.file_requests.uploads.begin" | "channel.file_requests.uploads.complete" | "channel.file_requests.close" | "channel.receipts.get" | "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";
97
+ type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.access" | "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.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "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.book.holds.release" | "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.bookings.list" | "channel.account.payment_links.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.billing.portal" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "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.waitlist.status" | "channel.waitlist.form" | "channel.waitlist.submit" | "channel.file_requests.view" | "channel.file_requests.uploads.begin" | "channel.file_requests.uploads.complete" | "channel.file_requests.close" | "channel.receipts.get" | "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";
87
98
  interface ChannelRequestObservation {
88
99
  operation: ChannelOperation;
89
100
  method: string;
@@ -102,6 +113,10 @@ interface ChannelListParams {
102
113
  cursor?: string;
103
114
  limit?: number;
104
115
  }
116
+ interface ChannelAccountBookingListParams extends ChannelListParams {
117
+ /** `upcoming` (soonest first) or `past` (latest first); all, latest first, when omitted. */
118
+ when?: "upcoming" | "past";
119
+ }
105
120
  interface ChannelProductListParams extends ChannelListParams {
106
121
  currency?: string;
107
122
  search?: string;
@@ -461,6 +476,13 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
461
476
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
462
477
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
463
478
  };
479
+ readonly bookings: {
480
+ readonly list: (params?: ChannelAccountBookingListParams) => Promise<ListResponse<AccountBooking>>;
481
+ };
482
+ readonly payments: {
483
+ /** The customer's payment-link payments. */
484
+ readonly list: (params?: ChannelListParams) => Promise<ListResponse<AccountPayment>>;
485
+ };
464
486
  readonly giving: {
465
487
  readonly list: () => Promise<GivingIntentListResponse>;
466
488
  readonly start: (input: StartGivingInput, mutation?: ChannelMutationOptions) => Promise<StartGivingResponse>;
@@ -473,4 +495,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
473
495
  };
474
496
  };
475
497
 
476
- export { AccountBillingPortalInput, AccountBillingPortalResponse, AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, ChannelReceiptResponse, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, 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, DownloadResponse, FileRequestClosed, FileRequestCompleteInput, FileRequestReceivedFile, FileRequestUploadInput, FileRequestUploadTicket, FileRequestView, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SendCodeResponse, SiteAccess, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionCheckoutResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, type UploadTicket, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
498
+ export { AccountBillingPortalInput, AccountBillingPortalResponse, AccountBooking, AccountPayment, AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelAccountBookingListParams, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, ChannelReceiptResponse, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSitePage, type ChannelSiteResolveParams, 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, DownloadResponse, FileRequestClosed, FileRequestCompleteInput, FileRequestReceivedFile, FileRequestUploadInput, FileRequestUploadTicket, FileRequestView, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SendCodeResponse, SiteAccess, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionCheckoutResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, type UploadTicket, 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-CXNWN5M5.js';
1
+ export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-SZ2GFSXD.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, ArtworkUploadInput, UploadTicket, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams } 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 WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, $ as ArtworkMutationReceipt, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, a8 as UpdateCartItemInput, a9 as MergeCartInput, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as GivingIntentListResponse, aX as LeadResponse } from './types-SZWnEWzJ.js';
1
+ import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, UploadTicket, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams, ChannelAccountBookingListParams } 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 WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, $ as ArtworkMutationReceipt, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, a8 as UpdateCartItemInput, a9 as MergeCartInput, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as AccountBooking, aX as AccountPayment, aY as GivingIntentListResponse, aZ as LeadResponse } from './types-tOFjxrQP.js';
3
3
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
4
4
 
5
5
  /**
@@ -544,6 +544,12 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
544
544
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
545
545
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
546
546
  };
547
+ readonly bookings: {
548
+ readonly list: (params?: ChannelAccountBookingListParams) => Promise<ListResponse<AccountBooking>>;
549
+ };
550
+ readonly payments: {
551
+ readonly list: (params?: ChannelListParams) => Promise<ListResponse<AccountPayment>>;
552
+ };
547
553
  readonly giving: {
548
554
  readonly list: () => Promise<GivingIntentListResponse>;
549
555
  readonly start: (input: StartGivingInput, mutation?: ChannelMutationOptions) => Promise<StartGivingResponse>;
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-IDWCPTIC.js';
2
- import './chunk-CXNWN5M5.js';
1
+ export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-GZB2OOOK.js';
2
+ import './chunk-SZ2GFSXD.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/site.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c2 as SiteRef, bZ as PublicGate, b$ as PublicSiteSignals } from './types-SZWnEWzJ.js';
1
+ import { c4 as SiteRef, b$ as PublicGate, c1 as PublicSiteSignals } from './types-tOFjxrQP.js';
2
2
 
3
3
  /**
4
4
  * Site signals: what a public site serves, decided from the `signals` block
@@ -1769,5 +1769,27 @@ interface ChannelReceipt {
1769
1769
  interface ChannelReceiptResponse {
1770
1770
  receipt: ChannelReceipt;
1771
1771
  }
1772
+ /** A booking the signed-in customer holds (`withCustomer(...).bookings.list`). */
1773
+ interface AccountBooking {
1774
+ id: string;
1775
+ service_name: string;
1776
+ starts_at: string;
1777
+ ends_at: string;
1778
+ status: "requested" | "pending_payment" | "confirmed" | "completed" | "cancelled" | "expired";
1779
+ reference: string;
1780
+ amount_cents?: number;
1781
+ currency?: string;
1782
+ }
1783
+ /** A payment-link payment the signed-in customer made (`withCustomer(...).payments.list`). */
1784
+ interface AccountPayment {
1785
+ id: string;
1786
+ title: string;
1787
+ amount_cents: number;
1788
+ currency: string;
1789
+ status: string;
1790
+ created_at: string;
1791
+ paid_at?: string;
1792
+ reference: string;
1793
+ }
1772
1794
 
1773
- export type { ArtworkMutationReceipt as $, AddCartItemInput as A, DashLead as B, CartResponse as C, DashProfileResponse as D, DashLeadPortalRequestLinkInput as E, FileRequestView as F, DashLeadPortalRequestLinkResponse as G, DashLeadPortalView as H, DashMovingQuoteInput as I, DashMovingQuoteReceipt as J, DashMovingAddressList as K, ListResponse as L, DashMovingAddress as M, DashMovingDistance as N, Order as O, PaymentCollectionAvailability as P, SiteDocument as Q, PublicWorkspaceInit as R, SiteAccess as S, LightInitResponse as T, PublicPageSummary as U, PublicPage as V, WaitlistGateStatus as W, Product as X, ProductAsset as Y, SlotsResponse as Z, DownloadResponse as _, CheckoutOptions as a, Slot as a$, PublicConfiguration as a0, PublicConfigurationQuoteInput as a1, PublicConfigurationQuote as a2, CatalogCategory as a3, CatalogProductsResponse as a4, CatalogCollection as a5, CatalogBrand as a6, CartLookupResponse as a7, UpdateCartItemInput as a8, MergeCartInput as a9, PrintQuoteResponse as aA, PrintIntakeInput as aB, PrintJob as aC, DiningMenu as aD, CustomerSignupResponse as aE, SendCodeResponse as aF, CustomerSession as aG, CustomerResponse as aH, CustomerAuthSession as aI, CustomerSecurityActivityPage as aJ, OrderSummary as aK, SavedAddress as aL, SavedAddressResponse as aM, SavedAddressInput as aN, SavedAddressUpdateInput as aO, AccountBillingPortalInput as aP, AccountBillingPortalResponse as aQ, StartSubscriptionInput as aR, SubscriptionCheckoutResponse as aS, SubscriptionListResponse as aT, SubscriptionAgreementResponse as aU, SubscriptionSourceResponse as aV, GivingIntentListResponse as aW, LeadResponse as aX, BeginUploadInput as aY, CompleteUploadInput as aZ, DecisionInput as a_, Review as aa, ReviewSummaryResponse as ab, PublicSubmitReviewInput as ac, ThemeResponse as ad, MenuResponse as ae, BlogPost as af, BlogPostResponse as ag, GivingEntry as ah, StartGivingInput as ai, StartGivingResponse as aj, SubscriptionPlanListResponse as ak, SubscriptionPlanResponse as al, BookingService as am, BookingServiceResponse as an, BookingAvailabilityParams as ao, BookingAvailabilityResponse as ap, BookingQuoteParams as aq, BookingQuoteResponse as ar, CreateBookingHoldInput as as, BookingHoldResponse as at, PublicPaymentLinkResponse as au, PaymentLinkCheckoutInput as av, PaymentLinkCheckoutResponse as aw, PaymentLinkRedemptionStatusResponse as ax, PrintSettingsResponse as ay, PrintOptionsSelection as az, CheckoutStatusResponse as b, PublicSiteSignals as b$, BookingAvailability as b0, BookingCancellationPolicy as b1, BookingCustomerInput as b2, BookingFreeSpan as b3, BookingHold as b4, BookingIntakeQuestion as b5, BookingPriceQuote as b6, BookingServicePricing as b7, BookingTimeRange as b8, CatalogProduct as b9, DiningComboGroup as bA, DiningItemSize as bB, DiningMenuItem as bC, DiningModifier as bD, DiningModifierGroup as bE, DiningOffer as bF, DiningOfferBadge as bG, FileRequestTokenInput as bH, GivingIntent as bI, Menu as bJ, MenuItem as bK, OrderItem as bL, PaymentLinkRedemptionStatus as bM, PaymentMethodOption as bN, PaymentReadiness as bO, PrintBranding as bP, PrintIntakeLimits as bQ, PrintJobFile as bR, PrintPaperSize as bS, PrintPerPagePricing as bT, PrintPriceBreakdown as bU, PrintPriceLine as bV, PrintPricing as bW, PrintPricingOption as bX, ProductLineConfiguration as bY, PublicGate as bZ, PublicPaymentLink as b_, ChannelReceipt as ba, ChannelReceiptLine as bb, ChannelReceiptRecurring as bc, CheckoutAddress as bd, CheckoutStatus as be, ConfigDocument as bf, ConfigQuote as bg, ConfigSelectionRequest as bh, Customer as bi, CustomerSecurityActivity as bj, DashBrandingInfo as bk, DashDirectoryProfile as bl, DashLeadPortalMatch as bm, DashLeadPortalMovingSummary as bn, DashLeadPortalRequest as bo, DashLeadPortalRequestStatus as bp, DashLocaleInfo as bq, DashPlan as br, DashPlanLimitValue as bs, DashPlanPricing as bt, DashPublicPage as bu, DashPublicProfileInfo as bv, DashTenantInfo as bw, DiningAvailability as bx, DiningAvailabilityRule as by, DiningComboChoice as bz, CheckoutCustomerInput as c, ShippingMethodOption as c0, SiteGatedDocument as c1, SiteRef as c2, SiteResolvedDocument as c3, SiteSubject as c4, SubscriptionAgreement as c5, SubscriptionPlanOffer as c6, SubscriptionSourceDisplay as c7, WaitlistAttribution as c8, WorkspaceInfo as c9, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistFormSettings as k, WaitlistSubmission as l, WaitlistAcknowledgement as m, WaitlistVerification as n, WaitlistUnsubscription as o, FileRequestUploadInput as p, FileRequestUploadTicket as q, FileRequestCompleteInput as r, FileRequestReceivedFile as s, FileRequestClosed as t, ChannelReceiptResponse as u, DashInitResponse as v, DashPlansResponse as w, DashDirectoryRegion as x, DashDirectoryEntry as y, DashDirectoryProfileResponse as z };
1795
+ export type { ArtworkMutationReceipt as $, AddCartItemInput as A, DashLead as B, CartResponse as C, DashProfileResponse as D, DashLeadPortalRequestLinkInput as E, FileRequestView as F, DashLeadPortalRequestLinkResponse as G, DashLeadPortalView as H, DashMovingQuoteInput as I, DashMovingQuoteReceipt as J, DashMovingAddressList as K, ListResponse as L, DashMovingAddress as M, DashMovingDistance as N, Order as O, PaymentCollectionAvailability as P, SiteDocument as Q, PublicWorkspaceInit as R, SiteAccess as S, LightInitResponse as T, PublicPageSummary as U, PublicPage as V, WaitlistGateStatus as W, Product as X, ProductAsset as Y, SlotsResponse as Z, DownloadResponse as _, CheckoutOptions as a, CompleteUploadInput as a$, PublicConfiguration as a0, PublicConfigurationQuoteInput as a1, PublicConfigurationQuote as a2, CatalogCategory as a3, CatalogProductsResponse as a4, CatalogCollection as a5, CatalogBrand as a6, CartLookupResponse as a7, UpdateCartItemInput as a8, MergeCartInput as a9, PrintQuoteResponse as aA, PrintIntakeInput as aB, PrintJob as aC, DiningMenu as aD, CustomerSignupResponse as aE, SendCodeResponse as aF, CustomerSession as aG, CustomerResponse as aH, CustomerAuthSession as aI, CustomerSecurityActivityPage as aJ, OrderSummary as aK, SavedAddress as aL, SavedAddressResponse as aM, SavedAddressInput as aN, SavedAddressUpdateInput as aO, AccountBillingPortalInput as aP, AccountBillingPortalResponse as aQ, StartSubscriptionInput as aR, SubscriptionCheckoutResponse as aS, SubscriptionListResponse as aT, SubscriptionAgreementResponse as aU, SubscriptionSourceResponse as aV, AccountBooking as aW, AccountPayment as aX, GivingIntentListResponse as aY, LeadResponse as aZ, BeginUploadInput as a_, Review as aa, ReviewSummaryResponse as ab, PublicSubmitReviewInput as ac, ThemeResponse as ad, MenuResponse as ae, BlogPost as af, BlogPostResponse as ag, GivingEntry as ah, StartGivingInput as ai, StartGivingResponse as aj, SubscriptionPlanListResponse as ak, SubscriptionPlanResponse as al, BookingService as am, BookingServiceResponse as an, BookingAvailabilityParams as ao, BookingAvailabilityResponse as ap, BookingQuoteParams as aq, BookingQuoteResponse as ar, CreateBookingHoldInput as as, BookingHoldResponse as at, PublicPaymentLinkResponse as au, PaymentLinkCheckoutInput as av, PaymentLinkCheckoutResponse as aw, PaymentLinkRedemptionStatusResponse as ax, PrintSettingsResponse as ay, PrintOptionsSelection as az, CheckoutStatusResponse as b, PublicGate as b$, DecisionInput as b0, Slot as b1, BookingAvailability as b2, BookingCancellationPolicy as b3, BookingCustomerInput as b4, BookingFreeSpan as b5, BookingHold as b6, BookingIntakeQuestion as b7, BookingPriceQuote as b8, BookingServicePricing as b9, DiningAvailabilityRule as bA, DiningComboChoice as bB, DiningComboGroup as bC, DiningItemSize as bD, DiningMenuItem as bE, DiningModifier as bF, DiningModifierGroup as bG, DiningOffer as bH, DiningOfferBadge as bI, FileRequestTokenInput as bJ, GivingIntent as bK, Menu as bL, MenuItem as bM, OrderItem as bN, PaymentLinkRedemptionStatus as bO, PaymentMethodOption as bP, PaymentReadiness as bQ, PrintBranding as bR, PrintIntakeLimits as bS, PrintJobFile as bT, PrintPaperSize as bU, PrintPerPagePricing as bV, PrintPriceBreakdown as bW, PrintPriceLine as bX, PrintPricing as bY, PrintPricingOption as bZ, ProductLineConfiguration as b_, BookingTimeRange as ba, CatalogProduct as bb, ChannelReceipt as bc, ChannelReceiptLine as bd, ChannelReceiptRecurring as be, CheckoutAddress as bf, CheckoutStatus as bg, ConfigDocument as bh, ConfigQuote as bi, ConfigSelectionRequest as bj, Customer as bk, CustomerSecurityActivity as bl, DashBrandingInfo as bm, DashDirectoryProfile as bn, DashLeadPortalMatch as bo, DashLeadPortalMovingSummary as bp, DashLeadPortalRequest as bq, DashLeadPortalRequestStatus as br, DashLocaleInfo as bs, DashPlan as bt, DashPlanLimitValue as bu, DashPlanPricing as bv, DashPublicPage as bw, DashPublicProfileInfo as bx, DashTenantInfo as by, DiningAvailability as bz, CheckoutCustomerInput as c, PublicPaymentLink as c0, PublicSiteSignals as c1, ShippingMethodOption as c2, SiteGatedDocument as c3, SiteRef as c4, SiteResolvedDocument as c5, SiteSubject as c6, SubscriptionAgreement as c7, SubscriptionPlanOffer as c8, SubscriptionSourceDisplay as c9, WaitlistAttribution as ca, WorkspaceInfo as cb, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistFormSettings as k, WaitlistSubmission as l, WaitlistAcknowledgement as m, WaitlistVerification as n, WaitlistUnsubscription as o, FileRequestUploadInput as p, FileRequestUploadTicket as q, FileRequestCompleteInput as r, FileRequestReceivedFile as s, FileRequestClosed as t, ChannelReceiptResponse as u, DashInitResponse as v, DashPlansResponse as w, DashDirectoryRegion as x, DashDirectoryEntry as y, DashDirectoryProfileResponse as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/channel-client",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",