dub 0.43.2 → 0.43.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/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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +49 -10
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +30 -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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +49 -10
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +29 -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 +2 -2
- package/src/models/operations/listevents.ts +41 -1
- package/src/models/operations/retrieveanalytics.ts +47 -8
|
@@ -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
|
/**
|
|
@@ -227,6 +244,25 @@ export namespace Interval$ {
|
|
|
227
244
|
export const outboundSchema = Interval$outboundSchema;
|
|
228
245
|
}
|
|
229
246
|
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const Trigger$inboundSchema: z.ZodNativeEnum<typeof Trigger> = z
|
|
249
|
+
.nativeEnum(Trigger);
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const Trigger$outboundSchema: z.ZodNativeEnum<typeof Trigger> =
|
|
253
|
+
Trigger$inboundSchema;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
+
*/
|
|
259
|
+
export namespace Trigger$ {
|
|
260
|
+
/** @deprecated use `Trigger$inboundSchema` instead. */
|
|
261
|
+
export const inboundSchema = Trigger$inboundSchema;
|
|
262
|
+
/** @deprecated use `Trigger$outboundSchema` instead. */
|
|
263
|
+
export const outboundSchema = Trigger$outboundSchema;
|
|
264
|
+
}
|
|
265
|
+
|
|
230
266
|
/** @internal */
|
|
231
267
|
export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
232
268
|
RetrieveAnalyticsRequest,
|
|
@@ -249,6 +285,7 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
|
249
285
|
device: z.string().optional(),
|
|
250
286
|
browser: z.string().optional(),
|
|
251
287
|
os: z.string().optional(),
|
|
288
|
+
trigger: Trigger$inboundSchema.optional(),
|
|
252
289
|
referer: z.string().optional(),
|
|
253
290
|
refererUrl: z.string().optional(),
|
|
254
291
|
url: z.string().optional(),
|
|
@@ -275,6 +312,7 @@ export type RetrieveAnalyticsRequest$Outbound = {
|
|
|
275
312
|
device?: string | undefined;
|
|
276
313
|
browser?: string | undefined;
|
|
277
314
|
os?: string | undefined;
|
|
315
|
+
trigger?: string | undefined;
|
|
278
316
|
referer?: string | undefined;
|
|
279
317
|
refererUrl?: string | undefined;
|
|
280
318
|
url?: string | undefined;
|
|
@@ -305,6 +343,7 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
|
|
|
305
343
|
device: z.string().optional(),
|
|
306
344
|
browser: z.string().optional(),
|
|
307
345
|
os: z.string().optional(),
|
|
346
|
+
trigger: Trigger$outboundSchema.optional(),
|
|
308
347
|
referer: z.string().optional(),
|
|
309
348
|
refererUrl: z.string().optional(),
|
|
310
349
|
url: z.string().optional(),
|