@oursprivacy/platform-sdk 1.60.0 → 1.62.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 +14 -0
- package/README.md +58 -15
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +13 -1
- package/client.js.map +1 -1
- package/client.mjs +13 -1
- package/client.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +2 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -1
- package/core/error.mjs.map +1 -1
- package/internal/utils/log.d.mts +5 -0
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +5 -0
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +62 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +60 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -10
- package/resources/attribution-reports.d.mts +1400 -0
- package/resources/attribution-reports.d.mts.map +1 -0
- package/resources/attribution-reports.d.ts +1400 -0
- package/resources/attribution-reports.d.ts.map +1 -0
- package/resources/attribution-reports.js +116 -0
- package/resources/attribution-reports.js.map +1 -0
- package/resources/attribution-reports.mjs +112 -0
- package/resources/attribution-reports.mjs.map +1 -0
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-settings.d.mts +24 -14
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +24 -14
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +8 -4
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +8 -4
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +84 -93
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +84 -93
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +3 -1
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +3 -1
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +50 -65
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +50 -65
- package/resources/experiments.d.ts.map +1 -1
- package/resources/heatmap-pages.d.mts +51 -28
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +51 -28
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +23 -17
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +23 -17
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/test-events.d.mts +6 -0
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +6 -0
- package/resources/test-events.d.ts.map +1 -1
- package/resources/videos.d.mts +17 -5
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +17 -5
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +2 -2
- package/resources/videos.mjs +2 -2
- package/resources/web-scanners.d.mts +84 -32
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +84 -32
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +34 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +34 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +59 -0
- package/src/core/error.ts +2 -1
- package/src/internal/utils/log.ts +64 -0
- package/src/resources/attribution-reports.ts +2294 -0
- package/src/resources/destinations.ts +9 -2
- package/src/resources/experiment-settings.ts +24 -14
- package/src/resources/experiment-variants.ts +84 -93
- package/src/resources/experiments.ts +50 -65
- package/src/resources/heatmap-pages.ts +53 -28
- package/src/resources/index.ts +23 -0
- package/src/resources/test-events.ts +7 -0
- package/src/resources/videos.ts +243 -5
- package/src/resources/web-scanners.ts +100 -31
- 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
|
@@ -499,8 +499,8 @@ export namespace ExperimentListResponse {
|
|
|
499
499
|
name: string;
|
|
500
500
|
|
|
501
501
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
502
|
+
* Share of the experiment's traffic as a percentage (0–100). Weights across all
|
|
503
|
+
* variants total 100; the control's weight is the remainder after the treatments.
|
|
504
504
|
*/
|
|
505
505
|
weight: number;
|
|
506
506
|
|
|
@@ -550,31 +550,28 @@ export namespace ExperimentListResponse {
|
|
|
550
550
|
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
551
551
|
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
552
552
|
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
553
|
-
* `{key: value}` object
|
|
554
|
-
*
|
|
553
|
+
* `{key: value}` object; the structured `styles` / `attribute` fields carry the
|
|
554
|
+
* same data.
|
|
555
555
|
*/
|
|
556
556
|
value: string;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
560
|
-
*
|
|
561
|
-
* write — see `domModificationInputSchema`.
|
|
559
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
560
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
562
561
|
*/
|
|
563
562
|
attribute?: DomModification.Attribute | null;
|
|
564
563
|
|
|
565
564
|
/**
|
|
566
|
-
* Populated on read for `setStyle` modifications, parsed from `value`.
|
|
567
|
-
*
|
|
568
|
-
* `domModificationInputSchema`.
|
|
565
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. May also be
|
|
566
|
+
* sent instead of a JSON-stringified `value` on write.
|
|
569
567
|
*/
|
|
570
568
|
styles?: Array<DomModification.Style> | null;
|
|
571
569
|
}
|
|
572
570
|
|
|
573
571
|
export namespace DomModification {
|
|
574
572
|
/**
|
|
575
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
576
|
-
*
|
|
577
|
-
* write — see `domModificationInputSchema`.
|
|
573
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
574
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
578
575
|
*/
|
|
579
576
|
export interface Attribute {
|
|
580
577
|
/**
|
|
@@ -1462,8 +1459,8 @@ export namespace ExperimentCreateResponse {
|
|
|
1462
1459
|
name: string;
|
|
1463
1460
|
|
|
1464
1461
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
*
|
|
1462
|
+
* Share of the experiment's traffic as a percentage (0–100). Weights across all
|
|
1463
|
+
* variants total 100; the control's weight is the remainder after the treatments.
|
|
1467
1464
|
*/
|
|
1468
1465
|
weight: number;
|
|
1469
1466
|
|
|
@@ -1513,31 +1510,28 @@ export namespace ExperimentCreateResponse {
|
|
|
1513
1510
|
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
1514
1511
|
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
1515
1512
|
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
1516
|
-
* `{key: value}` object
|
|
1517
|
-
*
|
|
1513
|
+
* `{key: value}` object; the structured `styles` / `attribute` fields carry the
|
|
1514
|
+
* same data.
|
|
1518
1515
|
*/
|
|
1519
1516
|
value: string;
|
|
1520
1517
|
|
|
1521
1518
|
/**
|
|
1522
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
1523
|
-
*
|
|
1524
|
-
* write — see `domModificationInputSchema`.
|
|
1519
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
1520
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
1525
1521
|
*/
|
|
1526
1522
|
attribute?: DomModification.Attribute | null;
|
|
1527
1523
|
|
|
1528
1524
|
/**
|
|
1529
|
-
* Populated on read for `setStyle` modifications, parsed from `value`.
|
|
1530
|
-
*
|
|
1531
|
-
* `domModificationInputSchema`.
|
|
1525
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. May also be
|
|
1526
|
+
* sent instead of a JSON-stringified `value` on write.
|
|
1532
1527
|
*/
|
|
1533
1528
|
styles?: Array<DomModification.Style> | null;
|
|
1534
1529
|
}
|
|
1535
1530
|
|
|
1536
1531
|
export namespace DomModification {
|
|
1537
1532
|
/**
|
|
1538
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
1539
|
-
*
|
|
1540
|
-
* write — see `domModificationInputSchema`.
|
|
1533
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
1534
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
1541
1535
|
*/
|
|
1542
1536
|
export interface Attribute {
|
|
1543
1537
|
/**
|
|
@@ -2425,8 +2419,8 @@ export namespace ExperimentRetrieveResponse {
|
|
|
2425
2419
|
name: string;
|
|
2426
2420
|
|
|
2427
2421
|
/**
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2422
|
+
* Share of the experiment's traffic as a percentage (0–100). Weights across all
|
|
2423
|
+
* variants total 100; the control's weight is the remainder after the treatments.
|
|
2430
2424
|
*/
|
|
2431
2425
|
weight: number;
|
|
2432
2426
|
|
|
@@ -2476,31 +2470,28 @@ export namespace ExperimentRetrieveResponse {
|
|
|
2476
2470
|
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
2477
2471
|
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
2478
2472
|
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
2479
|
-
* `{key: value}` object
|
|
2480
|
-
*
|
|
2473
|
+
* `{key: value}` object; the structured `styles` / `attribute` fields carry the
|
|
2474
|
+
* same data.
|
|
2481
2475
|
*/
|
|
2482
2476
|
value: string;
|
|
2483
2477
|
|
|
2484
2478
|
/**
|
|
2485
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
2486
|
-
*
|
|
2487
|
-
* write — see `domModificationInputSchema`.
|
|
2479
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
2480
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
2488
2481
|
*/
|
|
2489
2482
|
attribute?: DomModification.Attribute | null;
|
|
2490
2483
|
|
|
2491
2484
|
/**
|
|
2492
|
-
* Populated on read for `setStyle` modifications, parsed from `value`.
|
|
2493
|
-
*
|
|
2494
|
-
* `domModificationInputSchema`.
|
|
2485
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. May also be
|
|
2486
|
+
* sent instead of a JSON-stringified `value` on write.
|
|
2495
2487
|
*/
|
|
2496
2488
|
styles?: Array<DomModification.Style> | null;
|
|
2497
2489
|
}
|
|
2498
2490
|
|
|
2499
2491
|
export namespace DomModification {
|
|
2500
2492
|
/**
|
|
2501
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
2502
|
-
*
|
|
2503
|
-
* write — see `domModificationInputSchema`.
|
|
2493
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
2494
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
2504
2495
|
*/
|
|
2505
2496
|
export interface Attribute {
|
|
2506
2497
|
/**
|
|
@@ -3388,8 +3379,8 @@ export namespace ExperimentUpdateResponse {
|
|
|
3388
3379
|
name: string;
|
|
3389
3380
|
|
|
3390
3381
|
/**
|
|
3391
|
-
*
|
|
3392
|
-
*
|
|
3382
|
+
* Share of the experiment's traffic as a percentage (0–100). Weights across all
|
|
3383
|
+
* variants total 100; the control's weight is the remainder after the treatments.
|
|
3393
3384
|
*/
|
|
3394
3385
|
weight: number;
|
|
3395
3386
|
|
|
@@ -3439,31 +3430,28 @@ export namespace ExperimentUpdateResponse {
|
|
|
3439
3430
|
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
3440
3431
|
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
3441
3432
|
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
3442
|
-
* `{key: value}` object
|
|
3443
|
-
*
|
|
3433
|
+
* `{key: value}` object; the structured `styles` / `attribute` fields carry the
|
|
3434
|
+
* same data.
|
|
3444
3435
|
*/
|
|
3445
3436
|
value: string;
|
|
3446
3437
|
|
|
3447
3438
|
/**
|
|
3448
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
3449
|
-
*
|
|
3450
|
-
* write — see `domModificationInputSchema`.
|
|
3439
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
3440
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
3451
3441
|
*/
|
|
3452
3442
|
attribute?: DomModification.Attribute | null;
|
|
3453
3443
|
|
|
3454
3444
|
/**
|
|
3455
|
-
* Populated on read for `setStyle` modifications, parsed from `value`.
|
|
3456
|
-
*
|
|
3457
|
-
* `domModificationInputSchema`.
|
|
3445
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. May also be
|
|
3446
|
+
* sent instead of a JSON-stringified `value` on write.
|
|
3458
3447
|
*/
|
|
3459
3448
|
styles?: Array<DomModification.Style> | null;
|
|
3460
3449
|
}
|
|
3461
3450
|
|
|
3462
3451
|
export namespace DomModification {
|
|
3463
3452
|
/**
|
|
3464
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
3465
|
-
*
|
|
3466
|
-
* write — see `domModificationInputSchema`.
|
|
3453
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
3454
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
3467
3455
|
*/
|
|
3468
3456
|
export interface Attribute {
|
|
3469
3457
|
/**
|
|
@@ -4356,8 +4344,8 @@ export namespace ExperimentDuplicateResponse {
|
|
|
4356
4344
|
name: string;
|
|
4357
4345
|
|
|
4358
4346
|
/**
|
|
4359
|
-
*
|
|
4360
|
-
*
|
|
4347
|
+
* Share of the experiment's traffic as a percentage (0–100). Weights across all
|
|
4348
|
+
* variants total 100; the control's weight is the remainder after the treatments.
|
|
4361
4349
|
*/
|
|
4362
4350
|
weight: number;
|
|
4363
4351
|
|
|
@@ -4407,31 +4395,28 @@ export namespace ExperimentDuplicateResponse {
|
|
|
4407
4395
|
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
4408
4396
|
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
4409
4397
|
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
4410
|
-
* `{key: value}` object
|
|
4411
|
-
*
|
|
4398
|
+
* `{key: value}` object; the structured `styles` / `attribute` fields carry the
|
|
4399
|
+
* same data.
|
|
4412
4400
|
*/
|
|
4413
4401
|
value: string;
|
|
4414
4402
|
|
|
4415
4403
|
/**
|
|
4416
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
4417
|
-
*
|
|
4418
|
-
* write — see `domModificationInputSchema`.
|
|
4404
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
4405
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
4419
4406
|
*/
|
|
4420
4407
|
attribute?: DomModification.Attribute | null;
|
|
4421
4408
|
|
|
4422
4409
|
/**
|
|
4423
|
-
* Populated on read for `setStyle` modifications, parsed from `value`.
|
|
4424
|
-
*
|
|
4425
|
-
* `domModificationInputSchema`.
|
|
4410
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. May also be
|
|
4411
|
+
* sent instead of a JSON-stringified `value` on write.
|
|
4426
4412
|
*/
|
|
4427
4413
|
styles?: Array<DomModification.Style> | null;
|
|
4428
4414
|
}
|
|
4429
4415
|
|
|
4430
4416
|
export namespace DomModification {
|
|
4431
4417
|
/**
|
|
4432
|
-
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
4433
|
-
*
|
|
4434
|
-
* write — see `domModificationInputSchema`.
|
|
4418
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`. May
|
|
4419
|
+
* also be sent instead of a JSON-stringified `value` on write.
|
|
4435
4420
|
*/
|
|
4436
4421
|
export interface Attribute {
|
|
4437
4422
|
/**
|
|
@@ -8,14 +8,15 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
export class HeatmapPages extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List pages with heatmap coverage in a date window, ranked for triage. Each
|
|
11
|
-
* entity is identified by `pageKey
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `GET /rest/v1/heatmap-pages/summary`.
|
|
15
|
-
* depth capped at roughly 10,000 entries;
|
|
16
|
-
* `from`/`to` or add filters rather than
|
|
17
|
-
* calendar days in `YYYY-MM-DD`; the
|
|
18
|
-
* API-key scope or current OAuth user
|
|
11
|
+
* entity is identified by `pageKey` (origin + pathname, query string stripped).
|
|
12
|
+
* Use `queryParameterFilter` to inspect one survey step or other URL parameter
|
|
13
|
+
* value; filtering narrows events without creating separate page rows. Pass the
|
|
14
|
+
* same filter and returned `pageKey` to `GET /rest/v1/heatmap-pages/summary`.
|
|
15
|
+
* Supports cursor pagination, with cursor depth capped at roughly 10,000 entries;
|
|
16
|
+
* if you need pages beyond that, narrow `from`/`to` or add filters rather than
|
|
17
|
+
* paginating further. `from`/`to` are UTC calendar days in `YYYY-MM-DD`; the
|
|
18
|
+
* window must be 60 days or fewer. Requires API-key scope or current OAuth user
|
|
19
|
+
* permission: web-analytics:view
|
|
19
20
|
*/
|
|
20
21
|
list(
|
|
21
22
|
query: HeatmapPageListParams,
|
|
@@ -32,15 +33,20 @@ export class HeatmapPages extends APIResource {
|
|
|
32
33
|
* depth, and up to 5 curated in-app replay URLs in a single payload. Designed as a
|
|
33
34
|
* one-call diagnosis surface for an AI assistant or marketer — answers "what is
|
|
34
35
|
* happening on this page?" without fanning out across five endpoints. `pageKey`
|
|
35
|
-
* comes from `GET /rest/v1/heatmap-pages`.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* `
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
36
|
+
* comes from `GET /rest/v1/heatmap-pages`. A base key includes all query variants
|
|
37
|
+
* regardless of saved splits. Reuse the same `queryParameterFilter` to scope all
|
|
38
|
+
* aggregates and replay links to the selected survey step. Legacy saved split keys
|
|
39
|
+
* remain supported without a filter; combining a query string in `pageKey` with
|
|
40
|
+
* `queryParameterFilter` returns 400. This reads retained historical events
|
|
41
|
+
* containing the parameter, requires no account setting, and does not change
|
|
42
|
+
* web-analytics page paths. The endpoint is identified by query params rather than
|
|
43
|
+
* a path id because heatmap pages are not stored entities; this is a documented
|
|
44
|
+
* derived-read exception. `breakpoint` scopes the bin/scroll aggregations; replays
|
|
45
|
+
* are returned across all breakpoints regardless of `breakpoint` (weighted to
|
|
46
|
+
* cover multiple viewports) so callers can compare devices. `clickGrid` always
|
|
47
|
+
* supplies fine click positions for rendering. `clickBins` derives compatible
|
|
48
|
+
* 64×64 counts from the same grid; its totals must not be added to them. Requires
|
|
49
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
44
50
|
*/
|
|
45
51
|
summary(query: HeatmapPageSummaryParams, options?: RequestOptions): APIPromise<HeatmapPageSummaryResponse> {
|
|
46
52
|
return this._client.get('/rest/v1/heatmap-pages/summary', { query, ...options });
|
|
@@ -59,10 +65,9 @@ export interface HeatmapPageListResponse {
|
|
|
59
65
|
issueScore: number;
|
|
60
66
|
|
|
61
67
|
/**
|
|
62
|
-
* Stable per-page identifier
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* `GET /rest/v1/heatmap-pages/summary` and the heatmap MCP tools.
|
|
68
|
+
* Stable per-page identifier: origin + pathname with the query string stripped.
|
|
69
|
+
* Query-parameter filtering narrows events without changing this key. Use the same
|
|
70
|
+
* filter when requesting the page summary.
|
|
66
71
|
*/
|
|
67
72
|
pageKey: string;
|
|
68
73
|
|
|
@@ -175,7 +180,7 @@ export namespace HeatmapPageSummaryResponse {
|
|
|
175
180
|
/**
|
|
176
181
|
* Viewport bucket the session was recorded under.
|
|
177
182
|
*/
|
|
178
|
-
breakpoint: '
|
|
183
|
+
breakpoint: 'mobile' | 'tablet' | 'desktop';
|
|
179
184
|
|
|
180
185
|
/**
|
|
181
186
|
* Absolute link to view the session replay in the OursPrivacy web app. Opens the
|
|
@@ -216,6 +221,16 @@ export interface HeatmapPageListParams extends CursorParams {
|
|
|
216
221
|
*/
|
|
217
222
|
country?: string;
|
|
218
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Filter heatmap events by one URL query parameter, such as
|
|
226
|
+
* {"name":"p","values":["Contact Details"]}. Send as JSON in an HTTP query string
|
|
227
|
+
* and as an object in MCP. Matches any listed decoded value; values: [] matches
|
|
228
|
+
* any non-empty value. Apply the same filter to the list and summary. Works on
|
|
229
|
+
* retained historical events containing the parameter, requires no account
|
|
230
|
+
* setting, and does not change web-analytics page paths.
|
|
231
|
+
*/
|
|
232
|
+
queryParameterFilter?: string;
|
|
233
|
+
|
|
219
234
|
/**
|
|
220
235
|
* Filter by visitor region (state/province as stored on events).
|
|
221
236
|
*/
|
|
@@ -229,7 +244,7 @@ export interface HeatmapPageListParams extends CursorParams {
|
|
|
229
244
|
/**
|
|
230
245
|
* Sort key. Defaults to `CLICKS` (descending).
|
|
231
246
|
*/
|
|
232
|
-
sortBy?: 'CLICKS' | '
|
|
247
|
+
sortBy?: 'CLICKS' | 'RAGE_RATE' | 'DEAD_RATE' | 'ISSUE_SCORE';
|
|
233
248
|
|
|
234
249
|
/**
|
|
235
250
|
* Sort direction. Defaults to `DESC`.
|
|
@@ -243,7 +258,7 @@ export interface HeatmapPageSummaryParams {
|
|
|
243
258
|
* computed for. Replays are returned for all breakpoints regardless of this value
|
|
244
259
|
* so callers can compare across devices.
|
|
245
260
|
*/
|
|
246
|
-
breakpoint: '
|
|
261
|
+
breakpoint: 'mobile' | 'tablet' | 'desktop';
|
|
247
262
|
|
|
248
263
|
/**
|
|
249
264
|
* Inclusive lower bound of the heatmap window, as a UTC calendar day in
|
|
@@ -253,10 +268,10 @@ export interface HeatmapPageSummaryParams {
|
|
|
253
268
|
from: string;
|
|
254
269
|
|
|
255
270
|
/**
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
271
|
+
* Base page identifier returned by the heatmap pages list. Pass it unchanged,
|
|
272
|
+
* together with the same queryParameterFilter to inspect the same survey step. A
|
|
273
|
+
* legacy saved split key is accepted only without queryParameterFilter; combining
|
|
274
|
+
* them returns 400.
|
|
260
275
|
*/
|
|
261
276
|
pageKey: string;
|
|
262
277
|
|
|
@@ -277,6 +292,16 @@ export interface HeatmapPageSummaryParams {
|
|
|
277
292
|
*/
|
|
278
293
|
country?: string;
|
|
279
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Filter heatmap events by one URL query parameter, such as
|
|
297
|
+
* {"name":"p","values":["Contact Details"]}. Send as JSON in an HTTP query string
|
|
298
|
+
* and as an object in MCP. Matches any listed decoded value; values: [] matches
|
|
299
|
+
* any non-empty value. Apply the same filter to the list and summary. Works on
|
|
300
|
+
* retained historical events containing the parameter, requires no account
|
|
301
|
+
* setting, and does not change web-analytics page paths.
|
|
302
|
+
*/
|
|
303
|
+
queryParameterFilter?: string;
|
|
304
|
+
|
|
280
305
|
/**
|
|
281
306
|
* Filter by visitor region (state/province as stored on events).
|
|
282
307
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -29,6 +29,27 @@ export {
|
|
|
29
29
|
type AttributionAudienceConversionParams,
|
|
30
30
|
type AttributionUtmComparisonParams,
|
|
31
31
|
} from './attribution';
|
|
32
|
+
export {
|
|
33
|
+
AttributionReports,
|
|
34
|
+
type AttributionReportListResponse,
|
|
35
|
+
type AttributionReportCreateResponse,
|
|
36
|
+
type AttributionReportRetrieveResponse,
|
|
37
|
+
type AttributionReportUpdateResponse,
|
|
38
|
+
type AttributionReportDeleteResponse,
|
|
39
|
+
type AttributionReportDuplicateResponse,
|
|
40
|
+
type AttributionReportPreviewResponse,
|
|
41
|
+
type AttributionReportVisitorsResponse,
|
|
42
|
+
type AttributionReportInsightsResponse,
|
|
43
|
+
type AttributionReportListParams,
|
|
44
|
+
type AttributionReportCreateParams,
|
|
45
|
+
type AttributionReportUpdateParams,
|
|
46
|
+
type AttributionReportDeleteParams,
|
|
47
|
+
type AttributionReportDuplicateParams,
|
|
48
|
+
type AttributionReportPreviewParams,
|
|
49
|
+
type AttributionReportVisitorsParams,
|
|
50
|
+
type AttributionReportInsightsParams,
|
|
51
|
+
type AttributionReportListResponsesCursor,
|
|
52
|
+
} from './attribution-reports';
|
|
32
53
|
export {
|
|
33
54
|
AudienceConversionReports,
|
|
34
55
|
type AudienceConversionReportListResponse,
|
|
@@ -556,6 +577,7 @@ export {
|
|
|
556
577
|
type WebScannerTargetedScanResponse,
|
|
557
578
|
type WebScannerVerificationRunResponse,
|
|
558
579
|
type WebScannerVerificationRunsResponse,
|
|
580
|
+
type WebScannerRunsResponse,
|
|
559
581
|
type WebScannerFindingsResponse,
|
|
560
582
|
type WebScannerCookiesResponse,
|
|
561
583
|
type WebScannerSummaryResponse,
|
|
@@ -567,6 +589,7 @@ export {
|
|
|
567
589
|
type WebScannerTargetedScanParams,
|
|
568
590
|
type WebScannerVerificationRunParams,
|
|
569
591
|
type WebScannerVerificationRunsParams,
|
|
592
|
+
type WebScannerRunsParams,
|
|
570
593
|
type WebScannerFindingsParams,
|
|
571
594
|
type WebScannerCookiesParams,
|
|
572
595
|
type WebScannerSummaryParams,
|
|
@@ -331,6 +331,13 @@ export namespace TestEventCreateParams {
|
|
|
331
331
|
*/
|
|
332
332
|
adset_id?: string | null;
|
|
333
333
|
|
|
334
|
+
/**
|
|
335
|
+
* The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
|
|
336
|
+
* script when a visitor lands from an affiliate link. Web-only. Ex:
|
|
337
|
+
* id_hash=abc&id_user=123&aff_uid=45
|
|
338
|
+
*/
|
|
339
|
+
affiliatly_v3?: string | null;
|
|
340
|
+
|
|
334
341
|
/**
|
|
335
342
|
* The AppLovin alart query parameter. Ex: alart123
|
|
336
343
|
*/
|