dub 0.43.2 → 0.43.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/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js +1 -0
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -0
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/analyticscontinents.d.ts +95 -0
- package/dist/commonjs/models/components/analyticscontinents.d.ts.map +1 -0
- package/dist/commonjs/models/components/analyticscontinents.js +86 -0
- package/dist/commonjs/models/components/analyticscontinents.js.map +1 -0
- package/dist/commonjs/models/components/analyticsrefererurls.d.ts +48 -0
- package/dist/commonjs/models/components/analyticsrefererurls.d.ts.map +1 -0
- package/dist/commonjs/models/components/analyticsrefererurls.js +58 -0
- package/dist/commonjs/models/components/analyticsrefererurls.js.map +1 -0
- package/dist/commonjs/models/components/analyticstriggers.d.ts +80 -0
- package/dist/commonjs/models/components/analyticstriggers.d.ts.map +1 -0
- package/dist/commonjs/models/components/analyticstriggers.js +81 -0
- package/dist/commonjs/models/components/analyticstriggers.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +37 -1
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +25 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +51 -12
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +36 -4
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +1 -0
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -0
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/analyticscontinents.d.ts +95 -0
- package/dist/esm/models/components/analyticscontinents.d.ts.map +1 -0
- package/dist/esm/models/components/analyticscontinents.js +60 -0
- package/dist/esm/models/components/analyticscontinents.js.map +1 -0
- package/dist/esm/models/components/analyticsrefererurls.d.ts +48 -0
- package/dist/esm/models/components/analyticsrefererurls.d.ts.map +1 -0
- package/dist/esm/models/components/analyticsrefererurls.js +32 -0
- package/dist/esm/models/components/analyticsrefererurls.js.map +1 -0
- package/dist/esm/models/components/analyticstriggers.d.ts +80 -0
- package/dist/esm/models/components/analyticstriggers.d.ts.map +1 -0
- package/dist/esm/models/components/analyticstriggers.js +55 -0
- package/dist/esm/models/components/analyticstriggers.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +37 -1
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +24 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +51 -12
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +35 -3
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +1 -0
- package/src/funcs/eventsList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/analyticscontinents.ts +113 -0
- package/src/models/components/analyticsrefererurls.ts +76 -0
- package/src/models/components/analyticstriggers.ts +108 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/operations/listevents.ts +41 -1
- package/src/models/operations/retrieveanalytics.ts +59 -8
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The type of trigger method: link click or QR scan
|
|
10
|
+
*/
|
|
11
|
+
export const Trigger = {
|
|
12
|
+
Qr: "qr",
|
|
13
|
+
Link: "link",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* The type of trigger method: link click or QR scan
|
|
17
|
+
*/
|
|
18
|
+
export type Trigger = ClosedEnum<typeof Trigger>;
|
|
19
|
+
|
|
20
|
+
export type AnalyticsTriggers = {
|
|
21
|
+
/**
|
|
22
|
+
* The type of trigger method: link click or QR scan
|
|
23
|
+
*/
|
|
24
|
+
trigger: Trigger;
|
|
25
|
+
/**
|
|
26
|
+
* The number of clicks from this trigger method
|
|
27
|
+
*/
|
|
28
|
+
clicks?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The number of leads from this trigger method
|
|
31
|
+
*/
|
|
32
|
+
leads?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The number of sales from this trigger method
|
|
35
|
+
*/
|
|
36
|
+
sales?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The total amount of sales from this trigger method, in cents
|
|
39
|
+
*/
|
|
40
|
+
saleAmount?: number | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const Trigger$inboundSchema: z.ZodNativeEnum<typeof Trigger> = z
|
|
45
|
+
.nativeEnum(Trigger);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const Trigger$outboundSchema: z.ZodNativeEnum<typeof Trigger> =
|
|
49
|
+
Trigger$inboundSchema;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace Trigger$ {
|
|
56
|
+
/** @deprecated use `Trigger$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = Trigger$inboundSchema;
|
|
58
|
+
/** @deprecated use `Trigger$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = Trigger$outboundSchema;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const AnalyticsTriggers$inboundSchema: z.ZodType<
|
|
64
|
+
AnalyticsTriggers,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
trigger: Trigger$inboundSchema,
|
|
69
|
+
clicks: z.number().default(0),
|
|
70
|
+
leads: z.number().default(0),
|
|
71
|
+
sales: z.number().default(0),
|
|
72
|
+
saleAmount: z.number().default(0),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type AnalyticsTriggers$Outbound = {
|
|
77
|
+
trigger: string;
|
|
78
|
+
clicks: number;
|
|
79
|
+
leads: number;
|
|
80
|
+
sales: number;
|
|
81
|
+
saleAmount: number;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const AnalyticsTriggers$outboundSchema: z.ZodType<
|
|
86
|
+
AnalyticsTriggers$Outbound,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
AnalyticsTriggers
|
|
89
|
+
> = z.object({
|
|
90
|
+
trigger: Trigger$outboundSchema,
|
|
91
|
+
clicks: z.number().default(0),
|
|
92
|
+
leads: z.number().default(0),
|
|
93
|
+
sales: z.number().default(0),
|
|
94
|
+
saleAmount: z.number().default(0),
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
export namespace AnalyticsTriggers$ {
|
|
102
|
+
/** @deprecated use `AnalyticsTriggers$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = AnalyticsTriggers$inboundSchema;
|
|
104
|
+
/** @deprecated use `AnalyticsTriggers$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = AnalyticsTriggers$outboundSchema;
|
|
106
|
+
/** @deprecated use `AnalyticsTriggers$Outbound` instead. */
|
|
107
|
+
export type Outbound = AnalyticsTriggers$Outbound;
|
|
108
|
+
}
|
|
@@ -4,14 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./analyticsbrowsers.js";
|
|
6
6
|
export * from "./analyticscities.js";
|
|
7
|
+
export * from "./analyticscontinents.js";
|
|
7
8
|
export * from "./analyticscount.js";
|
|
8
9
|
export * from "./analyticscountries.js";
|
|
9
10
|
export * from "./analyticsdevices.js";
|
|
10
11
|
export * from "./analyticsos.js";
|
|
11
12
|
export * from "./analyticsreferers.js";
|
|
13
|
+
export * from "./analyticsrefererurls.js";
|
|
12
14
|
export * from "./analyticstimeseries.js";
|
|
13
15
|
export * from "./analyticstoplinks.js";
|
|
14
16
|
export * from "./analyticstopurls.js";
|
|
17
|
+
export * from "./analyticstriggers.js";
|
|
15
18
|
export * from "./clickevent.js";
|
|
16
19
|
export * from "./continentcode.js";
|
|
17
20
|
export * from "./countrycode.js";
|
|
@@ -36,6 +36,18 @@ export const QueryParamInterval = {
|
|
|
36
36
|
*/
|
|
37
37
|
export type QueryParamInterval = ClosedEnum<typeof QueryParamInterval>;
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
41
|
+
*/
|
|
42
|
+
export const QueryParamTrigger = {
|
|
43
|
+
Qr: "qr",
|
|
44
|
+
Link: "link",
|
|
45
|
+
} as const;
|
|
46
|
+
/**
|
|
47
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
48
|
+
*/
|
|
49
|
+
export type QueryParamTrigger = ClosedEnum<typeof QueryParamTrigger>;
|
|
50
|
+
|
|
39
51
|
export const Order = {
|
|
40
52
|
Asc: "asc",
|
|
41
53
|
Desc: "desc",
|
|
@@ -108,6 +120,10 @@ export type ListEventsRequest = {
|
|
|
108
120
|
* The OS to retrieve analytics for.
|
|
109
121
|
*/
|
|
110
122
|
os?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
125
|
+
*/
|
|
126
|
+
trigger?: QueryParamTrigger | undefined;
|
|
111
127
|
/**
|
|
112
128
|
* The referer to retrieve analytics for.
|
|
113
129
|
*/
|
|
@@ -125,7 +141,7 @@ export type ListEventsRequest = {
|
|
|
125
141
|
*/
|
|
126
142
|
tagId?: string | undefined;
|
|
127
143
|
/**
|
|
128
|
-
* Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
144
|
+
* Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
129
145
|
*/
|
|
130
146
|
qr?: boolean | undefined;
|
|
131
147
|
/**
|
|
@@ -188,6 +204,27 @@ export namespace QueryParamInterval$ {
|
|
|
188
204
|
export const outboundSchema = QueryParamInterval$outboundSchema;
|
|
189
205
|
}
|
|
190
206
|
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const QueryParamTrigger$inboundSchema: z.ZodNativeEnum<
|
|
209
|
+
typeof QueryParamTrigger
|
|
210
|
+
> = z.nativeEnum(QueryParamTrigger);
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const QueryParamTrigger$outboundSchema: z.ZodNativeEnum<
|
|
214
|
+
typeof QueryParamTrigger
|
|
215
|
+
> = QueryParamTrigger$inboundSchema;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
220
|
+
*/
|
|
221
|
+
export namespace QueryParamTrigger$ {
|
|
222
|
+
/** @deprecated use `QueryParamTrigger$inboundSchema` instead. */
|
|
223
|
+
export const inboundSchema = QueryParamTrigger$inboundSchema;
|
|
224
|
+
/** @deprecated use `QueryParamTrigger$outboundSchema` instead. */
|
|
225
|
+
export const outboundSchema = QueryParamTrigger$outboundSchema;
|
|
226
|
+
}
|
|
227
|
+
|
|
191
228
|
/** @internal */
|
|
192
229
|
export const Order$inboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
|
|
193
230
|
Order,
|
|
@@ -248,6 +285,7 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
|
|
|
248
285
|
device: z.string().optional(),
|
|
249
286
|
browser: z.string().optional(),
|
|
250
287
|
os: z.string().optional(),
|
|
288
|
+
trigger: QueryParamTrigger$inboundSchema.optional(),
|
|
251
289
|
referer: z.string().optional(),
|
|
252
290
|
refererUrl: z.string().optional(),
|
|
253
291
|
url: z.string().optional(),
|
|
@@ -277,6 +315,7 @@ export type ListEventsRequest$Outbound = {
|
|
|
277
315
|
device?: string | undefined;
|
|
278
316
|
browser?: string | undefined;
|
|
279
317
|
os?: string | undefined;
|
|
318
|
+
trigger?: string | undefined;
|
|
280
319
|
referer?: string | undefined;
|
|
281
320
|
refererUrl?: string | undefined;
|
|
282
321
|
url?: string | undefined;
|
|
@@ -310,6 +349,7 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
|
|
|
310
349
|
device: z.string().optional(),
|
|
311
350
|
browser: z.string().optional(),
|
|
312
351
|
os: z.string().optional(),
|
|
352
|
+
trigger: QueryParamTrigger$outboundSchema.optional(),
|
|
313
353
|
referer: z.string().optional(),
|
|
314
354
|
refererUrl: z.string().optional(),
|
|
315
355
|
url: z.string().optional(),
|
|
@@ -7,7 +7,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* The type of event to retrieve analytics for. Defaults to
|
|
10
|
+
* The type of event to retrieve analytics for. Defaults to `clicks`.
|
|
11
11
|
*/
|
|
12
12
|
export const Event = {
|
|
13
13
|
Clicks: "clicks",
|
|
@@ -16,12 +16,12 @@ export const Event = {
|
|
|
16
16
|
Composite: "composite",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
|
-
* The type of event to retrieve analytics for. Defaults to
|
|
19
|
+
* The type of event to retrieve analytics for. Defaults to `clicks`.
|
|
20
20
|
*/
|
|
21
21
|
export type Event = ClosedEnum<typeof Event>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* The parameter to group the analytics data points by. Defaults to
|
|
24
|
+
* The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility.
|
|
25
25
|
*/
|
|
26
26
|
export const QueryParamGroupBy = {
|
|
27
27
|
Count: "count",
|
|
@@ -32,14 +32,15 @@ export const QueryParamGroupBy = {
|
|
|
32
32
|
Devices: "devices",
|
|
33
33
|
Browsers: "browsers",
|
|
34
34
|
Os: "os",
|
|
35
|
+
Trigger: "trigger",
|
|
36
|
+
Triggers: "triggers",
|
|
35
37
|
Referers: "referers",
|
|
36
38
|
RefererUrls: "referer_urls",
|
|
37
39
|
TopLinks: "top_links",
|
|
38
40
|
TopUrls: "top_urls",
|
|
39
|
-
Trigger: "trigger",
|
|
40
41
|
} as const;
|
|
41
42
|
/**
|
|
42
|
-
* The parameter to group the analytics data points by. Defaults to
|
|
43
|
+
* The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility.
|
|
43
44
|
*/
|
|
44
45
|
export type QueryParamGroupBy = ClosedEnum<typeof QueryParamGroupBy>;
|
|
45
46
|
|
|
@@ -61,13 +62,25 @@ export const Interval = {
|
|
|
61
62
|
*/
|
|
62
63
|
export type Interval = ClosedEnum<typeof Interval>;
|
|
63
64
|
|
|
65
|
+
/**
|
|
66
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
67
|
+
*/
|
|
68
|
+
export const Trigger = {
|
|
69
|
+
Qr: "qr",
|
|
70
|
+
Link: "link",
|
|
71
|
+
} as const;
|
|
72
|
+
/**
|
|
73
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
74
|
+
*/
|
|
75
|
+
export type Trigger = ClosedEnum<typeof Trigger>;
|
|
76
|
+
|
|
64
77
|
export type RetrieveAnalyticsRequest = {
|
|
65
78
|
/**
|
|
66
|
-
* The type of event to retrieve analytics for. Defaults to
|
|
79
|
+
* The type of event to retrieve analytics for. Defaults to `clicks`.
|
|
67
80
|
*/
|
|
68
81
|
event?: Event | undefined;
|
|
69
82
|
/**
|
|
70
|
-
* The parameter to group the analytics data points by. Defaults to
|
|
83
|
+
* The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility.
|
|
71
84
|
*/
|
|
72
85
|
groupBy?: QueryParamGroupBy | undefined;
|
|
73
86
|
/**
|
|
@@ -126,6 +139,10 @@ export type RetrieveAnalyticsRequest = {
|
|
|
126
139
|
* The OS to retrieve analytics for.
|
|
127
140
|
*/
|
|
128
141
|
os?: string | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
144
|
+
*/
|
|
145
|
+
trigger?: Trigger | undefined;
|
|
129
146
|
/**
|
|
130
147
|
* The referer to retrieve analytics for.
|
|
131
148
|
*/
|
|
@@ -143,7 +160,7 @@ export type RetrieveAnalyticsRequest = {
|
|
|
143
160
|
*/
|
|
144
161
|
tagId?: string | undefined;
|
|
145
162
|
/**
|
|
146
|
-
* Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
163
|
+
* Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
147
164
|
*/
|
|
148
165
|
qr?: boolean | undefined;
|
|
149
166
|
/**
|
|
@@ -158,12 +175,15 @@ export type RetrieveAnalyticsRequest = {
|
|
|
158
175
|
export type RetrieveAnalyticsResponseBody =
|
|
159
176
|
| components.AnalyticsCount
|
|
160
177
|
| Array<components.AnalyticsTimeseries>
|
|
178
|
+
| Array<components.AnalyticsContinents>
|
|
161
179
|
| Array<components.AnalyticsCountries>
|
|
162
180
|
| Array<components.AnalyticsCities>
|
|
163
181
|
| Array<components.AnalyticsDevices>
|
|
164
182
|
| Array<components.AnalyticsBrowsers>
|
|
165
183
|
| Array<components.AnalyticsOS>
|
|
184
|
+
| Array<components.AnalyticsTriggers>
|
|
166
185
|
| Array<components.AnalyticsReferers>
|
|
186
|
+
| Array<components.AnalyticsRefererUrls>
|
|
167
187
|
| Array<components.AnalyticsTopLinks>
|
|
168
188
|
| Array<components.AnalyticsTopUrls>;
|
|
169
189
|
|
|
@@ -227,6 +247,25 @@ export namespace Interval$ {
|
|
|
227
247
|
export const outboundSchema = Interval$outboundSchema;
|
|
228
248
|
}
|
|
229
249
|
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const Trigger$inboundSchema: z.ZodNativeEnum<typeof Trigger> = z
|
|
252
|
+
.nativeEnum(Trigger);
|
|
253
|
+
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const Trigger$outboundSchema: z.ZodNativeEnum<typeof Trigger> =
|
|
256
|
+
Trigger$inboundSchema;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
261
|
+
*/
|
|
262
|
+
export namespace Trigger$ {
|
|
263
|
+
/** @deprecated use `Trigger$inboundSchema` instead. */
|
|
264
|
+
export const inboundSchema = Trigger$inboundSchema;
|
|
265
|
+
/** @deprecated use `Trigger$outboundSchema` instead. */
|
|
266
|
+
export const outboundSchema = Trigger$outboundSchema;
|
|
267
|
+
}
|
|
268
|
+
|
|
230
269
|
/** @internal */
|
|
231
270
|
export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
232
271
|
RetrieveAnalyticsRequest,
|
|
@@ -249,6 +288,7 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
|
249
288
|
device: z.string().optional(),
|
|
250
289
|
browser: z.string().optional(),
|
|
251
290
|
os: z.string().optional(),
|
|
291
|
+
trigger: Trigger$inboundSchema.optional(),
|
|
252
292
|
referer: z.string().optional(),
|
|
253
293
|
refererUrl: z.string().optional(),
|
|
254
294
|
url: z.string().optional(),
|
|
@@ -275,6 +315,7 @@ export type RetrieveAnalyticsRequest$Outbound = {
|
|
|
275
315
|
device?: string | undefined;
|
|
276
316
|
browser?: string | undefined;
|
|
277
317
|
os?: string | undefined;
|
|
318
|
+
trigger?: string | undefined;
|
|
278
319
|
referer?: string | undefined;
|
|
279
320
|
refererUrl?: string | undefined;
|
|
280
321
|
url?: string | undefined;
|
|
@@ -305,6 +346,7 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
|
|
|
305
346
|
device: z.string().optional(),
|
|
306
347
|
browser: z.string().optional(),
|
|
307
348
|
os: z.string().optional(),
|
|
349
|
+
trigger: Trigger$outboundSchema.optional(),
|
|
308
350
|
referer: z.string().optional(),
|
|
309
351
|
refererUrl: z.string().optional(),
|
|
310
352
|
url: z.string().optional(),
|
|
@@ -334,12 +376,15 @@ export const RetrieveAnalyticsResponseBody$inboundSchema: z.ZodType<
|
|
|
334
376
|
> = z.union([
|
|
335
377
|
components.AnalyticsCount$inboundSchema,
|
|
336
378
|
z.array(components.AnalyticsTimeseries$inboundSchema),
|
|
379
|
+
z.array(components.AnalyticsContinents$inboundSchema),
|
|
337
380
|
z.array(components.AnalyticsCountries$inboundSchema),
|
|
338
381
|
z.array(components.AnalyticsCities$inboundSchema),
|
|
339
382
|
z.array(components.AnalyticsDevices$inboundSchema),
|
|
340
383
|
z.array(components.AnalyticsBrowsers$inboundSchema),
|
|
341
384
|
z.array(components.AnalyticsOS$inboundSchema),
|
|
385
|
+
z.array(components.AnalyticsTriggers$inboundSchema),
|
|
342
386
|
z.array(components.AnalyticsReferers$inboundSchema),
|
|
387
|
+
z.array(components.AnalyticsRefererUrls$inboundSchema),
|
|
343
388
|
z.array(components.AnalyticsTopLinks$inboundSchema),
|
|
344
389
|
z.array(components.AnalyticsTopUrls$inboundSchema),
|
|
345
390
|
]);
|
|
@@ -348,12 +393,15 @@ export const RetrieveAnalyticsResponseBody$inboundSchema: z.ZodType<
|
|
|
348
393
|
export type RetrieveAnalyticsResponseBody$Outbound =
|
|
349
394
|
| components.AnalyticsCount$Outbound
|
|
350
395
|
| Array<components.AnalyticsTimeseries$Outbound>
|
|
396
|
+
| Array<components.AnalyticsContinents$Outbound>
|
|
351
397
|
| Array<components.AnalyticsCountries$Outbound>
|
|
352
398
|
| Array<components.AnalyticsCities$Outbound>
|
|
353
399
|
| Array<components.AnalyticsDevices$Outbound>
|
|
354
400
|
| Array<components.AnalyticsBrowsers$Outbound>
|
|
355
401
|
| Array<components.AnalyticsOS$Outbound>
|
|
402
|
+
| Array<components.AnalyticsTriggers$Outbound>
|
|
356
403
|
| Array<components.AnalyticsReferers$Outbound>
|
|
404
|
+
| Array<components.AnalyticsRefererUrls$Outbound>
|
|
357
405
|
| Array<components.AnalyticsTopLinks$Outbound>
|
|
358
406
|
| Array<components.AnalyticsTopUrls$Outbound>;
|
|
359
407
|
|
|
@@ -365,12 +413,15 @@ export const RetrieveAnalyticsResponseBody$outboundSchema: z.ZodType<
|
|
|
365
413
|
> = z.union([
|
|
366
414
|
components.AnalyticsCount$outboundSchema,
|
|
367
415
|
z.array(components.AnalyticsTimeseries$outboundSchema),
|
|
416
|
+
z.array(components.AnalyticsContinents$outboundSchema),
|
|
368
417
|
z.array(components.AnalyticsCountries$outboundSchema),
|
|
369
418
|
z.array(components.AnalyticsCities$outboundSchema),
|
|
370
419
|
z.array(components.AnalyticsDevices$outboundSchema),
|
|
371
420
|
z.array(components.AnalyticsBrowsers$outboundSchema),
|
|
372
421
|
z.array(components.AnalyticsOS$outboundSchema),
|
|
422
|
+
z.array(components.AnalyticsTriggers$outboundSchema),
|
|
373
423
|
z.array(components.AnalyticsReferers$outboundSchema),
|
|
424
|
+
z.array(components.AnalyticsRefererUrls$outboundSchema),
|
|
374
425
|
z.array(components.AnalyticsTopLinks$outboundSchema),
|
|
375
426
|
z.array(components.AnalyticsTopUrls$outboundSchema),
|
|
376
427
|
]);
|