@ogcio/analytics-sdk 0.0.1-beta.3 → 0.1.0-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.
package/dist/schema.d.ts CHANGED
@@ -28,43 +28,48 @@ export interface paths {
28
28
  content: {
29
29
  "application/json": {
30
30
  data: {
31
+ siteIds: number[] & number[];
31
32
  /** @description The tracker url of the website */
32
- tracker_url: string;
33
+ trackerUrl: string;
33
34
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
34
35
  cookieless: boolean;
35
36
  /** @description Bypass adblockers using custom tracker url */
36
- bypass_adblockers: boolean;
37
+ bypassAdblockers: boolean;
37
38
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
38
- track_page_view: boolean;
39
+ trackPageView: boolean;
39
40
  /** @description Whether to enable automatic tracking of outlinks and downloads */
40
- link_tracking: boolean;
41
+ linkTracking: boolean;
41
42
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
42
- heart_beat_timer: number;
43
+ heartBeatTimer: number;
43
44
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
44
- browser_feature_detection: boolean;
45
+ browserFeatureDetection: boolean;
45
46
  /** @description Whether to track bots and spiders. Default is false. */
46
- track_bots: boolean;
47
- custom_dimensions: {
48
- [key: string]: string;
49
- } & {
50
- [key: string]: string;
51
- };
47
+ trackBots: boolean;
52
48
  /**
53
49
  * Format: uuid
54
- * @description The UUID of the website config
50
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
55
51
  */
56
52
  id: string;
57
53
  /** @description The name of the website config */
58
54
  name: string;
59
55
  /** @description The domain of the website config */
60
56
  domain: string;
61
- site_ids: number[];
62
57
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
63
- organization_id: string;
58
+ organizationId: string;
64
59
  /** @description The creation date of the website config */
65
- created_at: string;
60
+ createdAt: string;
66
61
  /** @description The update date of the website config */
67
- updated_at: string;
62
+ updatedAt: string;
63
+ /**
64
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
65
+ * @example {
66
+ * "dimension1": "value1",
67
+ * "dimension2": "value2"
68
+ * }
69
+ */
70
+ customDimensions: {
71
+ [key: string]: string;
72
+ };
68
73
  }[];
69
74
  };
70
75
  };
@@ -85,37 +90,33 @@ export interface paths {
85
90
  requestBody: {
86
91
  content: {
87
92
  "application/json": {
88
- /** @description The tracker url of the website */
89
- tracker_url: string;
90
- /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
93
+ siteIds: number[] & (number[] & number[]);
94
+ trackerUrl: string;
91
95
  cookieless: boolean;
92
- /** @description Bypass adblockers using custom tracker url */
93
- bypass_adblockers: boolean;
94
- /** @description Whether to track page views automatically when the JavaScript tracking code loads */
95
- track_page_view: boolean;
96
- /** @description Whether to enable automatic tracking of outlinks and downloads */
97
- link_tracking: boolean;
98
- /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
99
- heart_beat_timer: number;
100
- /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
101
- browser_feature_detection: boolean;
102
- /** @description Whether to track bots and spiders. Default is false. */
103
- track_bots: boolean;
104
- custom_dimensions: {
105
- [key: string]: string;
106
- } & {
107
- [key: string]: string;
108
- };
96
+ bypassAdblockers: boolean;
97
+ trackPageView: boolean;
98
+ linkTracking: boolean;
99
+ heartBeatTimer: number;
100
+ browserFeatureDetection: boolean;
101
+ trackBots: boolean;
109
102
  /** @description The name of the website config */
110
103
  name: string;
111
104
  /** @description The domain of the website config */
112
105
  domain: string;
113
- site_ids: number[];
114
106
  /**
115
- * Format: uuid
116
- * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
107
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
108
+ * @example {
109
+ * "dimension1": "value1",
110
+ * "dimension2": "value2"
111
+ * }
117
112
  */
113
+ customDimensions: {
114
+ [key: string]: string;
115
+ };
116
+ /** Format: uuid */
118
117
  id?: string;
118
+ /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
119
+ organizationId?: string;
119
120
  };
120
121
  };
121
122
  };
@@ -128,43 +129,48 @@ export interface paths {
128
129
  content: {
129
130
  "application/json": {
130
131
  data: {
132
+ siteIds: number[] & number[];
131
133
  /** @description The tracker url of the website */
132
- tracker_url: string;
134
+ trackerUrl: string;
133
135
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
134
136
  cookieless: boolean;
135
137
  /** @description Bypass adblockers using custom tracker url */
136
- bypass_adblockers: boolean;
138
+ bypassAdblockers: boolean;
137
139
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
138
- track_page_view: boolean;
140
+ trackPageView: boolean;
139
141
  /** @description Whether to enable automatic tracking of outlinks and downloads */
140
- link_tracking: boolean;
142
+ linkTracking: boolean;
141
143
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
142
- heart_beat_timer: number;
144
+ heartBeatTimer: number;
143
145
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
144
- browser_feature_detection: boolean;
146
+ browserFeatureDetection: boolean;
145
147
  /** @description Whether to track bots and spiders. Default is false. */
146
- track_bots: boolean;
147
- custom_dimensions: {
148
- [key: string]: string;
149
- } & {
150
- [key: string]: string;
151
- };
148
+ trackBots: boolean;
152
149
  /**
153
150
  * Format: uuid
154
- * @description The UUID of the website config
151
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
155
152
  */
156
153
  id: string;
157
154
  /** @description The name of the website config */
158
155
  name: string;
159
156
  /** @description The domain of the website config */
160
157
  domain: string;
161
- site_ids: number[];
162
158
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
163
- organization_id: string;
159
+ organizationId: string;
164
160
  /** @description The creation date of the website config */
165
- created_at: string;
161
+ createdAt: string;
166
162
  /** @description The update date of the website config */
167
- updated_at: string;
163
+ updatedAt: string;
164
+ /**
165
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
166
+ * @example {
167
+ * "dimension1": "value1",
168
+ * "dimension2": "value2"
169
+ * }
170
+ */
171
+ customDimensions: {
172
+ [key: string]: string;
173
+ };
168
174
  };
169
175
  };
170
176
  };
@@ -189,7 +195,7 @@ export interface paths {
189
195
  parameters: {
190
196
  query?: {
191
197
  /** @description Organization ID is only required when the user is not logged in, otherwise the organization ID is retrieved from the user data. */
192
- org_id?: string;
198
+ orgId?: string;
193
199
  };
194
200
  header?: never;
195
201
  path: {
@@ -208,43 +214,48 @@ export interface paths {
208
214
  content: {
209
215
  "application/json": {
210
216
  data: {
217
+ siteIds: number[] & number[];
211
218
  /** @description The tracker url of the website */
212
- tracker_url: string;
219
+ trackerUrl: string;
213
220
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
214
221
  cookieless: boolean;
215
222
  /** @description Bypass adblockers using custom tracker url */
216
- bypass_adblockers: boolean;
223
+ bypassAdblockers: boolean;
217
224
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
218
- track_page_view: boolean;
225
+ trackPageView: boolean;
219
226
  /** @description Whether to enable automatic tracking of outlinks and downloads */
220
- link_tracking: boolean;
227
+ linkTracking: boolean;
221
228
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
222
- heart_beat_timer: number;
229
+ heartBeatTimer: number;
223
230
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
224
- browser_feature_detection: boolean;
231
+ browserFeatureDetection: boolean;
225
232
  /** @description Whether to track bots and spiders. Default is false. */
226
- track_bots: boolean;
227
- custom_dimensions: {
228
- [key: string]: string;
229
- } & {
230
- [key: string]: string;
231
- };
233
+ trackBots: boolean;
232
234
  /**
233
235
  * Format: uuid
234
- * @description The UUID of the website config
236
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
235
237
  */
236
238
  id: string;
237
239
  /** @description The name of the website config */
238
240
  name: string;
239
241
  /** @description The domain of the website config */
240
242
  domain: string;
241
- site_ids: number[];
242
243
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
243
- organization_id: string;
244
+ organizationId: string;
244
245
  /** @description The creation date of the website config */
245
- created_at: string;
246
+ createdAt: string;
246
247
  /** @description The update date of the website config */
247
- updated_at: string;
248
+ updatedAt: string;
249
+ /**
250
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
251
+ * @example {
252
+ * "dimension1": "value1",
253
+ * "dimension2": "value2"
254
+ * }
255
+ */
256
+ customDimensions: {
257
+ [key: string]: string;
258
+ };
248
259
  };
249
260
  };
250
261
  };
@@ -272,32 +283,31 @@ export interface paths {
272
283
  requestBody?: {
273
284
  content: {
274
285
  "application/json": {
275
- /** @description The tracker url of the website */
276
- tracker_url?: string;
277
- /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
286
+ siteIds?: number[] & (number[] & number[]);
287
+ trackerUrl?: string;
278
288
  cookieless?: boolean;
279
- /** @description Bypass adblockers using custom tracker url */
280
- bypass_adblockers?: boolean;
281
- /** @description Whether to track page views automatically when the JavaScript tracking code loads */
282
- track_page_view?: boolean;
283
- /** @description Whether to enable automatic tracking of outlinks and downloads */
284
- link_tracking?: boolean;
285
- /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
286
- heart_beat_timer?: number;
287
- /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
288
- browser_feature_detection?: boolean;
289
- /** @description Whether to track bots and spiders. Default is false. */
290
- track_bots?: boolean;
291
- custom_dimensions?: {
292
- [key: string]: string;
293
- } & {
294
- [key: string]: string;
295
- };
289
+ bypassAdblockers?: boolean;
290
+ trackPageView?: boolean;
291
+ linkTracking?: boolean;
292
+ heartBeatTimer?: number;
293
+ browserFeatureDetection?: boolean;
294
+ trackBots?: boolean;
296
295
  /** @description The name of the website config */
297
296
  name?: string;
298
297
  /** @description The domain of the website config */
299
298
  domain?: string;
300
- site_ids?: number[];
299
+ /**
300
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
301
+ * @example {
302
+ * "dimension1": "value1",
303
+ * "dimension2": "value2"
304
+ * }
305
+ */
306
+ customDimensions?: {
307
+ [key: string]: string;
308
+ };
309
+ /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
310
+ organizationId?: string;
301
311
  };
302
312
  };
303
313
  };
@@ -310,48 +320,48 @@ export interface paths {
310
320
  content: {
311
321
  "application/json": {
312
322
  data: {
323
+ siteIds: number[] & number[];
313
324
  /** @description The tracker url of the website */
314
- tracker_url: string;
325
+ trackerUrl: string;
315
326
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
316
327
  cookieless: boolean;
317
328
  /** @description Bypass adblockers using custom tracker url */
318
- bypass_adblockers: boolean;
329
+ bypassAdblockers: boolean;
319
330
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
320
- track_page_view: boolean;
331
+ trackPageView: boolean;
321
332
  /** @description Whether to enable automatic tracking of outlinks and downloads */
322
- link_tracking: boolean;
333
+ linkTracking: boolean;
323
334
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
324
- heart_beat_timer: number;
335
+ heartBeatTimer: number;
325
336
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
326
- browser_feature_detection: boolean;
337
+ browserFeatureDetection: boolean;
327
338
  /** @description Whether to track bots and spiders. Default is false. */
328
- track_bots: boolean;
329
- /**
330
- * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
331
- * @example {
332
- * "dimension1": "value1",
333
- * "dimension2": "value2"
334
- * }
335
- */
336
- custom_dimensions?: {
337
- [key: string]: string;
338
- };
339
+ trackBots: boolean;
339
340
  /**
340
341
  * Format: uuid
341
- * @description The UUID of the website config
342
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
342
343
  */
343
344
  id: string;
344
345
  /** @description The name of the website config */
345
346
  name: string;
346
347
  /** @description The domain of the website config */
347
348
  domain: string;
348
- site_ids: number[];
349
349
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
350
- organization_id: string;
350
+ organizationId: string;
351
351
  /** @description The creation date of the website config */
352
- created_at: string;
352
+ createdAt: string;
353
353
  /** @description The update date of the website config */
354
- updated_at: string;
354
+ updatedAt: string;
355
+ /**
356
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
357
+ * @example {
358
+ * "dimension1": "value1",
359
+ * "dimension2": "value2"
360
+ * }
361
+ */
362
+ customDimensions: {
363
+ [key: string]: string;
364
+ };
355
365
  };
356
366
  };
357
367
  };
@@ -371,25 +381,25 @@ export interface paths {
371
381
  get: {
372
382
  parameters: {
373
383
  query?: {
374
- site_ids?: number[];
384
+ siteIds?: number[];
375
385
  /** @description The tracker url of the website */
376
- tracker_url?: string;
386
+ trackerUrl?: string;
377
387
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
378
388
  cookieless?: boolean;
379
389
  /** @description Bypass adblockers using custom tracker url */
380
- bypass_adblockers?: boolean;
390
+ bypassAdblockers?: boolean;
381
391
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
382
- track_page_view?: boolean;
392
+ trackPageView?: boolean;
383
393
  /** @description Whether to enable automatic tracking of outlinks and downloads */
384
- link_tracking?: boolean;
394
+ linkTracking?: boolean;
385
395
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
386
- heart_beat_timer?: number;
396
+ heartBeatTimer?: number;
387
397
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
388
- browser_feature_detection?: boolean;
398
+ browserFeatureDetection?: boolean;
389
399
  /** @description Whether to track bots and spiders. Default is false. */
390
- track_bots?: boolean;
400
+ trackBots?: boolean;
391
401
  /** @description The custom user ID to track */
392
- user_id?: string;
402
+ userId?: string;
393
403
  };
394
404
  header?: never;
395
405
  path: {
@@ -471,7 +481,7 @@ export interface paths {
471
481
  */
472
482
  value?: number;
473
483
  };
474
- metadata?: {
484
+ metadataOverride?: {
475
485
  /** @description The URL of the page */
476
486
  url?: string;
477
487
  /** @description The user agent of the user */
@@ -498,7 +508,7 @@ export interface paths {
498
508
  };
499
509
  };
500
510
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
501
- site_ids?: number[];
511
+ siteIds?: number[];
502
512
  };
503
513
  };
504
514
  };
@@ -549,10 +559,10 @@ export interface paths {
549
559
  content: {
550
560
  "application/json": {
551
561
  event: {
552
- /** @description Custom title for the page view, overrides the default title of the page. */
553
- action_name: string;
562
+ /** @description The title of the page */
563
+ title: string;
554
564
  };
555
- metadata?: {
565
+ metadataOverride?: {
556
566
  /** @description The URL of the page */
557
567
  url?: string;
558
568
  /** @description The user agent of the user */
@@ -579,7 +589,7 @@ export interface paths {
579
589
  };
580
590
  };
581
591
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
582
- site_ids?: number[];
592
+ siteIds?: number[];
583
593
  };
584
594
  };
585
595
  };
@@ -631,13 +641,13 @@ export interface paths {
631
641
  "application/json": {
632
642
  event: {
633
643
  /** @description The search keyword,When specified, the request will not be tracked as a normal pageview but will instead be tracked as a Site Search request. */
634
- search_keyword: string;
644
+ query: string;
635
645
  /** @description when search is specified, you can optionally specify a search category with this parameter. */
636
- search_category?: string;
637
- /** @description when search is specified, we also recommend setting the search_count to the number of search results displayed on the results page. When keywords are tracked with &search_count=0 they will appear in the 'No Result Search Keyword' report. */
638
- search_count?: number;
646
+ category?: string;
647
+ /** @description when search is specified, we also recommend setting count to the number of search results displayed on the results page. When keywords are tracked with &search_count=0 they will appear in the 'No Result Search Keyword' report. */
648
+ count?: number;
639
649
  };
640
- metadata?: {
650
+ metadataOverride?: {
641
651
  /** @description The URL of the page */
642
652
  url?: string;
643
653
  /** @description The user agent of the user */
@@ -664,7 +674,7 @@ export interface paths {
664
674
  };
665
675
  };
666
676
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
667
- site_ids?: number[];
677
+ siteIds?: number[];
668
678
  };
669
679
  };
670
680
  };
@@ -720,7 +730,7 @@ export interface paths {
720
730
  /** @description The URL of the link */
721
731
  link: string;
722
732
  };
723
- metadata?: {
733
+ metadataOverride?: {
724
734
  /** @description The URL of the page */
725
735
  url?: string;
726
736
  /** @description The user agent of the user */
@@ -747,7 +757,7 @@ export interface paths {
747
757
  };
748
758
  };
749
759
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
750
- site_ids?: number[];
760
+ siteIds?: number[];
751
761
  };
752
762
  };
753
763
  };
@@ -799,13 +809,13 @@ export interface paths {
799
809
  "application/json": {
800
810
  event: {
801
811
  /** @description The name of the content block */
802
- content_name: string;
812
+ name: string;
803
813
  /** @description The piece of the content that was displayed (e.g. link to an image) */
804
- content_piece: string;
814
+ piece: string;
805
815
  /** @description The target of the content leads to (e.g. URL of some external website) */
806
- content_target: string;
816
+ target: string;
807
817
  };
808
- metadata?: {
818
+ metadataOverride?: {
809
819
  /** @description The URL of the page */
810
820
  url?: string;
811
821
  /** @description The user agent of the user */
@@ -832,7 +842,7 @@ export interface paths {
832
842
  };
833
843
  };
834
844
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
835
- site_ids?: number[];
845
+ siteIds?: number[];
836
846
  };
837
847
  };
838
848
  };
@@ -884,15 +894,15 @@ export interface paths {
884
894
  "application/json": {
885
895
  event: {
886
896
  /** @description The name of the content block */
887
- content_name: string;
897
+ name: string;
888
898
  /** @description The piece of the content that was displayed (e.g. link to an image) */
889
- content_piece: string;
899
+ piece: string;
890
900
  /** @description The target of the content leads to (e.g. URL of some external website) */
891
- content_target: string;
901
+ target: string;
892
902
  /** @description The interaction of the content, example: 'click' */
893
- content_interaction: string;
903
+ interaction: string;
894
904
  };
895
- metadata?: {
905
+ metadataOverride?: {
896
906
  /** @description The URL of the page */
897
907
  url?: string;
898
908
  /** @description The user agent of the user */
@@ -919,7 +929,7 @@ export interface paths {
919
929
  };
920
930
  };
921
931
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
922
- site_ids?: number[];
932
+ siteIds?: number[];
923
933
  };
924
934
  };
925
935
  };