@adhese/sdk 0.6.3 → 0.7.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.
package/dist/index.d.ts CHANGED
@@ -212,9 +212,9 @@ declare const baseSchema: zod.ZodObject<{
212
212
  width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
213
213
  widthLarge: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">, zod.ZodNumber]>, string | undefined, string | number>>;
214
214
  }, "strip", zod.ZodTypeAny, {
215
+ adType: string;
215
216
  id: string;
216
217
  origin: "JERLICIA" | "DALE";
217
- adType: string;
218
218
  slotID: string;
219
219
  slotName: string;
220
220
  adDuration?: number | undefined;
@@ -264,9 +264,9 @@ declare const baseSchema: zod.ZodObject<{
264
264
  width?: number | undefined;
265
265
  widthLarge?: string | undefined;
266
266
  }, {
267
+ adType: string;
267
268
  id: string;
268
269
  origin: "JERLICIA" | "DALE";
269
- adType: string;
270
270
  slotID: string;
271
271
  slotName: string;
272
272
  adDuration?: string | undefined;
@@ -602,6 +602,11 @@ type AdheseOptions = {
602
602
  */
603
603
  queries?: Record<string, string>;
604
604
  safeFrame?: boolean;
605
+ /**
606
+ * The plugins that are used for the Adhese instance. These plugins are called with the Adhese context and run during
607
+ * the initialization of the Adhese instance.
608
+ */
609
+ plugins?: ReadonlyArray<(context: AdheseContext) => void>;
605
610
  } & ({
606
611
  viewabilityTracking?: true;
607
612
  /**
@@ -725,4 +730,8 @@ type AdheseContext = Partial<Pick<Adhese, 'events' | 'getAll' | 'get' | 'paramet
725
730
  */
726
731
  declare function createAdhese(options: AdheseOptions): Readonly<Adhese>;
727
732
 
728
- export { type Ad, type AdRequestOptions, type Adhese, type AdheseContext, type AdheseOptions, type AdheseSlot, type AdheseSlotOptions, createAdhese };
733
+ declare const onInit: (callback: Function) => void;
734
+
735
+ declare const onDispose: (callback: Function) => void;
736
+
737
+ export { type Ad, type AdRequestOptions, type Adhese, type AdheseContext, type AdheseOptions, type AdheseSlot, type AdheseSlotOptions, createAdhese, onDispose, onInit };