dub 0.45.7 → 0.45.8

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 (92) hide show
  1. package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
  2. package/dist/commonjs/funcs/analyticsRetrieve.js +1 -0
  3. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  4. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/eventsList.js +1 -0
  6. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/models/components/clickevent.d.ts +4 -2
  10. package/dist/commonjs/models/components/clickevent.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/clickevent.js +4 -2
  12. package/dist/commonjs/models/components/clickevent.js.map +1 -1
  13. package/dist/commonjs/models/components/leadcreatedevent.d.ts +4 -2
  14. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/leadcreatedevent.js +4 -2
  16. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  17. package/dist/commonjs/models/components/leadevent.d.ts +4 -2
  18. package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/leadevent.js +4 -2
  20. package/dist/commonjs/models/components/leadevent.js.map +1 -1
  21. package/dist/commonjs/models/components/linkclickedevent.d.ts +4 -2
  22. package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
  23. package/dist/commonjs/models/components/linkclickedevent.js +4 -2
  24. package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
  25. package/dist/commonjs/models/components/salecreatedevent.d.ts +4 -2
  26. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/salecreatedevent.js +4 -2
  28. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  29. package/dist/commonjs/models/components/saleevent.d.ts +4 -2
  30. package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/saleevent.js +4 -2
  32. package/dist/commonjs/models/components/saleevent.js.map +1 -1
  33. package/dist/commonjs/models/operations/listevents.d.ts +10 -5
  34. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/listevents.js +4 -2
  36. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  37. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +13 -5
  38. package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/retrieveanalytics.js +5 -2
  40. package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
  41. package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
  42. package/dist/esm/funcs/analyticsRetrieve.js +1 -0
  43. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  44. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  45. package/dist/esm/funcs/eventsList.js +1 -0
  46. package/dist/esm/funcs/eventsList.js.map +1 -1
  47. package/dist/esm/lib/config.d.ts +3 -3
  48. package/dist/esm/lib/config.js +3 -3
  49. package/dist/esm/models/components/clickevent.d.ts +4 -2
  50. package/dist/esm/models/components/clickevent.d.ts.map +1 -1
  51. package/dist/esm/models/components/clickevent.js +4 -2
  52. package/dist/esm/models/components/clickevent.js.map +1 -1
  53. package/dist/esm/models/components/leadcreatedevent.d.ts +4 -2
  54. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  55. package/dist/esm/models/components/leadcreatedevent.js +4 -2
  56. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  57. package/dist/esm/models/components/leadevent.d.ts +4 -2
  58. package/dist/esm/models/components/leadevent.d.ts.map +1 -1
  59. package/dist/esm/models/components/leadevent.js +4 -2
  60. package/dist/esm/models/components/leadevent.js.map +1 -1
  61. package/dist/esm/models/components/linkclickedevent.d.ts +4 -2
  62. package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
  63. package/dist/esm/models/components/linkclickedevent.js +4 -2
  64. package/dist/esm/models/components/linkclickedevent.js.map +1 -1
  65. package/dist/esm/models/components/salecreatedevent.d.ts +4 -2
  66. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  67. package/dist/esm/models/components/salecreatedevent.js +4 -2
  68. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  69. package/dist/esm/models/components/saleevent.d.ts +4 -2
  70. package/dist/esm/models/components/saleevent.d.ts.map +1 -1
  71. package/dist/esm/models/components/saleevent.js +4 -2
  72. package/dist/esm/models/components/saleevent.js.map +1 -1
  73. package/dist/esm/models/operations/listevents.d.ts +10 -5
  74. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  75. package/dist/esm/models/operations/listevents.js +4 -2
  76. package/dist/esm/models/operations/listevents.js.map +1 -1
  77. package/dist/esm/models/operations/retrieveanalytics.d.ts +13 -5
  78. package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
  79. package/dist/esm/models/operations/retrieveanalytics.js +5 -2
  80. package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
  81. package/package.json +1 -1
  82. package/src/funcs/analyticsRetrieve.ts +1 -0
  83. package/src/funcs/eventsList.ts +1 -0
  84. package/src/lib/config.ts +3 -3
  85. package/src/models/components/clickevent.ts +8 -4
  86. package/src/models/components/leadcreatedevent.ts +8 -4
  87. package/src/models/components/leadevent.ts +8 -4
  88. package/src/models/components/linkclickedevent.ts +8 -4
  89. package/src/models/components/salecreatedevent.ts +8 -4
  90. package/src/models/components/saleevent.ts +8 -4
  91. package/src/models/operations/listevents.ts +14 -7
  92. package/src/models/operations/retrieveanalytics.ts +15 -7
@@ -23,9 +23,10 @@ export type Event = ClosedEnum<typeof Event>;
23
23
  export type Click = {
24
24
  id: string;
25
25
  url: string;
26
- continent: string;
27
26
  country: string;
28
27
  city: string;
28
+ region: string;
29
+ continent: string;
29
30
  device: string;
30
31
  browser: string;
31
32
  os: string;
@@ -545,9 +546,10 @@ export const Click$inboundSchema: z.ZodType<Click, z.ZodTypeDef, unknown> = z
545
546
  .object({
546
547
  id: z.string(),
547
548
  url: z.string(),
548
- continent: z.string(),
549
549
  country: z.string(),
550
550
  city: z.string(),
551
+ region: z.string(),
552
+ continent: z.string(),
551
553
  device: z.string(),
552
554
  browser: z.string(),
553
555
  os: z.string(),
@@ -561,9 +563,10 @@ export const Click$inboundSchema: z.ZodType<Click, z.ZodTypeDef, unknown> = z
561
563
  export type Click$Outbound = {
562
564
  id: string;
563
565
  url: string;
564
- continent: string;
565
566
  country: string;
566
567
  city: string;
568
+ region: string;
569
+ continent: string;
567
570
  device: string;
568
571
  browser: string;
569
572
  os: string;
@@ -581,9 +584,10 @@ export const Click$outboundSchema: z.ZodType<
581
584
  > = z.object({
582
585
  id: z.string(),
583
586
  url: z.string(),
584
- continent: z.string(),
585
587
  country: z.string(),
586
588
  city: z.string(),
589
+ region: z.string(),
590
+ continent: z.string(),
587
591
  device: z.string(),
588
592
  browser: z.string(),
589
593
  os: z.string(),
@@ -50,9 +50,10 @@ export type LeadCreatedEventCustomer = {
50
50
  export type LeadCreatedEventClick = {
51
51
  id: string;
52
52
  url: string;
53
- continent: string;
54
53
  country: string;
55
54
  city: string;
55
+ region: string;
56
+ continent: string;
56
57
  device: string;
57
58
  browser: string;
58
59
  os: string;
@@ -577,9 +578,10 @@ export const LeadCreatedEventClick$inboundSchema: z.ZodType<
577
578
  > = z.object({
578
579
  id: z.string(),
579
580
  url: z.string(),
580
- continent: z.string(),
581
581
  country: z.string(),
582
582
  city: z.string(),
583
+ region: z.string(),
584
+ continent: z.string(),
583
585
  device: z.string(),
584
586
  browser: z.string(),
585
587
  os: z.string(),
@@ -593,9 +595,10 @@ export const LeadCreatedEventClick$inboundSchema: z.ZodType<
593
595
  export type LeadCreatedEventClick$Outbound = {
594
596
  id: string;
595
597
  url: string;
596
- continent: string;
597
598
  country: string;
598
599
  city: string;
600
+ region: string;
601
+ continent: string;
599
602
  device: string;
600
603
  browser: string;
601
604
  os: string;
@@ -613,9 +616,10 @@ export const LeadCreatedEventClick$outboundSchema: z.ZodType<
613
616
  > = z.object({
614
617
  id: z.string(),
615
618
  url: z.string(),
616
- continent: z.string(),
617
619
  country: z.string(),
618
620
  city: z.string(),
621
+ region: z.string(),
622
+ continent: z.string(),
619
623
  device: z.string(),
620
624
  browser: z.string(),
621
625
  os: z.string(),
@@ -23,9 +23,10 @@ export type LeadEventEvent = ClosedEnum<typeof LeadEventEvent>;
23
23
  export type LeadEventClick = {
24
24
  id: string;
25
25
  url: string;
26
- continent: string;
27
26
  country: string;
28
27
  city: string;
28
+ region: string;
29
+ continent: string;
29
30
  device: string;
30
31
  browser: string;
31
32
  os: string;
@@ -579,9 +580,10 @@ export const LeadEventClick$inboundSchema: z.ZodType<
579
580
  > = z.object({
580
581
  id: z.string(),
581
582
  url: z.string(),
582
- continent: z.string(),
583
583
  country: z.string(),
584
584
  city: z.string(),
585
+ region: z.string(),
586
+ continent: z.string(),
585
587
  device: z.string(),
586
588
  browser: z.string(),
587
589
  os: z.string(),
@@ -595,9 +597,10 @@ export const LeadEventClick$inboundSchema: z.ZodType<
595
597
  export type LeadEventClick$Outbound = {
596
598
  id: string;
597
599
  url: string;
598
- continent: string;
599
600
  country: string;
600
601
  city: string;
602
+ region: string;
603
+ continent: string;
601
604
  device: string;
602
605
  browser: string;
603
606
  os: string;
@@ -615,9 +618,10 @@ export const LeadEventClick$outboundSchema: z.ZodType<
615
618
  > = z.object({
616
619
  id: z.string(),
617
620
  url: z.string(),
618
- continent: z.string(),
619
621
  country: z.string(),
620
622
  city: z.string(),
623
+ region: z.string(),
624
+ continent: z.string(),
621
625
  device: z.string(),
622
626
  browser: z.string(),
623
627
  os: z.string(),
@@ -23,9 +23,10 @@ export type LinkClickedEventEvent = ClosedEnum<typeof LinkClickedEventEvent>;
23
23
  export type LinkClickedEventClick = {
24
24
  id: string;
25
25
  url: string;
26
- continent: string;
27
26
  country: string;
28
27
  city: string;
28
+ region: string;
29
+ continent: string;
29
30
  device: string;
30
31
  browser: string;
31
32
  os: string;
@@ -479,9 +480,10 @@ export const LinkClickedEventClick$inboundSchema: z.ZodType<
479
480
  > = z.object({
480
481
  id: z.string(),
481
482
  url: z.string(),
482
- continent: z.string(),
483
483
  country: z.string(),
484
484
  city: z.string(),
485
+ region: z.string(),
486
+ continent: z.string(),
485
487
  device: z.string(),
486
488
  browser: z.string(),
487
489
  os: z.string(),
@@ -495,9 +497,10 @@ export const LinkClickedEventClick$inboundSchema: z.ZodType<
495
497
  export type LinkClickedEventClick$Outbound = {
496
498
  id: string;
497
499
  url: string;
498
- continent: string;
499
500
  country: string;
500
501
  city: string;
502
+ region: string;
503
+ continent: string;
501
504
  device: string;
502
505
  browser: string;
503
506
  os: string;
@@ -515,9 +518,10 @@ export const LinkClickedEventClick$outboundSchema: z.ZodType<
515
518
  > = z.object({
516
519
  id: z.string(),
517
520
  url: z.string(),
518
- continent: z.string(),
519
521
  country: z.string(),
520
522
  city: z.string(),
523
+ region: z.string(),
524
+ continent: z.string(),
521
525
  device: z.string(),
522
526
  browser: z.string(),
523
527
  os: z.string(),
@@ -50,9 +50,10 @@ export type SaleCreatedEventCustomer = {
50
50
  export type SaleCreatedEventClick = {
51
51
  id: string;
52
52
  url: string;
53
- continent: string;
54
53
  country: string;
55
54
  city: string;
55
+ region: string;
56
+ continent: string;
56
57
  device: string;
57
58
  browser: string;
58
59
  os: string;
@@ -585,9 +586,10 @@ export const SaleCreatedEventClick$inboundSchema: z.ZodType<
585
586
  > = z.object({
586
587
  id: z.string(),
587
588
  url: z.string(),
588
- continent: z.string(),
589
589
  country: z.string(),
590
590
  city: z.string(),
591
+ region: z.string(),
592
+ continent: z.string(),
591
593
  device: z.string(),
592
594
  browser: z.string(),
593
595
  os: z.string(),
@@ -601,9 +603,10 @@ export const SaleCreatedEventClick$inboundSchema: z.ZodType<
601
603
  export type SaleCreatedEventClick$Outbound = {
602
604
  id: string;
603
605
  url: string;
604
- continent: string;
605
606
  country: string;
606
607
  city: string;
608
+ region: string;
609
+ continent: string;
607
610
  device: string;
608
611
  browser: string;
609
612
  os: string;
@@ -621,9 +624,10 @@ export const SaleCreatedEventClick$outboundSchema: z.ZodType<
621
624
  > = z.object({
622
625
  id: z.string(),
623
626
  url: z.string(),
624
- continent: z.string(),
625
627
  country: z.string(),
626
628
  city: z.string(),
629
+ region: z.string(),
630
+ continent: z.string(),
627
631
  device: z.string(),
628
632
  browser: z.string(),
629
633
  os: z.string(),
@@ -423,9 +423,10 @@ export type SaleEventLink = {
423
423
  export type SaleEventClick = {
424
424
  id: string;
425
425
  url: string;
426
- continent: string;
427
426
  country: string;
428
427
  city: string;
428
+ region: string;
429
+ continent: string;
429
430
  device: string;
430
431
  browser: string;
431
432
  os: string;
@@ -2122,9 +2123,10 @@ export const SaleEventClick$inboundSchema: z.ZodType<
2122
2123
  > = z.object({
2123
2124
  id: z.string(),
2124
2125
  url: z.string(),
2125
- continent: z.string(),
2126
2126
  country: z.string(),
2127
2127
  city: z.string(),
2128
+ region: z.string(),
2129
+ continent: z.string(),
2128
2130
  device: z.string(),
2129
2131
  browser: z.string(),
2130
2132
  os: z.string(),
@@ -2138,9 +2140,10 @@ export const SaleEventClick$inboundSchema: z.ZodType<
2138
2140
  export type SaleEventClick$Outbound = {
2139
2141
  id: string;
2140
2142
  url: string;
2141
- continent: string;
2142
2143
  country: string;
2143
2144
  city: string;
2145
+ region: string;
2146
+ continent: string;
2144
2147
  device: string;
2145
2148
  browser: string;
2146
2149
  os: string;
@@ -2158,9 +2161,10 @@ export const SaleEventClick$outboundSchema: z.ZodType<
2158
2161
  > = z.object({
2159
2162
  id: z.string(),
2160
2163
  url: z.string(),
2161
- continent: z.string(),
2162
2164
  country: z.string(),
2163
2165
  city: z.string(),
2166
+ region: z.string(),
2167
+ continent: z.string(),
2164
2168
  device: z.string(),
2165
2169
  browser: z.string(),
2166
2170
  os: z.string(),
@@ -104,10 +104,6 @@ export type ListEventsRequest = {
104
104
  * The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
105
105
  */
106
106
  timezone?: string | undefined;
107
- /**
108
- * The continent to retrieve analytics for.
109
- */
110
- continent?: components.ContinentCode | undefined;
111
107
  /**
112
108
  * The country to retrieve analytics for.
113
109
  */
@@ -116,6 +112,14 @@ export type ListEventsRequest = {
116
112
  * The city to retrieve analytics for.
117
113
  */
118
114
  city?: string | undefined;
115
+ /**
116
+ * The ISO 3166-2 region code to retrieve analytics for.
117
+ */
118
+ region?: string | undefined;
119
+ /**
120
+ * The continent to retrieve analytics for.
121
+ */
122
+ continent?: components.ContinentCode | undefined;
119
123
  /**
120
124
  * The device to retrieve analytics for.
121
125
  */
@@ -339,9 +343,10 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
339
343
  start: z.string().optional(),
340
344
  end: z.string().optional(),
341
345
  timezone: z.string().default("UTC"),
342
- continent: components.ContinentCode$inboundSchema.optional(),
343
346
  country: components.CountryCode$inboundSchema.optional(),
344
347
  city: z.string().optional(),
348
+ region: z.string().optional(),
349
+ continent: components.ContinentCode$inboundSchema.optional(),
345
350
  device: z.string().optional(),
346
351
  browser: z.string().optional(),
347
352
  os: z.string().optional(),
@@ -370,9 +375,10 @@ export type ListEventsRequest$Outbound = {
370
375
  start?: string | undefined;
371
376
  end?: string | undefined;
372
377
  timezone: string;
373
- continent?: string | undefined;
374
378
  country?: string | undefined;
375
379
  city?: string | undefined;
380
+ region?: string | undefined;
381
+ continent?: string | undefined;
376
382
  device?: string | undefined;
377
383
  browser?: string | undefined;
378
384
  os?: string | undefined;
@@ -405,9 +411,10 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
405
411
  start: z.string().optional(),
406
412
  end: z.string().optional(),
407
413
  timezone: z.string().default("UTC"),
408
- continent: components.ContinentCode$outboundSchema.optional(),
409
414
  country: components.CountryCode$outboundSchema.optional(),
410
415
  city: z.string().optional(),
416
+ region: z.string().optional(),
417
+ continent: components.ContinentCode$outboundSchema.optional(),
411
418
  device: z.string().optional(),
412
419
  browser: z.string().optional(),
413
420
  os: z.string().optional(),
@@ -30,6 +30,7 @@ export const QueryParamGroupBy = {
30
30
  Count: "count",
31
31
  Timeseries: "timeseries",
32
32
  Continents: "continents",
33
+ Regions: "regions",
33
34
  Countries: "countries",
34
35
  Cities: "cities",
35
36
  Devices: "devices",
@@ -123,10 +124,6 @@ export type RetrieveAnalyticsRequest = {
123
124
  * The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
124
125
  */
125
126
  timezone?: string | undefined;
126
- /**
127
- * The continent to retrieve analytics for.
128
- */
129
- continent?: components.ContinentCode | undefined;
130
127
  /**
131
128
  * The country to retrieve analytics for.
132
129
  */
@@ -135,6 +132,14 @@ export type RetrieveAnalyticsRequest = {
135
132
  * The city to retrieve analytics for.
136
133
  */
137
134
  city?: string | undefined;
135
+ /**
136
+ * The ISO 3166-2 region code to retrieve analytics for.
137
+ */
138
+ region?: string | undefined;
139
+ /**
140
+ * The continent to retrieve analytics for.
141
+ */
142
+ continent?: components.ContinentCode | undefined;
138
143
  /**
139
144
  * The device to retrieve analytics for.
140
145
  */
@@ -345,9 +350,10 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
345
350
  start: z.string().optional(),
346
351
  end: z.string().optional(),
347
352
  timezone: z.string().default("UTC"),
348
- continent: components.ContinentCode$inboundSchema.optional(),
349
353
  country: components.CountryCode$inboundSchema.optional(),
350
354
  city: z.string().optional(),
355
+ region: z.string().optional(),
356
+ continent: components.ContinentCode$inboundSchema.optional(),
351
357
  device: z.string().optional(),
352
358
  browser: z.string().optional(),
353
359
  os: z.string().optional(),
@@ -373,9 +379,10 @@ export type RetrieveAnalyticsRequest$Outbound = {
373
379
  start?: string | undefined;
374
380
  end?: string | undefined;
375
381
  timezone: string;
376
- continent?: string | undefined;
377
382
  country?: string | undefined;
378
383
  city?: string | undefined;
384
+ region?: string | undefined;
385
+ continent?: string | undefined;
379
386
  device?: string | undefined;
380
387
  browser?: string | undefined;
381
388
  os?: string | undefined;
@@ -405,9 +412,10 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
405
412
  start: z.string().optional(),
406
413
  end: z.string().optional(),
407
414
  timezone: z.string().default("UTC"),
408
- continent: components.ContinentCode$outboundSchema.optional(),
409
415
  country: components.CountryCode$outboundSchema.optional(),
410
416
  city: z.string().optional(),
417
+ region: z.string().optional(),
418
+ continent: components.ContinentCode$outboundSchema.optional(),
411
419
  device: z.string().optional(),
412
420
  browser: z.string().optional(),
413
421
  os: z.string().optional(),