@streamlayer/sl-eslib 5.248.0 → 5.249.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/package.json
CHANGED
|
@@ -2315,6 +2315,26 @@ export declare type AdDetailsResponse_AdDetailsResponseMeta = Message<"streamlay
|
|
|
2315
2315
|
export declare const AdDetailsResponse_AdDetailsResponseMetaSchema: GenMessage<AdDetailsResponse_AdDetailsResponseMeta>;
|
|
2316
2316
|
|
|
2317
2317
|
/**
|
|
2318
|
+
* External Ad totals (currently scoped to EXPOSED_PAUSED_AD topicType=14; the same handler
|
|
2319
|
+
* covers any future external-ad topicType — it scans an "external ad" metric pipeline distinct
|
|
2320
|
+
* from the poll/video/display metrics served by AdTotal).
|
|
2321
|
+
*
|
|
2322
|
+
* Contract: backend aggregates over the event_ids the caller provides. It does NOT resolve
|
|
2323
|
+
* "which events a template/card is currently attached to" — that lookup belongs on the frontend
|
|
2324
|
+
* (templates service / cards-events relation in PG). The frontend builds event_ids before calling.
|
|
2325
|
+
*
|
|
2326
|
+
* Two UI contexts use this same RPC:
|
|
2327
|
+
* - Modules/Library (template view, SLW-6925 scenario 1): FE resolves the list of currently
|
|
2328
|
+
* attached event_ids and passes them. If the template is attached to 0 events — FE renders
|
|
2329
|
+
* zeros locally and does NOT call this RPC (no events ⇒ no analytics by definition).
|
|
2330
|
+
* - Local event (SLW-6925 scenario 2): FE passes event_ids=[currentEventId].
|
|
2331
|
+
*
|
|
2332
|
+
* Aggregation is SQL-level: sumIf for counts, uniqCombinedMergeIf for Reach (deduplicates
|
|
2333
|
+
* unique devices across events — no double-counting), rates (CTR, fill rate, interaction rate)
|
|
2334
|
+
* are computed from aggregated totals, not averaged per event. Detach is handled naturally:
|
|
2335
|
+
* when an event is unbound from a template, FE re-resolves the list and the next call sees
|
|
2336
|
+
* a smaller event_ids array — the unbound event's metrics drop out of the result.
|
|
2337
|
+
*
|
|
2318
2338
|
* @generated from message streamlayer.analytics.v2.studio.AdPauseTotalRequestFilter
|
|
2319
2339
|
*/
|
|
2320
2340
|
export declare type AdPauseTotalRequestFilter = Message<"streamlayer.analytics.v2.studio.AdPauseTotalRequestFilter"> & {
|
|
@@ -2324,14 +2344,14 @@ export declare type AdPauseTotalRequestFilter = Message<"streamlayer.analytics.v
|
|
|
2324
2344
|
organizationId?: string;
|
|
2325
2345
|
|
|
2326
2346
|
/**
|
|
2327
|
-
* required (minItems=1)
|
|
2347
|
+
* required (minItems=1); FE resolves list of currently-attached events for templates view
|
|
2328
2348
|
*
|
|
2329
2349
|
* @generated from field: repeated uint64 event_ids = 2;
|
|
2330
2350
|
*/
|
|
2331
2351
|
eventIds: bigint[];
|
|
2332
2352
|
|
|
2333
2353
|
/**
|
|
2334
|
-
*
|
|
2354
|
+
* card / template ids
|
|
2335
2355
|
*
|
|
2336
2356
|
* @generated from field: repeated string topic_ids = 3;
|
|
2337
2357
|
*/
|