@keystrokehq/piggy 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.cts +15 -3
- package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.mts +15 -3
- package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
- package/dist/actions/create-contact-attribute.cjs +8 -8
- package/dist/actions/create-contact-attribute.cjs.map +1 -1
- package/dist/actions/create-contact-attribute.d.cts +59 -3
- package/dist/actions/create-contact-attribute.d.cts.map +1 -1
- package/dist/actions/create-contact-attribute.d.mts +59 -3
- package/dist/actions/create-contact-attribute.d.mts.map +1 -1
- package/dist/actions/create-contact-attribute.mjs +8 -8
- package/dist/actions/create-contact-attribute.mjs.map +1 -1
- package/dist/actions/create-credit-reception.cjs.map +1 -1
- package/dist/actions/create-credit-reception.d.cts +16 -3
- package/dist/actions/create-credit-reception.d.cts.map +1 -1
- package/dist/actions/create-credit-reception.d.mts +16 -3
- package/dist/actions/create-credit-reception.d.mts.map +1 -1
- package/dist/actions/create-credit-reception.mjs.map +1 -1
- package/dist/actions/create-vouchers-batch.cjs +5 -5
- package/dist/actions/create-vouchers-batch.cjs.map +1 -1
- package/dist/actions/create-vouchers-batch.d.cts +32 -3
- package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
- package/dist/actions/create-vouchers-batch.d.mts +32 -3
- package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
- package/dist/actions/create-vouchers-batch.mjs +5 -5
- package/dist/actions/create-vouchers-batch.mjs.map +1 -1
- package/dist/actions/find-or-create-products.cjs +4 -4
- package/dist/actions/find-or-create-products.cjs.map +1 -1
- package/dist/actions/find-or-create-products.d.cts +31 -3
- package/dist/actions/find-or-create-products.d.cts.map +1 -1
- package/dist/actions/find-or-create-products.d.mts +31 -3
- package/dist/actions/find-or-create-products.d.mts.map +1 -1
- package/dist/actions/find-or-create-products.mjs +4 -4
- package/dist/actions/find-or-create-products.mjs.map +1 -1
- package/dist/actions/find-voucher-by-code.cjs +2 -2
- package/dist/actions/find-voucher-by-code.cjs.map +1 -1
- package/dist/actions/find-voucher-by-code.d.cts +33 -3
- package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
- package/dist/actions/find-voucher-by-code.d.mts +33 -3
- package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
- package/dist/actions/find-voucher-by-code.mjs +2 -2
- package/dist/actions/find-voucher-by-code.mjs.map +1 -1
- package/dist/actions/get-contact-auth-token.cjs +1 -1
- package/dist/actions/get-contact-auth-token.cjs.map +1 -1
- package/dist/actions/get-contact-auth-token.d.cts +12 -3
- package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
- package/dist/actions/get-contact-auth-token.d.mts +12 -3
- package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
- package/dist/actions/get-contact-auth-token.mjs +1 -1
- package/dist/actions/get-contact-auth-token.mjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.cts +12 -3
- package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.mts +12 -3
- package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
- package/dist/actions/get-contacts-credit-balance.mjs +1 -1
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
- package/dist/actions/list-forms.cjs +5 -5
- package/dist/actions/list-forms.cjs.map +1 -1
- package/dist/actions/list-forms.d.cts +12 -3
- package/dist/actions/list-forms.d.cts.map +1 -1
- package/dist/actions/list-forms.d.mts +12 -3
- package/dist/actions/list-forms.d.mts.map +1 -1
- package/dist/actions/list-forms.mjs +5 -5
- package/dist/actions/list-forms.mjs.map +1 -1
- package/dist/actions/list-perks.cjs.map +1 -1
- package/dist/actions/list-perks.d.cts +12 -3
- package/dist/actions/list-perks.d.cts.map +1 -1
- package/dist/actions/list-perks.d.mts +12 -3
- package/dist/actions/list-perks.d.mts.map +1 -1
- package/dist/actions/list-perks.mjs.map +1 -1
- package/dist/actions/merge-contacts.cjs.map +1 -1
- package/dist/actions/merge-contacts.d.cts +12 -3
- package/dist/actions/merge-contacts.d.cts.map +1 -1
- package/dist/actions/merge-contacts.d.mts +12 -3
- package/dist/actions/merge-contacts.d.mts.map +1 -1
- package/dist/actions/merge-contacts.mjs.map +1 -1
- package/dist/actions/send-contact-verification-email.cjs +2 -2
- package/dist/actions/send-contact-verification-email.cjs.map +1 -1
- package/dist/actions/send-contact-verification-email.d.cts +13 -3
- package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
- package/dist/actions/send-contact-verification-email.d.mts +13 -3
- package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
- package/dist/actions/send-contact-verification-email.mjs +2 -2
- package/dist/actions/send-contact-verification-email.mjs.map +1 -1
- package/dist/actions/update-bookings.cjs.map +1 -1
- package/dist/actions/update-bookings.d.cts +33 -3
- package/dist/actions/update-bookings.d.cts.map +1 -1
- package/dist/actions/update-bookings.d.mts +33 -3
- package/dist/actions/update-bookings.d.mts.map +1 -1
- package/dist/actions/update-bookings.mjs.map +1 -1
- package/dist/actions/update-contact-identifiers.cjs +3 -3
- package/dist/actions/update-contact-identifiers.cjs.map +1 -1
- package/dist/actions/update-contact-identifiers.d.cts +20 -3
- package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
- package/dist/actions/update-contact-identifiers.d.mts +20 -3
- package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
- package/dist/actions/update-contact-identifiers.mjs +3 -3
- package/dist/actions/update-contact-identifiers.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contacts-credit-balance.d.ts
|
|
4
|
-
declare const PiggyGetContactsCreditBalanceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyGetContactsCreditBalanceInput: z.ZodObject<{
|
|
5
|
+
contact_uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PiggyGetContactsCreditBalanceOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
balance: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
meta: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
contact_uuid: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyGetContactsCreditBalance };
|
|
9
18
|
//# sourceMappingURL=get-contacts-credit-balance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-credit-balance.d.mts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-contacts-credit-balance.d.mts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAMlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/get-contacts-credit-balance.ts
|
|
4
4
|
const PiggyGetContactsCreditBalanceInput = z.object({ contact_uuid: z.string().describe("The UUID of the Contact for which to retrieve the credit balance") }).describe("Path parameter for fetching a Contact's credit balance by UUID.");
|
|
5
|
-
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({ balance: z.number().int().describe("The current credit balance amount for the contact") }).describe("Credit balance data containing the current balance amount.");
|
|
5
|
+
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({ balance: z.number().int().describe("The current credit balance amount for the contact").nullable() }).describe("Credit balance data containing the current balance amount.");
|
|
6
6
|
const piggyGetContactsCreditBalance = action("PIGGY_GET_CONTACTS_CREDIT_BALANCE", {
|
|
7
7
|
slug: "piggy-get-contacts-credit-balance",
|
|
8
8
|
name: "Get Contact's Credit Balance",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-credit-balance.mjs","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactsCreditBalanceInput
|
|
1
|
+
{"version":3,"file":"get-contacts-credit-balance.mjs","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactsCreditBalanceInput = z.object({\n contact_uuid: z.string().describe(\"The UUID of the Contact for which to retrieve the credit balance\"),\n}).describe(\"Path parameter for fetching a Contact's credit balance by UUID.\");\nconst PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\").nullable(),\n}).describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput = z.object({\n data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),\n meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]),\n}).describe(\"Response schema for Contact credit balance retrieval.\");\n\nexport const piggyGetContactsCreditBalance = action(\"PIGGY_GET_CONTACTS_CREDIT_BALANCE\", {\n slug: \"piggy-get-contacts-credit-balance\",\n name: \"Get Contact's Credit Balance\",\n description: \"Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.\",\n input: PiggyGetContactsCreditBalanceInput,\n output: PiggyGetContactsCreditBalanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAMxE,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,sDAAsD,SAAS;EACrE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC/F,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -3,11 +3,11 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-forms.ts
|
|
4
4
|
const PiggyListFormsInput = zod.z.object({}).describe("Request model for listing forms. No parameters required.");
|
|
5
5
|
const PiggyListForms_FormDataSchema = zod.z.object({
|
|
6
|
-
url: zod.z.string().describe("URL of the form"),
|
|
7
|
-
name: zod.z.string().describe("Name of the form"),
|
|
8
|
-
type: zod.z.string().describe("Type of the form"),
|
|
9
|
-
uuid: zod.z.string().describe("Unique identifier of the form"),
|
|
10
|
-
status: zod.z.string().describe("Status of the form")
|
|
6
|
+
url: zod.z.string().describe("URL of the form").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the form").nullable(),
|
|
8
|
+
type: zod.z.string().describe("Type of the form").nullable(),
|
|
9
|
+
uuid: zod.z.string().describe("Unique identifier of the form").nullable(),
|
|
10
|
+
status: zod.z.string().describe("Status of the form").nullable()
|
|
11
11
|
}).describe("Individual form object in the response.");
|
|
12
12
|
const PiggyListFormsOutput = zod.z.object({
|
|
13
13
|
data: zod.z.array(PiggyListForms_FormDataSchema).describe("List of form objects"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListFormsInput
|
|
1
|
+
{"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListFormsInput = z.object({}).describe(\"Request model for listing forms. No parameters required.\");\nconst PiggyListForms_FormDataSchema = z.object({\n url: z.string().describe(\"URL of the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n type: z.string().describe(\"Type of the form\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form\").nullable(),\n status: z.string().describe(\"Status of the form\").nullable(),\n}).describe(\"Individual form object in the response.\");\nexport const PiggyListFormsOutput = 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,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sBAAsB;CAC5E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-forms.d.ts
|
|
4
|
-
declare const PiggyListFormsInput: z.
|
|
5
|
-
declare const PiggyListFormsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PiggyListFormsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PiggyListFormsOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
11
|
+
status: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyListForms };
|
|
9
18
|
//# sourceMappingURL=list-forms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-forms.d.ts
|
|
4
|
-
declare const PiggyListFormsInput: z.
|
|
5
|
-
declare const PiggyListFormsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PiggyListFormsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PiggyListFormsOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
11
|
+
status: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyListForms };
|
|
9
18
|
//# sourceMappingURL=list-forms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,11 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-forms.ts
|
|
4
4
|
const PiggyListFormsInput = z.object({}).describe("Request model for listing forms. No parameters required.");
|
|
5
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")
|
|
6
|
+
url: z.string().describe("URL of the form").nullable(),
|
|
7
|
+
name: z.string().describe("Name of the form").nullable(),
|
|
8
|
+
type: z.string().describe("Type of the form").nullable(),
|
|
9
|
+
uuid: z.string().describe("Unique identifier of the form").nullable(),
|
|
10
|
+
status: z.string().describe("Status of the form").nullable()
|
|
11
11
|
}).describe("Individual form object in the response.");
|
|
12
12
|
const piggyListForms = action("PIGGY_LIST_FORMS", {
|
|
13
13
|
slug: "piggy-list-forms",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for listing forms. No parameters required.\");\nconst PiggyListForms_FormDataSchema = z.object({\n url: z.string().describe(\"URL of the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n type: z.string().describe(\"Type of the form\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form\").nullable(),\n status: z.string().describe(\"Status of the form\").nullable(),\n}).describe(\"Individual form object in the response.\");\nexport const PiggyListFormsOutput = 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,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgC,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAMrD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkC,EAAE,OAAO;EAC3C,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"}
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for listing perks. This endpoint requires no parameters.\");\nconst PiggyListPerks_PerkDataSchema = 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.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,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACjI,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,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,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,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"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-perks.d.ts
|
|
4
|
-
declare const PiggyListPerksInput: z.
|
|
5
|
-
declare const PiggyListPerksOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PiggyListPerksInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PiggyListPerksOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$strip>]>>>>;
|
|
11
|
+
data_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>>>;
|
|
13
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyListPerks };
|
|
9
18
|
//# sourceMappingURL=list-perks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-perks.d.cts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-perks.d.cts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-perks.d.ts
|
|
4
|
-
declare const PiggyListPerksInput: z.
|
|
5
|
-
declare const PiggyListPerksOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PiggyListPerksInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PiggyListPerksOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$strip>]>>>>;
|
|
11
|
+
data_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>>>;
|
|
13
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyListPerks };
|
|
9
18
|
//# sourceMappingURL=list-perks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-perks.d.mts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-perks.d.mts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for listing perks. This endpoint requires no parameters.\");\nconst PiggyListPerks_PerkDataSchema = 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.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,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACjI,MAAM,gCAAgC,EAAE,OAAO;CAC7C,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,QAVkC,EAAE,OAAO;EAC3C,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"}
|
|
@@ -1 +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
|
|
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.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.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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/merge-contacts.d.ts
|
|
4
|
-
declare const PiggyMergeContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyMergeContactsInput: z.ZodObject<{
|
|
5
|
+
source_contact_uuid: z.ZodString;
|
|
6
|
+
destination_contact_uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PiggyMergeContactsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
10
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const piggyMergeContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
source_contact_uuid: string;
|
|
14
|
+
destination_contact_uuid: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyMergeContacts };
|
|
9
18
|
//# sourceMappingURL=merge-contacts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-contacts.d.cts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"merge-contacts.d.cts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/merge-contacts.d.ts
|
|
4
|
-
declare const PiggyMergeContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyMergeContactsInput: z.ZodObject<{
|
|
5
|
+
source_contact_uuid: z.ZodString;
|
|
6
|
+
destination_contact_uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PiggyMergeContactsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
10
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const piggyMergeContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
source_contact_uuid: string;
|
|
14
|
+
destination_contact_uuid: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { piggyMergeContacts };
|
|
9
18
|
//# sourceMappingURL=merge-contacts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-contacts.d.mts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"merge-contacts.d.mts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1 +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
|
|
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.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.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,OAbqC,EAAE,OAAO;EAC9C,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9L,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAChL,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVsC,EAAE,OAAO;EAC/C,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"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/send-contact-verification-email.ts
|
|
4
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
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.")
|
|
6
|
+
type: zod.z.string().describe("Result type indicating operation status (typically 'success').").nullable(),
|
|
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.").nullable()
|
|
8
8
|
}).describe("Data returned after sending a verification email.");
|
|
9
9
|
const PiggySendContactVerificationEmailOutput = zod.z.object({
|
|
10
10
|
data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),
|
|
@@ -1 +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
|
|
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.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.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\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.\").nullable(),\n}).describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = 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,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2EA,IAAAA,EAAE,OAAO;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,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"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/send-contact-verification-email.d.ts
|
|
4
|
-
declare const PiggySendContactVerificationEmailInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggySendContactVerificationEmailInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
email: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { piggySendContactVerificationEmail };
|
|
9
19
|
//# sourceMappingURL=send-contact-verification-email.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/send-contact-verification-email.d.ts
|
|
4
|
-
declare const PiggySendContactVerificationEmailInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggySendContactVerificationEmailInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
email: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { piggySendContactVerificationEmail };
|
|
9
19
|
//# sourceMappingURL=send-contact-verification-email.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/send-contact-verification-email.ts
|
|
4
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
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.")
|
|
6
|
+
type: z.string().describe("Result type indicating operation status (typically 'success').").nullable(),
|
|
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.").nullable()
|
|
8
8
|
}).describe("Data returned after sending a verification email.");
|
|
9
9
|
const piggySendContactVerificationEmail = action("PIGGY_SEND_CONTACT_VERIFICATION_EMAIL", {
|
|
10
10
|
slug: "piggy-send-contact-verification-email",
|
|
@@ -1 +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
|
|
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.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.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\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.\").nullable(),\n}).describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = 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,yCAAyC,EAAE,OAAO,EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2E,EAAE,OAAO;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,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"}
|
|
@@ -1 +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
|
|
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.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.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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-bookings.d.ts
|
|
4
|
-
declare const PiggyUpdateBookingsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyUpdateBookingsInput: z.ZodObject<{
|
|
5
|
+
source: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
created: "created";
|
|
8
|
+
in_progress: "in_progress";
|
|
9
|
+
canceled: "canceled";
|
|
10
|
+
completed: "completed";
|
|
11
|
+
}>>;
|
|
12
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
13
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
14
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
booking_uuid: z.ZodString;
|
|
16
|
+
company_name: z.ZodOptional<z.ZodString>;
|
|
17
|
+
checked_in_at: z.ZodOptional<z.ZodString>;
|
|
18
|
+
prepaid_amount: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
number_of_people: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PiggyUpdateBookingsOutput: z.ZodObject<{
|
|
22
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
booking_uuid: string;
|
|
27
|
+
source?: string | undefined;
|
|
28
|
+
status?: "created" | "in_progress" | "canceled" | "completed" | undefined;
|
|
29
|
+
ends_at?: string | undefined;
|
|
30
|
+
starts_at?: string | undefined;
|
|
31
|
+
external_id?: string | undefined;
|
|
32
|
+
company_name?: string | undefined;
|
|
33
|
+
checked_in_at?: string | undefined;
|
|
34
|
+
prepaid_amount?: number | undefined;
|
|
35
|
+
number_of_people?: number | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { piggyUpdateBookings };
|
|
9
39
|
//# sourceMappingURL=update-bookings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-bookings.d.ts
|
|
4
|
-
declare const PiggyUpdateBookingsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PiggyUpdateBookingsInput: z.ZodObject<{
|
|
5
|
+
source: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
created: "created";
|
|
8
|
+
in_progress: "in_progress";
|
|
9
|
+
canceled: "canceled";
|
|
10
|
+
completed: "completed";
|
|
11
|
+
}>>;
|
|
12
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
13
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
14
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
booking_uuid: z.ZodString;
|
|
16
|
+
company_name: z.ZodOptional<z.ZodString>;
|
|
17
|
+
checked_in_at: z.ZodOptional<z.ZodString>;
|
|
18
|
+
prepaid_amount: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
number_of_people: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PiggyUpdateBookingsOutput: z.ZodObject<{
|
|
22
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
booking_uuid: string;
|
|
27
|
+
source?: string | undefined;
|
|
28
|
+
status?: "created" | "in_progress" | "canceled" | "completed" | undefined;
|
|
29
|
+
ends_at?: string | undefined;
|
|
30
|
+
starts_at?: string | undefined;
|
|
31
|
+
external_id?: string | undefined;
|
|
32
|
+
company_name?: string | undefined;
|
|
33
|
+
checked_in_at?: string | undefined;
|
|
34
|
+
prepaid_amount?: number | undefined;
|
|
35
|
+
number_of_people?: number | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { piggyUpdateBookings };
|
|
9
39
|
//# sourceMappingURL=update-bookings.d.mts.map
|