@keystrokehq/rafflys 0.1.2 → 0.1.3
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/actions/get-current-user.cjs +2 -2
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +2 -2
- package/dist/actions/get-current-user.d.mts +2 -2
- package/dist/actions/get-current-user.mjs +2 -2
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/list-promotions.cjs +1 -1
- package/dist/actions/list-promotions.cjs.map +1 -1
- package/dist/actions/list-promotions.d.cts +1 -1
- package/dist/actions/list-promotions.d.mts +1 -1
- package/dist/actions/list-promotions.mjs +1 -1
- package/dist/actions/list-promotions.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,11 +9,11 @@ const RafflysGetCurrentUser_UserDataSchema = zod.z.object({
|
|
|
9
9
|
email: zod.z.string().describe("Email address of the user").nullable(),
|
|
10
10
|
last_name: zod.z.string().describe("Last name of the user").nullable().optional(),
|
|
11
11
|
first_name: zod.z.string().describe("First name of the user").nullable().optional()
|
|
12
|
-
}).describe("User details returned by the API.");
|
|
12
|
+
}).passthrough().describe("User details returned by the API.");
|
|
13
13
|
const RafflysGetCurrentUserOutput = zod.z.object({
|
|
14
14
|
data: RafflysGetCurrentUser_UserDataSchema.nullable(),
|
|
15
15
|
success: zod.z.boolean().describe("Whether the request was successful").nullable()
|
|
16
|
-
}).describe("Response model for the authenticated user details.");
|
|
16
|
+
}).passthrough().describe("Response model for the authenticated user details.");
|
|
17
17
|
const rafflysGetCurrentUser = require_action.action("RAFFLYS_GET_CURRENT_USER", {
|
|
18
18
|
slug: "rafflys-get-current-user",
|
|
19
19
|
name: "Get Current User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).passthrough().describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAM,qCAAqC,SAAS;CACpD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,9 +10,9 @@ declare const RafflysGetCurrentUserOutput: z.ZodObject<{
|
|
|
10
10
|
email: z.ZodNullable<z.ZodString>;
|
|
11
11
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const rafflysGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { rafflysGetCurrentUser };
|
|
@@ -10,9 +10,9 @@ declare const RafflysGetCurrentUserOutput: z.ZodObject<{
|
|
|
10
10
|
email: z.ZodNullable<z.ZodString>;
|
|
11
11
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const rafflysGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { rafflysGetCurrentUser };
|
|
@@ -9,7 +9,7 @@ const RafflysGetCurrentUser_UserDataSchema = z.object({
|
|
|
9
9
|
email: z.string().describe("Email address of the user").nullable(),
|
|
10
10
|
last_name: z.string().describe("Last name of the user").nullable().optional(),
|
|
11
11
|
first_name: z.string().describe("First name of the user").nullable().optional()
|
|
12
|
-
}).describe("User details returned by the API.");
|
|
12
|
+
}).passthrough().describe("User details returned by the API.");
|
|
13
13
|
const rafflysGetCurrentUser = action("RAFFLYS_GET_CURRENT_USER", {
|
|
14
14
|
slug: "rafflys-get-current-user",
|
|
15
15
|
name: "Get Current User",
|
|
@@ -18,7 +18,7 @@ const rafflysGetCurrentUser = action("RAFFLYS_GET_CURRENT_USER", {
|
|
|
18
18
|
output: z.object({
|
|
19
19
|
data: RafflysGetCurrentUser_UserDataSchema.nullable(),
|
|
20
20
|
success: z.boolean().describe("Whether the request was successful").nullable()
|
|
21
|
-
}).describe("Response model for the authenticated user details.")
|
|
21
|
+
}).passthrough().describe("Response model for the authenticated user details.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { rafflysGetCurrentUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).passthrough().describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAM7D,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,qCAAqC,SAAS;EACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const RafflysListPromotionsInput = zod.z.object({
|
|
|
5
5
|
page: zod.z.number().int().default(1).describe("Page number for pagination (default is 1)").optional(),
|
|
6
6
|
per_page: zod.z.number().int().default(50).describe("Number of items per page (1-100, default is 50)").optional()
|
|
7
7
|
});
|
|
8
|
-
const RafflysListPromotionsOutput = zod.z.object({ promotions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of promotion objects returned by the API") });
|
|
8
|
+
const RafflysListPromotionsOutput = zod.z.object({ promotions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of promotion objects returned by the API") }).passthrough();
|
|
9
9
|
const rafflysListPromotions = require_action.action("RAFFLYS_LIST_PROMOTIONS", {
|
|
10
10
|
slug: "rafflys-list-promotions",
|
|
11
11
|
name: "List Promotions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.cjs","names":["z","action"],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n});\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAAC;
|
|
1
|
+
{"version":3,"file":"list-promotions.cjs","names":["z","action"],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n}).passthrough();\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const RafflysListPromotionsInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const RafflysListPromotionsOutput: z.ZodObject<{
|
|
9
9
|
promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const rafflysListPromotions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
page?: number | undefined;
|
|
13
13
|
per_page?: number | undefined;
|
|
@@ -7,7 +7,7 @@ declare const RafflysListPromotionsInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const RafflysListPromotionsOutput: z.ZodObject<{
|
|
9
9
|
promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const rafflysListPromotions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
page?: number | undefined;
|
|
13
13
|
per_page?: number | undefined;
|
|
@@ -8,7 +8,7 @@ const rafflysListPromotions = action("RAFFLYS_LIST_PROMOTIONS", {
|
|
|
8
8
|
page: z.number().int().default(1).describe("Page number for pagination (default is 1)").optional(),
|
|
9
9
|
per_page: z.number().int().default(50).describe("Number of items per page (1-100, default is 50)").optional()
|
|
10
10
|
}),
|
|
11
|
-
output: z.object({ promotions: z.array(z.record(z.string(), z.unknown())).describe("List of promotion objects returned by the API") })
|
|
11
|
+
output: z.object({ promotions: z.array(z.record(z.string(), z.unknown())).describe("List of promotion objects returned by the API") }).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { rafflysListPromotions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.mjs","names":[],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n});\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,CASS;CACP,QATyC,EAAE,OAAO,EAClD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,
|
|
1
|
+
{"version":3,"file":"list-promotions.mjs","names":[],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n}).passthrough();\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,CASS;CACP,QATyC,EAAE,OAAO,EAClD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|