@ziila/sdk 0.1.269 → 0.1.285
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 +8 -1
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -125,10 +125,17 @@ export interface ErrorPayload {
|
|
|
125
125
|
code: string;
|
|
126
126
|
message: string;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
/** The backend's own values, uppercased; `dialect` is null for English. */
|
|
129
|
+
export interface LanguagePayload {
|
|
130
|
+
language: string;
|
|
131
|
+
dialect: string | null;
|
|
132
|
+
}
|
|
133
|
+
export type ZiilaEvent = 'ready' | 'conversationStarted' | 'languageChanged' | 'addToCart' | 'removeFromCart' | 'cartUpdated' | 'productViewed' | 'search' | 'error';
|
|
129
134
|
export type ZiilaCommand = 'clear';
|
|
130
135
|
export interface EventPayloadMap {
|
|
131
136
|
ready: undefined;
|
|
137
|
+
conversationStarted: LanguagePayload;
|
|
138
|
+
languageChanged: LanguagePayload;
|
|
132
139
|
addToCart: AddToCartPayload;
|
|
133
140
|
removeFromCart: RemoveFromCartPayload;
|
|
134
141
|
cartUpdated: CartUpdatedPayload;
|