@codeqr/ts 0.1.2 → 0.2.0
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/events.d.mts +80 -82
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +80 -82
- package/resources/events.d.ts.map +1 -1
- package/resources/links/bulk.d.mts +42 -44
- package/resources/links/bulk.d.mts.map +1 -1
- package/resources/links/bulk.d.ts +42 -44
- package/resources/links/bulk.d.ts.map +1 -1
- package/resources/links/links.d.mts +184 -191
- package/resources/links/links.d.mts.map +1 -1
- package/resources/links/links.d.ts +184 -191
- package/resources/links/links.d.ts.map +1 -1
- package/resources/links/links.js.map +1 -1
- package/resources/links/links.mjs.map +1 -1
- package/src/resources/events.ts +80 -82
- package/src/resources/links/bulk.ts +42 -44
- package/src/resources/links/links.ts +184 -191
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/events.ts
CHANGED
|
@@ -127,47 +127,46 @@ export namespace EventListResponse {
|
|
|
127
127
|
|
|
128
128
|
export interface Link {
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* The unique ID of the short link.
|
|
131
131
|
*/
|
|
132
132
|
id: string;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
136
|
-
* Android.
|
|
135
|
+
* The Android destination URL for the short link for Android device targeting.
|
|
137
136
|
*/
|
|
138
137
|
android: string | null;
|
|
139
138
|
|
|
140
139
|
/**
|
|
141
|
-
*
|
|
140
|
+
* The number of clicks on the short link.
|
|
142
141
|
*/
|
|
143
142
|
clicks: number;
|
|
144
143
|
|
|
145
144
|
/**
|
|
146
|
-
*
|
|
145
|
+
* The comments for the short link.
|
|
147
146
|
*/
|
|
148
147
|
comments: string | null;
|
|
149
148
|
|
|
150
149
|
createdAt: string;
|
|
151
150
|
|
|
152
151
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
152
|
+
* The description of the short link generated via `api.codeqr.io/metatags`. Will
|
|
153
|
+
* be used for custom link preview if `proxy` is true.
|
|
155
154
|
*/
|
|
156
155
|
description: string | null;
|
|
157
156
|
|
|
158
157
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
158
|
+
* The domain of the short link. If not provided, the main domain of the project
|
|
159
|
+
* will be used (or `codeqr.link` if the project has no domains).
|
|
161
160
|
*/
|
|
162
161
|
domain: string;
|
|
163
162
|
|
|
164
163
|
/**
|
|
165
|
-
*
|
|
164
|
+
* The URL to redirect to when the short link expires.
|
|
166
165
|
*/
|
|
167
166
|
expiredUrl: string | null;
|
|
168
167
|
|
|
169
168
|
/**
|
|
170
|
-
*
|
|
169
|
+
* This is the ID of the link in your database.
|
|
171
170
|
*/
|
|
172
171
|
externalId: string | null;
|
|
173
172
|
|
|
@@ -177,24 +176,24 @@ export namespace EventListResponse {
|
|
|
177
176
|
filled: boolean;
|
|
178
177
|
|
|
179
178
|
/**
|
|
180
|
-
*
|
|
179
|
+
* Whether the short link is flexible.
|
|
181
180
|
*/
|
|
182
181
|
flexible: boolean;
|
|
183
182
|
|
|
184
183
|
/**
|
|
185
|
-
*
|
|
186
|
-
* `{[
|
|
184
|
+
* Geographic targeting information for the short link in JSON format
|
|
185
|
+
* `{[COUNTRY]: https://example.com }`. Learn more: https://codeqr.link/geo
|
|
187
186
|
*/
|
|
188
187
|
geo: { [key: string]: string } | null;
|
|
189
188
|
|
|
190
189
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
190
|
+
* The image of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
191
|
+
* for custom link preview if `proxy` is true.
|
|
193
192
|
*/
|
|
194
193
|
image: string | null;
|
|
195
194
|
|
|
196
195
|
/**
|
|
197
|
-
*
|
|
196
|
+
* The iOS destination URL for the short link for iOS device targeting.
|
|
198
197
|
*/
|
|
199
198
|
ios: string | null;
|
|
200
199
|
|
|
@@ -204,35 +203,35 @@ export namespace EventListResponse {
|
|
|
204
203
|
isFormMandatory: boolean;
|
|
205
204
|
|
|
206
205
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
206
|
+
* The slug of the short link. If not provided, a random 7-character slug will be
|
|
207
|
+
* generated.
|
|
209
208
|
*/
|
|
210
209
|
key: string;
|
|
211
210
|
|
|
212
211
|
lastClicked: string;
|
|
213
212
|
|
|
214
213
|
/**
|
|
215
|
-
*
|
|
214
|
+
* The number of leads generated by the short link.
|
|
216
215
|
*/
|
|
217
216
|
leads: number;
|
|
218
217
|
|
|
219
218
|
/**
|
|
220
|
-
*
|
|
219
|
+
* The notification token of the short link.
|
|
221
220
|
*/
|
|
222
221
|
notificationToken: string | null;
|
|
223
222
|
|
|
224
223
|
/**
|
|
225
|
-
*
|
|
224
|
+
* The password required to access the short link destination URL.
|
|
226
225
|
*/
|
|
227
226
|
password: string | null;
|
|
228
227
|
|
|
229
228
|
/**
|
|
230
|
-
*
|
|
229
|
+
* Whether the short link has pre-redirection.
|
|
231
230
|
*/
|
|
232
231
|
preRedirection: boolean;
|
|
233
232
|
|
|
234
233
|
/**
|
|
235
|
-
*
|
|
234
|
+
* The ID of the project of the short link.
|
|
236
235
|
*/
|
|
237
236
|
projectId: string;
|
|
238
237
|
|
|
@@ -242,24 +241,24 @@ export namespace EventListResponse {
|
|
|
242
241
|
saleAmount: number;
|
|
243
242
|
|
|
244
243
|
/**
|
|
245
|
-
*
|
|
244
|
+
* The number of sales generated by the short link.
|
|
246
245
|
*/
|
|
247
246
|
sales: number;
|
|
248
247
|
|
|
249
248
|
/**
|
|
250
|
-
* @deprecated [
|
|
251
|
-
*
|
|
249
|
+
* @deprecated [DEPRECATED (use `tags` instead)]: The unique ID of the tag assigned
|
|
250
|
+
* to the short link.
|
|
252
251
|
*/
|
|
253
252
|
tagId: string | null;
|
|
254
253
|
|
|
255
254
|
/**
|
|
256
|
-
*
|
|
255
|
+
* The tags assigned to the short link.
|
|
257
256
|
*/
|
|
258
257
|
tags: Array<TagsAPI.Tag> | null;
|
|
259
258
|
|
|
260
259
|
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
260
|
+
* The title of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
261
|
+
* for custom link preview if `proxy` is true.
|
|
263
262
|
*/
|
|
264
263
|
title: string | null;
|
|
265
264
|
|
|
@@ -268,32 +267,32 @@ export namespace EventListResponse {
|
|
|
268
267
|
userId: string | null;
|
|
269
268
|
|
|
270
269
|
/**
|
|
271
|
-
*
|
|
270
|
+
* The UTM campaign of the short link.
|
|
272
271
|
*/
|
|
273
272
|
utm_campaign: string | null;
|
|
274
273
|
|
|
275
274
|
/**
|
|
276
|
-
*
|
|
275
|
+
* The UTM content of the short link.
|
|
277
276
|
*/
|
|
278
277
|
utm_content: string | null;
|
|
279
278
|
|
|
280
279
|
/**
|
|
281
|
-
*
|
|
280
|
+
* The UTM medium of the short link.
|
|
282
281
|
*/
|
|
283
282
|
utm_medium: string | null;
|
|
284
283
|
|
|
285
284
|
/**
|
|
286
|
-
*
|
|
285
|
+
* The UTM source of the short link.
|
|
287
286
|
*/
|
|
288
287
|
utm_source: string | null;
|
|
289
288
|
|
|
290
289
|
/**
|
|
291
|
-
*
|
|
290
|
+
* The UTM term of the short link.
|
|
292
291
|
*/
|
|
293
292
|
utm_term: string | null;
|
|
294
293
|
|
|
295
294
|
/**
|
|
296
|
-
*
|
|
295
|
+
* The video of the short link.
|
|
297
296
|
*/
|
|
298
297
|
video: string | null;
|
|
299
298
|
|
|
@@ -318,7 +317,7 @@ export namespace EventListResponse {
|
|
|
318
317
|
publicStats?: boolean;
|
|
319
318
|
|
|
320
319
|
/**
|
|
321
|
-
*
|
|
320
|
+
* The complete QR code URL for the short link (for example,
|
|
322
321
|
* `https://api.codeqr.io/qr?url=https://codeqr.link/try`).
|
|
323
322
|
*/
|
|
324
323
|
qrCode?: string;
|
|
@@ -326,7 +325,7 @@ export namespace EventListResponse {
|
|
|
326
325
|
rewrite?: boolean;
|
|
327
326
|
|
|
328
327
|
/**
|
|
329
|
-
*
|
|
328
|
+
* The complete URL of the short link, including the https protocol (for example,
|
|
330
329
|
* `https://codeqr.link/try`).
|
|
331
330
|
*/
|
|
332
331
|
shortLink?: string;
|
|
@@ -632,24 +631,24 @@ export namespace EventListResponse {
|
|
|
632
631
|
export namespace Customer {
|
|
633
632
|
export interface Link {
|
|
634
633
|
/**
|
|
635
|
-
*
|
|
634
|
+
* The unique ID of the short link.
|
|
636
635
|
*/
|
|
637
636
|
id: string;
|
|
638
637
|
|
|
639
638
|
/**
|
|
640
|
-
*
|
|
641
|
-
*
|
|
639
|
+
* The domain of the short link. If not provided, the main domain of the project
|
|
640
|
+
* will be used (or `codeqr.link` if the project has no domains).
|
|
642
641
|
*/
|
|
643
642
|
domain: string;
|
|
644
643
|
|
|
645
644
|
/**
|
|
646
|
-
*
|
|
647
|
-
*
|
|
645
|
+
* The slug of the short link. If not provided, a random 7-character slug will be
|
|
646
|
+
* generated.
|
|
648
647
|
*/
|
|
649
648
|
key: string;
|
|
650
649
|
|
|
651
650
|
/**
|
|
652
|
-
*
|
|
651
|
+
* The complete URL of the short link, including the https protocol (for example,
|
|
653
652
|
* `https://codeqr.link/try`).
|
|
654
653
|
*/
|
|
655
654
|
shortLink?: string;
|
|
@@ -658,47 +657,46 @@ export namespace EventListResponse {
|
|
|
658
657
|
|
|
659
658
|
export interface Link {
|
|
660
659
|
/**
|
|
661
|
-
*
|
|
660
|
+
* The unique ID of the short link.
|
|
662
661
|
*/
|
|
663
662
|
id: string;
|
|
664
663
|
|
|
665
664
|
/**
|
|
666
|
-
*
|
|
667
|
-
* Android.
|
|
665
|
+
* The Android destination URL for the short link for Android device targeting.
|
|
668
666
|
*/
|
|
669
667
|
android: string | null;
|
|
670
668
|
|
|
671
669
|
/**
|
|
672
|
-
*
|
|
670
|
+
* The number of clicks on the short link.
|
|
673
671
|
*/
|
|
674
672
|
clicks: number;
|
|
675
673
|
|
|
676
674
|
/**
|
|
677
|
-
*
|
|
675
|
+
* The comments for the short link.
|
|
678
676
|
*/
|
|
679
677
|
comments: string | null;
|
|
680
678
|
|
|
681
679
|
createdAt: string;
|
|
682
680
|
|
|
683
681
|
/**
|
|
684
|
-
*
|
|
685
|
-
*
|
|
682
|
+
* The description of the short link generated via `api.codeqr.io/metatags`. Will
|
|
683
|
+
* be used for custom link preview if `proxy` is true.
|
|
686
684
|
*/
|
|
687
685
|
description: string | null;
|
|
688
686
|
|
|
689
687
|
/**
|
|
690
|
-
*
|
|
691
|
-
*
|
|
688
|
+
* The domain of the short link. If not provided, the main domain of the project
|
|
689
|
+
* will be used (or `codeqr.link` if the project has no domains).
|
|
692
690
|
*/
|
|
693
691
|
domain: string;
|
|
694
692
|
|
|
695
693
|
/**
|
|
696
|
-
*
|
|
694
|
+
* The URL to redirect to when the short link expires.
|
|
697
695
|
*/
|
|
698
696
|
expiredUrl: string | null;
|
|
699
697
|
|
|
700
698
|
/**
|
|
701
|
-
*
|
|
699
|
+
* This is the ID of the link in your database.
|
|
702
700
|
*/
|
|
703
701
|
externalId: string | null;
|
|
704
702
|
|
|
@@ -708,24 +706,24 @@ export namespace EventListResponse {
|
|
|
708
706
|
filled: boolean;
|
|
709
707
|
|
|
710
708
|
/**
|
|
711
|
-
*
|
|
709
|
+
* Whether the short link is flexible.
|
|
712
710
|
*/
|
|
713
711
|
flexible: boolean;
|
|
714
712
|
|
|
715
713
|
/**
|
|
716
|
-
*
|
|
717
|
-
* `{[
|
|
714
|
+
* Geographic targeting information for the short link in JSON format
|
|
715
|
+
* `{[COUNTRY]: https://example.com }`. Learn more: https://codeqr.link/geo
|
|
718
716
|
*/
|
|
719
717
|
geo: { [key: string]: string } | null;
|
|
720
718
|
|
|
721
719
|
/**
|
|
722
|
-
*
|
|
723
|
-
*
|
|
720
|
+
* The image of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
721
|
+
* for custom link preview if `proxy` is true.
|
|
724
722
|
*/
|
|
725
723
|
image: string | null;
|
|
726
724
|
|
|
727
725
|
/**
|
|
728
|
-
*
|
|
726
|
+
* The iOS destination URL for the short link for iOS device targeting.
|
|
729
727
|
*/
|
|
730
728
|
ios: string | null;
|
|
731
729
|
|
|
@@ -735,35 +733,35 @@ export namespace EventListResponse {
|
|
|
735
733
|
isFormMandatory: boolean;
|
|
736
734
|
|
|
737
735
|
/**
|
|
738
|
-
*
|
|
739
|
-
*
|
|
736
|
+
* The slug of the short link. If not provided, a random 7-character slug will be
|
|
737
|
+
* generated.
|
|
740
738
|
*/
|
|
741
739
|
key: string;
|
|
742
740
|
|
|
743
741
|
lastClicked: string;
|
|
744
742
|
|
|
745
743
|
/**
|
|
746
|
-
*
|
|
744
|
+
* The number of leads generated by the short link.
|
|
747
745
|
*/
|
|
748
746
|
leads: number;
|
|
749
747
|
|
|
750
748
|
/**
|
|
751
|
-
*
|
|
749
|
+
* The notification token of the short link.
|
|
752
750
|
*/
|
|
753
751
|
notificationToken: string | null;
|
|
754
752
|
|
|
755
753
|
/**
|
|
756
|
-
*
|
|
754
|
+
* The password required to access the short link destination URL.
|
|
757
755
|
*/
|
|
758
756
|
password: string | null;
|
|
759
757
|
|
|
760
758
|
/**
|
|
761
|
-
*
|
|
759
|
+
* Whether the short link has pre-redirection.
|
|
762
760
|
*/
|
|
763
761
|
preRedirection: boolean;
|
|
764
762
|
|
|
765
763
|
/**
|
|
766
|
-
*
|
|
764
|
+
* The ID of the project of the short link.
|
|
767
765
|
*/
|
|
768
766
|
projectId: string;
|
|
769
767
|
|
|
@@ -773,24 +771,24 @@ export namespace EventListResponse {
|
|
|
773
771
|
saleAmount: number;
|
|
774
772
|
|
|
775
773
|
/**
|
|
776
|
-
*
|
|
774
|
+
* The number of sales generated by the short link.
|
|
777
775
|
*/
|
|
778
776
|
sales: number;
|
|
779
777
|
|
|
780
778
|
/**
|
|
781
|
-
* @deprecated [
|
|
782
|
-
*
|
|
779
|
+
* @deprecated [DEPRECATED (use `tags` instead)]: The unique ID of the tag assigned
|
|
780
|
+
* to the short link.
|
|
783
781
|
*/
|
|
784
782
|
tagId: string | null;
|
|
785
783
|
|
|
786
784
|
/**
|
|
787
|
-
*
|
|
785
|
+
* The tags assigned to the short link.
|
|
788
786
|
*/
|
|
789
787
|
tags: Array<TagsAPI.Tag> | null;
|
|
790
788
|
|
|
791
789
|
/**
|
|
792
|
-
*
|
|
793
|
-
*
|
|
790
|
+
* The title of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
791
|
+
* for custom link preview if `proxy` is true.
|
|
794
792
|
*/
|
|
795
793
|
title: string | null;
|
|
796
794
|
|
|
@@ -799,32 +797,32 @@ export namespace EventListResponse {
|
|
|
799
797
|
userId: string | null;
|
|
800
798
|
|
|
801
799
|
/**
|
|
802
|
-
*
|
|
800
|
+
* The UTM campaign of the short link.
|
|
803
801
|
*/
|
|
804
802
|
utm_campaign: string | null;
|
|
805
803
|
|
|
806
804
|
/**
|
|
807
|
-
*
|
|
805
|
+
* The UTM content of the short link.
|
|
808
806
|
*/
|
|
809
807
|
utm_content: string | null;
|
|
810
808
|
|
|
811
809
|
/**
|
|
812
|
-
*
|
|
810
|
+
* The UTM medium of the short link.
|
|
813
811
|
*/
|
|
814
812
|
utm_medium: string | null;
|
|
815
813
|
|
|
816
814
|
/**
|
|
817
|
-
*
|
|
815
|
+
* The UTM source of the short link.
|
|
818
816
|
*/
|
|
819
817
|
utm_source: string | null;
|
|
820
818
|
|
|
821
819
|
/**
|
|
822
|
-
*
|
|
820
|
+
* The UTM term of the short link.
|
|
823
821
|
*/
|
|
824
822
|
utm_term: string | null;
|
|
825
823
|
|
|
826
824
|
/**
|
|
827
|
-
*
|
|
825
|
+
* The video of the short link.
|
|
828
826
|
*/
|
|
829
827
|
video: string | null;
|
|
830
828
|
|
|
@@ -849,7 +847,7 @@ export namespace EventListResponse {
|
|
|
849
847
|
publicStats?: boolean;
|
|
850
848
|
|
|
851
849
|
/**
|
|
852
|
-
*
|
|
850
|
+
* The complete QR code URL for the short link (for example,
|
|
853
851
|
* `https://api.codeqr.io/qr?url=https://codeqr.link/try`).
|
|
854
852
|
*/
|
|
855
853
|
qrCode?: string;
|
|
@@ -857,7 +855,7 @@ export namespace EventListResponse {
|
|
|
857
855
|
rewrite?: boolean;
|
|
858
856
|
|
|
859
857
|
/**
|
|
860
|
-
*
|
|
858
|
+
* The complete URL of the short link, including the https protocol (for example,
|
|
861
859
|
* `https://codeqr.link/try`).
|
|
862
860
|
*/
|
|
863
861
|
shortLink?: string;
|