@oursprivacy/platform-sdk 1.36.0 → 1.38.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/CHANGELOG.md +16 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/attribution.d.mts +412 -0
- package/resources/attribution.d.mts.map +1 -0
- package/resources/attribution.d.ts +412 -0
- package/resources/attribution.d.ts.map +1 -0
- package/resources/attribution.js +64 -0
- package/resources/attribution.js.map +1 -0
- package/resources/attribution.mjs +60 -0
- package/resources/attribution.mjs.map +1 -0
- package/resources/destinations.d.mts +45 -1
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -1
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +8 -0
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +8 -0
- package/resources/destinations.mjs.map +1 -1
- package/resources/funnels.d.mts +194 -0
- package/resources/funnels.d.mts.map +1 -0
- package/resources/funnels.d.ts +194 -0
- package/resources/funnels.d.ts.map +1 -0
- package/resources/funnels.js +37 -0
- package/resources/funnels.js.map +1 -0
- package/resources/funnels.mjs +33 -0
- package/resources/funnels.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +48 -0
- package/src/resources/attribution.ts +595 -0
- package/src/resources/destinations.ts +58 -0
- package/src/resources/funnels.ts +285 -0
- package/src/resources/index.ts +21 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Attribution extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the top-15 values for each UTM dimension (source, medium, campaign,
|
|
7
|
+
* content, term, name) and referring domain attributed to the conversion event on
|
|
8
|
+
* a first-touch basis for the given date window. Use `from`/`to` to set the
|
|
9
|
+
* analysis window (max 60 days). Optionally filter to a specific UTM combo with
|
|
10
|
+
* `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
|
|
11
|
+
* performed the specified `eventName` and were attributed to each UTM value.
|
|
12
|
+
* Requires scope: web-analytics:view
|
|
13
|
+
*/
|
|
14
|
+
initial(query: AttributionInitialParams, options?: RequestOptions): APIPromise<AttributionInitialResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the top-15 values for each UTM dimension (source, medium, campaign,
|
|
17
|
+
* content, term, name) and referring domain attributed to the conversion event on
|
|
18
|
+
* a last-touch basis for the given date window. Use `from`/`to` to set the
|
|
19
|
+
* analysis window (max 60 days). The counts represent unique visitors who
|
|
20
|
+
* performed the specified `eventName` and were attributed to each UTM value on
|
|
21
|
+
* their most recent session. Requires scope: web-analytics:view
|
|
22
|
+
*/
|
|
23
|
+
lastTouch(query: AttributionLastTouchParams, options?: RequestOptions): APIPromise<AttributionLastTouchResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Multi-touch conversion attribution: returns a source → medium → campaign
|
|
26
|
+
* hierarchy with attributed converter credits distributed according to the
|
|
27
|
+
* selected `attributionModel`. Scoped to all web sources by default; optionally
|
|
28
|
+
* narrow to a single web source via `webSourceId`. Date range is capped at 31
|
|
29
|
+
* days; lookback window is capped at 60 days. Requires scope: web-analytics:view
|
|
30
|
+
*/
|
|
31
|
+
conversion(query: AttributionConversionParams, options?: RequestOptions): APIPromise<AttributionConversionResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Audience performance conversion report: returns a summary of converters and
|
|
34
|
+
* conversion rate for the selected event and date window, a per-day timeseries,
|
|
35
|
+
* and a UTM source/medium/campaign breakdown. Optionally compare against the
|
|
36
|
+
* preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
|
|
37
|
+
* range is capped at 60 days. Requires scope: web-analytics:view
|
|
38
|
+
*/
|
|
39
|
+
audienceConversion(query: AttributionAudienceConversionParams, options?: RequestOptions): APIPromise<AttributionAudienceConversionResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Compare up to 5 UTM dimension combinations side-by-side for a single conversion
|
|
42
|
+
* event. Each combo returns the unique visitors, sessions, total events, and
|
|
43
|
+
* derived conversion rate for that UTM filter within the window. Requires both
|
|
44
|
+
* `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
|
|
45
|
+
* is capped at 31 days. Pass `combos` as a single JSON-encoded array:
|
|
46
|
+
* `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
|
|
47
|
+
* Requires scope: web-analytics:view
|
|
48
|
+
*/
|
|
49
|
+
utmComparison(query: AttributionUtmComparisonParams, options?: RequestOptions): APIPromise<AttributionUtmComparisonResponse>;
|
|
50
|
+
}
|
|
51
|
+
export interface AttributionInitialResponse {
|
|
52
|
+
initial_referring_domain: Array<AttributionInitialResponse.InitialReferringDomain>;
|
|
53
|
+
initial_utm_campaign: Array<AttributionInitialResponse.InitialUtmCampaign>;
|
|
54
|
+
initial_utm_content: Array<AttributionInitialResponse.InitialUtmContent>;
|
|
55
|
+
initial_utm_medium: Array<AttributionInitialResponse.InitialUtmMedium>;
|
|
56
|
+
initial_utm_name: Array<AttributionInitialResponse.InitialUtmName>;
|
|
57
|
+
initial_utm_source: Array<AttributionInitialResponse.InitialUtmSource>;
|
|
58
|
+
initial_utm_term: Array<AttributionInitialResponse.InitialUtmTerm>;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace AttributionInitialResponse {
|
|
61
|
+
interface InitialReferringDomain {
|
|
62
|
+
count: number;
|
|
63
|
+
value: string;
|
|
64
|
+
}
|
|
65
|
+
interface InitialUtmCampaign {
|
|
66
|
+
count: number;
|
|
67
|
+
value: string;
|
|
68
|
+
}
|
|
69
|
+
interface InitialUtmContent {
|
|
70
|
+
count: number;
|
|
71
|
+
value: string;
|
|
72
|
+
}
|
|
73
|
+
interface InitialUtmMedium {
|
|
74
|
+
count: number;
|
|
75
|
+
value: string;
|
|
76
|
+
}
|
|
77
|
+
interface InitialUtmName {
|
|
78
|
+
count: number;
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
81
|
+
interface InitialUtmSource {
|
|
82
|
+
count: number;
|
|
83
|
+
value: string;
|
|
84
|
+
}
|
|
85
|
+
interface InitialUtmTerm {
|
|
86
|
+
count: number;
|
|
87
|
+
value: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export interface AttributionLastTouchResponse {
|
|
91
|
+
referring_domain: Array<AttributionLastTouchResponse.ReferringDomain>;
|
|
92
|
+
utm_campaign: Array<AttributionLastTouchResponse.UtmCampaign>;
|
|
93
|
+
utm_content: Array<AttributionLastTouchResponse.UtmContent>;
|
|
94
|
+
utm_medium: Array<AttributionLastTouchResponse.UtmMedium>;
|
|
95
|
+
utm_name: Array<AttributionLastTouchResponse.UtmName>;
|
|
96
|
+
utm_source: Array<AttributionLastTouchResponse.UtmSource>;
|
|
97
|
+
utm_term: Array<AttributionLastTouchResponse.UtmTerm>;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace AttributionLastTouchResponse {
|
|
100
|
+
interface ReferringDomain {
|
|
101
|
+
count: number;
|
|
102
|
+
value: string;
|
|
103
|
+
}
|
|
104
|
+
interface UtmCampaign {
|
|
105
|
+
count: number;
|
|
106
|
+
value: string;
|
|
107
|
+
}
|
|
108
|
+
interface UtmContent {
|
|
109
|
+
count: number;
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
interface UtmMedium {
|
|
113
|
+
count: number;
|
|
114
|
+
value: string;
|
|
115
|
+
}
|
|
116
|
+
interface UtmName {
|
|
117
|
+
count: number;
|
|
118
|
+
value: string;
|
|
119
|
+
}
|
|
120
|
+
interface UtmSource {
|
|
121
|
+
count: number;
|
|
122
|
+
value: string;
|
|
123
|
+
}
|
|
124
|
+
interface UtmTerm {
|
|
125
|
+
count: number;
|
|
126
|
+
value: string;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export interface AttributionConversionResponse {
|
|
130
|
+
isTruncated: boolean;
|
|
131
|
+
maxLeafRows: number;
|
|
132
|
+
nodes: Array<AttributionConversionResponse.Node>;
|
|
133
|
+
summary: AttributionConversionResponse.Summary;
|
|
134
|
+
totalLeafRows: number;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace AttributionConversionResponse {
|
|
137
|
+
interface Node {
|
|
138
|
+
attributedConverterCredit: number;
|
|
139
|
+
converters: number;
|
|
140
|
+
level: 'SOURCE' | 'MEDIUM' | 'CAMPAIGN';
|
|
141
|
+
sessions: number;
|
|
142
|
+
source: string;
|
|
143
|
+
campaign?: string | null;
|
|
144
|
+
medium?: string | null;
|
|
145
|
+
}
|
|
146
|
+
interface Summary {
|
|
147
|
+
attributedConverters: number;
|
|
148
|
+
scopeConverters: number;
|
|
149
|
+
totalEventConverters: number;
|
|
150
|
+
totalSessions: number;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
export interface AttributionAudienceConversionResponse {
|
|
154
|
+
breakdown: Array<AttributionAudienceConversionResponse.Breakdown>;
|
|
155
|
+
summary: AttributionAudienceConversionResponse.Summary;
|
|
156
|
+
timeseries: Array<AttributionAudienceConversionResponse.Timesery>;
|
|
157
|
+
previousSummary?: AttributionAudienceConversionResponse.PreviousSummary | null;
|
|
158
|
+
}
|
|
159
|
+
export declare namespace AttributionAudienceConversionResponse {
|
|
160
|
+
interface Breakdown {
|
|
161
|
+
campaign: string;
|
|
162
|
+
conversions: number;
|
|
163
|
+
converters: number;
|
|
164
|
+
medium: string;
|
|
165
|
+
source: string;
|
|
166
|
+
totalValue: number;
|
|
167
|
+
}
|
|
168
|
+
interface Summary {
|
|
169
|
+
audienceSize: number;
|
|
170
|
+
avgValuePerConversion: number;
|
|
171
|
+
avgValuePerConvertingVisitor: number;
|
|
172
|
+
conversionRate: number;
|
|
173
|
+
conversions: number;
|
|
174
|
+
converters: number;
|
|
175
|
+
totalValue: number;
|
|
176
|
+
}
|
|
177
|
+
interface Timesery {
|
|
178
|
+
conversions: number;
|
|
179
|
+
date: string;
|
|
180
|
+
totalValue: number;
|
|
181
|
+
}
|
|
182
|
+
interface PreviousSummary {
|
|
183
|
+
audienceSize: number;
|
|
184
|
+
avgValuePerConversion: number;
|
|
185
|
+
avgValuePerConvertingVisitor: number;
|
|
186
|
+
conversionRate: number;
|
|
187
|
+
conversions: number;
|
|
188
|
+
converters: number;
|
|
189
|
+
totalValue: number;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export interface AttributionUtmComparisonResponse {
|
|
193
|
+
/**
|
|
194
|
+
* Per-combo metrics in the same order as the input `combos` array.
|
|
195
|
+
*/
|
|
196
|
+
combos: Array<AttributionUtmComparisonResponse.Combo>;
|
|
197
|
+
/**
|
|
198
|
+
* The conversion event that was analyzed.
|
|
199
|
+
*/
|
|
200
|
+
eventName: string;
|
|
201
|
+
/**
|
|
202
|
+
* The requested date range as returned by the server.
|
|
203
|
+
*/
|
|
204
|
+
range: AttributionUtmComparisonResponse.Range;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace AttributionUtmComparisonResponse {
|
|
207
|
+
interface Combo {
|
|
208
|
+
combo: Combo.Combo;
|
|
209
|
+
conversionRate: number;
|
|
210
|
+
events: number;
|
|
211
|
+
sessions: number;
|
|
212
|
+
visitors: number;
|
|
213
|
+
}
|
|
214
|
+
namespace Combo {
|
|
215
|
+
interface Combo {
|
|
216
|
+
utmCampaign?: string | null;
|
|
217
|
+
utmContent?: string | null;
|
|
218
|
+
utmMedium?: string | null;
|
|
219
|
+
utmSource?: string | null;
|
|
220
|
+
utmTerm?: string | null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The requested date range as returned by the server.
|
|
225
|
+
*/
|
|
226
|
+
interface Range {
|
|
227
|
+
from: string;
|
|
228
|
+
to: string;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export interface AttributionInitialParams {
|
|
232
|
+
/**
|
|
233
|
+
* Conversion event to count. Must be a selectable conversion event.
|
|
234
|
+
*/
|
|
235
|
+
eventName: string;
|
|
236
|
+
/**
|
|
237
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
238
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
239
|
+
* fewer.
|
|
240
|
+
*/
|
|
241
|
+
from: string;
|
|
242
|
+
/**
|
|
243
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
244
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
245
|
+
* fewer.
|
|
246
|
+
*/
|
|
247
|
+
to: string;
|
|
248
|
+
/**
|
|
249
|
+
* Attribution type for UTM filter matching. Defaults to `INITIAL`.
|
|
250
|
+
*/
|
|
251
|
+
attributionType?: 'INITIAL' | 'LAST_TOUCH';
|
|
252
|
+
/**
|
|
253
|
+
* Filter by UTM campaign.
|
|
254
|
+
*/
|
|
255
|
+
utmCampaign?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Filter by UTM content.
|
|
258
|
+
*/
|
|
259
|
+
utmContent?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Filter by UTM medium.
|
|
262
|
+
*/
|
|
263
|
+
utmMedium?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Filter by UTM name.
|
|
266
|
+
*/
|
|
267
|
+
utmName?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Filter by UTM source.
|
|
270
|
+
*/
|
|
271
|
+
utmSource?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Filter by UTM term.
|
|
274
|
+
*/
|
|
275
|
+
utmTerm?: string;
|
|
276
|
+
}
|
|
277
|
+
export interface AttributionLastTouchParams {
|
|
278
|
+
/**
|
|
279
|
+
* Conversion event to count. Must be a selectable conversion event.
|
|
280
|
+
*/
|
|
281
|
+
eventName: string;
|
|
282
|
+
/**
|
|
283
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
284
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
285
|
+
* fewer.
|
|
286
|
+
*/
|
|
287
|
+
from: string;
|
|
288
|
+
/**
|
|
289
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
290
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
291
|
+
* fewer.
|
|
292
|
+
*/
|
|
293
|
+
to: string;
|
|
294
|
+
/**
|
|
295
|
+
* Attribution type for UTM filter matching. Defaults to `LAST_TOUCH`.
|
|
296
|
+
*/
|
|
297
|
+
attributionType?: 'INITIAL' | 'LAST_TOUCH';
|
|
298
|
+
/**
|
|
299
|
+
* Filter by UTM campaign.
|
|
300
|
+
*/
|
|
301
|
+
utmCampaign?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Filter by UTM content.
|
|
304
|
+
*/
|
|
305
|
+
utmContent?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Filter by UTM medium.
|
|
308
|
+
*/
|
|
309
|
+
utmMedium?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Filter by UTM name.
|
|
312
|
+
*/
|
|
313
|
+
utmName?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Filter by UTM source.
|
|
316
|
+
*/
|
|
317
|
+
utmSource?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Filter by UTM term.
|
|
320
|
+
*/
|
|
321
|
+
utmTerm?: string;
|
|
322
|
+
}
|
|
323
|
+
export interface AttributionConversionParams {
|
|
324
|
+
/**
|
|
325
|
+
* Attribution model to apply to multi-touch conversion paths.
|
|
326
|
+
*/
|
|
327
|
+
attributionModel: 'FIRST_TOUCH' | 'LAST_TOUCH' | 'LINEAR' | 'POSITION_BASED';
|
|
328
|
+
/**
|
|
329
|
+
* Conversion event to attribute. Must be a selectable conversion event.
|
|
330
|
+
*/
|
|
331
|
+
eventName: string;
|
|
332
|
+
/**
|
|
333
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
334
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 31 days or
|
|
335
|
+
* fewer.
|
|
336
|
+
*/
|
|
337
|
+
from: string;
|
|
338
|
+
/**
|
|
339
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
340
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 31 days or
|
|
341
|
+
* fewer.
|
|
342
|
+
*/
|
|
343
|
+
to: string;
|
|
344
|
+
/**
|
|
345
|
+
* Maximum number of leaf-level attribution rows to return. Defaults to 1000.
|
|
346
|
+
*/
|
|
347
|
+
limit?: number;
|
|
348
|
+
/**
|
|
349
|
+
* How far back before each conversion to consider touchpoints. Capped at 60 days
|
|
350
|
+
* for this report. Defaults to `THIRTY_DAYS`.
|
|
351
|
+
*/
|
|
352
|
+
lookbackWindow?: 'SEVEN_DAYS' | 'FOURTEEN_DAYS' | 'THIRTY_DAYS' | 'SIXTY_DAYS' | 'NINETY_DAYS' | 'ONE_HUNDRED_EIGHTY_DAYS' | 'UNLIMITED';
|
|
353
|
+
/**
|
|
354
|
+
* Scope to a single web source by id, or omit for all sources (account-wide).
|
|
355
|
+
*/
|
|
356
|
+
webSourceId?: string;
|
|
357
|
+
}
|
|
358
|
+
export interface AttributionAudienceConversionParams {
|
|
359
|
+
/**
|
|
360
|
+
* Conversion event to analyze.
|
|
361
|
+
*/
|
|
362
|
+
eventName: string;
|
|
363
|
+
/**
|
|
364
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
365
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
366
|
+
* fewer.
|
|
367
|
+
*/
|
|
368
|
+
from: string;
|
|
369
|
+
/**
|
|
370
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
371
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 60 days or
|
|
372
|
+
* fewer.
|
|
373
|
+
*/
|
|
374
|
+
to: string;
|
|
375
|
+
/**
|
|
376
|
+
* Attribution window: `IN_RANGE` or a number of lookback days (e.g. `7`, `30`).
|
|
377
|
+
* Defaults to `IN_RANGE`.
|
|
378
|
+
*/
|
|
379
|
+
attributionWindow?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Event property to sum as conversion value.
|
|
382
|
+
*/
|
|
383
|
+
valueProperty?: string;
|
|
384
|
+
}
|
|
385
|
+
export interface AttributionUtmComparisonParams {
|
|
386
|
+
/**
|
|
387
|
+
* JSON-encoded array of UTM dimension combos to compare side-by-side (min 1, max
|
|
388
|
+
* 5). Each combo is an object with optional `utmSource`, `utmMedium`,
|
|
389
|
+
* `utmCampaign`, `utmContent`, `utmTerm` fields.
|
|
390
|
+
*/
|
|
391
|
+
combos: string;
|
|
392
|
+
/**
|
|
393
|
+
* Conversion event to compare across UTM combos.
|
|
394
|
+
*/
|
|
395
|
+
eventName: string;
|
|
396
|
+
/**
|
|
397
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
398
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 31 days or
|
|
399
|
+
* fewer.
|
|
400
|
+
*/
|
|
401
|
+
from: string;
|
|
402
|
+
/**
|
|
403
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
404
|
+
* `YYYY-MM-DD` format. The window between `from` and `to` must be 31 days or
|
|
405
|
+
* fewer.
|
|
406
|
+
*/
|
|
407
|
+
to: string;
|
|
408
|
+
}
|
|
409
|
+
export declare namespace Attribution {
|
|
410
|
+
export { type AttributionInitialResponse as AttributionInitialResponse, type AttributionLastTouchResponse as AttributionLastTouchResponse, type AttributionConversionResponse as AttributionConversionResponse, type AttributionAudienceConversionResponse as AttributionAudienceConversionResponse, type AttributionUtmComparisonResponse as AttributionUtmComparisonResponse, type AttributionInitialParams as AttributionInitialParams, type AttributionLastTouchParams as AttributionLastTouchParams, type AttributionConversionParams as AttributionConversionParams, type AttributionAudienceConversionParams as AttributionAudienceConversionParams, type AttributionUtmComparisonParams as AttributionUtmComparisonParams, };
|
|
411
|
+
}
|
|
412
|
+
//# sourceMappingURL=attribution.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribution.d.mts","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1G;;;;;;;OAOG;IACH,SAAS,CACP,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;OAMG;IACH,UAAU,CACR,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;OAMG;IACH,kBAAkB,CAChB,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;IAIpD;;;;;;;;OAQG;IACH,aAAa,CACX,KAAK,EAAE,8BAA8B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,WAAW,0BAA0B;IACzC,w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