@oursprivacy/platform-sdk 1.46.0 → 1.47.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 +7 -0
- package/client.d.mts +20 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -11
- package/client.d.ts.map +1 -1
- package/client.js +11 -2
- package/client.js.map +1 -1
- package/client.mjs +11 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/attribution.d.mts +9 -1
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +9 -1
- package/resources/attribution.d.ts.map +1 -1
- package/resources/consent-settings.d.mts +48 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +48 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +38 -0
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +38 -0
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +38 -0
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +38 -0
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/data-governance.d.mts +5 -5
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +5 -5
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -27
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -27
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +4 -2
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +4 -2
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +677 -102
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +677 -102
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +32 -2
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +32 -2
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +172 -22
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +172 -22
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -2
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -2
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +42 -14
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +42 -14
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +11 -7
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +11 -7
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +2 -2
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +2 -2
- package/resources/mappings.d.ts.map +1 -1
- package/resources/session-replays.d.mts +91 -0
- package/resources/session-replays.d.mts.map +1 -0
- package/resources/session-replays.d.ts +91 -0
- package/resources/session-replays.d.ts.map +1 -0
- package/resources/session-replays.js +24 -0
- package/resources/session-replays.js.map +1 -0
- package/resources/session-replays.mjs +20 -0
- package/resources/session-replays.mjs.map +1 -0
- package/resources/short-links.d.mts +138 -37
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +138 -37
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +27 -12
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +27 -12
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +10 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +10 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +2 -2
- package/resources/tag-manager-tags.d.ts +2 -2
- package/resources/tag-manager-tags.js +2 -2
- package/resources/tag-manager-tags.mjs +2 -2
- package/resources/tag-manager-triggers.d.mts +18 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +18 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/translation-widgets.d.mts +62 -0
- package/resources/translation-widgets.d.mts.map +1 -0
- package/resources/translation-widgets.d.ts +62 -0
- package/resources/translation-widgets.d.ts.map +1 -0
- package/resources/translation-widgets.js +18 -0
- package/resources/translation-widgets.js.map +1 -0
- package/resources/translation-widgets.mjs +14 -0
- package/resources/translation-widgets.mjs.map +1 -0
- package/resources/video-channels.d.mts +17 -17
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +17 -17
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +17 -16
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +17 -16
- package/resources/video-channels.mjs.map +1 -1
- package/resources/web-analytics.d.mts +345 -0
- package/resources/web-analytics.d.mts.map +1 -0
- package/resources/web-analytics.d.ts +345 -0
- package/resources/web-analytics.d.ts.map +1 -0
- package/resources/web-analytics.js +61 -0
- package/resources/web-analytics.js.map +1 -0
- package/resources/web-analytics.mjs +57 -0
- package/resources/web-analytics.mjs.map +1 -0
- package/resources/web-scanners.d.mts +314 -14
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +314 -14
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +139 -13
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +139 -13
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +116 -19
- package/src/resources/attribution.ts +11 -1
- package/src/resources/consent-settings.ts +56 -0
- package/src/resources/conversion-journey-summaries.ts +38 -0
- package/src/resources/data-governance.ts +5 -5
- package/src/resources/destinations.ts +18 -115
- package/src/resources/experiment-variants.ts +4 -2
- package/src/resources/experiments.ts +812 -101
- package/src/resources/funnels.ts +276 -21
- package/src/resources/heatmap-pages.ts +49 -14
- package/src/resources/index.ts +47 -3
- package/src/resources/mappings.ts +2 -2
- package/src/resources/session-replays.ts +138 -0
- package/src/resources/short-links.ts +164 -36
- package/src/resources/sources.ts +11 -0
- package/src/resources/tag-manager-tags.ts +2 -2
- package/src/resources/tag-manager-triggers.ts +18 -1
- package/src/resources/translation-widgets.ts +97 -0
- package/src/resources/video-channels.ts +19 -18
- package/src/resources/web-analytics.ts +494 -0
- package/src/resources/web-scanners.ts +443 -13
- 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/src/resources/funnels.ts
CHANGED
|
@@ -51,13 +51,22 @@ export class Funnels extends APIResource {
|
|
|
51
51
|
return this._client.delete(path`/rest/v1/funnels/${id}`, options);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Duplicate a funnel configuration in the same account. The copy keeps the funnel
|
|
56
|
+
* steps and settings, receives a new ID, and is named `Copy of …`. Requires scope:
|
|
57
|
+
* web-analytics:write
|
|
58
|
+
*/
|
|
59
|
+
duplicate(id: string, options?: RequestOptions): APIPromise<FunnelDuplicateResponse> {
|
|
60
|
+
return this._client.post(path`/rest/v1/funnels/${id}/duplicate`, options);
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
/**
|
|
55
64
|
* Compute funnel step analytics for a funnel over a date window. Returns per-step
|
|
56
65
|
* visitor counts, conversion rates, drop-off rates, average time to next step, and
|
|
57
66
|
* sample session IDs for replay. Results are computed on demand from event data at
|
|
58
67
|
* request time, so any date window within the supported range returns current
|
|
59
|
-
* results. `to` must be on or after `from`, and the window may span at most 31
|
|
60
|
-
* including both endpoints. Requires scope: web-analytics:view
|
|
68
|
+
* results. `to` must be on or after `from`, and the window may span at most 31
|
|
69
|
+
* days including both endpoints. Requires scope: web-analytics:view
|
|
61
70
|
*/
|
|
62
71
|
results(
|
|
63
72
|
id: string,
|
|
@@ -148,7 +157,7 @@ export namespace FunnelListResponse {
|
|
|
148
157
|
*/
|
|
149
158
|
AND?: Array<unknown> | null;
|
|
150
159
|
|
|
151
|
-
condition?: Logic.Condition;
|
|
160
|
+
condition?: Logic.Condition | null;
|
|
152
161
|
|
|
153
162
|
/**
|
|
154
163
|
* Negates a single child logic node.
|
|
@@ -243,7 +252,7 @@ export namespace FunnelListResponse {
|
|
|
243
252
|
*/
|
|
244
253
|
AND?: Array<unknown> | null;
|
|
245
254
|
|
|
246
|
-
condition?: GlobalLogic.Condition;
|
|
255
|
+
condition?: GlobalLogic.Condition | null;
|
|
247
256
|
|
|
248
257
|
/**
|
|
249
258
|
* Negates a single child logic node.
|
|
@@ -328,9 +337,6 @@ export namespace FunnelListResponse {
|
|
|
328
337
|
}
|
|
329
338
|
}
|
|
330
339
|
|
|
331
|
-
/**
|
|
332
|
-
* Created funnel configuration
|
|
333
|
-
*/
|
|
334
340
|
export interface FunnelCreateResponse {
|
|
335
341
|
createdAt: string;
|
|
336
342
|
|
|
@@ -403,7 +409,7 @@ export namespace FunnelCreateResponse {
|
|
|
403
409
|
*/
|
|
404
410
|
AND?: Array<unknown> | null;
|
|
405
411
|
|
|
406
|
-
condition?: Logic.Condition;
|
|
412
|
+
condition?: Logic.Condition | null;
|
|
407
413
|
|
|
408
414
|
/**
|
|
409
415
|
* Negates a single child logic node.
|
|
@@ -498,7 +504,7 @@ export namespace FunnelCreateResponse {
|
|
|
498
504
|
*/
|
|
499
505
|
AND?: Array<unknown> | null;
|
|
500
506
|
|
|
501
|
-
condition?: GlobalLogic.Condition;
|
|
507
|
+
condition?: GlobalLogic.Condition | null;
|
|
502
508
|
|
|
503
509
|
/**
|
|
504
510
|
* Negates a single child logic node.
|
|
@@ -657,7 +663,7 @@ export namespace FunnelRetrieveResponse {
|
|
|
657
663
|
*/
|
|
658
664
|
AND?: Array<unknown> | null;
|
|
659
665
|
|
|
660
|
-
condition?: Logic.Condition;
|
|
666
|
+
condition?: Logic.Condition | null;
|
|
661
667
|
|
|
662
668
|
/**
|
|
663
669
|
* Negates a single child logic node.
|
|
@@ -752,7 +758,7 @@ export namespace FunnelRetrieveResponse {
|
|
|
752
758
|
*/
|
|
753
759
|
AND?: Array<unknown> | null;
|
|
754
760
|
|
|
755
|
-
condition?: GlobalLogic.Condition;
|
|
761
|
+
condition?: GlobalLogic.Condition | null;
|
|
756
762
|
|
|
757
763
|
/**
|
|
758
764
|
* Negates a single child logic node.
|
|
@@ -836,9 +842,6 @@ export namespace FunnelRetrieveResponse {
|
|
|
836
842
|
}
|
|
837
843
|
}
|
|
838
844
|
|
|
839
|
-
/**
|
|
840
|
-
* Updated funnel configuration
|
|
841
|
-
*/
|
|
842
845
|
export interface FunnelUpdateResponse {
|
|
843
846
|
createdAt: string;
|
|
844
847
|
|
|
@@ -911,7 +914,7 @@ export namespace FunnelUpdateResponse {
|
|
|
911
914
|
*/
|
|
912
915
|
AND?: Array<unknown> | null;
|
|
913
916
|
|
|
914
|
-
condition?: Logic.Condition;
|
|
917
|
+
condition?: Logic.Condition | null;
|
|
915
918
|
|
|
916
919
|
/**
|
|
917
920
|
* Negates a single child logic node.
|
|
@@ -1006,7 +1009,7 @@ export namespace FunnelUpdateResponse {
|
|
|
1006
1009
|
*/
|
|
1007
1010
|
AND?: Array<unknown> | null;
|
|
1008
1011
|
|
|
1009
|
-
condition?: GlobalLogic.Condition;
|
|
1012
|
+
condition?: GlobalLogic.Condition | null;
|
|
1010
1013
|
|
|
1011
1014
|
/**
|
|
1012
1015
|
* Negates a single child logic node.
|
|
@@ -1091,9 +1094,260 @@ export namespace FunnelUpdateResponse {
|
|
|
1091
1094
|
}
|
|
1092
1095
|
|
|
1093
1096
|
export interface FunnelDeleteResponse {
|
|
1097
|
+
id: string;
|
|
1098
|
+
|
|
1094
1099
|
deleted: true;
|
|
1100
|
+
}
|
|
1095
1101
|
|
|
1096
|
-
|
|
1102
|
+
export interface FunnelDuplicateResponse {
|
|
1103
|
+
createdAt: string;
|
|
1104
|
+
|
|
1105
|
+
funnelId: string;
|
|
1106
|
+
|
|
1107
|
+
funnelType: 'SESSION_BASED' | 'VISITOR_BASED';
|
|
1108
|
+
|
|
1109
|
+
name: string;
|
|
1110
|
+
|
|
1111
|
+
status: 'READY' | 'PROCESSING';
|
|
1112
|
+
|
|
1113
|
+
steps: Array<FunnelDuplicateResponse.Step>;
|
|
1114
|
+
|
|
1115
|
+
updatedAt: string;
|
|
1116
|
+
|
|
1117
|
+
conversionWindow?: FunnelDuplicateResponse.ConversionWindow | null;
|
|
1118
|
+
|
|
1119
|
+
countingMethod?: 'UNIQUES' | 'TOTALS' | 'SESSIONS' | null;
|
|
1120
|
+
|
|
1121
|
+
description?: string | null;
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Nested visitor logic for the entire funnel. When supplied, this replaces legacy
|
|
1125
|
+
* UTM filters.
|
|
1126
|
+
*/
|
|
1127
|
+
globalLogic?: FunnelDuplicateResponse.GlobalLogic | null;
|
|
1128
|
+
|
|
1129
|
+
reportDateRange?: FunnelDuplicateResponse.ReportDateRange | null;
|
|
1130
|
+
|
|
1131
|
+
stepOrder?: 'EXACT' | 'ANY' | null;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Legacy exact-match UTM filters. Do not combine with globalLogic; globalLogic
|
|
1135
|
+
* takes precedence.
|
|
1136
|
+
*/
|
|
1137
|
+
utmFilters?: unknown | null;
|
|
1138
|
+
|
|
1139
|
+
watched?: boolean | null;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
export namespace FunnelDuplicateResponse {
|
|
1143
|
+
export interface Step {
|
|
1144
|
+
eventName: string;
|
|
1145
|
+
|
|
1146
|
+
name: string;
|
|
1147
|
+
|
|
1148
|
+
order: number;
|
|
1149
|
+
|
|
1150
|
+
stepId: string;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Step-level event filters (JSON object).
|
|
1154
|
+
*/
|
|
1155
|
+
filters?: unknown;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Step-level event logic.
|
|
1159
|
+
*/
|
|
1160
|
+
logic?: Step.Logic | null;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export namespace Step {
|
|
1164
|
+
/**
|
|
1165
|
+
* Step-level event logic.
|
|
1166
|
+
*/
|
|
1167
|
+
export interface Logic {
|
|
1168
|
+
/**
|
|
1169
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1170
|
+
* or combinator).
|
|
1171
|
+
*/
|
|
1172
|
+
AND?: Array<unknown> | null;
|
|
1173
|
+
|
|
1174
|
+
condition?: Logic.Condition | null;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Negates a single child logic node.
|
|
1178
|
+
*/
|
|
1179
|
+
NOT?: unknown;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1183
|
+
* or combinator).
|
|
1184
|
+
*/
|
|
1185
|
+
OR?: Array<unknown> | null;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
export namespace Logic {
|
|
1189
|
+
export interface Condition {
|
|
1190
|
+
/**
|
|
1191
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
1192
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
1193
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
1194
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
1195
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
1196
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
1197
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
1198
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
1199
|
+
*/
|
|
1200
|
+
operator:
|
|
1201
|
+
| 'Is'
|
|
1202
|
+
| 'IsNot'
|
|
1203
|
+
| 'Contains'
|
|
1204
|
+
| 'DoesNotContain'
|
|
1205
|
+
| 'StartsWith'
|
|
1206
|
+
| 'EndsWith'
|
|
1207
|
+
| 'IsFalsy'
|
|
1208
|
+
| 'IsTruthy'
|
|
1209
|
+
| 'IsNull'
|
|
1210
|
+
| 'IsNotNull'
|
|
1211
|
+
| 'IsUndefined'
|
|
1212
|
+
| 'IsNotUndefined'
|
|
1213
|
+
| 'IsGreaterThan'
|
|
1214
|
+
| 'IsGreaterThanOrEqual'
|
|
1215
|
+
| 'IsLessThan'
|
|
1216
|
+
| 'IsLessThanOrEqual'
|
|
1217
|
+
| 'IsIn'
|
|
1218
|
+
| 'IsNotIn'
|
|
1219
|
+
| 'IsFoundIn'
|
|
1220
|
+
| 'IsNotFoundIn'
|
|
1221
|
+
| 'IsTrue'
|
|
1222
|
+
| 'IsFalse'
|
|
1223
|
+
| 'IsBefore'
|
|
1224
|
+
| 'IsAfter'
|
|
1225
|
+
| 'IsBetween'
|
|
1226
|
+
| 'IsOnOrBefore'
|
|
1227
|
+
| 'IsOnOrAfter'
|
|
1228
|
+
| 'MatchesRegex'
|
|
1229
|
+
| 'MatchesRegexIgnoreCase'
|
|
1230
|
+
| 'DoesNotMatchRegex'
|
|
1231
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
1235
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
1236
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
1237
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
1238
|
+
* and would be compared as a literal string.
|
|
1239
|
+
*/
|
|
1240
|
+
property: string;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* String compared against the resolved property. Operators that take no value
|
|
1244
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
1245
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
1246
|
+
*/
|
|
1247
|
+
value: string;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export interface ConversionWindow {
|
|
1253
|
+
unit: 'MINUTES' | 'HOURS' | 'DAYS';
|
|
1254
|
+
|
|
1255
|
+
value: number;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Nested visitor logic for the entire funnel. When supplied, this replaces legacy
|
|
1260
|
+
* UTM filters.
|
|
1261
|
+
*/
|
|
1262
|
+
export interface GlobalLogic {
|
|
1263
|
+
/**
|
|
1264
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1265
|
+
* or combinator).
|
|
1266
|
+
*/
|
|
1267
|
+
AND?: Array<unknown> | null;
|
|
1268
|
+
|
|
1269
|
+
condition?: GlobalLogic.Condition | null;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Negates a single child logic node.
|
|
1273
|
+
*/
|
|
1274
|
+
NOT?: unknown;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1278
|
+
* or combinator).
|
|
1279
|
+
*/
|
|
1280
|
+
OR?: Array<unknown> | null;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export namespace GlobalLogic {
|
|
1284
|
+
export interface Condition {
|
|
1285
|
+
/**
|
|
1286
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
1287
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
1288
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
1289
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
1290
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
1291
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
1292
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
1293
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
1294
|
+
*/
|
|
1295
|
+
operator:
|
|
1296
|
+
| 'Is'
|
|
1297
|
+
| 'IsNot'
|
|
1298
|
+
| 'Contains'
|
|
1299
|
+
| 'DoesNotContain'
|
|
1300
|
+
| 'StartsWith'
|
|
1301
|
+
| 'EndsWith'
|
|
1302
|
+
| 'IsFalsy'
|
|
1303
|
+
| 'IsTruthy'
|
|
1304
|
+
| 'IsNull'
|
|
1305
|
+
| 'IsNotNull'
|
|
1306
|
+
| 'IsUndefined'
|
|
1307
|
+
| 'IsNotUndefined'
|
|
1308
|
+
| 'IsGreaterThan'
|
|
1309
|
+
| 'IsGreaterThanOrEqual'
|
|
1310
|
+
| 'IsLessThan'
|
|
1311
|
+
| 'IsLessThanOrEqual'
|
|
1312
|
+
| 'IsIn'
|
|
1313
|
+
| 'IsNotIn'
|
|
1314
|
+
| 'IsFoundIn'
|
|
1315
|
+
| 'IsNotFoundIn'
|
|
1316
|
+
| 'IsTrue'
|
|
1317
|
+
| 'IsFalse'
|
|
1318
|
+
| 'IsBefore'
|
|
1319
|
+
| 'IsAfter'
|
|
1320
|
+
| 'IsBetween'
|
|
1321
|
+
| 'IsOnOrBefore'
|
|
1322
|
+
| 'IsOnOrAfter'
|
|
1323
|
+
| 'MatchesRegex'
|
|
1324
|
+
| 'MatchesRegexIgnoreCase'
|
|
1325
|
+
| 'DoesNotMatchRegex'
|
|
1326
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
1330
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
1331
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
1332
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
1333
|
+
* and would be compared as a literal string.
|
|
1334
|
+
*/
|
|
1335
|
+
property: string;
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* String compared against the resolved property. Operators that take no value
|
|
1339
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
1340
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
1341
|
+
*/
|
|
1342
|
+
value: string;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
export interface ReportDateRange {
|
|
1347
|
+
from: string;
|
|
1348
|
+
|
|
1349
|
+
to: string;
|
|
1350
|
+
}
|
|
1097
1351
|
}
|
|
1098
1352
|
|
|
1099
1353
|
export interface FunnelResultsResponse {
|
|
@@ -1203,7 +1457,7 @@ export namespace FunnelCreateParams {
|
|
|
1203
1457
|
*/
|
|
1204
1458
|
AND?: Array<unknown> | null;
|
|
1205
1459
|
|
|
1206
|
-
condition?: Logic.Condition;
|
|
1460
|
+
condition?: Logic.Condition | null;
|
|
1207
1461
|
|
|
1208
1462
|
/**
|
|
1209
1463
|
* Negates a single child logic node.
|
|
@@ -1292,7 +1546,7 @@ export namespace FunnelCreateParams {
|
|
|
1292
1546
|
*/
|
|
1293
1547
|
AND?: Array<unknown> | null;
|
|
1294
1548
|
|
|
1295
|
-
condition?: GlobalLogic.Condition;
|
|
1549
|
+
condition?: GlobalLogic.Condition | null;
|
|
1296
1550
|
|
|
1297
1551
|
/**
|
|
1298
1552
|
* Negates a single child logic node.
|
|
@@ -1412,7 +1666,7 @@ export namespace FunnelUpdateParams {
|
|
|
1412
1666
|
*/
|
|
1413
1667
|
AND?: Array<unknown> | null;
|
|
1414
1668
|
|
|
1415
|
-
condition?: GlobalLogic.Condition;
|
|
1669
|
+
condition?: GlobalLogic.Condition | null;
|
|
1416
1670
|
|
|
1417
1671
|
/**
|
|
1418
1672
|
* Negates a single child logic node.
|
|
@@ -1509,7 +1763,7 @@ export namespace FunnelUpdateParams {
|
|
|
1509
1763
|
*/
|
|
1510
1764
|
AND?: Array<unknown> | null;
|
|
1511
1765
|
|
|
1512
|
-
condition?: Logic.Condition;
|
|
1766
|
+
condition?: Logic.Condition | null;
|
|
1513
1767
|
|
|
1514
1768
|
/**
|
|
1515
1769
|
* Negates a single child logic node.
|
|
@@ -1657,6 +1911,7 @@ export declare namespace Funnels {
|
|
|
1657
1911
|
type FunnelRetrieveResponse as FunnelRetrieveResponse,
|
|
1658
1912
|
type FunnelUpdateResponse as FunnelUpdateResponse,
|
|
1659
1913
|
type FunnelDeleteResponse as FunnelDeleteResponse,
|
|
1914
|
+
type FunnelDuplicateResponse as FunnelDuplicateResponse,
|
|
1660
1915
|
type FunnelResultsResponse as FunnelResultsResponse,
|
|
1661
1916
|
type FunnelCreateParams as FunnelCreateParams,
|
|
1662
1917
|
type FunnelUpdateParams as FunnelUpdateParams,
|
|
@@ -8,12 +8,14 @@ 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
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* entity is identified by `pageKey`, normally origin + pathname with the query
|
|
12
|
+
* string stripped; an account-configured split may include one significant query
|
|
13
|
+
* parameter. Preserve the returned `pageKey` when calling
|
|
14
|
+
* `GET /rest/v1/heatmap-pages/summary`. Supports cursor pagination, with cursor
|
|
15
|
+
* depth capped at roughly 10,000 entries; if you need pages beyond that, narrow
|
|
16
|
+
* `from`/`to` or add filters rather than paginating further. `from`/`to` are UTC
|
|
17
|
+
* calendar days in `YYYY-MM-DD`; the window must be 60 days or fewer. Requires
|
|
18
|
+
* scope: web-analytics:view
|
|
17
19
|
*/
|
|
18
20
|
list(
|
|
19
21
|
query: HeatmapPageListParams,
|
|
@@ -35,7 +37,9 @@ export class HeatmapPages extends APIResource {
|
|
|
35
37
|
* is a documented derived-read exception. `breakpoint` scopes the bin/scroll
|
|
36
38
|
* aggregations; replays are returned across all breakpoints regardless of
|
|
37
39
|
* `breakpoint` (weighted to cover multiple viewports) so callers can compare
|
|
38
|
-
* devices.
|
|
40
|
+
* devices. `clickGrid` always supplies fine click positions for rendering.
|
|
41
|
+
* `clickBins` derives compatible 64×64 counts from the same grid; its totals must
|
|
42
|
+
* not be added to them. Requires scope: web-analytics:view
|
|
39
43
|
*/
|
|
40
44
|
summary(query: HeatmapPageSummaryParams, options?: RequestOptions): APIPromise<HeatmapPageSummaryResponse> {
|
|
41
45
|
return this._client.get('/rest/v1/heatmap-pages/summary', { query, ...options });
|
|
@@ -54,9 +58,10 @@ export interface HeatmapPageListResponse {
|
|
|
54
58
|
issueScore: number;
|
|
55
59
|
|
|
56
60
|
/**
|
|
57
|
-
* Stable per-page identifier
|
|
58
|
-
*
|
|
59
|
-
*
|
|
61
|
+
* Stable per-page identifier. It is normally origin + pathname with the query
|
|
62
|
+
* string stripped, but an account-configured split may include one significant
|
|
63
|
+
* query parameter. Preserve the returned value when calling
|
|
64
|
+
* `GET /rest/v1/heatmap-pages/summary` and the heatmap MCP tools.
|
|
60
65
|
*/
|
|
61
66
|
pageKey: string;
|
|
62
67
|
|
|
@@ -77,11 +82,17 @@ export namespace HeatmapPageListResponse {
|
|
|
77
82
|
|
|
78
83
|
export interface HeatmapPageSummaryResponse {
|
|
79
84
|
/**
|
|
80
|
-
*
|
|
81
|
-
* grid
|
|
85
|
+
* Compatibility click counts for the requested breakpoint in a 64×64
|
|
86
|
+
* document-normalized grid. Use clickGrid for painting.
|
|
82
87
|
*/
|
|
83
88
|
clickBins: Array<HeatmapPageSummaryResponse.ClickBin>;
|
|
84
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Document-normalized click positions at 64×512 resolution. These are the same
|
|
92
|
+
* clicks as clickBins; do not add their totals together.
|
|
93
|
+
*/
|
|
94
|
+
clickGrid: HeatmapPageSummaryResponse.ClickGrid;
|
|
95
|
+
|
|
85
96
|
/**
|
|
86
97
|
* Click positions where no interactive element was hit. `topElement` is the
|
|
87
98
|
* most-frequently-clicked non-interactive ancestor tag at that bucket, if
|
|
@@ -117,6 +128,28 @@ export namespace HeatmapPageSummaryResponse {
|
|
|
117
128
|
clicks: number;
|
|
118
129
|
}
|
|
119
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Document-normalized click positions at 64×512 resolution. These are the same
|
|
133
|
+
* clicks as clickBins; do not add their totals together.
|
|
134
|
+
*/
|
|
135
|
+
export interface ClickGrid {
|
|
136
|
+
bins: Array<ClickGrid.Bin>;
|
|
137
|
+
|
|
138
|
+
columns: 64;
|
|
139
|
+
|
|
140
|
+
rows: 512;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export namespace ClickGrid {
|
|
144
|
+
export interface Bin {
|
|
145
|
+
binX: number;
|
|
146
|
+
|
|
147
|
+
binY: number;
|
|
148
|
+
|
|
149
|
+
clicks: number;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
120
153
|
export interface DeadClick {
|
|
121
154
|
binX: number;
|
|
122
155
|
|
|
@@ -219,8 +252,10 @@ export interface HeatmapPageSummaryParams {
|
|
|
219
252
|
from: string;
|
|
220
253
|
|
|
221
254
|
/**
|
|
222
|
-
* Page identifier returned by `GET /rest/v1/heatmap-pages`.
|
|
223
|
-
* the query string stripped
|
|
255
|
+
* Page identifier returned by `GET /rest/v1/heatmap-pages`. It is normally
|
|
256
|
+
* origin + pathname with the query string stripped, but may include one
|
|
257
|
+
* account-configured significant query parameter. Pass the returned value
|
|
258
|
+
* unchanged.
|
|
224
259
|
*/
|
|
225
260
|
pageKey: string;
|
|
226
261
|
|
package/src/resources/index.ts
CHANGED
|
@@ -131,6 +131,7 @@ export {
|
|
|
131
131
|
type ExperimentRetrieveResponse,
|
|
132
132
|
type ExperimentUpdateResponse,
|
|
133
133
|
type ExperimentDeleteResponse,
|
|
134
|
+
type ExperimentDuplicateResponse,
|
|
134
135
|
type ExperimentStartResponse,
|
|
135
136
|
type ExperimentStopResponse,
|
|
136
137
|
type ExperimentRolloutResponse,
|
|
@@ -139,6 +140,7 @@ export {
|
|
|
139
140
|
type ExperimentPauseResponse,
|
|
140
141
|
type ExperimentResumeResponse,
|
|
141
142
|
type ExperimentResultsResponse,
|
|
143
|
+
type ExperimentAnalysisResponse,
|
|
142
144
|
type ExperimentResultsTimeSeriesResponse,
|
|
143
145
|
type ExperimentSessionReplaysResponse,
|
|
144
146
|
type ExperimentListParams,
|
|
@@ -151,6 +153,7 @@ export {
|
|
|
151
153
|
type ExperimentPauseParams,
|
|
152
154
|
type ExperimentResumeParams,
|
|
153
155
|
type ExperimentResultsParams,
|
|
156
|
+
type ExperimentAnalysisParams,
|
|
154
157
|
type ExperimentResultsTimeSeriesParams,
|
|
155
158
|
type ExperimentSessionReplaysParams,
|
|
156
159
|
type ExperimentListResponsesCursor,
|
|
@@ -162,6 +165,7 @@ export {
|
|
|
162
165
|
type FunnelRetrieveResponse,
|
|
163
166
|
type FunnelUpdateResponse,
|
|
164
167
|
type FunnelDeleteResponse,
|
|
168
|
+
type FunnelDuplicateResponse,
|
|
165
169
|
type FunnelResultsResponse,
|
|
166
170
|
type FunnelCreateParams,
|
|
167
171
|
type FunnelUpdateParams,
|
|
@@ -228,6 +232,13 @@ export {
|
|
|
228
232
|
type ReplaySettingUpdateParams,
|
|
229
233
|
type ReplaySettingListResponsesCursor,
|
|
230
234
|
} from './replay-settings';
|
|
235
|
+
export {
|
|
236
|
+
SessionReplays,
|
|
237
|
+
type SessionReplayListResponse,
|
|
238
|
+
type SessionReplayOverviewResponse,
|
|
239
|
+
type SessionReplayListParams,
|
|
240
|
+
type SessionReplayOverviewParams,
|
|
241
|
+
} from './session-replays';
|
|
231
242
|
export {
|
|
232
243
|
ShortLinks,
|
|
233
244
|
type ShortLinkListResponse,
|
|
@@ -235,6 +246,7 @@ export {
|
|
|
235
246
|
type ShortLinkRetrieveResponse,
|
|
236
247
|
type ShortLinkUpdateResponse,
|
|
237
248
|
type ShortLinkDeleteResponse,
|
|
249
|
+
type ShortLinkCloneResponse,
|
|
238
250
|
type ShortLinkResultsResponse,
|
|
239
251
|
type ShortLinkListParams,
|
|
240
252
|
type ShortLinkCreateParams,
|
|
@@ -321,6 +333,11 @@ export {
|
|
|
321
333
|
type TagManagerCreateParams,
|
|
322
334
|
type TagManagerUpdateParams,
|
|
323
335
|
} from './tag-managers';
|
|
336
|
+
export {
|
|
337
|
+
TranslationWidgets,
|
|
338
|
+
type TranslationWidgetAnalyticsResponse,
|
|
339
|
+
type TranslationWidgetAnalyticsParams,
|
|
340
|
+
} from './translation-widgets';
|
|
324
341
|
export {
|
|
325
342
|
Versions,
|
|
326
343
|
type VersionListResponse,
|
|
@@ -367,18 +384,37 @@ export {
|
|
|
367
384
|
type VideoRetrieveResponse,
|
|
368
385
|
type VideoUpdateResponse,
|
|
369
386
|
type VideoDeleteResponse,
|
|
370
|
-
type
|
|
371
|
-
type VideoAnalyticsTimeseriesResponse,
|
|
387
|
+
type VideoUploadResponse,
|
|
372
388
|
type VideoTranscriptResponse,
|
|
373
389
|
type VideoUpdateTranscriptResponse,
|
|
390
|
+
type VideoAnalyticsResponse,
|
|
391
|
+
type VideoAnalyticsTimeseriesResponse,
|
|
374
392
|
type VideoListParams,
|
|
375
393
|
type VideoCreateParams,
|
|
376
394
|
type VideoUpdateParams,
|
|
395
|
+
type VideoUploadParams,
|
|
396
|
+
type VideoUpdateTranscriptParams,
|
|
377
397
|
type VideoAnalyticsParams,
|
|
378
398
|
type VideoAnalyticsTimeseriesParams,
|
|
379
|
-
type VideoUpdateTranscriptParams,
|
|
380
399
|
type VideoListResponsesCursor,
|
|
381
400
|
} from './videos';
|
|
401
|
+
export {
|
|
402
|
+
WebAnalytics,
|
|
403
|
+
type WebAnalyticsOverviewResponse,
|
|
404
|
+
type WebAnalyticsSourcesResponse,
|
|
405
|
+
type WebAnalyticsPagesResponse,
|
|
406
|
+
type WebAnalyticsLocationsResponse,
|
|
407
|
+
type WebAnalyticsDevicesResponse,
|
|
408
|
+
type WebAnalyticsCurrentVisitorsResponse,
|
|
409
|
+
type WebAnalyticsJourneyResponse,
|
|
410
|
+
type WebAnalyticsOverviewParams,
|
|
411
|
+
type WebAnalyticsSourcesParams,
|
|
412
|
+
type WebAnalyticsPagesParams,
|
|
413
|
+
type WebAnalyticsLocationsParams,
|
|
414
|
+
type WebAnalyticsDevicesParams,
|
|
415
|
+
type WebAnalyticsCurrentVisitorsParams,
|
|
416
|
+
type WebAnalyticsJourneyParams,
|
|
417
|
+
} from './web-analytics';
|
|
382
418
|
export {
|
|
383
419
|
WebScannerRules,
|
|
384
420
|
type WebScannerRuleListResponse,
|
|
@@ -398,11 +434,19 @@ export {
|
|
|
398
434
|
type WebScannerUpdateResponse,
|
|
399
435
|
type WebScannerDeleteResponse,
|
|
400
436
|
type WebScannerTriggerResponse,
|
|
437
|
+
type WebScannerAuthenticatedScanResponse,
|
|
438
|
+
type WebScannerTargetedScanResponse,
|
|
439
|
+
type WebScannerVerificationRunResponse,
|
|
440
|
+
type WebScannerVerificationRunsResponse,
|
|
401
441
|
type WebScannerFindingsResponse,
|
|
402
442
|
type WebScannerCookiesResponse,
|
|
403
443
|
type WebScannerSummaryResponse,
|
|
404
444
|
type WebScannerCreateParams,
|
|
405
445
|
type WebScannerUpdateParams,
|
|
446
|
+
type WebScannerAuthenticatedScanParams,
|
|
447
|
+
type WebScannerTargetedScanParams,
|
|
448
|
+
type WebScannerVerificationRunParams,
|
|
449
|
+
type WebScannerVerificationRunsParams,
|
|
406
450
|
type WebScannerFindingsParams,
|
|
407
451
|
type WebScannerCookiesParams,
|
|
408
452
|
type WebScannerSummaryParams,
|
|
@@ -942,7 +942,7 @@ export namespace MappingCreateParams {
|
|
|
942
942
|
*/
|
|
943
943
|
AND?: Array<unknown> | null;
|
|
944
944
|
|
|
945
|
-
condition?: Logic.Condition;
|
|
945
|
+
condition?: Logic.Condition | null;
|
|
946
946
|
|
|
947
947
|
/**
|
|
948
948
|
* Negates a single child logic node.
|
|
@@ -1112,7 +1112,7 @@ export namespace MappingUpdateParams {
|
|
|
1112
1112
|
*/
|
|
1113
1113
|
AND?: Array<unknown> | null;
|
|
1114
1114
|
|
|
1115
|
-
condition?: Logic.Condition;
|
|
1115
|
+
condition?: Logic.Condition | null;
|
|
1116
1116
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Negates a single child logic node.
|