@codeqr/ts 0.1.2 → 0.2.1
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 +16 -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
|
@@ -84,81 +84,80 @@ export interface BulkCreateParams {
|
|
|
84
84
|
export namespace BulkCreateParams {
|
|
85
85
|
export interface Body {
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* The destination URL of the short link.
|
|
88
88
|
*/
|
|
89
89
|
url: string;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
93
|
-
* Android.
|
|
92
|
+
* The Android destination URL for the short link for Android device targeting.
|
|
94
93
|
*/
|
|
95
94
|
android?: string | null;
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
*
|
|
97
|
+
* Whether the short link is archived.
|
|
99
98
|
*/
|
|
100
99
|
archived?: boolean;
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
*
|
|
102
|
+
* The comments for the short link.
|
|
104
103
|
*/
|
|
105
104
|
comments?: string | null;
|
|
106
105
|
|
|
107
106
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* The description of the short link generated via `api.codeqr.io/metatags`. Will
|
|
108
|
+
* be used for custom link preview if `proxy` is true.
|
|
110
109
|
*/
|
|
111
110
|
description?: string | null;
|
|
112
111
|
|
|
113
112
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
113
|
+
* Allow search engines to index your short link. Default is `false` if not
|
|
114
|
+
* provided. Learn more: https://codeqr.link/noindex
|
|
116
115
|
*/
|
|
117
116
|
doIndex?: boolean;
|
|
118
117
|
|
|
119
118
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
119
|
+
* The domain of the short link. If not provided, the main domain of the project
|
|
120
|
+
* will be used (or `codeqr.link` if the project has no domains).
|
|
122
121
|
*/
|
|
123
122
|
domain?: string;
|
|
124
123
|
|
|
125
124
|
/**
|
|
126
|
-
*
|
|
125
|
+
* The URL to redirect to when the short link expires.
|
|
127
126
|
*/
|
|
128
127
|
expiredUrl?: string | null;
|
|
129
128
|
|
|
130
129
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
130
|
+
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
131
|
+
* the future.
|
|
133
132
|
*/
|
|
134
133
|
expiresAt?: string | null;
|
|
135
134
|
|
|
136
135
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
136
|
+
* This is the ID of the link in your database. If set, it can be used to identify
|
|
137
|
+
* the link in the future. Must be prefixed with `ext_` when passed as a query
|
|
138
|
+
* parameter.
|
|
140
139
|
*/
|
|
141
140
|
externalId?: string | null;
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
|
-
*
|
|
143
|
+
* Whether the short link is flexible.
|
|
145
144
|
*/
|
|
146
145
|
flexible?: boolean;
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
*
|
|
150
|
-
* `{[
|
|
148
|
+
* Geographic targeting information for the short link in JSON format
|
|
149
|
+
* `{[COUNTRY]: https://example.com }`.
|
|
151
150
|
*/
|
|
152
151
|
geo?: Body.Geo | null;
|
|
153
152
|
|
|
154
153
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
154
|
+
* The image of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
155
|
+
* for custom link preview if `proxy` is true.
|
|
157
156
|
*/
|
|
158
157
|
image?: string | null;
|
|
159
158
|
|
|
160
159
|
/**
|
|
161
|
-
*
|
|
160
|
+
* The iOS destination URL for the short link for iOS device targeting.
|
|
162
161
|
*/
|
|
163
162
|
ios?: string | null;
|
|
164
163
|
|
|
@@ -168,8 +167,8 @@ export namespace BulkCreateParams {
|
|
|
168
167
|
isFormMandatory?: boolean;
|
|
169
168
|
|
|
170
169
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
170
|
+
* The slug of the short link. If not provided, a random 7-character slug will be
|
|
171
|
+
* generated.
|
|
173
172
|
*/
|
|
174
173
|
key?: string;
|
|
175
174
|
|
|
@@ -184,67 +183,66 @@ export namespace BulkCreateParams {
|
|
|
184
183
|
pageUrl?: string | null;
|
|
185
184
|
|
|
186
185
|
/**
|
|
187
|
-
*
|
|
186
|
+
* The password required to access the short link destination URL.
|
|
188
187
|
*/
|
|
189
188
|
password?: string | null;
|
|
190
189
|
|
|
191
190
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
191
|
+
* The prefix of the short link slug for randomly generated keys (for example, if
|
|
192
|
+
* the prefix is `/c/`, the generated keys will be in the format `/c/:key`). Will
|
|
193
|
+
* be ignored if `key` is provided.
|
|
195
194
|
*/
|
|
196
195
|
prefix?: string;
|
|
197
196
|
|
|
198
197
|
/**
|
|
199
|
-
*
|
|
198
|
+
* Whether the short link has pre-redirection.
|
|
200
199
|
*/
|
|
201
200
|
preRedirection?: boolean;
|
|
202
201
|
|
|
203
202
|
/**
|
|
204
|
-
*
|
|
203
|
+
* Whether the short link uses the custom link preview feature.
|
|
205
204
|
*/
|
|
206
205
|
proxy?: boolean;
|
|
207
206
|
|
|
208
207
|
/**
|
|
209
|
-
*
|
|
208
|
+
* Whether the short link statistics are publicly accessible.
|
|
210
209
|
*/
|
|
211
210
|
publicStats?: boolean;
|
|
212
211
|
|
|
213
212
|
/**
|
|
214
|
-
*
|
|
213
|
+
* Whether the short link uses link cloaking.
|
|
215
214
|
*/
|
|
216
215
|
rewrite?: boolean;
|
|
217
216
|
|
|
218
217
|
/**
|
|
219
|
-
* @deprecated
|
|
220
|
-
* – use `tagIds`
|
|
218
|
+
* @deprecated The unique ID of the tag assigned to the short link. This field is
|
|
219
|
+
* deprecated – use `tagIds` instead.
|
|
221
220
|
*/
|
|
222
221
|
tagId?: string | null;
|
|
223
222
|
|
|
224
223
|
/**
|
|
225
|
-
*
|
|
224
|
+
* The unique IDs of the tags assigned to the short link.
|
|
226
225
|
*/
|
|
227
226
|
tagIds?: string | Array<string>;
|
|
228
227
|
|
|
229
228
|
/**
|
|
230
|
-
*
|
|
231
|
-
* minúsculas).
|
|
229
|
+
* The unique name of the tags assigned to the short link (case insensitive).
|
|
232
230
|
*/
|
|
233
231
|
tagNames?: string | Array<string>;
|
|
234
232
|
|
|
235
233
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
234
|
+
* The title of the short link generated via `api.codeqr.io/metatags`. Will be used
|
|
235
|
+
* for custom link preview if `proxy` is true.
|
|
238
236
|
*/
|
|
239
237
|
title?: string | null;
|
|
240
238
|
|
|
241
239
|
/**
|
|
242
|
-
*
|
|
240
|
+
* Whether to track conversions for the short link.
|
|
243
241
|
*/
|
|
244
242
|
trackConversion?: boolean;
|
|
245
243
|
|
|
246
244
|
/**
|
|
247
|
-
*
|
|
245
|
+
* The video of the short link.
|
|
248
246
|
*/
|
|
249
247
|
video?: string | null;
|
|
250
248
|
|
|
@@ -257,8 +255,8 @@ export namespace BulkCreateParams {
|
|
|
257
255
|
|
|
258
256
|
export namespace Body {
|
|
259
257
|
/**
|
|
260
|
-
*
|
|
261
|
-
* `{[
|
|
258
|
+
* Geographic targeting information for the short link in JSON format
|
|
259
|
+
* `{[COUNTRY]: https://example.com }`.
|
|
262
260
|
*/
|
|
263
261
|
export interface Geo {
|
|
264
262
|
AD?: string;
|