@chipmobilesdk/rn-ads 0.4.0 → 0.5.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.
@@ -26,6 +26,7 @@ import type {
26
26
  EngineConsentInfo,
27
27
  EngineConsentOptions,
28
28
  EnginePrivacy,
29
+ EngineRequestOptions,
29
30
  } from '../engine/port';
30
31
 
31
32
  /**
@@ -125,6 +126,8 @@ export type FakeEngineCall =
125
126
  readonly format: FullScreenFormat;
126
127
  readonly adUnitId: string;
127
128
  readonly handleId: string;
129
+ /** Per-request privacy as the package sent it (FR-017's personalization half). */
130
+ readonly request?: EngineRequestOptions;
128
131
  }
129
132
  | { readonly kind: 'show'; readonly handleId: string }
130
133
  | { readonly kind: 'dispose'; readonly handleId: string };
@@ -348,10 +351,10 @@ export function createFakeAdsEngine(options: FakeEngineOptions = {}): FakeAdsEng
348
351
  }
349
352
  },
350
353
 
351
- async createFullScreen(format, adUnitId) {
354
+ async createFullScreen(format, adUnitId, request) {
352
355
  counter += 1;
353
356
  const id = `fake-${counter}`;
354
- record({ kind: 'createFullScreen', format, adUnitId, handleId: id });
357
+ record({ kind: 'createFullScreen', format, adUnitId, handleId: id, request });
355
358
  live.add(id);
356
359
  // A real provider delivers `loaded` to a listener attached after the
357
360
  // ad object exists, so the callback is queued here and flushed when