@frogbotai/piece-qrcode 0.27.0 → 0.28.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/dist/define.d.ts +6 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +16 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, undefined, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
2
|
+
slug: TSlug;
|
|
3
|
+
} : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, undefined, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
4
|
+
slug: TSlug;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAEA,eAAO,MAAQ,YAAY;;;;CAAyB,CAAC"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type PieceRunArgs } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
declare const inputSchema: z.ZodObject<{
|
|
4
|
-
text: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
2
|
export declare const createQrCode: import("frogbot/pieces").PieceFactory<{
|
|
7
3
|
readonly slug: "qrcode";
|
|
8
4
|
readonly label: "QR Code";
|
|
@@ -10,28 +6,22 @@ export declare const createQrCode: import("frogbot/pieces").PieceFactory<{
|
|
|
10
6
|
readonly description: "Create QR code images from text";
|
|
11
7
|
readonly group: "Core";
|
|
12
8
|
};
|
|
13
|
-
readonly actions: readonly [{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
name: string;
|
|
30
|
-
mimeType: string;
|
|
31
|
-
size: number;
|
|
32
|
-
url: string | undefined;
|
|
33
|
-
}>;
|
|
9
|
+
readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
13
|
+
name: z.ZodLiteral<"qr-code.png">;
|
|
14
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
15
|
+
size: z.ZodNumber;
|
|
16
|
+
url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>, Record<string, never>, undefined, {
|
|
18
|
+
id: string | number;
|
|
19
|
+
name: "qr-code.png";
|
|
20
|
+
mimeType: "image/png";
|
|
21
|
+
size: number;
|
|
22
|
+
url?: string | undefined;
|
|
23
|
+
}> & {
|
|
24
|
+
slug: "createQrCode";
|
|
34
25
|
}];
|
|
35
26
|
}>;
|
|
36
|
-
export {};
|
|
37
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuDxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { definePiece } from 'frogbot/pieces';
|
|
2
2
|
import { toBuffer } from 'qrcode';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { defineAction } from './define.js';
|
|
4
5
|
const inputSchema = z.object({
|
|
5
6
|
text: z.string().min(1).meta({ label: 'Content' }),
|
|
6
7
|
});
|
|
@@ -11,7 +12,7 @@ const outputSchema = z.object({
|
|
|
11
12
|
size: z.number().int().positive(),
|
|
12
13
|
url: z.string().min(1).optional(),
|
|
13
14
|
});
|
|
14
|
-
const createQrCodeAction = {
|
|
15
|
+
const createQrCodeAction = defineAction({
|
|
15
16
|
slug: 'createQrCode',
|
|
16
17
|
description: 'Create a QR code image from text.',
|
|
17
18
|
input: inputSchema,
|
|
@@ -42,7 +43,7 @@ const createQrCodeAction = {
|
|
|
42
43
|
url: typeof file.url === 'string' ? file.url : undefined,
|
|
43
44
|
};
|
|
44
45
|
},
|
|
45
|
-
};
|
|
46
|
+
});
|
|
46
47
|
export const createQrCode = definePiece({
|
|
47
48
|
slug: 'qrcode',
|
|
48
49
|
label: 'QR Code',
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names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|
"name": "@frogbotai/piece-qrcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "qrcode tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"zod": "^4.3.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"frogbot": "0.
|
|
26
|
+
"frogbot": "0.28.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/qrcode": "1.5.5",
|
|
30
30
|
"typescript": "5.6.2",
|
|
31
|
-
"frogbot": "0.
|
|
31
|
+
"frogbot": "0.28.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|