@cimulate/copilot-widget 1.30.0 → 1.30.1
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/messaging.d.ts +12 -4
- package/dist/messaging.es.js +4481 -4461
- package/dist/messaging.umd.js +29 -29
- package/package.json +1 -1
package/dist/messaging.d.ts
CHANGED
|
@@ -111,8 +111,8 @@ declare type CartDetails = {
|
|
|
111
111
|
promotionsDiscount: number | null;
|
|
112
112
|
promotions: string[];
|
|
113
113
|
couponsDiscount: number | null;
|
|
114
|
-
couponsApplied:
|
|
115
|
-
coupons:
|
|
114
|
+
couponsApplied: CouponEntry[];
|
|
115
|
+
coupons: CouponEntry[];
|
|
116
116
|
headerMessage: string | null;
|
|
117
117
|
/** May contain inline HTML (e.g. <strong>) — render as sanitized markup. */
|
|
118
118
|
bodyMessage: string | null;
|
|
@@ -131,7 +131,7 @@ declare type CartItem = {
|
|
|
131
131
|
originalSubtotal: number;
|
|
132
132
|
variants: CartItemVariant[];
|
|
133
133
|
promotions: string[];
|
|
134
|
-
coupons:
|
|
134
|
+
coupons: CouponEntry[];
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
declare type CartItemVariant = {
|
|
@@ -315,6 +315,8 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
315
315
|
__features?: Record<string, boolean>;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
+
declare type CouponEntry = string | StructuredCoupon;
|
|
319
|
+
|
|
318
320
|
declare type DialogPosition = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "center";
|
|
319
321
|
|
|
320
322
|
declare const ENTRY_TYPES: readonly ["ask_cim", "search", "browse", "pdp"];
|
|
@@ -604,7 +606,7 @@ declare type OrderDetails = {
|
|
|
604
606
|
promotionsDiscount: number | null;
|
|
605
607
|
promotions: string[];
|
|
606
608
|
couponsDiscount: number | null;
|
|
607
|
-
couponsApplied:
|
|
609
|
+
couponsApplied: CouponEntry[];
|
|
608
610
|
headerMessage: string | null;
|
|
609
611
|
bodyMessage: string | null;
|
|
610
612
|
footerMessage: string | null;
|
|
@@ -947,6 +949,12 @@ export declare type SendMessageResult = {
|
|
|
947
949
|
|
|
948
950
|
declare type StaticQuestionsStrategy = "override" | "append" | "prepend";
|
|
949
951
|
|
|
952
|
+
declare type StructuredCoupon = {
|
|
953
|
+
code: string;
|
|
954
|
+
id?: string;
|
|
955
|
+
status?: string;
|
|
956
|
+
};
|
|
957
|
+
|
|
950
958
|
declare type Suggestion = CopilotSearchSuggestion | FacetedNavigationSuggestion | ProductViewSuggestion | CopilotBrowseSuggestion;
|
|
951
959
|
|
|
952
960
|
declare interface SuggestionButtonConfig {
|