analytica.click 0.0.540 → 0.0.541
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
import 'cross-fetch/polyfill';
|
2
|
-
import type { PostError, PostErrorData } from '@ui/src/server/schema';
|
2
|
+
import type { PostError, PostErrorData } from '@ui/src/server/schema/api';
|
3
3
|
export declare const errorTrack: ({ data, overrideBaseUrl, ignoreBrowserErrors, devMode, }: {
|
4
4
|
data: PostError;
|
5
5
|
overrideBaseUrl?: string;
|
package/dist/index.d.ts
CHANGED
@@ -66,7 +66,7 @@ declare module 'analytica.click/dist/helpers/console' {
|
|
66
66
|
}
|
67
67
|
declare module 'analytica.click/dist/helpers/errorTrack' {
|
68
68
|
import 'cross-fetch/polyfill';
|
69
|
-
import type { PostError, PostErrorData } from '@ui/src/server/schema';
|
69
|
+
import type { PostError, PostErrorData } from '@ui/src/server/schema/api';
|
70
70
|
export const errorTrack: ({ data, overrideBaseUrl, ignoreBrowserErrors, devMode, }: {
|
71
71
|
data: PostError;
|
72
72
|
overrideBaseUrl?: string;
|
@@ -179,211 +179,16 @@ declare module 'analytica.click/dist/types' {
|
|
179
179
|
}
|
180
180
|
|
181
181
|
}
|
182
|
-
declare module 'analytica.click/dist/ui/src/server/schema/
|
182
|
+
declare module 'analytica.click/dist/ui/src/server/schema/api' {
|
183
183
|
import { z } from 'zod';
|
184
|
-
|
185
|
-
|
186
|
-
export const category: z.ZodEnum<{
|
187
|
-
SERVER: "SERVER";
|
188
|
-
CLIENT: "CLIENT";
|
189
|
-
}>;
|
190
|
-
export type Category = z.infer<typeof category>;
|
191
|
-
export const SeoResultValues: z.ZodObject<{
|
192
|
-
clicks: z.ZodNumber;
|
193
|
-
impressions: z.ZodNumber;
|
194
|
-
position: z.ZodNumber;
|
195
|
-
query: z.ZodString;
|
196
|
-
}, z.core.$strip>;
|
197
|
-
export const SeoResultSchema: z.ZodObject<{
|
198
|
-
account: z.ZodString;
|
199
|
-
email: z.ZodString;
|
200
|
-
site: z.ZodString;
|
201
|
-
datetime: z.ZodNumber;
|
202
|
-
category: z.ZodEnum<{
|
203
|
-
SERVER: "SERVER";
|
204
|
-
CLIENT: "CLIENT";
|
205
|
-
}>;
|
206
|
-
totals: z.ZodObject<{
|
207
|
-
clicks: z.ZodNumber;
|
208
|
-
impressions: z.ZodNumber;
|
209
|
-
position: z.ZodNumber;
|
210
|
-
query: z.ZodString;
|
211
|
-
}, z.core.$strip>;
|
212
|
-
queries: z.ZodArray<z.ZodObject<{
|
213
|
-
clicks: z.ZodNumber;
|
214
|
-
impressions: z.ZodNumber;
|
215
|
-
position: z.ZodNumber;
|
216
|
-
query: z.ZodString;
|
217
|
-
}, z.core.$strip>>;
|
218
|
-
}, z.core.$strip>;
|
219
|
-
export const GoogleIntegration: z.ZodObject<{
|
220
|
-
email: z.ZodString;
|
221
|
-
key: z.ZodString;
|
222
|
-
account: z.ZodString;
|
223
|
-
}, z.core.$strip>;
|
224
|
-
export const BingIntegrationSchema: z.ZodObject<{
|
225
|
-
key: z.ZodString;
|
226
|
-
account: z.ZodString;
|
227
|
-
}, z.core.$strip>;
|
228
|
-
export const CloudflareIntegrationSchema: z.ZodObject<{
|
229
|
-
key: z.ZodString;
|
230
|
-
account: z.ZodString;
|
231
|
-
}, z.core.$strip>;
|
232
|
-
export const ApiKeySchema: z.ZodObject<{
|
233
|
-
key: z.ZodString;
|
234
|
-
adminKey: z.ZodString;
|
235
|
-
account: z.ZodString;
|
236
|
-
site: z.ZodString;
|
237
|
-
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
238
|
-
}, z.core.$strip>;
|
239
|
-
export const QuerySchema: z.ZodObject<{
|
240
|
-
account: z.ZodOptional<z.ZodString>;
|
241
|
-
datetime: z.ZodNumber;
|
242
|
-
site: z.ZodString;
|
243
|
-
pathName: z.ZodString;
|
244
|
-
search: z.ZodOptional<z.ZodString>;
|
245
|
-
hash: z.ZodOptional<z.ZodString>;
|
246
|
-
count: z.ZodNumber;
|
247
|
-
category: z.ZodEnum<{
|
248
|
-
SERVER: "SERVER";
|
249
|
-
CLIENT: "CLIENT";
|
250
|
-
}>;
|
251
|
-
}, z.core.$strip>;
|
252
|
-
export const BrowserSchema: z.ZodObject<{
|
253
|
-
account: z.ZodOptional<z.ZodString>;
|
254
|
-
datetime: z.ZodNumber;
|
255
|
-
site: z.ZodString;
|
256
|
-
browser: z.ZodString;
|
257
|
-
count: z.ZodNumber;
|
258
|
-
category: z.ZodEnum<{
|
259
|
-
SERVER: "SERVER";
|
260
|
-
CLIENT: "CLIENT";
|
261
|
-
}>;
|
262
|
-
}, z.core.$strip>;
|
263
|
-
export const ResolutionSchema: z.ZodObject<{
|
264
|
-
account: z.ZodOptional<z.ZodString>;
|
265
|
-
datetime: z.ZodNumber;
|
266
|
-
site: z.ZodString;
|
267
|
-
resolution: z.ZodString;
|
268
|
-
count: z.ZodNumber;
|
269
|
-
category: z.ZodEnum<{
|
270
|
-
SERVER: "SERVER";
|
271
|
-
CLIENT: "CLIENT";
|
272
|
-
}>;
|
273
|
-
}, z.core.$strip>;
|
274
|
-
export const ReferrerSchema: z.ZodObject<{
|
275
|
-
account: z.ZodOptional<z.ZodString>;
|
276
|
-
datetime: z.ZodNumber;
|
277
|
-
site: z.ZodString;
|
278
|
-
referrer: z.ZodString;
|
279
|
-
count: z.ZodNumber;
|
280
|
-
category: z.ZodEnum<{
|
281
|
-
SERVER: "SERVER";
|
282
|
-
CLIENT: "CLIENT";
|
283
|
-
}>;
|
284
|
-
}, z.core.$strip>;
|
285
|
-
export const LocationSchema: z.ZodObject<{
|
286
|
-
account: z.ZodOptional<z.ZodString>;
|
287
|
-
datetime: z.ZodNumber;
|
288
|
-
site: z.ZodString;
|
289
|
-
countryRegion: z.ZodString;
|
290
|
-
category: z.ZodEnum<{
|
291
|
-
SERVER: "SERVER";
|
292
|
-
CLIENT: "CLIENT";
|
293
|
-
}>;
|
294
|
-
count: z.ZodNumber;
|
295
|
-
}, z.core.$strip>;
|
296
|
-
export const LanguageSchema: z.ZodObject<{
|
297
|
-
account: z.ZodOptional<z.ZodString>;
|
298
|
-
datetime: z.ZodNumber;
|
299
|
-
site: z.ZodString;
|
300
|
-
language: z.ZodString;
|
301
|
-
count: z.ZodNumber;
|
302
|
-
category: z.ZodEnum<{
|
303
|
-
SERVER: "SERVER";
|
304
|
-
CLIENT: "CLIENT";
|
305
|
-
}>;
|
184
|
+
export const IdentifyInputSchema: z.ZodObject<{
|
185
|
+
url: z.ZodString;
|
306
186
|
}, z.core.$strip>;
|
307
|
-
export
|
308
|
-
|
309
|
-
|
310
|
-
site: z.ZodString;
|
311
|
-
fingerprint: z.ZodString;
|
312
|
-
count: z.ZodNumber;
|
313
|
-
category: z.ZodEnum<{
|
314
|
-
SERVER: "SERVER";
|
315
|
-
CLIENT: "CLIENT";
|
316
|
-
}>;
|
317
|
-
}, z.core.$strip>;
|
318
|
-
export const EventSchema: z.ZodObject<{
|
319
|
-
account: z.ZodOptional<z.ZodString>;
|
320
|
-
site: z.ZodString;
|
321
|
-
eventName: z.ZodString;
|
322
|
-
datetime: z.ZodNumber;
|
323
|
-
count: z.ZodNumber;
|
324
|
-
category: z.ZodEnum<{
|
325
|
-
SERVER: "SERVER";
|
326
|
-
CLIENT: "CLIENT";
|
327
|
-
}>;
|
328
|
-
}, z.core.$strip>;
|
329
|
-
export const HealthMetricSchema: z.ZodObject<{
|
330
|
-
type: z.ZodLiteral<"health">;
|
331
|
-
responseTimeMs: z.ZodNumber;
|
332
|
-
success: z.ZodBoolean;
|
333
|
-
}, z.core.$strip>;
|
334
|
-
export const UserMetricSchema: z.ZodObject<{
|
335
|
-
type: z.ZodString;
|
336
|
-
value: z.ZodNumber;
|
337
|
-
}, z.core.$strip>;
|
338
|
-
export const MetricItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
339
|
-
type: z.ZodLiteral<"health">;
|
340
|
-
responseTimeMs: z.ZodNumber;
|
341
|
-
success: z.ZodBoolean;
|
342
|
-
}, z.core.$strip>, z.ZodObject<{
|
343
|
-
type: z.ZodString;
|
344
|
-
value: z.ZodNumber;
|
345
|
-
}, z.core.$strip>]>;
|
346
|
-
export const MetricSchema: z.ZodObject<{
|
347
|
-
account: z.ZodOptional<z.ZodString>;
|
348
|
-
site: z.ZodString;
|
349
|
-
datetime: z.ZodNumber;
|
350
|
-
category: z.ZodEnum<{
|
351
|
-
SERVER: "SERVER";
|
352
|
-
CLIENT: "CLIENT";
|
353
|
-
}>;
|
354
|
-
metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
355
|
-
type: z.ZodLiteral<"health">;
|
356
|
-
responseTimeMs: z.ZodNumber;
|
357
|
-
success: z.ZodBoolean;
|
358
|
-
}, z.core.$strip>, z.ZodObject<{
|
359
|
-
type: z.ZodString;
|
360
|
-
value: z.ZodNumber;
|
361
|
-
}, z.core.$strip>]>;
|
362
|
-
}, z.core.$strip>;
|
363
|
-
export interface IMetric extends z.infer<typeof MetricSchema> {
|
364
|
-
}
|
365
|
-
export interface IHealthMetric extends z.infer<typeof HealthMetricSchema> {
|
366
|
-
}
|
367
|
-
export interface IUserMetric extends z.infer<typeof UserMetricSchema> {
|
368
|
-
}
|
369
|
-
export const ModelErrorSchema: z.ZodObject<{
|
370
|
-
PK: z.ZodString;
|
371
|
-
messageHash: z.ZodOptional<z.ZodString>;
|
372
|
-
site: z.ZodString;
|
373
|
-
account: z.ZodString;
|
374
|
-
message: z.ZodOptional<z.ZodString>;
|
375
|
-
name: z.ZodOptional<z.ZodString>;
|
376
|
-
stack: z.ZodOptional<z.ZodString>;
|
377
|
-
href: z.ZodString;
|
378
|
-
filename: z.ZodOptional<z.ZodString>;
|
379
|
-
datetime: z.ZodNumber;
|
380
|
-
archived: z.ZodOptional<z.ZodBoolean>;
|
381
|
-
count: z.ZodNumber;
|
382
|
-
category: z.ZodEnum<{
|
383
|
-
SERVER: "SERVER";
|
384
|
-
CLIENT: "CLIENT";
|
385
|
-
}>;
|
187
|
+
export type IIdentifyInputSchema = z.infer<typeof IdentifyInputSchema>;
|
188
|
+
export const IdentifyResponseSchema: z.ZodObject<{
|
189
|
+
url: z.ZodString;
|
386
190
|
}, z.core.$strip>;
|
191
|
+
export type IIdentifyResponseSchema = z.infer<typeof IdentifyResponseSchema>;
|
387
192
|
export const PostEventDataSchema: z.ZodObject<{
|
388
193
|
eventName: z.ZodString;
|
389
194
|
pageReferrer: z.ZodOptional<z.ZodString>;
|
@@ -456,332 +261,6 @@ declare module 'analytica.click/dist/ui/src/server/schema/index' {
|
|
456
261
|
value: z.ZodNumber;
|
457
262
|
}, z.core.$strip>;
|
458
263
|
}, z.core.$strip>;
|
459
|
-
export const SiteDetailsSchema: z.ZodObject<{
|
460
|
-
site: z.ZodString;
|
461
|
-
account: z.ZodString;
|
462
|
-
datetime: z.ZodOptional<z.ZodNumber>;
|
463
|
-
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
464
|
-
}, z.core.$strip>;
|
465
|
-
export const GetAccountSchema: z.ZodObject<{
|
466
|
-
site: z.ZodString;
|
467
|
-
account: z.ZodString;
|
468
|
-
apiKey: z.ZodString;
|
469
|
-
adminApiKey: z.ZodString;
|
470
|
-
siteDetail: z.ZodObject<{
|
471
|
-
site: z.ZodString;
|
472
|
-
account: z.ZodString;
|
473
|
-
datetime: z.ZodOptional<z.ZodNumber>;
|
474
|
-
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
475
|
-
}, z.core.$strip>;
|
476
|
-
}, z.core.$strip>;
|
477
|
-
export const SiteDataSchema: z.ZodObject<{
|
478
|
-
accountDetails: z.ZodOptional<z.ZodObject<{
|
479
|
-
site: z.ZodString;
|
480
|
-
account: z.ZodString;
|
481
|
-
apiKey: z.ZodString;
|
482
|
-
adminApiKey: z.ZodString;
|
483
|
-
siteDetail: z.ZodObject<{
|
484
|
-
site: z.ZodString;
|
485
|
-
account: z.ZodString;
|
486
|
-
datetime: z.ZodOptional<z.ZodNumber>;
|
487
|
-
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
488
|
-
}, z.core.$strip>;
|
489
|
-
}, z.core.$strip>>;
|
490
|
-
browsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
491
|
-
account: z.ZodOptional<z.ZodString>;
|
492
|
-
datetime: z.ZodNumber;
|
493
|
-
site: z.ZodString;
|
494
|
-
browser: z.ZodString;
|
495
|
-
count: z.ZodNumber;
|
496
|
-
category: z.ZodEnum<{
|
497
|
-
SERVER: "SERVER";
|
498
|
-
CLIENT: "CLIENT";
|
499
|
-
}>;
|
500
|
-
}, z.core.$strip>>>;
|
501
|
-
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
502
|
-
account: z.ZodOptional<z.ZodString>;
|
503
|
-
site: z.ZodString;
|
504
|
-
eventName: z.ZodString;
|
505
|
-
datetime: z.ZodNumber;
|
506
|
-
count: z.ZodNumber;
|
507
|
-
category: z.ZodEnum<{
|
508
|
-
SERVER: "SERVER";
|
509
|
-
CLIENT: "CLIENT";
|
510
|
-
}>;
|
511
|
-
}, z.core.$strip>>>;
|
512
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
513
|
-
account: z.ZodOptional<z.ZodString>;
|
514
|
-
datetime: z.ZodNumber;
|
515
|
-
site: z.ZodString;
|
516
|
-
countryRegion: z.ZodString;
|
517
|
-
category: z.ZodEnum<{
|
518
|
-
SERVER: "SERVER";
|
519
|
-
CLIENT: "CLIENT";
|
520
|
-
}>;
|
521
|
-
count: z.ZodNumber;
|
522
|
-
}, z.core.$strip>>>;
|
523
|
-
queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
524
|
-
account: z.ZodOptional<z.ZodString>;
|
525
|
-
datetime: z.ZodNumber;
|
526
|
-
site: z.ZodString;
|
527
|
-
pathName: z.ZodString;
|
528
|
-
search: z.ZodOptional<z.ZodString>;
|
529
|
-
hash: z.ZodOptional<z.ZodString>;
|
530
|
-
count: z.ZodNumber;
|
531
|
-
category: z.ZodEnum<{
|
532
|
-
SERVER: "SERVER";
|
533
|
-
CLIENT: "CLIENT";
|
534
|
-
}>;
|
535
|
-
}, z.core.$strip>>>;
|
536
|
-
referrers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
537
|
-
account: z.ZodOptional<z.ZodString>;
|
538
|
-
datetime: z.ZodNumber;
|
539
|
-
site: z.ZodString;
|
540
|
-
referrer: z.ZodString;
|
541
|
-
count: z.ZodNumber;
|
542
|
-
category: z.ZodEnum<{
|
543
|
-
SERVER: "SERVER";
|
544
|
-
CLIENT: "CLIENT";
|
545
|
-
}>;
|
546
|
-
}, z.core.$strip>>>;
|
547
|
-
resolutions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
548
|
-
account: z.ZodOptional<z.ZodString>;
|
549
|
-
datetime: z.ZodNumber;
|
550
|
-
site: z.ZodString;
|
551
|
-
resolution: z.ZodString;
|
552
|
-
count: z.ZodNumber;
|
553
|
-
category: z.ZodEnum<{
|
554
|
-
SERVER: "SERVER";
|
555
|
-
CLIENT: "CLIENT";
|
556
|
-
}>;
|
557
|
-
}, z.core.$strip>>>;
|
558
|
-
fingerprints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
559
|
-
account: z.ZodOptional<z.ZodString>;
|
560
|
-
datetime: z.ZodNumber;
|
561
|
-
site: z.ZodString;
|
562
|
-
fingerprint: z.ZodString;
|
563
|
-
count: z.ZodNumber;
|
564
|
-
category: z.ZodEnum<{
|
565
|
-
SERVER: "SERVER";
|
566
|
-
CLIENT: "CLIENT";
|
567
|
-
}>;
|
568
|
-
}, z.core.$strip>>>;
|
569
|
-
metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
570
|
-
account: z.ZodOptional<z.ZodString>;
|
571
|
-
site: z.ZodString;
|
572
|
-
datetime: z.ZodNumber;
|
573
|
-
category: z.ZodEnum<{
|
574
|
-
SERVER: "SERVER";
|
575
|
-
CLIENT: "CLIENT";
|
576
|
-
}>;
|
577
|
-
metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
578
|
-
type: z.ZodLiteral<"health">;
|
579
|
-
responseTimeMs: z.ZodNumber;
|
580
|
-
success: z.ZodBoolean;
|
581
|
-
}, z.core.$strip>, z.ZodObject<{
|
582
|
-
type: z.ZodString;
|
583
|
-
value: z.ZodNumber;
|
584
|
-
}, z.core.$strip>]>;
|
585
|
-
}, z.core.$strip>>>;
|
586
|
-
languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
587
|
-
account: z.ZodOptional<z.ZodString>;
|
588
|
-
datetime: z.ZodNumber;
|
589
|
-
site: z.ZodString;
|
590
|
-
language: z.ZodString;
|
591
|
-
count: z.ZodNumber;
|
592
|
-
category: z.ZodEnum<{
|
593
|
-
SERVER: "SERVER";
|
594
|
-
CLIENT: "CLIENT";
|
595
|
-
}>;
|
596
|
-
}, z.core.$strip>>>;
|
597
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
598
|
-
account: z.ZodString;
|
599
|
-
site: z.ZodString;
|
600
|
-
datetime: z.ZodNumber;
|
601
|
-
category: z.ZodEnum<{
|
602
|
-
SERVER: "SERVER";
|
603
|
-
CLIENT: "CLIENT";
|
604
|
-
}>;
|
605
|
-
topReferrers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
606
|
-
referrer: z.ZodString;
|
607
|
-
count: z.ZodNumber;
|
608
|
-
}, z.core.$strip>>>;
|
609
|
-
topResolutions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
610
|
-
resolution: z.ZodString;
|
611
|
-
count: z.ZodNumber;
|
612
|
-
}, z.core.$strip>>>;
|
613
|
-
topFingerprints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
614
|
-
fingerprint: z.ZodString;
|
615
|
-
count: z.ZodNumber;
|
616
|
-
}, z.core.$strip>>>;
|
617
|
-
topQueries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
618
|
-
pathName: z.ZodString;
|
619
|
-
count: z.ZodNumber;
|
620
|
-
}, z.core.$strip>>>;
|
621
|
-
topLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
622
|
-
countryRegion: z.ZodString;
|
623
|
-
count: z.ZodNumber;
|
624
|
-
}, z.core.$strip>>>;
|
625
|
-
topBrowsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
626
|
-
browser: z.ZodString;
|
627
|
-
count: z.ZodNumber;
|
628
|
-
}, z.core.$strip>>>;
|
629
|
-
topEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
630
|
-
eventName: z.ZodString;
|
631
|
-
count: z.ZodNumber;
|
632
|
-
}, z.core.$strip>>>;
|
633
|
-
topLanguages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
634
|
-
language: z.ZodString;
|
635
|
-
count: z.ZodNumber;
|
636
|
-
}, z.core.$strip>>>;
|
637
|
-
topErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
638
|
-
href: z.ZodString;
|
639
|
-
count: z.ZodNumber;
|
640
|
-
}, z.core.$strip>>>;
|
641
|
-
metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
642
|
-
count: z.ZodNumber;
|
643
|
-
sum: z.ZodNumber;
|
644
|
-
average: z.ZodNumber;
|
645
|
-
}, z.core.$strip>>>;
|
646
|
-
}, z.core.$strip>>>;
|
647
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
648
|
-
PK: z.ZodString;
|
649
|
-
messageHash: z.ZodOptional<z.ZodString>;
|
650
|
-
site: z.ZodString;
|
651
|
-
account: z.ZodString;
|
652
|
-
message: z.ZodOptional<z.ZodString>;
|
653
|
-
name: z.ZodOptional<z.ZodString>;
|
654
|
-
stack: z.ZodOptional<z.ZodString>;
|
655
|
-
href: z.ZodString;
|
656
|
-
filename: z.ZodOptional<z.ZodString>;
|
657
|
-
datetime: z.ZodNumber;
|
658
|
-
archived: z.ZodOptional<z.ZodBoolean>;
|
659
|
-
count: z.ZodNumber;
|
660
|
-
category: z.ZodEnum<{
|
661
|
-
SERVER: "SERVER";
|
662
|
-
CLIENT: "CLIENT";
|
663
|
-
}>;
|
664
|
-
}, z.core.$strip>>>;
|
665
|
-
google: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
666
|
-
account: z.ZodString;
|
667
|
-
email: z.ZodString;
|
668
|
-
site: z.ZodString;
|
669
|
-
datetime: z.ZodNumber;
|
670
|
-
category: z.ZodEnum<{
|
671
|
-
SERVER: "SERVER";
|
672
|
-
CLIENT: "CLIENT";
|
673
|
-
}>;
|
674
|
-
totals: z.ZodObject<{
|
675
|
-
clicks: z.ZodNumber;
|
676
|
-
impressions: z.ZodNumber;
|
677
|
-
position: z.ZodNumber;
|
678
|
-
query: z.ZodString;
|
679
|
-
}, z.core.$strip>;
|
680
|
-
queries: z.ZodArray<z.ZodObject<{
|
681
|
-
clicks: z.ZodNumber;
|
682
|
-
impressions: z.ZodNumber;
|
683
|
-
position: z.ZodNumber;
|
684
|
-
query: z.ZodString;
|
685
|
-
}, z.core.$strip>>;
|
686
|
-
}, z.core.$strip>>>;
|
687
|
-
bing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
688
|
-
account: z.ZodString;
|
689
|
-
email: z.ZodString;
|
690
|
-
site: z.ZodString;
|
691
|
-
datetime: z.ZodNumber;
|
692
|
-
category: z.ZodEnum<{
|
693
|
-
SERVER: "SERVER";
|
694
|
-
CLIENT: "CLIENT";
|
695
|
-
}>;
|
696
|
-
totals: z.ZodObject<{
|
697
|
-
clicks: z.ZodNumber;
|
698
|
-
impressions: z.ZodNumber;
|
699
|
-
position: z.ZodNumber;
|
700
|
-
query: z.ZodString;
|
701
|
-
}, z.core.$strip>;
|
702
|
-
queries: z.ZodArray<z.ZodObject<{
|
703
|
-
clicks: z.ZodNumber;
|
704
|
-
impressions: z.ZodNumber;
|
705
|
-
position: z.ZodNumber;
|
706
|
-
query: z.ZodString;
|
707
|
-
}, z.core.$strip>>;
|
708
|
-
}, z.core.$strip>>>;
|
709
|
-
cloudflare: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
710
|
-
account: z.ZodString;
|
711
|
-
email: z.ZodString;
|
712
|
-
site: z.ZodString;
|
713
|
-
datetime: z.ZodNumber;
|
714
|
-
category: z.ZodEnum<{
|
715
|
-
SERVER: "SERVER";
|
716
|
-
CLIENT: "CLIENT";
|
717
|
-
}>;
|
718
|
-
totals: z.ZodObject<{
|
719
|
-
clicks: z.ZodNumber;
|
720
|
-
impressions: z.ZodNumber;
|
721
|
-
position: z.ZodNumber;
|
722
|
-
query: z.ZodString;
|
723
|
-
}, z.core.$strip>;
|
724
|
-
queries: z.ZodArray<z.ZodObject<{
|
725
|
-
clicks: z.ZodNumber;
|
726
|
-
impressions: z.ZodNumber;
|
727
|
-
position: z.ZodNumber;
|
728
|
-
query: z.ZodString;
|
729
|
-
}, z.core.$strip>>;
|
730
|
-
}, z.core.$strip>>>;
|
731
|
-
}, z.core.$strip>;
|
732
|
-
export const PostAccountSchema: z.ZodObject<{
|
733
|
-
site: z.ZodString;
|
734
|
-
account: z.ZodString;
|
735
|
-
}, z.core.$strip>;
|
736
|
-
export const DeleteAccountSchema: z.ZodObject<{
|
737
|
-
site: z.ZodString;
|
738
|
-
account: z.ZodString;
|
739
|
-
}, z.core.$strip>;
|
740
|
-
export const ArchiveErrorsSchema: z.ZodObject<{
|
741
|
-
PKs: z.ZodArray<z.ZodString>;
|
742
|
-
}, z.core.$strip>;
|
743
|
-
export const GetAccountsSchema: z.ZodObject<{
|
744
|
-
accounts: z.ZodArray<z.ZodObject<{
|
745
|
-
site: z.ZodString;
|
746
|
-
account: z.ZodString;
|
747
|
-
apiKey: z.ZodString;
|
748
|
-
adminApiKey: z.ZodString;
|
749
|
-
siteDetail: z.ZodObject<{
|
750
|
-
site: z.ZodString;
|
751
|
-
account: z.ZodString;
|
752
|
-
datetime: z.ZodOptional<z.ZodNumber>;
|
753
|
-
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
754
|
-
}, z.core.$strip>;
|
755
|
-
}, z.core.$strip>>;
|
756
|
-
googleEmail: z.ZodOptional<z.ZodString>;
|
757
|
-
googleKey: z.ZodOptional<z.ZodString>;
|
758
|
-
bingKey: z.ZodOptional<z.ZodString>;
|
759
|
-
bingAccount: z.ZodOptional<z.ZodString>;
|
760
|
-
cloudflareKey: z.ZodOptional<z.ZodString>;
|
761
|
-
cloudflareAccount: z.ZodOptional<z.ZodString>;
|
762
|
-
}, z.core.$strip>;
|
763
|
-
export type ISeoResultValues = z.infer<typeof SeoResultValues>;
|
764
|
-
export type SeoResult = z.infer<typeof SeoResultSchema>;
|
765
|
-
export type GetAccount = z.infer<typeof GetAccountSchema>;
|
766
|
-
export type GetAccounts = z.infer<typeof GetAccountsSchema>;
|
767
|
-
export type IGoogleIntegration = z.infer<typeof GoogleIntegration>;
|
768
|
-
export type BingIntegration = z.infer<typeof BingIntegrationSchema>;
|
769
|
-
export type CloudflareIntegration = z.infer<typeof CloudflareIntegrationSchema>;
|
770
|
-
export type ApiKey = z.infer<typeof ApiKeySchema>;
|
771
|
-
export type Query = z.infer<typeof QuerySchema>;
|
772
|
-
export type Browser = z.infer<typeof BrowserSchema>;
|
773
|
-
export type Resolution = z.infer<typeof ResolutionSchema>;
|
774
|
-
export type Referrer = z.infer<typeof ReferrerSchema>;
|
775
|
-
export type Location = z.infer<typeof LocationSchema>;
|
776
|
-
export type Language = z.infer<typeof LanguageSchema>;
|
777
|
-
export type Fingerprint = z.infer<typeof FingerprintSchema>;
|
778
|
-
export type Event = z.infer<typeof EventSchema>;
|
779
|
-
export type MetricItem = z.infer<typeof MetricItemSchema>;
|
780
|
-
export type Metric = z.infer<typeof MetricSchema>;
|
781
|
-
export type ModelError = z.infer<typeof ModelErrorSchema>;
|
782
|
-
export type Rollup = z.infer<typeof RollupSchema>;
|
783
|
-
export type SiteData = z.infer<typeof SiteDataSchema>;
|
784
|
-
export type SiteDetails = z.infer<typeof SiteDetailsSchema>;
|
785
264
|
export type PostEventData = z.infer<typeof PostEventDataSchema>;
|
786
265
|
export type PostEvent = z.infer<typeof PostEventSchema>;
|
787
266
|
export type PostSiteTrackData = z.infer<typeof PostSiteTrackDataSchema>;
|
@@ -790,105 +269,6 @@ declare module 'analytica.click/dist/ui/src/server/schema/index' {
|
|
790
269
|
export type PostError = z.infer<typeof PostErrorSchema>;
|
791
270
|
export type PostMetricData = z.infer<typeof PostMetricDataSchema>;
|
792
271
|
export type PostMetric = z.infer<typeof PostMetricSchema>;
|
793
|
-
export type PostAccount = z.infer<typeof PostAccountSchema>;
|
794
|
-
export type DeleteAccount = z.infer<typeof DeleteAccountSchema>;
|
795
|
-
export type ArchiveErrors = z.infer<typeof ArchiveErrorsSchema>;
|
796
|
-
|
797
|
-
}
|
798
|
-
declare module 'analytica.click/dist/ui/src/server/schema/rollup' {
|
799
|
-
import z from 'zod';
|
800
|
-
export const RollupTopReferrersSchema: z.ZodObject<{
|
801
|
-
referrer: z.ZodString;
|
802
|
-
count: z.ZodNumber;
|
803
|
-
}, z.core.$strip>;
|
804
|
-
export const RollupTopResolutionsSchema: z.ZodObject<{
|
805
|
-
resolution: z.ZodString;
|
806
|
-
count: z.ZodNumber;
|
807
|
-
}, z.core.$strip>;
|
808
|
-
export const RollupTopFingerprintsSchema: z.ZodObject<{
|
809
|
-
fingerprint: z.ZodString;
|
810
|
-
count: z.ZodNumber;
|
811
|
-
}, z.core.$strip>;
|
812
|
-
export const RollupTopQueriesSchema: z.ZodObject<{
|
813
|
-
pathName: z.ZodString;
|
814
|
-
count: z.ZodNumber;
|
815
|
-
}, z.core.$strip>;
|
816
|
-
export const RollupTopLocationsSchema: z.ZodObject<{
|
817
|
-
countryRegion: z.ZodString;
|
818
|
-
count: z.ZodNumber;
|
819
|
-
}, z.core.$strip>;
|
820
|
-
export const RollupTopBrowsersSchema: z.ZodObject<{
|
821
|
-
browser: z.ZodString;
|
822
|
-
count: z.ZodNumber;
|
823
|
-
}, z.core.$strip>;
|
824
|
-
export const RollupTopEventsSchema: z.ZodObject<{
|
825
|
-
eventName: z.ZodString;
|
826
|
-
count: z.ZodNumber;
|
827
|
-
}, z.core.$strip>;
|
828
|
-
export const RollupTopLanguagesSchema: z.ZodObject<{
|
829
|
-
language: z.ZodString;
|
830
|
-
count: z.ZodNumber;
|
831
|
-
}, z.core.$strip>;
|
832
|
-
export const RollupTopErrorsSchema: z.ZodObject<{
|
833
|
-
href: z.ZodString;
|
834
|
-
count: z.ZodNumber;
|
835
|
-
}, z.core.$strip>;
|
836
|
-
export const RollupMetricSummary: z.ZodObject<{
|
837
|
-
count: z.ZodNumber;
|
838
|
-
sum: z.ZodNumber;
|
839
|
-
average: z.ZodNumber;
|
840
|
-
}, z.core.$strip>;
|
841
|
-
export const RollupSchema: z.ZodObject<{
|
842
|
-
account: z.ZodString;
|
843
|
-
site: z.ZodString;
|
844
|
-
datetime: z.ZodNumber;
|
845
|
-
category: z.ZodEnum<{
|
846
|
-
SERVER: "SERVER";
|
847
|
-
CLIENT: "CLIENT";
|
848
|
-
}>;
|
849
|
-
topReferrers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
850
|
-
referrer: z.ZodString;
|
851
|
-
count: z.ZodNumber;
|
852
|
-
}, z.core.$strip>>>;
|
853
|
-
topResolutions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
854
|
-
resolution: z.ZodString;
|
855
|
-
count: z.ZodNumber;
|
856
|
-
}, z.core.$strip>>>;
|
857
|
-
topFingerprints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
858
|
-
fingerprint: z.ZodString;
|
859
|
-
count: z.ZodNumber;
|
860
|
-
}, z.core.$strip>>>;
|
861
|
-
topQueries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
862
|
-
pathName: z.ZodString;
|
863
|
-
count: z.ZodNumber;
|
864
|
-
}, z.core.$strip>>>;
|
865
|
-
topLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
866
|
-
countryRegion: z.ZodString;
|
867
|
-
count: z.ZodNumber;
|
868
|
-
}, z.core.$strip>>>;
|
869
|
-
topBrowsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
870
|
-
browser: z.ZodString;
|
871
|
-
count: z.ZodNumber;
|
872
|
-
}, z.core.$strip>>>;
|
873
|
-
topEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
874
|
-
eventName: z.ZodString;
|
875
|
-
count: z.ZodNumber;
|
876
|
-
}, z.core.$strip>>>;
|
877
|
-
topLanguages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
878
|
-
language: z.ZodString;
|
879
|
-
count: z.ZodNumber;
|
880
|
-
}, z.core.$strip>>>;
|
881
|
-
topErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
882
|
-
href: z.ZodString;
|
883
|
-
count: z.ZodNumber;
|
884
|
-
}, z.core.$strip>>>;
|
885
|
-
metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
886
|
-
count: z.ZodNumber;
|
887
|
-
sum: z.ZodNumber;
|
888
|
-
average: z.ZodNumber;
|
889
|
-
}, z.core.$strip>>>;
|
890
|
-
}, z.core.$strip>;
|
891
|
-
export type IRollupMetricSummary = z.infer<typeof RollupMetricSummary>;
|
892
272
|
|
893
273
|
}
|
894
274
|
declare module 'analytica.click' {
|