@c1m-public/channel-client 0.30.0 → 0.32.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/dash-next.d.ts +1 -1
- package/dist/dash.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/next.d.ts +2 -2
- package/dist/site.d.ts +2 -8
- package/dist/site.js +1 -3
- package/dist/{types-DPJD4m2o.d.ts → types-B1EaOZ2f.d.ts} +10 -12
- package/package.json +1 -1
package/dist/dash-next.d.ts
CHANGED
package/dist/dash.d.ts
CHANGED
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, 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,
|
|
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, 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, M as CartLookupResponse, A as AddCartItemInput, C as CartResponse, U as UpdateCartItemInput, N 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, Q as ReviewSummaryResponse, T as PublicSubmitReviewInput, V as ThemeResponse, X as MenuResponse, Y as BlogPost, Z as BlogPostResponse, _ as GivingEntry, $ as StartGivingInput, a0 as StartGivingResponse, a1 as SubscriptionPlanListResponse, a2 as SubscriptionPlanResponse, a3 as PublicPaymentLinkResponse, a4 as PaymentLinkCheckoutInput, a5 as PaymentLinkCheckoutResponse, a6 as PaymentLinkRedemptionStatusResponse, a7 as PrintSettingsResponse, a8 as PrintOptionsSelection, a9 as PrintQuoteResponse, aa as PrintIntakeInput, ab as PrintJob, ac as DiningMenu, ad as CustomerSignupResponse, ae as SendCodeResponse, af as CustomerSession, ag as CustomerResponse, ah as CustomerAuthSession, ai as CustomerSecurityActivityPage, O as Order, aj as OrderSummary, ak as SavedAddress, al as SavedAddressResponse, am as SavedAddressInput, an as SavedAddressUpdateInput, ao as SavedPaymentMethod, ap as PaymentMethodSetupInput, aq as PaymentMethodSetupResult, ar as PaymentMethodConfirmInput, as as PaymentMethodMutationResponse, at as StartSubscriptionInput, au as SubscriptionAgreementResponse, av as SubscriptionListResponse, aw as SubscriptionSourceResponse, ax as SubscriptionInvoiceListResponse, ay as SubscriptionInvoiceResponse, az as GivingIntentListResponse, aA as LeadResponse } from './types-B1EaOZ2f.js';
|
|
2
|
+
export { aB as CatalogProduct, aC as CheckoutAddress, aD as CheckoutStatus, aE as Customer, aF as CustomerSecurityActivity, aG as DashBrandingInfo, aH as DashDirectoryProfile, aI as DashLeadPortalMatch, aJ as DashLeadPortalMovingSummary, aK as DashLeadPortalRequest, aL as DashLeadPortalRequestStatus, aM as DashLocaleInfo, aN as DashPlan, aO as DashPlanPricing, aP as DashPlanRegion, aQ as DashPublicPage, aR as DashPublicProfileInfo, aS as DashTenantInfo, aT as DiningAvailability, aU as DiningAvailabilityRule, aV as DiningComboChoice, aW as DiningComboGroup, aX as DiningItemSize, aY as DiningMenuItem, aZ as DiningModifier, a_ as DiningModifierGroup, a$ as DiningOffer, b0 as DiningOfferBadge, b1 as GivingIntent, b2 as Menu, b3 as MenuItem, b4 as OrderItem, b5 as PaymentLinkRedemptionStatus, b6 as PaymentMethodOption, b7 as PaymentReadiness, b8 as PrintBranding, b9 as PrintIntakeLimits, ba as PrintJobFile, bb as PrintPaperSize, bc as PrintPerPagePricing, bd as PrintPriceBreakdown, be as PrintPriceLine, bf as PrintPricing, bg as PrintPricingOption, bh as PublicGate, bi as PublicPaymentLink, bj as PublicSiteSignals, bk as ShippingMethodOption, bl as SiteGatedDocument, bm as SiteRef, bn as SiteResolvedDocument, bo as SiteSubject, bp as SubscriptionAgreement, bq as SubscriptionInvoice, br as SubscriptionPlanOffer, bs as SubscriptionSourceDisplay, bt as WaitlistAttribution, bu as WorkspaceInfo } from './types-B1EaOZ2f.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
|
/**
|
|
@@ -212,7 +212,7 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
212
212
|
readonly list: (params?: ChannelListParams) => Promise<ListResponse<CatalogBrand>>;
|
|
213
213
|
};
|
|
214
214
|
readonly cart: {
|
|
215
|
-
readonly get: (cartToken: string) => Promise<
|
|
215
|
+
readonly get: (cartToken: string) => Promise<CartLookupResponse>;
|
|
216
216
|
readonly addItem: (input: AddCartItemInput, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
|
217
217
|
readonly updateItem: (itemId: string, input: UpdateCartItemInput, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
|
218
218
|
readonly removeItem: (itemId: string, cartToken: string, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
|
@@ -385,4 +385,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
385
385
|
};
|
|
386
386
|
};
|
|
387
387
|
|
|
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 };
|
|
388
|
+
export { AddCartItemInput, BlogPost, BlogPostResponse, 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, 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 };
|
package/dist/next.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, 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, 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, U as UpdateCartItemInput,
|
|
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, 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, M as CartLookupResponse, U as UpdateCartItemInput, N as MergeCartInput, R as Review, Q as ReviewSummaryResponse, T as PublicSubmitReviewInput, V as ThemeResponse, X as MenuResponse, Y as BlogPost, Z as BlogPostResponse, _ as GivingEntry, $ as StartGivingInput, a0 as StartGivingResponse, a1 as SubscriptionPlanListResponse, a2 as SubscriptionPlanResponse, a3 as PublicPaymentLinkResponse, a4 as PaymentLinkCheckoutInput, a5 as PaymentLinkCheckoutResponse, a6 as PaymentLinkRedemptionStatusResponse, a7 as PrintSettingsResponse, a8 as PrintOptionsSelection, a9 as PrintQuoteResponse, aa as PrintIntakeInput, ab as PrintJob, ac as DiningMenu, ad as CustomerSignupResponse, ae as SendCodeResponse, af as CustomerSession, ag as CustomerResponse, ah as CustomerAuthSession, ai as CustomerSecurityActivityPage, aj as OrderSummary, ak as SavedAddress, al as SavedAddressResponse, am as SavedAddressInput, an as SavedAddressUpdateInput, ao as SavedPaymentMethod, ap as PaymentMethodSetupInput, aq as PaymentMethodSetupResult, ar as PaymentMethodConfirmInput, as as PaymentMethodMutationResponse, at as StartSubscriptionInput, au as SubscriptionAgreementResponse, av as SubscriptionListResponse, aw as SubscriptionSourceResponse, ax as SubscriptionInvoiceListResponse, ay as SubscriptionInvoiceResponse, az as GivingIntentListResponse, aA as LeadResponse } from './types-B1EaOZ2f.js';
|
|
3
3
|
import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -354,7 +354,7 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
|
|
|
354
354
|
readonly list: (params?: ChannelListParams) => Promise<ListResponse<CatalogBrand>>;
|
|
355
355
|
};
|
|
356
356
|
readonly cart: {
|
|
357
|
-
readonly get: (cartToken: string) => Promise<
|
|
357
|
+
readonly get: (cartToken: string) => Promise<CartLookupResponse>;
|
|
358
358
|
readonly addItem: (input: AddCartItemInput, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
|
359
359
|
readonly updateItem: (itemId: string, input: UpdateCartItemInput, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
|
360
360
|
readonly removeItem: (itemId: string, cartToken: string, mutation?: ChannelMutationOptions) => Promise<CartResponse>;
|
package/dist/site.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bm as SiteRef, bh as PublicGate, bj as PublicSiteSignals } from './types-B1EaOZ2f.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Site signals: what a public site serves, decided from the `signals` block
|
|
@@ -42,15 +42,9 @@ declare const GATE_EXEMPT_PATHS: readonly string[];
|
|
|
42
42
|
* mode added on the server after a site shipped never breaks that site.
|
|
43
43
|
*/
|
|
44
44
|
declare function normalizeGate(gate: Partial<PublicGate> | null | undefined): SiteGate | null;
|
|
45
|
-
/**
|
|
46
|
-
* Reads a bootstrap's signals. A backend older than the signals block sends
|
|
47
|
-
* only the top-level `gate` and `site`; those are read as an active, public,
|
|
48
|
-
* entitled site so an upgrade never depends on release order.
|
|
49
|
-
*/
|
|
45
|
+
/** Reads a bootstrap's signals; a bootstrap without them is an open site. */
|
|
50
46
|
declare function normalizeSignals(bootstrap: {
|
|
51
47
|
signals?: PublicSiteSignals;
|
|
52
|
-
gate?: PublicGate;
|
|
53
|
-
site?: SiteRef;
|
|
54
48
|
} | null | undefined): SiteSignals;
|
|
55
49
|
/** What a request gets. `gate-page` is the gate's own page, served bare. */
|
|
56
50
|
type SiteDecision = {
|
package/dist/site.js
CHANGED
|
@@ -37,9 +37,7 @@ function normalizeGate(gate) {
|
|
|
37
37
|
}
|
|
38
38
|
function normalizeSignals(bootstrap) {
|
|
39
39
|
const signals = bootstrap?.signals;
|
|
40
|
-
if (!signals) {
|
|
41
|
-
return { site: bootstrap?.site ?? null, gate: normalizeGate(bootstrap?.gate), lifecycle: "active", visibility: "public", siteEnabled: true };
|
|
42
|
-
}
|
|
40
|
+
if (!signals) return { site: null, gate: null, lifecycle: "active", visibility: "public", siteEnabled: true };
|
|
43
41
|
return {
|
|
44
42
|
site: signals.site ?? null,
|
|
45
43
|
gate: normalizeGate(signals.gate),
|
|
@@ -32,8 +32,7 @@ interface PublicGate {
|
|
|
32
32
|
/**
|
|
33
33
|
* The standard site-decision block every bootstrap carries. Decide from it
|
|
34
34
|
* with `siteDecision` (`@c1m-public/channel-client/site`): site_enabled first,
|
|
35
|
-
* then lifecycle, then the gate.
|
|
36
|
-
* it until they are retired.
|
|
35
|
+
* then lifecycle, then the gate.
|
|
37
36
|
*/
|
|
38
37
|
interface PublicSiteSignals {
|
|
39
38
|
site?: SiteRef;
|
|
@@ -84,7 +83,6 @@ interface PublicWorkspaceInit {
|
|
|
84
83
|
branding?: Record<string, unknown>;
|
|
85
84
|
preferences?: Record<string, unknown>;
|
|
86
85
|
profile?: Record<string, unknown>;
|
|
87
|
-
gate?: PublicGate;
|
|
88
86
|
features?: Array<{
|
|
89
87
|
key: string;
|
|
90
88
|
name: string;
|
|
@@ -118,11 +116,10 @@ interface SiteRef {
|
|
|
118
116
|
*/
|
|
119
117
|
interface LightInitResponse {
|
|
120
118
|
signals?: PublicSiteSignals;
|
|
121
|
-
gate?: PublicGate;
|
|
122
119
|
workspace_id: string;
|
|
123
120
|
workspace_name: string;
|
|
124
121
|
workspace_slug?: string;
|
|
125
|
-
primary_color
|
|
122
|
+
primary_color?: string;
|
|
126
123
|
logo_url?: string;
|
|
127
124
|
logo_light_url?: string;
|
|
128
125
|
logo_dark_url?: string;
|
|
@@ -133,7 +130,6 @@ interface LightInitResponse {
|
|
|
133
130
|
locale?: string;
|
|
134
131
|
timezone?: string;
|
|
135
132
|
};
|
|
136
|
-
site?: SiteRef;
|
|
137
133
|
seo?: {
|
|
138
134
|
title?: string;
|
|
139
135
|
description?: string;
|
|
@@ -176,7 +172,6 @@ interface DashLocaleInfo {
|
|
|
176
172
|
*/
|
|
177
173
|
interface DashInitResponse {
|
|
178
174
|
signals?: PublicSiteSignals;
|
|
179
|
-
gate?: PublicGate;
|
|
180
175
|
tenant: DashTenantInfo;
|
|
181
176
|
public_profile: DashPublicProfileInfo;
|
|
182
177
|
branding?: DashBrandingInfo;
|
|
@@ -185,7 +180,6 @@ interface DashInitResponse {
|
|
|
185
180
|
title?: string;
|
|
186
181
|
description?: string;
|
|
187
182
|
};
|
|
188
|
-
site?: SiteRef;
|
|
189
183
|
}
|
|
190
184
|
interface DashPublicPage {
|
|
191
185
|
profile: DashPublicProfileInfo & {
|
|
@@ -269,7 +263,7 @@ interface DashDirectoryEntry {
|
|
|
269
263
|
review_count: number;
|
|
270
264
|
average_rating: number;
|
|
271
265
|
verified: boolean;
|
|
272
|
-
service_tags
|
|
266
|
+
service_tags?: unknown;
|
|
273
267
|
major_region_code?: string;
|
|
274
268
|
major_region_label?: string;
|
|
275
269
|
upcoming_events?: unknown[];
|
|
@@ -428,7 +422,7 @@ interface CatalogCategory {
|
|
|
428
422
|
is_active: boolean;
|
|
429
423
|
sort_order: number;
|
|
430
424
|
product_count: number;
|
|
431
|
-
metadata
|
|
425
|
+
metadata?: unknown;
|
|
432
426
|
created_at: string;
|
|
433
427
|
updated_at: string;
|
|
434
428
|
}
|
|
@@ -451,7 +445,7 @@ interface CatalogBrand {
|
|
|
451
445
|
website_url?: string;
|
|
452
446
|
is_active: boolean;
|
|
453
447
|
sort_order: number;
|
|
454
|
-
metadata
|
|
448
|
+
metadata?: unknown;
|
|
455
449
|
created_at: string;
|
|
456
450
|
updated_at: string;
|
|
457
451
|
}
|
|
@@ -1216,6 +1210,10 @@ interface OrderItem {
|
|
|
1216
1210
|
interface CartResponse {
|
|
1217
1211
|
order: Order;
|
|
1218
1212
|
}
|
|
1213
|
+
/** A cart read: `order` is null when the token has no cart yet. */
|
|
1214
|
+
interface CartLookupResponse {
|
|
1215
|
+
order?: Order | null;
|
|
1216
|
+
}
|
|
1219
1217
|
interface AddCartItemInput {
|
|
1220
1218
|
cart_token?: string;
|
|
1221
1219
|
currency?: string;
|
|
@@ -1355,4 +1353,4 @@ interface StartSubscriptionInput {
|
|
|
1355
1353
|
plan_id: string;
|
|
1356
1354
|
}
|
|
1357
1355
|
|
|
1358
|
-
export type {
|
|
1356
|
+
export type { StartGivingInput as $, AddCartItemInput as A, PublicPageSummary as B, CartResponse as C, DashProfileResponse as D, PublicPage as E, Product as F, ProductAsset as G, CatalogCategory as H, CatalogProductsResponse as I, CatalogCollection as J, CatalogBrand as K, ListResponse as L, CartLookupResponse as M, MergeCartInput as N, Order as O, PaymentCollectionAvailability as P, ReviewSummaryResponse as Q, Review as R, SiteDocument as S, PublicSubmitReviewInput as T, UpdateCartItemInput as U, ThemeResponse as V, WaitlistVerification as W, MenuResponse as X, BlogPost as Y, BlogPostResponse as Z, GivingEntry as _, CheckoutOptions as a, DiningOffer as a$, StartGivingResponse as a0, SubscriptionPlanListResponse as a1, SubscriptionPlanResponse as a2, PublicPaymentLinkResponse as a3, PaymentLinkCheckoutInput as a4, PaymentLinkCheckoutResponse as a5, PaymentLinkRedemptionStatusResponse as a6, PrintSettingsResponse as a7, PrintOptionsSelection as a8, PrintQuoteResponse as a9, LeadResponse as aA, CatalogProduct as aB, CheckoutAddress as aC, CheckoutStatus as aD, Customer as aE, CustomerSecurityActivity as aF, DashBrandingInfo as aG, DashDirectoryProfile as aH, DashLeadPortalMatch as aI, DashLeadPortalMovingSummary as aJ, DashLeadPortalRequest as aK, DashLeadPortalRequestStatus as aL, DashLocaleInfo as aM, DashPlan as aN, DashPlanPricing as aO, DashPlanRegion as aP, DashPublicPage as aQ, DashPublicProfileInfo as aR, DashTenantInfo as aS, DiningAvailability as aT, DiningAvailabilityRule as aU, DiningComboChoice as aV, DiningComboGroup as aW, DiningItemSize as aX, DiningMenuItem as aY, DiningModifier as aZ, DiningModifierGroup as a_, PrintIntakeInput as aa, PrintJob as ab, DiningMenu as ac, CustomerSignupResponse as ad, SendCodeResponse as ae, CustomerSession as af, CustomerResponse as ag, CustomerAuthSession as ah, CustomerSecurityActivityPage as ai, OrderSummary as aj, SavedAddress as ak, SavedAddressResponse as al, SavedAddressInput as am, SavedAddressUpdateInput as an, SavedPaymentMethod as ao, PaymentMethodSetupInput as ap, PaymentMethodSetupResult as aq, PaymentMethodConfirmInput as ar, PaymentMethodMutationResponse as as, StartSubscriptionInput as at, SubscriptionAgreementResponse as au, SubscriptionListResponse as av, SubscriptionSourceResponse as aw, SubscriptionInvoiceListResponse as ax, SubscriptionInvoiceResponse as ay, GivingIntentListResponse as az, CheckoutStatusResponse as b, DiningOfferBadge as b0, GivingIntent as b1, Menu as b2, MenuItem as b3, OrderItem as b4, PaymentLinkRedemptionStatus as b5, PaymentMethodOption as b6, PaymentReadiness as b7, PrintBranding as b8, PrintIntakeLimits as b9, PrintJobFile as ba, PrintPaperSize as bb, PrintPerPagePricing as bc, PrintPriceBreakdown as bd, PrintPriceLine as be, PrintPricing as bf, PrintPricingOption as bg, PublicGate as bh, PublicPaymentLink as bi, PublicSiteSignals as bj, ShippingMethodOption as bk, SiteGatedDocument as bl, SiteRef as bm, SiteResolvedDocument as bn, SiteSubject as bo, SubscriptionAgreement as bp, SubscriptionInvoice as bq, SubscriptionPlanOffer as br, SubscriptionSourceDisplay as bs, WaitlistAttribution as bt, WorkspaceInfo as bu, CheckoutCustomerInput as c, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistUnsubscription as k, DashInitResponse as l, WaitlistGateStatus as m, WaitlistFormSettings as n, WaitlistSubmission as o, WaitlistAcknowledgement as p, DashPlansResponse as q, DashDirectoryRegion as r, DashDirectoryEntry as s, DashDirectoryProfileResponse as t, DashLead as u, DashLeadPortalRequestLinkInput as v, DashLeadPortalRequestLinkResponse as w, DashLeadPortalView as x, PublicWorkspaceInit as y, LightInitResponse as z };
|