@cloudcare/guance-front-tools 1.0.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.
Files changed (216) hide show
  1. package/.prettierignore +3 -0
  2. package/.prettierrc +6 -0
  3. package/LICENSE +21 -0
  4. package/README.md +31 -0
  5. package/cli.js +16 -0
  6. package/lib/cjs/generated/browserSessionReplay.d.ts +703 -0
  7. package/lib/cjs/generated/browserSessionReplay.js +6 -0
  8. package/lib/cjs/generated/dashboardCharts.d.ts +1372 -0
  9. package/lib/cjs/generated/dashboardCharts.js +6 -0
  10. package/lib/cjs/generated/mobileSessionReplay.d.ts +653 -0
  11. package/lib/cjs/generated/mobileSessionReplay.js +6 -0
  12. package/lib/cjs/generated/sessionReplay.d.ts +1190 -0
  13. package/lib/cjs/generated/sessionReplay.js +6 -0
  14. package/lib/cjs/src/dashboard-charts.d.ts +1 -0
  15. package/lib/cjs/src/dashboard-charts.js +17 -0
  16. package/lib/cjs/src/index.d.ts +2 -0
  17. package/lib/cjs/src/index.js +18 -0
  18. package/lib/cjs/src/session-replay-browser.d.ts +58 -0
  19. package/lib/cjs/src/session-replay-browser.js +69 -0
  20. package/lib/cjs/src/session-replay-mobile.d.ts +30 -0
  21. package/lib/cjs/src/session-replay-mobile.js +42 -0
  22. package/lib/cjs/src/session-replay.d.ts +30 -0
  23. package/lib/cjs/src/session-replay.js +49 -0
  24. package/lib/esm/generated/browserSessionReplay.d.ts +703 -0
  25. package/lib/esm/generated/browserSessionReplay.js +5 -0
  26. package/lib/esm/generated/dashboardCharts.d.ts +1372 -0
  27. package/lib/esm/generated/dashboardCharts.js +5 -0
  28. package/lib/esm/generated/mobileSessionReplay.d.ts +653 -0
  29. package/lib/esm/generated/mobileSessionReplay.js +5 -0
  30. package/lib/esm/generated/sessionReplay.d.ts +1190 -0
  31. package/lib/esm/generated/sessionReplay.js +5 -0
  32. package/lib/esm/src/dashboard-charts.d.ts +1 -0
  33. package/lib/esm/src/dashboard-charts.js +1 -0
  34. package/lib/esm/src/index.d.ts +2 -0
  35. package/lib/esm/src/index.js +2 -0
  36. package/lib/esm/src/session-replay-browser.d.ts +58 -0
  37. package/lib/esm/src/session-replay-browser.js +52 -0
  38. package/lib/esm/src/session-replay-mobile.d.ts +30 -0
  39. package/lib/esm/src/session-replay-mobile.js +25 -0
  40. package/lib/esm/src/session-replay.d.ts +30 -0
  41. package/lib/esm/src/session-replay.js +24 -0
  42. package/lib/example/grafana-dashboard.json +2205 -0
  43. package/lib/example/guance-covert-test.json +629 -0
  44. package/lib/example/guance-dashboard-1.json +672 -0
  45. package/lib/example/guance-dashboard.json +2841 -0
  46. package/lib/scripts/grafana-covert-to-guance.d.ts +1 -0
  47. package/lib/scripts/grafana-covert-to-guance.js +367 -0
  48. package/lib/scripts/grafana-covert-to-guance.ts +374 -0
  49. package/lib/scripts/grafana-dashbord.d.ts +2220 -0
  50. package/lib/scripts/grafana-dashbord.js +1 -0
  51. package/lib/scripts/grafana-dashbord.ts +2427 -0
  52. package/lib/src/dashboard-charts.ts +1 -0
  53. package/lib/src/index.ts +2 -0
  54. package/lib/src/session-replay-browser.ts +98 -0
  55. package/lib/src/session-replay-mobile.ts +54 -0
  56. package/lib/src/session-replay.ts +61 -0
  57. package/package.json +45 -0
  58. package/samples/dashboard/dashboard.json +2842 -0
  59. package/samples/dashboard/promql-dashboard.json +2175 -0
  60. package/samples/session-replay/mobile/record/full-snapshot-record.json +51 -0
  61. package/samples/session-replay/mobile/record/has-focus-record.json +7 -0
  62. package/samples/session-replay/mobile/record/incremental-snapshot-record.json +74 -0
  63. package/samples/session-replay/mobile/record/metadata-record.json +8 -0
  64. package/samples/session-replay/mobile/record/view-end-record.json +4 -0
  65. package/samples/session-replay/mobile/segment/segment.json +110 -0
  66. package/schemas/charts/chart-schema.json +73 -0
  67. package/schemas/charts/common/common-chart-types-schema.json +37 -0
  68. package/schemas/charts/common/common-vars-item-schema.json +117 -0
  69. package/schemas/charts/common/common-vars-schema.json +10 -0
  70. package/schemas/charts/dashboard-schema.json +73 -0
  71. package/schemas/charts/query/queries-schema.json +10 -0
  72. package/schemas/charts/query/query-item-schema.json +42 -0
  73. package/schemas/charts/settings/_common-settings-connect-null-schema.json +7 -0
  74. package/schemas/charts/settings/_common-settings-gradual-color-schema.json +72 -0
  75. package/schemas/charts/settings/_common-settings-groupby-schema.json +22 -0
  76. package/schemas/charts/settings/_common-settings-legend-position-schema.json +14 -0
  77. package/schemas/charts/settings/_common-settings-legend-values-schema.json +19 -0
  78. package/schemas/charts/settings/_common-settings-open-stack-schema.json +8 -0
  79. package/schemas/charts/settings/_common-settings-show-label-schema.json +8 -0
  80. package/schemas/charts/settings/_common-settings-show-line-schema.json +8 -0
  81. package/schemas/charts/settings/_common-settings-stack-content-schema.json +12 -0
  82. package/schemas/charts/settings/_common-settings-stack-type-schema.json +11 -0
  83. package/schemas/charts/settings/chart-alarm-settings-schema.json +48 -0
  84. package/schemas/charts/settings/chart-bar-settings-schema.json +69 -0
  85. package/schemas/charts/settings/chart-chinamap-settings-schema.json +102 -0
  86. package/schemas/charts/settings/chart-funnel-settings-schema.json +34 -0
  87. package/schemas/charts/settings/chart-gauge-settings-schema.json +65 -0
  88. package/schemas/charts/settings/chart-heatmap-settings-schema.json +50 -0
  89. package/schemas/charts/settings/chart-hexgon-settings-schema.json +90 -0
  90. package/schemas/charts/settings/chart-histogram-settings-schema.json +47 -0
  91. package/schemas/charts/settings/chart-iframe-settings-schema.json +24 -0
  92. package/schemas/charts/settings/chart-log-settings-schema.json +84 -0
  93. package/schemas/charts/settings/chart-object-settings-schema.json +52 -0
  94. package/schemas/charts/settings/chart-picture-settings-schema.json +46 -0
  95. package/schemas/charts/settings/chart-pie-settings-schema.json +90 -0
  96. package/schemas/charts/settings/chart-sankey-settings-schema.json +34 -0
  97. package/schemas/charts/settings/chart-scatter-bubble-settings-schema.json +31 -0
  98. package/schemas/charts/settings/chart-sequence-settings-schema.json +76 -0
  99. package/schemas/charts/settings/chart-singlestat-settings-schema.json +163 -0
  100. package/schemas/charts/settings/chart-table-settings-schema.json +184 -0
  101. package/schemas/charts/settings/chart-text-settings-schema.json +20 -0
  102. package/schemas/charts/settings/chart-toplist-settings-schema.json +117 -0
  103. package/schemas/charts/settings/chart-topology-settings-schema.json +71 -0
  104. package/schemas/charts/settings/chart-treemap-settings-schema.json +66 -0
  105. package/schemas/charts/settings/chart-worldmap-settings-schema.json +102 -0
  106. package/schemas/charts/settings/common-settings-schema.json +82 -0
  107. package/schemas/charts/settings/settings-alias-schema.json +47 -0
  108. package/schemas/charts/settings/settings-chart-type-schema.json +27 -0
  109. package/schemas/charts/settings/settings-colors-schema.json +46 -0
  110. package/schemas/charts/settings/settings-compare-schema.json +58 -0
  111. package/schemas/charts/settings/settings-fixed-time-schema.json +49 -0
  112. package/schemas/charts/settings/settings-levels-schema.json +33 -0
  113. package/schemas/charts/settings/settings-schema.json +79 -0
  114. package/schemas/charts/settings/settings-time-schema.json +47 -0
  115. package/schemas/charts/settings/settings-unit-items-schema.json +226 -0
  116. package/schemas/charts/settings/settings-units-schema.json +60 -0
  117. package/schemas/dashboard-schema.json +5 -0
  118. package/schemas/session-replay/browser/attribute-mutation-schema.json +21 -0
  119. package/schemas/session-replay/browser/attributes-schema.json +10 -0
  120. package/schemas/session-replay/browser/cdata-node-schema.json +19 -0
  121. package/schemas/session-replay/browser/creation-reason-schema.json +17 -0
  122. package/schemas/session-replay/browser/document-fragment-node-schema.json +35 -0
  123. package/schemas/session-replay/browser/document-node-schema.json +30 -0
  124. package/schemas/session-replay/browser/document-type-node-schema.json +28 -0
  125. package/schemas/session-replay/browser/element-node-schema.json +33 -0
  126. package/schemas/session-replay/browser/frustration-record-schema.json +49 -0
  127. package/schemas/session-replay/browser/full-snapshot-record-schema.json +26 -0
  128. package/schemas/session-replay/browser/incremental-data-schema.json +36 -0
  129. package/schemas/session-replay/browser/incremental-snapshot-record-schema.json +29 -0
  130. package/schemas/session-replay/browser/input-data-schema.json +27 -0
  131. package/schemas/session-replay/browser/input-state-schema.json +27 -0
  132. package/schemas/session-replay/browser/media-interaction-data-schema.json +23 -0
  133. package/schemas/session-replay/browser/media-interaction-schema.json +20 -0
  134. package/schemas/session-replay/browser/mouse-interaction-data-schema.json +23 -0
  135. package/schemas/session-replay/browser/mouse-interaction-schema.json +47 -0
  136. package/schemas/session-replay/browser/mouse-move-data-schema.json +23 -0
  137. package/schemas/session-replay/browser/mouse-position-schema.json +26 -0
  138. package/schemas/session-replay/browser/mutation-data-schema.json +23 -0
  139. package/schemas/session-replay/browser/mutation-payload-schema.json +42 -0
  140. package/schemas/session-replay/browser/node-added-mutation-schema.json +41 -0
  141. package/schemas/session-replay/browser/node-removed-mutation-schema.json +18 -0
  142. package/schemas/session-replay/browser/node-schema.json +28 -0
  143. package/schemas/session-replay/browser/record-schema.json +30 -0
  144. package/schemas/session-replay/browser/scroll-data-schema.json +23 -0
  145. package/schemas/session-replay/browser/scroll-position-schema.json +22 -0
  146. package/schemas/session-replay/browser/segment-metadata-schema.json +28 -0
  147. package/schemas/session-replay/browser/segment-schema.json +25 -0
  148. package/schemas/session-replay/browser/serialized-node-schema.json +15 -0
  149. package/schemas/session-replay/browser/serialized-node-with-id-schema.json +21 -0
  150. package/schemas/session-replay/browser/stylesheet-rule-add-schema.json +28 -0
  151. package/schemas/session-replay/browser/stylesheet-rule-data-schema.json +23 -0
  152. package/schemas/session-replay/browser/stylesheet-rule-delete-schema.json +24 -0
  153. package/schemas/session-replay/browser/stylesheet-rule-schema.json +29 -0
  154. package/schemas/session-replay/browser/stylesheet-schema.json +30 -0
  155. package/schemas/session-replay/browser/text-mutation-schema.json +27 -0
  156. package/schemas/session-replay/browser/text-node-schema.json +23 -0
  157. package/schemas/session-replay/common/_common-record-schema.json +14 -0
  158. package/schemas/session-replay/common/_common-segment-metadata-schema.json +30 -0
  159. package/schemas/session-replay/common/_slot-supported-common-record-schema.json +21 -0
  160. package/schemas/session-replay/common/focus-record-schema.json +34 -0
  161. package/schemas/session-replay/common/meta-record-schema.json +42 -0
  162. package/schemas/session-replay/common/pointer-interaction-data-schema.json +23 -0
  163. package/schemas/session-replay/common/pointer-interaction-schema.json +34 -0
  164. package/schemas/session-replay/common/segment-context-schema.json +46 -0
  165. package/schemas/session-replay/common/view-end-record-schema.json +23 -0
  166. package/schemas/session-replay/common/viewport-resize-data-schema.json +23 -0
  167. package/schemas/session-replay/common/viewport-resize-dimension-schema.json +18 -0
  168. package/schemas/session-replay/common/visual-viewport-record-schema.json +50 -0
  169. package/schemas/session-replay/full-snapshot-record-schema.json +14 -0
  170. package/schemas/session-replay/incremental-data-schema.json +14 -0
  171. package/schemas/session-replay/incremental-snapshot-record-schema.json +14 -0
  172. package/schemas/session-replay/mobile/_common-shape-wireframe-schema.json +22 -0
  173. package/schemas/session-replay/mobile/_common-shape-wireframe-update-schema.json +22 -0
  174. package/schemas/session-replay/mobile/_common-wireframe-schema.json +38 -0
  175. package/schemas/session-replay/mobile/_common-wireframe-update-schema.json +38 -0
  176. package/schemas/session-replay/mobile/full-snapshot-record-schema.json +38 -0
  177. package/schemas/session-replay/mobile/image-wireframe-schema.json +43 -0
  178. package/schemas/session-replay/mobile/image-wireframe-update-schema.json +43 -0
  179. package/schemas/session-replay/mobile/incremental-data-schema.json +21 -0
  180. package/schemas/session-replay/mobile/incremental-snapshot-record-schema.json +26 -0
  181. package/schemas/session-replay/mobile/mutation-data-schema.json +23 -0
  182. package/schemas/session-replay/mobile/mutation-payload-schema.json +55 -0
  183. package/schemas/session-replay/mobile/placeholder-wireframe-schema.json +28 -0
  184. package/schemas/session-replay/mobile/placeholder-wireframe-update-schema.json +28 -0
  185. package/schemas/session-replay/mobile/record-schema.json +27 -0
  186. package/schemas/session-replay/mobile/segment-metadata-schema.json +25 -0
  187. package/schemas/session-replay/mobile/segment-schema.json +25 -0
  188. package/schemas/session-replay/mobile/shape-border-schema.json +25 -0
  189. package/schemas/session-replay/mobile/shape-style-schema.json +29 -0
  190. package/schemas/session-replay/mobile/shape-wireframe-schema.json +23 -0
  191. package/schemas/session-replay/mobile/shape-wireframe-update-schema.json +23 -0
  192. package/schemas/session-replay/mobile/text-position-schema.json +57 -0
  193. package/schemas/session-replay/mobile/text-style-schema.json +31 -0
  194. package/schemas/session-replay/mobile/text-wireframe-schema.json +34 -0
  195. package/schemas/session-replay/mobile/text-wireframe-update-schema.json +34 -0
  196. package/schemas/session-replay/mobile/touch-data-schema.json +51 -0
  197. package/schemas/session-replay/mobile/webview-wireframe-schema.json +33 -0
  198. package/schemas/session-replay/mobile/webview-wireframe-update-schema.json +33 -0
  199. package/schemas/session-replay/mobile/wireframe-clip-schema.json +29 -0
  200. package/schemas/session-replay/mobile/wireframe-schema.json +24 -0
  201. package/schemas/session-replay/mobile/wireframe-update-mutation-schema.json +24 -0
  202. package/schemas/session-replay/mutation-data-schema.json +14 -0
  203. package/schemas/session-replay/mutation-payload-schema.json +14 -0
  204. package/schemas/session-replay/record-schema.json +14 -0
  205. package/schemas/session-replay/segment-metadata-schema.json +14 -0
  206. package/schemas/session-replay/segment-schema.json +15 -0
  207. package/schemas/session-replay-browser-schema.json +5 -0
  208. package/schemas/session-replay-mobile-schema.json +5 -0
  209. package/schemas/session-replay-schema.json +33 -0
  210. package/scripts/generate.mjs +96 -0
  211. package/scripts/utils.mjs +16 -0
  212. package/scripts/validate.mjs +144 -0
  213. package/tsconfig.cjs.json +7 -0
  214. package/tsconfig.esm.json +7 -0
  215. package/tsconfig.json +13 -0
  216. package/tsconfig.script.json +15 -0
@@ -0,0 +1,5 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` instead.
4
+ */
5
+ export {};
@@ -0,0 +1,653 @@
1
+ /**
2
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` instead.
3
+ */
4
+ /**
5
+ * Mobile-specific. Schema of a Session Replay data Segment.
6
+ */
7
+ export type MobileSegment = MobileSegmentMetadata & {
8
+ /**
9
+ * The records contained by this Segment.
10
+ */
11
+ records: MobileRecord[];
12
+ };
13
+ /**
14
+ * Mobile-specific. Schema of a Session Replay Segment metadata.
15
+ */
16
+ export type MobileSegmentMetadata = SegmentContext & CommonSegmentMetadataSchema & {
17
+ /**
18
+ * The source of this record
19
+ */
20
+ source: 'android' | 'ios' | 'flutter' | 'react-native';
21
+ };
22
+ /**
23
+ * Mobile-specific. Schema of a Session Replay Record.
24
+ */
25
+ export type MobileRecord = MobileFullSnapshotRecord | MobileIncrementalSnapshotRecord | MetaRecord | FocusRecord | ViewEndRecord | VisualViewportRecord;
26
+ /**
27
+ * Mobile-specific. Schema of a Record type which contains the full snapshot of a screen.
28
+ */
29
+ export type MobileFullSnapshotRecord = CommonRecordSchema & {
30
+ /**
31
+ * The type of this Record.
32
+ */
33
+ type: 10;
34
+ data: {
35
+ /**
36
+ * The Wireframes contained by this Record.
37
+ */
38
+ wireframes: Wireframe[];
39
+ };
40
+ };
41
+ /**
42
+ * Schema of a Wireframe type.
43
+ */
44
+ export type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
45
+ /**
46
+ * Schema of all properties of a ShapeWireframe.
47
+ */
48
+ export type ShapeWireframe = CommonShapeWireframe & {
49
+ /**
50
+ * The type of the wireframe.
51
+ */
52
+ type: 'shape';
53
+ };
54
+ /**
55
+ * Schema of common properties for ShapeWireframe events type and all its sub - types.
56
+ */
57
+ export type CommonShapeWireframe = CommonWireframe & {
58
+ shapeStyle?: ShapeStyle;
59
+ border?: ShapeBorder;
60
+ };
61
+ /**
62
+ * The style of this wireframe.
63
+ */
64
+ export type ShapeStyle = {
65
+ /**
66
+ * The background color for this wireframe as a String hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional. The default value is #FFFFFF00.
67
+ */
68
+ backgroundColor?: string;
69
+ /**
70
+ * The opacity of this wireframe. Takes values from 0 to 1, default value is 1.
71
+ */
72
+ opacity?: number;
73
+ /**
74
+ * The corner(border) radius of this wireframe in pixels. The default value is 0.
75
+ */
76
+ cornerRadius?: number;
77
+ };
78
+ /**
79
+ * The border properties of this wireframe. The default value is null (no-border).
80
+ */
81
+ export type ShapeBorder = {
82
+ /**
83
+ * The border color as a String hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
84
+ */
85
+ color: string;
86
+ /**
87
+ * The width of the border in pixels.
88
+ */
89
+ width: number;
90
+ };
91
+ /**
92
+ * Schema of all properties of a TextWireframe.
93
+ */
94
+ export type TextWireframe = CommonShapeWireframe & {
95
+ /**
96
+ * The type of the wireframe.
97
+ */
98
+ type: 'text';
99
+ /**
100
+ * The text value of the wireframe.
101
+ */
102
+ text: string;
103
+ textStyle: TextStyle;
104
+ textPosition?: TextPosition;
105
+ };
106
+ /**
107
+ * Schema of all properties of a TextStyle.
108
+ */
109
+ export type TextStyle = {
110
+ /**
111
+ * The preferred font family collection, ordered by preference and formatted as a String list: e.g. Century Gothic, Verdana, sans-serif
112
+ */
113
+ family: string;
114
+ /**
115
+ * The font size in pixels.
116
+ */
117
+ size: number;
118
+ /**
119
+ * The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
120
+ */
121
+ color: string;
122
+ };
123
+ /**
124
+ * Schema of all properties of a TextPosition.
125
+ */
126
+ export type TextPosition = {
127
+ padding?: {
128
+ /**
129
+ * The top padding in pixels. The default value is 0.
130
+ */
131
+ top?: number;
132
+ /**
133
+ * The bottom padding in pixels. The default value is 0.
134
+ */
135
+ bottom?: number;
136
+ /**
137
+ * The left padding in pixels. The default value is 0.
138
+ */
139
+ left?: number;
140
+ /**
141
+ * The right padding in pixels. The default value is 0.
142
+ */
143
+ right?: number;
144
+ };
145
+ alignment?: {
146
+ /**
147
+ * The horizontal text alignment. The default value is `left`.
148
+ */
149
+ horizontal?: 'left' | 'right' | 'center';
150
+ /**
151
+ * The vertical text alignment. The default value is `top`.
152
+ */
153
+ vertical?: 'top' | 'bottom' | 'center';
154
+ };
155
+ };
156
+ /**
157
+ * Schema of all properties of a ImageWireframe.
158
+ */
159
+ export type ImageWireframe = CommonShapeWireframe & {
160
+ /**
161
+ * The type of the wireframe.
162
+ */
163
+ type: 'image';
164
+ /**
165
+ * base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64
166
+ */
167
+ base64?: string;
168
+ /**
169
+ * Unique identifier of the image resource
170
+ */
171
+ resourceId?: string;
172
+ /**
173
+ * MIME type of the image file
174
+ */
175
+ mimeType?: string;
176
+ /**
177
+ * Flag describing an image wireframe that should render an empty state placeholder
178
+ */
179
+ isEmpty?: boolean;
180
+ };
181
+ /**
182
+ * Schema of all properties of a PlaceholderWireframe.
183
+ */
184
+ export type PlaceholderWireframe = CommonWireframe & {
185
+ /**
186
+ * The type of the wireframe.
187
+ */
188
+ type: 'placeholder';
189
+ /**
190
+ * Label of the placeholder
191
+ */
192
+ label?: string;
193
+ };
194
+ /**
195
+ * Schema of all properties of a WebviewWireframe.
196
+ */
197
+ export type WebviewWireframe = CommonShapeWireframe & {
198
+ /**
199
+ * The type of the wireframe.
200
+ */
201
+ type: 'webview';
202
+ /**
203
+ * Unique Id of the slot containing this webview.
204
+ */
205
+ slotId: string;
206
+ /**
207
+ * Whether this webview is visible or not.
208
+ */
209
+ isVisible?: boolean;
210
+ };
211
+ /**
212
+ * Mobile-specific. Schema of a Record type which contains mutations of a screen.
213
+ */
214
+ export type MobileIncrementalSnapshotRecord = CommonRecordSchema & {
215
+ /**
216
+ * The type of this Record.
217
+ */
218
+ type: 11;
219
+ data: MobileIncrementalData;
220
+ };
221
+ /**
222
+ * Mobile-specific. Schema of a Session Replay IncrementalData type.
223
+ */
224
+ export type MobileIncrementalData = MobileMutationData | TouchData | ViewportResizeData | PointerInteractionData;
225
+ /**
226
+ * Mobile-specific. Schema of a MutationData.
227
+ */
228
+ export type MobileMutationData = {
229
+ /**
230
+ * The source of this type of incremental data.
231
+ */
232
+ source: 0;
233
+ } & MobileMutationPayload;
234
+ /**
235
+ * Mobile-specific. Schema of a MutationPayload.
236
+ */
237
+ export type MobileMutationPayload = {
238
+ /**
239
+ * Contains the newly added wireframes.
240
+ */
241
+ adds?: {
242
+ /**
243
+ * The previous wireframe id next or after which this new wireframe is drawn or attached to, respectively.
244
+ */
245
+ previousId?: number;
246
+ wireframe: Wireframe;
247
+ }[];
248
+ /**
249
+ * Contains the removed wireframes as an array of ids.
250
+ */
251
+ removes?: {
252
+ /**
253
+ * The id of the wireframe that needs to be removed.
254
+ */
255
+ id: number;
256
+ }[];
257
+ /**
258
+ * Contains the updated wireframes mutations.
259
+ */
260
+ updates?: WireframeUpdateMutation[];
261
+ };
262
+ /**
263
+ * Schema of a WireframeUpdateMutation type.
264
+ */
265
+ export type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
266
+ /**
267
+ * Schema of all properties of a TextWireframeUpdate.
268
+ */
269
+ export type TextWireframeUpdate = CommonShapeWireframeUpdate & {
270
+ /**
271
+ * The type of the wireframe.
272
+ */
273
+ type: 'text';
274
+ /**
275
+ * The text value of the wireframe.
276
+ */
277
+ text?: string;
278
+ textStyle?: TextStyle;
279
+ textPosition?: TextPosition;
280
+ };
281
+ /**
282
+ * Schema of common properties for ShapeWireframeUpdate events type and all its sub - types.
283
+ */
284
+ export type CommonShapeWireframeUpdate = CommonWireframeUpdate & {
285
+ shapeStyle?: ShapeStyle;
286
+ border?: ShapeBorder;
287
+ };
288
+ /**
289
+ * Schema of a ShapeWireframeUpdate.
290
+ */
291
+ export type ShapeWireframeUpdate = CommonShapeWireframeUpdate & {
292
+ /**
293
+ * The type of the wireframe.
294
+ */
295
+ type: 'shape';
296
+ };
297
+ /**
298
+ * Schema of all properties of a ImageWireframeUpdate.
299
+ */
300
+ export type ImageWireframeUpdate = CommonShapeWireframeUpdate & {
301
+ /**
302
+ * The type of the wireframe.
303
+ */
304
+ type: 'image';
305
+ /**
306
+ * base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64
307
+ */
308
+ base64?: string;
309
+ /**
310
+ * Unique identifier of the image resource
311
+ */
312
+ resourceId?: string;
313
+ /**
314
+ * MIME type of the image file
315
+ */
316
+ mimeType?: string;
317
+ /**
318
+ * Flag describing an image wireframe that should render an empty state placeholder
319
+ */
320
+ isEmpty?: boolean;
321
+ };
322
+ /**
323
+ * Schema of all properties of a PlaceholderWireframe.
324
+ */
325
+ export type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
326
+ /**
327
+ * The type of the wireframe.
328
+ */
329
+ type: 'placeholder';
330
+ /**
331
+ * Label of the placeholder
332
+ */
333
+ label?: string;
334
+ };
335
+ /**
336
+ * Schema of all properties of a WebviewWireframeUpdate.
337
+ */
338
+ export type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
339
+ /**
340
+ * The type of the wireframe.
341
+ */
342
+ type: 'webview';
343
+ /**
344
+ * Unique Id of the slot containing this webview.
345
+ */
346
+ slotId: string;
347
+ /**
348
+ * Whether this webview is visible or not.
349
+ */
350
+ isVisible?: boolean;
351
+ };
352
+ /**
353
+ * Schema of a TouchData.
354
+ */
355
+ export type TouchData = {
356
+ /**
357
+ * The source of this type of incremental data.
358
+ */
359
+ source: 2;
360
+ /**
361
+ * Contains the positions of the finger on the screen during the touchDown/touchUp event lifecycle.
362
+ */
363
+ positions?: {
364
+ /**
365
+ * The touch id of the touch event this position corresponds to. In mobile it is possible to have multiple touch events (fingers touching the screen) happening at the same time.
366
+ */
367
+ id: number;
368
+ /**
369
+ * The x coordinate value of the position.
370
+ */
371
+ x: number;
372
+ /**
373
+ * The y coordinate value of the position.
374
+ */
375
+ y: number;
376
+ /**
377
+ * The UTC timestamp in milliseconds corresponding to the moment the position change was recorded. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
378
+ */
379
+ timestamp: number;
380
+ }[];
381
+ };
382
+ /**
383
+ * Schema of a ViewportResizeData.
384
+ */
385
+ export type ViewportResizeData = {
386
+ /**
387
+ * The source of this type of incremental data.
388
+ */
389
+ source: 4;
390
+ } & ViewportResizeDimension;
391
+ /**
392
+ * Schema of a PointerInteractionData.
393
+ */
394
+ export type PointerInteractionData = {
395
+ /**
396
+ * The source of this type of incremental data.
397
+ */
398
+ source: 9;
399
+ } & PointerInteraction;
400
+ /**
401
+ * Schema of a Record which contains the screen properties.
402
+ */
403
+ export type MetaRecord = SlotSupportedCommonRecordSchema & {
404
+ /**
405
+ * The type of this Record.
406
+ */
407
+ type: 4;
408
+ /**
409
+ * The data contained by this record.
410
+ */
411
+ data: {
412
+ /**
413
+ * The width of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the normalized width is the current width divided by 2.
414
+ */
415
+ width: number;
416
+ /**
417
+ * The height of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the normalized height is the current height divided by 2.
418
+ */
419
+ height: number;
420
+ /**
421
+ * Browser-specific. URL of the view described by this record.
422
+ */
423
+ href?: string;
424
+ };
425
+ };
426
+ /**
427
+ * Schema of common properties for a Record event type that is supported by slots.
428
+ */
429
+ export type SlotSupportedCommonRecordSchema = CommonRecordSchema & {
430
+ /**
431
+ * Unique ID of the slot that generated this record.
432
+ */
433
+ slotId?: string;
434
+ };
435
+ /**
436
+ * Schema of a Record type which contains focus information.
437
+ */
438
+ export type FocusRecord = SlotSupportedCommonRecordSchema & {
439
+ /**
440
+ * The type of this Record.
441
+ */
442
+ type: 6;
443
+ data: {
444
+ /**
445
+ * Whether this screen has a focus or not. For now it will always be true for mobile.
446
+ */
447
+ has_focus: boolean;
448
+ };
449
+ };
450
+ /**
451
+ * Schema of a Record which signifies that view lifecycle ended.
452
+ */
453
+ export type ViewEndRecord = SlotSupportedCommonRecordSchema & {
454
+ /**
455
+ * The type of this Record.
456
+ */
457
+ type: 7;
458
+ };
459
+ /**
460
+ * Schema of a Record which signifies that the viewport properties have changed.
461
+ */
462
+ export type VisualViewportRecord = SlotSupportedCommonRecordSchema & {
463
+ data: {
464
+ height: number;
465
+ offsetLeft: number;
466
+ offsetTop: number;
467
+ pageLeft: number;
468
+ pageTop: number;
469
+ scale: number;
470
+ width: number;
471
+ };
472
+ /**
473
+ * The type of this Record.
474
+ */
475
+ type: 8;
476
+ };
477
+ /**
478
+ * Schema of a Session Replay Segment context.
479
+ */
480
+ export interface SegmentContext {
481
+ /**
482
+ * Application properties
483
+ */
484
+ application: {
485
+ /**
486
+ * UUID of the application
487
+ */
488
+ id: string;
489
+ };
490
+ /**
491
+ * Session properties
492
+ */
493
+ session: {
494
+ /**
495
+ * UUID of the session
496
+ */
497
+ id: string;
498
+ };
499
+ /**
500
+ * View properties
501
+ */
502
+ view: {
503
+ /**
504
+ * UUID of the view
505
+ */
506
+ id: string;
507
+ };
508
+ }
509
+ /**
510
+ * Schema of common properties for a Segment Metadata type.
511
+ */
512
+ export interface CommonSegmentMetadataSchema {
513
+ /**
514
+ * The start UTC timestamp in milliseconds corresponding to the first record in the Segment data. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
515
+ */
516
+ start: number;
517
+ /**
518
+ * The end UTC timestamp in milliseconds corresponding to the last record in the Segment data. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
519
+ */
520
+ end: number;
521
+ /**
522
+ * The number of records in this Segment.
523
+ */
524
+ records_count: number;
525
+ /**
526
+ * The index of this Segment in the segments list that was recorded for this view ID. Starts from 0.
527
+ */
528
+ index_in_view?: number;
529
+ /**
530
+ * Whether this Segment contains a full snapshot record or not.
531
+ */
532
+ has_full_snapshot?: boolean;
533
+ }
534
+ /**
535
+ * Schema of common properties for a Record event type.
536
+ */
537
+ export interface CommonRecordSchema {
538
+ /**
539
+ * Defines the UTC time in milliseconds when this Record was performed.
540
+ */
541
+ timestamp: number;
542
+ }
543
+ /**
544
+ * Schema of common properties for Wireframe events type.
545
+ */
546
+ export interface CommonWireframe {
547
+ /**
548
+ * Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.
549
+ */
550
+ id: number;
551
+ /**
552
+ * The position in pixels on X axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
553
+ */
554
+ x: number;
555
+ /**
556
+ * The position in pixels on Y axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
557
+ */
558
+ y: number;
559
+ /**
560
+ * The width in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width of all UI elements is divided by 2 to get a normalized width.
561
+ */
562
+ width: number;
563
+ /**
564
+ * The height in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height of all UI elements is divided by 2 to get a normalized height.
565
+ */
566
+ height: number;
567
+ clip?: WireframeClip;
568
+ }
569
+ /**
570
+ * Schema of clipping information for a Wireframe.
571
+ */
572
+ export interface WireframeClip {
573
+ /**
574
+ * The amount of space in pixels that needs to be clipped (masked) at the top of the wireframe.
575
+ */
576
+ top?: number;
577
+ /**
578
+ * The amount of space in pixels that needs to be clipped (masked) at the bottom of the wireframe.
579
+ */
580
+ bottom?: number;
581
+ /**
582
+ * The amount of space in pixels that needs to be clipped (masked) at the left of the wireframe.
583
+ */
584
+ left?: number;
585
+ /**
586
+ * The amount of space in pixels that needs to be clipped (masked) at the right of the wireframe.
587
+ */
588
+ right?: number;
589
+ }
590
+ /**
591
+ * Schema of common properties for WireframeUpdate events type.
592
+ */
593
+ export interface CommonWireframeUpdate {
594
+ /**
595
+ * Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.
596
+ */
597
+ id: number;
598
+ /**
599
+ * The position in pixels on X axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
600
+ */
601
+ x?: number;
602
+ /**
603
+ * The position in pixels on Y axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
604
+ */
605
+ y?: number;
606
+ /**
607
+ * The width in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width of all UI elements is divided by 2 to get a normalized width.
608
+ */
609
+ width?: number;
610
+ /**
611
+ * The height in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height of all UI elements is divided by 2 to get a normalized height.
612
+ */
613
+ height?: number;
614
+ clip?: WireframeClip;
615
+ }
616
+ /**
617
+ * Schema of a ViewportResizeDimension.
618
+ */
619
+ export interface ViewportResizeDimension {
620
+ /**
621
+ * The new width of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width is divided by 2 to get a normalized width.
622
+ */
623
+ width: number;
624
+ /**
625
+ * The new height of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height is divided by 2 to get a normalized height.
626
+ */
627
+ height: number;
628
+ }
629
+ /**
630
+ * Schema of a PointerInteraction.
631
+ */
632
+ export interface PointerInteraction {
633
+ /**
634
+ * Schema of an PointerEventType
635
+ */
636
+ pointerEventType: 'down' | 'up' | 'move';
637
+ /**
638
+ * Schema of an PointerType
639
+ */
640
+ pointerType: 'mouse' | 'touch' | 'pen';
641
+ /**
642
+ * Id of the pointer of this PointerInteraction.
643
+ */
644
+ pointerId: number;
645
+ /**
646
+ * X-axis coordinate for this PointerInteraction.
647
+ */
648
+ x: number;
649
+ /**
650
+ * Y-axis coordinate for this PointerInteraction.
651
+ */
652
+ y: number;
653
+ }
@@ -0,0 +1,5 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` instead.
4
+ */
5
+ export {};