@codeqr/ts 0.9.0 → 0.24.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 +509 -0
- package/LICENSE +1 -1
- package/README.md +12 -1
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +8 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -7
- package/client.d.ts.map +1 -1
- package/client.js +43 -10
- package/client.js.map +1 -1
- package/client.mjs +43 -10
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts +1 -0
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/internal/utils.mjs.map +1 -1
- package/package.json +12 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/analytics.d.mts +23 -3
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +23 -3
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/domains.d.mts +27 -27
- package/resources/domains.d.mts.map +1 -1
- package/resources/domains.d.ts +27 -27
- package/resources/domains.d.ts.map +1 -1
- package/resources/domains.js +8 -8
- package/resources/domains.js.map +1 -1
- package/resources/domains.mjs +8 -8
- package/resources/domains.mjs.map +1 -1
- package/resources/events.d.mts +53 -137
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +53 -137
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/links/bulk.d.mts +16 -26
- package/resources/links/bulk.d.mts.map +1 -1
- package/resources/links/bulk.d.ts +16 -26
- package/resources/links/bulk.d.ts.map +1 -1
- package/resources/links/bulk.js +0 -14
- package/resources/links/bulk.js.map +1 -1
- package/resources/links/bulk.mjs +0 -14
- package/resources/links/bulk.mjs.map +1 -1
- package/resources/links/index.d.mts +2 -2
- package/resources/links/index.d.mts.map +1 -1
- package/resources/links/index.d.ts +2 -2
- package/resources/links/index.d.ts.map +1 -1
- package/resources/links/index.js.map +1 -1
- package/resources/links/index.mjs +1 -1
- package/resources/links/index.mjs.map +1 -1
- package/resources/links/links.d.mts +232 -988
- package/resources/links/links.d.mts.map +1 -1
- package/resources/links/links.d.ts +232 -988
- package/resources/links/links.d.ts.map +1 -1
- package/resources/links/links.js +16 -42
- package/resources/links/links.js.map +1 -1
- package/resources/links/links.mjs +16 -42
- package/resources/links/links.mjs.map +1 -1
- package/resources/links.d.mts.map +1 -1
- package/resources/links.d.ts.map +1 -1
- package/resources/links.mjs.map +1 -1
- package/resources/projects.d.mts +0 -4
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +0 -4
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.js +0 -7
- package/resources/projects.js.map +1 -1
- package/resources/projects.mjs +0 -7
- package/resources/projects.mjs.map +1 -1
- package/resources/qrcodes/bulk.d.mts +111 -38
- package/resources/qrcodes/bulk.d.mts.map +1 -1
- package/resources/qrcodes/bulk.d.ts +111 -38
- package/resources/qrcodes/bulk.d.ts.map +1 -1
- package/resources/qrcodes/bulk.js +0 -14
- package/resources/qrcodes/bulk.js.map +1 -1
- package/resources/qrcodes/bulk.mjs +0 -14
- package/resources/qrcodes/bulk.mjs.map +1 -1
- package/resources/qrcodes/index.d.mts +2 -2
- package/resources/qrcodes/index.d.mts.map +1 -1
- package/resources/qrcodes/index.d.ts +2 -2
- package/resources/qrcodes/index.d.ts.map +1 -1
- package/resources/qrcodes/index.js.map +1 -1
- package/resources/qrcodes/index.mjs +1 -1
- package/resources/qrcodes/index.mjs.map +1 -1
- package/resources/qrcodes/qrcodes.d.mts +442 -855
- package/resources/qrcodes/qrcodes.d.mts.map +1 -1
- package/resources/qrcodes/qrcodes.d.ts +442 -855
- package/resources/qrcodes/qrcodes.d.ts.map +1 -1
- package/resources/qrcodes/qrcodes.js +12 -42
- package/resources/qrcodes/qrcodes.js.map +1 -1
- package/resources/qrcodes/qrcodes.mjs +12 -42
- package/resources/qrcodes/qrcodes.mjs.map +1 -1
- package/resources/qrcodes.d.mts.map +1 -1
- package/resources/qrcodes.d.ts.map +1 -1
- package/resources/qrcodes.mjs.map +1 -1
- package/resources/tags.d.mts +19 -15
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts +19 -15
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +7 -7
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +7 -7
- package/resources/tags.mjs.map +1 -1
- package/resources/track.d.mts +10 -9
- package/resources/track.d.mts.map +1 -1
- package/resources/track.d.ts +10 -9
- package/resources/track.d.ts.map +1 -1
- package/resources/track.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +53 -29
- package/src/internal/parse.ts +6 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/analytics.ts +33 -3
- package/src/resources/domains.ts +38 -38
- package/src/resources/events.ts +90 -143
- package/src/resources/index.ts +4 -10
- package/src/resources/links/bulk.ts +30 -37
- package/src/resources/links/index.ts +2 -11
- package/src/resources/links/links.ts +227 -1538
- package/src/resources/projects.ts +0 -8
- package/src/resources/qrcodes/bulk.ts +151 -50
- package/src/resources/qrcodes/index.ts +2 -11
- package/src/resources/qrcodes/qrcodes.ts +405 -1083
- package/src/resources/tags.ts +23 -18
- package/src/resources/track.ts +10 -9
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -3,16 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
7
6
|
|
|
8
7
|
export class Projects extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a project for the authenticated user.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(projectSlug: string, options?: RequestOptions): APIPromise<Project> {
|
|
13
|
-
return this._client.get(path`/projects/${projectSlug}`, options);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
8
|
/**
|
|
17
9
|
* Retrieve a list of projects for the authenticated user.
|
|
18
10
|
*/
|
|
@@ -21,21 +21,6 @@ export class Bulk extends APIResource {
|
|
|
21
21
|
const { body } = params ?? {};
|
|
22
22
|
return this._client.post('/qrcodes/bulk', { body: body, ...options });
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Bulk delete up to 100 QR Codes for the authenticated workspace.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const bulk = await client.qrcodes.bulk.delete({
|
|
31
|
-
* qrcodeIds: ['clux0rgak00011...', 'clux0rgak00022...'],
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
delete(params: BulkDeleteParams, options?: RequestOptions): APIPromise<BulkDeleteResponse> {
|
|
36
|
-
const { qrcodeIds } = params;
|
|
37
|
-
return this._client.delete('/qrcodes/bulk', { query: { qrcodeIds }, ...options });
|
|
38
|
-
}
|
|
39
24
|
}
|
|
40
25
|
|
|
41
26
|
export type BulkCreateResponse = Array<QrcodesAPI.QrCode | BulkCreateResponse.QrCodeErrorSchema>;
|
|
@@ -56,7 +41,8 @@ export namespace BulkCreateResponse {
|
|
|
56
41
|
| 'invite_pending'
|
|
57
42
|
| 'exceeded_limit'
|
|
58
43
|
| 'conflict'
|
|
59
|
-
| 'unprocessable_entity'
|
|
44
|
+
| 'unprocessable_entity'
|
|
45
|
+
| 'service_unavailable';
|
|
60
46
|
|
|
61
47
|
/**
|
|
62
48
|
* The error message.
|
|
@@ -70,28 +56,29 @@ export namespace BulkCreateResponse {
|
|
|
70
56
|
}
|
|
71
57
|
}
|
|
72
58
|
|
|
73
|
-
export interface BulkDeleteResponse {
|
|
74
|
-
/**
|
|
75
|
-
* The number of QR Codes deleted.
|
|
76
|
-
*/
|
|
77
|
-
deletedCount: number;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
59
|
export interface BulkCreateParams {
|
|
81
60
|
body?: Array<BulkCreateParams.Body>;
|
|
82
61
|
}
|
|
83
62
|
|
|
84
63
|
export namespace BulkCreateParams {
|
|
85
64
|
export interface Body {
|
|
86
|
-
/**
|
|
87
|
-
* The unique ID of the folder assigned to the QR code.
|
|
88
|
-
*/
|
|
89
|
-
folderId: string | null;
|
|
90
|
-
|
|
91
65
|
/**
|
|
92
66
|
* The type of content of the QR code.
|
|
93
67
|
*/
|
|
94
|
-
type:
|
|
68
|
+
type:
|
|
69
|
+
| 'url'
|
|
70
|
+
| 'text'
|
|
71
|
+
| 'email'
|
|
72
|
+
| 'wifi'
|
|
73
|
+
| 'phone'
|
|
74
|
+
| 'vcard'
|
|
75
|
+
| 'crypto'
|
|
76
|
+
| 'sms'
|
|
77
|
+
| 'facetime'
|
|
78
|
+
| 'geo'
|
|
79
|
+
| 'latlog'
|
|
80
|
+
| 'pix'
|
|
81
|
+
| 'whatsapp';
|
|
95
82
|
|
|
96
83
|
/**
|
|
97
84
|
* The destination URL for Android for the QR code for device targeting Android.
|
|
@@ -104,7 +91,8 @@ export namespace BulkCreateParams {
|
|
|
104
91
|
archived?: boolean;
|
|
105
92
|
|
|
106
93
|
/**
|
|
107
|
-
* The background color of the QR code.
|
|
94
|
+
* The background color of the QR code (hex or CSS keyword). Invalid values are
|
|
95
|
+
* coerced to default.
|
|
108
96
|
*/
|
|
109
97
|
bgColor?: string;
|
|
110
98
|
|
|
@@ -175,7 +163,8 @@ export namespace BulkCreateParams {
|
|
|
175
163
|
facetime?: { [key: string]: string } | null;
|
|
176
164
|
|
|
177
165
|
/**
|
|
178
|
-
* The foreground color of the QR code.
|
|
166
|
+
* The foreground color of the QR code (hex or CSS keyword). Invalid values are
|
|
167
|
+
* coerced to default.
|
|
179
168
|
*/
|
|
180
169
|
fgColor?: string;
|
|
181
170
|
|
|
@@ -190,20 +179,46 @@ export namespace BulkCreateParams {
|
|
|
190
179
|
flexible?: boolean;
|
|
191
180
|
|
|
192
181
|
/**
|
|
193
|
-
* The
|
|
182
|
+
* The unique ID of the folder assigned to the QR code. Omit or set to null for no
|
|
183
|
+
* folder.
|
|
184
|
+
*/
|
|
185
|
+
folderId?: string | null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The type of frame of the QR code (e.g. none, frame-1, frame-2, frame-3, frame-5,
|
|
189
|
+
* frame-6). frame-5/6 are top-bar variants. Unknown ids fall back to no frame at
|
|
190
|
+
* render.
|
|
194
191
|
*/
|
|
195
192
|
frame?: string;
|
|
196
193
|
|
|
197
194
|
/**
|
|
198
|
-
* The color of the frame
|
|
195
|
+
* The color of the frame (hex or CSS keyword). Invalid values are coerced to
|
|
196
|
+
* default.
|
|
199
197
|
*/
|
|
200
198
|
frameColor?: string;
|
|
201
199
|
|
|
202
200
|
/**
|
|
203
|
-
*
|
|
201
|
+
* Label text rendered inside the frame (e.g. "SCAN ME", a product SKU). Maximum
|
|
202
|
+
* 200 characters. Word-wraps to multiple lines at larger sizes; the frame bar
|
|
203
|
+
* grows vertically to fit.
|
|
204
204
|
*/
|
|
205
205
|
frameText?: string;
|
|
206
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Color of the frame label text (hex `#RRGGBB`, `#RGB`, `#RRGGBBAA`, or a CSS
|
|
209
|
+
* keyword from the allowlist). When omitted, a contrasting color is derived
|
|
210
|
+
* automatically from `frameColor`.
|
|
211
|
+
*/
|
|
212
|
+
frameTextColor?: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Typographic styles applied to the frame label text. Every key is enum-gated —
|
|
216
|
+
* unknown keys or out-of-enum values are rejected to prevent SVG attribute
|
|
217
|
+
* injection. All fields are optional; omitted keys fall back to the default
|
|
218
|
+
* (normal weight, normal style, sans family, medium size).
|
|
219
|
+
*/
|
|
220
|
+
frameTextStyles?: Body.FrameTextStyles | null;
|
|
221
|
+
|
|
207
222
|
/**
|
|
208
223
|
* Geographic segmentation information for the QR code in the JSON format
|
|
209
224
|
* `{[COUNTRY]: https://example.com }`.
|
|
@@ -211,7 +226,8 @@ export namespace BulkCreateParams {
|
|
|
211
226
|
geo?: Body.Geo | null;
|
|
212
227
|
|
|
213
228
|
/**
|
|
214
|
-
*
|
|
229
|
+
* Logo height in pixels. When omitted, a proportional size is used based on the QR
|
|
230
|
+
* code size (about 10–20% depending on size).
|
|
215
231
|
*/
|
|
216
232
|
height?: number;
|
|
217
233
|
|
|
@@ -277,6 +293,12 @@ export namespace BulkCreateParams {
|
|
|
277
293
|
*/
|
|
278
294
|
phone?: string | null;
|
|
279
295
|
|
|
296
|
+
/**
|
|
297
|
+
* The prefix for the randomly generated key. If provided, the key will be prefixed
|
|
298
|
+
* with this value.
|
|
299
|
+
*/
|
|
300
|
+
prefix?: string;
|
|
301
|
+
|
|
280
302
|
/**
|
|
281
303
|
* If the QR code has pre-redirection.
|
|
282
304
|
*/
|
|
@@ -297,6 +319,11 @@ export namespace BulkCreateParams {
|
|
|
297
319
|
*/
|
|
298
320
|
rewrite?: boolean;
|
|
299
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Smart rules for conditional destination routing by request attribute.
|
|
324
|
+
*/
|
|
325
|
+
rules?: Array<Body.Rule> | null;
|
|
326
|
+
|
|
300
327
|
/**
|
|
301
328
|
* The shape of the design around the QR code (none, square, circle).
|
|
302
329
|
*/
|
|
@@ -343,6 +370,13 @@ export namespace BulkCreateParams {
|
|
|
343
370
|
*/
|
|
344
371
|
tagNames?: string | Array<string>;
|
|
345
372
|
|
|
373
|
+
/**
|
|
374
|
+
* ID of a QR code (in the same project) marked as a template. Its customization
|
|
375
|
+
* fields (colors, logo, pattern, shape, frame) will be applied to the new QR code
|
|
376
|
+
* unless explicitly overridden.
|
|
377
|
+
*/
|
|
378
|
+
templateId?: string | null;
|
|
379
|
+
|
|
346
380
|
/**
|
|
347
381
|
* The text of the QR code.
|
|
348
382
|
*/
|
|
@@ -364,6 +398,18 @@ export namespace BulkCreateParams {
|
|
|
364
398
|
*/
|
|
365
399
|
url?: string | null;
|
|
366
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Whether this QR code should be used as a reusable template.
|
|
403
|
+
*/
|
|
404
|
+
useAsTemplate?: boolean;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* For dynamic QR codes with phone, email, or sms types: if true (default), shows
|
|
408
|
+
* an action page with buttons. If false, redirects directly to tel:/mailto:/sms:
|
|
409
|
+
* URI.
|
|
410
|
+
*/
|
|
411
|
+
useDisplayPage?: boolean;
|
|
412
|
+
|
|
367
413
|
/**
|
|
368
414
|
* The vCard information of the QR code.
|
|
369
415
|
*/
|
|
@@ -376,7 +422,14 @@ export namespace BulkCreateParams {
|
|
|
376
422
|
webhookIds?: Array<string> | null;
|
|
377
423
|
|
|
378
424
|
/**
|
|
379
|
-
* The
|
|
425
|
+
* The WhatsApp click-to-chat info: E.164 number (digits only) and optional
|
|
426
|
+
* prefilled message.
|
|
427
|
+
*/
|
|
428
|
+
whatsapp?: Body.Whatsapp | null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Logo width in pixels. When omitted, a proportional size is used based on the QR
|
|
432
|
+
* code size (about 10–20% depending on size).
|
|
380
433
|
*/
|
|
381
434
|
width?: number;
|
|
382
435
|
|
|
@@ -387,6 +440,40 @@ export namespace BulkCreateParams {
|
|
|
387
440
|
}
|
|
388
441
|
|
|
389
442
|
export namespace Body {
|
|
443
|
+
/**
|
|
444
|
+
* Typographic styles applied to the frame label text. Every key is enum-gated —
|
|
445
|
+
* unknown keys or out-of-enum values are rejected to prevent SVG attribute
|
|
446
|
+
* injection. All fields are optional; omitted keys fall back to the default
|
|
447
|
+
* (normal weight, normal style, sans family, medium size).
|
|
448
|
+
*/
|
|
449
|
+
export interface FrameTextStyles {
|
|
450
|
+
/**
|
|
451
|
+
* Font family used for the frame label text. `sans` = Arial / Helvetica (default).
|
|
452
|
+
* `sans-condensed` = Arial Narrow. `serif` = Georgia / Times New Roman.
|
|
453
|
+
* `serif-elegant` = Palatino Linotype / Book Antiqua. `mono` = Courier New. Values
|
|
454
|
+
* resolve to safe system font stacks on the rendered SVG.
|
|
455
|
+
*/
|
|
456
|
+
family?: 'sans' | 'sans-condensed' | 'serif' | 'serif-elegant' | 'mono';
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Font size preset for the frame label. `s` = 60 viewBox units, `m` = 89.1
|
|
460
|
+
* (default), `l` = 120, `xl` = 150. Larger sizes grow the frame bar vertically to
|
|
461
|
+
* fit. Extremely long text auto-shrinks to keep within 4 lines (floor 48).
|
|
462
|
+
*/
|
|
463
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Font style of the frame label text. `italic` applies `font-style="italic"`.
|
|
467
|
+
*/
|
|
468
|
+
style?: 'normal' | 'italic';
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Font weight of the frame label text. `bold` renders at SVG `font-weight="700"`,
|
|
472
|
+
* `normal` at `400`.
|
|
473
|
+
*/
|
|
474
|
+
weight?: 'normal' | 'bold';
|
|
475
|
+
}
|
|
476
|
+
|
|
390
477
|
/**
|
|
391
478
|
* Geographic segmentation information for the QR code in the JSON format
|
|
392
479
|
* `{[COUNTRY]: https://example.com }`.
|
|
@@ -892,22 +979,36 @@ export namespace BulkCreateParams {
|
|
|
892
979
|
|
|
893
980
|
ZW?: string;
|
|
894
981
|
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
982
|
|
|
898
|
-
export interface
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
983
|
+
export interface Rule {
|
|
984
|
+
attribute:
|
|
985
|
+
| 'device'
|
|
986
|
+
| 'country'
|
|
987
|
+
| 'utm_source'
|
|
988
|
+
| 'utm_medium'
|
|
989
|
+
| 'utm_campaign'
|
|
990
|
+
| 'referrer'
|
|
991
|
+
| 'language';
|
|
992
|
+
|
|
993
|
+
operator: 'equals' | 'not_equals';
|
|
994
|
+
|
|
995
|
+
url: string;
|
|
996
|
+
|
|
997
|
+
value: string;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* The WhatsApp click-to-chat info: E.164 number (digits only) and optional
|
|
1002
|
+
* prefilled message.
|
|
1003
|
+
*/
|
|
1004
|
+
export interface Whatsapp {
|
|
1005
|
+
number: string;
|
|
1006
|
+
|
|
1007
|
+
message?: string;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
904
1010
|
}
|
|
905
1011
|
|
|
906
1012
|
export declare namespace Bulk {
|
|
907
|
-
export {
|
|
908
|
-
type BulkCreateResponse as BulkCreateResponse,
|
|
909
|
-
type BulkDeleteResponse as BulkDeleteResponse,
|
|
910
|
-
type BulkCreateParams as BulkCreateParams,
|
|
911
|
-
type BulkDeleteParams as BulkDeleteParams,
|
|
912
|
-
};
|
|
1013
|
+
export { type BulkCreateResponse as BulkCreateResponse, type BulkCreateParams as BulkCreateParams };
|
|
913
1014
|
}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Bulk,
|
|
5
|
-
type BulkCreateResponse,
|
|
6
|
-
type BulkDeleteResponse,
|
|
7
|
-
type BulkCreateParams,
|
|
8
|
-
type BulkDeleteParams,
|
|
9
|
-
} from './bulk';
|
|
3
|
+
export { Bulk, type BulkCreateResponse, type BulkCreateParams } from './bulk';
|
|
10
4
|
export {
|
|
11
5
|
Qrcodes,
|
|
12
6
|
type QrCode,
|
|
13
7
|
type QrcodeListResponse,
|
|
14
8
|
type QrcodeDeleteResponse,
|
|
15
|
-
type QrcodeCountResponse,
|
|
16
9
|
type QrcodeCreateParams,
|
|
10
|
+
type QrcodeListParams,
|
|
17
11
|
type QrcodeRetrieveParams,
|
|
18
12
|
type QrcodeUpdateParams,
|
|
19
|
-
type QrcodeListParams,
|
|
20
|
-
type QrcodeCountParams,
|
|
21
|
-
type QrcodeUpsertParams,
|
|
22
13
|
} from './qrcodes';
|