cordova-plugin-pushizo 0.1.0 → 0.2.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.
@@ -163,6 +163,126 @@ export interface RawInAppLifecycleEvent {
163
163
  id: string;
164
164
  };
165
165
  }
166
+ /** Özellik bayrağı değeri: metin, sayı, mantıksal, nesne veya dizi (JSON). */
167
+ export type FeatureFlagValue = string | number | boolean | null | FeatureFlagValue[] | {
168
+ [key: string]: FeatureFlagValue;
169
+ };
170
+ /**
171
+ * In-app mesaj tetik koşulu. `trigger`: `InAppMessages.addTrigger` değeri (`op`: eq | neq | exists | gt | lt).
172
+ * `unsupported`: bu SDK sürümünün tanımadığı tür (`name` sunucudaki tür adı).
173
+ */
174
+ export type InAppTrigger = {
175
+ kind: 'session_start';
176
+ } | {
177
+ kind: 'event';
178
+ name: string;
179
+ } | {
180
+ kind: 'screen';
181
+ name: string;
182
+ } | {
183
+ kind: 'trigger';
184
+ key: string;
185
+ op: string;
186
+ value: string | number | null;
187
+ } | {
188
+ kind: 'session_duration';
189
+ seconds: number;
190
+ } | {
191
+ kind: 'unsupported';
192
+ name: string;
193
+ };
194
+ /** Düğme aksiyonu; `url` http/https adresi, `deeplink` uygulama şemasıdır. */
195
+ export type InAppAction = {
196
+ type: 'dismiss';
197
+ } | {
198
+ type: 'url';
199
+ url: string;
200
+ } | {
201
+ type: 'deeplink';
202
+ url: string;
203
+ } | {
204
+ type: 'tags';
205
+ tags: Record<string, string>;
206
+ } | {
207
+ type: 'push_prompt';
208
+ } | {
209
+ type: 'outcome';
210
+ name: string;
211
+ value: number | null;
212
+ };
213
+ export interface InAppButton {
214
+ id: string;
215
+ text: string;
216
+ action: InAppAction;
217
+ backgroundColor: string | null;
218
+ textColor: string | null;
219
+ }
220
+ /** Carousel kartı; `button` geçersiz aksiyonluysa null. */
221
+ export interface InAppCarouselCard {
222
+ id: string;
223
+ title: string;
224
+ body: string | null;
225
+ imageUrl: string | null;
226
+ imageAlt: string | null;
227
+ button: InAppButton | null;
228
+ }
229
+ /** Mesaj içerik bloğu; metinler sunucuda kullanıcının dilinde çözülmüştür. */
230
+ export type InAppBlock = {
231
+ type: 'image';
232
+ url: string;
233
+ alt: string | null;
234
+ } | {
235
+ type: 'title';
236
+ text: string;
237
+ } | {
238
+ type: 'body';
239
+ text: string;
240
+ } | ({
241
+ type: 'button';
242
+ } & InAppButton) | {
243
+ type: 'carousel';
244
+ id: string;
245
+ cards: InAppCarouselCard[];
246
+ };
247
+ export type InAppLayout = 'modal' | 'banner_top' | 'banner_bottom' | 'fullscreen';
248
+ export interface InAppDisplay {
249
+ layout: InAppLayout;
250
+ backgroundColor: string | null;
251
+ textColor: string | null;
252
+ dismissible: boolean;
253
+ autoDismissSeconds: number | null;
254
+ /** `html` ise `blocks` boştur ve içerik `html` alanındadır. */
255
+ contentType: 'blocks' | 'html';
256
+ blocks: InAppBlock[];
257
+ html: string | null;
258
+ htmlHeight: number | null;
259
+ }
260
+ /**
261
+ * In-app mesaj modeli (native `HsInAppMessage` / `HSInAppMessage` alanları); `Placements.list` bu modeli döndürür.
262
+ * Zamanlar epoch milisaniyedir.
263
+ */
264
+ export interface InAppMessage {
265
+ id: string;
266
+ priority: number;
267
+ /** İlk tetik grubu (geriye uyum). */
268
+ triggers: InAppTrigger[];
269
+ /** Gruplar VEYA, grup içi VE ile bağlıdır. */
270
+ triggerGroups: InAppTrigger[][];
271
+ /** Sunucunun seçtiği A/B görünüm varyantı. */
272
+ variantId: string | null;
273
+ display: InAppDisplay;
274
+ remainingImpressions: number;
275
+ minIntervalSeconds: number;
276
+ stopAfterInteraction: boolean;
277
+ lastImpressionAt: number | null;
278
+ endAt: number | null;
279
+ /** Sunucunun içeriği çözdüğü dil; web'de null. */
280
+ language: string | null;
281
+ }
282
+ export interface PlacementListOptions {
283
+ /** 1-10 (varsayılan 1). */
284
+ limit?: number;
285
+ }
166
286
  export interface ChatAttachment {
167
287
  id: string;
168
288
  name: string;