@useairfoil/producer-google-analytics 0.0.1 → 0.0.2
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/README.md +75 -0
- package/dist/index.d.mts +773 -0
- package/dist/index.mjs +3 -0
- package/dist/main.d.mts +1 -0
- package/dist/main.mjs +662 -0
- package/dist/main.mjs.map +1 -0
- package/dist/manifest.d.mts +45 -0
- package/dist/manifest.mjs +75 -0
- package/dist/manifest.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/src-Cu0LuOTi.mjs +711 -0
- package/dist/src-Cu0LuOTi.mjs.map +1 -0
- package/package.json +45 -7
- package/src/client/auth.ts +133 -0
- package/src/client/client.ts +212 -0
- package/src/connector.ts +55 -0
- package/src/create-table.ts +5 -0
- package/src/demo/index.ts +44 -0
- package/src/demo/reports.ts +251 -0
- package/src/demo/shared.ts +98 -0
- package/src/index.ts +26 -0
- package/src/main.ts +22 -0
- package/src/manifest.ts +50 -0
- package/src/resources/reports/read.ts +104 -0
- package/src/resources/reports/resource.ts +31 -0
- package/src/resources/reports/sources.ts +169 -0
- package/src/resources/reports/spec.ts +15 -0
- package/src/resources/reports/specs.ts +173 -0
- package/src/sandbox.ts +37 -0
- package/src/schemas/api.ts +37 -0
- package/src/schemas/reports.ts +172 -0
- package/src/schemas/shared.ts +42 -0
- package/src/start.ts +49 -0
- package/src/tables.ts +25 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
import { GoogleAnalyticsConfig, GoogleAnalyticsConfigDef, manifest } from "./manifest.mjs";
|
|
2
|
+
import { Auth, ConnectorError } from "@useairfoil/connector-kit";
|
|
3
|
+
import { Config, Context, DateTime, Effect, Layer, Redacted, Schema } from "effect";
|
|
4
|
+
import { HttpClient } from "effect/http";
|
|
5
|
+
declare namespace auth_d_exports {
|
|
6
|
+
export { GoogleAnalyticsAuth, GoogleAnalyticsAuthService, layer$2 as layer, make$2 as make, makeAssertion, scope, tokenUrl };
|
|
7
|
+
}
|
|
8
|
+
type GoogleAnalyticsAuthConfig = Pick<GoogleAnalyticsConfig, "clientEmail" | "privateKey">;
|
|
9
|
+
type GoogleAnalyticsAuthService = Auth.TokenCache<ConnectorError>;
|
|
10
|
+
declare const GoogleAnalyticsAuth_base: Context.ServiceClass<GoogleAnalyticsAuth, "@useairfoil/producer-google-analytics/GoogleAnalyticsAuth", GoogleAnalyticsAuthService>;
|
|
11
|
+
declare class GoogleAnalyticsAuth extends GoogleAnalyticsAuth_base {}
|
|
12
|
+
declare const tokenUrl = "https://oauth2.googleapis.com/token";
|
|
13
|
+
declare const scope = "https://www.googleapis.com/auth/analytics.readonly";
|
|
14
|
+
/** Signs the service account JWT with RS256. Google allows at most 1 hour. */
|
|
15
|
+
declare const makeAssertion: (options: {
|
|
16
|
+
readonly clientEmail: string;
|
|
17
|
+
readonly privateKey: string;
|
|
18
|
+
readonly nowMillis: number;
|
|
19
|
+
}) => Effect.Effect<string, ConnectorError>;
|
|
20
|
+
declare const make$2: (config: GoogleAnalyticsAuthConfig) => Effect.Effect<Auth.TokenCache<ConnectorError>, never, HttpClient.HttpClient>;
|
|
21
|
+
declare const layer$2: (config: GoogleAnalyticsAuthConfig) => Layer.Layer<GoogleAnalyticsAuth, never, HttpClient.HttpClient>;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/schemas/api.d.ts
|
|
24
|
+
/** `POST properties/{id}:runReport`. Every value comes as a string. */
|
|
25
|
+
declare const RunReportResponseSchema: Schema.Struct<{
|
|
26
|
+
readonly dimensionHeaders: Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly name: Schema.String;
|
|
28
|
+
}>>;
|
|
29
|
+
readonly metricHeaders: Schema.$Array<Schema.Struct<{
|
|
30
|
+
readonly name: Schema.String;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly rows: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly dimensionValues: Schema.$Array<Schema.Struct<{
|
|
34
|
+
readonly value: Schema.String;
|
|
35
|
+
}>>;
|
|
36
|
+
readonly metricValues: Schema.$Array<Schema.Struct<{
|
|
37
|
+
readonly value: Schema.String;
|
|
38
|
+
}>>;
|
|
39
|
+
}>>>;
|
|
40
|
+
readonly rowCount: Schema.optional<Schema.Int>;
|
|
41
|
+
readonly metadata: Schema.Struct<{
|
|
42
|
+
readonly timeZone: Schema.String;
|
|
43
|
+
readonly currencyCode: Schema.optional<Schema.String>;
|
|
44
|
+
readonly dataLossFromOtherRow: Schema.optional<Schema.Boolean>;
|
|
45
|
+
readonly subjectToThresholding: Schema.optional<Schema.Boolean>;
|
|
46
|
+
readonly samplingMetadatas: Schema.optional<Schema.$Array<Schema.Unknown>>;
|
|
47
|
+
readonly dataTruncationReasons: Schema.optional<Schema.$Array<Schema.Unknown>>;
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
type RunReportResponse = Schema.Schema.Type<typeof RunReportResponseSchema>;
|
|
51
|
+
declare namespace client_d_exports {
|
|
52
|
+
export { DATA_API_VERSION, GoogleAnalyticsClient, GoogleAnalyticsClientService, ReportRequest, layer$1 as layer, layerConfig$1 as layerConfig, make$1 as make };
|
|
53
|
+
}
|
|
54
|
+
declare const DATA_API_VERSION = "v1beta";
|
|
55
|
+
type ReportRequest = {
|
|
56
|
+
readonly dimensions: ReadonlyArray<string>;
|
|
57
|
+
readonly metrics: ReadonlyArray<string>;
|
|
58
|
+
/** `YYYY-MM-DD` in the property's time zone. */
|
|
59
|
+
readonly startDate: string;
|
|
60
|
+
readonly endDate: string;
|
|
61
|
+
readonly limit: number;
|
|
62
|
+
readonly offset: number;
|
|
63
|
+
};
|
|
64
|
+
type GoogleAnalyticsClientService = {
|
|
65
|
+
/** `name` labels the span and errors, such as the resource name. */
|
|
66
|
+
readonly runReport: (name: string, request: ReportRequest) => Effect.Effect<RunReportResponse, ConnectorError>;
|
|
67
|
+
/** The property's time zone. Report dates are days in this zone. */
|
|
68
|
+
readonly timeZone: Effect.Effect<DateTime.TimeZone, ConnectorError>;
|
|
69
|
+
};
|
|
70
|
+
declare const GoogleAnalyticsClient_base: Context.ServiceClass<GoogleAnalyticsClient, "@useairfoil/producer-google-analytics/GoogleAnalyticsClient", GoogleAnalyticsClientService>;
|
|
71
|
+
declare class GoogleAnalyticsClient extends GoogleAnalyticsClient_base {}
|
|
72
|
+
declare const make$1: (config: Pick<{
|
|
73
|
+
readonly propertyId: string;
|
|
74
|
+
readonly clientEmail: string;
|
|
75
|
+
readonly privateKey: Redacted.Redacted<string>;
|
|
76
|
+
readonly startDate: import("effect/Option").Option<string>;
|
|
77
|
+
readonly lookbackDays: number;
|
|
78
|
+
}, "propertyId">) => Effect.Effect<GoogleAnalyticsClientService, never, GoogleAnalyticsAuth | HttpClient.HttpClient>;
|
|
79
|
+
declare const layer$1: (config: GoogleAnalyticsConfig) => Layer.Layer<GoogleAnalyticsClient, never, HttpClient.HttpClient>;
|
|
80
|
+
declare const layerConfig$1: (config: Config.Wrap<GoogleAnalyticsConfig>) => Layer.Layer<GoogleAnalyticsClient, Config.ConfigError, HttpClient.HttpClient>;
|
|
81
|
+
declare namespace connector_d_exports {
|
|
82
|
+
export { GoogleAnalyticsConfig, GoogleAnalyticsConfigDef, GoogleAnalyticsConnector, GoogleAnalyticsConnectorRuntime, layer, layerConfig, make, manifest };
|
|
83
|
+
}
|
|
84
|
+
declare const make: (config: {
|
|
85
|
+
readonly propertyId: string;
|
|
86
|
+
readonly clientEmail: string;
|
|
87
|
+
readonly privateKey: import("effect/Redacted").Redacted<string>;
|
|
88
|
+
readonly startDate: import("effect/Option").Option<string>;
|
|
89
|
+
readonly lookbackDays: number;
|
|
90
|
+
}) => Effect.Effect<import("@useairfoil/connector-kit").ConnectorDefinition<readonly [import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
91
|
+
readonly active_users: bigint;
|
|
92
|
+
readonly new_users: bigint;
|
|
93
|
+
readonly total_users: bigint;
|
|
94
|
+
readonly sessions: bigint;
|
|
95
|
+
readonly engaged_sessions: bigint;
|
|
96
|
+
readonly screen_page_views: bigint;
|
|
97
|
+
readonly event_count: bigint;
|
|
98
|
+
readonly key_events: number;
|
|
99
|
+
readonly total_revenue: number;
|
|
100
|
+
readonly user_engagement_duration: number;
|
|
101
|
+
readonly currency_code: string;
|
|
102
|
+
readonly id: string;
|
|
103
|
+
readonly version: Date;
|
|
104
|
+
readonly property_id: string;
|
|
105
|
+
readonly date: string;
|
|
106
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
107
|
+
readonly session_source: string;
|
|
108
|
+
readonly session_medium: string;
|
|
109
|
+
readonly session_campaign_name: string;
|
|
110
|
+
readonly session_default_channel_group: string;
|
|
111
|
+
readonly sessions: bigint;
|
|
112
|
+
readonly engaged_sessions: bigint;
|
|
113
|
+
readonly active_users: bigint;
|
|
114
|
+
readonly new_users: bigint;
|
|
115
|
+
readonly screen_page_views: bigint;
|
|
116
|
+
readonly event_count: bigint;
|
|
117
|
+
readonly key_events: number;
|
|
118
|
+
readonly total_revenue: number;
|
|
119
|
+
readonly user_engagement_duration: number;
|
|
120
|
+
readonly currency_code: string;
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly version: Date;
|
|
123
|
+
readonly property_id: string;
|
|
124
|
+
readonly date: string;
|
|
125
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
126
|
+
readonly first_user_source: string;
|
|
127
|
+
readonly first_user_medium: string;
|
|
128
|
+
readonly first_user_campaign_name: string;
|
|
129
|
+
readonly first_user_default_channel_group: string;
|
|
130
|
+
readonly new_users: bigint;
|
|
131
|
+
readonly active_users: bigint;
|
|
132
|
+
readonly sessions: bigint;
|
|
133
|
+
readonly engaged_sessions: bigint;
|
|
134
|
+
readonly key_events: number;
|
|
135
|
+
readonly total_revenue: number;
|
|
136
|
+
readonly currency_code: string;
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly version: Date;
|
|
139
|
+
readonly property_id: string;
|
|
140
|
+
readonly date: string;
|
|
141
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
142
|
+
readonly host_name: string;
|
|
143
|
+
readonly page_path: string;
|
|
144
|
+
readonly page_title: string;
|
|
145
|
+
readonly screen_page_views: bigint;
|
|
146
|
+
readonly active_users: bigint;
|
|
147
|
+
readonly event_count: bigint;
|
|
148
|
+
readonly key_events: number;
|
|
149
|
+
readonly user_engagement_duration: number;
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly version: Date;
|
|
152
|
+
readonly property_id: string;
|
|
153
|
+
readonly date: string;
|
|
154
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
155
|
+
readonly landing_page: string;
|
|
156
|
+
readonly sessions: bigint;
|
|
157
|
+
readonly engaged_sessions: bigint;
|
|
158
|
+
readonly active_users: bigint;
|
|
159
|
+
readonly new_users: bigint;
|
|
160
|
+
readonly key_events: number;
|
|
161
|
+
readonly total_revenue: number;
|
|
162
|
+
readonly currency_code: string;
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly version: Date;
|
|
165
|
+
readonly property_id: string;
|
|
166
|
+
readonly date: string;
|
|
167
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
168
|
+
readonly event_name: string;
|
|
169
|
+
readonly event_count: bigint;
|
|
170
|
+
readonly total_users: bigint;
|
|
171
|
+
readonly event_value: number;
|
|
172
|
+
readonly key_events: number;
|
|
173
|
+
readonly id: string;
|
|
174
|
+
readonly version: Date;
|
|
175
|
+
readonly property_id: string;
|
|
176
|
+
readonly date: string;
|
|
177
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
178
|
+
readonly country: string;
|
|
179
|
+
readonly region: string;
|
|
180
|
+
readonly city: string;
|
|
181
|
+
readonly active_users: bigint;
|
|
182
|
+
readonly new_users: bigint;
|
|
183
|
+
readonly sessions: bigint;
|
|
184
|
+
readonly engaged_sessions: bigint;
|
|
185
|
+
readonly key_events: number;
|
|
186
|
+
readonly total_revenue: number;
|
|
187
|
+
readonly currency_code: string;
|
|
188
|
+
readonly id: string;
|
|
189
|
+
readonly version: Date;
|
|
190
|
+
readonly property_id: string;
|
|
191
|
+
readonly date: string;
|
|
192
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
193
|
+
readonly device_category: string;
|
|
194
|
+
readonly platform: string;
|
|
195
|
+
readonly operating_system: string;
|
|
196
|
+
readonly browser: string;
|
|
197
|
+
readonly active_users: bigint;
|
|
198
|
+
readonly new_users: bigint;
|
|
199
|
+
readonly sessions: bigint;
|
|
200
|
+
readonly engaged_sessions: bigint;
|
|
201
|
+
readonly screen_page_views: bigint;
|
|
202
|
+
readonly key_events: number;
|
|
203
|
+
readonly id: string;
|
|
204
|
+
readonly version: Date;
|
|
205
|
+
readonly property_id: string;
|
|
206
|
+
readonly date: string;
|
|
207
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
208
|
+
readonly item_id: string;
|
|
209
|
+
readonly item_name: string;
|
|
210
|
+
readonly item_brand: string;
|
|
211
|
+
readonly item_category: string;
|
|
212
|
+
readonly items_viewed: bigint;
|
|
213
|
+
readonly items_added_to_cart: bigint;
|
|
214
|
+
readonly items_purchased: bigint;
|
|
215
|
+
readonly item_revenue: number;
|
|
216
|
+
readonly currency_code: string;
|
|
217
|
+
readonly id: string;
|
|
218
|
+
readonly version: Date;
|
|
219
|
+
readonly property_id: string;
|
|
220
|
+
readonly date: string;
|
|
221
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">], readonly [import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
222
|
+
readonly active_users: bigint;
|
|
223
|
+
readonly new_users: bigint;
|
|
224
|
+
readonly total_users: bigint;
|
|
225
|
+
readonly sessions: bigint;
|
|
226
|
+
readonly engaged_sessions: bigint;
|
|
227
|
+
readonly screen_page_views: bigint;
|
|
228
|
+
readonly event_count: bigint;
|
|
229
|
+
readonly key_events: number;
|
|
230
|
+
readonly total_revenue: number;
|
|
231
|
+
readonly user_engagement_duration: number;
|
|
232
|
+
readonly currency_code: string;
|
|
233
|
+
readonly id: string;
|
|
234
|
+
readonly version: Date;
|
|
235
|
+
readonly property_id: string;
|
|
236
|
+
readonly date: string;
|
|
237
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
238
|
+
readonly session_source: string;
|
|
239
|
+
readonly session_medium: string;
|
|
240
|
+
readonly session_campaign_name: string;
|
|
241
|
+
readonly session_default_channel_group: string;
|
|
242
|
+
readonly sessions: bigint;
|
|
243
|
+
readonly engaged_sessions: bigint;
|
|
244
|
+
readonly active_users: bigint;
|
|
245
|
+
readonly new_users: bigint;
|
|
246
|
+
readonly screen_page_views: bigint;
|
|
247
|
+
readonly event_count: bigint;
|
|
248
|
+
readonly key_events: number;
|
|
249
|
+
readonly total_revenue: number;
|
|
250
|
+
readonly user_engagement_duration: number;
|
|
251
|
+
readonly currency_code: string;
|
|
252
|
+
readonly id: string;
|
|
253
|
+
readonly version: Date;
|
|
254
|
+
readonly property_id: string;
|
|
255
|
+
readonly date: string;
|
|
256
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
257
|
+
readonly first_user_source: string;
|
|
258
|
+
readonly first_user_medium: string;
|
|
259
|
+
readonly first_user_campaign_name: string;
|
|
260
|
+
readonly first_user_default_channel_group: string;
|
|
261
|
+
readonly new_users: bigint;
|
|
262
|
+
readonly active_users: bigint;
|
|
263
|
+
readonly sessions: bigint;
|
|
264
|
+
readonly engaged_sessions: bigint;
|
|
265
|
+
readonly key_events: number;
|
|
266
|
+
readonly total_revenue: number;
|
|
267
|
+
readonly currency_code: string;
|
|
268
|
+
readonly id: string;
|
|
269
|
+
readonly version: Date;
|
|
270
|
+
readonly property_id: string;
|
|
271
|
+
readonly date: string;
|
|
272
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
273
|
+
readonly host_name: string;
|
|
274
|
+
readonly page_path: string;
|
|
275
|
+
readonly page_title: string;
|
|
276
|
+
readonly screen_page_views: bigint;
|
|
277
|
+
readonly active_users: bigint;
|
|
278
|
+
readonly event_count: bigint;
|
|
279
|
+
readonly key_events: number;
|
|
280
|
+
readonly user_engagement_duration: number;
|
|
281
|
+
readonly id: string;
|
|
282
|
+
readonly version: Date;
|
|
283
|
+
readonly property_id: string;
|
|
284
|
+
readonly date: string;
|
|
285
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
286
|
+
readonly landing_page: string;
|
|
287
|
+
readonly sessions: bigint;
|
|
288
|
+
readonly engaged_sessions: bigint;
|
|
289
|
+
readonly active_users: bigint;
|
|
290
|
+
readonly new_users: bigint;
|
|
291
|
+
readonly key_events: number;
|
|
292
|
+
readonly total_revenue: number;
|
|
293
|
+
readonly currency_code: string;
|
|
294
|
+
readonly id: string;
|
|
295
|
+
readonly version: Date;
|
|
296
|
+
readonly property_id: string;
|
|
297
|
+
readonly date: string;
|
|
298
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
299
|
+
readonly event_name: string;
|
|
300
|
+
readonly event_count: bigint;
|
|
301
|
+
readonly total_users: bigint;
|
|
302
|
+
readonly event_value: number;
|
|
303
|
+
readonly key_events: number;
|
|
304
|
+
readonly id: string;
|
|
305
|
+
readonly version: Date;
|
|
306
|
+
readonly property_id: string;
|
|
307
|
+
readonly date: string;
|
|
308
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
309
|
+
readonly country: string;
|
|
310
|
+
readonly region: string;
|
|
311
|
+
readonly city: string;
|
|
312
|
+
readonly active_users: bigint;
|
|
313
|
+
readonly new_users: bigint;
|
|
314
|
+
readonly sessions: bigint;
|
|
315
|
+
readonly engaged_sessions: bigint;
|
|
316
|
+
readonly key_events: number;
|
|
317
|
+
readonly total_revenue: number;
|
|
318
|
+
readonly currency_code: string;
|
|
319
|
+
readonly id: string;
|
|
320
|
+
readonly version: Date;
|
|
321
|
+
readonly property_id: string;
|
|
322
|
+
readonly date: string;
|
|
323
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
324
|
+
readonly device_category: string;
|
|
325
|
+
readonly platform: string;
|
|
326
|
+
readonly operating_system: string;
|
|
327
|
+
readonly browser: string;
|
|
328
|
+
readonly active_users: bigint;
|
|
329
|
+
readonly new_users: bigint;
|
|
330
|
+
readonly sessions: bigint;
|
|
331
|
+
readonly engaged_sessions: bigint;
|
|
332
|
+
readonly screen_page_views: bigint;
|
|
333
|
+
readonly key_events: number;
|
|
334
|
+
readonly id: string;
|
|
335
|
+
readonly version: Date;
|
|
336
|
+
readonly property_id: string;
|
|
337
|
+
readonly date: string;
|
|
338
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
339
|
+
readonly item_id: string;
|
|
340
|
+
readonly item_name: string;
|
|
341
|
+
readonly item_brand: string;
|
|
342
|
+
readonly item_category: string;
|
|
343
|
+
readonly items_viewed: bigint;
|
|
344
|
+
readonly items_added_to_cart: bigint;
|
|
345
|
+
readonly items_purchased: bigint;
|
|
346
|
+
readonly item_revenue: number;
|
|
347
|
+
readonly currency_code: string;
|
|
348
|
+
readonly id: string;
|
|
349
|
+
readonly version: Date;
|
|
350
|
+
readonly property_id: string;
|
|
351
|
+
readonly date: string;
|
|
352
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">]>, never, GoogleAnalyticsClient>;
|
|
353
|
+
type GoogleAnalyticsConnectorRuntime = Effect.Success<ReturnType<typeof make>>;
|
|
354
|
+
declare const GoogleAnalyticsConnector_base: Context.ServiceClass<GoogleAnalyticsConnector, "@useairfoil/producer-google-analytics/GoogleAnalyticsConnector", import("@useairfoil/connector-kit").ConnectorDefinition<readonly [import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
355
|
+
readonly active_users: bigint;
|
|
356
|
+
readonly new_users: bigint;
|
|
357
|
+
readonly total_users: bigint;
|
|
358
|
+
readonly sessions: bigint;
|
|
359
|
+
readonly engaged_sessions: bigint;
|
|
360
|
+
readonly screen_page_views: bigint;
|
|
361
|
+
readonly event_count: bigint;
|
|
362
|
+
readonly key_events: number;
|
|
363
|
+
readonly total_revenue: number;
|
|
364
|
+
readonly user_engagement_duration: number;
|
|
365
|
+
readonly currency_code: string;
|
|
366
|
+
readonly id: string;
|
|
367
|
+
readonly version: Date;
|
|
368
|
+
readonly property_id: string;
|
|
369
|
+
readonly date: string;
|
|
370
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
371
|
+
readonly session_source: string;
|
|
372
|
+
readonly session_medium: string;
|
|
373
|
+
readonly session_campaign_name: string;
|
|
374
|
+
readonly session_default_channel_group: string;
|
|
375
|
+
readonly sessions: bigint;
|
|
376
|
+
readonly engaged_sessions: bigint;
|
|
377
|
+
readonly active_users: bigint;
|
|
378
|
+
readonly new_users: bigint;
|
|
379
|
+
readonly screen_page_views: bigint;
|
|
380
|
+
readonly event_count: bigint;
|
|
381
|
+
readonly key_events: number;
|
|
382
|
+
readonly total_revenue: number;
|
|
383
|
+
readonly user_engagement_duration: number;
|
|
384
|
+
readonly currency_code: string;
|
|
385
|
+
readonly id: string;
|
|
386
|
+
readonly version: Date;
|
|
387
|
+
readonly property_id: string;
|
|
388
|
+
readonly date: string;
|
|
389
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
390
|
+
readonly first_user_source: string;
|
|
391
|
+
readonly first_user_medium: string;
|
|
392
|
+
readonly first_user_campaign_name: string;
|
|
393
|
+
readonly first_user_default_channel_group: string;
|
|
394
|
+
readonly new_users: bigint;
|
|
395
|
+
readonly active_users: bigint;
|
|
396
|
+
readonly sessions: bigint;
|
|
397
|
+
readonly engaged_sessions: bigint;
|
|
398
|
+
readonly key_events: number;
|
|
399
|
+
readonly total_revenue: number;
|
|
400
|
+
readonly currency_code: string;
|
|
401
|
+
readonly id: string;
|
|
402
|
+
readonly version: Date;
|
|
403
|
+
readonly property_id: string;
|
|
404
|
+
readonly date: string;
|
|
405
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
406
|
+
readonly host_name: string;
|
|
407
|
+
readonly page_path: string;
|
|
408
|
+
readonly page_title: string;
|
|
409
|
+
readonly screen_page_views: bigint;
|
|
410
|
+
readonly active_users: bigint;
|
|
411
|
+
readonly event_count: bigint;
|
|
412
|
+
readonly key_events: number;
|
|
413
|
+
readonly user_engagement_duration: number;
|
|
414
|
+
readonly id: string;
|
|
415
|
+
readonly version: Date;
|
|
416
|
+
readonly property_id: string;
|
|
417
|
+
readonly date: string;
|
|
418
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
419
|
+
readonly landing_page: string;
|
|
420
|
+
readonly sessions: bigint;
|
|
421
|
+
readonly engaged_sessions: bigint;
|
|
422
|
+
readonly active_users: bigint;
|
|
423
|
+
readonly new_users: bigint;
|
|
424
|
+
readonly key_events: number;
|
|
425
|
+
readonly total_revenue: number;
|
|
426
|
+
readonly currency_code: string;
|
|
427
|
+
readonly id: string;
|
|
428
|
+
readonly version: Date;
|
|
429
|
+
readonly property_id: string;
|
|
430
|
+
readonly date: string;
|
|
431
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
432
|
+
readonly event_name: string;
|
|
433
|
+
readonly event_count: bigint;
|
|
434
|
+
readonly total_users: bigint;
|
|
435
|
+
readonly event_value: number;
|
|
436
|
+
readonly key_events: number;
|
|
437
|
+
readonly id: string;
|
|
438
|
+
readonly version: Date;
|
|
439
|
+
readonly property_id: string;
|
|
440
|
+
readonly date: string;
|
|
441
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
442
|
+
readonly country: string;
|
|
443
|
+
readonly region: string;
|
|
444
|
+
readonly city: string;
|
|
445
|
+
readonly active_users: bigint;
|
|
446
|
+
readonly new_users: bigint;
|
|
447
|
+
readonly sessions: bigint;
|
|
448
|
+
readonly engaged_sessions: bigint;
|
|
449
|
+
readonly key_events: number;
|
|
450
|
+
readonly total_revenue: number;
|
|
451
|
+
readonly currency_code: string;
|
|
452
|
+
readonly id: string;
|
|
453
|
+
readonly version: Date;
|
|
454
|
+
readonly property_id: string;
|
|
455
|
+
readonly date: string;
|
|
456
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
457
|
+
readonly device_category: string;
|
|
458
|
+
readonly platform: string;
|
|
459
|
+
readonly operating_system: string;
|
|
460
|
+
readonly browser: string;
|
|
461
|
+
readonly active_users: bigint;
|
|
462
|
+
readonly new_users: bigint;
|
|
463
|
+
readonly sessions: bigint;
|
|
464
|
+
readonly engaged_sessions: bigint;
|
|
465
|
+
readonly screen_page_views: bigint;
|
|
466
|
+
readonly key_events: number;
|
|
467
|
+
readonly id: string;
|
|
468
|
+
readonly version: Date;
|
|
469
|
+
readonly property_id: string;
|
|
470
|
+
readonly date: string;
|
|
471
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
472
|
+
readonly item_id: string;
|
|
473
|
+
readonly item_name: string;
|
|
474
|
+
readonly item_brand: string;
|
|
475
|
+
readonly item_category: string;
|
|
476
|
+
readonly items_viewed: bigint;
|
|
477
|
+
readonly items_added_to_cart: bigint;
|
|
478
|
+
readonly items_purchased: bigint;
|
|
479
|
+
readonly item_revenue: number;
|
|
480
|
+
readonly currency_code: string;
|
|
481
|
+
readonly id: string;
|
|
482
|
+
readonly version: Date;
|
|
483
|
+
readonly property_id: string;
|
|
484
|
+
readonly date: string;
|
|
485
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">], readonly [import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
486
|
+
readonly active_users: bigint;
|
|
487
|
+
readonly new_users: bigint;
|
|
488
|
+
readonly total_users: bigint;
|
|
489
|
+
readonly sessions: bigint;
|
|
490
|
+
readonly engaged_sessions: bigint;
|
|
491
|
+
readonly screen_page_views: bigint;
|
|
492
|
+
readonly event_count: bigint;
|
|
493
|
+
readonly key_events: number;
|
|
494
|
+
readonly total_revenue: number;
|
|
495
|
+
readonly user_engagement_duration: number;
|
|
496
|
+
readonly currency_code: string;
|
|
497
|
+
readonly id: string;
|
|
498
|
+
readonly version: Date;
|
|
499
|
+
readonly property_id: string;
|
|
500
|
+
readonly date: string;
|
|
501
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
502
|
+
readonly session_source: string;
|
|
503
|
+
readonly session_medium: string;
|
|
504
|
+
readonly session_campaign_name: string;
|
|
505
|
+
readonly session_default_channel_group: string;
|
|
506
|
+
readonly sessions: bigint;
|
|
507
|
+
readonly engaged_sessions: bigint;
|
|
508
|
+
readonly active_users: bigint;
|
|
509
|
+
readonly new_users: bigint;
|
|
510
|
+
readonly screen_page_views: bigint;
|
|
511
|
+
readonly event_count: bigint;
|
|
512
|
+
readonly key_events: number;
|
|
513
|
+
readonly total_revenue: number;
|
|
514
|
+
readonly user_engagement_duration: number;
|
|
515
|
+
readonly currency_code: string;
|
|
516
|
+
readonly id: string;
|
|
517
|
+
readonly version: Date;
|
|
518
|
+
readonly property_id: string;
|
|
519
|
+
readonly date: string;
|
|
520
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
521
|
+
readonly first_user_source: string;
|
|
522
|
+
readonly first_user_medium: string;
|
|
523
|
+
readonly first_user_campaign_name: string;
|
|
524
|
+
readonly first_user_default_channel_group: string;
|
|
525
|
+
readonly new_users: bigint;
|
|
526
|
+
readonly active_users: bigint;
|
|
527
|
+
readonly sessions: bigint;
|
|
528
|
+
readonly engaged_sessions: bigint;
|
|
529
|
+
readonly key_events: number;
|
|
530
|
+
readonly total_revenue: number;
|
|
531
|
+
readonly currency_code: string;
|
|
532
|
+
readonly id: string;
|
|
533
|
+
readonly version: Date;
|
|
534
|
+
readonly property_id: string;
|
|
535
|
+
readonly date: string;
|
|
536
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
537
|
+
readonly host_name: string;
|
|
538
|
+
readonly page_path: string;
|
|
539
|
+
readonly page_title: string;
|
|
540
|
+
readonly screen_page_views: bigint;
|
|
541
|
+
readonly active_users: bigint;
|
|
542
|
+
readonly event_count: bigint;
|
|
543
|
+
readonly key_events: number;
|
|
544
|
+
readonly user_engagement_duration: number;
|
|
545
|
+
readonly id: string;
|
|
546
|
+
readonly version: Date;
|
|
547
|
+
readonly property_id: string;
|
|
548
|
+
readonly date: string;
|
|
549
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
550
|
+
readonly landing_page: string;
|
|
551
|
+
readonly sessions: bigint;
|
|
552
|
+
readonly engaged_sessions: bigint;
|
|
553
|
+
readonly active_users: bigint;
|
|
554
|
+
readonly new_users: bigint;
|
|
555
|
+
readonly key_events: number;
|
|
556
|
+
readonly total_revenue: number;
|
|
557
|
+
readonly currency_code: string;
|
|
558
|
+
readonly id: string;
|
|
559
|
+
readonly version: Date;
|
|
560
|
+
readonly property_id: string;
|
|
561
|
+
readonly date: string;
|
|
562
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
563
|
+
readonly event_name: string;
|
|
564
|
+
readonly event_count: bigint;
|
|
565
|
+
readonly total_users: bigint;
|
|
566
|
+
readonly event_value: number;
|
|
567
|
+
readonly key_events: number;
|
|
568
|
+
readonly id: string;
|
|
569
|
+
readonly version: Date;
|
|
570
|
+
readonly property_id: string;
|
|
571
|
+
readonly date: string;
|
|
572
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
573
|
+
readonly country: string;
|
|
574
|
+
readonly region: string;
|
|
575
|
+
readonly city: string;
|
|
576
|
+
readonly active_users: bigint;
|
|
577
|
+
readonly new_users: bigint;
|
|
578
|
+
readonly sessions: bigint;
|
|
579
|
+
readonly engaged_sessions: bigint;
|
|
580
|
+
readonly key_events: number;
|
|
581
|
+
readonly total_revenue: number;
|
|
582
|
+
readonly currency_code: string;
|
|
583
|
+
readonly id: string;
|
|
584
|
+
readonly version: Date;
|
|
585
|
+
readonly property_id: string;
|
|
586
|
+
readonly date: string;
|
|
587
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
588
|
+
readonly device_category: string;
|
|
589
|
+
readonly platform: string;
|
|
590
|
+
readonly operating_system: string;
|
|
591
|
+
readonly browser: string;
|
|
592
|
+
readonly active_users: bigint;
|
|
593
|
+
readonly new_users: bigint;
|
|
594
|
+
readonly sessions: bigint;
|
|
595
|
+
readonly engaged_sessions: bigint;
|
|
596
|
+
readonly screen_page_views: bigint;
|
|
597
|
+
readonly key_events: number;
|
|
598
|
+
readonly id: string;
|
|
599
|
+
readonly version: Date;
|
|
600
|
+
readonly property_id: string;
|
|
601
|
+
readonly date: string;
|
|
602
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">, import("@useairfoil/connector-kit").ResourceDefinition<import("effect/Schema").Decoder<{
|
|
603
|
+
readonly item_id: string;
|
|
604
|
+
readonly item_name: string;
|
|
605
|
+
readonly item_brand: string;
|
|
606
|
+
readonly item_category: string;
|
|
607
|
+
readonly items_viewed: bigint;
|
|
608
|
+
readonly items_added_to_cart: bigint;
|
|
609
|
+
readonly items_purchased: bigint;
|
|
610
|
+
readonly item_revenue: number;
|
|
611
|
+
readonly currency_code: string;
|
|
612
|
+
readonly id: string;
|
|
613
|
+
readonly version: Date;
|
|
614
|
+
readonly property_id: string;
|
|
615
|
+
readonly date: string;
|
|
616
|
+
}, never> & import("@useairfoil/connector-kit").Identified<"id">, unknown, never, string, "version">]>>;
|
|
617
|
+
declare class GoogleAnalyticsConnector extends GoogleAnalyticsConnector_base {}
|
|
618
|
+
declare const layer: (config: GoogleAnalyticsConfig) => Layer.Layer<GoogleAnalyticsConnector, never, import("effect/http/HttpClient").HttpClient>;
|
|
619
|
+
declare const layerConfig: (config: Config.Wrap<GoogleAnalyticsConfig>) => Layer.Layer<GoogleAnalyticsConnector, Config.ConfigError, import("effect/http/HttpClient").HttpClient>;
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/schemas/reports.d.ts
|
|
622
|
+
export declare const DailyOverviewSchema: Schema.Struct<{
|
|
623
|
+
readonly active_users: Schema.BigIntFromString;
|
|
624
|
+
readonly new_users: Schema.BigIntFromString;
|
|
625
|
+
readonly total_users: Schema.BigIntFromString;
|
|
626
|
+
readonly sessions: Schema.BigIntFromString;
|
|
627
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
628
|
+
readonly screen_page_views: Schema.BigIntFromString;
|
|
629
|
+
readonly event_count: Schema.BigIntFromString;
|
|
630
|
+
readonly key_events: Schema.FiniteFromString;
|
|
631
|
+
readonly total_revenue: Schema.FiniteFromString;
|
|
632
|
+
readonly user_engagement_duration: Schema.FiniteFromString;
|
|
633
|
+
readonly currency_code: Schema.String;
|
|
634
|
+
readonly id: Schema.String;
|
|
635
|
+
readonly version: Schema.Date;
|
|
636
|
+
readonly property_id: Schema.String;
|
|
637
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
638
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
639
|
+
type DailyOverview = Schema.Schema.Type<typeof DailyOverviewSchema>;
|
|
640
|
+
export declare const TrafficSourceSchema: Schema.Struct<{
|
|
641
|
+
readonly session_source: Schema.String;
|
|
642
|
+
readonly session_medium: Schema.String;
|
|
643
|
+
readonly session_campaign_name: Schema.String;
|
|
644
|
+
readonly session_default_channel_group: Schema.String;
|
|
645
|
+
readonly sessions: Schema.BigIntFromString;
|
|
646
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
647
|
+
readonly active_users: Schema.BigIntFromString;
|
|
648
|
+
readonly new_users: Schema.BigIntFromString;
|
|
649
|
+
readonly screen_page_views: Schema.BigIntFromString;
|
|
650
|
+
readonly event_count: Schema.BigIntFromString;
|
|
651
|
+
readonly key_events: Schema.FiniteFromString;
|
|
652
|
+
readonly total_revenue: Schema.FiniteFromString;
|
|
653
|
+
readonly user_engagement_duration: Schema.FiniteFromString;
|
|
654
|
+
readonly currency_code: Schema.String;
|
|
655
|
+
readonly id: Schema.String;
|
|
656
|
+
readonly version: Schema.Date;
|
|
657
|
+
readonly property_id: Schema.String;
|
|
658
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
659
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
660
|
+
type TrafficSource = Schema.Schema.Type<typeof TrafficSourceSchema>;
|
|
661
|
+
export declare const UserAcquisitionSchema: Schema.Struct<{
|
|
662
|
+
readonly first_user_source: Schema.String;
|
|
663
|
+
readonly first_user_medium: Schema.String;
|
|
664
|
+
readonly first_user_campaign_name: Schema.String;
|
|
665
|
+
readonly first_user_default_channel_group: Schema.String;
|
|
666
|
+
readonly new_users: Schema.BigIntFromString;
|
|
667
|
+
readonly active_users: Schema.BigIntFromString;
|
|
668
|
+
readonly sessions: Schema.BigIntFromString;
|
|
669
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
670
|
+
readonly key_events: Schema.FiniteFromString;
|
|
671
|
+
readonly total_revenue: Schema.FiniteFromString;
|
|
672
|
+
readonly currency_code: Schema.String;
|
|
673
|
+
readonly id: Schema.String;
|
|
674
|
+
readonly version: Schema.Date;
|
|
675
|
+
readonly property_id: Schema.String;
|
|
676
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
677
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
678
|
+
type UserAcquisition = Schema.Schema.Type<typeof UserAcquisitionSchema>;
|
|
679
|
+
export declare const PageSchema: Schema.Struct<{
|
|
680
|
+
readonly host_name: Schema.String;
|
|
681
|
+
readonly page_path: Schema.String;
|
|
682
|
+
readonly page_title: Schema.String;
|
|
683
|
+
readonly screen_page_views: Schema.BigIntFromString;
|
|
684
|
+
readonly active_users: Schema.BigIntFromString;
|
|
685
|
+
readonly event_count: Schema.BigIntFromString;
|
|
686
|
+
readonly key_events: Schema.FiniteFromString;
|
|
687
|
+
readonly user_engagement_duration: Schema.FiniteFromString;
|
|
688
|
+
readonly id: Schema.String;
|
|
689
|
+
readonly version: Schema.Date;
|
|
690
|
+
readonly property_id: Schema.String;
|
|
691
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
692
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
693
|
+
type Page = Schema.Schema.Type<typeof PageSchema>;
|
|
694
|
+
export declare const LandingPageSchema: Schema.Struct<{
|
|
695
|
+
readonly landing_page: Schema.String;
|
|
696
|
+
readonly sessions: Schema.BigIntFromString;
|
|
697
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
698
|
+
readonly active_users: Schema.BigIntFromString;
|
|
699
|
+
readonly new_users: Schema.BigIntFromString;
|
|
700
|
+
readonly key_events: Schema.FiniteFromString;
|
|
701
|
+
readonly total_revenue: Schema.FiniteFromString;
|
|
702
|
+
readonly currency_code: Schema.String;
|
|
703
|
+
readonly id: Schema.String;
|
|
704
|
+
readonly version: Schema.Date;
|
|
705
|
+
readonly property_id: Schema.String;
|
|
706
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
707
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
708
|
+
type LandingPage = Schema.Schema.Type<typeof LandingPageSchema>;
|
|
709
|
+
export declare const EventSchema: Schema.Struct<{
|
|
710
|
+
readonly event_name: Schema.String;
|
|
711
|
+
readonly event_count: Schema.BigIntFromString;
|
|
712
|
+
readonly total_users: Schema.BigIntFromString;
|
|
713
|
+
readonly event_value: Schema.FiniteFromString;
|
|
714
|
+
readonly key_events: Schema.FiniteFromString;
|
|
715
|
+
readonly id: Schema.String;
|
|
716
|
+
readonly version: Schema.Date;
|
|
717
|
+
readonly property_id: Schema.String;
|
|
718
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
719
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
720
|
+
type Event = Schema.Schema.Type<typeof EventSchema>;
|
|
721
|
+
export declare const LocationSchema: Schema.Struct<{
|
|
722
|
+
readonly country: Schema.String;
|
|
723
|
+
readonly region: Schema.String;
|
|
724
|
+
readonly city: Schema.String;
|
|
725
|
+
readonly active_users: Schema.BigIntFromString;
|
|
726
|
+
readonly new_users: Schema.BigIntFromString;
|
|
727
|
+
readonly sessions: Schema.BigIntFromString;
|
|
728
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
729
|
+
readonly key_events: Schema.FiniteFromString;
|
|
730
|
+
readonly total_revenue: Schema.FiniteFromString;
|
|
731
|
+
readonly currency_code: Schema.String;
|
|
732
|
+
readonly id: Schema.String;
|
|
733
|
+
readonly version: Schema.Date;
|
|
734
|
+
readonly property_id: Schema.String;
|
|
735
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
736
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
737
|
+
type Location = Schema.Schema.Type<typeof LocationSchema>;
|
|
738
|
+
export declare const DeviceSchema: Schema.Struct<{
|
|
739
|
+
readonly device_category: Schema.String;
|
|
740
|
+
readonly platform: Schema.String;
|
|
741
|
+
readonly operating_system: Schema.String;
|
|
742
|
+
readonly browser: Schema.String;
|
|
743
|
+
readonly active_users: Schema.BigIntFromString;
|
|
744
|
+
readonly new_users: Schema.BigIntFromString;
|
|
745
|
+
readonly sessions: Schema.BigIntFromString;
|
|
746
|
+
readonly engaged_sessions: Schema.BigIntFromString;
|
|
747
|
+
readonly screen_page_views: Schema.BigIntFromString;
|
|
748
|
+
readonly key_events: Schema.FiniteFromString;
|
|
749
|
+
readonly id: Schema.String;
|
|
750
|
+
readonly version: Schema.Date;
|
|
751
|
+
readonly property_id: Schema.String;
|
|
752
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
753
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
754
|
+
type Device = Schema.Schema.Type<typeof DeviceSchema>;
|
|
755
|
+
export declare const EcommerceItemSchema: Schema.Struct<{
|
|
756
|
+
readonly item_id: Schema.String;
|
|
757
|
+
readonly item_name: Schema.String;
|
|
758
|
+
readonly item_brand: Schema.String;
|
|
759
|
+
readonly item_category: Schema.String;
|
|
760
|
+
readonly items_viewed: Schema.BigIntFromString;
|
|
761
|
+
readonly items_added_to_cart: Schema.BigIntFromString;
|
|
762
|
+
readonly items_purchased: Schema.BigIntFromString;
|
|
763
|
+
readonly item_revenue: Schema.FiniteFromString;
|
|
764
|
+
readonly currency_code: Schema.String;
|
|
765
|
+
readonly id: Schema.String;
|
|
766
|
+
readonly version: Schema.Date;
|
|
767
|
+
readonly property_id: Schema.String;
|
|
768
|
+
readonly date: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
769
|
+
}> & import("@useairfoil/connector-kit").Identified<"id">;
|
|
770
|
+
type EcommerceItem = Schema.Schema.Type<typeof EcommerceItemSchema>;
|
|
771
|
+
//#endregion
|
|
772
|
+
export { type DailyOverview, type Device, type EcommerceItem, type Event, auth_d_exports as GoogleAnalyticsAuth, client_d_exports as GoogleAnalyticsClient, connector_d_exports as GoogleAnalyticsConnector, type LandingPage, type Location, type Page, type TrafficSource, type UserAcquisition, manifest };
|
|
773
|
+
//# sourceMappingURL=index.d.mts.map
|