@keystrokehq/piggy 0.1.0 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.cts +15 -3
- package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.mts +15 -3
- package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
- package/dist/actions/create-contact-attribute.cjs +8 -8
- package/dist/actions/create-contact-attribute.cjs.map +1 -1
- package/dist/actions/create-contact-attribute.d.cts +59 -3
- package/dist/actions/create-contact-attribute.d.cts.map +1 -1
- package/dist/actions/create-contact-attribute.d.mts +59 -3
- package/dist/actions/create-contact-attribute.d.mts.map +1 -1
- package/dist/actions/create-contact-attribute.mjs +8 -8
- package/dist/actions/create-contact-attribute.mjs.map +1 -1
- package/dist/actions/create-credit-reception.cjs.map +1 -1
- package/dist/actions/create-credit-reception.d.cts +16 -3
- package/dist/actions/create-credit-reception.d.cts.map +1 -1
- package/dist/actions/create-credit-reception.d.mts +16 -3
- package/dist/actions/create-credit-reception.d.mts.map +1 -1
- package/dist/actions/create-credit-reception.mjs.map +1 -1
- package/dist/actions/create-vouchers-batch.cjs +5 -5
- package/dist/actions/create-vouchers-batch.cjs.map +1 -1
- package/dist/actions/create-vouchers-batch.d.cts +32 -3
- package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
- package/dist/actions/create-vouchers-batch.d.mts +32 -3
- package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
- package/dist/actions/create-vouchers-batch.mjs +5 -5
- package/dist/actions/create-vouchers-batch.mjs.map +1 -1
- package/dist/actions/find-or-create-products.cjs +4 -4
- package/dist/actions/find-or-create-products.cjs.map +1 -1
- package/dist/actions/find-or-create-products.d.cts +31 -3
- package/dist/actions/find-or-create-products.d.cts.map +1 -1
- package/dist/actions/find-or-create-products.d.mts +31 -3
- package/dist/actions/find-or-create-products.d.mts.map +1 -1
- package/dist/actions/find-or-create-products.mjs +4 -4
- package/dist/actions/find-or-create-products.mjs.map +1 -1
- package/dist/actions/find-voucher-by-code.cjs +2 -2
- package/dist/actions/find-voucher-by-code.cjs.map +1 -1
- package/dist/actions/find-voucher-by-code.d.cts +33 -3
- package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
- package/dist/actions/find-voucher-by-code.d.mts +33 -3
- package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
- package/dist/actions/find-voucher-by-code.mjs +2 -2
- package/dist/actions/find-voucher-by-code.mjs.map +1 -1
- package/dist/actions/get-contact-auth-token.cjs +1 -1
- package/dist/actions/get-contact-auth-token.cjs.map +1 -1
- package/dist/actions/get-contact-auth-token.d.cts +12 -3
- package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
- package/dist/actions/get-contact-auth-token.d.mts +12 -3
- package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
- package/dist/actions/get-contact-auth-token.mjs +1 -1
- package/dist/actions/get-contact-auth-token.mjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.cts +12 -3
- package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.mts +12 -3
- package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
- package/dist/actions/get-contacts-credit-balance.mjs +1 -1
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
- package/dist/actions/list-forms.cjs +5 -5
- package/dist/actions/list-forms.cjs.map +1 -1
- package/dist/actions/list-forms.d.cts +12 -3
- package/dist/actions/list-forms.d.cts.map +1 -1
- package/dist/actions/list-forms.d.mts +12 -3
- package/dist/actions/list-forms.d.mts.map +1 -1
- package/dist/actions/list-forms.mjs +5 -5
- package/dist/actions/list-forms.mjs.map +1 -1
- package/dist/actions/list-perks.cjs.map +1 -1
- package/dist/actions/list-perks.d.cts +12 -3
- package/dist/actions/list-perks.d.cts.map +1 -1
- package/dist/actions/list-perks.d.mts +12 -3
- package/dist/actions/list-perks.d.mts.map +1 -1
- package/dist/actions/list-perks.mjs.map +1 -1
- package/dist/actions/merge-contacts.cjs.map +1 -1
- package/dist/actions/merge-contacts.d.cts +12 -3
- package/dist/actions/merge-contacts.d.cts.map +1 -1
- package/dist/actions/merge-contacts.d.mts +12 -3
- package/dist/actions/merge-contacts.d.mts.map +1 -1
- package/dist/actions/merge-contacts.mjs.map +1 -1
- package/dist/actions/send-contact-verification-email.cjs +2 -2
- package/dist/actions/send-contact-verification-email.cjs.map +1 -1
- package/dist/actions/send-contact-verification-email.d.cts +13 -3
- package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
- package/dist/actions/send-contact-verification-email.d.mts +13 -3
- package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
- package/dist/actions/send-contact-verification-email.mjs +2 -2
- package/dist/actions/send-contact-verification-email.mjs.map +1 -1
- package/dist/actions/update-bookings.cjs.map +1 -1
- package/dist/actions/update-bookings.d.cts +33 -3
- package/dist/actions/update-bookings.d.cts.map +1 -1
- package/dist/actions/update-bookings.d.mts +33 -3
- package/dist/actions/update-bookings.d.mts.map +1 -1
- package/dist/actions/update-bookings.mjs.map +1 -1
- package/dist/actions/update-contact-identifiers.cjs +3 -3
- package/dist/actions/update-contact-identifiers.cjs.map +1 -1
- package/dist/actions/update-contact-identifiers.d.cts +20 -3
- package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
- package/dist/actions/update-contact-identifiers.d.mts +20 -3
- package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
- package/dist/actions/update-contact-identifiers.mjs +3 -3
- package/dist/actions/update-contact-identifiers.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["piggy","executePiggyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["piggy","executePiggyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-anonymous-contact.cjs","names":["z","action"],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput
|
|
1
|
+
{"version":3,"file":"claim-anonymous-contact.cjs","names":["z","action"],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/claim-anonymous-contact.d.ts
|
|
4
|
-
declare const PiggyClaimAnonymousContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyClaimAnonymousContactInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
anonymous_contact_uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
anonymous_contact_uuid: string;
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { piggyClaimAnonymousContact };
|
|
9
21
|
//# sourceMappingURL=claim-anonymous-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-anonymous-contact.d.cts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"claim-anonymous-contact.d.cts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/claim-anonymous-contact.d.ts
|
|
4
|
-
declare const PiggyClaimAnonymousContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyClaimAnonymousContactInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
anonymous_contact_uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
anonymous_contact_uuid: string;
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { piggyClaimAnonymousContact };
|
|
9
21
|
//# sourceMappingURL=claim-anonymous-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-anonymous-contact.d.mts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"claim-anonymous-contact.d.mts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-anonymous-contact.mjs","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput
|
|
1
|
+
{"version":3,"file":"claim-anonymous-contact.mjs","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAMhE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;EACrF,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -34,19 +34,19 @@ const PiggyCreateContactAttributeInput = zod.z.object({
|
|
|
34
34
|
description: zod.z.string().describe("Human-readable description of the Contact Attribute").optional()
|
|
35
35
|
});
|
|
36
36
|
const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = zod.z.object({
|
|
37
|
-
label: zod.z.string().describe("Option label"),
|
|
38
|
-
value: zod.z.string().describe("Option value")
|
|
37
|
+
label: zod.z.string().describe("Option label").nullable(),
|
|
38
|
+
value: zod.z.string().describe("Option value").nullable()
|
|
39
39
|
});
|
|
40
40
|
const PiggyCreateContactAttribute_ContactAttributeDataSchema = zod.z.object({
|
|
41
|
-
name: zod.z.string().describe("Internal name of the attribute"),
|
|
42
|
-
type: zod.z.string().describe("Attribute data type"),
|
|
41
|
+
name: zod.z.string().describe("Internal name of the attribute").nullable(),
|
|
42
|
+
type: zod.z.string().describe("Attribute data type").nullable(),
|
|
43
43
|
label: zod.z.string().describe("Display label of the attribute").nullable().optional(),
|
|
44
44
|
options: zod.z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe("Available options for select or multi_select types").nullable().optional(),
|
|
45
|
-
field_type: zod.z.string().describe("Field rendering type in UI"),
|
|
45
|
+
field_type: zod.z.string().describe("Field rendering type in UI").nullable(),
|
|
46
46
|
description: zod.z.string().describe("Description of the attribute").nullable().optional(),
|
|
47
|
-
is_piggy_defined: zod.z.boolean().describe("True if attribute is defined by Piggy"),
|
|
48
|
-
is_hard_read_only: zod.z.boolean().describe("Indicates if attribute is hard read-only"),
|
|
49
|
-
is_soft_read_only: zod.z.boolean().describe("Indicates if attribute is soft read-only")
|
|
47
|
+
is_piggy_defined: zod.z.boolean().describe("True if attribute is defined by Piggy").nullable(),
|
|
48
|
+
is_hard_read_only: zod.z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
|
|
49
|
+
is_soft_read_only: zod.z.boolean().describe("Indicates if attribute is soft read-only").nullable()
|
|
50
50
|
});
|
|
51
51
|
const PiggyCreateContactAttributeOutput = zod.z.object({
|
|
52
52
|
data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact-attribute.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput
|
|
1
|
+
{"version":3,"file":"create-contact-attribute.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n})).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({\n label: z.string().describe(\"Option label\").nullable(),\n value: z.string().describe(\"Option value\").nullable(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({\n name: z.string().describe(\"Internal name of the attribute\").nullable(),\n type: z.string().describe(\"Attribute data type\").nullable(),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\").nullable(),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\").nullable(),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\").nullable(),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\").nullable(),\n});\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n});\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAmEA,IAAAA,EAAE,OAAO;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;AACtD,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAM,uDAAuD,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAChF,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,65 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-contact-attribute.d.ts
|
|
4
|
-
declare const PiggyCreateContactAttributeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateContactAttributeInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
label: z.ZodString;
|
|
9
|
+
value: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
data_type: z.ZodEnum<{
|
|
12
|
+
number: "number";
|
|
13
|
+
boolean: "boolean";
|
|
14
|
+
date: "date";
|
|
15
|
+
email: "email";
|
|
16
|
+
url: "url";
|
|
17
|
+
text: "text";
|
|
18
|
+
phone: "phone";
|
|
19
|
+
float: "float";
|
|
20
|
+
color: "color";
|
|
21
|
+
select: "select";
|
|
22
|
+
rich_text: "rich_text";
|
|
23
|
+
date_time: "date_time";
|
|
24
|
+
long_text: "long_text";
|
|
25
|
+
date_range: "date_range";
|
|
26
|
+
time_range: "time_range";
|
|
27
|
+
identifier: "identifier";
|
|
28
|
+
birth_date: "birth_date";
|
|
29
|
+
file_upload: "file_upload";
|
|
30
|
+
media_upload: "media_upload";
|
|
31
|
+
multi_select: "multi_select";
|
|
32
|
+
license_plate: "license_plate";
|
|
33
|
+
}>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
|
|
37
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
name: z.ZodNullable<z.ZodString>;
|
|
39
|
+
type: z.ZodNullable<z.ZodString>;
|
|
40
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
42
|
+
label: z.ZodNullable<z.ZodString>;
|
|
43
|
+
value: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>>;
|
|
45
|
+
field_type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
|
|
48
|
+
is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
49
|
+
is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
name: string;
|
|
55
|
+
data_type: "number" | "boolean" | "date" | "email" | "url" | "text" | "phone" | "float" | "color" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
|
|
56
|
+
label?: string | undefined;
|
|
57
|
+
options?: {
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
description?: string | undefined;
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
63
|
//#endregion
|
|
8
64
|
export { piggyCreateContactAttribute };
|
|
9
65
|
//# sourceMappingURL=create-contact-attribute.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact-attribute.d.cts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"create-contact-attribute.d.cts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,65 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-contact-attribute.d.ts
|
|
4
|
-
declare const PiggyCreateContactAttributeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateContactAttributeInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
label: z.ZodString;
|
|
9
|
+
value: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
data_type: z.ZodEnum<{
|
|
12
|
+
number: "number";
|
|
13
|
+
boolean: "boolean";
|
|
14
|
+
date: "date";
|
|
15
|
+
email: "email";
|
|
16
|
+
url: "url";
|
|
17
|
+
text: "text";
|
|
18
|
+
phone: "phone";
|
|
19
|
+
float: "float";
|
|
20
|
+
color: "color";
|
|
21
|
+
select: "select";
|
|
22
|
+
rich_text: "rich_text";
|
|
23
|
+
date_time: "date_time";
|
|
24
|
+
long_text: "long_text";
|
|
25
|
+
date_range: "date_range";
|
|
26
|
+
time_range: "time_range";
|
|
27
|
+
identifier: "identifier";
|
|
28
|
+
birth_date: "birth_date";
|
|
29
|
+
file_upload: "file_upload";
|
|
30
|
+
media_upload: "media_upload";
|
|
31
|
+
multi_select: "multi_select";
|
|
32
|
+
license_plate: "license_plate";
|
|
33
|
+
}>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
|
|
37
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
name: z.ZodNullable<z.ZodString>;
|
|
39
|
+
type: z.ZodNullable<z.ZodString>;
|
|
40
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
42
|
+
label: z.ZodNullable<z.ZodString>;
|
|
43
|
+
value: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>>;
|
|
45
|
+
field_type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
|
|
48
|
+
is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
49
|
+
is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
name: string;
|
|
55
|
+
data_type: "number" | "boolean" | "date" | "email" | "url" | "text" | "phone" | "float" | "color" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
|
|
56
|
+
label?: string | undefined;
|
|
57
|
+
options?: {
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
description?: string | undefined;
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
63
|
//#endregion
|
|
8
64
|
export { piggyCreateContactAttribute };
|
|
9
65
|
//# sourceMappingURL=create-contact-attribute.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact-attribute.d.mts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"create-contact-attribute.d.mts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -34,19 +34,19 @@ const PiggyCreateContactAttributeInput = z.object({
|
|
|
34
34
|
description: z.string().describe("Human-readable description of the Contact Attribute").optional()
|
|
35
35
|
});
|
|
36
36
|
const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({
|
|
37
|
-
label: z.string().describe("Option label"),
|
|
38
|
-
value: z.string().describe("Option value")
|
|
37
|
+
label: z.string().describe("Option label").nullable(),
|
|
38
|
+
value: z.string().describe("Option value").nullable()
|
|
39
39
|
});
|
|
40
40
|
const PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({
|
|
41
|
-
name: z.string().describe("Internal name of the attribute"),
|
|
42
|
-
type: z.string().describe("Attribute data type"),
|
|
41
|
+
name: z.string().describe("Internal name of the attribute").nullable(),
|
|
42
|
+
type: z.string().describe("Attribute data type").nullable(),
|
|
43
43
|
label: z.string().describe("Display label of the attribute").nullable().optional(),
|
|
44
44
|
options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe("Available options for select or multi_select types").nullable().optional(),
|
|
45
|
-
field_type: z.string().describe("Field rendering type in UI"),
|
|
45
|
+
field_type: z.string().describe("Field rendering type in UI").nullable(),
|
|
46
46
|
description: z.string().describe("Description of the attribute").nullable().optional(),
|
|
47
|
-
is_piggy_defined: z.boolean().describe("True if attribute is defined by Piggy"),
|
|
48
|
-
is_hard_read_only: z.boolean().describe("Indicates if attribute is hard read-only"),
|
|
49
|
-
is_soft_read_only: z.boolean().describe("Indicates if attribute is soft read-only")
|
|
47
|
+
is_piggy_defined: z.boolean().describe("True if attribute is defined by Piggy").nullable(),
|
|
48
|
+
is_hard_read_only: z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
|
|
49
|
+
is_soft_read_only: z.boolean().describe("Indicates if attribute is soft read-only").nullable()
|
|
50
50
|
});
|
|
51
51
|
const piggyCreateContactAttribute = action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
|
|
52
52
|
slug: "piggy-create-contact-attribute",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact-attribute.mjs","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput
|
|
1
|
+
{"version":3,"file":"create-contact-attribute.mjs","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n})).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({\n label: z.string().describe(\"Option label\").nullable(),\n value: z.string().describe(\"Option value\").nullable(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({\n name: z.string().describe(\"Internal name of the attribute\").nullable(),\n type: z.string().describe(\"Attribute data type\").nullable(),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\").nullable(),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\").nullable(),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\").nullable(),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\").nullable(),\n});\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n});\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAmE,EAAE,OAAO;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;AACtD,CAAC;AACD,MAAM,yDAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC;AAMD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,MAAM,uDAAuD,SAAS;EACtE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;CAChF,CAOU;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-reception.cjs","names":["z","action"],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput
|
|
1
|
+
{"version":3,"file":"create-credit-reception.cjs","names":["z","action"],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC5E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAChF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;AACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-credit-reception.d.ts
|
|
4
|
-
declare const PiggyCreateCreditReceptionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
|
|
5
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
shop_uuid: z.ZodString;
|
|
7
|
+
unit_value: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
contact_uuid: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
shop_uuid: string;
|
|
16
|
+
contact_uuid: string;
|
|
17
|
+
credits?: number | undefined;
|
|
18
|
+
unit_value?: number | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { piggyCreateCreditReception };
|
|
9
22
|
//# sourceMappingURL=create-credit-reception.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-reception.d.cts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-credit-reception.d.cts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-credit-reception.d.ts
|
|
4
|
-
declare const PiggyCreateCreditReceptionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
|
|
5
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
shop_uuid: z.ZodString;
|
|
7
|
+
unit_value: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
contact_uuid: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
shop_uuid: string;
|
|
16
|
+
contact_uuid: string;
|
|
17
|
+
credits?: number | undefined;
|
|
18
|
+
unit_value?: number | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { piggyCreateCreditReception };
|
|
9
22
|
//# sourceMappingURL=create-credit-reception.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-reception.d.mts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-credit-reception.d.mts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-reception.mjs","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput
|
|
1
|
+
{"version":3,"file":"create-credit-reception.mjs","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EACrK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC5E,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;EAChF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACtE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -13,11 +13,11 @@ const PiggyCreateVouchersBatchInput = zod.z.object({
|
|
|
13
13
|
}).describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
|
|
14
14
|
}).describe("Request schema for batch voucher creation.");
|
|
15
15
|
const PiggyCreateVouchersBatch_VoucherBatchDataSchema = zod.z.object({
|
|
16
|
-
type: zod.z.string().describe("Resource type, always 'vouchers' for this endpoint"),
|
|
17
|
-
uuid: zod.z.string().describe("Unique identifier for the batch operation"),
|
|
18
|
-
status: zod.z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous"),
|
|
19
|
-
quantity: zod.z.number().int().describe("The number of vouchers generated in this batch"),
|
|
20
|
-
created_at: zod.z.string().describe("Timestamp when batch was created")
|
|
16
|
+
type: zod.z.string().describe("Resource type, always 'vouchers' for this endpoint").nullable(),
|
|
17
|
+
uuid: zod.z.string().describe("Unique identifier for the batch operation").nullable(),
|
|
18
|
+
status: zod.z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous").nullable(),
|
|
19
|
+
quantity: zod.z.number().int().describe("The number of vouchers generated in this batch").nullable(),
|
|
20
|
+
created_at: zod.z.string().describe("Timestamp when batch was created").nullable()
|
|
21
21
|
}).describe("Batch voucher creation data.");
|
|
22
22
|
const PiggyCreateVouchersBatchOutput = zod.z.object({
|
|
23
23
|
data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-vouchers-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput
|
|
1
|
+
{"version":3,"file":"create-vouchers-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput = z.object({\n quantity: z.number().int().describe(\"The number of Vouchers you want to generate (min: 1, max: 500)\"),\n contact_uuid: z.string().describe(\"The Contact's UUID to be linked to the batch of Vouchers\").optional(),\n promotion_uuid: z.string().describe(\"UUID of the Promotion for which the Vouchers are to be created\"),\n activation_date: z.string().describe(\"The activation date for the batch of Vouchers in ISO 8601 format\").optional(),\n expiration_date: z.string().describe(\"The expiration date for the batch of Vouchers in ISO 8601 format\").optional(),\n custom_attributes: z.array(z.object({\n key: z.string().describe(\"Attribute key\"),\n value: z.string().describe(\"Attribute value\"),\n}).describe(\"Custom attribute for vouchers.\")).describe(\"Additional Custom Attributes for the Vouchers\").optional(),\n}).describe(\"Request schema for batch voucher creation.\");\nconst PiggyCreateVouchersBatch_VoucherBatchDataSchema = z.object({\n type: z.string().describe(\"Resource type, always 'vouchers' for this endpoint\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the batch operation\").nullable(),\n status: z.string().describe(\"Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous\").nullable(),\n quantity: z.number().int().describe(\"The number of vouchers generated in this batch\").nullable(),\n created_at: z.string().describe(\"Timestamp when batch was created\").nullable(),\n}).describe(\"Batch voucher creation data.\");\nexport const PiggyCreateVouchersBatchOutput = z.object({\n data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for batch voucher creation.\");\n\nexport const piggyCreateVouchersBatch = action(\"PIGGY_CREATE_VOUCHERS_BATCH\", {\n slug: \"piggy-create-vouchers-batch\",\n name: \"Create Vouchers Batch\",\n description: \"Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.\",\n input: PiggyCreateVouchersBatchInput,\n output: PiggyCreateVouchersBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACpC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,gDAAgD,SAAS;CAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-vouchers-batch.d.ts
|
|
4
|
-
declare const PiggyCreateVouchersBatchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
|
|
5
|
+
quantity: z.ZodNumber;
|
|
6
|
+
contact_uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
promotion_uuid: z.ZodString;
|
|
8
|
+
activation_date: z.ZodOptional<z.ZodString>;
|
|
9
|
+
expiration_date: z.ZodOptional<z.ZodString>;
|
|
10
|
+
custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
type: z.ZodNullable<z.ZodString>;
|
|
18
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
status: z.ZodNullable<z.ZodString>;
|
|
20
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
quantity: number;
|
|
27
|
+
promotion_uuid: string;
|
|
28
|
+
contact_uuid?: string | undefined;
|
|
29
|
+
activation_date?: string | undefined;
|
|
30
|
+
expiration_date?: string | undefined;
|
|
31
|
+
custom_attributes?: {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { piggyCreateVouchersBatch };
|
|
9
38
|
//# sourceMappingURL=create-vouchers-batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-vouchers-batch.d.cts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"create-vouchers-batch.d.cts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAkB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-vouchers-batch.d.ts
|
|
4
|
-
declare const PiggyCreateVouchersBatchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
|
|
5
|
+
quantity: z.ZodNumber;
|
|
6
|
+
contact_uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
promotion_uuid: z.ZodString;
|
|
8
|
+
activation_date: z.ZodOptional<z.ZodString>;
|
|
9
|
+
expiration_date: z.ZodOptional<z.ZodString>;
|
|
10
|
+
custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
type: z.ZodNullable<z.ZodString>;
|
|
18
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
status: z.ZodNullable<z.ZodString>;
|
|
20
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
quantity: number;
|
|
27
|
+
promotion_uuid: string;
|
|
28
|
+
contact_uuid?: string | undefined;
|
|
29
|
+
activation_date?: string | undefined;
|
|
30
|
+
expiration_date?: string | undefined;
|
|
31
|
+
custom_attributes?: {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { piggyCreateVouchersBatch };
|
|
9
38
|
//# sourceMappingURL=create-vouchers-batch.d.mts.map
|