@c1m-public/channel-client 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { isChannelAPIError, createChannelClient } from './chunk-T6OQ4CBQ.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-LFHMWK6A.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -371,6 +371,17 @@ function createChannelClient(options) {
371
371
  get: (slug) => request("channel.catalog.products.get", `/products/${encodePath(slug)}`),
372
372
  media: (slug) => request("channel.catalog.products.media", `/products/${encodePath(slug)}/media`)
373
373
  },
374
+ artwork: {
375
+ list: (orderId, cartToken) => request("channel.commerce.artwork.list", appendQuery(`/orders/${encodePath(orderId)}/artwork`, { cart_token: required(cartToken, "cartToken") })),
376
+ download: (orderId, itemId, slotKey, assetId, cartToken) => request("channel.commerce.artwork.download", appendQuery(`/orders/${encodePath(orderId)}/artwork/${encodePath(itemId)}/${encodePath(slotKey)}/files/${encodePath(assetId)}`, { cart_token: required(cartToken, "cartToken") })),
377
+ beginUpload: (orderId, itemId, slotKey, input) => request("channel.commerce.artwork.uploads.begin", `/orders/${encodePath(orderId)}/artwork/${encodePath(itemId)}/${encodePath(slotKey)}/uploads`, { method: "POST", body: JSON.stringify(input) }),
378
+ completeUpload: (orderId, itemId, slotKey, uploadId, input) => request("channel.commerce.artwork.uploads.complete", `/orders/${encodePath(orderId)}/artwork/${encodePath(itemId)}/${encodePath(slotKey)}/uploads/${encodePath(uploadId)}/complete`, { method: "POST", body: JSON.stringify(input) }),
379
+ decide: (orderId, itemId, slotKey, input) => request("channel.commerce.artwork.decide", `/orders/${encodePath(orderId)}/artwork/${encodePath(itemId)}/${encodePath(slotKey)}/decision`, { method: "POST", body: JSON.stringify(input) })
380
+ },
381
+ configurations: {
382
+ get: (productId) => request("channel.catalog.products.configuration.get", `/products/${encodePath(productId)}/configuration`),
383
+ quote: (productId, input) => request("channel.catalog.products.configuration.quote", `/products/${encodePath(productId)}/configuration/quote`, { method: "POST", body: JSON.stringify(input) })
384
+ },
374
385
  categories: {
375
386
  list: (params = {}) => request("channel.catalog.categories.list", appendQuery("/categories", params)),
376
387
  products: (slug) => request("channel.catalog.categories.products", `/categories/by-slug/${encodePath(slug)}/products`)
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-T6OQ4CBQ.js';
1
+ import { createChannelClient } from './chunk-LFHMWK6A.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-D1GrAYBX.js';
4
+ import './types-CPdlxf5p.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-HZBHUOJ5.js';
2
- import { narrow } from './chunk-KQI2FMHI.js';
3
- import './chunk-T6OQ4CBQ.js';
1
+ import { createNextChannelClient } from './chunk-GPSFEKWL.js';
2
+ import { narrow } from './chunk-VARU5HM6.js';
3
+ import './chunk-LFHMWK6A.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-D1GrAYBX.js';
2
+ import './types-CPdlxf5p.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-KQI2FMHI.js';
2
- import './chunk-T6OQ4CBQ.js';
1
+ export { createDashChannelClient, narrow as narrowToDash } from './chunk-VARU5HM6.js';
2
+ import './chunk-LFHMWK6A.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, A as AddCartItemInput, C as CartResponse, V as UpdateCartItemInput, X as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as BookingService, a9 as BookingServiceResponse, aa as BookingAvailabilityParams, ab as BookingAvailabilityResponse, ac as BookingQuoteParams, ad as BookingQuoteResponse, ae as CreateBookingHoldInput, af as BookingHoldResponse, ag as PublicPaymentLinkResponse, ah as PaymentLinkCheckoutInput, ai as PaymentLinkCheckoutResponse, aj as PaymentLinkRedemptionStatusResponse, ak as PrintSettingsResponse, al as PrintOptionsSelection, am as PrintQuoteResponse, an as PrintIntakeInput, ao as PrintJob, ap as DiningMenu, aq as CustomerSignupResponse, ar as SendCodeResponse, as as CustomerSession, at as CustomerResponse, au as CustomerAuthSession, av as CustomerSecurityActivityPage, O as Order, aw as OrderSummary, ax as SavedAddress, ay as SavedAddressResponse, az as SavedAddressInput, aA as SavedAddressUpdateInput, aB as SavedPaymentMethod, aC as PaymentMethodSetupInput, aD as PaymentMethodSetupResult, aE as PaymentMethodConfirmInput, aF as PaymentMethodMutationResponse, aG as StartSubscriptionInput, aH as SubscriptionAgreementResponse, aI as SubscriptionListResponse, aJ as SubscriptionSourceResponse, aK as SubscriptionInvoiceListResponse, aL as SubscriptionInvoiceResponse, aM as GivingIntentListResponse, aN as LeadResponse } from './types-D1GrAYBX.js';
2
- export { aO as BookingAvailability, aP as BookingCancellationPolicy, aQ as BookingCustomerInput, aR as BookingFreeSpan, aS as BookingHold, aT as BookingIntakeQuestion, aU as BookingPriceQuote, aV as BookingServicePricing, aW as BookingTimeRange, aX as CatalogProduct, aY as CheckoutAddress, aZ as CheckoutStatus, a_ as Customer, a$ as CustomerSecurityActivity, b0 as DashBrandingInfo, b1 as DashDirectoryProfile, b2 as DashLeadPortalMatch, b3 as DashLeadPortalMovingSummary, b4 as DashLeadPortalRequest, b5 as DashLeadPortalRequestStatus, b6 as DashLocaleInfo, b7 as DashPlan, b8 as DashPlanPricing, b9 as DashPlanRegion, ba as DashPublicPage, bb as DashPublicProfileInfo, bc as DashTenantInfo, bd as DiningAvailability, be as DiningAvailabilityRule, bf as DiningComboChoice, bg as DiningComboGroup, bh as DiningItemSize, bi as DiningMenuItem, bj as DiningModifier, bk as DiningModifierGroup, bl as DiningOffer, bm as DiningOfferBadge, bn as GivingIntent, bo as Menu, bp as MenuItem, bq as OrderItem, br as PaymentLinkRedemptionStatus, bs as PaymentMethodOption, bt as PaymentReadiness, bu as PrintBranding, bv as PrintIntakeLimits, bw as PrintJobFile, bx as PrintPaperSize, by as PrintPerPagePricing, bz as PrintPriceBreakdown, bA as PrintPriceLine, bB as PrintPricing, bC as PrintPricingOption, bD as PublicGate, bE as PublicPaymentLink, bF as PublicSiteSignals, bG as ShippingMethodOption, bH as SiteGatedDocument, bI as SiteRef, bJ as SiteResolvedDocument, bK as SiteSubject, bL as SubscriptionAgreement, bM as SubscriptionInvoice, bN as SubscriptionPlanOffer, bO as SubscriptionSourceDisplay, bP as WaitlistAttribution, bQ as WorkspaceInfo } from './types-D1GrAYBX.js';
1
+ import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as SlotsResponse, Q as DownloadResponse, aV as BeginUploadInput, U as UploadTicket, aW as CompleteUploadInput, R as ArtworkMutationReceipt, aX as DecisionInput, T as PublicConfiguration, V as PublicConfigurationQuoteInput, X as PublicConfigurationQuote, Y as CatalogCategory, Z as CatalogProductsResponse, _ as CatalogCollection, $ as CatalogBrand, a0 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a1 as UpdateCartItemInput, a2 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, a3 as Review, a4 as ReviewSummaryResponse, a5 as PublicSubmitReviewInput, a6 as ThemeResponse, a7 as MenuResponse, a8 as BlogPost, a9 as BlogPostResponse, aa as GivingEntry, ab as StartGivingInput, ac as StartGivingResponse, ad as SubscriptionPlanListResponse, ae as SubscriptionPlanResponse, af as BookingService, ag as BookingServiceResponse, ah as BookingAvailabilityParams, ai as BookingAvailabilityResponse, aj as BookingQuoteParams, ak as BookingQuoteResponse, al as CreateBookingHoldInput, am as BookingHoldResponse, an as PublicPaymentLinkResponse, ao as PaymentLinkCheckoutInput, ap as PaymentLinkCheckoutResponse, aq as PaymentLinkRedemptionStatusResponse, ar as PrintSettingsResponse, as as PrintOptionsSelection, at as PrintQuoteResponse, au as PrintIntakeInput, av as PrintJob, aw as DiningMenu, ax as CustomerSignupResponse, ay as SendCodeResponse, az as CustomerSession, aA as CustomerResponse, aB as CustomerAuthSession, aC as CustomerSecurityActivityPage, O as Order, aD as OrderSummary, aE as SavedAddress, aF as SavedAddressResponse, aG as SavedAddressInput, aH as SavedAddressUpdateInput, aI as SavedPaymentMethod, aJ as PaymentMethodSetupInput, aK as PaymentMethodSetupResult, aL as PaymentMethodConfirmInput, aM as PaymentMethodMutationResponse, aN as StartSubscriptionInput, aO as SubscriptionAgreementResponse, aP as SubscriptionListResponse, aQ as SubscriptionSourceResponse, aR as SubscriptionInvoiceListResponse, aS as SubscriptionInvoiceResponse, aT as GivingIntentListResponse, aU as LeadResponse, aY as Slot } from './types-CPdlxf5p.js';
2
+ export { aZ as BookingAvailability, a_ as BookingCancellationPolicy, a$ as BookingCustomerInput, b0 as BookingFreeSpan, b1 as BookingHold, b2 as BookingIntakeQuestion, b3 as BookingPriceQuote, b4 as BookingServicePricing, b5 as BookingTimeRange, b6 as CatalogProduct, b7 as CheckoutAddress, b8 as CheckoutStatus, b9 as ConfigDocument, ba as ConfigQuote, bb as ConfigSelectionRequest, bc as Customer, bd as CustomerSecurityActivity, be as DashBrandingInfo, bf as DashDirectoryProfile, bg as DashLeadPortalMatch, bh as DashLeadPortalMovingSummary, bi as DashLeadPortalRequest, bj as DashLeadPortalRequestStatus, bk as DashLocaleInfo, bl as DashPlan, bm as DashPlanPricing, bn as DashPlanRegion, bo as DashPublicPage, bp as DashPublicProfileInfo, bq as DashTenantInfo, br as DiningAvailability, bs as DiningAvailabilityRule, bt as DiningComboChoice, bu as DiningComboGroup, bv as DiningItemSize, bw as DiningMenuItem, bx as DiningModifier, by as DiningModifierGroup, bz as DiningOffer, bA as DiningOfferBadge, bB as GivingIntent, bC as Menu, bD as MenuItem, bE as OrderItem, bF as PaymentLinkRedemptionStatus, bG as PaymentMethodOption, bH as PaymentReadiness, bI as PrintBranding, bJ as PrintIntakeLimits, bK as PrintJobFile, bL as PrintPaperSize, bM as PrintPerPagePricing, bN as PrintPriceBreakdown, bO as PrintPriceLine, bP as PrintPricing, bQ as PrintPricingOption, bR as ProductLineConfiguration, bS as PublicGate, bT as PublicPaymentLink, bU as PublicSiteSignals, bV as ShippingMethodOption, bW as SiteGatedDocument, bX as SiteRef, bY as SiteResolvedDocument, bZ as SiteSubject, b_ as SubscriptionAgreement, b$ as SubscriptionInvoice, c0 as SubscriptionPlanOffer, c1 as SubscriptionSourceDisplay, c2 as WaitlistAttribution, c3 as WorkspaceInfo } from './types-CPdlxf5p.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
  /**
@@ -15,6 +15,17 @@ declare class ChannelConfigurationError extends Error {
15
15
  /** Works across duplicate package instances and transformed test bundles. */
16
16
  declare function isChannelConfigurationError(error: unknown): error is ChannelConfigurationError;
17
17
 
18
+ type ArtworkSlotsResponse = SlotsResponse;
19
+ type ArtworkSlot = Slot;
20
+ type ArtworkUploadTicket = UploadTicket;
21
+ type ArtworkUploadInput = BeginUploadInput & {
22
+ cart_token: string;
23
+ };
24
+ type ArtworkCompleteInput = CompleteUploadInput & {
25
+ cart_token: string;
26
+ };
27
+ type ArtworkProofDecision = DecisionInput;
28
+
18
29
  declare const DEFAULT_CHANNEL_API_URL = "https://api.saasdash.app";
19
30
  interface ChannelRetryPolicy {
20
31
  /** Additional attempts after the first (default 1). */
@@ -58,7 +69,7 @@ interface ChannelVisitor {
58
69
  userAgent?: string;
59
70
  }
60
71
  type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
61
- type ChannelOperation = "channel.ping" | "channel.geo.detect" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.payment_methods.list" | "channel.account.payment_methods.setup" | "channel.account.payment_methods.confirm" | "channel.account.payment_methods.default" | "channel.account.payment_methods.delete" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.account.subscriptions.cancel" | "channel.account.subscriptions.pause" | "channel.account.subscriptions.resume" | "channel.account.subscriptions.invoices.list" | "channel.account.subscriptions.invoices.get" | "channel.account.subscriptions.invoices.pay_now" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
72
+ 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.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.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
62
73
  interface ChannelRequestObservation {
63
74
  operation: ChannelOperation;
64
75
  method: string;
@@ -209,6 +220,17 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
209
220
  }>;
210
221
  readonly media: (slug: string) => Promise<ListResponse<ProductAsset>>;
211
222
  };
223
+ readonly artwork: {
224
+ readonly list: (orderId: string, cartToken: string) => Promise<SlotsResponse>;
225
+ readonly download: (orderId: string, itemId: string, slotKey: string, assetId: string, cartToken: string) => Promise<DownloadResponse>;
226
+ readonly beginUpload: (orderId: string, itemId: string, slotKey: string, input: ArtworkUploadInput) => Promise<UploadTicket>;
227
+ readonly completeUpload: (orderId: string, itemId: string, slotKey: string, uploadId: string, input: ArtworkCompleteInput) => Promise<ArtworkMutationReceipt>;
228
+ readonly decide: (orderId: string, itemId: string, slotKey: string, input: ArtworkProofDecision) => Promise<ArtworkMutationReceipt>;
229
+ };
230
+ readonly configurations: {
231
+ readonly get: (productId: string) => Promise<PublicConfiguration>;
232
+ readonly quote: (productId: string, input: PublicConfigurationQuoteInput) => Promise<PublicConfigurationQuote>;
233
+ };
212
234
  readonly categories: {
213
235
  readonly list: (params?: ChannelListParams) => Promise<ListResponse<CatalogCategory>>;
214
236
  readonly products: (slug: string) => Promise<CatalogProductsResponse>;
@@ -410,4 +432,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
410
432
  };
411
433
  };
412
434
 
413
- export { AddCartItemInput, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, CreateBookingHoldInput, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteDocument, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
435
+ 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, 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, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, 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-T6OQ4CBQ.js';
1
+ export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-LFHMWK6A.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, RequiredIdempotency, ChannelSubscriptionListParams, ChannelSubscriptionCancelParams, ChannelInvoiceListParams } from './index.js';
2
- import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, V as UpdateCartItemInput, X as MergeCartInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as BookingService, a9 as BookingServiceResponse, aa as BookingAvailabilityParams, ab as BookingAvailabilityResponse, ac as BookingQuoteParams, ad as BookingQuoteResponse, ae as CreateBookingHoldInput, af as BookingHoldResponse, ag as PublicPaymentLinkResponse, ah as PaymentLinkCheckoutInput, ai as PaymentLinkCheckoutResponse, aj as PaymentLinkRedemptionStatusResponse, ak as PrintSettingsResponse, al as PrintOptionsSelection, am as PrintQuoteResponse, an as PrintIntakeInput, ao as PrintJob, ap as DiningMenu, aq as CustomerSignupResponse, ar as SendCodeResponse, as as CustomerSession, at as CustomerResponse, au as CustomerAuthSession, av as CustomerSecurityActivityPage, aw as OrderSummary, ax as SavedAddress, ay as SavedAddressResponse, az as SavedAddressInput, aA as SavedAddressUpdateInput, aB as SavedPaymentMethod, aC as PaymentMethodSetupInput, aD as PaymentMethodSetupResult, aE as PaymentMethodConfirmInput, aF as PaymentMethodMutationResponse, aG as StartSubscriptionInput, aH as SubscriptionAgreementResponse, aI as SubscriptionListResponse, aJ as SubscriptionSourceResponse, aK as SubscriptionInvoiceListResponse, aL as SubscriptionInvoiceResponse, aM as GivingIntentListResponse, aN as LeadResponse } from './types-D1GrAYBX.js';
1
+ import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, 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 WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as SlotsResponse, Q as DownloadResponse, U as UploadTicket, R as ArtworkMutationReceipt, T as PublicConfiguration, V as PublicConfigurationQuoteInput, X as PublicConfigurationQuote, Y as CatalogCategory, Z as CatalogProductsResponse, _ as CatalogCollection, $ as CatalogBrand, a0 as CartLookupResponse, a1 as UpdateCartItemInput, a2 as MergeCartInput, a3 as Review, a4 as ReviewSummaryResponse, a5 as PublicSubmitReviewInput, a6 as ThemeResponse, a7 as MenuResponse, a8 as BlogPost, a9 as BlogPostResponse, aa as GivingEntry, ab as StartGivingInput, ac as StartGivingResponse, ad as SubscriptionPlanListResponse, ae as SubscriptionPlanResponse, af as BookingService, ag as BookingServiceResponse, ah as BookingAvailabilityParams, ai as BookingAvailabilityResponse, aj as BookingQuoteParams, ak as BookingQuoteResponse, al as CreateBookingHoldInput, am as BookingHoldResponse, an as PublicPaymentLinkResponse, ao as PaymentLinkCheckoutInput, ap as PaymentLinkCheckoutResponse, aq as PaymentLinkRedemptionStatusResponse, ar as PrintSettingsResponse, as as PrintOptionsSelection, at as PrintQuoteResponse, au as PrintIntakeInput, av as PrintJob, aw as DiningMenu, ax as CustomerSignupResponse, ay as SendCodeResponse, az as CustomerSession, aA as CustomerResponse, aB as CustomerAuthSession, aC as CustomerSecurityActivityPage, aD as OrderSummary, aE as SavedAddress, aF as SavedAddressResponse, aG as SavedAddressInput, aH as SavedAddressUpdateInput, aI as SavedPaymentMethod, aJ as PaymentMethodSetupInput, aK as PaymentMethodSetupResult, aL as PaymentMethodConfirmInput, aM as PaymentMethodMutationResponse, aN as StartSubscriptionInput, aO as SubscriptionAgreementResponse, aP as SubscriptionListResponse, aQ as SubscriptionSourceResponse, aR as SubscriptionInvoiceListResponse, aS as SubscriptionInvoiceResponse, aT as GivingIntentListResponse, aU as LeadResponse } from './types-CPdlxf5p.js';
3
3
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
4
4
 
5
5
  /**
@@ -347,6 +347,17 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
347
347
  }>;
348
348
  readonly media: (slug: string) => Promise<ListResponse<ProductAsset>>;
349
349
  };
350
+ readonly artwork: {
351
+ readonly list: (orderId: string, cartToken: string) => Promise<SlotsResponse>;
352
+ readonly download: (orderId: string, itemId: string, slotKey: string, assetId: string, cartToken: string) => Promise<DownloadResponse>;
353
+ readonly beginUpload: (orderId: string, itemId: string, slotKey: string, input: ArtworkUploadInput) => Promise<UploadTicket>;
354
+ readonly completeUpload: (orderId: string, itemId: string, slotKey: string, uploadId: string, input: ArtworkCompleteInput) => Promise<ArtworkMutationReceipt>;
355
+ readonly decide: (orderId: string, itemId: string, slotKey: string, input: ArtworkProofDecision) => Promise<ArtworkMutationReceipt>;
356
+ };
357
+ readonly configurations: {
358
+ readonly get: (productId: string) => Promise<PublicConfiguration>;
359
+ readonly quote: (productId: string, input: PublicConfigurationQuoteInput) => Promise<PublicConfigurationQuote>;
360
+ };
350
361
  readonly categories: {
351
362
  readonly list: (params?: ChannelListParams) => Promise<ListResponse<CatalogCategory>>;
352
363
  readonly products: (slug: string) => Promise<CatalogProductsResponse>;
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-HZBHUOJ5.js';
2
- import './chunk-T6OQ4CBQ.js';
1
+ export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-GPSFEKWL.js';
2
+ import './chunk-LFHMWK6A.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/site.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bI as SiteRef, bD as PublicGate, bF as PublicSiteSignals } from './types-D1GrAYBX.js';
1
+ import { bX as SiteRef, bS as PublicGate, bU as PublicSiteSignals } from './types-CPdlxf5p.js';
2
2
 
3
3
  /**
4
4
  * Site signals: what a public site serves, decided from the `signals` block
@@ -1,3 +1,219 @@
1
+ interface ArtworkMutationReceipt {
2
+ proof_revision: number;
3
+ state: string;
4
+ version: number;
5
+ }
6
+ interface ArtworkRecord {
7
+ frozen: boolean;
8
+ proof?: File;
9
+ proof_revision: number;
10
+ slot_key: string;
11
+ source: File;
12
+ state: string;
13
+ updated_at: string;
14
+ version: number;
15
+ }
16
+ interface ArtworkSlot {
17
+ bleed_mm?: number;
18
+ formats: string[];
19
+ key: string;
20
+ label: string;
21
+ max_mb: number;
22
+ min_dpi?: number;
23
+ proof_required?: boolean;
24
+ required?: boolean;
25
+ safe_mm?: number;
26
+ trim_h_mm?: number;
27
+ trim_w_mm?: number;
28
+ }
29
+ interface BeginUploadInput {
30
+ cart_token?: string;
31
+ file_name: string;
32
+ size_bytes: number;
33
+ version?: number;
34
+ }
35
+ interface Choice {
36
+ default?: boolean;
37
+ description?: string;
38
+ key: string;
39
+ label: string;
40
+ price?: PriceChange;
41
+ }
42
+ interface ChoiceGroup {
43
+ choices: Choice[];
44
+ key: string;
45
+ kind: string;
46
+ label: string;
47
+ max_picks?: number;
48
+ min_picks?: number;
49
+ required?: boolean;
50
+ }
51
+ interface ChoiceRule {
52
+ allowed: string[];
53
+ in: string[];
54
+ message?: string;
55
+ then: string;
56
+ when: string;
57
+ }
58
+ interface CompleteUploadInput {
59
+ cart_token?: string;
60
+ }
61
+ interface ConfigDocument {
62
+ base_price?: number;
63
+ groups: ChoiceGroup[];
64
+ inputs?: CustomerInputs;
65
+ minimum_total?: number;
66
+ notes?: string;
67
+ quantity?: QuantityPricing;
68
+ rules?: ChoiceRule[];
69
+ setup_fee?: number;
70
+ version: number;
71
+ }
72
+ interface ConfigQuote {
73
+ doc_hash: string;
74
+ lead_days: number;
75
+ lines: QuoteLine[];
76
+ selection: ConfigSelection;
77
+ subtotal: number;
78
+ total: number;
79
+ units: number;
80
+ warnings?: string[];
81
+ }
82
+ interface ConfigSelection {
83
+ choices?: Record<string, string[]>;
84
+ dimensions?: CustomSize;
85
+ quantity?: number;
86
+ text?: Record<string, string>;
87
+ turnaround?: string;
88
+ }
89
+ interface ConfigSelectionRequest {
90
+ choices?: Record<string, string[]>;
91
+ dimensions?: CustomSizeRequest;
92
+ quantity?: number;
93
+ text?: Record<string, string>;
94
+ turnaround?: string;
95
+ }
96
+ interface CustomSize {
97
+ height_mm: number;
98
+ width_mm: number;
99
+ }
100
+ interface CustomSizeRequest {
101
+ height_mm?: number;
102
+ width_mm?: number;
103
+ }
104
+ interface CustomerInputs {
105
+ artwork?: ArtworkSlot[];
106
+ dimensions?: DimensionPricing;
107
+ text?: TextInput[];
108
+ turnaround?: TurnaroundOption[];
109
+ }
110
+ interface DecisionInput {
111
+ approve?: boolean;
112
+ cart_token: string;
113
+ version: number;
114
+ }
115
+ interface DimensionPricing {
116
+ label?: string;
117
+ max_height_mm: number;
118
+ max_width_mm: number;
119
+ min_billable_area_mm2?: number;
120
+ min_height_mm: number;
121
+ min_width_mm: number;
122
+ rate_per_m2: number;
123
+ }
124
+ interface DownloadResponse {
125
+ expires_in: number;
126
+ url: string;
127
+ }
128
+ interface File {
129
+ asset_id: string;
130
+ mime_type: string;
131
+ name: string;
132
+ sha256: string;
133
+ size_bytes: number;
134
+ }
135
+ interface LineConfig {
136
+ hash: string;
137
+ lead_days?: number;
138
+ revision_id: string;
139
+ selection?: unknown;
140
+ snapshot?: unknown;
141
+ }
142
+ interface PriceBreak {
143
+ cells?: Record<string, number>;
144
+ min_quantity: number;
145
+ price?: number;
146
+ }
147
+ interface PriceChange {
148
+ amount: number;
149
+ kind: string;
150
+ pack_size?: number;
151
+ }
152
+ interface PublicConfiguration {
153
+ currency: string;
154
+ doc: ConfigDocument;
155
+ product_id: string;
156
+ revision: number;
157
+ revision_id: string;
158
+ }
159
+ interface PublicConfigurationQuote {
160
+ currency: string;
161
+ quote: ConfigQuote;
162
+ revision_id: string;
163
+ }
164
+ interface PublicConfigurationQuoteInput {
165
+ revision_id?: string;
166
+ selection?: ConfigSelectionRequest;
167
+ }
168
+ interface QuantityPricing {
169
+ axes?: string[];
170
+ breaks?: PriceBreak[];
171
+ max?: number;
172
+ min?: number;
173
+ mode: string;
174
+ presets?: number[];
175
+ price_mode?: string;
176
+ step?: number;
177
+ unit_label?: string;
178
+ }
179
+ interface QuoteLine {
180
+ amount: number;
181
+ key?: string;
182
+ kind: string;
183
+ label: string;
184
+ }
185
+ interface Slot {
186
+ line_number: number;
187
+ order_item_id: string;
188
+ quantity: number;
189
+ record?: ArtworkRecord;
190
+ spec: ArtworkSlot;
191
+ summary?: string;
192
+ title: string;
193
+ version: number;
194
+ }
195
+ interface SlotsResponse {
196
+ items: Slot[];
197
+ }
198
+ interface TextInput {
199
+ key: string;
200
+ label: string;
201
+ max_length: number;
202
+ required?: boolean;
203
+ }
204
+ interface TurnaroundOption {
205
+ default?: boolean;
206
+ key: string;
207
+ label: string;
208
+ lead_days: number;
209
+ surcharge?: PriceChange;
210
+ }
211
+ interface UploadTicket {
212
+ expires_at: string;
213
+ upload_id: string;
214
+ upload_url: string;
215
+ }
216
+
1
217
  interface ListResponse<T> {
2
218
  items: T[];
3
219
  next_cursor?: string;
@@ -430,6 +646,7 @@ interface PublicPage extends PublicPageSummary {
430
646
  default_shell_template_id?: string;
431
647
  }
432
648
  interface Product {
649
+ kind?: string;
433
650
  id: string;
434
651
  workspace_id: string;
435
652
  title: string;
@@ -515,6 +732,7 @@ interface CatalogBrand {
515
732
  updated_at: string;
516
733
  }
517
734
  interface CatalogProduct {
735
+ kind?: string;
518
736
  id: string;
519
737
  slug: string;
520
738
  title: string;
@@ -1259,6 +1477,9 @@ interface Order {
1259
1477
  [key: string]: unknown;
1260
1478
  }
1261
1479
  interface OrderItem {
1480
+ sku?: string;
1481
+ summary?: string;
1482
+ configuration?: LineConfig;
1262
1483
  id: string;
1263
1484
  order_id: string;
1264
1485
  product_id?: string;
@@ -1281,16 +1502,22 @@ interface CartResponse {
1281
1502
  interface CartLookupResponse {
1282
1503
  order?: Order | null;
1283
1504
  }
1505
+ interface ProductLineConfiguration {
1506
+ revision_id?: string;
1507
+ selection: ConfigSelectionRequest;
1508
+ }
1284
1509
  interface AddCartItemInput {
1285
1510
  cart_token?: string;
1286
1511
  currency?: string;
1287
1512
  product_id: string;
1288
1513
  variant_id?: string;
1289
1514
  quantity: number;
1515
+ configuration?: ProductLineConfiguration;
1290
1516
  }
1291
1517
  interface UpdateCartItemInput {
1292
1518
  cart_token: string;
1293
1519
  quantity: number;
1520
+ configuration?: ProductLineConfiguration;
1294
1521
  }
1295
1522
  interface MergeCartInput {
1296
1523
  source_cart_token: string;
@@ -1539,4 +1766,4 @@ interface BookingQuoteParams {
1539
1766
  endsAt?: string;
1540
1767
  }
1541
1768
 
1542
- export type { ThemeResponse as $, AddCartItemInput as A, DashMovingAddressList as B, CartResponse as C, DashProfileResponse as D, DashMovingAddress as E, DashMovingDistance as F, PublicWorkspaceInit as G, LightInitResponse as H, PublicPageSummary as I, PublicPage as J, Product as K, ListResponse as L, ProductAsset as M, CatalogCategory as N, Order as O, PaymentCollectionAvailability as P, CatalogProductsResponse as Q, CatalogCollection as R, SiteDocument as S, CatalogBrand as T, CartLookupResponse as U, UpdateCartItemInput as V, WaitlistVerification as W, MergeCartInput as X, Review as Y, ReviewSummaryResponse as Z, PublicSubmitReviewInput as _, CheckoutOptions as a, CustomerSecurityActivity as a$, MenuResponse as a0, BlogPost as a1, BlogPostResponse as a2, GivingEntry as a3, StartGivingInput as a4, StartGivingResponse as a5, SubscriptionPlanListResponse as a6, SubscriptionPlanResponse as a7, BookingService as a8, BookingServiceResponse as a9, SavedAddressUpdateInput as aA, SavedPaymentMethod as aB, PaymentMethodSetupInput as aC, PaymentMethodSetupResult as aD, PaymentMethodConfirmInput as aE, PaymentMethodMutationResponse as aF, StartSubscriptionInput as aG, SubscriptionAgreementResponse as aH, SubscriptionListResponse as aI, SubscriptionSourceResponse as aJ, SubscriptionInvoiceListResponse as aK, SubscriptionInvoiceResponse as aL, GivingIntentListResponse as aM, LeadResponse as aN, BookingAvailability as aO, BookingCancellationPolicy as aP, BookingCustomerInput as aQ, BookingFreeSpan as aR, BookingHold as aS, BookingIntakeQuestion as aT, BookingPriceQuote as aU, BookingServicePricing as aV, BookingTimeRange as aW, CatalogProduct as aX, CheckoutAddress as aY, CheckoutStatus as aZ, Customer as a_, BookingAvailabilityParams as aa, BookingAvailabilityResponse as ab, BookingQuoteParams as ac, BookingQuoteResponse as ad, CreateBookingHoldInput as ae, BookingHoldResponse as af, PublicPaymentLinkResponse as ag, PaymentLinkCheckoutInput as ah, PaymentLinkCheckoutResponse as ai, PaymentLinkRedemptionStatusResponse as aj, PrintSettingsResponse as ak, PrintOptionsSelection as al, PrintQuoteResponse as am, PrintIntakeInput as an, PrintJob as ao, DiningMenu as ap, CustomerSignupResponse as aq, SendCodeResponse as ar, CustomerSession as as, CustomerResponse as at, CustomerAuthSession as au, CustomerSecurityActivityPage as av, OrderSummary as aw, SavedAddress as ax, SavedAddressResponse as ay, SavedAddressInput as az, CheckoutStatusResponse as b, DashBrandingInfo as b0, DashDirectoryProfile as b1, DashLeadPortalMatch as b2, DashLeadPortalMovingSummary as b3, DashLeadPortalRequest as b4, DashLeadPortalRequestStatus as b5, DashLocaleInfo as b6, DashPlan as b7, DashPlanPricing as b8, DashPlanRegion as b9, PrintPriceLine as bA, PrintPricing as bB, PrintPricingOption as bC, PublicGate as bD, PublicPaymentLink as bE, PublicSiteSignals as bF, ShippingMethodOption as bG, SiteGatedDocument as bH, SiteRef as bI, SiteResolvedDocument as bJ, SiteSubject as bK, SubscriptionAgreement as bL, SubscriptionInvoice as bM, SubscriptionPlanOffer as bN, SubscriptionSourceDisplay as bO, WaitlistAttribution as bP, WorkspaceInfo as bQ, DashPublicPage as ba, DashPublicProfileInfo as bb, DashTenantInfo as bc, DiningAvailability as bd, DiningAvailabilityRule as be, DiningComboChoice as bf, DiningComboGroup as bg, DiningItemSize as bh, DiningMenuItem as bi, DiningModifier as bj, DiningModifierGroup as bk, DiningOffer as bl, DiningOfferBadge as bm, GivingIntent as bn, Menu as bo, MenuItem as bp, OrderItem as bq, PaymentLinkRedemptionStatus as br, PaymentMethodOption as bs, PaymentReadiness as bt, PrintBranding as bu, PrintIntakeLimits as bv, PrintJobFile as bw, PrintPaperSize as bx, PrintPerPagePricing as by, PrintPriceBreakdown as bz, CheckoutCustomerInput as c, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistUnsubscription as k, DashInitResponse as l, WaitlistGateStatus as m, WaitlistFormSettings as n, WaitlistSubmission as o, WaitlistAcknowledgement as p, DashPlansResponse as q, DashDirectoryRegion as r, DashDirectoryEntry as s, DashDirectoryProfileResponse as t, DashLead as u, DashLeadPortalRequestLinkInput as v, DashLeadPortalRequestLinkResponse as w, DashLeadPortalView as x, DashMovingQuoteInput as y, DashMovingQuoteReceipt as z };
1769
+ export type { CatalogBrand as $, AddCartItemInput as A, DashMovingAddressList as B, CartResponse as C, DashProfileResponse as D, DashMovingAddress as E, DashMovingDistance as F, PublicWorkspaceInit as G, LightInitResponse as H, PublicPageSummary as I, PublicPage as J, Product as K, ListResponse as L, ProductAsset as M, SlotsResponse as N, Order as O, PaymentCollectionAvailability as P, DownloadResponse as Q, ArtworkMutationReceipt as R, SiteDocument as S, PublicConfiguration as T, UploadTicket as U, PublicConfigurationQuoteInput as V, WaitlistVerification as W, PublicConfigurationQuote as X, CatalogCategory as Y, CatalogProductsResponse as Z, CatalogCollection as _, CheckoutOptions as a, BookingCustomerInput as a$, CartLookupResponse as a0, UpdateCartItemInput as a1, MergeCartInput as a2, Review as a3, ReviewSummaryResponse as a4, PublicSubmitReviewInput as a5, ThemeResponse as a6, MenuResponse as a7, BlogPost as a8, BlogPostResponse as a9, CustomerResponse as aA, CustomerAuthSession as aB, CustomerSecurityActivityPage as aC, OrderSummary as aD, SavedAddress as aE, SavedAddressResponse as aF, SavedAddressInput as aG, SavedAddressUpdateInput as aH, SavedPaymentMethod as aI, PaymentMethodSetupInput as aJ, PaymentMethodSetupResult as aK, PaymentMethodConfirmInput as aL, PaymentMethodMutationResponse as aM, StartSubscriptionInput as aN, SubscriptionAgreementResponse as aO, SubscriptionListResponse as aP, SubscriptionSourceResponse as aQ, SubscriptionInvoiceListResponse as aR, SubscriptionInvoiceResponse as aS, GivingIntentListResponse as aT, LeadResponse as aU, BeginUploadInput as aV, CompleteUploadInput as aW, DecisionInput as aX, Slot as aY, BookingAvailability as aZ, BookingCancellationPolicy as a_, GivingEntry as aa, StartGivingInput as ab, StartGivingResponse as ac, SubscriptionPlanListResponse as ad, SubscriptionPlanResponse as ae, BookingService as af, BookingServiceResponse as ag, BookingAvailabilityParams as ah, BookingAvailabilityResponse as ai, BookingQuoteParams as aj, BookingQuoteResponse as ak, CreateBookingHoldInput as al, BookingHoldResponse as am, PublicPaymentLinkResponse as an, PaymentLinkCheckoutInput as ao, PaymentLinkCheckoutResponse as ap, PaymentLinkRedemptionStatusResponse as aq, PrintSettingsResponse as ar, PrintOptionsSelection as as, PrintQuoteResponse as at, PrintIntakeInput as au, PrintJob as av, DiningMenu as aw, CustomerSignupResponse as ax, SendCodeResponse as ay, CustomerSession as az, CheckoutStatusResponse as b, SubscriptionInvoice as b$, BookingFreeSpan as b0, BookingHold as b1, BookingIntakeQuestion as b2, BookingPriceQuote as b3, BookingServicePricing as b4, BookingTimeRange as b5, CatalogProduct as b6, CheckoutAddress as b7, CheckoutStatus as b8, ConfigDocument as b9, DiningOfferBadge as bA, GivingIntent as bB, Menu as bC, MenuItem as bD, OrderItem as bE, PaymentLinkRedemptionStatus as bF, PaymentMethodOption as bG, PaymentReadiness as bH, PrintBranding as bI, PrintIntakeLimits as bJ, PrintJobFile as bK, PrintPaperSize as bL, PrintPerPagePricing as bM, PrintPriceBreakdown as bN, PrintPriceLine as bO, PrintPricing as bP, PrintPricingOption as bQ, ProductLineConfiguration as bR, PublicGate as bS, PublicPaymentLink as bT, PublicSiteSignals as bU, ShippingMethodOption as bV, SiteGatedDocument as bW, SiteRef as bX, SiteResolvedDocument as bY, SiteSubject as bZ, SubscriptionAgreement as b_, ConfigQuote as ba, ConfigSelectionRequest as bb, Customer as bc, CustomerSecurityActivity as bd, DashBrandingInfo as be, DashDirectoryProfile as bf, DashLeadPortalMatch as bg, DashLeadPortalMovingSummary as bh, DashLeadPortalRequest as bi, DashLeadPortalRequestStatus as bj, DashLocaleInfo as bk, DashPlan as bl, DashPlanPricing as bm, DashPlanRegion as bn, DashPublicPage as bo, DashPublicProfileInfo as bp, DashTenantInfo as bq, DiningAvailability as br, DiningAvailabilityRule as bs, DiningComboChoice as bt, DiningComboGroup as bu, DiningItemSize as bv, DiningMenuItem as bw, DiningModifier as bx, DiningModifierGroup as by, DiningOffer as bz, CheckoutCustomerInput as c, SubscriptionPlanOffer as c0, SubscriptionSourceDisplay as c1, WaitlistAttribution as c2, WorkspaceInfo as c3, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistUnsubscription as k, DashInitResponse as l, WaitlistGateStatus as m, WaitlistFormSettings as n, WaitlistSubmission as o, WaitlistAcknowledgement as p, DashPlansResponse as q, DashDirectoryRegion as r, DashDirectoryEntry as s, DashDirectoryProfileResponse as t, DashLead as u, DashLeadPortalRequestLinkInput as v, DashLeadPortalRequestLinkResponse as w, DashLeadPortalView as x, DashMovingQuoteInput as y, DashMovingQuoteReceipt as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/channel-client",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",