@ziila/sdk 0.1.264 → 0.1.269
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/src/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -62,8 +62,10 @@ export interface ThemeStyles {
|
|
|
62
62
|
}
|
|
63
63
|
export interface ZiilaConfig {
|
|
64
64
|
apiKey: string;
|
|
65
|
-
/** Merchant cart id
|
|
66
|
-
|
|
65
|
+
/** Merchant cart id. Optional: pass it when the host page already owns a
|
|
66
|
+
* cart, and omit it for a guest who has none yet — the server then mints
|
|
67
|
+
* the cart on first contact and the widget adopts the id it reports. */
|
|
68
|
+
cartId?: string;
|
|
67
69
|
container: string | HTMLElement;
|
|
68
70
|
/** Conversation + UI locale. The widget resolves the merchant's agent for
|
|
69
71
|
* this locale itself (GET /agent) — there is no agent id in the config.
|