@keystrokehq/piggy 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/claim-anonymous-contact.cjs +26 -0
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -0
- package/dist/actions/claim-anonymous-contact.d.cts +9 -0
- package/dist/actions/claim-anonymous-contact.d.cts.map +1 -0
- package/dist/actions/claim-anonymous-contact.d.mts +9 -0
- package/dist/actions/claim-anonymous-contact.d.mts.map +1 -0
- package/dist/actions/claim-anonymous-contact.mjs +25 -0
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -0
- package/dist/actions/create-contact-attribute.cjs +65 -0
- package/dist/actions/create-contact-attribute.cjs.map +1 -0
- package/dist/actions/create-contact-attribute.d.cts +9 -0
- package/dist/actions/create-contact-attribute.d.cts.map +1 -0
- package/dist/actions/create-contact-attribute.d.mts +9 -0
- package/dist/actions/create-contact-attribute.d.mts.map +1 -0
- package/dist/actions/create-contact-attribute.mjs +64 -0
- package/dist/actions/create-contact-attribute.mjs.map +1 -0
- package/dist/actions/create-credit-reception.cjs +24 -0
- package/dist/actions/create-credit-reception.cjs.map +1 -0
- package/dist/actions/create-credit-reception.d.cts +9 -0
- package/dist/actions/create-credit-reception.d.cts.map +1 -0
- package/dist/actions/create-credit-reception.d.mts +9 -0
- package/dist/actions/create-credit-reception.d.mts.map +1 -0
- package/dist/actions/create-credit-reception.mjs +21 -0
- package/dist/actions/create-credit-reception.mjs.map +1 -0
- package/dist/actions/create-vouchers-batch.cjs +36 -0
- package/dist/actions/create-vouchers-batch.cjs.map +1 -0
- package/dist/actions/create-vouchers-batch.d.cts +9 -0
- package/dist/actions/create-vouchers-batch.d.cts.map +1 -0
- package/dist/actions/create-vouchers-batch.d.mts +9 -0
- package/dist/actions/create-vouchers-batch.d.mts.map +1 -0
- package/dist/actions/create-vouchers-batch.mjs +35 -0
- package/dist/actions/create-vouchers-batch.mjs.map +1 -0
- package/dist/actions/find-or-create-products.cjs +38 -0
- package/dist/actions/find-or-create-products.cjs.map +1 -0
- package/dist/actions/find-or-create-products.d.cts +9 -0
- package/dist/actions/find-or-create-products.d.cts.map +1 -0
- package/dist/actions/find-or-create-products.d.mts +9 -0
- package/dist/actions/find-or-create-products.d.mts.map +1 -0
- package/dist/actions/find-or-create-products.mjs +37 -0
- package/dist/actions/find-or-create-products.mjs.map +1 -0
- package/dist/actions/find-voucher-by-code.cjs +45 -0
- package/dist/actions/find-voucher-by-code.cjs.map +1 -0
- package/dist/actions/find-voucher-by-code.d.cts +9 -0
- package/dist/actions/find-voucher-by-code.d.cts.map +1 -0
- package/dist/actions/find-voucher-by-code.d.mts +9 -0
- package/dist/actions/find-voucher-by-code.d.mts.map +1 -0
- package/dist/actions/find-voucher-by-code.mjs +44 -0
- package/dist/actions/find-voucher-by-code.mjs.map +1 -0
- package/dist/actions/get-contact-auth-token.cjs +20 -0
- package/dist/actions/get-contact-auth-token.cjs.map +1 -0
- package/dist/actions/get-contact-auth-token.d.cts +9 -0
- package/dist/actions/get-contact-auth-token.d.cts.map +1 -0
- package/dist/actions/get-contact-auth-token.d.mts +9 -0
- package/dist/actions/get-contact-auth-token.d.mts.map +1 -0
- package/dist/actions/get-contact-auth-token.mjs +19 -0
- package/dist/actions/get-contact-auth-token.mjs.map +1 -0
- package/dist/actions/get-contacts-credit-balance.cjs +20 -0
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -0
- package/dist/actions/get-contacts-credit-balance.d.cts +9 -0
- package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -0
- package/dist/actions/get-contacts-credit-balance.d.mts +9 -0
- package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -0
- package/dist/actions/get-contacts-credit-balance.mjs +19 -0
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -0
- package/dist/actions/index.cjs +29 -0
- package/dist/actions/index.d.cts +15 -0
- package/dist/actions/index.d.mts +15 -0
- package/dist/actions/index.mjs +15 -0
- package/dist/actions/list-forms.cjs +26 -0
- package/dist/actions/list-forms.cjs.map +1 -0
- package/dist/actions/list-forms.d.cts +9 -0
- package/dist/actions/list-forms.d.cts.map +1 -0
- package/dist/actions/list-forms.d.mts +9 -0
- package/dist/actions/list-forms.d.mts.map +1 -0
- package/dist/actions/list-forms.mjs +25 -0
- package/dist/actions/list-forms.mjs.map +1 -0
- package/dist/actions/list-perks.cjs +26 -0
- package/dist/actions/list-perks.cjs.map +1 -0
- package/dist/actions/list-perks.d.cts +9 -0
- package/dist/actions/list-perks.d.cts.map +1 -0
- package/dist/actions/list-perks.d.mts +9 -0
- package/dist/actions/list-perks.d.mts.map +1 -0
- package/dist/actions/list-perks.mjs +25 -0
- package/dist/actions/list-perks.mjs.map +1 -0
- package/dist/actions/merge-contacts.cjs +22 -0
- package/dist/actions/merge-contacts.cjs.map +1 -0
- package/dist/actions/merge-contacts.d.cts +9 -0
- package/dist/actions/merge-contacts.d.cts.map +1 -0
- package/dist/actions/merge-contacts.d.mts +9 -0
- package/dist/actions/merge-contacts.d.mts.map +1 -0
- package/dist/actions/merge-contacts.mjs +19 -0
- package/dist/actions/merge-contacts.mjs.map +1 -0
- package/dist/actions/send-contact-verification-email.cjs +23 -0
- package/dist/actions/send-contact-verification-email.cjs.map +1 -0
- package/dist/actions/send-contact-verification-email.d.cts +9 -0
- package/dist/actions/send-contact-verification-email.d.cts.map +1 -0
- package/dist/actions/send-contact-verification-email.d.mts +9 -0
- package/dist/actions/send-contact-verification-email.d.mts.map +1 -0
- package/dist/actions/send-contact-verification-email.mjs +22 -0
- package/dist/actions/send-contact-verification-email.mjs.map +1 -0
- package/dist/actions/update-bookings.cjs +35 -0
- package/dist/actions/update-bookings.cjs.map +1 -0
- package/dist/actions/update-bookings.d.cts +9 -0
- package/dist/actions/update-bookings.d.cts.map +1 -0
- package/dist/actions/update-bookings.d.mts +9 -0
- package/dist/actions/update-bookings.d.mts.map +1 -0
- package/dist/actions/update-bookings.mjs +32 -0
- package/dist/actions/update-bookings.mjs.map +1 -0
- package/dist/actions/update-contact-identifiers.cjs +30 -0
- package/dist/actions/update-contact-identifiers.cjs.map +1 -0
- package/dist/actions/update-contact-identifiers.d.cts +9 -0
- package/dist/actions/update-contact-identifiers.d.cts.map +1 -0
- package/dist/actions/update-contact-identifiers.d.mts +9 -0
- package/dist/actions/update-contact-identifiers.d.mts.map +1 -0
- package/dist/actions/update-contact-identifiers.mjs +29 -0
- package/dist/actions/update-contact-identifiers.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +17 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +18 -0
- package/package.json +49 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-forms.d.ts
|
|
4
|
+
declare const PiggyListFormsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyListFormsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyListForms };
|
|
9
|
+
//# sourceMappingURL=list-forms.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAA8F;AAAA,cAQrH,oBAAA,EAAsB,CAAA,CAAE,UAGY;AAAA,cAEpC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-forms.ts
|
|
4
|
+
const PiggyListFormsInput = z.object({}).describe("Request model for listing forms. No parameters required.");
|
|
5
|
+
const PiggyListForms_FormDataSchema = z.object({
|
|
6
|
+
url: z.string().describe("URL of the form"),
|
|
7
|
+
name: z.string().describe("Name of the form"),
|
|
8
|
+
type: z.string().describe("Type of the form"),
|
|
9
|
+
uuid: z.string().describe("Unique identifier of the form"),
|
|
10
|
+
status: z.string().describe("Status of the form")
|
|
11
|
+
}).describe("Individual form object in the response.");
|
|
12
|
+
const piggyListForms = action("PIGGY_LIST_FORMS", {
|
|
13
|
+
slug: "piggy-list-forms",
|
|
14
|
+
name: "List Forms",
|
|
15
|
+
description: "Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.",
|
|
16
|
+
input: PiggyListFormsInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
data: z.array(PiggyListForms_FormDataSchema).describe("List of form objects"),
|
|
19
|
+
meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
|
|
20
|
+
}).describe("Response schema for listing forms.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { piggyListForms };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=list-forms.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-forms.mjs","names":[],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListFormsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing forms. No parameters required.\");\nconst PiggyListForms_FormDataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the form\"),\n name: z.string().describe(\"Name of the form\"),\n type: z.string().describe(\"Type of the form\"),\n uuid: z.string().describe(\"Unique identifier of the form\"),\n status: z.string().describe(\"Status of the form\"),\n}).describe(\"Individual form object in the response.\");\nexport const PiggyListFormsOutput: z.ZodTypeAny = z.object({\n data: z.array(PiggyListForms_FormDataSchema).describe(\"List of form objects\"),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for listing forms.\");\n\nexport const piggyListForms = action(\"PIGGY_LIST_FORMS\", {\n slug: \"piggy-list-forms\",\n name: \"List Forms\",\n description: \"Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.\",\n input: PiggyListFormsInput,\n output: PiggyListFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACjI,MAAM,gCAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAClD,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAMrD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sBAAsB;EAC5E,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-perks.ts
|
|
4
|
+
const PiggyListPerksInput = zod.z.object({}).describe("Request model for listing perks. This endpoint requires no parameters.");
|
|
5
|
+
const PiggyListPerks_PerkDataSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Internal name of the perk").nullable().optional(),
|
|
7
|
+
uuid: zod.z.string().describe("Unique identifier for the perk").nullable().optional(),
|
|
8
|
+
label: zod.z.string().describe("Display label of the perk").nullable().optional(),
|
|
9
|
+
options: zod.z.array(zod.z.union([zod.z.string(), zod.z.object({})])).describe("Available options for the perk if applicable").nullable().optional(),
|
|
10
|
+
data_type: zod.z.string().describe("Data type of the perk (e.g., single_select, boolean)").nullable().optional()
|
|
11
|
+
}).describe("Individual perk object containing perk details.");
|
|
12
|
+
const PiggyListPerksOutput = zod.z.object({
|
|
13
|
+
data: zod.z.array(PiggyListPerks_PerkDataSchema).describe("List of available perks").nullable().optional(),
|
|
14
|
+
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the response").nullable().optional()
|
|
15
|
+
}).describe("Response model for listing perks.");
|
|
16
|
+
const piggyListPerks = require_action.action("PIGGY_LIST_PERKS", {
|
|
17
|
+
slug: "piggy-list-perks",
|
|
18
|
+
name: "List Perks",
|
|
19
|
+
description: "Tool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions.",
|
|
20
|
+
input: PiggyListPerksInput,
|
|
21
|
+
output: PiggyListPerksOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.piggyListPerks = piggyListPerks;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=list-perks.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-perks.cjs","names":["z","action"],"sources":["../../src/actions/list-perks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListPerksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing perks. This endpoint requires no parameters.\");\nconst PiggyListPerks_PerkDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Internal name of the perk\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the perk\").nullable().optional(),\n label: z.string().describe(\"Display label of the perk\").nullable().optional(),\n options: z.array(z.union([z.string(), z.object({})])).describe(\"Available options for the perk if applicable\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the perk (e.g., single_select, boolean)\").nullable().optional(),\n}).describe(\"Individual perk object containing perk details.\");\nexport const PiggyListPerksOutput: z.ZodTypeAny = z.object({\n data: z.array(PiggyListPerks_PerkDataSchema).describe(\"List of available perks\").nullable().optional(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\").nullable().optional(),\n}).describe(\"Response model for listing perks.\");\n\nexport const piggyListPerks = action(\"PIGGY_LIST_PERKS\", {\n slug: \"piggy-list-perks\",\n name: \"List Perks\",\n description: \"Tool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions.\",\n input: PiggyListPerksInput,\n output: PiggyListPerksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAC/I,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-perks.d.ts
|
|
4
|
+
declare const PiggyListPerksInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyListPerksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyListPerks };
|
|
9
|
+
//# sourceMappingURL=list-perks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-perks.d.cts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAA4G;AAAA,cAQnI,oBAAA,EAAsB,CAAA,CAAE,UAGW;AAAA,cAEnC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-perks.d.ts
|
|
4
|
+
declare const PiggyListPerksInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyListPerksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyListPerks };
|
|
9
|
+
//# sourceMappingURL=list-perks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-perks.d.mts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAA4G;AAAA,cAQnI,oBAAA,EAAsB,CAAA,CAAE,UAGW;AAAA,cAEnC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-perks.ts
|
|
4
|
+
const PiggyListPerksInput = z.object({}).describe("Request model for listing perks. This endpoint requires no parameters.");
|
|
5
|
+
const PiggyListPerks_PerkDataSchema = z.object({
|
|
6
|
+
name: z.string().describe("Internal name of the perk").nullable().optional(),
|
|
7
|
+
uuid: z.string().describe("Unique identifier for the perk").nullable().optional(),
|
|
8
|
+
label: z.string().describe("Display label of the perk").nullable().optional(),
|
|
9
|
+
options: z.array(z.union([z.string(), z.object({})])).describe("Available options for the perk if applicable").nullable().optional(),
|
|
10
|
+
data_type: z.string().describe("Data type of the perk (e.g., single_select, boolean)").nullable().optional()
|
|
11
|
+
}).describe("Individual perk object containing perk details.");
|
|
12
|
+
const piggyListPerks = action("PIGGY_LIST_PERKS", {
|
|
13
|
+
slug: "piggy-list-perks",
|
|
14
|
+
name: "List Perks",
|
|
15
|
+
description: "Tool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions.",
|
|
16
|
+
input: PiggyListPerksInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
data: z.array(PiggyListPerks_PerkDataSchema).describe("List of available perks").nullable().optional(),
|
|
19
|
+
meta: z.record(z.string(), z.unknown()).describe("Metadata about the response").nullable().optional()
|
|
20
|
+
}).describe("Response model for listing perks.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { piggyListPerks };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=list-perks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-perks.mjs","names":[],"sources":["../../src/actions/list-perks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListPerksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing perks. This endpoint requires no parameters.\");\nconst PiggyListPerks_PerkDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Internal name of the perk\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the perk\").nullable().optional(),\n label: z.string().describe(\"Display label of the perk\").nullable().optional(),\n options: z.array(z.union([z.string(), z.object({})])).describe(\"Available options for the perk if applicable\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the perk (e.g., single_select, boolean)\").nullable().optional(),\n}).describe(\"Individual perk object containing perk details.\");\nexport const PiggyListPerksOutput: z.ZodTypeAny = z.object({\n data: z.array(PiggyListPerks_PerkDataSchema).describe(\"List of available perks\").nullable().optional(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\").nullable().optional(),\n}).describe(\"Response model for listing perks.\");\n\nexport const piggyListPerks = action(\"PIGGY_LIST_PERKS\", {\n slug: \"piggy-list-perks\",\n name: \"List Perks\",\n description: \"Tool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions.\",\n input: PiggyListPerksInput,\n output: PiggyListPerksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAC/I,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAM7D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/merge-contacts.ts
|
|
4
|
+
const PiggyMergeContactsInput = zod.z.object({
|
|
5
|
+
source_contact_uuid: zod.z.string().describe("UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact."),
|
|
6
|
+
destination_contact_uuid: zod.z.string().describe("UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.")
|
|
7
|
+
}).describe("Request model for merging two Piggy contacts.");
|
|
8
|
+
const PiggyMergeContactsOutput = zod.z.object({
|
|
9
|
+
data: zod.z.array(zod.z.string()).nullable(),
|
|
10
|
+
meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
|
|
11
|
+
}).describe("Response model for merging contacts. The merge operation is queued and processed asynchronously.");
|
|
12
|
+
const piggyMergeContacts = require_action.action("PIGGY_MERGE_CONTACTS", {
|
|
13
|
+
slug: "piggy-merge-contacts",
|
|
14
|
+
name: "Merge Contacts",
|
|
15
|
+
description: "Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.",
|
|
16
|
+
input: PiggyMergeContactsInput,
|
|
17
|
+
output: PiggyMergeContactsOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.piggyMergeContacts = piggyMergeContacts;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=merge-contacts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-contacts.cjs","names":["z","action"],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyMergeContactsInput: z.ZodTypeAny = z.object({\n source_contact_uuid: z.string().describe(\"UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact.\"),\n destination_contact_uuid: z.string().describe(\"UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.\"),\n}).describe(\"Request model for merging two Piggy contacts.\");\nexport const PiggyMergeContactsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.string()).nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts = action(\"PIGGY_MERGE_CONTACTS\", {\n slug: \"piggy-merge-contacts\",\n name: \"Merge Contacts\",\n description: \"Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.\",\n input: PiggyMergeContactsInput,\n output: PiggyMergeContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9L,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;AAChL,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACnC,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,kGAAkG;AAE9G,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/merge-contacts.d.ts
|
|
4
|
+
declare const PiggyMergeContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyMergeContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyMergeContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyMergeContacts };
|
|
9
|
+
//# sourceMappingURL=merge-contacts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-contacts.d.cts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGoB;AAAA,cAC/C,wBAAA,EAA0B,CAAA,CAAE,UAGsE;AAAA,cAElG,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/merge-contacts.d.ts
|
|
4
|
+
declare const PiggyMergeContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyMergeContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyMergeContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyMergeContacts };
|
|
9
|
+
//# sourceMappingURL=merge-contacts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-contacts.d.mts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGoB;AAAA,cAC/C,wBAAA,EAA0B,CAAA,CAAE,UAGsE;AAAA,cAElG,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const piggyMergeContacts = action("PIGGY_MERGE_CONTACTS", {
|
|
4
|
+
slug: "piggy-merge-contacts",
|
|
5
|
+
name: "Merge Contacts",
|
|
6
|
+
description: "Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
source_contact_uuid: z.string().describe("UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact."),
|
|
9
|
+
destination_contact_uuid: z.string().describe("UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.")
|
|
10
|
+
}).describe("Request model for merging two Piggy contacts."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
data: z.array(z.string()).nullable(),
|
|
13
|
+
meta: z.array(z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
|
|
14
|
+
}).describe("Response model for merging contacts. The merge operation is queued and processed asynchronously.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { piggyMergeContacts };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=merge-contacts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-contacts.mjs","names":[],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyMergeContactsInput: z.ZodTypeAny = z.object({\n source_contact_uuid: z.string().describe(\"UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact.\"),\n destination_contact_uuid: z.string().describe(\"UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.\"),\n}).describe(\"Request model for merging two Piggy contacts.\");\nexport const PiggyMergeContactsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.string()).nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts = action(\"PIGGY_MERGE_CONTACTS\", {\n slug: \"piggy-merge-contacts\",\n name: \"Merge Contacts\",\n description: \"Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.\",\n input: PiggyMergeContactsInput,\n output: PiggyMergeContactsOutput,\n});\n"],"mappings":";;AAaA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbmD,EAAE,OAAO;EAC5D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9L,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAChL,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACnC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,kGAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/send-contact-verification-email.ts
|
|
4
|
+
const PiggySendContactVerificationEmailInput = zod.z.object({ email: zod.z.string().describe("Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.") }).describe("Request body to send a verification email to a Piggy contact.");
|
|
5
|
+
const PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = zod.z.object({
|
|
6
|
+
type: zod.z.string().describe("Result type indicating operation status (typically 'success')."),
|
|
7
|
+
message: zod.z.string().describe("Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.")
|
|
8
|
+
}).describe("Data returned after sending a verification email.");
|
|
9
|
+
const PiggySendContactVerificationEmailOutput = zod.z.object({
|
|
10
|
+
data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),
|
|
11
|
+
meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Additional metadata about the response, usually empty.")
|
|
12
|
+
}).describe("Response model for sending a contact verification email.");
|
|
13
|
+
const piggySendContactVerificationEmail = require_action.action("PIGGY_SEND_CONTACT_VERIFICATION_EMAIL", {
|
|
14
|
+
slug: "piggy-send-contact-verification-email",
|
|
15
|
+
name: "Send Contact Verification Email",
|
|
16
|
+
description: "Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.",
|
|
17
|
+
input: PiggySendContactVerificationEmailInput,
|
|
18
|
+
output: PiggySendContactVerificationEmailOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.piggySendContactVerificationEmail = piggySendContactVerificationEmail;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=send-contact-verification-email.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.cjs","names":["z","action"],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggySendContactVerificationEmailInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\"),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\"),\n}).describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput: z.ZodTypeAny = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAAyFA,IAAAA,EAAE,OAAO;CACtG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAC5L,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAM,yEAAyE,SAAS;CACxF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpH,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-contact-verification-email.d.ts
|
|
4
|
+
declare const PiggySendContactVerificationEmailInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggySendContactVerificationEmailOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggySendContactVerificationEmail };
|
|
9
|
+
//# sourceMappingURL=send-contact-verification-email.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEqB;AAAA,cAK/D,uCAAA,EAAyC,CAAA,CAAE,UAGe;AAAA,cAE1D,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-contact-verification-email.d.ts
|
|
4
|
+
declare const PiggySendContactVerificationEmailInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggySendContactVerificationEmailOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggySendContactVerificationEmail };
|
|
9
|
+
//# sourceMappingURL=send-contact-verification-email.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEqB;AAAA,cAK/D,uCAAA,EAAyC,CAAA,CAAE,UAGe;AAAA,cAE1D,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/send-contact-verification-email.ts
|
|
4
|
+
const PiggySendContactVerificationEmailInput = z.object({ email: z.string().describe("Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.") }).describe("Request body to send a verification email to a Piggy contact.");
|
|
5
|
+
const PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = z.object({
|
|
6
|
+
type: z.string().describe("Result type indicating operation status (typically 'success')."),
|
|
7
|
+
message: z.string().describe("Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.")
|
|
8
|
+
}).describe("Data returned after sending a verification email.");
|
|
9
|
+
const piggySendContactVerificationEmail = action("PIGGY_SEND_CONTACT_VERIFICATION_EMAIL", {
|
|
10
|
+
slug: "piggy-send-contact-verification-email",
|
|
11
|
+
name: "Send Contact Verification Email",
|
|
12
|
+
description: "Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.",
|
|
13
|
+
input: PiggySendContactVerificationEmailInput,
|
|
14
|
+
output: z.object({
|
|
15
|
+
data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),
|
|
16
|
+
meta: z.array(z.record(z.string(), z.unknown())).describe("Additional metadata about the response, usually empty.")
|
|
17
|
+
}).describe("Response model for sending a contact verification email.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { piggySendContactVerificationEmail };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=send-contact-verification-email.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.mjs","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggySendContactVerificationEmailInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\"),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\"),\n}).describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput: z.ZodTypeAny = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO,EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAAyF,EAAE,OAAO;CACtG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAC5L,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmE,EAAE,OAAO;EAC5E,MAAM,yEAAyE,SAAS;EACxF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACpH,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-bookings.ts
|
|
4
|
+
const PiggyUpdateBookingsInput = zod.z.object({
|
|
5
|
+
source: zod.z.string().describe("Source from where the Booking was created").optional(),
|
|
6
|
+
status: zod.z.enum([
|
|
7
|
+
"created",
|
|
8
|
+
"in_progress",
|
|
9
|
+
"canceled",
|
|
10
|
+
"completed"
|
|
11
|
+
]).describe("Booking status values.").optional(),
|
|
12
|
+
ends_at: zod.z.string().describe("The end date and time of the Booking in ISO 8601 format").optional(),
|
|
13
|
+
starts_at: zod.z.string().describe("The start date and time of the Booking in ISO 8601 format").optional(),
|
|
14
|
+
external_id: zod.z.string().describe("External identifier for the Booking").optional(),
|
|
15
|
+
booking_uuid: zod.z.string().describe("The UUID of the Booking to update"),
|
|
16
|
+
company_name: zod.z.string().describe("Company name associated with the booking").optional(),
|
|
17
|
+
checked_in_at: zod.z.string().describe("The date and time when the party checked into the booking in ISO 8601 format").optional(),
|
|
18
|
+
prepaid_amount: zod.z.number().int().describe("Amount prepaid (in cents) prior to booking start").optional(),
|
|
19
|
+
number_of_people: zod.z.number().int().describe("Party size for the booking").optional()
|
|
20
|
+
}).describe("Request schema for updating a booking.");
|
|
21
|
+
const PiggyUpdateBookingsOutput = zod.z.object({
|
|
22
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Updated booking data"),
|
|
23
|
+
meta: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())])
|
|
24
|
+
}).describe("Response schema for updating a booking.");
|
|
25
|
+
const piggyUpdateBookings = require_action.action("PIGGY_UPDATE_BOOKINGS", {
|
|
26
|
+
slug: "piggy-update-bookings",
|
|
27
|
+
name: "Update Bookings",
|
|
28
|
+
description: "Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.",
|
|
29
|
+
input: PiggyUpdateBookingsInput,
|
|
30
|
+
output: PiggyUpdateBookingsOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.piggyUpdateBookings = piggyUpdateBookings;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=update-bookings.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-bookings.cjs","names":["z","action"],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateBookingsInput: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;CACvE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-bookings.d.ts
|
|
4
|
+
declare const PiggyUpdateBookingsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyUpdateBookingsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyUpdateBookings };
|
|
9
|
+
//# sourceMappingURL=update-bookings.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAWY;AAAA,cACxC,yBAAA,EAA2B,CAAA,CAAE,UAGY;AAAA,cAEzC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-bookings.d.ts
|
|
4
|
+
declare const PiggyUpdateBookingsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyUpdateBookingsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyUpdateBookings };
|
|
9
|
+
//# sourceMappingURL=update-bookings.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-bookings.d.mts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAWY;AAAA,cACxC,yBAAA,EAA2B,CAAA,CAAE,UAGY;AAAA,cAEzC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const piggyUpdateBookings = action("PIGGY_UPDATE_BOOKINGS", {
|
|
4
|
+
slug: "piggy-update-bookings",
|
|
5
|
+
name: "Update Bookings",
|
|
6
|
+
description: "Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
source: z.string().describe("Source from where the Booking was created").optional(),
|
|
9
|
+
status: z.enum([
|
|
10
|
+
"created",
|
|
11
|
+
"in_progress",
|
|
12
|
+
"canceled",
|
|
13
|
+
"completed"
|
|
14
|
+
]).describe("Booking status values.").optional(),
|
|
15
|
+
ends_at: z.string().describe("The end date and time of the Booking in ISO 8601 format").optional(),
|
|
16
|
+
starts_at: z.string().describe("The start date and time of the Booking in ISO 8601 format").optional(),
|
|
17
|
+
external_id: z.string().describe("External identifier for the Booking").optional(),
|
|
18
|
+
booking_uuid: z.string().describe("The UUID of the Booking to update"),
|
|
19
|
+
company_name: z.string().describe("Company name associated with the booking").optional(),
|
|
20
|
+
checked_in_at: z.string().describe("The date and time when the party checked into the booking in ISO 8601 format").optional(),
|
|
21
|
+
prepaid_amount: z.number().int().describe("Amount prepaid (in cents) prior to booking start").optional(),
|
|
22
|
+
number_of_people: z.number().int().describe("Party size for the booking").optional()
|
|
23
|
+
}).describe("Request schema for updating a booking."),
|
|
24
|
+
output: z.object({
|
|
25
|
+
data: z.record(z.string(), z.unknown()).describe("Updated booking data"),
|
|
26
|
+
meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())])
|
|
27
|
+
}).describe("Response schema for updating a booking.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { piggyUpdateBookings };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=update-bookings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-bookings.mjs","names":[],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateBookingsInput: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAe;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;EACvE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-contact-identifiers.ts
|
|
4
|
+
const PiggyUpdateContactIdentifiersInput = zod.z.object({
|
|
5
|
+
contact_identifier_name: zod.z.string().describe("Display name of the contact identifier. Use this to update the human-readable label.").optional(),
|
|
6
|
+
contact_identifier_value: zod.z.string().describe("The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself."),
|
|
7
|
+
contact_identifier_active: zod.z.boolean().describe("Active state of the contact identifier. Set to false to deactivate, true to activate.").optional()
|
|
8
|
+
}).describe("Request body to update a contact identifier in Piggy.");
|
|
9
|
+
const PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = zod.z.object({
|
|
10
|
+
name: zod.z.string().describe("Display name of the contact identifier").nullable().optional(),
|
|
11
|
+
value: zod.z.string().describe("The unique value of the contact identifier"),
|
|
12
|
+
active: zod.z.boolean().describe("Active state of the contact identifier"),
|
|
13
|
+
contact: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Associated contact information (if linked)").nullable().optional(),
|
|
14
|
+
"default": zod.z.boolean().describe("Whether this is the default contact identifier")
|
|
15
|
+
}).describe("Data returned after updating a contact identifier.");
|
|
16
|
+
const PiggyUpdateContactIdentifiersOutput = zod.z.object({
|
|
17
|
+
data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),
|
|
18
|
+
meta: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())])
|
|
19
|
+
}).describe("Response model for updating contact identifiers.");
|
|
20
|
+
const piggyUpdateContactIdentifiers = require_action.action("PIGGY_UPDATE_CONTACT_IDENTIFIERS", {
|
|
21
|
+
slug: "piggy-update-contact-identifiers",
|
|
22
|
+
name: "Update Contact Identifiers",
|
|
23
|
+
description: "Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.",
|
|
24
|
+
input: PiggyUpdateContactIdentifiersInput,
|
|
25
|
+
output: PiggyUpdateContactIdentifiersOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.piggyUpdateContactIdentifiers = piggyUpdateContactIdentifiers;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=update-contact-identifiers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-identifiers.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateContactIdentifiersInput: z.ZodTypeAny = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\"),\n active: z.boolean().describe(\"Active state of the contact identifier\"),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\"),\n}).describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput: z.ZodTypeAny = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA0EA,IAAAA,EAAE,OAAO;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAClF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAM,0DAA0D,SAAS;CACzE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact-identifiers.d.ts
|
|
4
|
+
declare const PiggyUpdateContactIdentifiersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyUpdateContactIdentifiersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyUpdateContactIdentifiers };
|
|
9
|
+
//# sourceMappingURL=update-contact-identifiers.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-identifiers.d.cts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIiB;AAAA,cAQvD,mCAAA,EAAqC,CAAA,CAAE,UAGW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact-identifiers.d.ts
|
|
4
|
+
declare const PiggyUpdateContactIdentifiersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PiggyUpdateContactIdentifiersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { piggyUpdateContactIdentifiers };
|
|
9
|
+
//# sourceMappingURL=update-contact-identifiers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-identifiers.d.mts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIiB;AAAA,cAQvD,mCAAA,EAAqC,CAAA,CAAE,UAGW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-contact-identifiers.ts
|
|
4
|
+
const PiggyUpdateContactIdentifiersInput = z.object({
|
|
5
|
+
contact_identifier_name: z.string().describe("Display name of the contact identifier. Use this to update the human-readable label.").optional(),
|
|
6
|
+
contact_identifier_value: z.string().describe("The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself."),
|
|
7
|
+
contact_identifier_active: z.boolean().describe("Active state of the contact identifier. Set to false to deactivate, true to activate.").optional()
|
|
8
|
+
}).describe("Request body to update a contact identifier in Piggy.");
|
|
9
|
+
const PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({
|
|
10
|
+
name: z.string().describe("Display name of the contact identifier").nullable().optional(),
|
|
11
|
+
value: z.string().describe("The unique value of the contact identifier"),
|
|
12
|
+
active: z.boolean().describe("Active state of the contact identifier"),
|
|
13
|
+
contact: z.record(z.string(), z.unknown()).describe("Associated contact information (if linked)").nullable().optional(),
|
|
14
|
+
"default": z.boolean().describe("Whether this is the default contact identifier")
|
|
15
|
+
}).describe("Data returned after updating a contact identifier.");
|
|
16
|
+
const piggyUpdateContactIdentifiers = action("PIGGY_UPDATE_CONTACT_IDENTIFIERS", {
|
|
17
|
+
slug: "piggy-update-contact-identifiers",
|
|
18
|
+
name: "Update Contact Identifiers",
|
|
19
|
+
description: "Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.",
|
|
20
|
+
input: PiggyUpdateContactIdentifiersInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),
|
|
23
|
+
meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())])
|
|
24
|
+
}).describe("Response model for updating contact identifiers.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { piggyUpdateContactIdentifiers };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=update-contact-identifiers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-identifiers.mjs","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateContactIdentifiersInput: z.ZodTypeAny = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\"),\n active: z.boolean().describe(\"Active state of the contact identifier\"),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\"),\n}).describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput: z.ZodTypeAny = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA0E,EAAE,OAAO;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAClF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAMhE,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+D,EAAE,OAAO;EACxE,MAAM,0DAA0D,SAAS;EACzE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const piggy = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,SAAA,uCAAA,CAAA,CAAA,UAAA,CAAkB;CAC7B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
|