dub 0.41.1 → 0.41.2
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/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +5 -0
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js +2 -0
- package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +5 -0
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.js +2 -0
- package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/createlink.d.ts +5 -0
- package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createlink.js +2 -0
- package/dist/commonjs/models/operations/createlink.js.map +1 -1
- package/dist/commonjs/models/operations/updatelink.d.ts +5 -0
- package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatelink.js +2 -0
- package/dist/commonjs/models/operations/updatelink.js.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.d.ts +5 -0
- package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.js +2 -0
- package/dist/commonjs/models/operations/upsertlink.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.d.ts +5 -0
- package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js +2 -0
- package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.d.ts +5 -0
- package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.js +2 -0
- package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/esm/models/operations/createlink.d.ts +5 -0
- package/dist/esm/models/operations/createlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createlink.js +2 -0
- package/dist/esm/models/operations/createlink.js.map +1 -1
- package/dist/esm/models/operations/updatelink.d.ts +5 -0
- package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
- package/dist/esm/models/operations/updatelink.js +2 -0
- package/dist/esm/models/operations/updatelink.js.map +1 -1
- package/dist/esm/models/operations/upsertlink.d.ts +5 -0
- package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertlink.js +2 -0
- package/dist/esm/models/operations/upsertlink.js.map +1 -1
- package/docs/sdks/analytics/README.md +3 -3
- package/docs/sdks/domains/README.md +10 -10
- package/docs/sdks/events/README.md +3 -3
- package/docs/sdks/links/README.md +28 -28
- package/docs/sdks/metatags/README.md +3 -3
- package/docs/sdks/qrcodes/README.md +3 -3
- package/docs/sdks/tags/README.md +12 -12
- package/docs/sdks/track/README.md +9 -9
- package/docs/sdks/workspaces/README.md +6 -6
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/bulkcreatelinks.ts +7 -0
- package/src/models/operations/bulkupdatelinks.ts +7 -0
- package/src/models/operations/createlink.ts +7 -0
- package/src/models/operations/updatelink.ts +7 -0
- package/src/models/operations/upsertlink.ts +7 -0
|
@@ -31,9 +31,9 @@ const dub = new Dub({
|
|
|
31
31
|
|
|
32
32
|
async function run() {
|
|
33
33
|
const result = await dub.links.create();
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
// Handle the result
|
|
36
|
-
console.log(result)
|
|
36
|
+
console.log(result);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
run();
|
|
@@ -63,7 +63,7 @@ async function run() {
|
|
|
63
63
|
const { value: result } = res;
|
|
64
64
|
|
|
65
65
|
// Handle the result
|
|
66
|
-
console.log(result)
|
|
66
|
+
console.log(result);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
run();
|
|
@@ -113,7 +113,7 @@ const dub = new Dub({
|
|
|
113
113
|
|
|
114
114
|
async function run() {
|
|
115
115
|
const result = await dub.links.list();
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
for await (const page of result) {
|
|
118
118
|
// Handle the page
|
|
119
119
|
console.log(page);
|
|
@@ -199,9 +199,9 @@ const dub = new Dub({
|
|
|
199
199
|
|
|
200
200
|
async function run() {
|
|
201
201
|
const result = await dub.links.count();
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
// Handle the result
|
|
204
|
-
console.log(result)
|
|
204
|
+
console.log(result);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
run();
|
|
@@ -231,7 +231,7 @@ async function run() {
|
|
|
231
231
|
const { value: result } = res;
|
|
232
232
|
|
|
233
233
|
// Handle the result
|
|
234
|
-
console.log(result)
|
|
234
|
+
console.log(result);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
run();
|
|
@@ -281,9 +281,9 @@ const dub = new Dub({
|
|
|
281
281
|
|
|
282
282
|
async function run() {
|
|
283
283
|
const result = await dub.links.get();
|
|
284
|
-
|
|
284
|
+
|
|
285
285
|
// Handle the result
|
|
286
|
-
console.log(result)
|
|
286
|
+
console.log(result);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
run();
|
|
@@ -313,7 +313,7 @@ async function run() {
|
|
|
313
313
|
const { value: result } = res;
|
|
314
314
|
|
|
315
315
|
// Handle the result
|
|
316
|
-
console.log(result)
|
|
316
|
+
console.log(result);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
run();
|
|
@@ -363,9 +363,9 @@ const dub = new Dub({
|
|
|
363
363
|
|
|
364
364
|
async function run() {
|
|
365
365
|
const result = await dub.links.update("<value>");
|
|
366
|
-
|
|
366
|
+
|
|
367
367
|
// Handle the result
|
|
368
|
-
console.log(result)
|
|
368
|
+
console.log(result);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
run();
|
|
@@ -395,7 +395,7 @@ async function run() {
|
|
|
395
395
|
const { value: result } = res;
|
|
396
396
|
|
|
397
397
|
// Handle the result
|
|
398
|
-
console.log(result)
|
|
398
|
+
console.log(result);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
run();
|
|
@@ -446,9 +446,9 @@ const dub = new Dub({
|
|
|
446
446
|
|
|
447
447
|
async function run() {
|
|
448
448
|
const result = await dub.links.delete("<value>");
|
|
449
|
-
|
|
449
|
+
|
|
450
450
|
// Handle the result
|
|
451
|
-
console.log(result)
|
|
451
|
+
console.log(result);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
run();
|
|
@@ -478,7 +478,7 @@ async function run() {
|
|
|
478
478
|
const { value: result } = res;
|
|
479
479
|
|
|
480
480
|
// Handle the result
|
|
481
|
-
console.log(result)
|
|
481
|
+
console.log(result);
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
run();
|
|
@@ -528,9 +528,9 @@ const dub = new Dub({
|
|
|
528
528
|
|
|
529
529
|
async function run() {
|
|
530
530
|
const result = await dub.links.createMany();
|
|
531
|
-
|
|
531
|
+
|
|
532
532
|
// Handle the result
|
|
533
|
-
console.log(result)
|
|
533
|
+
console.log(result);
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
run();
|
|
@@ -560,7 +560,7 @@ async function run() {
|
|
|
560
560
|
const { value: result } = res;
|
|
561
561
|
|
|
562
562
|
// Handle the result
|
|
563
|
-
console.log(result)
|
|
563
|
+
console.log(result);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
run();
|
|
@@ -610,9 +610,9 @@ const dub = new Dub({
|
|
|
610
610
|
|
|
611
611
|
async function run() {
|
|
612
612
|
const result = await dub.links.updateMany();
|
|
613
|
-
|
|
613
|
+
|
|
614
614
|
// Handle the result
|
|
615
|
-
console.log(result)
|
|
615
|
+
console.log(result);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
run();
|
|
@@ -642,7 +642,7 @@ async function run() {
|
|
|
642
642
|
const { value: result } = res;
|
|
643
643
|
|
|
644
644
|
// Handle the result
|
|
645
|
-
console.log(result)
|
|
645
|
+
console.log(result);
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
run();
|
|
@@ -697,9 +697,9 @@ async function run() {
|
|
|
697
697
|
"clux0rgak00022...",
|
|
698
698
|
],
|
|
699
699
|
});
|
|
700
|
-
|
|
700
|
+
|
|
701
701
|
// Handle the result
|
|
702
|
-
console.log(result)
|
|
702
|
+
console.log(result);
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
run();
|
|
@@ -734,7 +734,7 @@ async function run() {
|
|
|
734
734
|
const { value: result } = res;
|
|
735
735
|
|
|
736
736
|
// Handle the result
|
|
737
|
-
console.log(result)
|
|
737
|
+
console.log(result);
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
run();
|
|
@@ -784,9 +784,9 @@ const dub = new Dub({
|
|
|
784
784
|
|
|
785
785
|
async function run() {
|
|
786
786
|
const result = await dub.links.upsert();
|
|
787
|
-
|
|
787
|
+
|
|
788
788
|
// Handle the result
|
|
789
|
-
console.log(result)
|
|
789
|
+
console.log(result);
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
run();
|
|
@@ -816,7 +816,7 @@ async function run() {
|
|
|
816
816
|
const { value: result } = res;
|
|
817
817
|
|
|
818
818
|
// Handle the result
|
|
819
|
-
console.log(result)
|
|
819
|
+
console.log(result);
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
run();
|
|
@@ -24,9 +24,9 @@ async function run() {
|
|
|
24
24
|
const result = await dub.metatags.get({
|
|
25
25
|
url: "https://dub.co",
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
// Handle the result
|
|
29
|
-
console.log(result)
|
|
29
|
+
console.log(result);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
run();
|
|
@@ -58,7 +58,7 @@ async function run() {
|
|
|
58
58
|
const { value: result } = res;
|
|
59
59
|
|
|
60
60
|
// Handle the result
|
|
61
|
-
console.log(result)
|
|
61
|
+
console.log(result);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
run();
|
|
@@ -24,9 +24,9 @@ async function run() {
|
|
|
24
24
|
const result = await dub.qrCodes.get({
|
|
25
25
|
url: "https://brief-micronutrient.org",
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
// Handle the result
|
|
29
|
-
console.log(result)
|
|
29
|
+
console.log(result);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
run();
|
|
@@ -58,7 +58,7 @@ async function run() {
|
|
|
58
58
|
const { value: result } = res;
|
|
59
59
|
|
|
60
60
|
// Handle the result
|
|
61
|
-
console.log(result)
|
|
61
|
+
console.log(result);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
run();
|
package/docs/sdks/tags/README.md
CHANGED
|
@@ -25,9 +25,9 @@ const dub = new Dub({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await dub.tags.create();
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
// Handle the result
|
|
30
|
-
console.log(result)
|
|
30
|
+
console.log(result);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
run();
|
|
@@ -57,7 +57,7 @@ async function run() {
|
|
|
57
57
|
const { value: result } = res;
|
|
58
58
|
|
|
59
59
|
// Handle the result
|
|
60
|
-
console.log(result)
|
|
60
|
+
console.log(result);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
run();
|
|
@@ -107,9 +107,9 @@ const dub = new Dub({
|
|
|
107
107
|
|
|
108
108
|
async function run() {
|
|
109
109
|
const result = await dub.tags.list();
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
// Handle the result
|
|
112
|
-
console.log(result)
|
|
112
|
+
console.log(result);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
run();
|
|
@@ -139,7 +139,7 @@ async function run() {
|
|
|
139
139
|
const { value: result } = res;
|
|
140
140
|
|
|
141
141
|
// Handle the result
|
|
142
|
-
console.log(result)
|
|
142
|
+
console.log(result);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
run();
|
|
@@ -188,9 +188,9 @@ const dub = new Dub({
|
|
|
188
188
|
|
|
189
189
|
async function run() {
|
|
190
190
|
const result = await dub.tags.update("<id>");
|
|
191
|
-
|
|
191
|
+
|
|
192
192
|
// Handle the result
|
|
193
|
-
console.log(result)
|
|
193
|
+
console.log(result);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
run();
|
|
@@ -220,7 +220,7 @@ async function run() {
|
|
|
220
220
|
const { value: result } = res;
|
|
221
221
|
|
|
222
222
|
// Handle the result
|
|
223
|
-
console.log(result)
|
|
223
|
+
console.log(result);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
run();
|
|
@@ -271,9 +271,9 @@ const dub = new Dub({
|
|
|
271
271
|
|
|
272
272
|
async function run() {
|
|
273
273
|
const result = await dub.tags.delete("<id>");
|
|
274
|
-
|
|
274
|
+
|
|
275
275
|
// Handle the result
|
|
276
|
-
console.log(result)
|
|
276
|
+
console.log(result);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
run();
|
|
@@ -303,7 +303,7 @@ async function run() {
|
|
|
303
303
|
const { value: result } = res;
|
|
304
304
|
|
|
305
305
|
// Handle the result
|
|
306
|
-
console.log(result)
|
|
306
|
+
console.log(result);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
run();
|
|
@@ -24,9 +24,9 @@ const dub = new Dub({
|
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
26
|
const result = await dub.track.lead();
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
// Handle the result
|
|
29
|
-
console.log(result)
|
|
29
|
+
console.log(result);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
run();
|
|
@@ -56,7 +56,7 @@ async function run() {
|
|
|
56
56
|
const { value: result } = res;
|
|
57
57
|
|
|
58
58
|
// Handle the result
|
|
59
|
-
console.log(result)
|
|
59
|
+
console.log(result);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
run();
|
|
@@ -106,9 +106,9 @@ const dub = new Dub({
|
|
|
106
106
|
|
|
107
107
|
async function run() {
|
|
108
108
|
const result = await dub.track.sale();
|
|
109
|
-
|
|
109
|
+
|
|
110
110
|
// Handle the result
|
|
111
|
-
console.log(result)
|
|
111
|
+
console.log(result);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
run();
|
|
@@ -138,7 +138,7 @@ async function run() {
|
|
|
138
138
|
const { value: result } = res;
|
|
139
139
|
|
|
140
140
|
// Handle the result
|
|
141
|
-
console.log(result)
|
|
141
|
+
console.log(result);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
run();
|
|
@@ -188,9 +188,9 @@ const dub = new Dub({
|
|
|
188
188
|
|
|
189
189
|
async function run() {
|
|
190
190
|
const result = await dub.track.customer();
|
|
191
|
-
|
|
191
|
+
|
|
192
192
|
// Handle the result
|
|
193
|
-
console.log(result)
|
|
193
|
+
console.log(result);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
run();
|
|
@@ -220,7 +220,7 @@ async function run() {
|
|
|
220
220
|
const { value: result } = res;
|
|
221
221
|
|
|
222
222
|
// Handle the result
|
|
223
|
-
console.log(result)
|
|
223
|
+
console.log(result);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
run();
|
|
@@ -25,9 +25,9 @@ async function run() {
|
|
|
25
25
|
const result = await dub.workspaces.get({
|
|
26
26
|
idOrSlug: "<value>",
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
// Handle the result
|
|
30
|
-
console.log(result)
|
|
30
|
+
console.log(result);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
run();
|
|
@@ -59,7 +59,7 @@ async function run() {
|
|
|
59
59
|
const { value: result } = res;
|
|
60
60
|
|
|
61
61
|
// Handle the result
|
|
62
|
-
console.log(result)
|
|
62
|
+
console.log(result);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
run();
|
|
@@ -109,9 +109,9 @@ const dub = new Dub({
|
|
|
109
109
|
|
|
110
110
|
async function run() {
|
|
111
111
|
const result = await dub.workspaces.update("<value>");
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
// Handle the result
|
|
114
|
-
console.log(result)
|
|
114
|
+
console.log(result);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
run();
|
|
@@ -141,7 +141,7 @@ async function run() {
|
|
|
141
141
|
const { value: result } = res;
|
|
142
142
|
|
|
143
143
|
// Handle the result
|
|
144
|
-
console.log(result)
|
|
144
|
+
console.log(result);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
run();
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.41.
|
|
61
|
-
genVersion: "2.422.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 0.41.
|
|
60
|
+
sdkVersion: "0.41.2",
|
|
61
|
+
genVersion: "2.422.22",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 0.41.2 2.422.22 0.0.1 dub",
|
|
63
63
|
} as const;
|
|
@@ -139,6 +139,10 @@ export type RequestBody = {
|
|
|
139
139
|
* The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
|
140
140
|
*/
|
|
141
141
|
utmContent?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
144
|
+
*/
|
|
145
|
+
ref?: string | null | undefined;
|
|
142
146
|
};
|
|
143
147
|
|
|
144
148
|
/** @internal */
|
|
@@ -237,6 +241,7 @@ export const RequestBody$inboundSchema: z.ZodType<
|
|
|
237
241
|
utm_campaign: z.nullable(z.string()).optional(),
|
|
238
242
|
utm_term: z.nullable(z.string()).optional(),
|
|
239
243
|
utm_content: z.nullable(z.string()).optional(),
|
|
244
|
+
ref: z.nullable(z.string()).optional(),
|
|
240
245
|
}).transform((v) => {
|
|
241
246
|
return remap$(v, {
|
|
242
247
|
"utm_source": "utmSource",
|
|
@@ -279,6 +284,7 @@ export type RequestBody$Outbound = {
|
|
|
279
284
|
utm_campaign?: string | null | undefined;
|
|
280
285
|
utm_term?: string | null | undefined;
|
|
281
286
|
utm_content?: string | null | undefined;
|
|
287
|
+
ref?: string | null | undefined;
|
|
282
288
|
};
|
|
283
289
|
|
|
284
290
|
/** @internal */
|
|
@@ -317,6 +323,7 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
317
323
|
utmCampaign: z.nullable(z.string()).optional(),
|
|
318
324
|
utmTerm: z.nullable(z.string()).optional(),
|
|
319
325
|
utmContent: z.nullable(z.string()).optional(),
|
|
326
|
+
ref: z.nullable(z.string()).optional(),
|
|
320
327
|
}).transform((v) => {
|
|
321
328
|
return remap$(v, {
|
|
322
329
|
utmSource: "utm_source",
|
|
@@ -123,6 +123,10 @@ export type Data = {
|
|
|
123
123
|
* The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
|
124
124
|
*/
|
|
125
125
|
utmContent?: string | null | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
128
|
+
*/
|
|
129
|
+
ref?: string | null | undefined;
|
|
126
130
|
};
|
|
127
131
|
|
|
128
132
|
export type BulkUpdateLinksRequestBody = {
|
|
@@ -219,6 +223,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
219
223
|
utm_campaign: z.nullable(z.string()).optional(),
|
|
220
224
|
utm_term: z.nullable(z.string()).optional(),
|
|
221
225
|
utm_content: z.nullable(z.string()).optional(),
|
|
226
|
+
ref: z.nullable(z.string()).optional(),
|
|
222
227
|
}).transform((v) => {
|
|
223
228
|
return remap$(v, {
|
|
224
229
|
"utm_source": "utmSource",
|
|
@@ -257,6 +262,7 @@ export type Data$Outbound = {
|
|
|
257
262
|
utm_campaign?: string | null | undefined;
|
|
258
263
|
utm_term?: string | null | undefined;
|
|
259
264
|
utm_content?: string | null | undefined;
|
|
265
|
+
ref?: string | null | undefined;
|
|
260
266
|
};
|
|
261
267
|
|
|
262
268
|
/** @internal */
|
|
@@ -288,6 +294,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
288
294
|
utmCampaign: z.nullable(z.string()).optional(),
|
|
289
295
|
utmTerm: z.nullable(z.string()).optional(),
|
|
290
296
|
utmContent: z.nullable(z.string()).optional(),
|
|
297
|
+
ref: z.nullable(z.string()).optional(),
|
|
291
298
|
}).transform((v) => {
|
|
292
299
|
return remap$(v, {
|
|
293
300
|
utmSource: "utm_source",
|
|
@@ -139,6 +139,10 @@ export type CreateLinkRequestBody = {
|
|
|
139
139
|
* The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
|
140
140
|
*/
|
|
141
141
|
utmContent?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
144
|
+
*/
|
|
145
|
+
ref?: string | null | undefined;
|
|
142
146
|
};
|
|
143
147
|
|
|
144
148
|
/** @internal */
|
|
@@ -234,6 +238,7 @@ export const CreateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
234
238
|
utm_campaign: z.nullable(z.string()).optional(),
|
|
235
239
|
utm_term: z.nullable(z.string()).optional(),
|
|
236
240
|
utm_content: z.nullable(z.string()).optional(),
|
|
241
|
+
ref: z.nullable(z.string()).optional(),
|
|
237
242
|
}).transform((v) => {
|
|
238
243
|
return remap$(v, {
|
|
239
244
|
"utm_source": "utmSource",
|
|
@@ -276,6 +281,7 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
276
281
|
utm_campaign?: string | null | undefined;
|
|
277
282
|
utm_term?: string | null | undefined;
|
|
278
283
|
utm_content?: string | null | undefined;
|
|
284
|
+
ref?: string | null | undefined;
|
|
279
285
|
};
|
|
280
286
|
|
|
281
287
|
/** @internal */
|
|
@@ -314,6 +320,7 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
314
320
|
utmCampaign: z.nullable(z.string()).optional(),
|
|
315
321
|
utmTerm: z.nullable(z.string()).optional(),
|
|
316
322
|
utmContent: z.nullable(z.string()).optional(),
|
|
323
|
+
ref: z.nullable(z.string()).optional(),
|
|
317
324
|
}).transform((v) => {
|
|
318
325
|
return remap$(v, {
|
|
319
326
|
utmSource: "utm_source",
|
|
@@ -139,6 +139,10 @@ export type UpdateLinkRequestBody = {
|
|
|
139
139
|
* The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
|
140
140
|
*/
|
|
141
141
|
utmContent?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
144
|
+
*/
|
|
145
|
+
ref?: string | null | undefined;
|
|
142
146
|
};
|
|
143
147
|
|
|
144
148
|
export type UpdateLinkRequest = {
|
|
@@ -245,6 +249,7 @@ export const UpdateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
245
249
|
utm_campaign: z.nullable(z.string()).optional(),
|
|
246
250
|
utm_term: z.nullable(z.string()).optional(),
|
|
247
251
|
utm_content: z.nullable(z.string()).optional(),
|
|
252
|
+
ref: z.nullable(z.string()).optional(),
|
|
248
253
|
}).transform((v) => {
|
|
249
254
|
return remap$(v, {
|
|
250
255
|
"utm_source": "utmSource",
|
|
@@ -287,6 +292,7 @@ export type UpdateLinkRequestBody$Outbound = {
|
|
|
287
292
|
utm_campaign?: string | null | undefined;
|
|
288
293
|
utm_term?: string | null | undefined;
|
|
289
294
|
utm_content?: string | null | undefined;
|
|
295
|
+
ref?: string | null | undefined;
|
|
290
296
|
};
|
|
291
297
|
|
|
292
298
|
/** @internal */
|
|
@@ -325,6 +331,7 @@ export const UpdateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
325
331
|
utmCampaign: z.nullable(z.string()).optional(),
|
|
326
332
|
utmTerm: z.nullable(z.string()).optional(),
|
|
327
333
|
utmContent: z.nullable(z.string()).optional(),
|
|
334
|
+
ref: z.nullable(z.string()).optional(),
|
|
328
335
|
}).transform((v) => {
|
|
329
336
|
return remap$(v, {
|
|
330
337
|
utmSource: "utm_source",
|
|
@@ -139,6 +139,10 @@ export type UpsertLinkRequestBody = {
|
|
|
139
139
|
* The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
|
140
140
|
*/
|
|
141
141
|
utmContent?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
144
|
+
*/
|
|
145
|
+
ref?: string | null | undefined;
|
|
142
146
|
};
|
|
143
147
|
|
|
144
148
|
/** @internal */
|
|
@@ -237,6 +241,7 @@ export const UpsertLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
237
241
|
utm_campaign: z.nullable(z.string()).optional(),
|
|
238
242
|
utm_term: z.nullable(z.string()).optional(),
|
|
239
243
|
utm_content: z.nullable(z.string()).optional(),
|
|
244
|
+
ref: z.nullable(z.string()).optional(),
|
|
240
245
|
}).transform((v) => {
|
|
241
246
|
return remap$(v, {
|
|
242
247
|
"utm_source": "utmSource",
|
|
@@ -279,6 +284,7 @@ export type UpsertLinkRequestBody$Outbound = {
|
|
|
279
284
|
utm_campaign?: string | null | undefined;
|
|
280
285
|
utm_term?: string | null | undefined;
|
|
281
286
|
utm_content?: string | null | undefined;
|
|
287
|
+
ref?: string | null | undefined;
|
|
282
288
|
};
|
|
283
289
|
|
|
284
290
|
/** @internal */
|
|
@@ -317,6 +323,7 @@ export const UpsertLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
317
323
|
utmCampaign: z.nullable(z.string()).optional(),
|
|
318
324
|
utmTerm: z.nullable(z.string()).optional(),
|
|
319
325
|
utmContent: z.nullable(z.string()).optional(),
|
|
326
|
+
ref: z.nullable(z.string()).optional(),
|
|
320
327
|
}).transform((v) => {
|
|
321
328
|
return remap$(v, {
|
|
322
329
|
utmSource: "utm_source",
|