@c1m-public/channel-client 0.27.0 → 0.29.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/README.md +29 -0
- package/dist/{chunk-HOR5MOYI.js → chunk-EDG3ZGPF.js} +3 -2
- package/dist/{chunk-LRHQXWLD.js → chunk-KCYSLD37.js} +2 -1
- package/dist/{chunk-E5J5UOPS.js → chunk-LBOYLZ4J.js} +20 -0
- package/dist/dash-next.d.ts +1 -0
- package/dist/dash-next.js +3 -3
- package/dist/dash.d.ts +4 -2
- package/dist/dash.js +2 -2
- package/dist/index.d.ts +10 -1308
- package/dist/index.js +1 -1
- package/dist/next.d.ts +8 -3
- package/dist/next.js +2 -2
- package/dist/site.d.ts +107 -0
- package/dist/site.js +109 -0
- package/dist/types-DrmlZASd.d.ts +1360 -0
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,1310 +1,7 @@
|
|
|
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, S as SiteDocument, y as PublicWorkspaceInit, z as LightInitResponse, B as PublicPageSummary, E as PublicPage, F as Product, G as ProductAsset, H as CatalogCategory, I as CatalogProductsResponse, J as CatalogCollection, K as CatalogBrand, C as CartResponse, A as AddCartItemInput, U as UpdateCartItemInput, M 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, R as Review, N as ReviewSummaryResponse, Q as PublicSubmitReviewInput, T as ThemeResponse, V as MenuResponse, X as BlogPost, Y as BlogPostResponse, Z as GivingEntry, _ as StartGivingInput, $ as StartGivingResponse, a0 as SubscriptionPlanListResponse, a1 as SubscriptionPlanResponse, a2 as PublicPaymentLinkResponse, a3 as PaymentLinkCheckoutInput, a4 as PaymentLinkCheckoutResponse, a5 as PaymentLinkRedemptionStatusResponse, a6 as PrintSettingsResponse, a7 as PrintOptionsSelection, a8 as PrintQuoteResponse, a9 as PrintIntakeInput, aa as PrintJob, ab as DiningMenu, ac as CustomerSignupResponse, ad as SendCodeResponse, ae as CustomerSession, af as CustomerResponse, ag as CustomerAuthSession, ah as CustomerSecurityActivityPage, O as Order, ai as OrderSummary, aj as SavedAddress, ak as SavedAddressResponse, al as SavedAddressInput, am as SavedAddressUpdateInput, an as SavedPaymentMethod, ao as PaymentMethodSetupInput, ap as PaymentMethodSetupResult, aq as PaymentMethodConfirmInput, ar as PaymentMethodMutationResponse, as as StartSubscriptionInput, at as SubscriptionAgreementResponse, au as SubscriptionListResponse, av as SubscriptionSourceResponse, aw as SubscriptionInvoiceListResponse, ax as SubscriptionInvoiceResponse, ay as GivingIntentListResponse, az as LeadResponse } from './types-DrmlZASd.js';
|
|
2
|
+
export { aA as CatalogProduct, aB as CheckoutAddress, aC as CheckoutStatus, aD as Customer, aE as CustomerSecurityActivity, aF as DashBrandingInfo, aG as DashDirectoryProfile, aH as DashLeadPortalMatch, aI as DashLeadPortalMovingSummary, aJ as DashLeadPortalRequest, aK as DashLeadPortalRequestStatus, aL as DashLocaleInfo, aM as DashPlan, aN as DashPlanPricing, aO as DashPlanRegion, aP as DashPublicPage, aQ as DashPublicProfileInfo, aR as DashTenantInfo, aS as DiningAvailability, aT as DiningAvailabilityRule, aU as DiningComboChoice, aV as DiningComboGroup, aW as DiningItemSize, aX as DiningMenuItem, aY as DiningModifier, aZ as DiningModifierGroup, a_ as DiningOffer, a$ as DiningOfferBadge, b0 as GivingIntent, b1 as Menu, b2 as MenuItem, b3 as OrderItem, b4 as PaymentLinkRedemptionStatus, b5 as PaymentMethodOption, b6 as PaymentReadiness, b7 as PrintBranding, b8 as PrintIntakeLimits, b9 as PrintJobFile, ba as PrintPaperSize, bb as PrintPerPagePricing, bc as PrintPriceBreakdown, bd as PrintPriceLine, be as PrintPricing, bf as PrintPricingOption, bg as PublicGate, bh as PublicPaymentLink, bi as PublicSiteSignals, bj as ShippingMethodOption, bk as SiteGatedDocument, bl as SiteRef, bm as SiteResolvedDocument, bn as SiteSubject, bo as SubscriptionAgreement, bp as SubscriptionInvoice, bq as SubscriptionPlanOffer, br as SubscriptionSourceDisplay, bs as WaitlistAttribution, bt as WorkspaceInfo } from './types-DrmlZASd.js';
|
|
1
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';
|
|
2
4
|
|
|
3
|
-
interface ListResponse<T> {
|
|
4
|
-
items: T[];
|
|
5
|
-
next_cursor?: string;
|
|
6
|
-
has_more?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface WorkspaceInfo {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
slug: string;
|
|
12
|
-
is_active: boolean;
|
|
13
|
-
status?: string;
|
|
14
|
-
}
|
|
15
|
-
/** Public availability only; never participant data or an access grant. */
|
|
16
|
-
interface WaitlistPublicStatus {
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
accepting_entries: boolean;
|
|
19
|
-
display: "page" | "block";
|
|
20
|
-
}
|
|
21
|
-
interface WaitlistPublicFormResponse {
|
|
22
|
-
status: WaitlistPublicStatus;
|
|
23
|
-
collect_marketing_consent: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface WaitlistSubmission {
|
|
26
|
-
email: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
source?: string;
|
|
29
|
-
marketing_opt_in?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface WaitlistAcknowledgement {
|
|
32
|
-
accepted: boolean;
|
|
33
|
-
}
|
|
34
|
-
interface PublicWorkspaceInit {
|
|
35
|
-
workspace: WorkspaceInfo;
|
|
36
|
-
branding?: Record<string, unknown>;
|
|
37
|
-
preferences?: Record<string, unknown>;
|
|
38
|
-
profile?: Record<string, unknown>;
|
|
39
|
-
waitlist?: WaitlistPublicStatus;
|
|
40
|
-
features?: Array<{
|
|
41
|
-
key: string;
|
|
42
|
-
name: string;
|
|
43
|
-
is_enabled: boolean;
|
|
44
|
-
is_available: boolean;
|
|
45
|
-
}>;
|
|
46
|
-
modules?: unknown[];
|
|
47
|
-
custom?: Record<string, unknown>;
|
|
48
|
-
cache_control?: {
|
|
49
|
-
etag?: string;
|
|
50
|
-
max_age?: number;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The public origin of a dash or workspace, resolved server-side once:
|
|
55
|
-
* verified hostname (external → the channel bound to it) > active channel
|
|
56
|
-
* site_url > hosted managed host. Use it for `metadataBase`, canonical/OG
|
|
57
|
-
* URLs, robots and sitemaps instead of a hardcoded base URL.
|
|
58
|
-
*/
|
|
59
|
-
interface SiteRef {
|
|
60
|
-
/** Absolute https origin, no trailing slash. */
|
|
61
|
-
url: string;
|
|
62
|
-
source: "hostname" | "channel" | "hosted";
|
|
63
|
-
/** The external channel that renders the site, when one does. */
|
|
64
|
-
channel_id?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* The headless bootstrap payload — one cached call carries identity,
|
|
68
|
-
* branding, features, locale, SEO defaults and the public origin. Navigation
|
|
69
|
-
* (`menus.get`) and theme (`theme.get`) stay separate, parallel reads.
|
|
70
|
-
*/
|
|
71
|
-
interface LightInitResponse {
|
|
72
|
-
waitlist?: WaitlistPublicStatus;
|
|
73
|
-
workspace_id: string;
|
|
74
|
-
workspace_name: string;
|
|
75
|
-
workspace_slug?: string;
|
|
76
|
-
primary_color: string;
|
|
77
|
-
logo_url?: string;
|
|
78
|
-
logo_light_url?: string;
|
|
79
|
-
logo_dark_url?: string;
|
|
80
|
-
logo_square_url?: string;
|
|
81
|
-
enabled_features: string[];
|
|
82
|
-
settings?: {
|
|
83
|
-
currency_code?: string;
|
|
84
|
-
locale?: string;
|
|
85
|
-
timezone?: string;
|
|
86
|
-
};
|
|
87
|
-
site?: SiteRef;
|
|
88
|
-
seo?: {
|
|
89
|
-
title?: string;
|
|
90
|
-
description?: string;
|
|
91
|
-
};
|
|
92
|
-
etag?: string;
|
|
93
|
-
}
|
|
94
|
-
interface DashTenantInfo {
|
|
95
|
-
id: string;
|
|
96
|
-
display_name: string;
|
|
97
|
-
managed_domain?: string;
|
|
98
|
-
status: string;
|
|
99
|
-
}
|
|
100
|
-
interface DashPublicProfileInfo {
|
|
101
|
-
discoverable: boolean;
|
|
102
|
-
category?: string;
|
|
103
|
-
headline?: string;
|
|
104
|
-
short_description?: string;
|
|
105
|
-
about?: string;
|
|
106
|
-
logo_url?: string;
|
|
107
|
-
header_media_url?: string;
|
|
108
|
-
pricing_summary?: string;
|
|
109
|
-
}
|
|
110
|
-
interface DashBrandingInfo {
|
|
111
|
-
primary_color?: string;
|
|
112
|
-
logo_url?: string;
|
|
113
|
-
logo_square_url?: string;
|
|
114
|
-
favicon_url?: string;
|
|
115
|
-
cover_url?: string;
|
|
116
|
-
}
|
|
117
|
-
interface DashLocaleInfo {
|
|
118
|
-
region?: string;
|
|
119
|
-
currency?: string;
|
|
120
|
-
locale?: string;
|
|
121
|
-
timezone?: string;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* The dash bootstrap — one call for a marketing site's shell: identity,
|
|
125
|
-
* public profile, branding, locale, SEO defaults and the public origin.
|
|
126
|
-
* `dash.profile()` remains for the full profile page (gallery, about template).
|
|
127
|
-
*/
|
|
128
|
-
interface DashInitResponse {
|
|
129
|
-
waitlist?: WaitlistPublicStatus;
|
|
130
|
-
tenant: DashTenantInfo;
|
|
131
|
-
public_profile: DashPublicProfileInfo;
|
|
132
|
-
branding?: DashBrandingInfo;
|
|
133
|
-
locale?: DashLocaleInfo;
|
|
134
|
-
seo?: {
|
|
135
|
-
title?: string;
|
|
136
|
-
description?: string;
|
|
137
|
-
};
|
|
138
|
-
site?: SiteRef;
|
|
139
|
-
}
|
|
140
|
-
interface DashPublicPage {
|
|
141
|
-
profile: DashPublicProfileInfo & {
|
|
142
|
-
dash_id: string;
|
|
143
|
-
status: string;
|
|
144
|
-
display_name?: string;
|
|
145
|
-
is_private: boolean;
|
|
146
|
-
allow_free_memberships: boolean;
|
|
147
|
-
primary_color?: string;
|
|
148
|
-
logo_square_url?: string;
|
|
149
|
-
favicon_url?: string;
|
|
150
|
-
cover_url?: string;
|
|
151
|
-
gallery_items?: Array<{
|
|
152
|
-
url: string;
|
|
153
|
-
kind: string;
|
|
154
|
-
alt_text?: string;
|
|
155
|
-
caption?: string;
|
|
156
|
-
}>;
|
|
157
|
-
[key: string]: unknown;
|
|
158
|
-
};
|
|
159
|
-
owner_name?: string;
|
|
160
|
-
user_count: number;
|
|
161
|
-
workspace_counts: Record<string, number>;
|
|
162
|
-
media: Array<{
|
|
163
|
-
kind: string;
|
|
164
|
-
url: string;
|
|
165
|
-
alt_text?: string;
|
|
166
|
-
caption?: string;
|
|
167
|
-
}>;
|
|
168
|
-
}
|
|
169
|
-
interface DashProfileResponse {
|
|
170
|
-
page: DashPublicPage;
|
|
171
|
-
}
|
|
172
|
-
interface DashPlanPricing {
|
|
173
|
-
currency: string;
|
|
174
|
-
currency_symbol?: string;
|
|
175
|
-
monthly_price: number;
|
|
176
|
-
yearly_price: number;
|
|
177
|
-
}
|
|
178
|
-
interface DashPlan {
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
|
-
description: string;
|
|
182
|
-
level: number;
|
|
183
|
-
is_public: boolean;
|
|
184
|
-
is_free: boolean;
|
|
185
|
-
trial_days?: number;
|
|
186
|
-
highlights: string[];
|
|
187
|
-
limits: Record<string, number>;
|
|
188
|
-
pricing: Record<string, DashPlanPricing>;
|
|
189
|
-
}
|
|
190
|
-
interface DashPlanRegion {
|
|
191
|
-
code: string;
|
|
192
|
-
name: string;
|
|
193
|
-
currency: string;
|
|
194
|
-
locale: string;
|
|
195
|
-
timezone: string;
|
|
196
|
-
market_code?: string;
|
|
197
|
-
}
|
|
198
|
-
interface DashPlansResponse {
|
|
199
|
-
plans: DashPlan[];
|
|
200
|
-
regions: DashPlanRegion[];
|
|
201
|
-
default_region: string;
|
|
202
|
-
}
|
|
203
|
-
interface DashDirectoryRegion {
|
|
204
|
-
code: string;
|
|
205
|
-
label: string;
|
|
206
|
-
country_code?: string;
|
|
207
|
-
sort_order: number;
|
|
208
|
-
count: number;
|
|
209
|
-
}
|
|
210
|
-
interface DashDirectoryEntry {
|
|
211
|
-
workspace_id: string;
|
|
212
|
-
slug: string;
|
|
213
|
-
name: string;
|
|
214
|
-
tagline?: string;
|
|
215
|
-
category?: string;
|
|
216
|
-
logo_url?: string;
|
|
217
|
-
logo_square_url?: string;
|
|
218
|
-
primary_color?: string;
|
|
219
|
-
review_count: number;
|
|
220
|
-
average_rating: number;
|
|
221
|
-
verified: boolean;
|
|
222
|
-
service_tags: unknown;
|
|
223
|
-
major_region_code?: string;
|
|
224
|
-
major_region_label?: string;
|
|
225
|
-
upcoming_events?: unknown[];
|
|
226
|
-
}
|
|
227
|
-
interface DashDirectoryProfile extends DashDirectoryEntry {
|
|
228
|
-
display_name?: string;
|
|
229
|
-
description?: string;
|
|
230
|
-
logo_light_url?: string;
|
|
231
|
-
logo_dark_url?: string;
|
|
232
|
-
verified_at?: string;
|
|
233
|
-
created_at: string;
|
|
234
|
-
}
|
|
235
|
-
interface DashDirectoryProfileResponse {
|
|
236
|
-
profile: DashDirectoryProfile;
|
|
237
|
-
}
|
|
238
|
-
/** A requester's view of their quote requests, unlocked by a signed portal link. */
|
|
239
|
-
interface DashLeadPortalView {
|
|
240
|
-
email: string;
|
|
241
|
-
requests: DashLeadPortalRequest[];
|
|
242
|
-
}
|
|
243
|
-
type DashLeadPortalRequestStatus = "received" | "matching" | "matched" | "closed";
|
|
244
|
-
interface DashLeadPortalRequest {
|
|
245
|
-
reference: string;
|
|
246
|
-
submittedAt: string;
|
|
247
|
-
status: DashLeadPortalRequestStatus;
|
|
248
|
-
summary?: DashLeadPortalMovingSummary;
|
|
249
|
-
matches: DashLeadPortalMatch[];
|
|
250
|
-
}
|
|
251
|
-
interface DashLeadPortalMovingSummary {
|
|
252
|
-
from?: string;
|
|
253
|
-
to?: string;
|
|
254
|
-
moveDate?: string;
|
|
255
|
-
size?: string;
|
|
256
|
-
}
|
|
257
|
-
interface DashLeadPortalMatch {
|
|
258
|
-
workspaceId: string;
|
|
259
|
-
name: string;
|
|
260
|
-
category?: string;
|
|
261
|
-
logoUrl?: string;
|
|
262
|
-
coverageArea?: string;
|
|
263
|
-
verified?: boolean;
|
|
264
|
-
rating?: number;
|
|
265
|
-
reviewCount?: number;
|
|
266
|
-
responded?: boolean;
|
|
267
|
-
}
|
|
268
|
-
interface DashLeadPortalRequestLinkInput {
|
|
269
|
-
email: string;
|
|
270
|
-
}
|
|
271
|
-
/** Deliberately non-enumerating: the same shape whether or not the email exists. */
|
|
272
|
-
interface DashLeadPortalRequestLinkResponse {
|
|
273
|
-
ok: boolean;
|
|
274
|
-
message: string;
|
|
275
|
-
}
|
|
276
|
-
interface DashLead {
|
|
277
|
-
id: string;
|
|
278
|
-
owner_scope?: string;
|
|
279
|
-
owner_id?: string;
|
|
280
|
-
name?: string;
|
|
281
|
-
email?: string;
|
|
282
|
-
phone?: string;
|
|
283
|
-
message?: string;
|
|
284
|
-
source: string;
|
|
285
|
-
channel_id?: string;
|
|
286
|
-
status: string;
|
|
287
|
-
meta?: Record<string, unknown>;
|
|
288
|
-
created_at: string;
|
|
289
|
-
updated_at: string;
|
|
290
|
-
}
|
|
291
|
-
interface PublicPageSummary {
|
|
292
|
-
id: string;
|
|
293
|
-
dash_id: string;
|
|
294
|
-
workspace_id: string;
|
|
295
|
-
source: string;
|
|
296
|
-
route_kind: string;
|
|
297
|
-
route_pattern: string;
|
|
298
|
-
slug: string;
|
|
299
|
-
title: string;
|
|
300
|
-
status: string;
|
|
301
|
-
status_reason: string;
|
|
302
|
-
visibility: "hidden" | "visible";
|
|
303
|
-
edit_mode: string;
|
|
304
|
-
draft_revision: number;
|
|
305
|
-
created_at: string;
|
|
306
|
-
updated_at: string;
|
|
307
|
-
}
|
|
308
|
-
interface PublicPage extends PublicPageSummary {
|
|
309
|
-
owner_app?: string;
|
|
310
|
-
required_apps?: string[];
|
|
311
|
-
required_features?: string[];
|
|
312
|
-
seo_title?: string;
|
|
313
|
-
seo_description?: string;
|
|
314
|
-
draft_state?: unknown;
|
|
315
|
-
layout_state?: unknown;
|
|
316
|
-
published_at?: string;
|
|
317
|
-
manifest_key?: string;
|
|
318
|
-
manifest_version?: number;
|
|
319
|
-
template_key?: string;
|
|
320
|
-
theme_id?: string;
|
|
321
|
-
default_shell_template_id?: string;
|
|
322
|
-
}
|
|
323
|
-
interface Product {
|
|
324
|
-
id: string;
|
|
325
|
-
workspace_id: string;
|
|
326
|
-
title: string;
|
|
327
|
-
slug: string;
|
|
328
|
-
description?: string;
|
|
329
|
-
/** The product type, as a summary — the server has never sent a bare string here. */
|
|
330
|
-
type?: {
|
|
331
|
-
id: string;
|
|
332
|
-
name: string;
|
|
333
|
-
slug: string;
|
|
334
|
-
};
|
|
335
|
-
price_cents: number;
|
|
336
|
-
currency: string;
|
|
337
|
-
inventory_qty: number;
|
|
338
|
-
/**
|
|
339
|
-
* Stripe product tax code (e.g. `txcd_99999999`). Drives how Stripe Automatic Tax
|
|
340
|
-
* categorises the product at checkout — a book, a hot meal and a t-shirt are taxed
|
|
341
|
-
* differently in most places. Empty means the merchant's Stripe account default.
|
|
342
|
-
*/
|
|
343
|
-
tax_code?: string;
|
|
344
|
-
status: "draft" | "published" | "archived";
|
|
345
|
-
primary_image_url?: string;
|
|
346
|
-
options?: unknown[];
|
|
347
|
-
variants?: unknown[];
|
|
348
|
-
categories?: Array<{
|
|
349
|
-
id: string;
|
|
350
|
-
name: string;
|
|
351
|
-
slug: string;
|
|
352
|
-
}>;
|
|
353
|
-
created_at: string;
|
|
354
|
-
updated_at: string;
|
|
355
|
-
}
|
|
356
|
-
interface ProductAsset {
|
|
357
|
-
id: string;
|
|
358
|
-
position: number;
|
|
359
|
-
is_featured: boolean;
|
|
360
|
-
asset: {
|
|
361
|
-
id: string;
|
|
362
|
-
source: string;
|
|
363
|
-
name: string;
|
|
364
|
-
alt_text?: string;
|
|
365
|
-
size_bytes: number;
|
|
366
|
-
mime_type?: string;
|
|
367
|
-
url?: string;
|
|
368
|
-
created_at: string;
|
|
369
|
-
};
|
|
370
|
-
created_at: string;
|
|
371
|
-
}
|
|
372
|
-
interface CatalogCategory {
|
|
373
|
-
id: string;
|
|
374
|
-
workspace_id: string;
|
|
375
|
-
name: string;
|
|
376
|
-
slug: string;
|
|
377
|
-
description?: string;
|
|
378
|
-
is_active: boolean;
|
|
379
|
-
sort_order: number;
|
|
380
|
-
product_count: number;
|
|
381
|
-
metadata: unknown;
|
|
382
|
-
created_at: string;
|
|
383
|
-
updated_at: string;
|
|
384
|
-
}
|
|
385
|
-
interface CatalogCollection {
|
|
386
|
-
id: string;
|
|
387
|
-
workspace_id: string;
|
|
388
|
-
title: string;
|
|
389
|
-
slug: string;
|
|
390
|
-
description?: string;
|
|
391
|
-
product_count?: number;
|
|
392
|
-
created_at: string;
|
|
393
|
-
updated_at: string;
|
|
394
|
-
}
|
|
395
|
-
interface CatalogBrand {
|
|
396
|
-
id: string;
|
|
397
|
-
workspace_id: string;
|
|
398
|
-
name: string;
|
|
399
|
-
slug: string;
|
|
400
|
-
description?: string;
|
|
401
|
-
website_url?: string;
|
|
402
|
-
is_active: boolean;
|
|
403
|
-
sort_order: number;
|
|
404
|
-
metadata: unknown;
|
|
405
|
-
created_at: string;
|
|
406
|
-
updated_at: string;
|
|
407
|
-
}
|
|
408
|
-
interface CatalogProduct {
|
|
409
|
-
id: string;
|
|
410
|
-
slug: string;
|
|
411
|
-
title: string;
|
|
412
|
-
price_cents: number;
|
|
413
|
-
currency: string;
|
|
414
|
-
base_price_cents?: number;
|
|
415
|
-
base_currency?: string;
|
|
416
|
-
price_source?: string;
|
|
417
|
-
fx_rate?: number;
|
|
418
|
-
fx_provider?: string;
|
|
419
|
-
fx_quoted_at?: string;
|
|
420
|
-
primary_image_url?: string;
|
|
421
|
-
status: string;
|
|
422
|
-
}
|
|
423
|
-
interface CatalogProductsResponse {
|
|
424
|
-
products: CatalogProduct[];
|
|
425
|
-
count: number;
|
|
426
|
-
}
|
|
427
|
-
interface Review {
|
|
428
|
-
id: string;
|
|
429
|
-
rating: number;
|
|
430
|
-
author_name: string;
|
|
431
|
-
author_email: string;
|
|
432
|
-
title: string;
|
|
433
|
-
body: string;
|
|
434
|
-
status: "pending" | "published" | "rejected";
|
|
435
|
-
source?: string;
|
|
436
|
-
created_at?: string;
|
|
437
|
-
[key: string]: unknown;
|
|
438
|
-
}
|
|
439
|
-
interface PublicSubmitReviewInput {
|
|
440
|
-
rating: number;
|
|
441
|
-
author_name?: string;
|
|
442
|
-
author_email?: string;
|
|
443
|
-
title?: string;
|
|
444
|
-
body?: string;
|
|
445
|
-
source?: string;
|
|
446
|
-
}
|
|
447
|
-
interface ReviewSummaryResponse {
|
|
448
|
-
summary: {
|
|
449
|
-
review_count: number;
|
|
450
|
-
average_rating: number;
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
interface LeadResponse {
|
|
454
|
-
id: string;
|
|
455
|
-
workspace_id: string;
|
|
456
|
-
name: string;
|
|
457
|
-
email: string;
|
|
458
|
-
phone?: string;
|
|
459
|
-
message?: string;
|
|
460
|
-
source: string;
|
|
461
|
-
status: string;
|
|
462
|
-
meta?: Record<string, unknown>;
|
|
463
|
-
created_at: string;
|
|
464
|
-
updated_at: string;
|
|
465
|
-
}
|
|
466
|
-
interface SiteSubject {
|
|
467
|
-
kind: "workspace";
|
|
468
|
-
id: string;
|
|
469
|
-
dash_id?: string;
|
|
470
|
-
display_name?: string;
|
|
471
|
-
}
|
|
472
|
-
interface SiteResolvedDocument {
|
|
473
|
-
state: "resolved";
|
|
474
|
-
subject: SiteSubject;
|
|
475
|
-
page: {
|
|
476
|
-
id: string;
|
|
477
|
-
workspace_id: string;
|
|
478
|
-
slug: string;
|
|
479
|
-
title: string;
|
|
480
|
-
layout_state?: unknown;
|
|
481
|
-
draft_state?: unknown;
|
|
482
|
-
[key: string]: unknown;
|
|
483
|
-
};
|
|
484
|
-
surface?: Record<string, unknown>;
|
|
485
|
-
route_params?: Record<string, string>;
|
|
486
|
-
theme?: Record<string, unknown> | null;
|
|
487
|
-
navigation: {
|
|
488
|
-
main_menu?: Record<string, unknown> | null;
|
|
489
|
-
footer_menu?: Record<string, unknown> | null;
|
|
490
|
-
};
|
|
491
|
-
init: PublicWorkspaceInit;
|
|
492
|
-
seo?: {
|
|
493
|
-
title?: string;
|
|
494
|
-
description?: string;
|
|
495
|
-
};
|
|
496
|
-
revisions?: Record<string, string | undefined>;
|
|
497
|
-
cache_control?: {
|
|
498
|
-
etag?: string;
|
|
499
|
-
max_age?: number;
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
interface SiteGatedDocument {
|
|
503
|
-
state: "gated";
|
|
504
|
-
subject: SiteSubject;
|
|
505
|
-
gate: {
|
|
506
|
-
kind: "password";
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
type SiteDocument = SiteResolvedDocument | SiteGatedDocument;
|
|
510
|
-
interface MenuItem {
|
|
511
|
-
id: string;
|
|
512
|
-
parent_id?: string;
|
|
513
|
-
title: string;
|
|
514
|
-
url: string;
|
|
515
|
-
resource_type?: string;
|
|
516
|
-
resource_id?: string;
|
|
517
|
-
position: number;
|
|
518
|
-
target?: Record<string, unknown>;
|
|
519
|
-
[key: string]: unknown;
|
|
520
|
-
}
|
|
521
|
-
interface Menu {
|
|
522
|
-
id: string;
|
|
523
|
-
workspace_id: string;
|
|
524
|
-
handle: string;
|
|
525
|
-
title: string;
|
|
526
|
-
items?: MenuItem[];
|
|
527
|
-
[key: string]: unknown;
|
|
528
|
-
}
|
|
529
|
-
interface MenuResponse {
|
|
530
|
-
menu: Menu;
|
|
531
|
-
}
|
|
532
|
-
interface BlogPost {
|
|
533
|
-
id: string;
|
|
534
|
-
workspace_id: string;
|
|
535
|
-
slug: string;
|
|
536
|
-
title: string;
|
|
537
|
-
status: string;
|
|
538
|
-
excerpt?: string;
|
|
539
|
-
cover_image_url?: string;
|
|
540
|
-
content?: unknown;
|
|
541
|
-
published_at?: string;
|
|
542
|
-
created_at?: string;
|
|
543
|
-
updated_at?: string;
|
|
544
|
-
[key: string]: unknown;
|
|
545
|
-
}
|
|
546
|
-
interface BlogPostResponse {
|
|
547
|
-
post: BlogPost;
|
|
548
|
-
}
|
|
549
|
-
interface GivingEntry {
|
|
550
|
-
id: string;
|
|
551
|
-
workspace_id: string;
|
|
552
|
-
slug: string;
|
|
553
|
-
title: string;
|
|
554
|
-
subtitle?: string;
|
|
555
|
-
variant: string;
|
|
556
|
-
default_amount_cents: number;
|
|
557
|
-
suggested_amounts_cents?: number[];
|
|
558
|
-
allow_custom_amount: boolean;
|
|
559
|
-
cta_label?: string;
|
|
560
|
-
is_active: boolean;
|
|
561
|
-
created_at: string;
|
|
562
|
-
updated_at: string;
|
|
563
|
-
}
|
|
564
|
-
interface GivingIntent {
|
|
565
|
-
id: string;
|
|
566
|
-
workspace_id: string;
|
|
567
|
-
status: string;
|
|
568
|
-
variant: string;
|
|
569
|
-
title: string;
|
|
570
|
-
description?: string;
|
|
571
|
-
currency: string;
|
|
572
|
-
amount_cents: number;
|
|
573
|
-
is_recurring: boolean;
|
|
574
|
-
is_anonymous: boolean;
|
|
575
|
-
display_name?: string;
|
|
576
|
-
email?: string;
|
|
577
|
-
message?: string;
|
|
578
|
-
session_id?: string;
|
|
579
|
-
recurring_agreement_id?: string;
|
|
580
|
-
source_invoice_id?: string;
|
|
581
|
-
created_at: string;
|
|
582
|
-
updated_at: string;
|
|
583
|
-
refunded_at?: string;
|
|
584
|
-
}
|
|
585
|
-
interface GivingIntentListResponse {
|
|
586
|
-
items: GivingIntent[];
|
|
587
|
-
}
|
|
588
|
-
interface SavedAddress {
|
|
589
|
-
id: string;
|
|
590
|
-
label: string;
|
|
591
|
-
name: string;
|
|
592
|
-
phone: string;
|
|
593
|
-
line1: string;
|
|
594
|
-
line2: string;
|
|
595
|
-
city: string;
|
|
596
|
-
region: string;
|
|
597
|
-
postal_code: string;
|
|
598
|
-
country_code: string;
|
|
599
|
-
is_default: boolean;
|
|
600
|
-
created_at: string;
|
|
601
|
-
updated_at: string;
|
|
602
|
-
}
|
|
603
|
-
interface SavedAddressInput {
|
|
604
|
-
name: string;
|
|
605
|
-
line1: string;
|
|
606
|
-
city: string;
|
|
607
|
-
country_code: string;
|
|
608
|
-
label?: string;
|
|
609
|
-
phone?: string;
|
|
610
|
-
line2?: string;
|
|
611
|
-
region?: string;
|
|
612
|
-
postal_code?: string;
|
|
613
|
-
is_default?: boolean;
|
|
614
|
-
}
|
|
615
|
-
type SavedAddressUpdateInput = SavedAddressInput;
|
|
616
|
-
interface SavedAddressResponse {
|
|
617
|
-
address: SavedAddress;
|
|
618
|
-
}
|
|
619
|
-
interface SavedPaymentMethod {
|
|
620
|
-
id: string;
|
|
621
|
-
provider: string;
|
|
622
|
-
status: string;
|
|
623
|
-
is_default: boolean;
|
|
624
|
-
display_brand?: string;
|
|
625
|
-
display_last4?: string;
|
|
626
|
-
exp_month?: number;
|
|
627
|
-
exp_year?: number;
|
|
628
|
-
created_at: string;
|
|
629
|
-
updated_at: string;
|
|
630
|
-
}
|
|
631
|
-
interface PaymentMethodSetupInput {
|
|
632
|
-
provider: string;
|
|
633
|
-
consent: boolean;
|
|
634
|
-
consent_version: "saved_payment_method_v1";
|
|
635
|
-
}
|
|
636
|
-
interface PaymentMethodSetupResult {
|
|
637
|
-
type: string;
|
|
638
|
-
client_secret?: string;
|
|
639
|
-
publishable_key?: string;
|
|
640
|
-
}
|
|
641
|
-
interface PaymentMethodConfirmInput {
|
|
642
|
-
provider: string;
|
|
643
|
-
setup_intent_id?: string;
|
|
644
|
-
payment_method_id?: string;
|
|
645
|
-
}
|
|
646
|
-
interface PaymentMethodMutationResponse {
|
|
647
|
-
success: boolean;
|
|
648
|
-
}
|
|
649
|
-
interface SubscriptionAgreement {
|
|
650
|
-
id: string;
|
|
651
|
-
workspace_id: string;
|
|
652
|
-
source_kind: string;
|
|
653
|
-
source_id: string;
|
|
654
|
-
end_user_ref?: string;
|
|
655
|
-
status: string;
|
|
656
|
-
provider: string;
|
|
657
|
-
provider_ref?: string;
|
|
658
|
-
provider_customer_ref?: string;
|
|
659
|
-
plan_id?: string;
|
|
660
|
-
initial_invoice_id?: string;
|
|
661
|
-
currency: string;
|
|
662
|
-
amount_cents: number;
|
|
663
|
-
interval: string;
|
|
664
|
-
current_period_start?: string;
|
|
665
|
-
current_period_end?: string;
|
|
666
|
-
trial_ends_at?: string;
|
|
667
|
-
cancel_at_period_end: boolean;
|
|
668
|
-
canceled_at?: string;
|
|
669
|
-
meta?: Record<string, unknown>;
|
|
670
|
-
created_at: string;
|
|
671
|
-
updated_at: string;
|
|
672
|
-
}
|
|
673
|
-
interface SubscriptionAgreementResponse {
|
|
674
|
-
agreement: SubscriptionAgreement;
|
|
675
|
-
}
|
|
676
|
-
interface SubscriptionListResponse {
|
|
677
|
-
items: SubscriptionAgreement[];
|
|
678
|
-
has_more: boolean;
|
|
679
|
-
next_cursor?: string;
|
|
680
|
-
}
|
|
681
|
-
interface SubscriptionInvoice {
|
|
682
|
-
id: string;
|
|
683
|
-
workspace_id: string;
|
|
684
|
-
agreement_id: string;
|
|
685
|
-
source_kind: string;
|
|
686
|
-
source_id: string;
|
|
687
|
-
invoice_number: string;
|
|
688
|
-
status: string;
|
|
689
|
-
currency: string;
|
|
690
|
-
subtotal_cents: number;
|
|
691
|
-
tax_cents: number;
|
|
692
|
-
total_cents: number;
|
|
693
|
-
paid_cents: number;
|
|
694
|
-
period_start?: string;
|
|
695
|
-
period_end?: string;
|
|
696
|
-
due_at?: string;
|
|
697
|
-
paid_at?: string;
|
|
698
|
-
payment_id?: string;
|
|
699
|
-
attempt_count: number;
|
|
700
|
-
failure_code?: string;
|
|
701
|
-
failure_message?: string;
|
|
702
|
-
meta?: Record<string, unknown>;
|
|
703
|
-
created_at: string;
|
|
704
|
-
updated_at: string;
|
|
705
|
-
}
|
|
706
|
-
interface SubscriptionInvoiceResponse {
|
|
707
|
-
invoice: SubscriptionInvoice;
|
|
708
|
-
}
|
|
709
|
-
interface SubscriptionInvoiceListResponse {
|
|
710
|
-
items: SubscriptionInvoice[];
|
|
711
|
-
has_more: boolean;
|
|
712
|
-
next_cursor?: string;
|
|
713
|
-
}
|
|
714
|
-
interface SubscriptionSourceDisplay {
|
|
715
|
-
source_app: string;
|
|
716
|
-
source_kind: string;
|
|
717
|
-
source_id: string;
|
|
718
|
-
app_label: string;
|
|
719
|
-
object_label: string;
|
|
720
|
-
subtitle?: string;
|
|
721
|
-
variant?: string;
|
|
722
|
-
admin_href?: string;
|
|
723
|
-
customer_href?: string;
|
|
724
|
-
status?: string;
|
|
725
|
-
}
|
|
726
|
-
interface SubscriptionSourceResponse {
|
|
727
|
-
source_display: SubscriptionSourceDisplay;
|
|
728
|
-
}
|
|
729
|
-
interface StartGivingInput {
|
|
730
|
-
variant?: string;
|
|
731
|
-
title?: string;
|
|
732
|
-
description?: string;
|
|
733
|
-
amount_cents: number;
|
|
734
|
-
currency?: string;
|
|
735
|
-
is_recurring?: boolean;
|
|
736
|
-
is_anonymous?: boolean;
|
|
737
|
-
display_name?: string;
|
|
738
|
-
email?: string;
|
|
739
|
-
message?: string;
|
|
740
|
-
success_url?: string;
|
|
741
|
-
cancel_url?: string;
|
|
742
|
-
}
|
|
743
|
-
interface StartGivingResponse {
|
|
744
|
-
giving: GivingIntent;
|
|
745
|
-
/** Present for one-time gifts. Recurring gifts start an account agreement. */
|
|
746
|
-
session?: {
|
|
747
|
-
session_id: string;
|
|
748
|
-
url: string;
|
|
749
|
-
payment_intent_id?: string;
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
/** Public, fail-closed view of the platform payment-collection cutoff. */
|
|
753
|
-
interface PaymentCollectionAvailability {
|
|
754
|
-
available: boolean;
|
|
755
|
-
code?: "payment_collection_disabled" | "payment_collection_unavailable";
|
|
756
|
-
message?: string;
|
|
757
|
-
}
|
|
758
|
-
interface PublicPaymentLink {
|
|
759
|
-
id: string;
|
|
760
|
-
title: string;
|
|
761
|
-
description?: string;
|
|
762
|
-
amount_cents: number;
|
|
763
|
-
currency: string;
|
|
764
|
-
allow_custom_amount: boolean;
|
|
765
|
-
minimum_amount_cents?: number;
|
|
766
|
-
maximum_amount_cents?: number;
|
|
767
|
-
}
|
|
768
|
-
interface PublicPaymentLinkResponse {
|
|
769
|
-
payment_link: PublicPaymentLink;
|
|
770
|
-
}
|
|
771
|
-
interface PaymentLinkCheckoutInput {
|
|
772
|
-
/** Omit for fixed-price links. Required when a custom-price link has no default. */
|
|
773
|
-
amount_cents?: number;
|
|
774
|
-
customer_email?: string;
|
|
775
|
-
customer_name?: string;
|
|
776
|
-
}
|
|
777
|
-
type PaymentLinkRedemptionStatus = "pending" | "checkout_ready" | "succeeded" | "failed" | "refunded" | "disputed" | "charged_back";
|
|
778
|
-
interface PaymentLinkCheckoutResponse {
|
|
779
|
-
redemption_id: string;
|
|
780
|
-
status: PaymentLinkRedemptionStatus;
|
|
781
|
-
session: {
|
|
782
|
-
session_id: string;
|
|
783
|
-
url: string;
|
|
784
|
-
payment_intent_id?: string;
|
|
785
|
-
};
|
|
786
|
-
}
|
|
787
|
-
interface PaymentLinkRedemptionStatusResponse {
|
|
788
|
-
redemption_id: string;
|
|
789
|
-
status: PaymentLinkRedemptionStatus;
|
|
790
|
-
failure_code?: string;
|
|
791
|
-
}
|
|
792
|
-
interface PrintPerPagePricing {
|
|
793
|
-
bw_cents: number;
|
|
794
|
-
colour_cents: number;
|
|
795
|
-
}
|
|
796
|
-
interface PrintPaperSize {
|
|
797
|
-
key: string;
|
|
798
|
-
label: string;
|
|
799
|
-
surcharge_cents: number;
|
|
800
|
-
enabled: boolean;
|
|
801
|
-
}
|
|
802
|
-
interface PrintPricingOption {
|
|
803
|
-
key: string;
|
|
804
|
-
label: string;
|
|
805
|
-
type: string;
|
|
806
|
-
surcharge_cents: number;
|
|
807
|
-
}
|
|
808
|
-
interface PrintPricing {
|
|
809
|
-
base_fee_cents: number;
|
|
810
|
-
per_page: PrintPerPagePricing;
|
|
811
|
-
paper_sizes: PrintPaperSize[];
|
|
812
|
-
options: PrintPricingOption[];
|
|
813
|
-
min_total_cents: number;
|
|
814
|
-
}
|
|
815
|
-
interface PrintBranding {
|
|
816
|
-
display_name?: string;
|
|
817
|
-
logo_url?: string;
|
|
818
|
-
accent?: string;
|
|
819
|
-
instructions?: string;
|
|
820
|
-
}
|
|
821
|
-
interface PrintIntakeLimits {
|
|
822
|
-
max_files: number;
|
|
823
|
-
max_file_bytes: number;
|
|
824
|
-
max_total_bytes: number;
|
|
825
|
-
allowed_extensions: string[];
|
|
826
|
-
}
|
|
827
|
-
interface PrintSettingsResponse {
|
|
828
|
-
accepting: boolean;
|
|
829
|
-
currency: string;
|
|
830
|
-
retention_days: number;
|
|
831
|
-
pricing: PrintPricing;
|
|
832
|
-
branding: PrintBranding;
|
|
833
|
-
intake_limits: PrintIntakeLimits;
|
|
834
|
-
}
|
|
835
|
-
interface PrintOptionsSelection {
|
|
836
|
-
paper_size: string;
|
|
837
|
-
colour: boolean;
|
|
838
|
-
pages: number;
|
|
839
|
-
copies: number;
|
|
840
|
-
extras?: Record<string, boolean>;
|
|
841
|
-
}
|
|
842
|
-
interface PrintPriceLine {
|
|
843
|
-
label: string;
|
|
844
|
-
amount_cents: number;
|
|
845
|
-
}
|
|
846
|
-
interface PrintPriceBreakdown {
|
|
847
|
-
lines: PrintPriceLine[];
|
|
848
|
-
total_cents: number;
|
|
849
|
-
currency: string;
|
|
850
|
-
}
|
|
851
|
-
interface PrintQuoteResponse {
|
|
852
|
-
price_cents: number;
|
|
853
|
-
currency: string;
|
|
854
|
-
breakdown: PrintPriceBreakdown;
|
|
855
|
-
}
|
|
856
|
-
interface PrintIntakeInput {
|
|
857
|
-
name: string;
|
|
858
|
-
email?: string;
|
|
859
|
-
phone?: string;
|
|
860
|
-
notes?: string;
|
|
861
|
-
options: PrintOptionsSelection;
|
|
862
|
-
files: Array<{
|
|
863
|
-
blob: Blob;
|
|
864
|
-
filename: string;
|
|
865
|
-
}>;
|
|
866
|
-
}
|
|
867
|
-
interface PrintJobFile {
|
|
868
|
-
id: string;
|
|
869
|
-
job_id: string;
|
|
870
|
-
file_name: string;
|
|
871
|
-
mime_type: string;
|
|
872
|
-
size_bytes: number;
|
|
873
|
-
page_count?: number;
|
|
874
|
-
sort_order: number;
|
|
875
|
-
created_at: string;
|
|
876
|
-
}
|
|
877
|
-
interface PrintJob {
|
|
878
|
-
id: string;
|
|
879
|
-
workspace_id: string;
|
|
880
|
-
reference: string;
|
|
881
|
-
customer_name: string;
|
|
882
|
-
customer_email?: string;
|
|
883
|
-
customer_phone?: string;
|
|
884
|
-
status: string;
|
|
885
|
-
payment_status: string;
|
|
886
|
-
payment_method: string;
|
|
887
|
-
options: PrintOptionsSelection;
|
|
888
|
-
price_cents: number;
|
|
889
|
-
currency: string;
|
|
890
|
-
price_breakdown: PrintPriceBreakdown;
|
|
891
|
-
notes?: string;
|
|
892
|
-
file_count?: number;
|
|
893
|
-
version: number;
|
|
894
|
-
files?: PrintJobFile[];
|
|
895
|
-
created_at: string;
|
|
896
|
-
updated_at: string;
|
|
897
|
-
}
|
|
898
|
-
interface DiningAvailabilityRule {
|
|
899
|
-
days?: string[];
|
|
900
|
-
start?: string;
|
|
901
|
-
end?: string;
|
|
902
|
-
starts_on?: string;
|
|
903
|
-
ends_on?: string;
|
|
904
|
-
}
|
|
905
|
-
interface DiningAvailability {
|
|
906
|
-
timezone?: string;
|
|
907
|
-
rules?: DiningAvailabilityRule[];
|
|
908
|
-
is_available_now: boolean;
|
|
909
|
-
next_change_at?: string;
|
|
910
|
-
}
|
|
911
|
-
interface DiningItemSize {
|
|
912
|
-
id: string;
|
|
913
|
-
name: string;
|
|
914
|
-
price_cents: number;
|
|
915
|
-
is_default: boolean;
|
|
916
|
-
sort_order: number;
|
|
917
|
-
is_active: boolean;
|
|
918
|
-
}
|
|
919
|
-
interface DiningModifier {
|
|
920
|
-
id: string;
|
|
921
|
-
name: string;
|
|
922
|
-
description?: string;
|
|
923
|
-
price_delta_cents: number;
|
|
924
|
-
is_default: boolean;
|
|
925
|
-
sort_order: number;
|
|
926
|
-
is_active: boolean;
|
|
927
|
-
}
|
|
928
|
-
interface DiningModifierGroup {
|
|
929
|
-
id: string;
|
|
930
|
-
name: string;
|
|
931
|
-
description?: string;
|
|
932
|
-
selection_type: string;
|
|
933
|
-
is_required: boolean;
|
|
934
|
-
min_selections: number;
|
|
935
|
-
max_selections?: number;
|
|
936
|
-
sort_order: number;
|
|
937
|
-
is_active: boolean;
|
|
938
|
-
modifiers: DiningModifier[];
|
|
939
|
-
}
|
|
940
|
-
interface DiningOfferBadge {
|
|
941
|
-
offer_id: string;
|
|
942
|
-
label: string;
|
|
943
|
-
type: string;
|
|
944
|
-
is_featured: boolean;
|
|
945
|
-
display_priority: number;
|
|
946
|
-
}
|
|
947
|
-
interface DiningComboChoice {
|
|
948
|
-
id: string;
|
|
949
|
-
item: {
|
|
950
|
-
id: string;
|
|
951
|
-
slug: string;
|
|
952
|
-
name: string;
|
|
953
|
-
description?: string;
|
|
954
|
-
base_price_cents: number;
|
|
955
|
-
image_url?: string;
|
|
956
|
-
image_alt: string;
|
|
957
|
-
badges: string[];
|
|
958
|
-
status: string;
|
|
959
|
-
dietary_flags: string[];
|
|
960
|
-
allergens: string[];
|
|
961
|
-
calories?: number;
|
|
962
|
-
prep_time_mins?: number;
|
|
963
|
-
spice_level?: number;
|
|
964
|
-
kitchen_station?: string;
|
|
965
|
-
sizes: DiningItemSize[];
|
|
966
|
-
modifier_groups: DiningModifierGroup[];
|
|
967
|
-
};
|
|
968
|
-
label_override?: string;
|
|
969
|
-
description_override?: string;
|
|
970
|
-
price_delta_cents: number;
|
|
971
|
-
is_default: boolean;
|
|
972
|
-
sort_order: number;
|
|
973
|
-
is_active: boolean;
|
|
974
|
-
is_available: boolean;
|
|
975
|
-
}
|
|
976
|
-
interface DiningComboGroup {
|
|
977
|
-
id: string;
|
|
978
|
-
name: string;
|
|
979
|
-
description?: string;
|
|
980
|
-
min_selections: number;
|
|
981
|
-
max_selections?: number;
|
|
982
|
-
allow_repeats: boolean;
|
|
983
|
-
sort_order: number;
|
|
984
|
-
is_active: boolean;
|
|
985
|
-
choices: DiningComboChoice[];
|
|
986
|
-
}
|
|
987
|
-
interface DiningOffer {
|
|
988
|
-
id: string;
|
|
989
|
-
name: string;
|
|
990
|
-
badge_label?: string;
|
|
991
|
-
type: string;
|
|
992
|
-
code?: string;
|
|
993
|
-
is_featured: boolean;
|
|
994
|
-
display_priority: number;
|
|
995
|
-
image_url?: string;
|
|
996
|
-
availability?: DiningAvailability;
|
|
997
|
-
is_active: boolean;
|
|
998
|
-
}
|
|
999
|
-
interface DiningMenuItem {
|
|
1000
|
-
id: string;
|
|
1001
|
-
slug: string;
|
|
1002
|
-
name: string;
|
|
1003
|
-
description?: string;
|
|
1004
|
-
item_kind: string;
|
|
1005
|
-
price_cents: number;
|
|
1006
|
-
price_from_cents: number;
|
|
1007
|
-
image_url?: string;
|
|
1008
|
-
image_alt: string;
|
|
1009
|
-
badges: string[];
|
|
1010
|
-
is_featured: boolean;
|
|
1011
|
-
is_available: boolean;
|
|
1012
|
-
status: string;
|
|
1013
|
-
dietary_flags: string[];
|
|
1014
|
-
allergens: string[];
|
|
1015
|
-
calories?: number;
|
|
1016
|
-
prep_time_mins?: number;
|
|
1017
|
-
spice_level?: number;
|
|
1018
|
-
sizes: DiningItemSize[];
|
|
1019
|
-
modifier_groups: DiningModifierGroup[];
|
|
1020
|
-
offer_badges: DiningOfferBadge[];
|
|
1021
|
-
combo_groups?: DiningComboGroup[];
|
|
1022
|
-
}
|
|
1023
|
-
interface DiningMenu {
|
|
1024
|
-
dash_id: string;
|
|
1025
|
-
workspace_id: string;
|
|
1026
|
-
board: {
|
|
1027
|
-
id: string;
|
|
1028
|
-
slug: string;
|
|
1029
|
-
name: string;
|
|
1030
|
-
description?: string;
|
|
1031
|
-
currency: string;
|
|
1032
|
-
applicable_order_types: string[];
|
|
1033
|
-
availability?: DiningAvailability;
|
|
1034
|
-
is_active: boolean;
|
|
1035
|
-
};
|
|
1036
|
-
sections: Array<{
|
|
1037
|
-
id: string;
|
|
1038
|
-
name: string;
|
|
1039
|
-
description?: string;
|
|
1040
|
-
sort_order: number;
|
|
1041
|
-
availability?: DiningAvailability;
|
|
1042
|
-
is_active: boolean;
|
|
1043
|
-
items: DiningMenuItem[];
|
|
1044
|
-
}>;
|
|
1045
|
-
offers: DiningOffer[];
|
|
1046
|
-
generated_at: string;
|
|
1047
|
-
}
|
|
1048
|
-
/** The published theme, as served to a channel that owns its own routing and
|
|
1049
|
-
* therefore never calls `site.resolve` (which otherwise bundles it). */
|
|
1050
|
-
interface ThemeResponse {
|
|
1051
|
-
theme: Record<string, unknown> | null;
|
|
1052
|
-
}
|
|
1053
|
-
interface Customer {
|
|
1054
|
-
id: string;
|
|
1055
|
-
email: string;
|
|
1056
|
-
name: string;
|
|
1057
|
-
email_verified?: boolean;
|
|
1058
|
-
is_active?: boolean;
|
|
1059
|
-
[key: string]: unknown;
|
|
1060
|
-
}
|
|
1061
|
-
/** Returned by verify-code and refresh. `access_token` is the session. */
|
|
1062
|
-
interface CustomerSession {
|
|
1063
|
-
access_token: string;
|
|
1064
|
-
refresh_token: string;
|
|
1065
|
-
token_type: string;
|
|
1066
|
-
expires_at: string;
|
|
1067
|
-
end_user: Customer;
|
|
1068
|
-
}
|
|
1069
|
-
interface CustomerSignupResponse {
|
|
1070
|
-
end_user: Customer;
|
|
1071
|
-
created: boolean;
|
|
1072
|
-
requires_email_verification: boolean;
|
|
1073
|
-
}
|
|
1074
|
-
interface SendCodeResponse {
|
|
1075
|
-
status: string;
|
|
1076
|
-
purpose: string;
|
|
1077
|
-
}
|
|
1078
|
-
interface CustomerResponse {
|
|
1079
|
-
end_user: Customer;
|
|
1080
|
-
}
|
|
1081
|
-
interface CustomerAuthSession {
|
|
1082
|
-
id: string;
|
|
1083
|
-
auth_method: string;
|
|
1084
|
-
device_type: string;
|
|
1085
|
-
browser_name: string;
|
|
1086
|
-
os_name: string;
|
|
1087
|
-
country_code?: string;
|
|
1088
|
-
created_at: string;
|
|
1089
|
-
last_seen_at: string;
|
|
1090
|
-
expires_at: string;
|
|
1091
|
-
revoked_at?: string;
|
|
1092
|
-
current: boolean;
|
|
1093
|
-
}
|
|
1094
|
-
interface CustomerSecurityActivity {
|
|
1095
|
-
id: string;
|
|
1096
|
-
event_type: string;
|
|
1097
|
-
category: string;
|
|
1098
|
-
severity: string;
|
|
1099
|
-
outcome: string;
|
|
1100
|
-
country_code?: string;
|
|
1101
|
-
session_id?: string;
|
|
1102
|
-
metadata?: Record<string, unknown>;
|
|
1103
|
-
occurred_at: string;
|
|
1104
|
-
}
|
|
1105
|
-
interface CustomerSecurityActivityPage {
|
|
1106
|
-
items: CustomerSecurityActivity[];
|
|
1107
|
-
next_cursor?: string;
|
|
1108
|
-
has_more: boolean;
|
|
1109
|
-
}
|
|
1110
|
-
interface ChannelGeo {
|
|
1111
|
-
country: string;
|
|
1112
|
-
countryName: string;
|
|
1113
|
-
currency: {
|
|
1114
|
-
code: string;
|
|
1115
|
-
symbol: string;
|
|
1116
|
-
};
|
|
1117
|
-
region: {
|
|
1118
|
-
code: string;
|
|
1119
|
-
name: string;
|
|
1120
|
-
currency: string;
|
|
1121
|
-
currencySymbol: string;
|
|
1122
|
-
locale: string;
|
|
1123
|
-
timezone: string;
|
|
1124
|
-
};
|
|
1125
|
-
ip: string;
|
|
1126
|
-
source: string;
|
|
1127
|
-
}
|
|
1128
|
-
interface Order {
|
|
1129
|
-
id: string;
|
|
1130
|
-
workspace_id?: string;
|
|
1131
|
-
order_number: string;
|
|
1132
|
-
cart_token?: string;
|
|
1133
|
-
channel_id?: string;
|
|
1134
|
-
status: string;
|
|
1135
|
-
payment_status: string;
|
|
1136
|
-
currency: string;
|
|
1137
|
-
source?: string;
|
|
1138
|
-
customer_email?: string;
|
|
1139
|
-
customer_name?: string;
|
|
1140
|
-
subtotal_cents?: number;
|
|
1141
|
-
shipping_amount_cents?: number;
|
|
1142
|
-
tax_amount_cents?: number;
|
|
1143
|
-
total_cents: number;
|
|
1144
|
-
items?: OrderItem[];
|
|
1145
|
-
version?: number;
|
|
1146
|
-
created_at: string;
|
|
1147
|
-
updated_at?: string;
|
|
1148
|
-
[key: string]: unknown;
|
|
1149
|
-
}
|
|
1150
|
-
interface OrderItem {
|
|
1151
|
-
id: string;
|
|
1152
|
-
order_id: string;
|
|
1153
|
-
product_id?: string;
|
|
1154
|
-
variant_id?: string;
|
|
1155
|
-
product_slug?: string;
|
|
1156
|
-
variant_title?: string;
|
|
1157
|
-
thumbnail_url?: string;
|
|
1158
|
-
title: string;
|
|
1159
|
-
quantity: number;
|
|
1160
|
-
unit_price_cents: number;
|
|
1161
|
-
line_total_cents: number;
|
|
1162
|
-
/** Stripe product tax code, snapshotted from the product at order time. */
|
|
1163
|
-
tax_code?: string;
|
|
1164
|
-
[key: string]: unknown;
|
|
1165
|
-
}
|
|
1166
|
-
interface CartResponse {
|
|
1167
|
-
order: Order;
|
|
1168
|
-
}
|
|
1169
|
-
interface AddCartItemInput {
|
|
1170
|
-
cart_token?: string;
|
|
1171
|
-
currency?: string;
|
|
1172
|
-
product_id: string;
|
|
1173
|
-
variant_id?: string;
|
|
1174
|
-
quantity: number;
|
|
1175
|
-
}
|
|
1176
|
-
interface UpdateCartItemInput {
|
|
1177
|
-
cart_token: string;
|
|
1178
|
-
quantity: number;
|
|
1179
|
-
}
|
|
1180
|
-
interface MergeCartInput {
|
|
1181
|
-
source_cart_token: string;
|
|
1182
|
-
target_cart_token: string;
|
|
1183
|
-
currency?: string;
|
|
1184
|
-
}
|
|
1185
|
-
interface CheckoutCustomerInput {
|
|
1186
|
-
cart_token: string;
|
|
1187
|
-
email: string;
|
|
1188
|
-
name: string;
|
|
1189
|
-
}
|
|
1190
|
-
interface CheckoutAddress {
|
|
1191
|
-
name?: string;
|
|
1192
|
-
phone?: string;
|
|
1193
|
-
line1: string;
|
|
1194
|
-
line2?: string;
|
|
1195
|
-
city: string;
|
|
1196
|
-
region?: string;
|
|
1197
|
-
postal_code?: string;
|
|
1198
|
-
country_code: string;
|
|
1199
|
-
}
|
|
1200
|
-
interface CheckoutAddressesInput {
|
|
1201
|
-
cart_token: string;
|
|
1202
|
-
shipping: CheckoutAddress;
|
|
1203
|
-
billing?: CheckoutAddress;
|
|
1204
|
-
}
|
|
1205
|
-
interface CheckoutFulfillmentInput {
|
|
1206
|
-
cart_token: string;
|
|
1207
|
-
method: "shipping" | "pickup";
|
|
1208
|
-
shipping_method_id?: string;
|
|
1209
|
-
}
|
|
1210
|
-
interface CheckoutPayInput {
|
|
1211
|
-
cart_token: string;
|
|
1212
|
-
return_url?: string;
|
|
1213
|
-
}
|
|
1214
|
-
interface CheckoutCancelInput {
|
|
1215
|
-
cart_token: string;
|
|
1216
|
-
}
|
|
1217
|
-
interface PaymentMethodOption {
|
|
1218
|
-
provider: string;
|
|
1219
|
-
name: string;
|
|
1220
|
-
type: string;
|
|
1221
|
-
is_available: boolean;
|
|
1222
|
-
[key: string]: unknown;
|
|
1223
|
-
}
|
|
1224
|
-
interface PaymentReadiness {
|
|
1225
|
-
ready: boolean;
|
|
1226
|
-
mode: string;
|
|
1227
|
-
reasons?: string[];
|
|
1228
|
-
providers_available?: string[];
|
|
1229
|
-
connect_required?: boolean;
|
|
1230
|
-
connect_configured?: boolean;
|
|
1231
|
-
}
|
|
1232
|
-
interface ShippingMethodOption {
|
|
1233
|
-
id: string;
|
|
1234
|
-
name?: string;
|
|
1235
|
-
code?: string;
|
|
1236
|
-
amount_cents?: number;
|
|
1237
|
-
[key: string]: unknown;
|
|
1238
|
-
}
|
|
1239
|
-
interface CheckoutOptions {
|
|
1240
|
-
checkout_variant: string;
|
|
1241
|
-
order: Order;
|
|
1242
|
-
checkout_active?: boolean;
|
|
1243
|
-
shipping_methods?: ShippingMethodOption[];
|
|
1244
|
-
payment_methods?: PaymentMethodOption[];
|
|
1245
|
-
payment_ready?: boolean;
|
|
1246
|
-
payment_readiness?: PaymentReadiness;
|
|
1247
|
-
[key: string]: unknown;
|
|
1248
|
-
}
|
|
1249
|
-
type CheckoutStatus = "finalizing" | "completed" | "failed" | "not_found";
|
|
1250
|
-
interface CheckoutStatusResponse {
|
|
1251
|
-
status: CheckoutStatus;
|
|
1252
|
-
order_status?: string;
|
|
1253
|
-
payment_status?: string;
|
|
1254
|
-
payment_reference?: string;
|
|
1255
|
-
updated_at?: string;
|
|
1256
|
-
reasons?: string[];
|
|
1257
|
-
[key: string]: unknown;
|
|
1258
|
-
}
|
|
1259
|
-
interface CheckoutPayResponse {
|
|
1260
|
-
order: Order;
|
|
1261
|
-
session?: Record<string, unknown>;
|
|
1262
|
-
checkout_variant?: string;
|
|
1263
|
-
payment?: Record<string, unknown>;
|
|
1264
|
-
status?: string;
|
|
1265
|
-
provider_ref?: string;
|
|
1266
|
-
checkout_session_id?: string;
|
|
1267
|
-
redirect_url?: string;
|
|
1268
|
-
[key: string]: unknown;
|
|
1269
|
-
}
|
|
1270
|
-
interface OrderSummary {
|
|
1271
|
-
base_currency: string;
|
|
1272
|
-
total_orders: number;
|
|
1273
|
-
[key: string]: unknown;
|
|
1274
|
-
}
|
|
1275
|
-
/** What the door reports about the token you just used. */
|
|
1276
|
-
interface ChannelPing {
|
|
1277
|
-
channel_id: string;
|
|
1278
|
-
workspace_id: string;
|
|
1279
|
-
dash_id: string;
|
|
1280
|
-
scope: "workspace" | "dash";
|
|
1281
|
-
api_version: string;
|
|
1282
|
-
attestation?: string;
|
|
1283
|
-
}
|
|
1284
|
-
/** A subscription plan a workspace offers. Mirrors Go PlanOffer. */
|
|
1285
|
-
interface SubscriptionPlanOffer {
|
|
1286
|
-
id: string;
|
|
1287
|
-
workspace_id: string;
|
|
1288
|
-
title: string;
|
|
1289
|
-
description?: string;
|
|
1290
|
-
currency: string;
|
|
1291
|
-
amount_cents: number;
|
|
1292
|
-
interval: string;
|
|
1293
|
-
is_active: boolean;
|
|
1294
|
-
created_at: string;
|
|
1295
|
-
updated_at: string;
|
|
1296
|
-
}
|
|
1297
|
-
interface SubscriptionPlanListResponse {
|
|
1298
|
-
items: SubscriptionPlanOffer[];
|
|
1299
|
-
}
|
|
1300
|
-
interface SubscriptionPlanResponse {
|
|
1301
|
-
plan: SubscriptionPlanOffer;
|
|
1302
|
-
}
|
|
1303
|
-
/** Customer-controlled subscription acquisition. Price and terms come from the plan. */
|
|
1304
|
-
interface StartSubscriptionInput {
|
|
1305
|
-
plan_id: string;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
5
|
/**
|
|
1309
6
|
* ChannelConfigurationError is thrown for a misconfigured client — missing or
|
|
1310
7
|
* malformed token, invalid retry/timeout/cache options, missing fetch, missing
|
|
@@ -1449,13 +146,18 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
1449
146
|
*/
|
|
1450
147
|
readonly availability: () => Promise<PaymentCollectionAvailability>;
|
|
1451
148
|
};
|
|
149
|
+
/** Confirmation and unsubscribe links from waitlist emails. */
|
|
150
|
+
readonly audience: {
|
|
151
|
+
readonly verify: (token: string) => Promise<WaitlistVerification>;
|
|
152
|
+
readonly unsubscribe: (key: string) => Promise<WaitlistUnsubscription>;
|
|
153
|
+
};
|
|
1452
154
|
/** Tenant-level data exposed only to a dash-scoped channel token. */
|
|
1453
155
|
readonly dash: {
|
|
1454
156
|
readonly profile: () => Promise<DashProfileResponse>;
|
|
1455
157
|
readonly init: () => Promise<DashInitResponse>;
|
|
1456
158
|
readonly waitlist: {
|
|
1457
|
-
readonly status: () => Promise<
|
|
1458
|
-
readonly form: () => Promise<
|
|
159
|
+
readonly status: () => Promise<WaitlistGateStatus>;
|
|
160
|
+
readonly form: () => Promise<WaitlistFormSettings>;
|
|
1459
161
|
readonly submit: (input: WaitlistSubmission, mutation?: ChannelMutationOptions) => Promise<WaitlistAcknowledgement>;
|
|
1460
162
|
};
|
|
1461
163
|
readonly plans: () => Promise<DashPlansResponse>;
|
|
@@ -1683,4 +385,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
1683
385
|
};
|
|
1684
386
|
};
|
|
1685
387
|
|
|
1686
|
-
export {
|
|
388
|
+
export { AddCartItemInput, BlogPost, BlogPostResponse, 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, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, 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, 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 };
|