@c1m-public/channel-client 1.1.0 → 4.0.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.
@@ -218,6 +218,7 @@ function buildChannelClient(options, viewer) {
218
218
  if (signedVisitor) {
219
219
  for (const [key, value] of Object.entries(signedVisitor)) headers.set(key, value);
220
220
  }
221
+ if (options.receiptPage) headers.set("X-Receipt-Page", "1");
221
222
  const effectiveSession = session ?? viewer;
222
223
  if (effectiveSession) headers.set("X-End-User-Token", effectiveSession);
223
224
  if (init.body !== void 0 && !isFormDataBody(init.body) && !headers.has("Content-Type")) {
@@ -349,6 +350,14 @@ function buildChannelClient(options, viewer) {
349
350
  body: JSON.stringify({ token: required(token2, "token") })
350
351
  })
351
352
  },
353
+ /**
354
+ * A purchase by its receipt link (workspace token). The token is the
355
+ * credential; pass the customer's session to learn whether they made the
356
+ * purchase. Answers are never cached: render them per request.
357
+ */
358
+ receipts: {
359
+ get: (token2, options2 = {}) => request("channel.receipts.get", `/receipts/${encodePath(required(token2, "token"))}`, { cache: "no-store" }, options2.endUserToken?.trim() || void 0)
360
+ },
352
361
  /** Tenant-level data exposed only to a dash-scoped channel token. */
353
362
  dash: {
354
363
  profile: () => request("channel.dash.profile", "/dash/profile"),
@@ -579,7 +588,12 @@ function buildChannelClient(options, viewer) {
579
588
  method: "POST",
580
589
  headers: mutationHeaders(mutation)
581
590
  }),
582
- get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`)
591
+ get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`),
592
+ // Free the slot when the customer leaves checkout and chooses another time.
593
+ release: (token2, mutation) => request("channel.book.holds.release", `/book/holds/${encodePath(token2)}/release`, {
594
+ method: "POST",
595
+ headers: mutationHeaders(mutation)
596
+ })
583
597
  }
584
598
  },
585
599
  paymentLinks: {
@@ -688,25 +702,10 @@ function buildChannelClient(options, viewer) {
688
702
  body: JSON.stringify({ kind: "shipping" })
689
703
  }, customerSession)
690
704
  },
691
- paymentMethods: {
692
- list: () => request("channel.account.payment_methods.list", "/account/payment-methods", {}, customerSession),
693
- setup: (input, mutation) => request("channel.account.payment_methods.setup", "/account/payment-methods/setup", {
705
+ billing: {
706
+ portal: (input) => request("channel.account.billing.portal", "/account/billing/portal", {
694
707
  method: "POST",
695
- headers: mutationHeaders(mutation),
696
708
  body: JSON.stringify(input)
697
- }, customerSession),
698
- confirm: (input, mutation) => request("channel.account.payment_methods.confirm", "/account/payment-methods/confirm", {
699
- method: "POST",
700
- headers: mutationHeaders(mutation),
701
- body: JSON.stringify(input)
702
- }, customerSession),
703
- setDefault: (methodId, mutation) => request("channel.account.payment_methods.default", `/account/payment-methods/${encodePath(methodId)}/default`, {
704
- method: "POST",
705
- headers: mutationHeaders(mutation)
706
- }, customerSession),
707
- delete: (methodId, mutation) => request("channel.account.payment_methods.delete", `/account/payment-methods/${encodePath(methodId)}`, {
708
- method: "DELETE",
709
- headers: mutationHeaders(mutation)
710
709
  }, customerSession)
711
710
  },
712
711
  subscriptions: {
@@ -717,27 +716,7 @@ function buildChannelClient(options, viewer) {
717
716
  }, customerSession),
718
717
  list: (params = {}) => request("channel.account.subscriptions.list", appendQuery("/account/subscriptions", params), {}, customerSession),
719
718
  get: (agreementId) => request("channel.account.subscriptions.get", `/account/subscriptions/${encodePath(agreementId)}`, {}, customerSession),
720
- source: (agreementId) => request("channel.account.subscriptions.source", `/account/subscriptions/${encodePath(agreementId)}/source`, {}, customerSession),
721
- cancel: (agreementId, params = {}, mutation) => request("channel.account.subscriptions.cancel", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/cancel`, params), {
722
- method: "POST",
723
- headers: mutationHeaders(mutation)
724
- }, customerSession),
725
- pause: (agreementId, mutation) => request("channel.account.subscriptions.pause", `/account/subscriptions/${encodePath(agreementId)}/pause`, {
726
- method: "POST",
727
- headers: mutationHeaders(mutation)
728
- }, customerSession),
729
- resume: (agreementId, mutation) => request("channel.account.subscriptions.resume", `/account/subscriptions/${encodePath(agreementId)}/resume`, {
730
- method: "POST",
731
- headers: mutationHeaders(mutation)
732
- }, customerSession),
733
- invoices: {
734
- list: (agreementId, params = {}) => request("channel.account.subscriptions.invoices.list", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/invoices`, params), {}, customerSession),
735
- get: (invoiceId) => request("channel.account.subscriptions.invoices.get", `/account/subscriptions/invoices/${encodePath(invoiceId)}`, {}, customerSession),
736
- payNow: (invoiceId, mutation) => request("channel.account.subscriptions.invoices.pay_now", `/account/subscriptions/invoices/${encodePath(invoiceId)}/pay-now`, {
737
- method: "POST",
738
- headers: mutationHeaders(mutation)
739
- }, customerSession)
740
- }
719
+ source: (agreementId) => request("channel.account.subscriptions.source", `/account/subscriptions/${encodePath(agreementId)}/source`, {}, customerSession)
741
720
  },
742
721
  giving: {
743
722
  list: () => request("channel.account.giving.list", "/account/giving", {}, customerSession),
@@ -1,4 +1,4 @@
1
- import { isChannelAPIError, createChannelClient } from './chunk-BHEDC47V.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-CXNWN5M5.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-BHEDC47V.js';
1
+ import { createChannelClient } from './chunk-CXNWN5M5.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-DWXo7QE3.js';
4
+ import './types-SZWnEWzJ.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-AVIT2DZR.js';
2
- import { narrow } from './chunk-THK57F6H.js';
3
- import './chunk-BHEDC47V.js';
1
+ import { createNextChannelClient } from './chunk-IDWCPTIC.js';
2
+ import { narrow } from './chunk-JV3I6LIR.js';
3
+ import './chunk-CXNWN5M5.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-DWXo7QE3.js';
2
+ import './types-SZWnEWzJ.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-THK57F6H.js';
2
- import './chunk-BHEDC47V.js';
1
+ export { createDashChannelClient, narrow as narrowToDash } from './chunk-JV3I6LIR.js';
2
+ import './chunk-CXNWN5M5.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, D as DashProfileResponse, u as DashInitResponse, v as DashPlansResponse, L as ListResponse, w as DashDirectoryRegion, x as DashDirectoryEntry, y as DashDirectoryProfileResponse, z as DashLead, B as DashLeadPortalRequestLinkInput, E as DashLeadPortalRequestLinkResponse, G as DashLeadPortalView, H as DashMovingQuoteInput, I as DashMovingQuoteReceipt, J as DashMovingAddressList, K as DashMovingAddress, M as DashMovingDistance, S as SiteAccess, N as SiteDocument, Q as PublicWorkspaceInit, R as LightInitResponse, T as PublicPageSummary, U as PublicPage, V as Product, X as ProductAsset, Y as SlotsResponse, Z as DownloadResponse, a$ as BeginUploadInput, b0 as CompleteUploadInput, _ as ArtworkMutationReceipt, b1 as DecisionInput, $ as PublicConfiguration, a0 as PublicConfigurationQuoteInput, a1 as PublicConfigurationQuote, a2 as CatalogCategory, a3 as CatalogProductsResponse, a4 as CatalogCollection, a5 as CatalogBrand, a6 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a7 as UpdateCartItemInput, a8 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, a9 as Review, aa as ReviewSummaryResponse, ab as PublicSubmitReviewInput, ac as ThemeResponse, ad as MenuResponse, ae as BlogPost, af as BlogPostResponse, ag as GivingEntry, ah as StartGivingInput, ai as StartGivingResponse, aj as SubscriptionPlanListResponse, ak as SubscriptionPlanResponse, al as BookingService, am as BookingServiceResponse, an as BookingAvailabilityParams, ao as BookingAvailabilityResponse, ap as BookingQuoteParams, aq as BookingQuoteResponse, ar as CreateBookingHoldInput, as as BookingHoldResponse, at as PublicPaymentLinkResponse, au as PaymentLinkCheckoutInput, av as PaymentLinkCheckoutResponse, aw as PaymentLinkRedemptionStatusResponse, ax as PrintSettingsResponse, ay as PrintOptionsSelection, az as PrintQuoteResponse, aA as PrintIntakeInput, aB as PrintJob, aC as DiningMenu, aD as CustomerSignupResponse, aE as SendCodeResponse, aF as CustomerSession, aG as CustomerResponse, aH as CustomerAuthSession, aI as CustomerSecurityActivityPage, O as Order, aJ as OrderSummary, aK as SavedAddress, aL as SavedAddressResponse, aM as SavedAddressInput, aN as SavedAddressUpdateInput, aO as SavedPaymentMethod, aP as PaymentMethodSetupInput, aQ as PaymentMethodSetupResult, aR as PaymentMethodConfirmInput, aS as PaymentMethodMutationResponse, aT as StartSubscriptionInput, aU as SubscriptionAgreementResponse, aV as SubscriptionListResponse, aW as SubscriptionSourceResponse, aX as SubscriptionInvoiceListResponse, aY as SubscriptionInvoiceResponse, aZ as GivingIntentListResponse, a_ as LeadResponse, b2 as Slot } from './types-DWXo7QE3.js';
2
- export { b3 as BookingAvailability, b4 as BookingCancellationPolicy, b5 as BookingCustomerInput, b6 as BookingFreeSpan, b7 as BookingHold, b8 as BookingIntakeQuestion, b9 as BookingPriceQuote, ba as BookingServicePricing, bb as BookingTimeRange, bc as CatalogProduct, 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 DashPlanPricing, bt as DashPlanRegion, 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 SubscriptionInvoice, c7 as SubscriptionPlanOffer, c8 as SubscriptionSourceDisplay, c9 as WaitlistAttribution, ca as WorkspaceInfo } from './types-DWXo7QE3.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, 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';
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
  /**
@@ -69,6 +69,13 @@ interface CreateChannelClientOptions {
69
69
  signal?: AbortSignal;
70
70
  /** Verified visitor metadata from the hosting edge. Never accept these values from an untrusted caller. */
71
71
  visitor?: ChannelVisitor;
72
+ /**
73
+ * Set when the site serves `/receipt/{token}` and reads it with
74
+ * `receipts.get`. Purchases started through this client then return there
75
+ * (and its email links point there); without it they return to the site's
76
+ * own success pages.
77
+ */
78
+ receiptPage?: boolean;
72
79
  }
73
80
  interface ChannelVisitor {
74
81
  ip?: string;
@@ -76,7 +83,7 @@ interface ChannelVisitor {
76
83
  userAgent?: string;
77
84
  }
78
85
  type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
79
- 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.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.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.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";
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";
80
87
  interface ChannelRequestObservation {
81
88
  operation: ChannelOperation;
82
89
  method: string;
@@ -131,11 +138,6 @@ interface ChannelCheckoutStatusParams {
131
138
  interface ChannelSubscriptionListParams extends ChannelListParams {
132
139
  status?: string;
133
140
  }
134
- interface ChannelSubscriptionCancelParams {
135
- immediate?: boolean;
136
- }
137
- interface ChannelInvoiceListParams extends ChannelListParams {
138
- }
139
141
  declare class ChannelAPIError extends Error {
140
142
  readonly status: number;
141
143
  readonly code: string;
@@ -200,6 +202,16 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
200
202
  readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
201
203
  readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
202
204
  };
205
+ /**
206
+ * A purchase by its receipt link (workspace token). The token is the
207
+ * credential; pass the customer's session to learn whether they made the
208
+ * purchase. Answers are never cached: render them per request.
209
+ */
210
+ readonly receipts: {
211
+ readonly get: (token: string, options?: {
212
+ endUserToken?: string;
213
+ }) => Promise<ChannelReceiptResponse>;
214
+ };
203
215
  /** Tenant-level data exposed only to a dash-scoped channel token. */
204
216
  readonly dash: {
205
217
  readonly profile: () => Promise<DashProfileResponse>;
@@ -343,6 +355,7 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
343
355
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
344
356
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
345
357
  readonly get: (token: string) => Promise<BookingHoldResponse>;
358
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
346
359
  };
347
360
  };
348
361
  readonly paymentLinks: {
@@ -439,26 +452,14 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
439
452
  }>;
440
453
  readonly setDefault: (addressId: string, mutation?: ChannelMutationOptions) => Promise<SavedAddressResponse>;
441
454
  };
442
- readonly paymentMethods: {
443
- readonly list: () => Promise<ListResponse<SavedPaymentMethod>>;
444
- readonly setup: (input: PaymentMethodSetupInput, mutation?: ChannelMutationOptions) => Promise<PaymentMethodSetupResult>;
445
- readonly confirm: (input: PaymentMethodConfirmInput, mutation?: ChannelMutationOptions) => Promise<SavedPaymentMethod>;
446
- readonly setDefault: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
447
- readonly delete: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
455
+ readonly billing: {
456
+ readonly portal: (input: AccountBillingPortalInput) => Promise<AccountBillingPortalResponse>;
448
457
  };
449
458
  readonly subscriptions: {
450
- readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
459
+ readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionCheckoutResponse>;
451
460
  readonly list: (params?: ChannelSubscriptionListParams) => Promise<SubscriptionListResponse>;
452
461
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
453
462
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
454
- readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
455
- readonly pause: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
456
- readonly resume: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
457
- readonly invoices: {
458
- readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
459
- readonly get: (invoiceId: string) => Promise<SubscriptionInvoiceResponse>;
460
- readonly payNow: (invoiceId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionInvoiceResponse>;
461
- };
462
463
  };
463
464
  readonly giving: {
464
465
  readonly list: () => Promise<GivingIntentListResponse>;
@@ -472,4 +473,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
472
473
  };
473
474
  };
474
475
 
475
- export { 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 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, DownloadResponse, FileRequestClosed, FileRequestCompleteInput, FileRequestReceivedFile, FileRequestUploadInput, FileRequestUploadTicket, FileRequestView, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteAccess, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, type UploadTicket, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
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 };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-BHEDC47V.js';
1
+ export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-CXNWN5M5.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, 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 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, D as DashProfileResponse, u as DashInitResponse, v as DashPlansResponse, L as ListResponse, w as DashDirectoryRegion, x as DashDirectoryEntry, y as DashDirectoryProfileResponse, z as DashLead, B as DashLeadPortalRequestLinkInput, E as DashLeadPortalRequestLinkResponse, G as DashLeadPortalView, H as DashMovingQuoteInput, I as DashMovingQuoteReceipt, J as DashMovingAddressList, K as DashMovingAddress, M as DashMovingDistance, S as SiteAccess, N as SiteDocument, Q as PublicWorkspaceInit, R as LightInitResponse, T as PublicPageSummary, U as PublicPage, V as Product, X as ProductAsset, Y as SlotsResponse, Z as DownloadResponse, _ as ArtworkMutationReceipt, $ as PublicConfiguration, a0 as PublicConfigurationQuoteInput, a1 as PublicConfigurationQuote, a2 as CatalogCategory, a3 as CatalogProductsResponse, a4 as CatalogCollection, a5 as CatalogBrand, a6 as CartLookupResponse, a7 as UpdateCartItemInput, a8 as MergeCartInput, a9 as Review, aa as ReviewSummaryResponse, ab as PublicSubmitReviewInput, ac as ThemeResponse, ad as MenuResponse, ae as BlogPost, af as BlogPostResponse, ag as GivingEntry, ah as StartGivingInput, ai as StartGivingResponse, aj as SubscriptionPlanListResponse, ak as SubscriptionPlanResponse, al as BookingService, am as BookingServiceResponse, an as BookingAvailabilityParams, ao as BookingAvailabilityResponse, ap as BookingQuoteParams, aq as BookingQuoteResponse, ar as CreateBookingHoldInput, as as BookingHoldResponse, at as PublicPaymentLinkResponse, au as PaymentLinkCheckoutInput, av as PaymentLinkCheckoutResponse, aw as PaymentLinkRedemptionStatusResponse, ax as PrintSettingsResponse, ay as PrintOptionsSelection, az as PrintQuoteResponse, aA as PrintIntakeInput, aB as PrintJob, aC as DiningMenu, aD as CustomerSignupResponse, aE as SendCodeResponse, aF as CustomerSession, aG as CustomerResponse, aH as CustomerAuthSession, aI as CustomerSecurityActivityPage, aJ as OrderSummary, aK as SavedAddress, aL as SavedAddressResponse, aM as SavedAddressInput, aN as SavedAddressUpdateInput, aO as SavedPaymentMethod, aP as PaymentMethodSetupInput, aQ as PaymentMethodSetupResult, aR as PaymentMethodConfirmInput, aS as PaymentMethodMutationResponse, aT as StartSubscriptionInput, aU as SubscriptionAgreementResponse, aV as SubscriptionListResponse, aW as SubscriptionSourceResponse, aX as SubscriptionInvoiceListResponse, aY as SubscriptionInvoiceResponse, aZ as GivingIntentListResponse, a_ as LeadResponse } from './types-DWXo7QE3.js';
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';
3
3
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
4
4
 
5
5
  /**
@@ -304,6 +304,11 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
304
304
  readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
305
305
  readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
306
306
  };
307
+ readonly receipts: {
308
+ readonly get: (token: string, options?: {
309
+ endUserToken?: string;
310
+ }) => Promise<ChannelReceiptResponse>;
311
+ };
307
312
  readonly dash: {
308
313
  readonly profile: () => Promise<DashProfileResponse>;
309
314
  readonly init: () => Promise<DashInitResponse>;
@@ -445,6 +450,7 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
445
450
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
446
451
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
447
452
  readonly get: (token: string) => Promise<BookingHoldResponse>;
453
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
448
454
  };
449
455
  };
450
456
  readonly paymentLinks: {
@@ -529,26 +535,14 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
529
535
  }>;
530
536
  readonly setDefault: (addressId: string, mutation?: ChannelMutationOptions) => Promise<SavedAddressResponse>;
531
537
  };
532
- readonly paymentMethods: {
533
- readonly list: () => Promise<ListResponse<SavedPaymentMethod>>;
534
- readonly setup: (input: PaymentMethodSetupInput, mutation?: ChannelMutationOptions) => Promise<PaymentMethodSetupResult>;
535
- readonly confirm: (input: PaymentMethodConfirmInput, mutation?: ChannelMutationOptions) => Promise<SavedPaymentMethod>;
536
- readonly setDefault: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
537
- readonly delete: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
538
+ readonly billing: {
539
+ readonly portal: (input: AccountBillingPortalInput) => Promise<AccountBillingPortalResponse>;
538
540
  };
539
541
  readonly subscriptions: {
540
- readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
542
+ readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionCheckoutResponse>;
541
543
  readonly list: (params?: ChannelSubscriptionListParams) => Promise<SubscriptionListResponse>;
542
544
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
543
545
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
544
- readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
545
- readonly pause: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
546
- readonly resume: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
547
- readonly invoices: {
548
- readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
549
- readonly get: (invoiceId: string) => Promise<SubscriptionInvoiceResponse>;
550
- readonly payNow: (invoiceId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionInvoiceResponse>;
551
- };
552
546
  };
553
547
  readonly giving: {
554
548
  readonly list: () => Promise<GivingIntentListResponse>;
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-AVIT2DZR.js';
2
- import './chunk-BHEDC47V.js';
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';
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-DWXo7QE3.js';
1
+ import { c2 as SiteRef, bZ as PublicGate, b$ as PublicSiteSignals } from './types-SZWnEWzJ.js';
2
2
 
3
3
  /**
4
4
  * Site signals: what a public site serves, decided from the `signals` block
@@ -144,7 +144,7 @@ interface PriceBreak {
144
144
  }
145
145
  interface PriceChange {
146
146
  amount: number;
147
- kind: string;
147
+ kind: "fixed" | "per_unit" | "per_pack" | "percent" | "surcharge";
148
148
  pack_size?: number;
149
149
  }
150
150
  interface PublicConfiguration {
@@ -456,33 +456,29 @@ interface DashProfileResponse {
456
456
  }
457
457
  interface DashPlanPricing {
458
458
  currency: string;
459
- currency_symbol?: string;
460
459
  monthly_price: number;
460
+ region_code: string;
461
461
  yearly_price: number;
462
462
  }
463
+ interface DashPlanLimitValue {
464
+ value: number;
465
+ unlimited: boolean;
466
+ }
463
467
  interface DashPlan {
468
+ transaction_fee_bps: number;
464
469
  id: string;
465
470
  name: string;
466
471
  description: string;
467
472
  level: number;
468
- is_public: boolean;
469
473
  is_free: boolean;
470
474
  trial_days?: number;
475
+ trial_without_card?: boolean;
471
476
  highlights: string[];
472
- limits: Record<string, number>;
473
- pricing: Record<string, DashPlanPricing>;
474
- }
475
- interface DashPlanRegion {
476
- code: string;
477
- name: string;
478
- currency: string;
479
- locale: string;
480
- timezone: string;
481
- market_code?: string;
477
+ limit_values: Record<string, DashPlanLimitValue>;
478
+ price?: DashPlanPricing;
482
479
  }
483
480
  interface DashPlansResponse {
484
481
  plans: DashPlan[];
485
- regions: DashPlanRegion[];
486
482
  default_region: string;
487
483
  }
488
484
  interface DashDirectoryRegion {
@@ -972,35 +968,11 @@ type SavedAddressUpdateInput = SavedAddressInput;
972
968
  interface SavedAddressResponse {
973
969
  address: SavedAddress;
974
970
  }
975
- interface SavedPaymentMethod {
976
- id: string;
977
- provider: string;
978
- status: string;
979
- is_default: boolean;
980
- display_brand?: string;
981
- display_last4?: string;
982
- exp_month?: number;
983
- exp_year?: number;
984
- created_at: string;
985
- updated_at: string;
986
- }
987
- interface PaymentMethodSetupInput {
988
- provider: string;
989
- consent: boolean;
990
- consent_version: "saved_payment_method_v1";
971
+ interface AccountBillingPortalInput {
972
+ return_url: string;
991
973
  }
992
- interface PaymentMethodSetupResult {
993
- type: string;
994
- client_secret?: string;
995
- publishable_key?: string;
996
- }
997
- interface PaymentMethodConfirmInput {
998
- provider: string;
999
- setup_intent_id?: string;
1000
- payment_method_id?: string;
1001
- }
1002
- interface PaymentMethodMutationResponse {
1003
- success: boolean;
974
+ interface AccountBillingPortalResponse {
975
+ url: string;
1004
976
  }
1005
977
  interface SubscriptionAgreement {
1006
978
  id: string;
@@ -1013,60 +985,28 @@ interface SubscriptionAgreement {
1013
985
  provider_ref?: string;
1014
986
  provider_customer_ref?: string;
1015
987
  plan_id?: string;
1016
- initial_invoice_id?: string;
1017
- currency: string;
1018
- amount_cents: number;
1019
- interval: string;
1020
- current_period_start?: string;
1021
988
  current_period_end?: string;
1022
- trial_ends_at?: string;
1023
989
  cancel_at_period_end: boolean;
1024
- canceled_at?: string;
1025
- meta?: Record<string, unknown>;
1026
990
  created_at: string;
1027
991
  updated_at: string;
1028
992
  }
1029
993
  interface SubscriptionAgreementResponse {
1030
994
  agreement: SubscriptionAgreement;
1031
995
  }
996
+ /**
997
+ * A started subscription (`subscriptions.start`). The first period is paid on
998
+ * Stripe Checkout: send the customer to `checkout_url`; the agreement is not
999
+ * active until that payment settles.
1000
+ */
1001
+ interface SubscriptionCheckoutResponse {
1002
+ agreement: SubscriptionAgreement;
1003
+ checkout_url: string;
1004
+ }
1032
1005
  interface SubscriptionListResponse {
1033
1006
  items: SubscriptionAgreement[];
1034
1007
  has_more: boolean;
1035
1008
  next_cursor?: string;
1036
1009
  }
1037
- interface SubscriptionInvoice {
1038
- id: string;
1039
- workspace_id: string;
1040
- agreement_id: string;
1041
- source_kind: string;
1042
- source_id: string;
1043
- invoice_number: string;
1044
- status: string;
1045
- currency: string;
1046
- subtotal_cents: number;
1047
- tax_cents: number;
1048
- total_cents: number;
1049
- paid_cents: number;
1050
- period_start?: string;
1051
- period_end?: string;
1052
- due_at?: string;
1053
- paid_at?: string;
1054
- payment_id?: string;
1055
- attempt_count: number;
1056
- failure_code?: string;
1057
- failure_message?: string;
1058
- meta?: Record<string, unknown>;
1059
- created_at: string;
1060
- updated_at: string;
1061
- }
1062
- interface SubscriptionInvoiceResponse {
1063
- invoice: SubscriptionInvoice;
1064
- }
1065
- interface SubscriptionInvoiceListResponse {
1066
- items: SubscriptionInvoice[];
1067
- has_more: boolean;
1068
- next_cursor?: string;
1069
- }
1070
1010
  interface SubscriptionSourceDisplay {
1071
1011
  source_app: string;
1072
1012
  source_kind: string;
@@ -1793,5 +1733,41 @@ interface BookingQuoteParams {
1793
1733
  /** RFC 3339; omit for a fixed-length service. */
1794
1734
  endsAt?: string;
1795
1735
  }
1736
+ /** One bought item on a receipt: no addresses, no options. */
1737
+ interface ChannelReceiptLine {
1738
+ name: string;
1739
+ quantity: number;
1740
+ amount_cents: number;
1741
+ /** The item's picture, an absolute http(s) URL, when it has one. */
1742
+ image_url?: string;
1743
+ }
1744
+ /** How a recurring purchase repeats. */
1745
+ interface ChannelReceiptRecurring {
1746
+ interval: string;
1747
+ next_payment_at?: string;
1748
+ }
1749
+ /**
1750
+ * A purchase as its receipt link shows it (`channel.receipts.get`). Never
1751
+ * cache or index it. `viewer_owns` is true only when the customer session
1752
+ * sent with the read made the purchase.
1753
+ */
1754
+ interface ChannelReceipt {
1755
+ kind: "shop_order" | "gift" | "subscription" | "booking" | "payment_link";
1756
+ record_id: string;
1757
+ status: "pending" | "paid" | "failed" | "cancelled";
1758
+ title: string;
1759
+ reference: string;
1760
+ amount_cents: number;
1761
+ currency: string;
1762
+ masked_email: string;
1763
+ viewer_owns: boolean;
1764
+ lines?: ChannelReceiptLine[];
1765
+ paid_at?: string;
1766
+ starts_at?: string;
1767
+ recurring?: ChannelReceiptRecurring;
1768
+ }
1769
+ interface ChannelReceiptResponse {
1770
+ receipt: ChannelReceipt;
1771
+ }
1796
1772
 
1797
- export type { PublicConfiguration as $, AddCartItemInput as A, DashLeadPortalRequestLinkInput as B, CartResponse as C, DashProfileResponse as D, DashLeadPortalRequestLinkResponse as E, FileRequestView as F, DashLeadPortalView as G, DashMovingQuoteInput as H, DashMovingQuoteReceipt as I, DashMovingAddressList as J, DashMovingAddress as K, ListResponse as L, DashMovingDistance as M, SiteDocument as N, Order as O, PaymentCollectionAvailability as P, PublicWorkspaceInit as Q, LightInitResponse as R, SiteAccess as S, PublicPageSummary as T, PublicPage as U, Product as V, WaitlistGateStatus as W, ProductAsset as X, SlotsResponse as Y, DownloadResponse as Z, ArtworkMutationReceipt as _, CheckoutOptions as a, BeginUploadInput as a$, PublicConfigurationQuoteInput as a0, PublicConfigurationQuote as a1, CatalogCategory as a2, CatalogProductsResponse as a3, CatalogCollection as a4, CatalogBrand as a5, CartLookupResponse as a6, UpdateCartItemInput as a7, MergeCartInput as a8, Review as a9, PrintIntakeInput as aA, PrintJob as aB, DiningMenu as aC, CustomerSignupResponse as aD, SendCodeResponse as aE, CustomerSession as aF, CustomerResponse as aG, CustomerAuthSession as aH, CustomerSecurityActivityPage as aI, OrderSummary as aJ, SavedAddress as aK, SavedAddressResponse as aL, SavedAddressInput as aM, SavedAddressUpdateInput as aN, SavedPaymentMethod as aO, PaymentMethodSetupInput as aP, PaymentMethodSetupResult as aQ, PaymentMethodConfirmInput as aR, PaymentMethodMutationResponse as aS, StartSubscriptionInput as aT, SubscriptionAgreementResponse as aU, SubscriptionListResponse as aV, SubscriptionSourceResponse as aW, SubscriptionInvoiceListResponse as aX, SubscriptionInvoiceResponse as aY, GivingIntentListResponse as aZ, LeadResponse as a_, ReviewSummaryResponse as aa, PublicSubmitReviewInput as ab, ThemeResponse as ac, MenuResponse as ad, BlogPost as ae, BlogPostResponse as af, GivingEntry as ag, StartGivingInput as ah, StartGivingResponse as ai, SubscriptionPlanListResponse as aj, SubscriptionPlanResponse as ak, BookingService as al, BookingServiceResponse as am, BookingAvailabilityParams as an, BookingAvailabilityResponse as ao, BookingQuoteParams as ap, BookingQuoteResponse as aq, CreateBookingHoldInput as ar, BookingHoldResponse as as, PublicPaymentLinkResponse as at, PaymentLinkCheckoutInput as au, PaymentLinkCheckoutResponse as av, PaymentLinkRedemptionStatusResponse as aw, PrintSettingsResponse as ax, PrintOptionsSelection as ay, PrintQuoteResponse as az, CheckoutStatusResponse as b, PublicSiteSignals as b$, CompleteUploadInput as b0, DecisionInput as b1, Slot as b2, BookingAvailability as b3, BookingCancellationPolicy as b4, BookingCustomerInput as b5, BookingFreeSpan as b6, BookingHold as b7, BookingIntakeQuestion as b8, BookingPriceQuote 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_, BookingServicePricing as ba, BookingTimeRange as bb, CatalogProduct 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, DashPlanPricing as bs, DashPlanRegion 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, SubscriptionInvoice as c6, SubscriptionPlanOffer as c7, SubscriptionSourceDisplay as c8, WaitlistAttribution as c9, WorkspaceInfo as ca, 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, DashInitResponse as u, DashPlansResponse as v, DashDirectoryRegion as w, DashDirectoryEntry as x, DashDirectoryProfileResponse as y, DashLead as z };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/channel-client",
3
- "version": "1.1.0",
3
+ "version": "4.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",