@jolibox/ads 1.1.48 → 1.1.49
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/components/ads-request.d.ts +13 -7
- package/dist/index.js +898 -857
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAdsContext } from '../type/base';
|
|
2
2
|
import type { IAFGAdBreakServerParams } from '../afg/type';
|
|
3
3
|
import type { IAdBreakParams } from '../afg/ads-interface';
|
|
4
|
-
import { IAFVRequestAdServerParams } from '@/afv/type';
|
|
4
|
+
import type { IAFVRequestAdServerParams } from '@/afv/type';
|
|
5
5
|
/**
|
|
6
6
|
* Class to manage the context of an ad request.
|
|
7
7
|
* It provides methods to get the context information, business parameters, and serialize ad tracking data.
|
|
@@ -56,15 +56,21 @@ export declare class AdsRequest {
|
|
|
56
56
|
* @param type - The type of ad break.
|
|
57
57
|
* @returns The AFG ads info.
|
|
58
58
|
*/
|
|
59
|
-
getAFGAdsInfo: (type: IAdBreakParams["type"]) => Promise<
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
getAFGAdsInfo: (type: IAdBreakParams["type"]) => Promise<{
|
|
60
|
+
code: "SUCCESS" | "BYPASS_ADS" | "TOO_FREQUENT_REQUEST";
|
|
61
|
+
data: (IAFGAdBreakServerParams & {
|
|
62
|
+
seq: number;
|
|
63
|
+
})[];
|
|
64
|
+
} | null>;
|
|
62
65
|
/**
|
|
63
66
|
* Fetches the ads info for Drama.
|
|
64
67
|
* @param cache - Whether to use the cache or not. default is true.
|
|
65
68
|
* @returns The AFV ads info.
|
|
66
69
|
*/
|
|
67
|
-
getAFVAdsInfo: (cache?: boolean) => Promise<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
getAFVAdsInfo: (cache?: boolean) => Promise<{
|
|
71
|
+
code: "SUCCESS" | "BYPASS_ADS" | "TOO_FREQUENT_REQUEST";
|
|
72
|
+
data: (IAFVRequestAdServerParams & {
|
|
73
|
+
seq: number;
|
|
74
|
+
})[];
|
|
75
|
+
} | null>;
|
|
70
76
|
}
|