dub 0.63.5 → 0.63.7
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/bin/mcp-server.js +256 -1042
- package/bin/mcp-server.js.map +25 -25
- package/dist/commonjs/funcs/partnersAnalytics.d.ts +1 -1
- package/dist/commonjs/funcs/partnersAnalytics.d.ts.map +1 -1
- package/dist/commonjs/funcs/partnersAnalytics.js +9 -9
- package/dist/commonjs/funcs/partnersAnalytics.js.map +1 -1
- package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts +1 -1
- package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts.map +1 -1
- package/dist/commonjs/funcs/partnersRetrieveLinks.js +3 -4
- package/dist/commonjs/funcs/partnersRetrieveLinks.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/partnersAnalytics.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/partnersAnalytics.js +1 -1
- package/dist/commonjs/mcp-server/tools/partnersAnalytics.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.js +1 -1
- package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.js.map +1 -1
- package/dist/commonjs/models/components/analyticscities.d.ts +2 -778
- package/dist/commonjs/models/components/analyticscities.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticscities.js +3 -273
- package/dist/commonjs/models/components/analyticscities.js.map +1 -1
- package/dist/commonjs/models/components/analyticscountries.d.ts +2 -777
- package/dist/commonjs/models/components/analyticscountries.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticscountries.js +3 -274
- package/dist/commonjs/models/components/analyticscountries.js.map +1 -1
- package/dist/commonjs/models/components/analyticsregions.d.ts +3 -778
- package/dist/commonjs/models/components/analyticsregions.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticsregions.js +3 -273
- package/dist/commonjs/models/components/analyticsregions.js.map +1 -1
- package/dist/commonjs/models/components/countrycode.d.ts +2 -2
- package/dist/commonjs/models/components/countrycode.js +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +1 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts +5 -0
- package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.js +2 -0
- package/dist/commonjs/models/components/workspaceschema.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +15 -20
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +5 -7
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.d.ts +0 -5
- package/dist/commonjs/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.js +0 -2
- package/dist/commonjs/models/operations/createpartnerlink.js.map +1 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts +15 -17
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.js +5 -7
- package/dist/commonjs/models/operations/createreferralsembedtoken.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +1 -1
- package/dist/commonjs/models/operations/retrievelinks.d.ts +0 -2
- package/dist/commonjs/models/operations/retrievelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrievelinks.js +0 -2
- package/dist/commonjs/models/operations/retrievelinks.js.map +1 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts +0 -5
- package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.js +0 -2
- package/dist/commonjs/models/operations/retrievepartneranalytics.js.map +1 -1
- package/dist/commonjs/models/operations/tracklead.d.ts +5 -5
- package/dist/commonjs/models/operations/tracklead.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracklead.js +2 -2
- package/dist/commonjs/models/operations/tracklead.js.map +1 -1
- package/dist/commonjs/models/operations/tracksale.d.ts +12 -12
- package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracksale.js +4 -4
- package/dist/commonjs/models/operations/tracksale.js.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts +0 -5
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js +0 -2
- package/dist/commonjs/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/commonjs/sdk/partners.d.ts +2 -2
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/esm/funcs/partnersAnalytics.d.ts +1 -1
- package/dist/esm/funcs/partnersAnalytics.d.ts.map +1 -1
- package/dist/esm/funcs/partnersAnalytics.js +9 -9
- package/dist/esm/funcs/partnersAnalytics.js.map +1 -1
- package/dist/esm/funcs/partnersRetrieveLinks.d.ts +1 -1
- package/dist/esm/funcs/partnersRetrieveLinks.d.ts.map +1 -1
- package/dist/esm/funcs/partnersRetrieveLinks.js +3 -4
- package/dist/esm/funcs/partnersRetrieveLinks.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/partnersAnalytics.d.ts +1 -1
- package/dist/esm/mcp-server/tools/partnersAnalytics.js +1 -1
- package/dist/esm/mcp-server/tools/partnersAnalytics.js.map +1 -1
- package/dist/esm/mcp-server/tools/partnersRetrieveLinks.d.ts +1 -1
- package/dist/esm/mcp-server/tools/partnersRetrieveLinks.js +1 -1
- package/dist/esm/mcp-server/tools/partnersRetrieveLinks.js.map +1 -1
- package/dist/esm/models/components/analyticscities.d.ts +2 -778
- package/dist/esm/models/components/analyticscities.d.ts.map +1 -1
- package/dist/esm/models/components/analyticscities.js +2 -272
- package/dist/esm/models/components/analyticscities.js.map +1 -1
- package/dist/esm/models/components/analyticscountries.d.ts +2 -777
- package/dist/esm/models/components/analyticscountries.d.ts.map +1 -1
- package/dist/esm/models/components/analyticscountries.js +2 -273
- package/dist/esm/models/components/analyticscountries.js.map +1 -1
- package/dist/esm/models/components/analyticsregions.d.ts +3 -778
- package/dist/esm/models/components/analyticsregions.d.ts.map +1 -1
- package/dist/esm/models/components/analyticsregions.js +2 -272
- package/dist/esm/models/components/analyticsregions.js.map +1 -1
- package/dist/esm/models/components/countrycode.d.ts +2 -2
- package/dist/esm/models/components/countrycode.js +1 -1
- package/dist/esm/models/components/saleevent.d.ts +1 -1
- package/dist/esm/models/components/workspaceschema.d.ts +5 -0
- package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/esm/models/components/workspaceschema.js +2 -0
- package/dist/esm/models/components/workspaceschema.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +15 -20
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +5 -7
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.d.ts +0 -5
- package/dist/esm/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.js +0 -2
- package/dist/esm/models/operations/createpartnerlink.js.map +1 -1
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts +15 -17
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts.map +1 -1
- package/dist/esm/models/operations/createreferralsembedtoken.js +5 -7
- package/dist/esm/models/operations/createreferralsembedtoken.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +1 -1
- package/dist/esm/models/operations/retrievelinks.d.ts +0 -2
- package/dist/esm/models/operations/retrievelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/retrievelinks.js +0 -2
- package/dist/esm/models/operations/retrievelinks.js.map +1 -1
- package/dist/esm/models/operations/retrievepartneranalytics.d.ts +0 -5
- package/dist/esm/models/operations/retrievepartneranalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrievepartneranalytics.js +0 -2
- package/dist/esm/models/operations/retrievepartneranalytics.js.map +1 -1
- package/dist/esm/models/operations/tracklead.d.ts +5 -5
- package/dist/esm/models/operations/tracklead.d.ts.map +1 -1
- package/dist/esm/models/operations/tracklead.js +2 -2
- package/dist/esm/models/operations/tracklead.js.map +1 -1
- package/dist/esm/models/operations/tracksale.d.ts +12 -12
- package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
- package/dist/esm/models/operations/tracksale.js +4 -4
- package/dist/esm/models/operations/tracksale.js.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.d.ts +0 -5
- package/dist/esm/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.js +0 -2
- package/dist/esm/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/esm/sdk/partners.d.ts +2 -2
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js.map +1 -1
- package/docs/sdks/partners/README.md +4 -14
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/partnersAnalytics.ts +11 -11
- package/src/funcs/partnersRetrieveLinks.ts +6 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/partnersAnalytics.ts +1 -1
- package/src/mcp-server/tools/partnersRetrieveLinks.ts +1 -1
- package/src/models/components/analyticscities.ts +4 -286
- package/src/models/components/analyticscountries.ts +4 -283
- package/src/models/components/analyticsregions.ts +5 -288
- package/src/models/components/countrycode.ts +2 -2
- package/src/models/components/saleevent.ts +1 -1
- package/src/models/components/workspaceschema.ts +7 -0
- package/src/models/operations/createpartner.ts +19 -26
- package/src/models/operations/createpartnerlink.ts +0 -7
- package/src/models/operations/createreferralsembedtoken.ts +19 -23
- package/src/models/operations/listevents.ts +1 -1
- package/src/models/operations/retrieveanalytics.ts +1 -1
- package/src/models/operations/retrievelinks.ts +0 -4
- package/src/models/operations/retrievepartneranalytics.ts +0 -7
- package/src/models/operations/tracklead.ts +7 -7
- package/src/models/operations/tracksale.ts +16 -16
- package/src/models/operations/upsertpartnerlink.ts +0 -7
- package/src/sdk/partners.ts +2 -2
|
@@ -8,266 +8,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo
|
|
13
|
-
*/
|
|
14
|
-
export const Country = {
|
|
15
|
-
Af: "AF",
|
|
16
|
-
Al: "AL",
|
|
17
|
-
Dz: "DZ",
|
|
18
|
-
As: "AS",
|
|
19
|
-
Ad: "AD",
|
|
20
|
-
Ao: "AO",
|
|
21
|
-
Ai: "AI",
|
|
22
|
-
Aq: "AQ",
|
|
23
|
-
Ag: "AG",
|
|
24
|
-
Ar: "AR",
|
|
25
|
-
Am: "AM",
|
|
26
|
-
Aw: "AW",
|
|
27
|
-
Au: "AU",
|
|
28
|
-
At: "AT",
|
|
29
|
-
Az: "AZ",
|
|
30
|
-
Bs: "BS",
|
|
31
|
-
Bh: "BH",
|
|
32
|
-
Bd: "BD",
|
|
33
|
-
Bb: "BB",
|
|
34
|
-
By: "BY",
|
|
35
|
-
Be: "BE",
|
|
36
|
-
Bz: "BZ",
|
|
37
|
-
Bj: "BJ",
|
|
38
|
-
Bm: "BM",
|
|
39
|
-
Bt: "BT",
|
|
40
|
-
Bo: "BO",
|
|
41
|
-
Ba: "BA",
|
|
42
|
-
Bw: "BW",
|
|
43
|
-
Bv: "BV",
|
|
44
|
-
Br: "BR",
|
|
45
|
-
Io: "IO",
|
|
46
|
-
Bn: "BN",
|
|
47
|
-
Bg: "BG",
|
|
48
|
-
Bf: "BF",
|
|
49
|
-
Bi: "BI",
|
|
50
|
-
Kh: "KH",
|
|
51
|
-
Cm: "CM",
|
|
52
|
-
Ca: "CA",
|
|
53
|
-
Cv: "CV",
|
|
54
|
-
Ky: "KY",
|
|
55
|
-
Cf: "CF",
|
|
56
|
-
Td: "TD",
|
|
57
|
-
Cl: "CL",
|
|
58
|
-
Cn: "CN",
|
|
59
|
-
Cx: "CX",
|
|
60
|
-
Cc: "CC",
|
|
61
|
-
Co: "CO",
|
|
62
|
-
Km: "KM",
|
|
63
|
-
Cg: "CG",
|
|
64
|
-
Cd: "CD",
|
|
65
|
-
Ck: "CK",
|
|
66
|
-
Cr: "CR",
|
|
67
|
-
Ci: "CI",
|
|
68
|
-
Hr: "HR",
|
|
69
|
-
Cu: "CU",
|
|
70
|
-
Cy: "CY",
|
|
71
|
-
Cz: "CZ",
|
|
72
|
-
Dk: "DK",
|
|
73
|
-
Dj: "DJ",
|
|
74
|
-
Dm: "DM",
|
|
75
|
-
Do: "DO",
|
|
76
|
-
Ec: "EC",
|
|
77
|
-
Eg: "EG",
|
|
78
|
-
Sv: "SV",
|
|
79
|
-
Gq: "GQ",
|
|
80
|
-
Er: "ER",
|
|
81
|
-
Ee: "EE",
|
|
82
|
-
Et: "ET",
|
|
83
|
-
Fk: "FK",
|
|
84
|
-
Fo: "FO",
|
|
85
|
-
Fj: "FJ",
|
|
86
|
-
Fi: "FI",
|
|
87
|
-
Fr: "FR",
|
|
88
|
-
Gf: "GF",
|
|
89
|
-
Pf: "PF",
|
|
90
|
-
Tf: "TF",
|
|
91
|
-
Ga: "GA",
|
|
92
|
-
Gm: "GM",
|
|
93
|
-
Ge: "GE",
|
|
94
|
-
De: "DE",
|
|
95
|
-
Gh: "GH",
|
|
96
|
-
Gi: "GI",
|
|
97
|
-
Gr: "GR",
|
|
98
|
-
Gl: "GL",
|
|
99
|
-
Gd: "GD",
|
|
100
|
-
Gp: "GP",
|
|
101
|
-
Gu: "GU",
|
|
102
|
-
Gt: "GT",
|
|
103
|
-
Gn: "GN",
|
|
104
|
-
Gw: "GW",
|
|
105
|
-
Gy: "GY",
|
|
106
|
-
Ht: "HT",
|
|
107
|
-
Hm: "HM",
|
|
108
|
-
Va: "VA",
|
|
109
|
-
Hn: "HN",
|
|
110
|
-
Hk: "HK",
|
|
111
|
-
Hu: "HU",
|
|
112
|
-
Is: "IS",
|
|
113
|
-
In: "IN",
|
|
114
|
-
Id: "ID",
|
|
115
|
-
Ir: "IR",
|
|
116
|
-
Iq: "IQ",
|
|
117
|
-
Ie: "IE",
|
|
118
|
-
Il: "IL",
|
|
119
|
-
It: "IT",
|
|
120
|
-
Jm: "JM",
|
|
121
|
-
Jp: "JP",
|
|
122
|
-
Jo: "JO",
|
|
123
|
-
Kz: "KZ",
|
|
124
|
-
Ke: "KE",
|
|
125
|
-
Ki: "KI",
|
|
126
|
-
Kp: "KP",
|
|
127
|
-
Kr: "KR",
|
|
128
|
-
Kw: "KW",
|
|
129
|
-
Kg: "KG",
|
|
130
|
-
La: "LA",
|
|
131
|
-
Lv: "LV",
|
|
132
|
-
Lb: "LB",
|
|
133
|
-
Ls: "LS",
|
|
134
|
-
Lr: "LR",
|
|
135
|
-
Ly: "LY",
|
|
136
|
-
Li: "LI",
|
|
137
|
-
Lt: "LT",
|
|
138
|
-
Lu: "LU",
|
|
139
|
-
Mo: "MO",
|
|
140
|
-
Mg: "MG",
|
|
141
|
-
Mw: "MW",
|
|
142
|
-
My: "MY",
|
|
143
|
-
Mv: "MV",
|
|
144
|
-
Ml: "ML",
|
|
145
|
-
Mt: "MT",
|
|
146
|
-
Mh: "MH",
|
|
147
|
-
Mq: "MQ",
|
|
148
|
-
Mr: "MR",
|
|
149
|
-
Mu: "MU",
|
|
150
|
-
Yt: "YT",
|
|
151
|
-
Mx: "MX",
|
|
152
|
-
Fm: "FM",
|
|
153
|
-
Md: "MD",
|
|
154
|
-
Mc: "MC",
|
|
155
|
-
Mn: "MN",
|
|
156
|
-
Ms: "MS",
|
|
157
|
-
Ma: "MA",
|
|
158
|
-
Mz: "MZ",
|
|
159
|
-
Mm: "MM",
|
|
160
|
-
Na: "NA",
|
|
161
|
-
Nr: "NR",
|
|
162
|
-
Np: "NP",
|
|
163
|
-
Nl: "NL",
|
|
164
|
-
Nc: "NC",
|
|
165
|
-
Nz: "NZ",
|
|
166
|
-
Ni: "NI",
|
|
167
|
-
Ne: "NE",
|
|
168
|
-
Ng: "NG",
|
|
169
|
-
Nu: "NU",
|
|
170
|
-
Nf: "NF",
|
|
171
|
-
Mk: "MK",
|
|
172
|
-
Mp: "MP",
|
|
173
|
-
No: "NO",
|
|
174
|
-
Om: "OM",
|
|
175
|
-
Pk: "PK",
|
|
176
|
-
Pw: "PW",
|
|
177
|
-
Ps: "PS",
|
|
178
|
-
Pa: "PA",
|
|
179
|
-
Pg: "PG",
|
|
180
|
-
Py: "PY",
|
|
181
|
-
Pe: "PE",
|
|
182
|
-
Ph: "PH",
|
|
183
|
-
Pn: "PN",
|
|
184
|
-
Pl: "PL",
|
|
185
|
-
Pt: "PT",
|
|
186
|
-
Pr: "PR",
|
|
187
|
-
Qa: "QA",
|
|
188
|
-
Re: "RE",
|
|
189
|
-
Ro: "RO",
|
|
190
|
-
Ru: "RU",
|
|
191
|
-
Rw: "RW",
|
|
192
|
-
Sh: "SH",
|
|
193
|
-
Kn: "KN",
|
|
194
|
-
Lc: "LC",
|
|
195
|
-
Pm: "PM",
|
|
196
|
-
Vc: "VC",
|
|
197
|
-
Ws: "WS",
|
|
198
|
-
Sm: "SM",
|
|
199
|
-
St: "ST",
|
|
200
|
-
Sa: "SA",
|
|
201
|
-
Sn: "SN",
|
|
202
|
-
Sc: "SC",
|
|
203
|
-
Sl: "SL",
|
|
204
|
-
Sg: "SG",
|
|
205
|
-
Sk: "SK",
|
|
206
|
-
Si: "SI",
|
|
207
|
-
Sb: "SB",
|
|
208
|
-
So: "SO",
|
|
209
|
-
Za: "ZA",
|
|
210
|
-
Gs: "GS",
|
|
211
|
-
Es: "ES",
|
|
212
|
-
Lk: "LK",
|
|
213
|
-
Sd: "SD",
|
|
214
|
-
Sr: "SR",
|
|
215
|
-
Sj: "SJ",
|
|
216
|
-
Sz: "SZ",
|
|
217
|
-
Se: "SE",
|
|
218
|
-
Ch: "CH",
|
|
219
|
-
Sy: "SY",
|
|
220
|
-
Tw: "TW",
|
|
221
|
-
Tj: "TJ",
|
|
222
|
-
Tz: "TZ",
|
|
223
|
-
Th: "TH",
|
|
224
|
-
Tl: "TL",
|
|
225
|
-
Tg: "TG",
|
|
226
|
-
Tk: "TK",
|
|
227
|
-
To: "TO",
|
|
228
|
-
Tt: "TT",
|
|
229
|
-
Tn: "TN",
|
|
230
|
-
Tr: "TR",
|
|
231
|
-
Tm: "TM",
|
|
232
|
-
Tc: "TC",
|
|
233
|
-
Tv: "TV",
|
|
234
|
-
Ug: "UG",
|
|
235
|
-
Ua: "UA",
|
|
236
|
-
Ae: "AE",
|
|
237
|
-
Gb: "GB",
|
|
238
|
-
Us: "US",
|
|
239
|
-
Um: "UM",
|
|
240
|
-
Uy: "UY",
|
|
241
|
-
Uz: "UZ",
|
|
242
|
-
Vu: "VU",
|
|
243
|
-
Ve: "VE",
|
|
244
|
-
Vn: "VN",
|
|
245
|
-
Vg: "VG",
|
|
246
|
-
Vi: "VI",
|
|
247
|
-
Wf: "WF",
|
|
248
|
-
Eh: "EH",
|
|
249
|
-
Ye: "YE",
|
|
250
|
-
Zm: "ZM",
|
|
251
|
-
Zw: "ZW",
|
|
252
|
-
Ax: "AX",
|
|
253
|
-
Bq: "BQ",
|
|
254
|
-
Cw: "CW",
|
|
255
|
-
Gg: "GG",
|
|
256
|
-
Im: "IM",
|
|
257
|
-
Je: "JE",
|
|
258
|
-
Me: "ME",
|
|
259
|
-
Bl: "BL",
|
|
260
|
-
Mf: "MF",
|
|
261
|
-
Rs: "RS",
|
|
262
|
-
Sx: "SX",
|
|
263
|
-
Ss: "SS",
|
|
264
|
-
Xk: "XK",
|
|
265
|
-
} as const;
|
|
266
|
-
/**
|
|
267
|
-
* The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo
|
|
268
|
-
*/
|
|
269
|
-
export type Country = ClosedEnum<typeof Country>;
|
|
270
|
-
|
|
271
11
|
export const Region = {
|
|
272
12
|
Wildcard: "*",
|
|
273
13
|
} as const;
|
|
@@ -280,9 +20,9 @@ export type City = ClosedEnum<typeof City>;
|
|
|
280
20
|
|
|
281
21
|
export type AnalyticsCountries = {
|
|
282
22
|
/**
|
|
283
|
-
* The 2-letter ISO 3166-1 country code
|
|
23
|
+
* The 2-letter ISO 3166-1 country code of the country. Learn more: https://d.to/geo
|
|
284
24
|
*/
|
|
285
|
-
country:
|
|
25
|
+
country: string;
|
|
286
26
|
region?: Region | undefined;
|
|
287
27
|
city?: City | undefined;
|
|
288
28
|
/**
|
|
@@ -303,25 +43,6 @@ export type AnalyticsCountries = {
|
|
|
303
43
|
saleAmount?: number | undefined;
|
|
304
44
|
};
|
|
305
45
|
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const Country$inboundSchema: z.ZodNativeEnum<typeof Country> = z
|
|
308
|
-
.nativeEnum(Country);
|
|
309
|
-
|
|
310
|
-
/** @internal */
|
|
311
|
-
export const Country$outboundSchema: z.ZodNativeEnum<typeof Country> =
|
|
312
|
-
Country$inboundSchema;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
317
|
-
*/
|
|
318
|
-
export namespace Country$ {
|
|
319
|
-
/** @deprecated use `Country$inboundSchema` instead. */
|
|
320
|
-
export const inboundSchema = Country$inboundSchema;
|
|
321
|
-
/** @deprecated use `Country$outboundSchema` instead. */
|
|
322
|
-
export const outboundSchema = Country$outboundSchema;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
46
|
/** @internal */
|
|
326
47
|
export const Region$inboundSchema: z.ZodNativeEnum<typeof Region> = z
|
|
327
48
|
.nativeEnum(Region);
|
|
@@ -367,7 +88,7 @@ export const AnalyticsCountries$inboundSchema: z.ZodType<
|
|
|
367
88
|
z.ZodTypeDef,
|
|
368
89
|
unknown
|
|
369
90
|
> = z.object({
|
|
370
|
-
country:
|
|
91
|
+
country: z.string(),
|
|
371
92
|
region: Region$inboundSchema.default("*"),
|
|
372
93
|
city: City$inboundSchema.default("*"),
|
|
373
94
|
clicks: z.number().default(0),
|
|
@@ -393,7 +114,7 @@ export const AnalyticsCountries$outboundSchema: z.ZodType<
|
|
|
393
114
|
z.ZodTypeDef,
|
|
394
115
|
AnalyticsCountries
|
|
395
116
|
> = z.object({
|
|
396
|
-
country:
|
|
117
|
+
country: z.string(),
|
|
397
118
|
region: Region$outboundSchema.default("*"),
|
|
398
119
|
city: City$outboundSchema.default("*"),
|
|
399
120
|
clicks: z.number().default(0),
|
|
@@ -8,268 +8,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* The 2-letter country code of the region: https://d.to/geo
|
|
13
|
-
*/
|
|
14
|
-
export const AnalyticsRegionsCountry = {
|
|
15
|
-
Af: "AF",
|
|
16
|
-
Al: "AL",
|
|
17
|
-
Dz: "DZ",
|
|
18
|
-
As: "AS",
|
|
19
|
-
Ad: "AD",
|
|
20
|
-
Ao: "AO",
|
|
21
|
-
Ai: "AI",
|
|
22
|
-
Aq: "AQ",
|
|
23
|
-
Ag: "AG",
|
|
24
|
-
Ar: "AR",
|
|
25
|
-
Am: "AM",
|
|
26
|
-
Aw: "AW",
|
|
27
|
-
Au: "AU",
|
|
28
|
-
At: "AT",
|
|
29
|
-
Az: "AZ",
|
|
30
|
-
Bs: "BS",
|
|
31
|
-
Bh: "BH",
|
|
32
|
-
Bd: "BD",
|
|
33
|
-
Bb: "BB",
|
|
34
|
-
By: "BY",
|
|
35
|
-
Be: "BE",
|
|
36
|
-
Bz: "BZ",
|
|
37
|
-
Bj: "BJ",
|
|
38
|
-
Bm: "BM",
|
|
39
|
-
Bt: "BT",
|
|
40
|
-
Bo: "BO",
|
|
41
|
-
Ba: "BA",
|
|
42
|
-
Bw: "BW",
|
|
43
|
-
Bv: "BV",
|
|
44
|
-
Br: "BR",
|
|
45
|
-
Io: "IO",
|
|
46
|
-
Bn: "BN",
|
|
47
|
-
Bg: "BG",
|
|
48
|
-
Bf: "BF",
|
|
49
|
-
Bi: "BI",
|
|
50
|
-
Kh: "KH",
|
|
51
|
-
Cm: "CM",
|
|
52
|
-
Ca: "CA",
|
|
53
|
-
Cv: "CV",
|
|
54
|
-
Ky: "KY",
|
|
55
|
-
Cf: "CF",
|
|
56
|
-
Td: "TD",
|
|
57
|
-
Cl: "CL",
|
|
58
|
-
Cn: "CN",
|
|
59
|
-
Cx: "CX",
|
|
60
|
-
Cc: "CC",
|
|
61
|
-
Co: "CO",
|
|
62
|
-
Km: "KM",
|
|
63
|
-
Cg: "CG",
|
|
64
|
-
Cd: "CD",
|
|
65
|
-
Ck: "CK",
|
|
66
|
-
Cr: "CR",
|
|
67
|
-
Ci: "CI",
|
|
68
|
-
Hr: "HR",
|
|
69
|
-
Cu: "CU",
|
|
70
|
-
Cy: "CY",
|
|
71
|
-
Cz: "CZ",
|
|
72
|
-
Dk: "DK",
|
|
73
|
-
Dj: "DJ",
|
|
74
|
-
Dm: "DM",
|
|
75
|
-
Do: "DO",
|
|
76
|
-
Ec: "EC",
|
|
77
|
-
Eg: "EG",
|
|
78
|
-
Sv: "SV",
|
|
79
|
-
Gq: "GQ",
|
|
80
|
-
Er: "ER",
|
|
81
|
-
Ee: "EE",
|
|
82
|
-
Et: "ET",
|
|
83
|
-
Fk: "FK",
|
|
84
|
-
Fo: "FO",
|
|
85
|
-
Fj: "FJ",
|
|
86
|
-
Fi: "FI",
|
|
87
|
-
Fr: "FR",
|
|
88
|
-
Gf: "GF",
|
|
89
|
-
Pf: "PF",
|
|
90
|
-
Tf: "TF",
|
|
91
|
-
Ga: "GA",
|
|
92
|
-
Gm: "GM",
|
|
93
|
-
Ge: "GE",
|
|
94
|
-
De: "DE",
|
|
95
|
-
Gh: "GH",
|
|
96
|
-
Gi: "GI",
|
|
97
|
-
Gr: "GR",
|
|
98
|
-
Gl: "GL",
|
|
99
|
-
Gd: "GD",
|
|
100
|
-
Gp: "GP",
|
|
101
|
-
Gu: "GU",
|
|
102
|
-
Gt: "GT",
|
|
103
|
-
Gn: "GN",
|
|
104
|
-
Gw: "GW",
|
|
105
|
-
Gy: "GY",
|
|
106
|
-
Ht: "HT",
|
|
107
|
-
Hm: "HM",
|
|
108
|
-
Va: "VA",
|
|
109
|
-
Hn: "HN",
|
|
110
|
-
Hk: "HK",
|
|
111
|
-
Hu: "HU",
|
|
112
|
-
Is: "IS",
|
|
113
|
-
In: "IN",
|
|
114
|
-
Id: "ID",
|
|
115
|
-
Ir: "IR",
|
|
116
|
-
Iq: "IQ",
|
|
117
|
-
Ie: "IE",
|
|
118
|
-
Il: "IL",
|
|
119
|
-
It: "IT",
|
|
120
|
-
Jm: "JM",
|
|
121
|
-
Jp: "JP",
|
|
122
|
-
Jo: "JO",
|
|
123
|
-
Kz: "KZ",
|
|
124
|
-
Ke: "KE",
|
|
125
|
-
Ki: "KI",
|
|
126
|
-
Kp: "KP",
|
|
127
|
-
Kr: "KR",
|
|
128
|
-
Kw: "KW",
|
|
129
|
-
Kg: "KG",
|
|
130
|
-
La: "LA",
|
|
131
|
-
Lv: "LV",
|
|
132
|
-
Lb: "LB",
|
|
133
|
-
Ls: "LS",
|
|
134
|
-
Lr: "LR",
|
|
135
|
-
Ly: "LY",
|
|
136
|
-
Li: "LI",
|
|
137
|
-
Lt: "LT",
|
|
138
|
-
Lu: "LU",
|
|
139
|
-
Mo: "MO",
|
|
140
|
-
Mg: "MG",
|
|
141
|
-
Mw: "MW",
|
|
142
|
-
My: "MY",
|
|
143
|
-
Mv: "MV",
|
|
144
|
-
Ml: "ML",
|
|
145
|
-
Mt: "MT",
|
|
146
|
-
Mh: "MH",
|
|
147
|
-
Mq: "MQ",
|
|
148
|
-
Mr: "MR",
|
|
149
|
-
Mu: "MU",
|
|
150
|
-
Yt: "YT",
|
|
151
|
-
Mx: "MX",
|
|
152
|
-
Fm: "FM",
|
|
153
|
-
Md: "MD",
|
|
154
|
-
Mc: "MC",
|
|
155
|
-
Mn: "MN",
|
|
156
|
-
Ms: "MS",
|
|
157
|
-
Ma: "MA",
|
|
158
|
-
Mz: "MZ",
|
|
159
|
-
Mm: "MM",
|
|
160
|
-
Na: "NA",
|
|
161
|
-
Nr: "NR",
|
|
162
|
-
Np: "NP",
|
|
163
|
-
Nl: "NL",
|
|
164
|
-
Nc: "NC",
|
|
165
|
-
Nz: "NZ",
|
|
166
|
-
Ni: "NI",
|
|
167
|
-
Ne: "NE",
|
|
168
|
-
Ng: "NG",
|
|
169
|
-
Nu: "NU",
|
|
170
|
-
Nf: "NF",
|
|
171
|
-
Mk: "MK",
|
|
172
|
-
Mp: "MP",
|
|
173
|
-
No: "NO",
|
|
174
|
-
Om: "OM",
|
|
175
|
-
Pk: "PK",
|
|
176
|
-
Pw: "PW",
|
|
177
|
-
Ps: "PS",
|
|
178
|
-
Pa: "PA",
|
|
179
|
-
Pg: "PG",
|
|
180
|
-
Py: "PY",
|
|
181
|
-
Pe: "PE",
|
|
182
|
-
Ph: "PH",
|
|
183
|
-
Pn: "PN",
|
|
184
|
-
Pl: "PL",
|
|
185
|
-
Pt: "PT",
|
|
186
|
-
Pr: "PR",
|
|
187
|
-
Qa: "QA",
|
|
188
|
-
Re: "RE",
|
|
189
|
-
Ro: "RO",
|
|
190
|
-
Ru: "RU",
|
|
191
|
-
Rw: "RW",
|
|
192
|
-
Sh: "SH",
|
|
193
|
-
Kn: "KN",
|
|
194
|
-
Lc: "LC",
|
|
195
|
-
Pm: "PM",
|
|
196
|
-
Vc: "VC",
|
|
197
|
-
Ws: "WS",
|
|
198
|
-
Sm: "SM",
|
|
199
|
-
St: "ST",
|
|
200
|
-
Sa: "SA",
|
|
201
|
-
Sn: "SN",
|
|
202
|
-
Sc: "SC",
|
|
203
|
-
Sl: "SL",
|
|
204
|
-
Sg: "SG",
|
|
205
|
-
Sk: "SK",
|
|
206
|
-
Si: "SI",
|
|
207
|
-
Sb: "SB",
|
|
208
|
-
So: "SO",
|
|
209
|
-
Za: "ZA",
|
|
210
|
-
Gs: "GS",
|
|
211
|
-
Es: "ES",
|
|
212
|
-
Lk: "LK",
|
|
213
|
-
Sd: "SD",
|
|
214
|
-
Sr: "SR",
|
|
215
|
-
Sj: "SJ",
|
|
216
|
-
Sz: "SZ",
|
|
217
|
-
Se: "SE",
|
|
218
|
-
Ch: "CH",
|
|
219
|
-
Sy: "SY",
|
|
220
|
-
Tw: "TW",
|
|
221
|
-
Tj: "TJ",
|
|
222
|
-
Tz: "TZ",
|
|
223
|
-
Th: "TH",
|
|
224
|
-
Tl: "TL",
|
|
225
|
-
Tg: "TG",
|
|
226
|
-
Tk: "TK",
|
|
227
|
-
To: "TO",
|
|
228
|
-
Tt: "TT",
|
|
229
|
-
Tn: "TN",
|
|
230
|
-
Tr: "TR",
|
|
231
|
-
Tm: "TM",
|
|
232
|
-
Tc: "TC",
|
|
233
|
-
Tv: "TV",
|
|
234
|
-
Ug: "UG",
|
|
235
|
-
Ua: "UA",
|
|
236
|
-
Ae: "AE",
|
|
237
|
-
Gb: "GB",
|
|
238
|
-
Us: "US",
|
|
239
|
-
Um: "UM",
|
|
240
|
-
Uy: "UY",
|
|
241
|
-
Uz: "UZ",
|
|
242
|
-
Vu: "VU",
|
|
243
|
-
Ve: "VE",
|
|
244
|
-
Vn: "VN",
|
|
245
|
-
Vg: "VG",
|
|
246
|
-
Vi: "VI",
|
|
247
|
-
Wf: "WF",
|
|
248
|
-
Eh: "EH",
|
|
249
|
-
Ye: "YE",
|
|
250
|
-
Zm: "ZM",
|
|
251
|
-
Zw: "ZW",
|
|
252
|
-
Ax: "AX",
|
|
253
|
-
Bq: "BQ",
|
|
254
|
-
Cw: "CW",
|
|
255
|
-
Gg: "GG",
|
|
256
|
-
Im: "IM",
|
|
257
|
-
Je: "JE",
|
|
258
|
-
Me: "ME",
|
|
259
|
-
Bl: "BL",
|
|
260
|
-
Mf: "MF",
|
|
261
|
-
Rs: "RS",
|
|
262
|
-
Sx: "SX",
|
|
263
|
-
Ss: "SS",
|
|
264
|
-
Xk: "XK",
|
|
265
|
-
} as const;
|
|
266
|
-
/**
|
|
267
|
-
* The 2-letter country code of the region: https://d.to/geo
|
|
268
|
-
*/
|
|
269
|
-
export type AnalyticsRegionsCountry = ClosedEnum<
|
|
270
|
-
typeof AnalyticsRegionsCountry
|
|
271
|
-
>;
|
|
272
|
-
|
|
273
11
|
export const AnalyticsRegionsCity = {
|
|
274
12
|
Wildcard: "*",
|
|
275
13
|
} as const;
|
|
@@ -277,11 +15,11 @@ export type AnalyticsRegionsCity = ClosedEnum<typeof AnalyticsRegionsCity>;
|
|
|
277
15
|
|
|
278
16
|
export type AnalyticsRegions = {
|
|
279
17
|
/**
|
|
280
|
-
* The 2-letter country code of the
|
|
18
|
+
* The 2-letter ISO 3166-1 country code of the country. Learn more: https://d.to/geo
|
|
281
19
|
*/
|
|
282
|
-
country:
|
|
20
|
+
country: string;
|
|
283
21
|
/**
|
|
284
|
-
* The 2-letter ISO 3166-2 region code
|
|
22
|
+
* The 2-letter ISO 3166-2 region code of the region.
|
|
285
23
|
*/
|
|
286
24
|
region: string;
|
|
287
25
|
city?: AnalyticsRegionsCity | undefined;
|
|
@@ -303,27 +41,6 @@ export type AnalyticsRegions = {
|
|
|
303
41
|
saleAmount?: number | undefined;
|
|
304
42
|
};
|
|
305
43
|
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const AnalyticsRegionsCountry$inboundSchema: z.ZodNativeEnum<
|
|
308
|
-
typeof AnalyticsRegionsCountry
|
|
309
|
-
> = z.nativeEnum(AnalyticsRegionsCountry);
|
|
310
|
-
|
|
311
|
-
/** @internal */
|
|
312
|
-
export const AnalyticsRegionsCountry$outboundSchema: z.ZodNativeEnum<
|
|
313
|
-
typeof AnalyticsRegionsCountry
|
|
314
|
-
> = AnalyticsRegionsCountry$inboundSchema;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @internal
|
|
318
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
319
|
-
*/
|
|
320
|
-
export namespace AnalyticsRegionsCountry$ {
|
|
321
|
-
/** @deprecated use `AnalyticsRegionsCountry$inboundSchema` instead. */
|
|
322
|
-
export const inboundSchema = AnalyticsRegionsCountry$inboundSchema;
|
|
323
|
-
/** @deprecated use `AnalyticsRegionsCountry$outboundSchema` instead. */
|
|
324
|
-
export const outboundSchema = AnalyticsRegionsCountry$outboundSchema;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
44
|
/** @internal */
|
|
328
45
|
export const AnalyticsRegionsCity$inboundSchema: z.ZodNativeEnum<
|
|
329
46
|
typeof AnalyticsRegionsCity
|
|
@@ -351,7 +68,7 @@ export const AnalyticsRegions$inboundSchema: z.ZodType<
|
|
|
351
68
|
z.ZodTypeDef,
|
|
352
69
|
unknown
|
|
353
70
|
> = z.object({
|
|
354
|
-
country:
|
|
71
|
+
country: z.string(),
|
|
355
72
|
region: z.string(),
|
|
356
73
|
city: AnalyticsRegionsCity$inboundSchema.default("*"),
|
|
357
74
|
clicks: z.number().default(0),
|
|
@@ -377,7 +94,7 @@ export const AnalyticsRegions$outboundSchema: z.ZodType<
|
|
|
377
94
|
z.ZodTypeDef,
|
|
378
95
|
AnalyticsRegions
|
|
379
96
|
> = z.object({
|
|
380
|
-
country:
|
|
97
|
+
country: z.string(),
|
|
381
98
|
region: z.string(),
|
|
382
99
|
city: AnalyticsRegionsCity$outboundSchema.default("*"),
|
|
383
100
|
clicks: z.number().default(0),
|
|
@@ -6,7 +6,7 @@ import * as z from "zod";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The country to retrieve analytics for.
|
|
9
|
+
* The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
|
10
10
|
*/
|
|
11
11
|
export const CountryCode = {
|
|
12
12
|
Af: "AF",
|
|
@@ -261,7 +261,7 @@ export const CountryCode = {
|
|
|
261
261
|
Xk: "XK",
|
|
262
262
|
} as const;
|
|
263
263
|
/**
|
|
264
|
-
* The country to retrieve analytics for.
|
|
264
|
+
* The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
|
265
265
|
*/
|
|
266
266
|
export type CountryCode = ClosedEnum<typeof CountryCode>;
|
|
267
267
|
|
|
@@ -512,7 +512,7 @@ export type PaymentProcessor = ClosedEnum<typeof PaymentProcessor>;
|
|
|
512
512
|
|
|
513
513
|
export type Sale = {
|
|
514
514
|
/**
|
|
515
|
-
* The amount of the sale in cents.
|
|
515
|
+
* The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency
|
|
516
516
|
*/
|
|
517
517
|
amount: number;
|
|
518
518
|
/**
|
|
@@ -133,6 +133,10 @@ export type WorkspaceSchema = {
|
|
|
133
133
|
* The max dollar amount of partner payouts that can be processed within a billing cycle (in cents).
|
|
134
134
|
*/
|
|
135
135
|
payoutsLimit: number;
|
|
136
|
+
/**
|
|
137
|
+
* The processing fee (in decimals) for partner payouts. For card payments, an additional 0.03 is added to the fee. Learn more: https://d.to/payouts
|
|
138
|
+
*/
|
|
139
|
+
payoutFee: number;
|
|
136
140
|
/**
|
|
137
141
|
* The domains limit of the workspace.
|
|
138
142
|
*/
|
|
@@ -365,6 +369,7 @@ export const WorkspaceSchema$inboundSchema: z.ZodType<
|
|
|
365
369
|
linksLimit: z.number(),
|
|
366
370
|
payoutsUsage: z.number(),
|
|
367
371
|
payoutsLimit: z.number(),
|
|
372
|
+
payoutFee: z.number(),
|
|
368
373
|
domainsLimit: z.number(),
|
|
369
374
|
tagsLimit: z.number(),
|
|
370
375
|
foldersUsage: z.number(),
|
|
@@ -402,6 +407,7 @@ export type WorkspaceSchema$Outbound = {
|
|
|
402
407
|
linksLimit: number;
|
|
403
408
|
payoutsUsage: number;
|
|
404
409
|
payoutsLimit: number;
|
|
410
|
+
payoutFee: number;
|
|
405
411
|
domainsLimit: number;
|
|
406
412
|
tagsLimit: number;
|
|
407
413
|
foldersUsage: number;
|
|
@@ -443,6 +449,7 @@ export const WorkspaceSchema$outboundSchema: z.ZodType<
|
|
|
443
449
|
linksLimit: z.number(),
|
|
444
450
|
payoutsUsage: z.number(),
|
|
445
451
|
payoutsLimit: z.number(),
|
|
452
|
+
payoutFee: z.number(),
|
|
446
453
|
domainsLimit: z.number(),
|
|
447
454
|
tagsLimit: z.number(),
|
|
448
455
|
foldersUsage: z.number(),
|