|
23 | 23 | import { expect } from "chai"; |
24 | 24 |
|
25 | 25 | import * as functions from "../../../src/v1"; |
26 | | -import { Event } from "../../../src/v1/cloud-functions"; |
| 26 | +import { LegacyEvent } from "../../../src/v1/cloud-functions"; |
27 | 27 | import * as analytics from "../../../src/v1/providers/analytics"; |
28 | 28 | import * as analyticsSpecInput from "./analytics.spec.input"; |
29 | 29 | import { MINIMAL_V1_ENDPOINT } from "../../fixtures"; |
@@ -92,7 +92,7 @@ describe("Analytics Functions", () => { |
92 | 92 |
|
93 | 93 | // The event data delivered over the wire will be the JSON for an AnalyticsEvent: |
94 | 94 | // https://firebase.google.com/docs/auth/admin/manage-users#retrieve_user_data |
95 | | - const event: Event = { |
| 95 | + const event: LegacyEvent = { |
96 | 96 | data: { |
97 | 97 | userDim: { |
98 | 98 | userId: "hi!", |
@@ -126,7 +126,7 @@ describe("Analytics Functions", () => { |
126 | 126 | // Incoming events will have four kinds of "xValue" fields: "intValue", |
127 | 127 | // "stringValue", "doubleValue" and "floatValue". We expect those to get |
128 | 128 | // flattened away, leaving just their values. |
129 | | - const event: Event = { |
| 129 | + const event: LegacyEvent = { |
130 | 130 | data: { |
131 | 131 | eventDim: [ |
132 | 132 | { |
@@ -193,7 +193,7 @@ describe("Analytics Functions", () => { |
193 | 193 | .event("first_open") |
194 | 194 | .onLog((data: analytics.AnalyticsEvent) => data); |
195 | 195 |
|
196 | | - const event: Event = { |
| 196 | + const event: LegacyEvent = { |
197 | 197 | data: { |
198 | 198 | eventDim: [ |
199 | 199 | { |
@@ -264,7 +264,7 @@ describe("Analytics Functions", () => { |
264 | 264 | // |
265 | 265 | // Separately, the input has a number of microsecond timestamps that we'd |
266 | 266 | // like to rename and scale down to milliseconds. |
267 | | - const event: Event = { |
| 267 | + const event: LegacyEvent = { |
268 | 268 | data: { |
269 | 269 | eventDim: [ |
270 | 270 | { |
@@ -311,7 +311,7 @@ describe("Analytics Functions", () => { |
311 | 311 | .event("app_remove") |
312 | 312 | .onLog((data: analytics.AnalyticsEvent) => data); |
313 | 313 |
|
314 | | - const event: Event = { |
| 314 | + const event: LegacyEvent = { |
315 | 315 | data: { |
316 | 316 | eventDim: [ |
317 | 317 | { |
|
0 commit comments