dub 0.29.2 → 0.29.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/docs/sdks/analytics/README.md +2 -2
- package/docs/sdks/clicks/README.md +2 -2
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/clicksbycities.d.ts +793 -0
- package/models/components/clicksbycities.d.ts.map +1 -0
- package/models/components/clicksbycities.js +322 -0
- package/models/components/clicksbycities.js.map +1 -0
- package/models/components/clicksbycountry.d.ts +788 -0
- package/models/components/clicksbycountry.d.ts.map +1 -0
- package/models/components/clicksbycountry.js +318 -0
- package/models/components/clicksbycountry.js.map +1 -0
- package/models/components/countrycode.d.ts +769 -0
- package/models/components/countrycode.d.ts.map +1 -0
- package/models/components/countrycode.js +292 -0
- package/models/components/countrycode.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/linkgeotargeting.d.ts +514 -0
- package/models/components/linkgeotargeting.d.ts.map +1 -0
- package/models/components/linkgeotargeting.js +1049 -0
- package/models/components/linkgeotargeting.js.map +1 -0
- package/models/operations/bulkcreatelinks.d.ts +3 -514
- package/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/models/operations/bulkcreatelinks.js +4 -1021
- package/models/operations/bulkcreatelinks.js.map +1 -1
- package/models/operations/createlink.d.ts +3 -514
- package/models/operations/createlink.d.ts.map +1 -1
- package/models/operations/createlink.js +4 -1021
- package/models/operations/createlink.js.map +1 -1
- package/models/operations/getbrowsersbyclicks.d.ts +2 -767
- package/models/operations/getbrowsersbyclicks.d.ts.map +1 -1
- package/models/operations/getbrowsersbyclicks.js +4 -264
- package/models/operations/getbrowsersbyclicks.js.map +1 -1
- package/models/operations/getbrowsersbyclicksdeprecated.d.ts +2 -767
- package/models/operations/getbrowsersbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getbrowsersbyclicksdeprecated.js +4 -264
- package/models/operations/getbrowsersbyclicksdeprecated.js.map +1 -1
- package/models/operations/getcitiesbyclicks.d.ts +2 -1557
- package/models/operations/getcitiesbyclicks.d.ts.map +1 -1
- package/models/operations/getcitiesbyclicks.js +4 -555
- package/models/operations/getcitiesbyclicks.js.map +1 -1
- package/models/operations/getcitiesbyclicksdeprecated.d.ts +2 -1557
- package/models/operations/getcitiesbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getcitiesbyclicksdeprecated.js +4 -555
- package/models/operations/getcitiesbyclicksdeprecated.js.map +1 -1
- package/models/operations/getclickscount.d.ts +2 -767
- package/models/operations/getclickscount.d.ts.map +1 -1
- package/models/operations/getclickscount.js +4 -264
- package/models/operations/getclickscount.js.map +1 -1
- package/models/operations/getclickscountdeprecated.d.ts +2 -767
- package/models/operations/getclickscountdeprecated.d.ts.map +1 -1
- package/models/operations/getclickscountdeprecated.js +4 -264
- package/models/operations/getclickscountdeprecated.js.map +1 -1
- package/models/operations/getcountriesbyclicks.d.ts +2 -1552
- package/models/operations/getcountriesbyclicks.d.ts.map +1 -1
- package/models/operations/getcountriesbyclicks.js +4 -551
- package/models/operations/getcountriesbyclicks.js.map +1 -1
- package/models/operations/getcountriesbyclicksdeprecated.d.ts +2 -1552
- package/models/operations/getcountriesbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getcountriesbyclicksdeprecated.js +4 -551
- package/models/operations/getcountriesbyclicksdeprecated.js.map +1 -1
- package/models/operations/getdevicesbyclicks.d.ts +2 -767
- package/models/operations/getdevicesbyclicks.d.ts.map +1 -1
- package/models/operations/getdevicesbyclicks.js +4 -264
- package/models/operations/getdevicesbyclicks.js.map +1 -1
- package/models/operations/getdevicesbyclicksdeprecated.d.ts +2 -767
- package/models/operations/getdevicesbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getdevicesbyclicksdeprecated.js +4 -264
- package/models/operations/getdevicesbyclicksdeprecated.js.map +1 -1
- package/models/operations/getosbyclicks.d.ts +2 -767
- package/models/operations/getosbyclicks.d.ts.map +1 -1
- package/models/operations/getosbyclicks.js +4 -264
- package/models/operations/getosbyclicks.js.map +1 -1
- package/models/operations/getosbyclicksdeprecated.d.ts +2 -767
- package/models/operations/getosbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getosbyclicksdeprecated.js +4 -264
- package/models/operations/getosbyclicksdeprecated.js.map +1 -1
- package/models/operations/getreferersbyclicks.d.ts +2 -767
- package/models/operations/getreferersbyclicks.d.ts.map +1 -1
- package/models/operations/getreferersbyclicks.js +4 -264
- package/models/operations/getreferersbyclicks.js.map +1 -1
- package/models/operations/getreferersbyclicksdeprecated.d.ts +2 -767
- package/models/operations/getreferersbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/getreferersbyclicksdeprecated.js +4 -264
- package/models/operations/getreferersbyclicksdeprecated.js.map +1 -1
- package/models/operations/gettimeseriesbyclicks.d.ts +2 -767
- package/models/operations/gettimeseriesbyclicks.d.ts.map +1 -1
- package/models/operations/gettimeseriesbyclicks.js +4 -264
- package/models/operations/gettimeseriesbyclicks.js.map +1 -1
- package/models/operations/gettimeseriesbyclicksdeprecated.d.ts +2 -767
- package/models/operations/gettimeseriesbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/gettimeseriesbyclicksdeprecated.js +4 -264
- package/models/operations/gettimeseriesbyclicksdeprecated.js.map +1 -1
- package/models/operations/gettoplinksbyclicks.d.ts +2 -767
- package/models/operations/gettoplinksbyclicks.d.ts.map +1 -1
- package/models/operations/gettoplinksbyclicks.js +4 -264
- package/models/operations/gettoplinksbyclicks.js.map +1 -1
- package/models/operations/gettoplinksbyclicksdeprecated.d.ts +2 -767
- package/models/operations/gettoplinksbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/gettoplinksbyclicksdeprecated.js +4 -264
- package/models/operations/gettoplinksbyclicksdeprecated.js.map +1 -1
- package/models/operations/gettopurlsbyclicks.d.ts +2 -767
- package/models/operations/gettopurlsbyclicks.d.ts.map +1 -1
- package/models/operations/gettopurlsbyclicks.js +4 -264
- package/models/operations/gettopurlsbyclicks.js.map +1 -1
- package/models/operations/gettopurlsbyclicksdeprecated.d.ts +2 -767
- package/models/operations/gettopurlsbyclicksdeprecated.d.ts.map +1 -1
- package/models/operations/gettopurlsbyclicksdeprecated.js +4 -264
- package/models/operations/gettopurlsbyclicksdeprecated.js.map +1 -1
- package/models/operations/updatelink.d.ts +3 -514
- package/models/operations/updatelink.d.ts.map +1 -1
- package/models/operations/updatelink.js +4 -1021
- package/models/operations/updatelink.js.map +1 -1
- package/models/operations/upsertlink.d.ts +3 -514
- package/models/operations/upsertlink.d.ts.map +1 -1
- package/models/operations/upsertlink.js +4 -1021
- package/models/operations/upsertlink.js.map +1 -1
- package/package.json +1 -1
- package/sdk/analytics.d.ts +3 -2
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +3 -6
- package/sdk/analytics.js.map +1 -1
- package/sdk/clicks.d.ts +3 -2
- package/sdk/clicks.d.ts.map +1 -1
- package/sdk/clicks.js +3 -6
- package/sdk/clicks.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/clicksbycities.ts +324 -0
- package/src/models/components/clicksbycountry.ts +315 -0
- package/src/models/components/countrycode.ts +272 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/linkgeotargeting.ts +1533 -0
- package/src/models/operations/bulkcreatelinks.ts +5 -1532
- package/src/models/operations/createlink.ts +5 -1532
- package/src/models/operations/getbrowsersbyclicks.ts +4 -271
- package/src/models/operations/getbrowsersbyclicksdeprecated.ts +4 -271
- package/src/models/operations/getcitiesbyclicks.ts +4 -590
- package/src/models/operations/getcitiesbyclicksdeprecated.ts +4 -599
- package/src/models/operations/getclickscount.ts +4 -269
- package/src/models/operations/getclickscountdeprecated.ts +4 -271
- package/src/models/operations/getcountriesbyclicks.ts +4 -585
- package/src/models/operations/getcountriesbyclicksdeprecated.ts +4 -590
- package/src/models/operations/getdevicesbyclicks.ts +4 -271
- package/src/models/operations/getdevicesbyclicksdeprecated.ts +4 -271
- package/src/models/operations/getosbyclicks.ts +4 -269
- package/src/models/operations/getosbyclicksdeprecated.ts +4 -271
- package/src/models/operations/getreferersbyclicks.ts +4 -271
- package/src/models/operations/getreferersbyclicksdeprecated.ts +4 -271
- package/src/models/operations/gettimeseriesbyclicks.ts +4 -269
- package/src/models/operations/gettimeseriesbyclicksdeprecated.ts +4 -271
- package/src/models/operations/gettoplinksbyclicks.ts +4 -271
- package/src/models/operations/gettoplinksbyclicksdeprecated.ts +4 -271
- package/src/models/operations/gettopurlsbyclicks.ts +4 -271
- package/src/models/operations/gettopurlsbyclicksdeprecated.ts +4 -271
- package/src/models/operations/updatelink.ts +5 -1532
- package/src/models/operations/upsertlink.ts +5 -1532
- package/src/sdk/analytics.ts +5 -8
- package/src/sdk/clicks.ts +5 -8
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClosedEnum } from "../../types";
|
|
6
|
+
import * as components from "../components";
|
|
6
7
|
import * as z from "zod";
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -25,268 +26,6 @@ export type GetCitiesByClicksQueryParamInterval = ClosedEnum<
|
|
|
25
26
|
typeof GetCitiesByClicksQueryParamInterval
|
|
26
27
|
>;
|
|
27
28
|
|
|
28
|
-
/**
|
|
29
|
-
* The country to retrieve analytics for.
|
|
30
|
-
*/
|
|
31
|
-
export const GetCitiesByClicksQueryParamCountry = {
|
|
32
|
-
Af: "AF",
|
|
33
|
-
Al: "AL",
|
|
34
|
-
Dz: "DZ",
|
|
35
|
-
As: "AS",
|
|
36
|
-
Ad: "AD",
|
|
37
|
-
Ao: "AO",
|
|
38
|
-
Ai: "AI",
|
|
39
|
-
Aq: "AQ",
|
|
40
|
-
Ag: "AG",
|
|
41
|
-
Ar: "AR",
|
|
42
|
-
Am: "AM",
|
|
43
|
-
Aw: "AW",
|
|
44
|
-
Au: "AU",
|
|
45
|
-
At: "AT",
|
|
46
|
-
Az: "AZ",
|
|
47
|
-
Bs: "BS",
|
|
48
|
-
Bh: "BH",
|
|
49
|
-
Bd: "BD",
|
|
50
|
-
Bb: "BB",
|
|
51
|
-
By: "BY",
|
|
52
|
-
Be: "BE",
|
|
53
|
-
Bz: "BZ",
|
|
54
|
-
Bj: "BJ",
|
|
55
|
-
Bm: "BM",
|
|
56
|
-
Bt: "BT",
|
|
57
|
-
Bo: "BO",
|
|
58
|
-
Ba: "BA",
|
|
59
|
-
Bw: "BW",
|
|
60
|
-
Bv: "BV",
|
|
61
|
-
Br: "BR",
|
|
62
|
-
Io: "IO",
|
|
63
|
-
Bn: "BN",
|
|
64
|
-
Bg: "BG",
|
|
65
|
-
Bf: "BF",
|
|
66
|
-
Bi: "BI",
|
|
67
|
-
Kh: "KH",
|
|
68
|
-
Cm: "CM",
|
|
69
|
-
Ca: "CA",
|
|
70
|
-
Cv: "CV",
|
|
71
|
-
Ky: "KY",
|
|
72
|
-
Cf: "CF",
|
|
73
|
-
Td: "TD",
|
|
74
|
-
Cl: "CL",
|
|
75
|
-
Cn: "CN",
|
|
76
|
-
Cx: "CX",
|
|
77
|
-
Cc: "CC",
|
|
78
|
-
Co: "CO",
|
|
79
|
-
Km: "KM",
|
|
80
|
-
Cg: "CG",
|
|
81
|
-
Cd: "CD",
|
|
82
|
-
Ck: "CK",
|
|
83
|
-
Cr: "CR",
|
|
84
|
-
Ci: "CI",
|
|
85
|
-
Hr: "HR",
|
|
86
|
-
Cu: "CU",
|
|
87
|
-
Cy: "CY",
|
|
88
|
-
Cz: "CZ",
|
|
89
|
-
Dk: "DK",
|
|
90
|
-
Dj: "DJ",
|
|
91
|
-
Dm: "DM",
|
|
92
|
-
Do: "DO",
|
|
93
|
-
Ec: "EC",
|
|
94
|
-
Eg: "EG",
|
|
95
|
-
Sv: "SV",
|
|
96
|
-
Gq: "GQ",
|
|
97
|
-
Er: "ER",
|
|
98
|
-
Ee: "EE",
|
|
99
|
-
Et: "ET",
|
|
100
|
-
Fk: "FK",
|
|
101
|
-
Fo: "FO",
|
|
102
|
-
Fj: "FJ",
|
|
103
|
-
Fi: "FI",
|
|
104
|
-
Fr: "FR",
|
|
105
|
-
Gf: "GF",
|
|
106
|
-
Pf: "PF",
|
|
107
|
-
Tf: "TF",
|
|
108
|
-
Ga: "GA",
|
|
109
|
-
Gm: "GM",
|
|
110
|
-
Ge: "GE",
|
|
111
|
-
De: "DE",
|
|
112
|
-
Gh: "GH",
|
|
113
|
-
Gi: "GI",
|
|
114
|
-
Gr: "GR",
|
|
115
|
-
Gl: "GL",
|
|
116
|
-
Gd: "GD",
|
|
117
|
-
Gp: "GP",
|
|
118
|
-
Gu: "GU",
|
|
119
|
-
Gt: "GT",
|
|
120
|
-
Gn: "GN",
|
|
121
|
-
Gw: "GW",
|
|
122
|
-
Gy: "GY",
|
|
123
|
-
Ht: "HT",
|
|
124
|
-
Hm: "HM",
|
|
125
|
-
Va: "VA",
|
|
126
|
-
Hn: "HN",
|
|
127
|
-
Hk: "HK",
|
|
128
|
-
Hu: "HU",
|
|
129
|
-
Is: "IS",
|
|
130
|
-
In: "IN",
|
|
131
|
-
Id: "ID",
|
|
132
|
-
Ir: "IR",
|
|
133
|
-
Iq: "IQ",
|
|
134
|
-
Ie: "IE",
|
|
135
|
-
Il: "IL",
|
|
136
|
-
It: "IT",
|
|
137
|
-
Jm: "JM",
|
|
138
|
-
Jp: "JP",
|
|
139
|
-
Jo: "JO",
|
|
140
|
-
Kz: "KZ",
|
|
141
|
-
Ke: "KE",
|
|
142
|
-
Ki: "KI",
|
|
143
|
-
Kp: "KP",
|
|
144
|
-
Kr: "KR",
|
|
145
|
-
Kw: "KW",
|
|
146
|
-
Kg: "KG",
|
|
147
|
-
La: "LA",
|
|
148
|
-
Lv: "LV",
|
|
149
|
-
Lb: "LB",
|
|
150
|
-
Ls: "LS",
|
|
151
|
-
Lr: "LR",
|
|
152
|
-
Ly: "LY",
|
|
153
|
-
Li: "LI",
|
|
154
|
-
Lt: "LT",
|
|
155
|
-
Lu: "LU",
|
|
156
|
-
Mo: "MO",
|
|
157
|
-
Mg: "MG",
|
|
158
|
-
Mw: "MW",
|
|
159
|
-
My: "MY",
|
|
160
|
-
Mv: "MV",
|
|
161
|
-
Ml: "ML",
|
|
162
|
-
Mt: "MT",
|
|
163
|
-
Mh: "MH",
|
|
164
|
-
Mq: "MQ",
|
|
165
|
-
Mr: "MR",
|
|
166
|
-
Mu: "MU",
|
|
167
|
-
Yt: "YT",
|
|
168
|
-
Mx: "MX",
|
|
169
|
-
Fm: "FM",
|
|
170
|
-
Md: "MD",
|
|
171
|
-
Mc: "MC",
|
|
172
|
-
Mn: "MN",
|
|
173
|
-
Ms: "MS",
|
|
174
|
-
Ma: "MA",
|
|
175
|
-
Mz: "MZ",
|
|
176
|
-
Mm: "MM",
|
|
177
|
-
Na: "NA",
|
|
178
|
-
Nr: "NR",
|
|
179
|
-
Np: "NP",
|
|
180
|
-
Nl: "NL",
|
|
181
|
-
Nc: "NC",
|
|
182
|
-
Nz: "NZ",
|
|
183
|
-
Ni: "NI",
|
|
184
|
-
Ne: "NE",
|
|
185
|
-
Ng: "NG",
|
|
186
|
-
Nu: "NU",
|
|
187
|
-
Nf: "NF",
|
|
188
|
-
Mk: "MK",
|
|
189
|
-
Mp: "MP",
|
|
190
|
-
No: "NO",
|
|
191
|
-
Om: "OM",
|
|
192
|
-
Pk: "PK",
|
|
193
|
-
Pw: "PW",
|
|
194
|
-
Ps: "PS",
|
|
195
|
-
Pa: "PA",
|
|
196
|
-
Pg: "PG",
|
|
197
|
-
Py: "PY",
|
|
198
|
-
Pe: "PE",
|
|
199
|
-
Ph: "PH",
|
|
200
|
-
Pn: "PN",
|
|
201
|
-
Pl: "PL",
|
|
202
|
-
Pt: "PT",
|
|
203
|
-
Pr: "PR",
|
|
204
|
-
Qa: "QA",
|
|
205
|
-
Re: "RE",
|
|
206
|
-
Ro: "RO",
|
|
207
|
-
Ru: "RU",
|
|
208
|
-
Rw: "RW",
|
|
209
|
-
Sh: "SH",
|
|
210
|
-
Kn: "KN",
|
|
211
|
-
Lc: "LC",
|
|
212
|
-
Pm: "PM",
|
|
213
|
-
Vc: "VC",
|
|
214
|
-
Ws: "WS",
|
|
215
|
-
Sm: "SM",
|
|
216
|
-
St: "ST",
|
|
217
|
-
Sa: "SA",
|
|
218
|
-
Sn: "SN",
|
|
219
|
-
Sc: "SC",
|
|
220
|
-
Sl: "SL",
|
|
221
|
-
Sg: "SG",
|
|
222
|
-
Sk: "SK",
|
|
223
|
-
Si: "SI",
|
|
224
|
-
Sb: "SB",
|
|
225
|
-
So: "SO",
|
|
226
|
-
Za: "ZA",
|
|
227
|
-
Gs: "GS",
|
|
228
|
-
Es: "ES",
|
|
229
|
-
Lk: "LK",
|
|
230
|
-
Sd: "SD",
|
|
231
|
-
Sr: "SR",
|
|
232
|
-
Sj: "SJ",
|
|
233
|
-
Sz: "SZ",
|
|
234
|
-
Se: "SE",
|
|
235
|
-
Ch: "CH",
|
|
236
|
-
Sy: "SY",
|
|
237
|
-
Tw: "TW",
|
|
238
|
-
Tj: "TJ",
|
|
239
|
-
Tz: "TZ",
|
|
240
|
-
Th: "TH",
|
|
241
|
-
Tl: "TL",
|
|
242
|
-
Tg: "TG",
|
|
243
|
-
Tk: "TK",
|
|
244
|
-
To: "TO",
|
|
245
|
-
Tt: "TT",
|
|
246
|
-
Tn: "TN",
|
|
247
|
-
Tr: "TR",
|
|
248
|
-
Tm: "TM",
|
|
249
|
-
Tc: "TC",
|
|
250
|
-
Tv: "TV",
|
|
251
|
-
Ug: "UG",
|
|
252
|
-
Ua: "UA",
|
|
253
|
-
Ae: "AE",
|
|
254
|
-
Gb: "GB",
|
|
255
|
-
Us: "US",
|
|
256
|
-
Um: "UM",
|
|
257
|
-
Uy: "UY",
|
|
258
|
-
Uz: "UZ",
|
|
259
|
-
Vu: "VU",
|
|
260
|
-
Ve: "VE",
|
|
261
|
-
Vn: "VN",
|
|
262
|
-
Vg: "VG",
|
|
263
|
-
Vi: "VI",
|
|
264
|
-
Wf: "WF",
|
|
265
|
-
Eh: "EH",
|
|
266
|
-
Ye: "YE",
|
|
267
|
-
Zm: "ZM",
|
|
268
|
-
Zw: "ZW",
|
|
269
|
-
Ax: "AX",
|
|
270
|
-
Bq: "BQ",
|
|
271
|
-
Cw: "CW",
|
|
272
|
-
Gg: "GG",
|
|
273
|
-
Im: "IM",
|
|
274
|
-
Je: "JE",
|
|
275
|
-
Me: "ME",
|
|
276
|
-
Bl: "BL",
|
|
277
|
-
Mf: "MF",
|
|
278
|
-
Rs: "RS",
|
|
279
|
-
Sx: "SX",
|
|
280
|
-
Ss: "SS",
|
|
281
|
-
Xk: "XK",
|
|
282
|
-
} as const;
|
|
283
|
-
/**
|
|
284
|
-
* The country to retrieve analytics for.
|
|
285
|
-
*/
|
|
286
|
-
export type GetCitiesByClicksQueryParamCountry = ClosedEnum<
|
|
287
|
-
typeof GetCitiesByClicksQueryParamCountry
|
|
288
|
-
>;
|
|
289
|
-
|
|
290
29
|
export type GetCitiesByClicksRequest = {
|
|
291
30
|
/**
|
|
292
31
|
* The domain to filter analytics for.
|
|
@@ -319,7 +58,7 @@ export type GetCitiesByClicksRequest = {
|
|
|
319
58
|
/**
|
|
320
59
|
* The country to retrieve analytics for.
|
|
321
60
|
*/
|
|
322
|
-
country?:
|
|
61
|
+
country?: components.CountryCode | undefined;
|
|
323
62
|
/**
|
|
324
63
|
* The city to retrieve analytics for.
|
|
325
64
|
*/
|
|
@@ -358,293 +97,12 @@ export type GetCitiesByClicksRequest = {
|
|
|
358
97
|
root?: boolean | undefined;
|
|
359
98
|
};
|
|
360
99
|
|
|
361
|
-
/**
|
|
362
|
-
* The 2-letter country code of the city: https://d.to/geo
|
|
363
|
-
*/
|
|
364
|
-
export const GetCitiesByClicksCountry = {
|
|
365
|
-
Af: "AF",
|
|
366
|
-
Al: "AL",
|
|
367
|
-
Dz: "DZ",
|
|
368
|
-
As: "AS",
|
|
369
|
-
Ad: "AD",
|
|
370
|
-
Ao: "AO",
|
|
371
|
-
Ai: "AI",
|
|
372
|
-
Aq: "AQ",
|
|
373
|
-
Ag: "AG",
|
|
374
|
-
Ar: "AR",
|
|
375
|
-
Am: "AM",
|
|
376
|
-
Aw: "AW",
|
|
377
|
-
Au: "AU",
|
|
378
|
-
At: "AT",
|
|
379
|
-
Az: "AZ",
|
|
380
|
-
Bs: "BS",
|
|
381
|
-
Bh: "BH",
|
|
382
|
-
Bd: "BD",
|
|
383
|
-
Bb: "BB",
|
|
384
|
-
By: "BY",
|
|
385
|
-
Be: "BE",
|
|
386
|
-
Bz: "BZ",
|
|
387
|
-
Bj: "BJ",
|
|
388
|
-
Bm: "BM",
|
|
389
|
-
Bt: "BT",
|
|
390
|
-
Bo: "BO",
|
|
391
|
-
Ba: "BA",
|
|
392
|
-
Bw: "BW",
|
|
393
|
-
Bv: "BV",
|
|
394
|
-
Br: "BR",
|
|
395
|
-
Io: "IO",
|
|
396
|
-
Bn: "BN",
|
|
397
|
-
Bg: "BG",
|
|
398
|
-
Bf: "BF",
|
|
399
|
-
Bi: "BI",
|
|
400
|
-
Kh: "KH",
|
|
401
|
-
Cm: "CM",
|
|
402
|
-
Ca: "CA",
|
|
403
|
-
Cv: "CV",
|
|
404
|
-
Ky: "KY",
|
|
405
|
-
Cf: "CF",
|
|
406
|
-
Td: "TD",
|
|
407
|
-
Cl: "CL",
|
|
408
|
-
Cn: "CN",
|
|
409
|
-
Cx: "CX",
|
|
410
|
-
Cc: "CC",
|
|
411
|
-
Co: "CO",
|
|
412
|
-
Km: "KM",
|
|
413
|
-
Cg: "CG",
|
|
414
|
-
Cd: "CD",
|
|
415
|
-
Ck: "CK",
|
|
416
|
-
Cr: "CR",
|
|
417
|
-
Ci: "CI",
|
|
418
|
-
Hr: "HR",
|
|
419
|
-
Cu: "CU",
|
|
420
|
-
Cy: "CY",
|
|
421
|
-
Cz: "CZ",
|
|
422
|
-
Dk: "DK",
|
|
423
|
-
Dj: "DJ",
|
|
424
|
-
Dm: "DM",
|
|
425
|
-
Do: "DO",
|
|
426
|
-
Ec: "EC",
|
|
427
|
-
Eg: "EG",
|
|
428
|
-
Sv: "SV",
|
|
429
|
-
Gq: "GQ",
|
|
430
|
-
Er: "ER",
|
|
431
|
-
Ee: "EE",
|
|
432
|
-
Et: "ET",
|
|
433
|
-
Fk: "FK",
|
|
434
|
-
Fo: "FO",
|
|
435
|
-
Fj: "FJ",
|
|
436
|
-
Fi: "FI",
|
|
437
|
-
Fr: "FR",
|
|
438
|
-
Gf: "GF",
|
|
439
|
-
Pf: "PF",
|
|
440
|
-
Tf: "TF",
|
|
441
|
-
Ga: "GA",
|
|
442
|
-
Gm: "GM",
|
|
443
|
-
Ge: "GE",
|
|
444
|
-
De: "DE",
|
|
445
|
-
Gh: "GH",
|
|
446
|
-
Gi: "GI",
|
|
447
|
-
Gr: "GR",
|
|
448
|
-
Gl: "GL",
|
|
449
|
-
Gd: "GD",
|
|
450
|
-
Gp: "GP",
|
|
451
|
-
Gu: "GU",
|
|
452
|
-
Gt: "GT",
|
|
453
|
-
Gn: "GN",
|
|
454
|
-
Gw: "GW",
|
|
455
|
-
Gy: "GY",
|
|
456
|
-
Ht: "HT",
|
|
457
|
-
Hm: "HM",
|
|
458
|
-
Va: "VA",
|
|
459
|
-
Hn: "HN",
|
|
460
|
-
Hk: "HK",
|
|
461
|
-
Hu: "HU",
|
|
462
|
-
Is: "IS",
|
|
463
|
-
In: "IN",
|
|
464
|
-
Id: "ID",
|
|
465
|
-
Ir: "IR",
|
|
466
|
-
Iq: "IQ",
|
|
467
|
-
Ie: "IE",
|
|
468
|
-
Il: "IL",
|
|
469
|
-
It: "IT",
|
|
470
|
-
Jm: "JM",
|
|
471
|
-
Jp: "JP",
|
|
472
|
-
Jo: "JO",
|
|
473
|
-
Kz: "KZ",
|
|
474
|
-
Ke: "KE",
|
|
475
|
-
Ki: "KI",
|
|
476
|
-
Kp: "KP",
|
|
477
|
-
Kr: "KR",
|
|
478
|
-
Kw: "KW",
|
|
479
|
-
Kg: "KG",
|
|
480
|
-
La: "LA",
|
|
481
|
-
Lv: "LV",
|
|
482
|
-
Lb: "LB",
|
|
483
|
-
Ls: "LS",
|
|
484
|
-
Lr: "LR",
|
|
485
|
-
Ly: "LY",
|
|
486
|
-
Li: "LI",
|
|
487
|
-
Lt: "LT",
|
|
488
|
-
Lu: "LU",
|
|
489
|
-
Mo: "MO",
|
|
490
|
-
Mg: "MG",
|
|
491
|
-
Mw: "MW",
|
|
492
|
-
My: "MY",
|
|
493
|
-
Mv: "MV",
|
|
494
|
-
Ml: "ML",
|
|
495
|
-
Mt: "MT",
|
|
496
|
-
Mh: "MH",
|
|
497
|
-
Mq: "MQ",
|
|
498
|
-
Mr: "MR",
|
|
499
|
-
Mu: "MU",
|
|
500
|
-
Yt: "YT",
|
|
501
|
-
Mx: "MX",
|
|
502
|
-
Fm: "FM",
|
|
503
|
-
Md: "MD",
|
|
504
|
-
Mc: "MC",
|
|
505
|
-
Mn: "MN",
|
|
506
|
-
Ms: "MS",
|
|
507
|
-
Ma: "MA",
|
|
508
|
-
Mz: "MZ",
|
|
509
|
-
Mm: "MM",
|
|
510
|
-
Na: "NA",
|
|
511
|
-
Nr: "NR",
|
|
512
|
-
Np: "NP",
|
|
513
|
-
Nl: "NL",
|
|
514
|
-
Nc: "NC",
|
|
515
|
-
Nz: "NZ",
|
|
516
|
-
Ni: "NI",
|
|
517
|
-
Ne: "NE",
|
|
518
|
-
Ng: "NG",
|
|
519
|
-
Nu: "NU",
|
|
520
|
-
Nf: "NF",
|
|
521
|
-
Mk: "MK",
|
|
522
|
-
Mp: "MP",
|
|
523
|
-
No: "NO",
|
|
524
|
-
Om: "OM",
|
|
525
|
-
Pk: "PK",
|
|
526
|
-
Pw: "PW",
|
|
527
|
-
Ps: "PS",
|
|
528
|
-
Pa: "PA",
|
|
529
|
-
Pg: "PG",
|
|
530
|
-
Py: "PY",
|
|
531
|
-
Pe: "PE",
|
|
532
|
-
Ph: "PH",
|
|
533
|
-
Pn: "PN",
|
|
534
|
-
Pl: "PL",
|
|
535
|
-
Pt: "PT",
|
|
536
|
-
Pr: "PR",
|
|
537
|
-
Qa: "QA",
|
|
538
|
-
Re: "RE",
|
|
539
|
-
Ro: "RO",
|
|
540
|
-
Ru: "RU",
|
|
541
|
-
Rw: "RW",
|
|
542
|
-
Sh: "SH",
|
|
543
|
-
Kn: "KN",
|
|
544
|
-
Lc: "LC",
|
|
545
|
-
Pm: "PM",
|
|
546
|
-
Vc: "VC",
|
|
547
|
-
Ws: "WS",
|
|
548
|
-
Sm: "SM",
|
|
549
|
-
St: "ST",
|
|
550
|
-
Sa: "SA",
|
|
551
|
-
Sn: "SN",
|
|
552
|
-
Sc: "SC",
|
|
553
|
-
Sl: "SL",
|
|
554
|
-
Sg: "SG",
|
|
555
|
-
Sk: "SK",
|
|
556
|
-
Si: "SI",
|
|
557
|
-
Sb: "SB",
|
|
558
|
-
So: "SO",
|
|
559
|
-
Za: "ZA",
|
|
560
|
-
Gs: "GS",
|
|
561
|
-
Es: "ES",
|
|
562
|
-
Lk: "LK",
|
|
563
|
-
Sd: "SD",
|
|
564
|
-
Sr: "SR",
|
|
565
|
-
Sj: "SJ",
|
|
566
|
-
Sz: "SZ",
|
|
567
|
-
Se: "SE",
|
|
568
|
-
Ch: "CH",
|
|
569
|
-
Sy: "SY",
|
|
570
|
-
Tw: "TW",
|
|
571
|
-
Tj: "TJ",
|
|
572
|
-
Tz: "TZ",
|
|
573
|
-
Th: "TH",
|
|
574
|
-
Tl: "TL",
|
|
575
|
-
Tg: "TG",
|
|
576
|
-
Tk: "TK",
|
|
577
|
-
To: "TO",
|
|
578
|
-
Tt: "TT",
|
|
579
|
-
Tn: "TN",
|
|
580
|
-
Tr: "TR",
|
|
581
|
-
Tm: "TM",
|
|
582
|
-
Tc: "TC",
|
|
583
|
-
Tv: "TV",
|
|
584
|
-
Ug: "UG",
|
|
585
|
-
Ua: "UA",
|
|
586
|
-
Ae: "AE",
|
|
587
|
-
Gb: "GB",
|
|
588
|
-
Us: "US",
|
|
589
|
-
Um: "UM",
|
|
590
|
-
Uy: "UY",
|
|
591
|
-
Uz: "UZ",
|
|
592
|
-
Vu: "VU",
|
|
593
|
-
Ve: "VE",
|
|
594
|
-
Vn: "VN",
|
|
595
|
-
Vg: "VG",
|
|
596
|
-
Vi: "VI",
|
|
597
|
-
Wf: "WF",
|
|
598
|
-
Eh: "EH",
|
|
599
|
-
Ye: "YE",
|
|
600
|
-
Zm: "ZM",
|
|
601
|
-
Zw: "ZW",
|
|
602
|
-
Ax: "AX",
|
|
603
|
-
Bq: "BQ",
|
|
604
|
-
Cw: "CW",
|
|
605
|
-
Gg: "GG",
|
|
606
|
-
Im: "IM",
|
|
607
|
-
Je: "JE",
|
|
608
|
-
Me: "ME",
|
|
609
|
-
Bl: "BL",
|
|
610
|
-
Mf: "MF",
|
|
611
|
-
Rs: "RS",
|
|
612
|
-
Sx: "SX",
|
|
613
|
-
Ss: "SS",
|
|
614
|
-
Xk: "XK",
|
|
615
|
-
} as const;
|
|
616
|
-
/**
|
|
617
|
-
* The 2-letter country code of the city: https://d.to/geo
|
|
618
|
-
*/
|
|
619
|
-
export type GetCitiesByClicksCountry = ClosedEnum<typeof GetCitiesByClicksCountry>;
|
|
620
|
-
|
|
621
|
-
export type GetCitiesByClicksResponseBody = {
|
|
622
|
-
/**
|
|
623
|
-
* The name of the city
|
|
624
|
-
*/
|
|
625
|
-
city: string;
|
|
626
|
-
/**
|
|
627
|
-
* The 2-letter country code of the city: https://d.to/geo
|
|
628
|
-
*/
|
|
629
|
-
country: GetCitiesByClicksCountry;
|
|
630
|
-
/**
|
|
631
|
-
* The number of clicks from this city
|
|
632
|
-
*/
|
|
633
|
-
clicks: number;
|
|
634
|
-
};
|
|
635
|
-
|
|
636
100
|
/** @internal */
|
|
637
101
|
export namespace GetCitiesByClicksQueryParamInterval$ {
|
|
638
102
|
export const inboundSchema = z.nativeEnum(GetCitiesByClicksQueryParamInterval);
|
|
639
103
|
export const outboundSchema = inboundSchema;
|
|
640
104
|
}
|
|
641
105
|
|
|
642
|
-
/** @internal */
|
|
643
|
-
export namespace GetCitiesByClicksQueryParamCountry$ {
|
|
644
|
-
export const inboundSchema = z.nativeEnum(GetCitiesByClicksQueryParamCountry);
|
|
645
|
-
export const outboundSchema = inboundSchema;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
106
|
/** @internal */
|
|
649
107
|
export namespace GetCitiesByClicksRequest$ {
|
|
650
108
|
export const inboundSchema: z.ZodType<GetCitiesByClicksRequest, z.ZodTypeDef, unknown> = z
|
|
@@ -656,7 +114,7 @@ export namespace GetCitiesByClicksRequest$ {
|
|
|
656
114
|
interval: GetCitiesByClicksQueryParamInterval$.inboundSchema.default("24h"),
|
|
657
115
|
start: z.string().optional(),
|
|
658
116
|
end: z.string().optional(),
|
|
659
|
-
country:
|
|
117
|
+
country: components.CountryCode$.inboundSchema.optional(),
|
|
660
118
|
city: z.string().optional(),
|
|
661
119
|
device: z.string().optional(),
|
|
662
120
|
browser: z.string().optional(),
|
|
@@ -718,7 +176,7 @@ export namespace GetCitiesByClicksRequest$ {
|
|
|
718
176
|
interval: GetCitiesByClicksQueryParamInterval$.outboundSchema.default("24h"),
|
|
719
177
|
start: z.string().optional(),
|
|
720
178
|
end: z.string().optional(),
|
|
721
|
-
country:
|
|
179
|
+
country: components.CountryCode$.outboundSchema.optional(),
|
|
722
180
|
city: z.string().optional(),
|
|
723
181
|
device: z.string().optional(),
|
|
724
182
|
browser: z.string().optional(),
|
|
@@ -751,47 +209,3 @@ export namespace GetCitiesByClicksRequest$ {
|
|
|
751
209
|
};
|
|
752
210
|
});
|
|
753
211
|
}
|
|
754
|
-
|
|
755
|
-
/** @internal */
|
|
756
|
-
export namespace GetCitiesByClicksCountry$ {
|
|
757
|
-
export const inboundSchema = z.nativeEnum(GetCitiesByClicksCountry);
|
|
758
|
-
export const outboundSchema = inboundSchema;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
/** @internal */
|
|
762
|
-
export namespace GetCitiesByClicksResponseBody$ {
|
|
763
|
-
export const inboundSchema: z.ZodType<GetCitiesByClicksResponseBody, z.ZodTypeDef, unknown> = z
|
|
764
|
-
.object({
|
|
765
|
-
city: z.string(),
|
|
766
|
-
country: GetCitiesByClicksCountry$.inboundSchema,
|
|
767
|
-
clicks: z.number(),
|
|
768
|
-
})
|
|
769
|
-
.transform((v) => {
|
|
770
|
-
return {
|
|
771
|
-
city: v.city,
|
|
772
|
-
country: v.country,
|
|
773
|
-
clicks: v.clicks,
|
|
774
|
-
};
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
export type Outbound = {
|
|
778
|
-
city: string;
|
|
779
|
-
country: string;
|
|
780
|
-
clicks: number;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetCitiesByClicksResponseBody> =
|
|
784
|
-
z
|
|
785
|
-
.object({
|
|
786
|
-
city: z.string(),
|
|
787
|
-
country: GetCitiesByClicksCountry$.outboundSchema,
|
|
788
|
-
clicks: z.number(),
|
|
789
|
-
})
|
|
790
|
-
.transform((v) => {
|
|
791
|
-
return {
|
|
792
|
-
city: v.city,
|
|
793
|
-
country: v.country,
|
|
794
|
-
clicks: v.clicks,
|
|
795
|
-
};
|
|
796
|
-
});
|
|
797
|
-
}
|