@magicfeedback/popup-sdk 1.0.3 → 1.0.5

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/index.d.mts CHANGED
@@ -87,10 +87,23 @@ interface PopupActionDecline {
87
87
  label: string;
88
88
  cooldownDays?: number;
89
89
  }
90
+ /** Start Surveys Action */
91
+ interface PopupActionStart {
92
+ label: string;
93
+ }
94
+ /** Acción de completar (aceptar y completar encuesta automáticamente) */
95
+ interface PopupActionComplete {
96
+ label: string;
97
+ surveyId: string;
98
+ autoCompleteParams: Record<string, unknown>;
99
+ cooldownDays?: number;
100
+ }
90
101
  /** Conjunto de acciones disponibles en el popup */
91
102
  interface PopupActions {
92
- accept: PopupActionAccept;
93
- decline: PopupActionDecline;
103
+ accept?: PopupActionAccept;
104
+ decline?: PopupActionDecline;
105
+ complete?: PopupActionComplete;
106
+ start?: PopupActionStart;
94
107
  }
95
108
  /** Estilos configurables del popup */
96
109
  interface PopupStyle {
@@ -110,10 +123,10 @@ interface PopupDefinition {
110
123
  title: string;
111
124
  message: string;
112
125
  trigger: PopupTrigger;
113
- actions: PopupActions;
126
+ actions?: PopupActions;
114
127
  surveyId: string;
115
128
  productId: string;
116
- style: PopupStyle;
129
+ style?: PopupStyle;
117
130
  segments?: PopupSegments;
118
131
  }
119
132
 
package/dist/index.d.ts CHANGED
@@ -87,10 +87,23 @@ interface PopupActionDecline {
87
87
  label: string;
88
88
  cooldownDays?: number;
89
89
  }
90
+ /** Start Surveys Action */
91
+ interface PopupActionStart {
92
+ label: string;
93
+ }
94
+ /** Acción de completar (aceptar y completar encuesta automáticamente) */
95
+ interface PopupActionComplete {
96
+ label: string;
97
+ surveyId: string;
98
+ autoCompleteParams: Record<string, unknown>;
99
+ cooldownDays?: number;
100
+ }
90
101
  /** Conjunto de acciones disponibles en el popup */
91
102
  interface PopupActions {
92
- accept: PopupActionAccept;
93
- decline: PopupActionDecline;
103
+ accept?: PopupActionAccept;
104
+ decline?: PopupActionDecline;
105
+ complete?: PopupActionComplete;
106
+ start?: PopupActionStart;
94
107
  }
95
108
  /** Estilos configurables del popup */
96
109
  interface PopupStyle {
@@ -110,10 +123,10 @@ interface PopupDefinition {
110
123
  title: string;
111
124
  message: string;
112
125
  trigger: PopupTrigger;
113
- actions: PopupActions;
126
+ actions?: PopupActions;
114
127
  surveyId: string;
115
128
  productId: string;
116
- style: PopupStyle;
129
+ style?: PopupStyle;
117
130
  segments?: PopupSegments;
118
131
  }
119
132