@keystrokehq/piggy 0.1.2 → 0.1.4
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/claim-anonymous-contact.cjs +2 -2
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.cts +2 -2
- package/dist/actions/claim-anonymous-contact.d.mts +2 -2
- package/dist/actions/claim-anonymous-contact.mjs +2 -2
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
- package/dist/actions/create-contact-attribute.cjs +4 -4
- package/dist/actions/create-contact-attribute.cjs.map +1 -1
- package/dist/actions/create-contact-attribute.d.cts +7 -6
- package/dist/actions/create-contact-attribute.d.mts +7 -6
- package/dist/actions/create-contact-attribute.mjs +4 -4
- package/dist/actions/create-contact-attribute.mjs.map +1 -1
- package/dist/actions/create-credit-reception.cjs +1 -1
- package/dist/actions/create-credit-reception.cjs.map +1 -1
- package/dist/actions/create-credit-reception.d.cts +1 -1
- package/dist/actions/create-credit-reception.d.mts +1 -1
- package/dist/actions/create-credit-reception.mjs +1 -1
- package/dist/actions/create-credit-reception.mjs.map +1 -1
- package/dist/actions/create-vouchers-batch.cjs +3 -3
- package/dist/actions/create-vouchers-batch.cjs.map +1 -1
- package/dist/actions/create-vouchers-batch.d.cts +4 -3
- package/dist/actions/create-vouchers-batch.d.mts +4 -3
- package/dist/actions/create-vouchers-batch.mjs +3 -3
- 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 +5 -4
- package/dist/actions/find-or-create-products.d.mts +5 -4
- 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 +6 -6
- package/dist/actions/find-voucher-by-code.cjs.map +1 -1
- package/dist/actions/find-voucher-by-code.d.cts +6 -6
- package/dist/actions/find-voucher-by-code.d.mts +6 -6
- package/dist/actions/find-voucher-by-code.mjs +6 -6
- package/dist/actions/find-voucher-by-code.mjs.map +1 -1
- package/dist/actions/get-contact-auth-token.cjs +2 -2
- package/dist/actions/get-contact-auth-token.cjs.map +1 -1
- package/dist/actions/get-contact-auth-token.d.cts +2 -2
- package/dist/actions/get-contact-auth-token.d.mts +2 -2
- package/dist/actions/get-contact-auth-token.mjs +2 -2
- package/dist/actions/get-contact-auth-token.mjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs +2 -2
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.cts +2 -2
- package/dist/actions/get-contacts-credit-balance.d.mts +2 -2
- package/dist/actions/get-contacts-credit-balance.mjs +2 -2
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
- package/dist/actions/list-forms.cjs +2 -2
- package/dist/actions/list-forms.cjs.map +1 -1
- package/dist/actions/list-forms.d.cts +2 -2
- package/dist/actions/list-forms.d.mts +2 -2
- package/dist/actions/list-forms.mjs +2 -2
- package/dist/actions/list-forms.mjs.map +1 -1
- package/dist/actions/list-perks.cjs +3 -3
- package/dist/actions/list-perks.cjs.map +1 -1
- package/dist/actions/list-perks.d.cts +3 -3
- package/dist/actions/list-perks.d.mts +3 -3
- package/dist/actions/list-perks.mjs +3 -3
- package/dist/actions/list-perks.mjs.map +1 -1
- package/dist/actions/merge-contacts.cjs +1 -1
- package/dist/actions/merge-contacts.cjs.map +1 -1
- package/dist/actions/merge-contacts.d.cts +1 -1
- package/dist/actions/merge-contacts.d.mts +1 -1
- package/dist/actions/merge-contacts.mjs +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 +2 -2
- package/dist/actions/send-contact-verification-email.d.mts +2 -2
- 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 +1 -1
- package/dist/actions/update-bookings.cjs.map +1 -1
- package/dist/actions/update-bookings.d.cts +1 -1
- package/dist/actions/update-bookings.d.mts +1 -1
- package/dist/actions/update-bookings.mjs +1 -1
- package/dist/actions/update-bookings.mjs.map +1 -1
- package/dist/actions/update-contact-identifiers.cjs +2 -2
- package/dist/actions/update-contact-identifiers.cjs.map +1 -1
- package/dist/actions/update-contact-identifiers.d.cts +2 -2
- package/dist/actions/update-contact-identifiers.d.mts +2 -2
- package/dist/actions/update-contact-identifiers.mjs +2 -2
- package/dist/actions/update-contact-identifiers.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,11 +8,11 @@ const PiggyClaimAnonymousContactInput = zod.z.object({
|
|
|
8
8
|
const PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = zod.z.object({
|
|
9
9
|
type: zod.z.string().describe("Result type indicating operation status").nullable().optional(),
|
|
10
10
|
message: zod.z.string().describe("Human-readable message about the claim operation result").nullable().optional()
|
|
11
|
-
}).describe("Data returned after claiming an anonymous contact.");
|
|
11
|
+
}).passthrough().describe("Data returned after claiming an anonymous contact.");
|
|
12
12
|
const PiggyClaimAnonymousContactOutput = zod.z.object({
|
|
13
13
|
data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),
|
|
14
14
|
meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
|
|
15
|
-
}).describe("Response model for claiming an anonymous contact.");
|
|
15
|
+
}).passthrough().describe("Response model for claiming an anonymous contact.");
|
|
16
16
|
const piggyClaimAnonymousContact = require_action.action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
|
|
17
17
|
slug: "piggy-claim-anonymous-contact",
|
|
18
18
|
name: "Claim Anonymous Contact",
|
|
@@ -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 = 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;
|
|
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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,9 +9,9 @@ declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
|
|
|
9
9
|
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
anonymous_contact_uuid: string;
|
|
17
17
|
email?: string | undefined;
|
|
@@ -9,9 +9,9 @@ declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
|
|
|
9
9
|
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
anonymous_contact_uuid: string;
|
|
17
17
|
email?: string | undefined;
|
|
@@ -8,7 +8,7 @@ const PiggyClaimAnonymousContactInput = z.object({
|
|
|
8
8
|
const PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({
|
|
9
9
|
type: z.string().describe("Result type indicating operation status").nullable().optional(),
|
|
10
10
|
message: z.string().describe("Human-readable message about the claim operation result").nullable().optional()
|
|
11
|
-
}).describe("Data returned after claiming an anonymous contact.");
|
|
11
|
+
}).passthrough().describe("Data returned after claiming an anonymous contact.");
|
|
12
12
|
const piggyClaimAnonymousContact = action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
|
|
13
13
|
slug: "piggy-claim-anonymous-contact",
|
|
14
14
|
name: "Claim Anonymous Contact",
|
|
@@ -17,7 +17,7 @@ const piggyClaimAnonymousContact = action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
|
|
|
17
17
|
output: z.object({
|
|
18
18
|
data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),
|
|
19
19
|
meta: z.array(z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
|
|
20
|
-
}).describe("Response model for claiming an anonymous contact.")
|
|
20
|
+
}).passthrough().describe("Response model for claiming an anonymous contact.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { piggyClaimAnonymousContact };
|
|
@@ -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 = 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;
|
|
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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,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,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PiggyCreateContactAttributeInput = zod.z.object({
|
|
|
7
7
|
options: zod.z.array(zod.z.object({
|
|
8
8
|
label: zod.z.string().describe("Option label for select or multi_select types"),
|
|
9
9
|
value: zod.z.string().describe("Option value for select or multi_select types")
|
|
10
|
-
})).describe("List of options for select or multi_select types. Each option has label and value").optional(),
|
|
10
|
+
}).passthrough()).describe("List of options for select or multi_select types. Each option has label and value").optional(),
|
|
11
11
|
data_type: zod.z.enum([
|
|
12
12
|
"url",
|
|
13
13
|
"text",
|
|
@@ -36,7 +36,7 @@ const PiggyCreateContactAttributeInput = zod.z.object({
|
|
|
36
36
|
const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = zod.z.object({
|
|
37
37
|
label: zod.z.string().describe("Option label").nullable(),
|
|
38
38
|
value: zod.z.string().describe("Option value").nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const PiggyCreateContactAttribute_ContactAttributeDataSchema = zod.z.object({
|
|
41
41
|
name: zod.z.string().describe("Internal name of the attribute").nullable(),
|
|
42
42
|
type: zod.z.string().describe("Attribute data type").nullable(),
|
|
@@ -47,11 +47,11 @@ const PiggyCreateContactAttribute_ContactAttributeDataSchema = zod.z.object({
|
|
|
47
47
|
is_piggy_defined: zod.z.boolean().describe("True if attribute is defined by Piggy").nullable(),
|
|
48
48
|
is_hard_read_only: zod.z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
|
|
49
49
|
is_soft_read_only: zod.z.boolean().describe("Indicates if attribute is soft read-only").nullable()
|
|
50
|
-
});
|
|
50
|
+
}).passthrough();
|
|
51
51
|
const PiggyCreateContactAttributeOutput = zod.z.object({
|
|
52
52
|
data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),
|
|
53
53
|
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the response")
|
|
54
|
-
});
|
|
54
|
+
}).passthrough();
|
|
55
55
|
const piggyCreateContactAttribute = require_action.action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
|
|
56
56
|
slug: "piggy-create-contact-attribute",
|
|
57
57
|
name: "Create Contact Attribute",
|
|
@@ -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 = 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;
|
|
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}).passthrough()).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}).passthrough();\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}).passthrough();\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n}).passthrough();\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,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,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,CAAC,CAAC,YAAY;AACf,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,CAAC,CAAC,YAAY;AACf,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,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,17 +7,17 @@ declare const PiggyCreateContactAttributeInput: z.ZodObject<{
|
|
|
7
7
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
value: z.ZodString;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>>;
|
|
11
11
|
data_type: z.ZodEnum<{
|
|
12
12
|
number: "number";
|
|
13
13
|
boolean: "boolean";
|
|
14
14
|
date: "date";
|
|
15
|
-
email: "email";
|
|
16
15
|
url: "url";
|
|
17
16
|
text: "text";
|
|
18
17
|
phone: "phone";
|
|
19
18
|
float: "float";
|
|
20
19
|
color: "color";
|
|
20
|
+
email: "email";
|
|
21
21
|
select: "select";
|
|
22
22
|
rich_text: "rich_text";
|
|
23
23
|
date_time: "date_time";
|
|
@@ -41,20 +41,21 @@ declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
|
|
|
41
41
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
42
42
|
label: z.ZodNullable<z.ZodString>;
|
|
43
43
|
value: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>>;
|
|
45
45
|
field_type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
|
|
48
48
|
is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
49
49
|
is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>;
|
|
53
53
|
declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
54
|
name: string;
|
|
55
|
-
data_type: "number" | "boolean" | "date" | "
|
|
55
|
+
data_type: "number" | "boolean" | "date" | "url" | "text" | "phone" | "float" | "color" | "email" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
|
|
56
56
|
label?: string | undefined;
|
|
57
57
|
options?: {
|
|
58
|
+
[x: string]: unknown;
|
|
58
59
|
label: string;
|
|
59
60
|
value: string;
|
|
60
61
|
}[] | undefined;
|
|
@@ -7,17 +7,17 @@ declare const PiggyCreateContactAttributeInput: z.ZodObject<{
|
|
|
7
7
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
value: z.ZodString;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>>;
|
|
11
11
|
data_type: z.ZodEnum<{
|
|
12
12
|
number: "number";
|
|
13
13
|
boolean: "boolean";
|
|
14
14
|
date: "date";
|
|
15
|
-
email: "email";
|
|
16
15
|
url: "url";
|
|
17
16
|
text: "text";
|
|
18
17
|
phone: "phone";
|
|
19
18
|
float: "float";
|
|
20
19
|
color: "color";
|
|
20
|
+
email: "email";
|
|
21
21
|
select: "select";
|
|
22
22
|
rich_text: "rich_text";
|
|
23
23
|
date_time: "date_time";
|
|
@@ -41,20 +41,21 @@ declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
|
|
|
41
41
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
42
42
|
label: z.ZodNullable<z.ZodString>;
|
|
43
43
|
value: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>>;
|
|
45
45
|
field_type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
|
|
48
48
|
is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
49
49
|
is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>;
|
|
53
53
|
declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
54
|
name: string;
|
|
55
|
-
data_type: "number" | "boolean" | "date" | "
|
|
55
|
+
data_type: "number" | "boolean" | "date" | "url" | "text" | "phone" | "float" | "color" | "email" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
|
|
56
56
|
label?: string | undefined;
|
|
57
57
|
options?: {
|
|
58
|
+
[x: string]: unknown;
|
|
58
59
|
label: string;
|
|
59
60
|
value: string;
|
|
60
61
|
}[] | undefined;
|
|
@@ -7,7 +7,7 @@ const PiggyCreateContactAttributeInput = z.object({
|
|
|
7
7
|
options: z.array(z.object({
|
|
8
8
|
label: z.string().describe("Option label for select or multi_select types"),
|
|
9
9
|
value: z.string().describe("Option value for select or multi_select types")
|
|
10
|
-
})).describe("List of options for select or multi_select types. Each option has label and value").optional(),
|
|
10
|
+
}).passthrough()).describe("List of options for select or multi_select types. Each option has label and value").optional(),
|
|
11
11
|
data_type: z.enum([
|
|
12
12
|
"url",
|
|
13
13
|
"text",
|
|
@@ -36,7 +36,7 @@ const PiggyCreateContactAttributeInput = z.object({
|
|
|
36
36
|
const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({
|
|
37
37
|
label: z.string().describe("Option label").nullable(),
|
|
38
38
|
value: z.string().describe("Option value").nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({
|
|
41
41
|
name: z.string().describe("Internal name of the attribute").nullable(),
|
|
42
42
|
type: z.string().describe("Attribute data type").nullable(),
|
|
@@ -47,7 +47,7 @@ const PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({
|
|
|
47
47
|
is_piggy_defined: z.boolean().describe("True if attribute is defined by Piggy").nullable(),
|
|
48
48
|
is_hard_read_only: z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
|
|
49
49
|
is_soft_read_only: z.boolean().describe("Indicates if attribute is soft read-only").nullable()
|
|
50
|
-
});
|
|
50
|
+
}).passthrough();
|
|
51
51
|
const piggyCreateContactAttribute = action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
|
|
52
52
|
slug: "piggy-create-contact-attribute",
|
|
53
53
|
name: "Create Contact Attribute",
|
|
@@ -56,7 +56,7 @@ const piggyCreateContactAttribute = action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
|
|
|
56
56
|
output: z.object({
|
|
57
57
|
data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),
|
|
58
58
|
meta: z.record(z.string(), z.unknown()).describe("Metadata about the response")
|
|
59
|
-
})
|
|
59
|
+
}).passthrough()
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
62
62
|
export { piggyCreateContactAttribute };
|
|
@@ -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 = 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;
|
|
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}).passthrough()).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}).passthrough();\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}).passthrough();\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n}).passthrough();\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,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,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,CAAC,CAAC,YAAY;AACf,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,CAAC,CAAC,YAAY;AAMf,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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const PiggyCreateCreditReceptionInput = zod.z.object({
|
|
|
10
10
|
const PiggyCreateCreditReceptionOutput = zod.z.object({
|
|
11
11
|
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Created credit reception data"),
|
|
12
12
|
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata")
|
|
13
|
-
}).describe("Response schema for credit reception creation.");
|
|
13
|
+
}).passthrough().describe("Response schema for credit reception creation.");
|
|
14
14
|
const piggyCreateCreditReception = require_action.action("PIGGY_CREATE_CREDIT_RECEPTION", {
|
|
15
15
|
slug: "piggy-create-credit-reception",
|
|
16
16
|
name: "Create Credit Reception",
|
|
@@ -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 = 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;
|
|
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
|
|
|
10
10
|
declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
|
|
11
11
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
12
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
shop_uuid: string;
|
|
16
16
|
contact_uuid: string;
|
|
@@ -10,7 +10,7 @@ declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
|
|
|
10
10
|
declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
|
|
11
11
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
12
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
shop_uuid: string;
|
|
16
16
|
contact_uuid: string;
|
|
@@ -13,7 +13,7 @@ const piggyCreateCreditReception = action("PIGGY_CREATE_CREDIT_RECEPTION", {
|
|
|
13
13
|
output: z.object({
|
|
14
14
|
data: z.record(z.string(), z.unknown()).describe("Created credit reception data"),
|
|
15
15
|
meta: z.record(z.string(), z.unknown()).describe("Response metadata")
|
|
16
|
-
}).describe("Response schema for credit reception creation.")
|
|
16
|
+
}).passthrough().describe("Response schema for credit reception creation.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { piggyCreateCreditReception };
|
|
@@ -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 = 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,
|
|
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const PiggyCreateVouchersBatchInput = zod.z.object({
|
|
|
10
10
|
custom_attributes: zod.z.array(zod.z.object({
|
|
11
11
|
key: zod.z.string().describe("Attribute key"),
|
|
12
12
|
value: zod.z.string().describe("Attribute value")
|
|
13
|
-
}).describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
|
|
13
|
+
}).passthrough().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
16
|
type: zod.z.string().describe("Resource type, always 'vouchers' for this endpoint").nullable(),
|
|
@@ -18,11 +18,11 @@ const PiggyCreateVouchersBatch_VoucherBatchDataSchema = zod.z.object({
|
|
|
18
18
|
status: zod.z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous").nullable(),
|
|
19
19
|
quantity: zod.z.number().int().describe("The number of vouchers generated in this batch").nullable(),
|
|
20
20
|
created_at: zod.z.string().describe("Timestamp when batch was created").nullable()
|
|
21
|
-
}).describe("Batch voucher creation data.");
|
|
21
|
+
}).passthrough().describe("Batch voucher creation data.");
|
|
22
22
|
const PiggyCreateVouchersBatchOutput = zod.z.object({
|
|
23
23
|
data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),
|
|
24
24
|
meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
|
|
25
|
-
}).describe("Response schema for batch voucher creation.");
|
|
25
|
+
}).passthrough().describe("Response schema for batch voucher creation.");
|
|
26
26
|
const piggyCreateVouchersBatch = require_action.action("PIGGY_CREATE_VOUCHERS_BATCH", {
|
|
27
27
|
slug: "piggy-create-vouchers-batch",
|
|
28
28
|
name: "Create Vouchers Batch",
|
|
@@ -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 = 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;
|
|
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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChI,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,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,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,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
|
|
|
10
10
|
custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
key: z.ZodString;
|
|
12
12
|
value: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
16
16
|
data: z.ZodNullable<z.ZodObject<{
|
|
@@ -19,9 +19,9 @@ declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
|
19
19
|
status: z.ZodNullable<z.ZodString>;
|
|
20
20
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
quantity: number;
|
|
27
27
|
promotion_uuid: string;
|
|
@@ -29,6 +29,7 @@ declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowAc
|
|
|
29
29
|
activation_date?: string | undefined;
|
|
30
30
|
expiration_date?: string | undefined;
|
|
31
31
|
custom_attributes?: {
|
|
32
|
+
[x: string]: unknown;
|
|
32
33
|
key: string;
|
|
33
34
|
value: string;
|
|
34
35
|
}[] | undefined;
|
|
@@ -10,7 +10,7 @@ declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
|
|
|
10
10
|
custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
key: z.ZodString;
|
|
12
12
|
value: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
16
16
|
data: z.ZodNullable<z.ZodObject<{
|
|
@@ -19,9 +19,9 @@ declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
|
|
|
19
19
|
status: z.ZodNullable<z.ZodString>;
|
|
20
20
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
quantity: number;
|
|
27
27
|
promotion_uuid: string;
|
|
@@ -29,6 +29,7 @@ declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowAc
|
|
|
29
29
|
activation_date?: string | undefined;
|
|
30
30
|
expiration_date?: string | undefined;
|
|
31
31
|
custom_attributes?: {
|
|
32
|
+
[x: string]: unknown;
|
|
32
33
|
key: string;
|
|
33
34
|
value: string;
|
|
34
35
|
}[] | undefined;
|
|
@@ -10,7 +10,7 @@ const PiggyCreateVouchersBatchInput = z.object({
|
|
|
10
10
|
custom_attributes: z.array(z.object({
|
|
11
11
|
key: z.string().describe("Attribute key"),
|
|
12
12
|
value: z.string().describe("Attribute value")
|
|
13
|
-
}).describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
|
|
13
|
+
}).passthrough().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 = z.object({
|
|
16
16
|
type: z.string().describe("Resource type, always 'vouchers' for this endpoint").nullable(),
|
|
@@ -18,7 +18,7 @@ const PiggyCreateVouchersBatch_VoucherBatchDataSchema = z.object({
|
|
|
18
18
|
status: z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous").nullable(),
|
|
19
19
|
quantity: z.number().int().describe("The number of vouchers generated in this batch").nullable(),
|
|
20
20
|
created_at: z.string().describe("Timestamp when batch was created").nullable()
|
|
21
|
-
}).describe("Batch voucher creation data.");
|
|
21
|
+
}).passthrough().describe("Batch voucher creation data.");
|
|
22
22
|
const piggyCreateVouchersBatch = action("PIGGY_CREATE_VOUCHERS_BATCH", {
|
|
23
23
|
slug: "piggy-create-vouchers-batch",
|
|
24
24
|
name: "Create Vouchers Batch",
|
|
@@ -27,7 +27,7 @@ const piggyCreateVouchersBatch = action("PIGGY_CREATE_VOUCHERS_BATCH", {
|
|
|
27
27
|
output: z.object({
|
|
28
28
|
data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),
|
|
29
29
|
meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
|
|
30
|
-
}).describe("Response schema for batch voucher creation.")
|
|
30
|
+
}).passthrough().describe("Response schema for batch voucher creation.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { piggyCreateVouchersBatch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-vouchers-batch.mjs","names":[],"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,gCAAgC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-vouchers-batch.mjs","names":[],"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}).passthrough().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}).passthrough().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}).passthrough().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,gCAAgC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,gDAAgD,SAAS;EAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -6,25 +6,25 @@ const PiggyFindOrCreateProductsInput = zod.z.object({
|
|
|
6
6
|
categories: zod.z.array(zod.z.object({
|
|
7
7
|
uuid: zod.z.string().describe("UUID of an existing category to associate with the product").optional(),
|
|
8
8
|
external_identifier: zod.z.string().describe("External identifier of an existing category to associate with the product").optional()
|
|
9
|
-
}).describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
|
|
9
|
+
}).passthrough().describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
|
|
10
10
|
description: zod.z.string().describe("The description of the Product").optional(),
|
|
11
11
|
external_identifier: zod.z.string().describe("A unique identifier from your system to find or create the product")
|
|
12
12
|
}).describe("Request model for finding or creating a product in Piggy.");
|
|
13
13
|
const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = zod.z.object({
|
|
14
14
|
uuid: zod.z.string().describe("UUID of the category").nullable(),
|
|
15
15
|
external_identifier: zod.z.string().describe("External identifier of the category").nullable().optional()
|
|
16
|
-
}).describe("Category information in product response.");
|
|
16
|
+
}).passthrough().describe("Category information in product response.");
|
|
17
17
|
const PiggyFindOrCreateProducts_ProductDataSchema = zod.z.object({
|
|
18
18
|
name: zod.z.string().describe("Name of the product").nullable(),
|
|
19
19
|
uuid: zod.z.string().describe("Unique identifier for the product in Piggy system").nullable(),
|
|
20
20
|
categories: zod.z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
|
|
21
21
|
description: zod.z.string().describe("Description of the product").nullable().optional(),
|
|
22
22
|
external_identifier: zod.z.string().describe("External identifier from your system").nullable()
|
|
23
|
-
}).describe("Product data object returned by the API.");
|
|
23
|
+
}).passthrough().describe("Product data object returned by the API.");
|
|
24
24
|
const PiggyFindOrCreateProductsOutput = zod.z.object({
|
|
25
25
|
data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
|
|
26
26
|
meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty").nullable().optional()
|
|
27
|
-
}).describe("Response model for finding or creating a product.");
|
|
27
|
+
}).passthrough().describe("Response model for finding or creating a product.");
|
|
28
28
|
const piggyFindOrCreateProducts = require_action.action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
|
|
29
29
|
slug: "piggy-find-or-create-products",
|
|
30
30
|
name: "Find or Create Products",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC5M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,4CAA4C,SAAS;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|