@ogcio/analytics-sdk 0.0.1-beta.1 → 0.0.1-beta.3
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/base/base-client.d.ts +2 -7
- package/dist/base/base-client.d.ts.map +1 -1
- package/dist/base/base-client.js +3 -15
- package/dist/base/base-client.js.map +1 -0
- package/{types.d.ts → dist/browser-types.d.ts} +1 -1
- package/dist/index.d.ts +400 -597
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +332 -198
- package/dist/index.js.map +1 -0
- package/dist/matomo/helpers.d.ts +15 -0
- package/dist/matomo/helpers.d.ts.map +1 -1
- package/dist/matomo/helpers.js +80 -0
- package/dist/matomo/helpers.js.map +1 -0
- package/dist/matomo/types.d.ts +6 -2
- package/dist/matomo/types.d.ts.map +1 -1
- package/dist/matomo/types.js +1 -0
- package/dist/matomo/types.js.map +1 -0
- package/dist/schema.d.ts +223 -387
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -0
- package/dist/schema.js.map +1 -0
- package/dist/support-files/auth/index.js +1 -0
- package/dist/support-files/auth/index.js.map +1 -0
- package/dist/support-files/auth/types.d.ts +1 -1
- package/dist/support-files/auth/types.d.ts.map +1 -1
- package/dist/support-files/auth/types.js +1 -0
- package/dist/support-files/auth/types.js.map +1 -0
- package/dist/support-files/building-blocks-sdk.d.ts +1 -1
- package/dist/support-files/building-blocks-sdk.d.ts.map +1 -1
- package/dist/support-files/building-blocks-sdk.js +1 -0
- package/dist/support-files/building-blocks-sdk.js.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +24 -16
- package/dist/ogcio-analytics-sdk-0.0.1.tgz +0 -0
- package/dist/package/dist/base/base-client.d.ts +0 -36
- package/dist/package/dist/base/base-client.d.ts.map +0 -1
- package/dist/package/dist/base/base-client.js +0 -96
- package/dist/package/dist/index.d.ts +0 -651
- package/dist/package/dist/index.d.ts.map +0 -1
- package/dist/package/dist/index.js +0 -321
- package/dist/package/dist/matomo/helpers.d.ts +0 -9
- package/dist/package/dist/matomo/helpers.d.ts.map +0 -1
- package/dist/package/dist/matomo/helpers.js +0 -10
- package/dist/package/dist/matomo/types.d.ts +0 -33
- package/dist/package/dist/matomo/types.d.ts.map +0 -1
- package/dist/package/dist/matomo/types.js +0 -1
- package/dist/package/dist/schema.d.ts +0 -1295
- package/dist/package/dist/schema.d.ts.map +0 -1
- package/dist/package/dist/schema.js +0 -5
- package/dist/package/dist/support-files/auth/index.d.ts +0 -3
- package/dist/package/dist/support-files/auth/index.d.ts.map +0 -1
- package/dist/package/dist/support-files/auth/index.js +0 -76
- package/dist/package/dist/support-files/auth/types.d.ts +0 -31
- package/dist/package/dist/support-files/auth/types.d.ts.map +0 -1
- package/dist/package/dist/support-files/auth/types.js +0 -1
- package/dist/package/dist/support-files/building-blocks-sdk.d.ts +0 -17
- package/dist/package/dist/support-files/building-blocks-sdk.d.ts.map +0 -1
- package/dist/package/dist/support-files/building-blocks-sdk.js +0 -11
- package/dist/package/dist/utils/index.d.ts +0 -7
- package/dist/package/dist/utils/index.d.ts.map +0 -1
- package/dist/package/dist/utils/index.js +0 -19
- package/dist/package/examples/environment.d.ts +0 -11
- package/dist/package/examples/index.ts +0 -201
- package/dist/package/examples/tsconfig.json +0 -15
- package/dist/package/package.json +0 -56
- package/dist/package/tsconfig.json +0 -18
- package/dist/package/types.d.ts +0 -19
- package/examples/environment.d.ts +0 -11
- package/examples/index.ts +0 -201
- package/examples/tsconfig.json +0 -15
- package/src/base/base-client.ts +0 -172
- package/src/index.test.ts +0 -92
- package/src/index.ts +0 -449
- package/src/matomo/helpers.ts +0 -14
- package/src/matomo/types.ts +0 -48
- package/src/schema.ts +0 -1295
- package/src/support-files/auth/index.ts +0 -116
- package/src/support-files/auth/types.ts +0 -38
- package/src/support-files/building-blocks-sdk.ts +0 -32
- package/src/utils/index.test.ts +0 -46
- package/src/utils/index.ts +0 -20
- package/tsconfig.json +0 -18
package/dist/schema.d.ts
CHANGED
|
@@ -69,30 +69,6 @@ export interface paths {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
/** @description Default Response */
|
|
73
|
-
500: {
|
|
74
|
-
headers: {
|
|
75
|
-
[name: string]: unknown;
|
|
76
|
-
};
|
|
77
|
-
content: {
|
|
78
|
-
"application/json": {
|
|
79
|
-
/** @description Code used to categorize the error */
|
|
80
|
-
code: string;
|
|
81
|
-
/** @description Description of the error */
|
|
82
|
-
detail: string;
|
|
83
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
84
|
-
requestId: string;
|
|
85
|
-
/** @description Name of the error type */
|
|
86
|
-
name: string;
|
|
87
|
-
/** @description List of the validation errors */
|
|
88
|
-
validation?: {
|
|
89
|
-
fieldName: string;
|
|
90
|
-
message: string;
|
|
91
|
-
}[];
|
|
92
|
-
validationContext?: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
72
|
};
|
|
97
73
|
};
|
|
98
74
|
put?: never;
|
|
@@ -193,78 +169,6 @@ export interface paths {
|
|
|
193
169
|
};
|
|
194
170
|
};
|
|
195
171
|
};
|
|
196
|
-
/** @description Default Response */
|
|
197
|
-
400: {
|
|
198
|
-
headers: {
|
|
199
|
-
[name: string]: unknown;
|
|
200
|
-
};
|
|
201
|
-
content: {
|
|
202
|
-
"application/json": {
|
|
203
|
-
/** @description Code used to categorize the error */
|
|
204
|
-
code: string;
|
|
205
|
-
/** @description Description of the error */
|
|
206
|
-
detail: string;
|
|
207
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
208
|
-
requestId: string;
|
|
209
|
-
/** @description Name of the error type */
|
|
210
|
-
name: string;
|
|
211
|
-
/** @description List of the validation errors */
|
|
212
|
-
validation?: {
|
|
213
|
-
fieldName: string;
|
|
214
|
-
message: string;
|
|
215
|
-
}[];
|
|
216
|
-
validationContext?: string;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
/** @description Default Response */
|
|
221
|
-
422: {
|
|
222
|
-
headers: {
|
|
223
|
-
[name: string]: unknown;
|
|
224
|
-
};
|
|
225
|
-
content: {
|
|
226
|
-
"application/json": {
|
|
227
|
-
/** @description Code used to categorize the error */
|
|
228
|
-
code: string;
|
|
229
|
-
/** @description Description of the error */
|
|
230
|
-
detail: string;
|
|
231
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
232
|
-
requestId: string;
|
|
233
|
-
/** @description Name of the error type */
|
|
234
|
-
name: string;
|
|
235
|
-
/** @description List of the validation errors */
|
|
236
|
-
validation?: {
|
|
237
|
-
fieldName: string;
|
|
238
|
-
message: string;
|
|
239
|
-
}[];
|
|
240
|
-
validationContext?: string;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
/** @description Default Response */
|
|
245
|
-
500: {
|
|
246
|
-
headers: {
|
|
247
|
-
[name: string]: unknown;
|
|
248
|
-
};
|
|
249
|
-
content: {
|
|
250
|
-
"application/json": {
|
|
251
|
-
/** @description Code used to categorize the error */
|
|
252
|
-
code: string;
|
|
253
|
-
/** @description Description of the error */
|
|
254
|
-
detail: string;
|
|
255
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
256
|
-
requestId: string;
|
|
257
|
-
/** @description Name of the error type */
|
|
258
|
-
name: string;
|
|
259
|
-
/** @description List of the validation errors */
|
|
260
|
-
validation?: {
|
|
261
|
-
fieldName: string;
|
|
262
|
-
message: string;
|
|
263
|
-
}[];
|
|
264
|
-
validationContext?: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
172
|
};
|
|
269
173
|
};
|
|
270
174
|
delete?: never;
|
|
@@ -345,54 +249,6 @@ export interface paths {
|
|
|
345
249
|
};
|
|
346
250
|
};
|
|
347
251
|
};
|
|
348
|
-
/** @description Default Response */
|
|
349
|
-
404: {
|
|
350
|
-
headers: {
|
|
351
|
-
[name: string]: unknown;
|
|
352
|
-
};
|
|
353
|
-
content: {
|
|
354
|
-
"application/json": {
|
|
355
|
-
/** @description Code used to categorize the error */
|
|
356
|
-
code: string;
|
|
357
|
-
/** @description Description of the error */
|
|
358
|
-
detail: string;
|
|
359
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
360
|
-
requestId: string;
|
|
361
|
-
/** @description Name of the error type */
|
|
362
|
-
name: string;
|
|
363
|
-
/** @description List of the validation errors */
|
|
364
|
-
validation?: {
|
|
365
|
-
fieldName: string;
|
|
366
|
-
message: string;
|
|
367
|
-
}[];
|
|
368
|
-
validationContext?: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
/** @description Default Response */
|
|
373
|
-
500: {
|
|
374
|
-
headers: {
|
|
375
|
-
[name: string]: unknown;
|
|
376
|
-
};
|
|
377
|
-
content: {
|
|
378
|
-
"application/json": {
|
|
379
|
-
/** @description Code used to categorize the error */
|
|
380
|
-
code: string;
|
|
381
|
-
/** @description Description of the error */
|
|
382
|
-
detail: string;
|
|
383
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
384
|
-
requestId: string;
|
|
385
|
-
/** @description Name of the error type */
|
|
386
|
-
name: string;
|
|
387
|
-
/** @description List of the validation errors */
|
|
388
|
-
validation?: {
|
|
389
|
-
fieldName: string;
|
|
390
|
-
message: string;
|
|
391
|
-
}[];
|
|
392
|
-
validationContext?: string;
|
|
393
|
-
};
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
252
|
};
|
|
397
253
|
};
|
|
398
254
|
put?: never;
|
|
@@ -500,54 +356,6 @@ export interface paths {
|
|
|
500
356
|
};
|
|
501
357
|
};
|
|
502
358
|
};
|
|
503
|
-
/** @description Default Response */
|
|
504
|
-
404: {
|
|
505
|
-
headers: {
|
|
506
|
-
[name: string]: unknown;
|
|
507
|
-
};
|
|
508
|
-
content: {
|
|
509
|
-
"application/json": {
|
|
510
|
-
/** @description Code used to categorize the error */
|
|
511
|
-
code: string;
|
|
512
|
-
/** @description Description of the error */
|
|
513
|
-
detail: string;
|
|
514
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
515
|
-
requestId: string;
|
|
516
|
-
/** @description Name of the error type */
|
|
517
|
-
name: string;
|
|
518
|
-
/** @description List of the validation errors */
|
|
519
|
-
validation?: {
|
|
520
|
-
fieldName: string;
|
|
521
|
-
message: string;
|
|
522
|
-
}[];
|
|
523
|
-
validationContext?: string;
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
/** @description Default Response */
|
|
528
|
-
500: {
|
|
529
|
-
headers: {
|
|
530
|
-
[name: string]: unknown;
|
|
531
|
-
};
|
|
532
|
-
content: {
|
|
533
|
-
"application/json": {
|
|
534
|
-
/** @description Code used to categorize the error */
|
|
535
|
-
code: string;
|
|
536
|
-
/** @description Description of the error */
|
|
537
|
-
detail: string;
|
|
538
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
539
|
-
requestId: string;
|
|
540
|
-
/** @description Name of the error type */
|
|
541
|
-
name: string;
|
|
542
|
-
/** @description List of the validation errors */
|
|
543
|
-
validation?: {
|
|
544
|
-
fieldName: string;
|
|
545
|
-
message: string;
|
|
546
|
-
}[];
|
|
547
|
-
validationContext?: string;
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
359
|
};
|
|
552
360
|
};
|
|
553
361
|
trace?: never;
|
|
@@ -605,54 +413,6 @@ export interface paths {
|
|
|
605
413
|
};
|
|
606
414
|
};
|
|
607
415
|
};
|
|
608
|
-
/** @description Default Response */
|
|
609
|
-
404: {
|
|
610
|
-
headers: {
|
|
611
|
-
[name: string]: unknown;
|
|
612
|
-
};
|
|
613
|
-
content: {
|
|
614
|
-
"application/json": {
|
|
615
|
-
/** @description Code used to categorize the error */
|
|
616
|
-
code: string;
|
|
617
|
-
/** @description Description of the error */
|
|
618
|
-
detail: string;
|
|
619
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
620
|
-
requestId: string;
|
|
621
|
-
/** @description Name of the error type */
|
|
622
|
-
name: string;
|
|
623
|
-
/** @description List of the validation errors */
|
|
624
|
-
validation?: {
|
|
625
|
-
fieldName: string;
|
|
626
|
-
message: string;
|
|
627
|
-
}[];
|
|
628
|
-
validationContext?: string;
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
/** @description Default Response */
|
|
633
|
-
500: {
|
|
634
|
-
headers: {
|
|
635
|
-
[name: string]: unknown;
|
|
636
|
-
};
|
|
637
|
-
content: {
|
|
638
|
-
"application/json": {
|
|
639
|
-
/** @description Code used to categorize the error */
|
|
640
|
-
code: string;
|
|
641
|
-
/** @description Description of the error */
|
|
642
|
-
detail: string;
|
|
643
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
644
|
-
requestId: string;
|
|
645
|
-
/** @description Name of the error type */
|
|
646
|
-
name: string;
|
|
647
|
-
/** @description List of the validation errors */
|
|
648
|
-
validation?: {
|
|
649
|
-
fieldName: string;
|
|
650
|
-
message: string;
|
|
651
|
-
}[];
|
|
652
|
-
validationContext?: string;
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
416
|
};
|
|
657
417
|
};
|
|
658
418
|
put?: never;
|
|
@@ -689,8 +449,6 @@ export interface paths {
|
|
|
689
449
|
requestBody: {
|
|
690
450
|
content: {
|
|
691
451
|
"application/json": {
|
|
692
|
-
/** @description Array of site IDs */
|
|
693
|
-
site_ids?: number[];
|
|
694
452
|
event: {
|
|
695
453
|
/**
|
|
696
454
|
* @description The event category.
|
|
@@ -714,6 +472,8 @@ export interface paths {
|
|
|
714
472
|
value?: number;
|
|
715
473
|
};
|
|
716
474
|
metadata?: {
|
|
475
|
+
/** @description The URL of the page */
|
|
476
|
+
url?: string;
|
|
717
477
|
/** @description The user agent of the user */
|
|
718
478
|
userAgent?: string;
|
|
719
479
|
/** @description The referrer of the user */
|
|
@@ -722,9 +482,23 @@ export interface paths {
|
|
|
722
482
|
language?: string;
|
|
723
483
|
/** @description The resolution of the device */
|
|
724
484
|
screenResolution?: string;
|
|
485
|
+
};
|
|
486
|
+
contextOverride?: {
|
|
725
487
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
726
488
|
userId?: string;
|
|
489
|
+
/**
|
|
490
|
+
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
491
|
+
* @example {
|
|
492
|
+
* "dimension1": "value1",
|
|
493
|
+
* "dimension2": "value2"
|
|
494
|
+
* }
|
|
495
|
+
*/
|
|
496
|
+
customDimensions?: {
|
|
497
|
+
[key: string]: string;
|
|
498
|
+
};
|
|
727
499
|
};
|
|
500
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
501
|
+
site_ids?: number[];
|
|
728
502
|
};
|
|
729
503
|
};
|
|
730
504
|
};
|
|
@@ -740,30 +514,6 @@ export interface paths {
|
|
|
740
514
|
};
|
|
741
515
|
};
|
|
742
516
|
};
|
|
743
|
-
/** @description Default Response */
|
|
744
|
-
500: {
|
|
745
|
-
headers: {
|
|
746
|
-
[name: string]: unknown;
|
|
747
|
-
};
|
|
748
|
-
content: {
|
|
749
|
-
"application/json": {
|
|
750
|
-
/** @description Code used to categorize the error */
|
|
751
|
-
code: string;
|
|
752
|
-
/** @description Description of the error */
|
|
753
|
-
detail: string;
|
|
754
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
755
|
-
requestId: string;
|
|
756
|
-
/** @description Name of the error type */
|
|
757
|
-
name: string;
|
|
758
|
-
/** @description List of the validation errors */
|
|
759
|
-
validation?: {
|
|
760
|
-
fieldName: string;
|
|
761
|
-
message: string;
|
|
762
|
-
}[];
|
|
763
|
-
validationContext?: string;
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
517
|
};
|
|
768
518
|
};
|
|
769
519
|
delete?: never;
|
|
@@ -798,13 +548,13 @@ export interface paths {
|
|
|
798
548
|
requestBody: {
|
|
799
549
|
content: {
|
|
800
550
|
"application/json": {
|
|
801
|
-
/** @description Array of site IDs */
|
|
802
|
-
site_ids?: number[];
|
|
803
551
|
event: {
|
|
804
552
|
/** @description Custom title for the page view, overrides the default title of the page. */
|
|
805
553
|
action_name: string;
|
|
806
554
|
};
|
|
807
555
|
metadata?: {
|
|
556
|
+
/** @description The URL of the page */
|
|
557
|
+
url?: string;
|
|
808
558
|
/** @description The user agent of the user */
|
|
809
559
|
userAgent?: string;
|
|
810
560
|
/** @description The referrer of the user */
|
|
@@ -813,9 +563,23 @@ export interface paths {
|
|
|
813
563
|
language?: string;
|
|
814
564
|
/** @description The resolution of the device */
|
|
815
565
|
screenResolution?: string;
|
|
566
|
+
};
|
|
567
|
+
contextOverride?: {
|
|
816
568
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
817
569
|
userId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
572
|
+
* @example {
|
|
573
|
+
* "dimension1": "value1",
|
|
574
|
+
* "dimension2": "value2"
|
|
575
|
+
* }
|
|
576
|
+
*/
|
|
577
|
+
customDimensions?: {
|
|
578
|
+
[key: string]: string;
|
|
579
|
+
};
|
|
818
580
|
};
|
|
581
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
582
|
+
site_ids?: number[];
|
|
819
583
|
};
|
|
820
584
|
};
|
|
821
585
|
};
|
|
@@ -831,30 +595,6 @@ export interface paths {
|
|
|
831
595
|
};
|
|
832
596
|
};
|
|
833
597
|
};
|
|
834
|
-
/** @description Default Response */
|
|
835
|
-
500: {
|
|
836
|
-
headers: {
|
|
837
|
-
[name: string]: unknown;
|
|
838
|
-
};
|
|
839
|
-
content: {
|
|
840
|
-
"application/json": {
|
|
841
|
-
/** @description Code used to categorize the error */
|
|
842
|
-
code: string;
|
|
843
|
-
/** @description Description of the error */
|
|
844
|
-
detail: string;
|
|
845
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
846
|
-
requestId: string;
|
|
847
|
-
/** @description Name of the error type */
|
|
848
|
-
name: string;
|
|
849
|
-
/** @description List of the validation errors */
|
|
850
|
-
validation?: {
|
|
851
|
-
fieldName: string;
|
|
852
|
-
message: string;
|
|
853
|
-
}[];
|
|
854
|
-
validationContext?: string;
|
|
855
|
-
};
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
598
|
};
|
|
859
599
|
};
|
|
860
600
|
delete?: never;
|
|
@@ -889,8 +629,6 @@ export interface paths {
|
|
|
889
629
|
requestBody: {
|
|
890
630
|
content: {
|
|
891
631
|
"application/json": {
|
|
892
|
-
/** @description Array of site IDs */
|
|
893
|
-
site_ids?: number[];
|
|
894
632
|
event: {
|
|
895
633
|
/** @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. */
|
|
896
634
|
search_keyword: string;
|
|
@@ -900,6 +638,8 @@ export interface paths {
|
|
|
900
638
|
search_count?: number;
|
|
901
639
|
};
|
|
902
640
|
metadata?: {
|
|
641
|
+
/** @description The URL of the page */
|
|
642
|
+
url?: string;
|
|
903
643
|
/** @description The user agent of the user */
|
|
904
644
|
userAgent?: string;
|
|
905
645
|
/** @description The referrer of the user */
|
|
@@ -908,9 +648,23 @@ export interface paths {
|
|
|
908
648
|
language?: string;
|
|
909
649
|
/** @description The resolution of the device */
|
|
910
650
|
screenResolution?: string;
|
|
651
|
+
};
|
|
652
|
+
contextOverride?: {
|
|
911
653
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
912
654
|
userId?: string;
|
|
655
|
+
/**
|
|
656
|
+
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
657
|
+
* @example {
|
|
658
|
+
* "dimension1": "value1",
|
|
659
|
+
* "dimension2": "value2"
|
|
660
|
+
* }
|
|
661
|
+
*/
|
|
662
|
+
customDimensions?: {
|
|
663
|
+
[key: string]: string;
|
|
664
|
+
};
|
|
913
665
|
};
|
|
666
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
667
|
+
site_ids?: number[];
|
|
914
668
|
};
|
|
915
669
|
};
|
|
916
670
|
};
|
|
@@ -926,30 +680,6 @@ export interface paths {
|
|
|
926
680
|
};
|
|
927
681
|
};
|
|
928
682
|
};
|
|
929
|
-
/** @description Default Response */
|
|
930
|
-
500: {
|
|
931
|
-
headers: {
|
|
932
|
-
[name: string]: unknown;
|
|
933
|
-
};
|
|
934
|
-
content: {
|
|
935
|
-
"application/json": {
|
|
936
|
-
/** @description Code used to categorize the error */
|
|
937
|
-
code: string;
|
|
938
|
-
/** @description Description of the error */
|
|
939
|
-
detail: string;
|
|
940
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
941
|
-
requestId: string;
|
|
942
|
-
/** @description Name of the error type */
|
|
943
|
-
name: string;
|
|
944
|
-
/** @description List of the validation errors */
|
|
945
|
-
validation?: {
|
|
946
|
-
fieldName: string;
|
|
947
|
-
message: string;
|
|
948
|
-
}[];
|
|
949
|
-
validationContext?: string;
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
};
|
|
953
683
|
};
|
|
954
684
|
};
|
|
955
685
|
delete?: never;
|
|
@@ -958,7 +688,7 @@ export interface paths {
|
|
|
958
688
|
patch?: never;
|
|
959
689
|
trace?: never;
|
|
960
690
|
};
|
|
961
|
-
"/api/v1/websites/{id}/track-
|
|
691
|
+
"/api/v1/websites/{id}/track-link": {
|
|
962
692
|
parameters: {
|
|
963
693
|
query?: never;
|
|
964
694
|
header?: never;
|
|
@@ -967,7 +697,7 @@ export interface paths {
|
|
|
967
697
|
};
|
|
968
698
|
get?: never;
|
|
969
699
|
put?: never;
|
|
970
|
-
/** @description Track outgoing link */
|
|
700
|
+
/** @description Track link that could be an outgoing link or a download link */
|
|
971
701
|
post: {
|
|
972
702
|
parameters: {
|
|
973
703
|
query?: {
|
|
@@ -984,11 +714,27 @@ export interface paths {
|
|
|
984
714
|
requestBody: {
|
|
985
715
|
content: {
|
|
986
716
|
"application/json": {
|
|
987
|
-
/** @description Array of site IDs */
|
|
988
|
-
site_ids?: number[];
|
|
989
717
|
event: {
|
|
990
|
-
/** @description
|
|
718
|
+
/** @description The type of the link - either 'link' for outgoing links or 'download' for downloads */
|
|
719
|
+
linkType: "link" | "download";
|
|
720
|
+
/** @description The URL of the link */
|
|
991
721
|
link: string;
|
|
722
|
+
};
|
|
723
|
+
metadata?: {
|
|
724
|
+
/** @description The URL of the page */
|
|
725
|
+
url?: string;
|
|
726
|
+
/** @description The user agent of the user */
|
|
727
|
+
userAgent?: string;
|
|
728
|
+
/** @description The referrer of the user */
|
|
729
|
+
referrer?: string;
|
|
730
|
+
/** @description The language of the user */
|
|
731
|
+
language?: string;
|
|
732
|
+
/** @description The resolution of the device */
|
|
733
|
+
screenResolution?: string;
|
|
734
|
+
};
|
|
735
|
+
contextOverride?: {
|
|
736
|
+
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
737
|
+
userId?: string;
|
|
992
738
|
/**
|
|
993
739
|
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
994
740
|
* @example {
|
|
@@ -996,11 +742,72 @@ export interface paths {
|
|
|
996
742
|
* "dimension2": "value2"
|
|
997
743
|
* }
|
|
998
744
|
*/
|
|
999
|
-
|
|
745
|
+
customDimensions?: {
|
|
1000
746
|
[key: string]: string;
|
|
1001
747
|
};
|
|
1002
748
|
};
|
|
749
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
750
|
+
site_ids?: number[];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
responses: {
|
|
755
|
+
/** @description Default Response */
|
|
756
|
+
200: {
|
|
757
|
+
headers: {
|
|
758
|
+
[name: string]: unknown;
|
|
759
|
+
};
|
|
760
|
+
content: {
|
|
761
|
+
"application/json": {
|
|
762
|
+
data: unknown;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
delete?: never;
|
|
769
|
+
options?: never;
|
|
770
|
+
head?: never;
|
|
771
|
+
patch?: never;
|
|
772
|
+
trace?: never;
|
|
773
|
+
};
|
|
774
|
+
"/api/v1/websites/{id}/track-content-impression": {
|
|
775
|
+
parameters: {
|
|
776
|
+
query?: never;
|
|
777
|
+
header?: never;
|
|
778
|
+
path?: never;
|
|
779
|
+
cookie?: never;
|
|
780
|
+
};
|
|
781
|
+
get?: never;
|
|
782
|
+
put?: never;
|
|
783
|
+
/** @description Track content impression for a website */
|
|
784
|
+
post: {
|
|
785
|
+
parameters: {
|
|
786
|
+
query?: {
|
|
787
|
+
/** @description If true, use code-based tracking */
|
|
788
|
+
code?: boolean;
|
|
789
|
+
};
|
|
790
|
+
header?: never;
|
|
791
|
+
path: {
|
|
792
|
+
/** @description Website UUID */
|
|
793
|
+
id: string;
|
|
794
|
+
};
|
|
795
|
+
cookie?: never;
|
|
796
|
+
};
|
|
797
|
+
requestBody: {
|
|
798
|
+
content: {
|
|
799
|
+
"application/json": {
|
|
800
|
+
event: {
|
|
801
|
+
/** @description The name of the content block */
|
|
802
|
+
content_name: string;
|
|
803
|
+
/** @description The piece of the content that was displayed (e.g. link to an image) */
|
|
804
|
+
content_piece: string;
|
|
805
|
+
/** @description The target of the content leads to (e.g. URL of some external website) */
|
|
806
|
+
content_target: string;
|
|
807
|
+
};
|
|
1003
808
|
metadata?: {
|
|
809
|
+
/** @description The URL of the page */
|
|
810
|
+
url?: string;
|
|
1004
811
|
/** @description The user agent of the user */
|
|
1005
812
|
userAgent?: string;
|
|
1006
813
|
/** @description The referrer of the user */
|
|
@@ -1009,9 +816,23 @@ export interface paths {
|
|
|
1009
816
|
language?: string;
|
|
1010
817
|
/** @description The resolution of the device */
|
|
1011
818
|
screenResolution?: string;
|
|
819
|
+
};
|
|
820
|
+
contextOverride?: {
|
|
1012
821
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
1013
822
|
userId?: string;
|
|
823
|
+
/**
|
|
824
|
+
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
825
|
+
* @example {
|
|
826
|
+
* "dimension1": "value1",
|
|
827
|
+
* "dimension2": "value2"
|
|
828
|
+
* }
|
|
829
|
+
*/
|
|
830
|
+
customDimensions?: {
|
|
831
|
+
[key: string]: string;
|
|
832
|
+
};
|
|
1014
833
|
};
|
|
834
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
835
|
+
site_ids?: number[];
|
|
1015
836
|
};
|
|
1016
837
|
};
|
|
1017
838
|
};
|
|
@@ -1027,27 +848,90 @@ export interface paths {
|
|
|
1027
848
|
};
|
|
1028
849
|
};
|
|
1029
850
|
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
delete?: never;
|
|
854
|
+
options?: never;
|
|
855
|
+
head?: never;
|
|
856
|
+
patch?: never;
|
|
857
|
+
trace?: never;
|
|
858
|
+
};
|
|
859
|
+
"/api/v1/websites/{id}/track-content-interaction": {
|
|
860
|
+
parameters: {
|
|
861
|
+
query?: never;
|
|
862
|
+
header?: never;
|
|
863
|
+
path?: never;
|
|
864
|
+
cookie?: never;
|
|
865
|
+
};
|
|
866
|
+
get?: never;
|
|
867
|
+
put?: never;
|
|
868
|
+
/** @description Track content interaction for a website */
|
|
869
|
+
post: {
|
|
870
|
+
parameters: {
|
|
871
|
+
query?: {
|
|
872
|
+
/** @description If true, use code-based tracking */
|
|
873
|
+
code?: boolean;
|
|
874
|
+
};
|
|
875
|
+
header?: never;
|
|
876
|
+
path: {
|
|
877
|
+
/** @description Website UUID */
|
|
878
|
+
id: string;
|
|
879
|
+
};
|
|
880
|
+
cookie?: never;
|
|
881
|
+
};
|
|
882
|
+
requestBody: {
|
|
883
|
+
content: {
|
|
884
|
+
"application/json": {
|
|
885
|
+
event: {
|
|
886
|
+
/** @description The name of the content block */
|
|
887
|
+
content_name: string;
|
|
888
|
+
/** @description The piece of the content that was displayed (e.g. link to an image) */
|
|
889
|
+
content_piece: string;
|
|
890
|
+
/** @description The target of the content leads to (e.g. URL of some external website) */
|
|
891
|
+
content_target: string;
|
|
892
|
+
/** @description The interaction of the content, example: 'click' */
|
|
893
|
+
content_interaction: string;
|
|
894
|
+
};
|
|
895
|
+
metadata?: {
|
|
896
|
+
/** @description The URL of the page */
|
|
897
|
+
url?: string;
|
|
898
|
+
/** @description The user agent of the user */
|
|
899
|
+
userAgent?: string;
|
|
900
|
+
/** @description The referrer of the user */
|
|
901
|
+
referrer?: string;
|
|
902
|
+
/** @description The language of the user */
|
|
903
|
+
language?: string;
|
|
904
|
+
/** @description The resolution of the device */
|
|
905
|
+
screenResolution?: string;
|
|
906
|
+
};
|
|
907
|
+
contextOverride?: {
|
|
908
|
+
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
909
|
+
userId?: string;
|
|
910
|
+
/**
|
|
911
|
+
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
912
|
+
* @example {
|
|
913
|
+
* "dimension1": "value1",
|
|
914
|
+
* "dimension2": "value2"
|
|
915
|
+
* }
|
|
916
|
+
*/
|
|
917
|
+
customDimensions?: {
|
|
918
|
+
[key: string]: string;
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
922
|
+
site_ids?: number[];
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
responses: {
|
|
1030
927
|
/** @description Default Response */
|
|
1031
|
-
|
|
928
|
+
200: {
|
|
1032
929
|
headers: {
|
|
1033
930
|
[name: string]: unknown;
|
|
1034
931
|
};
|
|
1035
932
|
content: {
|
|
1036
933
|
"application/json": {
|
|
1037
|
-
|
|
1038
|
-
code: string;
|
|
1039
|
-
/** @description Description of the error */
|
|
1040
|
-
detail: string;
|
|
1041
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
1042
|
-
requestId: string;
|
|
1043
|
-
/** @description Name of the error type */
|
|
1044
|
-
name: string;
|
|
1045
|
-
/** @description List of the validation errors */
|
|
1046
|
-
validation?: {
|
|
1047
|
-
fieldName: string;
|
|
1048
|
-
message: string;
|
|
1049
|
-
}[];
|
|
1050
|
-
validationContext?: string;
|
|
934
|
+
data: unknown;
|
|
1051
935
|
};
|
|
1052
936
|
};
|
|
1053
937
|
};
|
|
@@ -1191,54 +1075,6 @@ export interface paths {
|
|
|
1191
1075
|
};
|
|
1192
1076
|
};
|
|
1193
1077
|
};
|
|
1194
|
-
/** @description Default Response */
|
|
1195
|
-
400: {
|
|
1196
|
-
headers: {
|
|
1197
|
-
[name: string]: unknown;
|
|
1198
|
-
};
|
|
1199
|
-
content: {
|
|
1200
|
-
"application/json": {
|
|
1201
|
-
/** @description Code used to categorize the error */
|
|
1202
|
-
code: string;
|
|
1203
|
-
/** @description Description of the error */
|
|
1204
|
-
detail: string;
|
|
1205
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
1206
|
-
requestId: string;
|
|
1207
|
-
/** @description Name of the error type */
|
|
1208
|
-
name: string;
|
|
1209
|
-
/** @description List of the validation errors */
|
|
1210
|
-
validation?: {
|
|
1211
|
-
fieldName: string;
|
|
1212
|
-
message: string;
|
|
1213
|
-
}[];
|
|
1214
|
-
validationContext?: string;
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
};
|
|
1218
|
-
/** @description Default Response */
|
|
1219
|
-
500: {
|
|
1220
|
-
headers: {
|
|
1221
|
-
[name: string]: unknown;
|
|
1222
|
-
};
|
|
1223
|
-
content: {
|
|
1224
|
-
"application/json": {
|
|
1225
|
-
/** @description Code used to categorize the error */
|
|
1226
|
-
code: string;
|
|
1227
|
-
/** @description Description of the error */
|
|
1228
|
-
detail: string;
|
|
1229
|
-
/** @description Unique request id. This one will be used to troubleshoot the problems */
|
|
1230
|
-
requestId: string;
|
|
1231
|
-
/** @description Name of the error type */
|
|
1232
|
-
name: string;
|
|
1233
|
-
/** @description List of the validation errors */
|
|
1234
|
-
validation?: {
|
|
1235
|
-
fieldName: string;
|
|
1236
|
-
message: string;
|
|
1237
|
-
}[];
|
|
1238
|
-
validationContext?: string;
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
1078
|
};
|
|
1243
1079
|
};
|
|
1244
1080
|
delete?: never;
|