@openreplay/tracker 4.1.9-beta.2 → 4.1.9-beta.4

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.
Files changed (42) hide show
  1. package/cjs/app/guards.d.ts +1 -1
  2. package/cjs/app/index.d.ts +7 -7
  3. package/cjs/app/index.js +7 -4
  4. package/cjs/app/logger.d.ts +3 -3
  5. package/cjs/app/messages.gen.d.ts +2 -2
  6. package/cjs/app/messages.gen.js +79 -79
  7. package/cjs/app/nodes.d.ts +1 -1
  8. package/cjs/app/observer/iframe_offsets.d.ts +1 -1
  9. package/cjs/app/observer/top_observer.d.ts +2 -2
  10. package/cjs/app/session.d.ts +2 -2
  11. package/cjs/app/ticker.d.ts +1 -1
  12. package/cjs/common/interaction.d.ts +5 -5
  13. package/cjs/common/messages.gen.d.ts +75 -75
  14. package/cjs/index.d.ts +1 -1
  15. package/cjs/index.js +1 -1
  16. package/cjs/modules/cssrules.js +1 -1
  17. package/cjs/modules/input.d.ts +1 -1
  18. package/cjs/modules/input.js +6 -6
  19. package/cjs/modules/network.d.ts +3 -3
  20. package/cjs/vendors/finder/finder.d.ts +1 -1
  21. package/lib/app/guards.d.ts +1 -1
  22. package/lib/app/index.d.ts +7 -7
  23. package/lib/app/index.js +7 -4
  24. package/lib/app/logger.d.ts +3 -3
  25. package/lib/app/messages.gen.d.ts +2 -2
  26. package/lib/app/messages.gen.js +75 -75
  27. package/lib/app/nodes.d.ts +1 -1
  28. package/lib/app/observer/iframe_offsets.d.ts +1 -1
  29. package/lib/app/observer/top_observer.d.ts +2 -2
  30. package/lib/app/session.d.ts +2 -2
  31. package/lib/app/ticker.d.ts +1 -1
  32. package/lib/common/interaction.d.ts +5 -5
  33. package/lib/common/messages.gen.d.ts +75 -75
  34. package/lib/common/tsconfig.tsbuildinfo +1 -1
  35. package/lib/index.d.ts +1 -1
  36. package/lib/index.js +1 -1
  37. package/lib/modules/cssrules.js +1 -1
  38. package/lib/modules/input.d.ts +1 -1
  39. package/lib/modules/input.js +6 -6
  40. package/lib/modules/network.d.ts +3 -3
  41. package/lib/vendors/finder/finder.d.ts +1 -1
  42. package/package.json +1 -1
@@ -2,37 +2,18 @@
2
2
  // Auto-generated, do not edit
3
3
  /* eslint-disable */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.CustomIssue = exports.TechnicalInfo = exports.SetCSSDataURLBased = exports.SetNodeAttributeURLBased = exports.LongTask = exports.SetNodeFocus = exports.LoadFontFace = exports.SetPageVisibility = exports.ConnectionInformation = exports.ResourceTiming = exports.PerformanceTrack = exports.GraphQL = exports.NgRx = exports.MobX = exports.Vuex = exports.Redux = exports.StateAction = exports.OTable = exports.Profiler = exports.Fetch = exports.CSSDeleteRule = exports.CSSInsertRule = exports.Metadata = exports.UserAnonymousID = exports.UserID = exports.CustomEvent = exports.JSExceptionDeprecated = exports.PageRenderTiming = exports.PageLoadTiming = exports.ConsoleLog = exports.NetworkRequest = exports.MouseMove = exports.SetInputChecked = exports.SetInputValue = exports.SetInputTarget = exports.SetNodeScroll = exports.SetNodeData = exports.RemoveNodeAttribute = exports.SetNodeAttribute = exports.RemoveNode = exports.MoveNode = exports.CreateTextNode = exports.CreateElementNode = exports.CreateDocument = exports.SetViewportScroll = exports.SetViewportSize = exports.SetPageLocation = exports.Timestamp = exports.PartitionedMessage = exports.BatchMetadata = void 0;
6
- exports.JSException = exports.Zustand = exports.AdoptedSSRemoveOwner = exports.AdoptedSSAddOwner = exports.AdoptedSSDeleteRule = exports.AdoptedSSInsertRuleURLBased = exports.AdoptedSSReplaceURLBased = exports.CreateIFrameDocument = exports.MouseClick = exports.CSSInsertRuleURLBased = void 0;
7
- function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
8
- return [
9
- 81 /* BatchMetadata */,
10
- version,
11
- pageNo,
12
- firstIndex,
13
- timestamp,
14
- location,
15
- ];
16
- }
17
- exports.BatchMetadata = BatchMetadata;
18
- function PartitionedMessage(partNo, partTotal) {
19
- return [
20
- 82 /* PartitionedMessage */,
21
- partNo,
22
- partTotal,
23
- ];
24
- }
25
- exports.PartitionedMessage = PartitionedMessage;
5
+ exports.MouseClick = exports.CSSInsertRuleURLBased = exports.CustomIssue = exports.TechnicalInfo = exports.SetCSSDataURLBased = exports.SetNodeAttributeURLBased = exports.LongTask = exports.SetNodeFocus = exports.LoadFontFace = exports.SetPageVisibility = exports.ConnectionInformation = exports.ResourceTiming = exports.PerformanceTrack = exports.GraphQL = exports.NgRx = exports.MobX = exports.Vuex = exports.Redux = exports.StateAction = exports.OTable = exports.Profiler = exports.Fetch = exports.CSSDeleteRule = exports.CSSInsertRule = exports.Metadata = exports.UserAnonymousID = exports.UserID = exports.CustomEvent = exports.JSExceptionDeprecated = exports.PageRenderTiming = exports.PageLoadTiming = exports.ConsoleLog = exports.NetworkRequest = exports.MouseMove = exports.SetInputChecked = exports.SetInputValue = exports.SetInputTarget = exports.SetNodeScroll = exports.SetNodeData = exports.RemoveNodeAttribute = exports.SetNodeAttribute = exports.RemoveNode = exports.MoveNode = exports.CreateTextNode = exports.CreateElementNode = exports.CreateDocument = exports.SetViewportScroll = exports.SetViewportSize = exports.SetPageLocation = exports.Timestamp = void 0;
6
+ exports.PartitionedMessage = exports.BatchMetadata = exports.JSException = exports.Zustand = exports.AdoptedSSRemoveOwner = exports.AdoptedSSAddOwner = exports.AdoptedSSDeleteRule = exports.AdoptedSSInsertRuleURLBased = exports.AdoptedSSReplaceURLBased = exports.CreateIFrameDocument = void 0;
26
7
  function Timestamp(timestamp) {
27
8
  return [
28
- 0 /* Timestamp */,
9
+ 0 /* Messages.Type.Timestamp */,
29
10
  timestamp,
30
11
  ];
31
12
  }
32
13
  exports.Timestamp = Timestamp;
33
14
  function SetPageLocation(url, referrer, navigationStart) {
34
15
  return [
35
- 4 /* SetPageLocation */,
16
+ 4 /* Messages.Type.SetPageLocation */,
36
17
  url,
37
18
  referrer,
38
19
  navigationStart,
@@ -41,7 +22,7 @@ function SetPageLocation(url, referrer, navigationStart) {
41
22
  exports.SetPageLocation = SetPageLocation;
42
23
  function SetViewportSize(width, height) {
43
24
  return [
44
- 5 /* SetViewportSize */,
25
+ 5 /* Messages.Type.SetViewportSize */,
45
26
  width,
46
27
  height,
47
28
  ];
@@ -49,7 +30,7 @@ function SetViewportSize(width, height) {
49
30
  exports.SetViewportSize = SetViewportSize;
50
31
  function SetViewportScroll(x, y) {
51
32
  return [
52
- 6 /* SetViewportScroll */,
33
+ 6 /* Messages.Type.SetViewportScroll */,
53
34
  x,
54
35
  y,
55
36
  ];
@@ -57,13 +38,13 @@ function SetViewportScroll(x, y) {
57
38
  exports.SetViewportScroll = SetViewportScroll;
58
39
  function CreateDocument() {
59
40
  return [
60
- 7 /* CreateDocument */,
41
+ 7 /* Messages.Type.CreateDocument */,
61
42
  ];
62
43
  }
63
44
  exports.CreateDocument = CreateDocument;
64
45
  function CreateElementNode(id, parentID, index, tag, svg) {
65
46
  return [
66
- 8 /* CreateElementNode */,
47
+ 8 /* Messages.Type.CreateElementNode */,
67
48
  id,
68
49
  parentID,
69
50
  index,
@@ -74,7 +55,7 @@ function CreateElementNode(id, parentID, index, tag, svg) {
74
55
  exports.CreateElementNode = CreateElementNode;
75
56
  function CreateTextNode(id, parentID, index) {
76
57
  return [
77
- 9 /* CreateTextNode */,
58
+ 9 /* Messages.Type.CreateTextNode */,
78
59
  id,
79
60
  parentID,
80
61
  index,
@@ -83,7 +64,7 @@ function CreateTextNode(id, parentID, index) {
83
64
  exports.CreateTextNode = CreateTextNode;
84
65
  function MoveNode(id, parentID, index) {
85
66
  return [
86
- 10 /* MoveNode */,
67
+ 10 /* Messages.Type.MoveNode */,
87
68
  id,
88
69
  parentID,
89
70
  index,
@@ -92,14 +73,14 @@ function MoveNode(id, parentID, index) {
92
73
  exports.MoveNode = MoveNode;
93
74
  function RemoveNode(id) {
94
75
  return [
95
- 11 /* RemoveNode */,
76
+ 11 /* Messages.Type.RemoveNode */,
96
77
  id,
97
78
  ];
98
79
  }
99
80
  exports.RemoveNode = RemoveNode;
100
81
  function SetNodeAttribute(id, name, value) {
101
82
  return [
102
- 12 /* SetNodeAttribute */,
83
+ 12 /* Messages.Type.SetNodeAttribute */,
103
84
  id,
104
85
  name,
105
86
  value,
@@ -108,7 +89,7 @@ function SetNodeAttribute(id, name, value) {
108
89
  exports.SetNodeAttribute = SetNodeAttribute;
109
90
  function RemoveNodeAttribute(id, name) {
110
91
  return [
111
- 13 /* RemoveNodeAttribute */,
92
+ 13 /* Messages.Type.RemoveNodeAttribute */,
112
93
  id,
113
94
  name,
114
95
  ];
@@ -116,7 +97,7 @@ function RemoveNodeAttribute(id, name) {
116
97
  exports.RemoveNodeAttribute = RemoveNodeAttribute;
117
98
  function SetNodeData(id, data) {
118
99
  return [
119
- 14 /* SetNodeData */,
100
+ 14 /* Messages.Type.SetNodeData */,
120
101
  id,
121
102
  data,
122
103
  ];
@@ -124,7 +105,7 @@ function SetNodeData(id, data) {
124
105
  exports.SetNodeData = SetNodeData;
125
106
  function SetNodeScroll(id, x, y) {
126
107
  return [
127
- 16 /* SetNodeScroll */,
108
+ 16 /* Messages.Type.SetNodeScroll */,
128
109
  id,
129
110
  x,
130
111
  y,
@@ -133,7 +114,7 @@ function SetNodeScroll(id, x, y) {
133
114
  exports.SetNodeScroll = SetNodeScroll;
134
115
  function SetInputTarget(id, label) {
135
116
  return [
136
- 17 /* SetInputTarget */,
117
+ 17 /* Messages.Type.SetInputTarget */,
137
118
  id,
138
119
  label,
139
120
  ];
@@ -141,7 +122,7 @@ function SetInputTarget(id, label) {
141
122
  exports.SetInputTarget = SetInputTarget;
142
123
  function SetInputValue(id, value, mask) {
143
124
  return [
144
- 18 /* SetInputValue */,
125
+ 18 /* Messages.Type.SetInputValue */,
145
126
  id,
146
127
  value,
147
128
  mask,
@@ -150,7 +131,7 @@ function SetInputValue(id, value, mask) {
150
131
  exports.SetInputValue = SetInputValue;
151
132
  function SetInputChecked(id, checked) {
152
133
  return [
153
- 19 /* SetInputChecked */,
134
+ 19 /* Messages.Type.SetInputChecked */,
154
135
  id,
155
136
  checked,
156
137
  ];
@@ -158,7 +139,7 @@ function SetInputChecked(id, checked) {
158
139
  exports.SetInputChecked = SetInputChecked;
159
140
  function MouseMove(x, y) {
160
141
  return [
161
- 20 /* MouseMove */,
142
+ 20 /* Messages.Type.MouseMove */,
162
143
  x,
163
144
  y,
164
145
  ];
@@ -166,7 +147,7 @@ function MouseMove(x, y) {
166
147
  exports.MouseMove = MouseMove;
167
148
  function NetworkRequest(type, method, url, request, response, status, timestamp, duration) {
168
149
  return [
169
- 21 /* NetworkRequest */,
150
+ 21 /* Messages.Type.NetworkRequest */,
170
151
  type,
171
152
  method,
172
153
  url,
@@ -180,7 +161,7 @@ function NetworkRequest(type, method, url, request, response, status, timestamp,
180
161
  exports.NetworkRequest = NetworkRequest;
181
162
  function ConsoleLog(level, value) {
182
163
  return [
183
- 22 /* ConsoleLog */,
164
+ 22 /* Messages.Type.ConsoleLog */,
184
165
  level,
185
166
  value,
186
167
  ];
@@ -188,7 +169,7 @@ function ConsoleLog(level, value) {
188
169
  exports.ConsoleLog = ConsoleLog;
189
170
  function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
190
171
  return [
191
- 23 /* PageLoadTiming */,
172
+ 23 /* Messages.Type.PageLoadTiming */,
192
173
  requestStart,
193
174
  responseStart,
194
175
  responseEnd,
@@ -203,7 +184,7 @@ function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoad
203
184
  exports.PageLoadTiming = PageLoadTiming;
204
185
  function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
205
186
  return [
206
- 24 /* PageRenderTiming */,
187
+ 24 /* Messages.Type.PageRenderTiming */,
207
188
  speedIndex,
208
189
  visuallyComplete,
209
190
  timeToInteractive,
@@ -212,7 +193,7 @@ function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
212
193
  exports.PageRenderTiming = PageRenderTiming;
213
194
  function JSExceptionDeprecated(name, message, payload) {
214
195
  return [
215
- 25 /* JSExceptionDeprecated */,
196
+ 25 /* Messages.Type.JSExceptionDeprecated */,
216
197
  name,
217
198
  message,
218
199
  payload,
@@ -221,7 +202,7 @@ function JSExceptionDeprecated(name, message, payload) {
221
202
  exports.JSExceptionDeprecated = JSExceptionDeprecated;
222
203
  function CustomEvent(name, payload) {
223
204
  return [
224
- 27 /* CustomEvent */,
205
+ 27 /* Messages.Type.CustomEvent */,
225
206
  name,
226
207
  payload,
227
208
  ];
@@ -229,21 +210,21 @@ function CustomEvent(name, payload) {
229
210
  exports.CustomEvent = CustomEvent;
230
211
  function UserID(id) {
231
212
  return [
232
- 28 /* UserID */,
213
+ 28 /* Messages.Type.UserID */,
233
214
  id,
234
215
  ];
235
216
  }
236
217
  exports.UserID = UserID;
237
218
  function UserAnonymousID(id) {
238
219
  return [
239
- 29 /* UserAnonymousID */,
220
+ 29 /* Messages.Type.UserAnonymousID */,
240
221
  id,
241
222
  ];
242
223
  }
243
224
  exports.UserAnonymousID = UserAnonymousID;
244
225
  function Metadata(key, value) {
245
226
  return [
246
- 30 /* Metadata */,
227
+ 30 /* Messages.Type.Metadata */,
247
228
  key,
248
229
  value,
249
230
  ];
@@ -251,7 +232,7 @@ function Metadata(key, value) {
251
232
  exports.Metadata = Metadata;
252
233
  function CSSInsertRule(id, rule, index) {
253
234
  return [
254
- 37 /* CSSInsertRule */,
235
+ 37 /* Messages.Type.CSSInsertRule */,
255
236
  id,
256
237
  rule,
257
238
  index,
@@ -260,7 +241,7 @@ function CSSInsertRule(id, rule, index) {
260
241
  exports.CSSInsertRule = CSSInsertRule;
261
242
  function CSSDeleteRule(id, index) {
262
243
  return [
263
- 38 /* CSSDeleteRule */,
244
+ 38 /* Messages.Type.CSSDeleteRule */,
264
245
  id,
265
246
  index,
266
247
  ];
@@ -268,7 +249,7 @@ function CSSDeleteRule(id, index) {
268
249
  exports.CSSDeleteRule = CSSDeleteRule;
269
250
  function Fetch(method, url, request, response, status, timestamp, duration) {
270
251
  return [
271
- 39 /* Fetch */,
252
+ 39 /* Messages.Type.Fetch */,
272
253
  method,
273
254
  url,
274
255
  request,
@@ -281,7 +262,7 @@ function Fetch(method, url, request, response, status, timestamp, duration) {
281
262
  exports.Fetch = Fetch;
282
263
  function Profiler(name, duration, args, result) {
283
264
  return [
284
- 40 /* Profiler */,
265
+ 40 /* Messages.Type.Profiler */,
285
266
  name,
286
267
  duration,
287
268
  args,
@@ -291,7 +272,7 @@ function Profiler(name, duration, args, result) {
291
272
  exports.Profiler = Profiler;
292
273
  function OTable(key, value) {
293
274
  return [
294
- 41 /* OTable */,
275
+ 41 /* Messages.Type.OTable */,
295
276
  key,
296
277
  value,
297
278
  ];
@@ -299,14 +280,14 @@ function OTable(key, value) {
299
280
  exports.OTable = OTable;
300
281
  function StateAction(type) {
301
282
  return [
302
- 42 /* StateAction */,
283
+ 42 /* Messages.Type.StateAction */,
303
284
  type,
304
285
  ];
305
286
  }
306
287
  exports.StateAction = StateAction;
307
288
  function Redux(action, state, duration) {
308
289
  return [
309
- 44 /* Redux */,
290
+ 44 /* Messages.Type.Redux */,
310
291
  action,
311
292
  state,
312
293
  duration,
@@ -315,7 +296,7 @@ function Redux(action, state, duration) {
315
296
  exports.Redux = Redux;
316
297
  function Vuex(mutation, state) {
317
298
  return [
318
- 45 /* Vuex */,
299
+ 45 /* Messages.Type.Vuex */,
319
300
  mutation,
320
301
  state,
321
302
  ];
@@ -323,7 +304,7 @@ function Vuex(mutation, state) {
323
304
  exports.Vuex = Vuex;
324
305
  function MobX(type, payload) {
325
306
  return [
326
- 46 /* MobX */,
307
+ 46 /* Messages.Type.MobX */,
327
308
  type,
328
309
  payload,
329
310
  ];
@@ -331,7 +312,7 @@ function MobX(type, payload) {
331
312
  exports.MobX = MobX;
332
313
  function NgRx(action, state, duration) {
333
314
  return [
334
- 47 /* NgRx */,
315
+ 47 /* Messages.Type.NgRx */,
335
316
  action,
336
317
  state,
337
318
  duration,
@@ -340,7 +321,7 @@ function NgRx(action, state, duration) {
340
321
  exports.NgRx = NgRx;
341
322
  function GraphQL(operationKind, operationName, variables, response) {
342
323
  return [
343
- 48 /* GraphQL */,
324
+ 48 /* Messages.Type.GraphQL */,
344
325
  operationKind,
345
326
  operationName,
346
327
  variables,
@@ -350,7 +331,7 @@ function GraphQL(operationKind, operationName, variables, response) {
350
331
  exports.GraphQL = GraphQL;
351
332
  function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
352
333
  return [
353
- 49 /* PerformanceTrack */,
334
+ 49 /* Messages.Type.PerformanceTrack */,
354
335
  frames,
355
336
  ticks,
356
337
  totalJSHeapSize,
@@ -360,7 +341,7 @@ function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
360
341
  exports.PerformanceTrack = PerformanceTrack;
361
342
  function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
362
343
  return [
363
- 53 /* ResourceTiming */,
344
+ 53 /* Messages.Type.ResourceTiming */,
364
345
  timestamp,
365
346
  duration,
366
347
  ttfb,
@@ -374,7 +355,7 @@ function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize,
374
355
  exports.ResourceTiming = ResourceTiming;
375
356
  function ConnectionInformation(downlink, type) {
376
357
  return [
377
- 54 /* ConnectionInformation */,
358
+ 54 /* Messages.Type.ConnectionInformation */,
378
359
  downlink,
379
360
  type,
380
361
  ];
@@ -382,14 +363,14 @@ function ConnectionInformation(downlink, type) {
382
363
  exports.ConnectionInformation = ConnectionInformation;
383
364
  function SetPageVisibility(hidden) {
384
365
  return [
385
- 55 /* SetPageVisibility */,
366
+ 55 /* Messages.Type.SetPageVisibility */,
386
367
  hidden,
387
368
  ];
388
369
  }
389
370
  exports.SetPageVisibility = SetPageVisibility;
390
371
  function LoadFontFace(parentID, family, source, descriptors) {
391
372
  return [
392
- 57 /* LoadFontFace */,
373
+ 57 /* Messages.Type.LoadFontFace */,
393
374
  parentID,
394
375
  family,
395
376
  source,
@@ -399,14 +380,14 @@ function LoadFontFace(parentID, family, source, descriptors) {
399
380
  exports.LoadFontFace = LoadFontFace;
400
381
  function SetNodeFocus(id) {
401
382
  return [
402
- 58 /* SetNodeFocus */,
383
+ 58 /* Messages.Type.SetNodeFocus */,
403
384
  id,
404
385
  ];
405
386
  }
406
387
  exports.SetNodeFocus = SetNodeFocus;
407
388
  function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
408
389
  return [
409
- 59 /* LongTask */,
390
+ 59 /* Messages.Type.LongTask */,
410
391
  timestamp,
411
392
  duration,
412
393
  context,
@@ -419,7 +400,7 @@ function LongTask(timestamp, duration, context, containerType, containerSrc, con
419
400
  exports.LongTask = LongTask;
420
401
  function SetNodeAttributeURLBased(id, name, value, baseURL) {
421
402
  return [
422
- 60 /* SetNodeAttributeURLBased */,
403
+ 60 /* Messages.Type.SetNodeAttributeURLBased */,
423
404
  id,
424
405
  name,
425
406
  value,
@@ -429,7 +410,7 @@ function SetNodeAttributeURLBased(id, name, value, baseURL) {
429
410
  exports.SetNodeAttributeURLBased = SetNodeAttributeURLBased;
430
411
  function SetCSSDataURLBased(id, data, baseURL) {
431
412
  return [
432
- 61 /* SetCSSDataURLBased */,
413
+ 61 /* Messages.Type.SetCSSDataURLBased */,
433
414
  id,
434
415
  data,
435
416
  baseURL,
@@ -438,7 +419,7 @@ function SetCSSDataURLBased(id, data, baseURL) {
438
419
  exports.SetCSSDataURLBased = SetCSSDataURLBased;
439
420
  function TechnicalInfo(type, value) {
440
421
  return [
441
- 63 /* TechnicalInfo */,
422
+ 63 /* Messages.Type.TechnicalInfo */,
442
423
  type,
443
424
  value,
444
425
  ];
@@ -446,7 +427,7 @@ function TechnicalInfo(type, value) {
446
427
  exports.TechnicalInfo = TechnicalInfo;
447
428
  function CustomIssue(name, payload) {
448
429
  return [
449
- 64 /* CustomIssue */,
430
+ 64 /* Messages.Type.CustomIssue */,
450
431
  name,
451
432
  payload,
452
433
  ];
@@ -454,7 +435,7 @@ function CustomIssue(name, payload) {
454
435
  exports.CustomIssue = CustomIssue;
455
436
  function CSSInsertRuleURLBased(id, rule, index, baseURL) {
456
437
  return [
457
- 67 /* CSSInsertRuleURLBased */,
438
+ 67 /* Messages.Type.CSSInsertRuleURLBased */,
458
439
  id,
459
440
  rule,
460
441
  index,
@@ -464,7 +445,7 @@ function CSSInsertRuleURLBased(id, rule, index, baseURL) {
464
445
  exports.CSSInsertRuleURLBased = CSSInsertRuleURLBased;
465
446
  function MouseClick(id, hesitationTime, label, selector) {
466
447
  return [
467
- 69 /* MouseClick */,
448
+ 69 /* Messages.Type.MouseClick */,
468
449
  id,
469
450
  hesitationTime,
470
451
  label,
@@ -474,7 +455,7 @@ function MouseClick(id, hesitationTime, label, selector) {
474
455
  exports.MouseClick = MouseClick;
475
456
  function CreateIFrameDocument(frameID, id) {
476
457
  return [
477
- 70 /* CreateIFrameDocument */,
458
+ 70 /* Messages.Type.CreateIFrameDocument */,
478
459
  frameID,
479
460
  id,
480
461
  ];
@@ -482,7 +463,7 @@ function CreateIFrameDocument(frameID, id) {
482
463
  exports.CreateIFrameDocument = CreateIFrameDocument;
483
464
  function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
484
465
  return [
485
- 71 /* AdoptedSSReplaceURLBased */,
466
+ 71 /* Messages.Type.AdoptedSSReplaceURLBased */,
486
467
  sheetID,
487
468
  text,
488
469
  baseURL,
@@ -491,7 +472,7 @@ function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
491
472
  exports.AdoptedSSReplaceURLBased = AdoptedSSReplaceURLBased;
492
473
  function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
493
474
  return [
494
- 73 /* AdoptedSSInsertRuleURLBased */,
475
+ 73 /* Messages.Type.AdoptedSSInsertRuleURLBased */,
495
476
  sheetID,
496
477
  rule,
497
478
  index,
@@ -501,7 +482,7 @@ function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
501
482
  exports.AdoptedSSInsertRuleURLBased = AdoptedSSInsertRuleURLBased;
502
483
  function AdoptedSSDeleteRule(sheetID, index) {
503
484
  return [
504
- 75 /* AdoptedSSDeleteRule */,
485
+ 75 /* Messages.Type.AdoptedSSDeleteRule */,
505
486
  sheetID,
506
487
  index,
507
488
  ];
@@ -509,7 +490,7 @@ function AdoptedSSDeleteRule(sheetID, index) {
509
490
  exports.AdoptedSSDeleteRule = AdoptedSSDeleteRule;
510
491
  function AdoptedSSAddOwner(sheetID, id) {
511
492
  return [
512
- 76 /* AdoptedSSAddOwner */,
493
+ 76 /* Messages.Type.AdoptedSSAddOwner */,
513
494
  sheetID,
514
495
  id,
515
496
  ];
@@ -517,7 +498,7 @@ function AdoptedSSAddOwner(sheetID, id) {
517
498
  exports.AdoptedSSAddOwner = AdoptedSSAddOwner;
518
499
  function AdoptedSSRemoveOwner(sheetID, id) {
519
500
  return [
520
- 77 /* AdoptedSSRemoveOwner */,
501
+ 77 /* Messages.Type.AdoptedSSRemoveOwner */,
521
502
  sheetID,
522
503
  id,
523
504
  ];
@@ -525,7 +506,7 @@ function AdoptedSSRemoveOwner(sheetID, id) {
525
506
  exports.AdoptedSSRemoveOwner = AdoptedSSRemoveOwner;
526
507
  function Zustand(mutation, state) {
527
508
  return [
528
- 79 /* Zustand */,
509
+ 79 /* Messages.Type.Zustand */,
529
510
  mutation,
530
511
  state,
531
512
  ];
@@ -533,7 +514,7 @@ function Zustand(mutation, state) {
533
514
  exports.Zustand = Zustand;
534
515
  function JSException(name, message, payload, metadata) {
535
516
  return [
536
- 78 /* JSException */,
517
+ 78 /* Messages.Type.JSException */,
537
518
  name,
538
519
  message,
539
520
  payload,
@@ -541,3 +522,22 @@ function JSException(name, message, payload, metadata) {
541
522
  ];
542
523
  }
543
524
  exports.JSException = JSException;
525
+ function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
526
+ return [
527
+ 81 /* Messages.Type.BatchMetadata */,
528
+ version,
529
+ pageNo,
530
+ firstIndex,
531
+ timestamp,
532
+ location,
533
+ ];
534
+ }
535
+ exports.BatchMetadata = BatchMetadata;
536
+ function PartitionedMessage(partNo, partTotal) {
537
+ return [
538
+ 82 /* Messages.Type.PartitionedMessage */,
539
+ partNo,
540
+ partTotal,
541
+ ];
542
+ }
543
+ exports.PartitionedMessage = PartitionedMessage;
@@ -1,4 +1,4 @@
1
- declare type NodeCallback = (node: Node, isStart: boolean) => void;
1
+ type NodeCallback = (node: Node, isStart: boolean) => void;
2
2
  export default class Nodes {
3
3
  private readonly node_id;
4
4
  private nodes;
@@ -1,4 +1,4 @@
1
- export declare type Offset = [/*left:*/ number, /*top: */ number];
1
+ export type Offset = [/*left:*/ number, /*top: */ number];
2
2
  export default class IFrameOffsets {
3
3
  private readonly states;
4
4
  private calcOffset;
@@ -4,8 +4,8 @@ import App from '../index.js';
4
4
  export interface Options {
5
5
  captureIFrames: boolean;
6
6
  }
7
- declare type Context = Window & typeof globalThis;
8
- declare type ContextCallback = (context: Context) => void;
7
+ type Context = Window & typeof globalThis;
8
+ type ContextCallback = (context: Context) => void;
9
9
  export default class TopObserver extends Observer {
10
10
  private readonly options;
11
11
  private readonly iframeOffsets;
@@ -6,8 +6,8 @@ interface SessionInfo {
6
6
  timestamp: number;
7
7
  projectID?: string;
8
8
  }
9
- declare type OnUpdateCallback = (i: Partial<SessionInfo>) => void;
10
- export declare type Options = {
9
+ type OnUpdateCallback = (i: Partial<SessionInfo>) => void;
10
+ export type Options = {
11
11
  session_token_key: string;
12
12
  session_pageno_key: string;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import App from './index.js';
2
- declare type Callback = () => void;
2
+ type Callback = () => void;
3
3
  export default class Ticker {
4
4
  private readonly app;
5
5
  private timer;
@@ -3,22 +3,22 @@ export interface Options {
3
3
  connAttemptCount?: number;
4
4
  connAttemptGap?: number;
5
5
  }
6
- declare type Start = {
6
+ type Start = {
7
7
  type: 'start';
8
8
  ingestPoint: string;
9
9
  pageNo: number;
10
10
  timestamp: number;
11
11
  url: string;
12
12
  } & Options;
13
- declare type Auth = {
13
+ type Auth = {
14
14
  type: 'auth';
15
15
  token: string;
16
16
  beaconSizeLimit?: number;
17
17
  };
18
- export declare type ToWorkerData = null | 'stop' | Start | Auth | Array<Message>;
19
- declare type Failure = {
18
+ export type ToWorkerData = null | 'stop' | Start | Auth | Array<Message>;
19
+ type Failure = {
20
20
  type: 'failure';
21
21
  reason: string;
22
22
  };
23
- export declare type FromWorkerData = 'restart' | Failure;
23
+ export type FromWorkerData = 'restart' | Failure | 'not_init';
24
24
  export {};