@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.
- package/dist/{chunk-HZBHUOJ5.js → chunk-GPSFEKWL.js} +1 -1
- package/dist/{chunk-T6OQ4CBQ.js → chunk-LFHMWK6A.js} +11 -0
- package/dist/{chunk-KQI2FMHI.js → chunk-VARU5HM6.js} +1 -1
- package/dist/dash-next.d.ts +1 -1
- package/dist/dash-next.js +3 -3
- package/dist/dash.d.ts +1 -1
- package/dist/dash.js +2 -2
- package/dist/index.d.ts +26 -4
- package/dist/index.js +1 -1
- package/dist/next.d.ts +13 -2
- package/dist/next.js +2 -2
- package/dist/site.d.ts +1 -1
- package/dist/{types-D1GrAYBX.d.ts → types-CPdlxf5p.d.ts} +228 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isChannelAPIError, createChannelClient } from './chunk-
|
|
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`)
|
package/dist/dash-next.d.ts
CHANGED
package/dist/dash-next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createNextChannelClient } from './chunk-
|
|
2
|
-
import { narrow } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createNextChannelClient } from './chunk-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
package/dist/dash.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDashChannelClient, narrow as narrowToDash } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDashChannelClient, narrow as narrowToDash } from './chunk-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
|
|
2
|
-
export {
|
|
1
|
+
import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as 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-
|
|
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
|
|
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-
|
|
2
|
-
import './chunk-
|
|
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 {
|
|
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 {
|
|
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 };
|