@c1m-public/channel-client 1.1.0 → 3.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.
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-BHEDC47V.js';
1
+ import { createChannelClient } from './chunk-ZEWL4PBM.js';
2
2
  import 'server-only';
3
3
 
4
4
  function narrow(client) {
@@ -1,4 +1,4 @@
1
- import { isChannelAPIError, createChannelClient } from './chunk-BHEDC47V.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-ZEWL4PBM.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -579,7 +579,12 @@ function buildChannelClient(options, viewer) {
579
579
  method: "POST",
580
580
  headers: mutationHeaders(mutation)
581
581
  }),
582
- get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`)
582
+ get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`),
583
+ // Free the slot when the customer leaves checkout and chooses another time.
584
+ release: (token2, mutation) => request("channel.book.holds.release", `/book/holds/${encodePath(token2)}/release`, {
585
+ method: "POST",
586
+ headers: mutationHeaders(mutation)
587
+ })
583
588
  }
584
589
  },
585
590
  paymentLinks: {
@@ -722,21 +727,13 @@ function buildChannelClient(options, viewer) {
722
727
  method: "POST",
723
728
  headers: mutationHeaders(mutation)
724
729
  }, customerSession),
725
- pause: (agreementId, mutation) => request("channel.account.subscriptions.pause", `/account/subscriptions/${encodePath(agreementId)}/pause`, {
730
+ portal: (input = {}, mutation) => request("channel.account.subscriptions.portal", "/account/subscriptions/portal", {
726
731
  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
+ headers: mutationHeaders(mutation),
733
+ body: JSON.stringify(input)
732
734
  }, customerSession),
733
735
  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)
736
+ list: (agreementId, params = {}) => request("channel.account.subscriptions.invoices.list", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/invoices`, params), {}, customerSession)
740
737
  }
741
738
  },
742
739
  giving: {
@@ -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-Iuoc_GMq.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-IESKKOTS.js';
2
+ import { narrow } from './chunk-2VFLXYHH.js';
3
+ import './chunk-ZEWL4PBM.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-Iuoc_GMq.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-2VFLXYHH.js';
2
+ import './chunk-ZEWL4PBM.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, 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, b0 as BeginUploadInput, b1 as CompleteUploadInput, _ as ArtworkMutationReceipt, b2 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 SubscriptionPortalInput, aY as SubscriptionPortalResponse, aZ as SubscriptionInvoiceListResponse, a_ as GivingIntentListResponse, a$ as LeadResponse, b3 as Slot } from './types-Iuoc_GMq.js';
2
+ export { b4 as BookingAvailability, b5 as BookingCancellationPolicy, b6 as BookingCustomerInput, b7 as BookingFreeSpan, b8 as BookingHold, b9 as BookingIntakeQuestion, ba as BookingPriceQuote, bb as BookingServicePricing, bc as BookingTimeRange, bd as CatalogProduct, be as CheckoutAddress, bf as CheckoutStatus, bg as ConfigDocument, bh as ConfigQuote, bi as ConfigSelectionRequest, bj as Customer, bk as CustomerSecurityActivity, bl as DashBrandingInfo, bm as DashDirectoryProfile, bn as DashLeadPortalMatch, bo as DashLeadPortalMovingSummary, bp as DashLeadPortalRequest, bq as DashLeadPortalRequestStatus, br as DashLocaleInfo, bs as DashPlan, bt as DashPlanLimitValue, bu as DashPlanPricing, bv as DashPublicPage, bw as DashPublicProfileInfo, bx as DashTenantInfo, by as DiningAvailability, bz as DiningAvailabilityRule, bA as DiningComboChoice, bB as DiningComboGroup, bC as DiningItemSize, bD as DiningMenuItem, bE as DiningModifier, bF as DiningModifierGroup, bG as DiningOffer, bH as DiningOfferBadge, bI as FileRequestTokenInput, bJ as GivingIntent, bK as Menu, bL as MenuItem, bM as OrderItem, bN as PaymentLinkRedemptionStatus, bO as PaymentMethodOption, bP as PaymentReadiness, bQ as PrintBranding, bR as PrintIntakeLimits, bS as PrintJobFile, bT as PrintPaperSize, bU as PrintPerPagePricing, bV as PrintPriceBreakdown, bW as PrintPriceLine, bX as PrintPricing, bY as PrintPricingOption, bZ as ProductLineConfiguration, b_ as PublicGate, b$ as PublicPaymentLink, c0 as PublicSiteSignals, c1 as ShippingMethodOption, c2 as SiteGatedDocument, c3 as SiteRef, c4 as SiteResolvedDocument, c5 as SiteSubject, c6 as SubscriptionAgreement, c7 as SubscriptionInvoice, c8 as SubscriptionPlanOffer, c9 as SubscriptionSourceDisplay, ca as WaitlistAttribution, cb as WorkspaceInfo } from './types-Iuoc_GMq.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,7 +76,7 @@ interface ChannelVisitor {
76
76
  userAgent?: string;
77
77
  }
78
78
  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";
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.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.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.portal" | "channel.account.subscriptions.invoices.list" | "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";
80
80
  interface ChannelRequestObservation {
81
81
  operation: ChannelOperation;
82
82
  method: string;
@@ -343,6 +343,7 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
343
343
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
344
344
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
345
345
  readonly get: (token: string) => Promise<BookingHoldResponse>;
346
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
346
347
  };
347
348
  };
348
349
  readonly paymentLinks: {
@@ -452,12 +453,9 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
452
453
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
453
454
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
454
455
  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>;
456
+ readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
457
457
  readonly invoices: {
458
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
459
  };
462
460
  };
463
461
  readonly giving: {
@@ -472,4 +470,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
472
470
  };
473
471
  };
474
472
 
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 };
473
+ 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, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionPortalInput, SubscriptionPortalResponse, 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-ZEWL4PBM.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
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';
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 SubscriptionPortalInput, aY as SubscriptionPortalResponse, aZ as SubscriptionInvoiceListResponse, a_ as GivingIntentListResponse, a$ as LeadResponse } from './types-Iuoc_GMq.js';
3
3
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
4
4
 
5
5
  /**
@@ -445,6 +445,7 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
445
445
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
446
446
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
447
447
  readonly get: (token: string) => Promise<BookingHoldResponse>;
448
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
448
449
  };
449
450
  };
450
451
  readonly paymentLinks: {
@@ -542,12 +543,9 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
542
543
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
543
544
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
544
545
  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>;
546
+ readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
547
547
  readonly invoices: {
548
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
549
  };
552
550
  };
553
551
  readonly giving: {
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-IESKKOTS.js';
2
+ import './chunk-ZEWL4PBM.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 { c3 as SiteRef, b_ as PublicGate, c0 as PublicSiteSignals } from './types-Iuoc_GMq.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 {
@@ -1013,22 +1009,20 @@ interface SubscriptionAgreement {
1013
1009
  provider_ref?: string;
1014
1010
  provider_customer_ref?: string;
1015
1011
  plan_id?: string;
1016
- initial_invoice_id?: string;
1017
- currency: string;
1018
- amount_cents: number;
1019
- interval: string;
1020
- current_period_start?: string;
1021
1012
  current_period_end?: string;
1022
- trial_ends_at?: string;
1023
1013
  cancel_at_period_end: boolean;
1024
- canceled_at?: string;
1025
- meta?: Record<string, unknown>;
1026
1014
  created_at: string;
1027
1015
  updated_at: string;
1028
1016
  }
1029
1017
  interface SubscriptionAgreementResponse {
1030
1018
  agreement: SubscriptionAgreement;
1031
1019
  }
1020
+ interface SubscriptionPortalInput {
1021
+ return_url?: string;
1022
+ }
1023
+ interface SubscriptionPortalResponse {
1024
+ url: string;
1025
+ }
1032
1026
  interface SubscriptionListResponse {
1033
1027
  items: SubscriptionAgreement[];
1034
1028
  has_more: boolean;
@@ -1049,19 +1043,11 @@ interface SubscriptionInvoice {
1049
1043
  paid_cents: number;
1050
1044
  period_start?: string;
1051
1045
  period_end?: string;
1052
- due_at?: string;
1053
1046
  paid_at?: string;
1054
1047
  payment_id?: string;
1055
- attempt_count: number;
1056
- failure_code?: string;
1057
- failure_message?: string;
1058
- meta?: Record<string, unknown>;
1059
1048
  created_at: string;
1060
1049
  updated_at: string;
1061
1050
  }
1062
- interface SubscriptionInvoiceResponse {
1063
- invoice: SubscriptionInvoice;
1064
- }
1065
1051
  interface SubscriptionInvoiceListResponse {
1066
1052
  items: SubscriptionInvoice[];
1067
1053
  has_more: boolean;
@@ -1794,4 +1780,4 @@ interface BookingQuoteParams {
1794
1780
  endsAt?: string;
1795
1781
  }
1796
1782
 
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 };
1783
+ 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, LeadResponse 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, SubscriptionPortalInput as aX, SubscriptionPortalResponse as aY, SubscriptionInvoiceListResponse as aZ, GivingIntentListResponse 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, PublicPaymentLink as b$, BeginUploadInput as b0, CompleteUploadInput as b1, DecisionInput as b2, Slot as b3, BookingAvailability as b4, BookingCancellationPolicy as b5, BookingCustomerInput as b6, BookingFreeSpan as b7, BookingHold as b8, BookingIntakeQuestion as b9, DiningComboChoice as bA, DiningComboGroup as bB, DiningItemSize as bC, DiningMenuItem as bD, DiningModifier as bE, DiningModifierGroup as bF, DiningOffer as bG, DiningOfferBadge as bH, FileRequestTokenInput as bI, GivingIntent as bJ, Menu as bK, MenuItem as bL, OrderItem as bM, PaymentLinkRedemptionStatus as bN, PaymentMethodOption as bO, PaymentReadiness as bP, PrintBranding as bQ, PrintIntakeLimits as bR, PrintJobFile as bS, PrintPaperSize as bT, PrintPerPagePricing as bU, PrintPriceBreakdown as bV, PrintPriceLine as bW, PrintPricing as bX, PrintPricingOption as bY, ProductLineConfiguration as bZ, PublicGate as b_, BookingPriceQuote as ba, BookingServicePricing as bb, BookingTimeRange as bc, CatalogProduct as bd, CheckoutAddress as be, CheckoutStatus as bf, ConfigDocument as bg, ConfigQuote as bh, ConfigSelectionRequest as bi, Customer as bj, CustomerSecurityActivity as bk, DashBrandingInfo as bl, DashDirectoryProfile as bm, DashLeadPortalMatch as bn, DashLeadPortalMovingSummary as bo, DashLeadPortalRequest as bp, DashLeadPortalRequestStatus as bq, DashLocaleInfo as br, DashPlan as bs, DashPlanLimitValue as bt, DashPlanPricing as bu, DashPublicPage as bv, DashPublicProfileInfo as bw, DashTenantInfo as bx, DiningAvailability as by, DiningAvailabilityRule as bz, CheckoutCustomerInput as c, PublicSiteSignals as c0, ShippingMethodOption as c1, SiteGatedDocument as c2, SiteRef as c3, SiteResolvedDocument as c4, SiteSubject as c5, SubscriptionAgreement as c6, SubscriptionInvoice 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, DashInitResponse as u, DashPlansResponse as v, DashDirectoryRegion as w, DashDirectoryEntry as x, DashDirectoryProfileResponse as y, DashLead 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": "3.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",