You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/codeqr/actions/create-qrcode/create-qrcode.mjs
+42-58Lines changed: 42 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,20 @@ import codeqr from "../../codeqr.app.mjs";
3
3
exportdefault{
4
4
key: "codeqr-create-qrcode",
5
5
name: "Create a QR Code",
6
-
description: "Creates a new QR Code in CodeQR using the QR Codes API. [See the documentation](https://codeqr.mintlify.app/api-reference/endpoint/create-a-qrcode)",
7
-
version: "0.0.1",
6
+
description:
7
+
"Creates a new QR Code in CodeQR using the QR Codes API. [See the documentation](https://codeqr.mintlify.app/api-reference/endpoint/create-a-qrcode)",
8
+
version: "0.0.2",
8
9
type: "action",
9
10
props: {
10
11
codeqr,
11
12
type: {
12
13
type: "string",
13
14
label: "QR Code Type",
14
15
description: "Select the type of QR Code to generate.",
16
+
options: [
17
+
"url",
18
+
"text",
19
+
],
15
20
optional: false,
16
21
},
17
22
static: {
@@ -22,40 +27,23 @@ export default {
22
27
optional: false,
23
28
default: true,
24
29
},
25
-
text: {
26
-
type: "string",
27
-
label: "Text",
28
-
description: "Text content stored in the QR Code.",
29
-
optional: true,
30
-
},
31
30
url: {
32
31
type: "string",
33
32
label: "URL",
34
33
description: "The destination URL of the QR Code.",
35
34
optional: true,
36
35
},
37
-
email: {
38
-
type: "object",
39
-
label: "Email",
40
-
description: "Email data for email-based QR Codes (JSON format).",
41
-
optional: true,
42
-
},
43
-
phone: {
44
-
type: "string",
45
-
label: "Phone",
46
-
description: "Phone number stored in the QR Code.",
47
-
optional: true,
48
-
},
49
-
expiresAt: {
36
+
text: {
50
37
type: "string",
51
-
label: "Expiration Date",
52
-
description: "Expiration date of the QR Code (ISO 8601).",
38
+
label: "Text",
39
+
description: "Text content stored in the QR Code.",
53
40
optional: true,
54
41
},
55
42
trackConversion: {
56
43
type: "boolean",
57
44
label: "Track Conversion",
58
-
description: "Enable tracking of conversions for the QR Code.",
45
+
description:
46
+
"Enable tracking of conversions for the QR Code. Only available for dynamic QR Codes.",
59
47
optional: true,
60
48
},
61
49
title: {
@@ -64,18 +52,6 @@ export default {
64
52
description: "Title associated with the QR Code.",
65
53
optional: true,
66
54
},
67
-
description: {
68
-
type: "string",
69
-
label: "Description",
70
-
description: "Description associated with the QR Code.",
71
-
optional: true,
72
-
},
73
-
image: {
74
-
type: "string",
75
-
label: "Image URL",
76
-
description: "URL of an image associated with the QR Code.",
77
-
optional: true,
78
-
},
79
55
bgColor: {
80
56
type: "string",
81
57
label: "Background Color",
@@ -88,22 +64,37 @@ export default {
88
64
description: "Foreground color of the QR Code.",
89
65
optional: true,
90
66
},
91
-
size: {
92
-
type: "integer",
93
-
label: "Size",
94
-
description: "Size of the QR Code in pixels.",
95
-
optional: true,
96
-
},
97
67
showLogo: {
98
68
type: "boolean",
99
69
label: "Show Logo",
100
70
description: "Whether to display a logo in the QR Code.",
101
71
optional: true,
102
72
},
103
-
publicStats: {
104
-
type: "boolean",
105
-
label: "Public Stats",
106
-
description: "Whether the QR Code statistics are publicly accessible.",
73
+
src: {
74
+
type: "string",
75
+
label: "Logo URL",
76
+
description:
77
+
"URL of the logo to display in the QR Code (only if Show Logo is true).",
78
+
optional: true,
79
+
},
80
+
comments: {
81
+
type: "string",
82
+
label: "Comments",
83
+
description: "Comments or notes about the QR Code.",
84
+
optional: true,
85
+
},
86
+
expiresAt: {
87
+
type: "string",
88
+
label: "Expiration Date",
89
+
description:
90
+
"The date and time when the short link will expire (ISO 8601). Only available for dynamic QR Codes.",
91
+
optional: true,
92
+
},
93
+
expiredUrl: {
94
+
type: "string",
95
+
label: "Expired Redirect URL",
96
+
description:
97
+
"The URL to redirect to when the short link has expired. Only available for dynamic QR Codes.",
0 commit comments