@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.
Files changed (146) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/claim-anonymous-contact.cjs +26 -0
  7. package/dist/actions/claim-anonymous-contact.cjs.map +1 -0
  8. package/dist/actions/claim-anonymous-contact.d.cts +9 -0
  9. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -0
  10. package/dist/actions/claim-anonymous-contact.d.mts +9 -0
  11. package/dist/actions/claim-anonymous-contact.d.mts.map +1 -0
  12. package/dist/actions/claim-anonymous-contact.mjs +25 -0
  13. package/dist/actions/claim-anonymous-contact.mjs.map +1 -0
  14. package/dist/actions/create-contact-attribute.cjs +65 -0
  15. package/dist/actions/create-contact-attribute.cjs.map +1 -0
  16. package/dist/actions/create-contact-attribute.d.cts +9 -0
  17. package/dist/actions/create-contact-attribute.d.cts.map +1 -0
  18. package/dist/actions/create-contact-attribute.d.mts +9 -0
  19. package/dist/actions/create-contact-attribute.d.mts.map +1 -0
  20. package/dist/actions/create-contact-attribute.mjs +64 -0
  21. package/dist/actions/create-contact-attribute.mjs.map +1 -0
  22. package/dist/actions/create-credit-reception.cjs +24 -0
  23. package/dist/actions/create-credit-reception.cjs.map +1 -0
  24. package/dist/actions/create-credit-reception.d.cts +9 -0
  25. package/dist/actions/create-credit-reception.d.cts.map +1 -0
  26. package/dist/actions/create-credit-reception.d.mts +9 -0
  27. package/dist/actions/create-credit-reception.d.mts.map +1 -0
  28. package/dist/actions/create-credit-reception.mjs +21 -0
  29. package/dist/actions/create-credit-reception.mjs.map +1 -0
  30. package/dist/actions/create-vouchers-batch.cjs +36 -0
  31. package/dist/actions/create-vouchers-batch.cjs.map +1 -0
  32. package/dist/actions/create-vouchers-batch.d.cts +9 -0
  33. package/dist/actions/create-vouchers-batch.d.cts.map +1 -0
  34. package/dist/actions/create-vouchers-batch.d.mts +9 -0
  35. package/dist/actions/create-vouchers-batch.d.mts.map +1 -0
  36. package/dist/actions/create-vouchers-batch.mjs +35 -0
  37. package/dist/actions/create-vouchers-batch.mjs.map +1 -0
  38. package/dist/actions/find-or-create-products.cjs +38 -0
  39. package/dist/actions/find-or-create-products.cjs.map +1 -0
  40. package/dist/actions/find-or-create-products.d.cts +9 -0
  41. package/dist/actions/find-or-create-products.d.cts.map +1 -0
  42. package/dist/actions/find-or-create-products.d.mts +9 -0
  43. package/dist/actions/find-or-create-products.d.mts.map +1 -0
  44. package/dist/actions/find-or-create-products.mjs +37 -0
  45. package/dist/actions/find-or-create-products.mjs.map +1 -0
  46. package/dist/actions/find-voucher-by-code.cjs +45 -0
  47. package/dist/actions/find-voucher-by-code.cjs.map +1 -0
  48. package/dist/actions/find-voucher-by-code.d.cts +9 -0
  49. package/dist/actions/find-voucher-by-code.d.cts.map +1 -0
  50. package/dist/actions/find-voucher-by-code.d.mts +9 -0
  51. package/dist/actions/find-voucher-by-code.d.mts.map +1 -0
  52. package/dist/actions/find-voucher-by-code.mjs +44 -0
  53. package/dist/actions/find-voucher-by-code.mjs.map +1 -0
  54. package/dist/actions/get-contact-auth-token.cjs +20 -0
  55. package/dist/actions/get-contact-auth-token.cjs.map +1 -0
  56. package/dist/actions/get-contact-auth-token.d.cts +9 -0
  57. package/dist/actions/get-contact-auth-token.d.cts.map +1 -0
  58. package/dist/actions/get-contact-auth-token.d.mts +9 -0
  59. package/dist/actions/get-contact-auth-token.d.mts.map +1 -0
  60. package/dist/actions/get-contact-auth-token.mjs +19 -0
  61. package/dist/actions/get-contact-auth-token.mjs.map +1 -0
  62. package/dist/actions/get-contacts-credit-balance.cjs +20 -0
  63. package/dist/actions/get-contacts-credit-balance.cjs.map +1 -0
  64. package/dist/actions/get-contacts-credit-balance.d.cts +9 -0
  65. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -0
  66. package/dist/actions/get-contacts-credit-balance.d.mts +9 -0
  67. package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -0
  68. package/dist/actions/get-contacts-credit-balance.mjs +19 -0
  69. package/dist/actions/get-contacts-credit-balance.mjs.map +1 -0
  70. package/dist/actions/index.cjs +29 -0
  71. package/dist/actions/index.d.cts +15 -0
  72. package/dist/actions/index.d.mts +15 -0
  73. package/dist/actions/index.mjs +15 -0
  74. package/dist/actions/list-forms.cjs +26 -0
  75. package/dist/actions/list-forms.cjs.map +1 -0
  76. package/dist/actions/list-forms.d.cts +9 -0
  77. package/dist/actions/list-forms.d.cts.map +1 -0
  78. package/dist/actions/list-forms.d.mts +9 -0
  79. package/dist/actions/list-forms.d.mts.map +1 -0
  80. package/dist/actions/list-forms.mjs +25 -0
  81. package/dist/actions/list-forms.mjs.map +1 -0
  82. package/dist/actions/list-perks.cjs +26 -0
  83. package/dist/actions/list-perks.cjs.map +1 -0
  84. package/dist/actions/list-perks.d.cts +9 -0
  85. package/dist/actions/list-perks.d.cts.map +1 -0
  86. package/dist/actions/list-perks.d.mts +9 -0
  87. package/dist/actions/list-perks.d.mts.map +1 -0
  88. package/dist/actions/list-perks.mjs +25 -0
  89. package/dist/actions/list-perks.mjs.map +1 -0
  90. package/dist/actions/merge-contacts.cjs +22 -0
  91. package/dist/actions/merge-contacts.cjs.map +1 -0
  92. package/dist/actions/merge-contacts.d.cts +9 -0
  93. package/dist/actions/merge-contacts.d.cts.map +1 -0
  94. package/dist/actions/merge-contacts.d.mts +9 -0
  95. package/dist/actions/merge-contacts.d.mts.map +1 -0
  96. package/dist/actions/merge-contacts.mjs +19 -0
  97. package/dist/actions/merge-contacts.mjs.map +1 -0
  98. package/dist/actions/send-contact-verification-email.cjs +23 -0
  99. package/dist/actions/send-contact-verification-email.cjs.map +1 -0
  100. package/dist/actions/send-contact-verification-email.d.cts +9 -0
  101. package/dist/actions/send-contact-verification-email.d.cts.map +1 -0
  102. package/dist/actions/send-contact-verification-email.d.mts +9 -0
  103. package/dist/actions/send-contact-verification-email.d.mts.map +1 -0
  104. package/dist/actions/send-contact-verification-email.mjs +22 -0
  105. package/dist/actions/send-contact-verification-email.mjs.map +1 -0
  106. package/dist/actions/update-bookings.cjs +35 -0
  107. package/dist/actions/update-bookings.cjs.map +1 -0
  108. package/dist/actions/update-bookings.d.cts +9 -0
  109. package/dist/actions/update-bookings.d.cts.map +1 -0
  110. package/dist/actions/update-bookings.d.mts +9 -0
  111. package/dist/actions/update-bookings.d.mts.map +1 -0
  112. package/dist/actions/update-bookings.mjs +32 -0
  113. package/dist/actions/update-bookings.mjs.map +1 -0
  114. package/dist/actions/update-contact-identifiers.cjs +30 -0
  115. package/dist/actions/update-contact-identifiers.cjs.map +1 -0
  116. package/dist/actions/update-contact-identifiers.d.cts +9 -0
  117. package/dist/actions/update-contact-identifiers.d.cts.map +1 -0
  118. package/dist/actions/update-contact-identifiers.d.mts +9 -0
  119. package/dist/actions/update-contact-identifiers.d.mts.map +1 -0
  120. package/dist/actions/update-contact-identifiers.mjs +29 -0
  121. package/dist/actions/update-contact-identifiers.mjs.map +1 -0
  122. package/dist/app.cjs +9 -0
  123. package/dist/app.cjs.map +1 -0
  124. package/dist/app.d.cts +5 -0
  125. package/dist/app.d.cts.map +1 -0
  126. package/dist/app.d.mts +5 -0
  127. package/dist/app.d.mts.map +1 -0
  128. package/dist/app.mjs +10 -0
  129. package/dist/app.mjs.map +1 -0
  130. package/dist/catalog.cjs +15 -0
  131. package/dist/catalog.cjs.map +1 -0
  132. package/dist/catalog.d.cts +14 -0
  133. package/dist/catalog.d.cts.map +1 -0
  134. package/dist/catalog.d.mts +14 -0
  135. package/dist/catalog.d.mts.map +1 -0
  136. package/dist/catalog.mjs +15 -0
  137. package/dist/catalog.mjs.map +1 -0
  138. package/dist/execute.cjs +18 -0
  139. package/dist/execute.cjs.map +1 -0
  140. package/dist/execute.mjs +18 -0
  141. package/dist/execute.mjs.map +1 -0
  142. package/dist/index.cjs +34 -0
  143. package/dist/index.d.cts +17 -0
  144. package/dist/index.d.mts +17 -0
  145. package/dist/index.mjs +18 -0
  146. package/package.json +49 -0
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/find-or-create-products.ts
4
+ const PiggyFindOrCreateProductsInput = zod.z.object({
5
+ name: zod.z.string().describe("The name of the Product. Required when creating a new product").optional(),
6
+ categories: zod.z.array(zod.z.object({
7
+ uuid: zod.z.string().describe("UUID of an existing category to associate with the product").optional(),
8
+ external_identifier: zod.z.string().describe("External identifier of an existing category to associate with the product").optional()
9
+ }).describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
10
+ description: zod.z.string().describe("The description of the Product").optional(),
11
+ external_identifier: zod.z.string().describe("A unique identifier from your system to find or create the product")
12
+ }).describe("Request model for finding or creating a product in Piggy.");
13
+ const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = zod.z.object({
14
+ uuid: zod.z.string().describe("UUID of the category"),
15
+ external_identifier: zod.z.string().describe("External identifier of the category").nullable().optional()
16
+ }).describe("Category information in product response.");
17
+ const PiggyFindOrCreateProducts_ProductDataSchema = zod.z.object({
18
+ name: zod.z.string().describe("Name of the product"),
19
+ uuid: zod.z.string().describe("Unique identifier for the product in Piggy system"),
20
+ categories: zod.z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
21
+ description: zod.z.string().describe("Description of the product").nullable().optional(),
22
+ external_identifier: zod.z.string().describe("External identifier from your system")
23
+ }).describe("Product data object returned by the API.");
24
+ const PiggyFindOrCreateProductsOutput = zod.z.object({
25
+ data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
26
+ meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty").nullable().optional()
27
+ }).describe("Response model for finding or creating a product.");
28
+ const piggyFindOrCreateProducts = require_action.action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
29
+ slug: "piggy-find-or-create-products",
30
+ name: "Find or Create Products",
31
+ description: "Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.",
32
+ input: PiggyFindOrCreateProductsInput,
33
+ output: PiggyFindOrCreateProductsOutput
34
+ });
35
+ //#endregion
36
+ exports.piggyFindOrCreateProducts = piggyFindOrCreateProducts;
37
+
38
+ //# sourceMappingURL=find-or-create-products.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the category\"),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the product\"),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\"),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\"),\n}).describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput: z.ZodTypeAny = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC9L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,YAAYA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACjF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAM,4CAA4C,SAAS;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,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/find-or-create-products.d.ts
4
+ declare const PiggyFindOrCreateProductsInput: z.ZodTypeAny;
5
+ declare const PiggyFindOrCreateProductsOutput: z.ZodTypeAny;
6
+ declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyFindOrCreateProducts };
9
+ //# sourceMappingURL=find-or-create-products.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-or-create-products.d.cts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAQyB;AAAA,cAY3D,+BAAA,EAAiC,CAAA,CAAE,UAGgB;AAAA,cAEnD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/find-or-create-products.d.ts
4
+ declare const PiggyFindOrCreateProductsInput: z.ZodTypeAny;
5
+ declare const PiggyFindOrCreateProductsOutput: z.ZodTypeAny;
6
+ declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyFindOrCreateProducts };
9
+ //# sourceMappingURL=find-or-create-products.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-or-create-products.d.mts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAQyB;AAAA,cAY3D,+BAAA,EAAiC,CAAA,CAAE,UAGgB;AAAA,cAEnD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/find-or-create-products.ts
4
+ const PiggyFindOrCreateProductsInput = z.object({
5
+ name: z.string().describe("The name of the Product. Required when creating a new product").optional(),
6
+ categories: z.array(z.object({
7
+ uuid: z.string().describe("UUID of an existing category to associate with the product").optional(),
8
+ external_identifier: z.string().describe("External identifier of an existing category to associate with the product").optional()
9
+ }).describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
10
+ description: z.string().describe("The description of the Product").optional(),
11
+ external_identifier: z.string().describe("A unique identifier from your system to find or create the product")
12
+ }).describe("Request model for finding or creating a product in Piggy.");
13
+ const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({
14
+ uuid: z.string().describe("UUID of the category"),
15
+ external_identifier: z.string().describe("External identifier of the category").nullable().optional()
16
+ }).describe("Category information in product response.");
17
+ const PiggyFindOrCreateProducts_ProductDataSchema = z.object({
18
+ name: z.string().describe("Name of the product"),
19
+ uuid: z.string().describe("Unique identifier for the product in Piggy system"),
20
+ categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
21
+ description: z.string().describe("Description of the product").nullable().optional(),
22
+ external_identifier: z.string().describe("External identifier from your system")
23
+ }).describe("Product data object returned by the API.");
24
+ const piggyFindOrCreateProducts = action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
25
+ slug: "piggy-find-or-create-products",
26
+ name: "Find or Create Products",
27
+ description: "Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.",
28
+ input: PiggyFindOrCreateProductsInput,
29
+ output: z.object({
30
+ data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
31
+ meta: z.array(z.unknown()).describe("Metadata array; typically empty").nullable().optional()
32
+ }).describe("Response model for finding or creating a product.")
33
+ });
34
+ //#endregion
35
+ export { piggyFindOrCreateProducts };
36
+
37
+ //# sourceMappingURL=find-or-create-products.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-or-create-products.mjs","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the category\"),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the product\"),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\"),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\"),\n}).describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput: z.ZodTypeAny = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC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OF;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/find-voucher-by-code.ts
4
+ const PiggyFindVoucherByCodeInput = zod.z.object({ code: zod.z.string().describe("The unique code of the Voucher, which serves as its identifier") }).describe("Request schema for finding a voucher by its unique code.");
5
+ const PiggyFindVoucherByCode_VoucherContactSchema = zod.z.object({
6
+ uuid: zod.z.string().describe("UUID of the contact").nullable().optional(),
7
+ email: zod.z.string().describe("Email of the contact").nullable().optional()
8
+ }).describe("Contact associated with the voucher.");
9
+ const PiggyFindVoucherByCode_VoucherPromotionSchema = zod.z.object({
10
+ name: zod.z.string().describe("Name of the promotion").nullable().optional(),
11
+ uuid: zod.z.string().describe("UUID of the promotion").nullable().optional(),
12
+ description: zod.z.string().describe("Description of the promotion").nullable().optional()
13
+ }).describe("Promotion details associated with the voucher.");
14
+ const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
15
+ code: zod.z.string().describe("Unique code of the voucher"),
16
+ name: zod.z.string().describe("Name of the voucher").nullable().optional(),
17
+ uuid: zod.z.string().describe("UUID of the voucher"),
18
+ status: zod.z.string().describe("Status of the voucher (e.g., ACTIVE, REDEEMED)").nullable().optional(),
19
+ contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),
20
+ promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),
21
+ attributes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
22
+ description: zod.z.string().describe("Description of the voucher").nullable().optional(),
23
+ is_redeemed: zod.z.boolean().describe("Indicates if the voucher has been redeemed").nullable().optional(),
24
+ redeemed_at: zod.z.string().describe("Date when the voucher was redeemed in ISO 8601 format").nullable().optional(),
25
+ times_redeemed: zod.z.number().int().describe("Number of times the voucher has been redeemed").nullable().optional(),
26
+ activation_date: zod.z.string().describe("Activation date of the voucher in ISO 8601 format").nullable().optional(),
27
+ expiration_date: zod.z.string().describe("Expiration date of the voucher in ISO 8601 format").nullable().optional(),
28
+ redemptions_remaining: zod.z.number().int().describe("Number of redemptions remaining for the voucher").nullable().optional(),
29
+ total_redemptions_allowed: zod.z.number().int().describe("Total number of redemptions allowed for the voucher").nullable().optional()
30
+ }).describe("Detailed voucher information.");
31
+ const PiggyFindVoucherByCodeOutput = zod.z.object({
32
+ data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),
33
+ meta: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional()
34
+ }).describe("Response schema for voucher retrieval by code.");
35
+ const piggyFindVoucherByCode = require_action.action("PIGGY_FIND_VOUCHER_BY_CODE", {
36
+ slug: "piggy-find-voucher-by-code",
37
+ name: "Find Voucher By Code",
38
+ description: "Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.",
39
+ input: PiggyFindVoucherByCodeInput,
40
+ output: PiggyFindVoucherByCodeOutput
41
+ });
42
+ //#endregion
43
+ exports.piggyFindVoucherByCode = piggyFindVoucherByCode;
44
+
45
+ //# sourceMappingURL=find-voucher-by-code.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-voucher-by-code.cjs","names":["z","action"],"sources":["../../src/actions/find-voucher-by-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindVoucherByCodeInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Unique code of the voucher\"),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\"),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput: z.ZodTypeAny = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.\",\n input: PiggyFindVoucherByCodeInput,\n output: PiggyFindVoucherByCodeOut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Q,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,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/find-voucher-by-code.d.ts
4
+ declare const PiggyFindVoucherByCodeInput: z.ZodTypeAny;
5
+ declare const PiggyFindVoucherByCodeOutput: z.ZodTypeAny;
6
+ declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyFindVoucherByCode };
9
+ //# sourceMappingURL=find-voucher-by-code.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-voucher-by-code.d.cts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE2B;AAAA,cA2B1D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/find-voucher-by-code.d.ts
4
+ declare const PiggyFindVoucherByCodeInput: z.ZodTypeAny;
5
+ declare const PiggyFindVoucherByCodeOutput: z.ZodTypeAny;
6
+ declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyFindVoucherByCode };
9
+ //# sourceMappingURL=find-voucher-by-code.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-voucher-by-code.d.mts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE2B;AAAA,cA2B1D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,44 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/find-voucher-by-code.ts
4
+ const PiggyFindVoucherByCodeInput = z.object({ code: z.string().describe("The unique code of the Voucher, which serves as its identifier") }).describe("Request schema for finding a voucher by its unique code.");
5
+ const PiggyFindVoucherByCode_VoucherContactSchema = z.object({
6
+ uuid: z.string().describe("UUID of the contact").nullable().optional(),
7
+ email: z.string().describe("Email of the contact").nullable().optional()
8
+ }).describe("Contact associated with the voucher.");
9
+ const PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({
10
+ name: z.string().describe("Name of the promotion").nullable().optional(),
11
+ uuid: z.string().describe("UUID of the promotion").nullable().optional(),
12
+ description: z.string().describe("Description of the promotion").nullable().optional()
13
+ }).describe("Promotion details associated with the voucher.");
14
+ const PiggyFindVoucherByCode_VoucherDataSchema = z.object({
15
+ code: z.string().describe("Unique code of the voucher"),
16
+ name: z.string().describe("Name of the voucher").nullable().optional(),
17
+ uuid: z.string().describe("UUID of the voucher"),
18
+ status: z.string().describe("Status of the voucher (e.g., ACTIVE, REDEEMED)").nullable().optional(),
19
+ contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),
20
+ promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),
21
+ attributes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
22
+ description: z.string().describe("Description of the voucher").nullable().optional(),
23
+ is_redeemed: z.boolean().describe("Indicates if the voucher has been redeemed").nullable().optional(),
24
+ redeemed_at: z.string().describe("Date when the voucher was redeemed in ISO 8601 format").nullable().optional(),
25
+ times_redeemed: z.number().int().describe("Number of times the voucher has been redeemed").nullable().optional(),
26
+ activation_date: z.string().describe("Activation date of the voucher in ISO 8601 format").nullable().optional(),
27
+ expiration_date: z.string().describe("Expiration date of the voucher in ISO 8601 format").nullable().optional(),
28
+ redemptions_remaining: z.number().int().describe("Number of redemptions remaining for the voucher").nullable().optional(),
29
+ total_redemptions_allowed: z.number().int().describe("Total number of redemptions allowed for the voucher").nullable().optional()
30
+ }).describe("Detailed voucher information.");
31
+ const piggyFindVoucherByCode = action("PIGGY_FIND_VOUCHER_BY_CODE", {
32
+ slug: "piggy-find-voucher-by-code",
33
+ name: "Find Voucher By Code",
34
+ description: "Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.",
35
+ input: PiggyFindVoucherByCodeInput,
36
+ output: z.object({
37
+ data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),
38
+ meta: z.union([z.object({}), z.array(z.unknown())]).nullable().optional()
39
+ }).describe("Response schema for voucher retrieval by code.")
40
+ });
41
+ //#endregion
42
+ export { piggyFindVoucherByCode };
43
+
44
+ //# sourceMappingURL=find-voucher-by-code.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-voucher-by-code.mjs","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindVoucherByCodeInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Unique code of the voucher\"),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\"),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput: z.ZodTypeAny = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check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 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-contact-auth-token.ts
4
+ const PiggyGetContactAuthTokenInput = zod.z.object({ contact_uuid: zod.z.string().describe("UUID of the Contact for which to retrieve an auth token") }).describe("Path parameter for fetching a Contact auth token by UUID.");
5
+ const PiggyGetContactAuthToken_AuthTokenDataSchema = zod.z.object({ auth_token: zod.z.string().describe("Authentication token for the Contact") }).describe("Inner data containing the auth token.");
6
+ const PiggyGetContactAuthTokenOutput = zod.z.object({
7
+ data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),
8
+ meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
9
+ }).describe("Response schema for Contact auth token retrieval.");
10
+ const piggyGetContactAuthToken = require_action.action("PIGGY_GET_CONTACT_AUTH_TOKEN", {
11
+ slug: "piggy-get-contact-auth-token",
12
+ name: "Get Contact Auth Token",
13
+ description: "Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.",
14
+ input: PiggyGetContactAuthTokenInput,
15
+ output: PiggyGetContactAuthTokenOutput
16
+ });
17
+ //#endregion
18
+ exports.piggyGetContactAuthToken = piggyGetContactAuthToken;
19
+
20
+ //# sourceMappingURL=get-contact-auth-token.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contact-auth-token.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-auth-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactAuthTokenInput: z.ZodTypeAny = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema: z.ZodTypeAny = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\"),\n}).describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput: z.ZodTypeAny = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO,EAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACxE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,6CAA6C,SAAS;CAC5D,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,mDAAmD;AAE/D,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,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/get-contact-auth-token.d.ts
4
+ declare const PiggyGetContactAuthTokenInput: z.ZodTypeAny;
5
+ declare const PiggyGetContactAuthTokenOutput: z.ZodTypeAny;
6
+ declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyGetContactAuthToken };
9
+ //# sourceMappingURL=get-contact-auth-token.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contact-auth-token.d.cts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE0B;AAAA,cAI3D,8BAAA,EAAgC,CAAA,CAAE,UAGiB;AAAA,cAEnD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-contact-auth-token.d.ts
4
+ declare const PiggyGetContactAuthTokenInput: z.ZodTypeAny;
5
+ declare const PiggyGetContactAuthTokenOutput: z.ZodTypeAny;
6
+ declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyGetContactAuthToken };
9
+ //# sourceMappingURL=get-contact-auth-token.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contact-auth-token.d.mts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE0B;AAAA,cAI3D,8BAAA,EAAgC,CAAA,CAAE,UAGiB;AAAA,cAEnD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-contact-auth-token.ts
4
+ const PiggyGetContactAuthTokenInput = z.object({ contact_uuid: z.string().describe("UUID of the Contact for which to retrieve an auth token") }).describe("Path parameter for fetching a Contact auth token by UUID.");
5
+ const PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({ auth_token: z.string().describe("Authentication token for the Contact") }).describe("Inner data containing the auth token.");
6
+ const piggyGetContactAuthToken = action("PIGGY_GET_CONTACT_AUTH_TOKEN", {
7
+ slug: "piggy-get-contact-auth-token",
8
+ name: "Get Contact Auth Token",
9
+ description: "Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.",
10
+ input: PiggyGetContactAuthTokenInput,
11
+ output: z.object({
12
+ data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),
13
+ meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
14
+ }).describe("Response schema for Contact auth token retrieval.")
15
+ });
16
+ //#endregion
17
+ export { piggyGetContactAuthToken };
18
+
19
+ //# sourceMappingURL=get-contact-auth-token.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contact-auth-token.mjs","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactAuthTokenInput: z.ZodTypeAny = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema: z.ZodTypeAny = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\"),\n}).describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput: z.ZodTypeAny = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA6D,EAAE,OAAO,EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACxE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0D,EAAE,OAAO;EACnE,MAAM,6CAA6C,SAAS;EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-contacts-credit-balance.ts
4
+ const PiggyGetContactsCreditBalanceInput = zod.z.object({ contact_uuid: zod.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 = zod.z.object({ balance: zod.z.number().int().describe("The current credit balance amount for the contact") }).describe("Credit balance data containing the current balance amount.");
6
+ const PiggyGetContactsCreditBalanceOutput = zod.z.object({
7
+ data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),
8
+ meta: zod.z.union([zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())), zod.z.record(zod.z.string(), zod.z.unknown())])
9
+ }).describe("Response schema for Contact credit balance retrieval.");
10
+ const piggyGetContactsCreditBalance = require_action.action("PIGGY_GET_CONTACTS_CREDIT_BALANCE", {
11
+ slug: "piggy-get-contacts-credit-balance",
12
+ name: "Get Contact's Credit Balance",
13
+ 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.",
14
+ input: PiggyGetContactsCreditBalanceInput,
15
+ output: PiggyGetContactsCreditBalanceOutput
16
+ });
17
+ //#endregion
18
+ exports.piggyGetContactsCreditBalance = piggyGetContactsCreditBalance;
19
+
20
+ //# sourceMappingURL=get-contacts-credit-balance.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contacts-credit-balance.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactsCreditBalanceInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\"),\n}).describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput: z.ZodTypeAny = 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,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAsEA,IAAAA,EAAE,OAAO,EACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAM,sDAAsD,SAAS;CACrE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,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/get-contacts-credit-balance.d.ts
4
+ declare const PiggyGetContactsCreditBalanceInput: z.ZodTypeAny;
5
+ declare const PiggyGetContactsCreditBalanceOutput: z.ZodTypeAny;
6
+ declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyGetContactsCreditBalance };
9
+ //# sourceMappingURL=get-contacts-credit-balance.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contacts-credit-balance.d.cts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAE2B;AAAA,cAIjE,mCAAA,EAAqC,CAAA,CAAE,UAGgB;AAAA,cAEvD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-contacts-credit-balance.d.ts
4
+ declare const PiggyGetContactsCreditBalanceInput: z.ZodTypeAny;
5
+ declare const PiggyGetContactsCreditBalanceOutput: z.ZodTypeAny;
6
+ declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { piggyGetContactsCreditBalance };
9
+ //# sourceMappingURL=get-contacts-credit-balance.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contacts-credit-balance.d.mts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAE2B;AAAA,cAIjE,mCAAA,EAAqC,CAAA,CAAE,UAGgB;AAAA,cAEvD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-contacts-credit-balance.ts
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.");
6
+ const piggyGetContactsCreditBalance = action("PIGGY_GET_CONTACTS_CREDIT_BALANCE", {
7
+ slug: "piggy-get-contacts-credit-balance",
8
+ name: "Get Contact's Credit Balance",
9
+ 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.",
10
+ input: PiggyGetContactsCreditBalanceInput,
11
+ output: z.object({
12
+ data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),
13
+ meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())])
14
+ }).describe("Response schema for Contact credit balance retrieval.")
15
+ });
16
+ //#endregion
17
+ export { piggyGetContactsCreditBalance };
18
+
19
+ //# sourceMappingURL=get-contacts-credit-balance.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\"),\n}).describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput: z.ZodTypeAny = 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,qCAAmD,EAAE,OAAO,EACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAsE,EAAE,OAAO,EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAMxE,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+D,EAAE,OAAO;EACxE,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"}
@@ -0,0 +1,29 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_claim_anonymous_contact = require("./claim-anonymous-contact.cjs");
3
+ const require_create_contact_attribute = require("./create-contact-attribute.cjs");
4
+ const require_create_credit_reception = require("./create-credit-reception.cjs");
5
+ const require_create_vouchers_batch = require("./create-vouchers-batch.cjs");
6
+ const require_find_or_create_products = require("./find-or-create-products.cjs");
7
+ const require_find_voucher_by_code = require("./find-voucher-by-code.cjs");
8
+ const require_get_contact_auth_token = require("./get-contact-auth-token.cjs");
9
+ const require_get_contacts_credit_balance = require("./get-contacts-credit-balance.cjs");
10
+ const require_list_forms = require("./list-forms.cjs");
11
+ const require_list_perks = require("./list-perks.cjs");
12
+ const require_merge_contacts = require("./merge-contacts.cjs");
13
+ const require_send_contact_verification_email = require("./send-contact-verification-email.cjs");
14
+ const require_update_bookings = require("./update-bookings.cjs");
15
+ const require_update_contact_identifiers = require("./update-contact-identifiers.cjs");
16
+ exports.piggyClaimAnonymousContact = require_claim_anonymous_contact.piggyClaimAnonymousContact;
17
+ exports.piggyCreateContactAttribute = require_create_contact_attribute.piggyCreateContactAttribute;
18
+ exports.piggyCreateCreditReception = require_create_credit_reception.piggyCreateCreditReception;
19
+ exports.piggyCreateVouchersBatch = require_create_vouchers_batch.piggyCreateVouchersBatch;
20
+ exports.piggyFindOrCreateProducts = require_find_or_create_products.piggyFindOrCreateProducts;
21
+ exports.piggyFindVoucherByCode = require_find_voucher_by_code.piggyFindVoucherByCode;
22
+ exports.piggyGetContactAuthToken = require_get_contact_auth_token.piggyGetContactAuthToken;
23
+ exports.piggyGetContactsCreditBalance = require_get_contacts_credit_balance.piggyGetContactsCreditBalance;
24
+ exports.piggyListForms = require_list_forms.piggyListForms;
25
+ exports.piggyListPerks = require_list_perks.piggyListPerks;
26
+ exports.piggyMergeContacts = require_merge_contacts.piggyMergeContacts;
27
+ exports.piggySendContactVerificationEmail = require_send_contact_verification_email.piggySendContactVerificationEmail;
28
+ exports.piggyUpdateBookings = require_update_bookings.piggyUpdateBookings;
29
+ exports.piggyUpdateContactIdentifiers = require_update_contact_identifiers.piggyUpdateContactIdentifiers;
@@ -0,0 +1,15 @@
1
+ import { piggyClaimAnonymousContact } from "./claim-anonymous-contact.cjs";
2
+ import { piggyCreateContactAttribute } from "./create-contact-attribute.cjs";
3
+ import { piggyCreateCreditReception } from "./create-credit-reception.cjs";
4
+ import { piggyCreateVouchersBatch } from "./create-vouchers-batch.cjs";
5
+ import { piggyFindOrCreateProducts } from "./find-or-create-products.cjs";
6
+ import { piggyFindVoucherByCode } from "./find-voucher-by-code.cjs";
7
+ import { piggyGetContactAuthToken } from "./get-contact-auth-token.cjs";
8
+ import { piggyGetContactsCreditBalance } from "./get-contacts-credit-balance.cjs";
9
+ import { piggyListForms } from "./list-forms.cjs";
10
+ import { piggyListPerks } from "./list-perks.cjs";
11
+ import { piggyMergeContacts } from "./merge-contacts.cjs";
12
+ import { piggySendContactVerificationEmail } from "./send-contact-verification-email.cjs";
13
+ import { piggyUpdateBookings } from "./update-bookings.cjs";
14
+ import { piggyUpdateContactIdentifiers } from "./update-contact-identifiers.cjs";
15
+ export { piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
@@ -0,0 +1,15 @@
1
+ import { piggyClaimAnonymousContact } from "./claim-anonymous-contact.mjs";
2
+ import { piggyCreateContactAttribute } from "./create-contact-attribute.mjs";
3
+ import { piggyCreateCreditReception } from "./create-credit-reception.mjs";
4
+ import { piggyCreateVouchersBatch } from "./create-vouchers-batch.mjs";
5
+ import { piggyFindOrCreateProducts } from "./find-or-create-products.mjs";
6
+ import { piggyFindVoucherByCode } from "./find-voucher-by-code.mjs";
7
+ import { piggyGetContactAuthToken } from "./get-contact-auth-token.mjs";
8
+ import { piggyGetContactsCreditBalance } from "./get-contacts-credit-balance.mjs";
9
+ import { piggyListForms } from "./list-forms.mjs";
10
+ import { piggyListPerks } from "./list-perks.mjs";
11
+ import { piggyMergeContacts } from "./merge-contacts.mjs";
12
+ import { piggySendContactVerificationEmail } from "./send-contact-verification-email.mjs";
13
+ import { piggyUpdateBookings } from "./update-bookings.mjs";
14
+ import { piggyUpdateContactIdentifiers } from "./update-contact-identifiers.mjs";
15
+ export { piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
@@ -0,0 +1,15 @@
1
+ import { piggyClaimAnonymousContact } from "./claim-anonymous-contact.mjs";
2
+ import { piggyCreateContactAttribute } from "./create-contact-attribute.mjs";
3
+ import { piggyCreateCreditReception } from "./create-credit-reception.mjs";
4
+ import { piggyCreateVouchersBatch } from "./create-vouchers-batch.mjs";
5
+ import { piggyFindOrCreateProducts } from "./find-or-create-products.mjs";
6
+ import { piggyFindVoucherByCode } from "./find-voucher-by-code.mjs";
7
+ import { piggyGetContactAuthToken } from "./get-contact-auth-token.mjs";
8
+ import { piggyGetContactsCreditBalance } from "./get-contacts-credit-balance.mjs";
9
+ import { piggyListForms } from "./list-forms.mjs";
10
+ import { piggyListPerks } from "./list-perks.mjs";
11
+ import { piggyMergeContacts } from "./merge-contacts.mjs";
12
+ import { piggySendContactVerificationEmail } from "./send-contact-verification-email.mjs";
13
+ import { piggyUpdateBookings } from "./update-bookings.mjs";
14
+ import { piggyUpdateContactIdentifiers } from "./update-contact-identifiers.mjs";
15
+ export { piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
@@ -0,0 +1,26 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-forms.ts
4
+ const PiggyListFormsInput = zod.z.object({}).describe("Request model for listing forms. No parameters required.");
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")
11
+ }).describe("Individual form object in the response.");
12
+ const PiggyListFormsOutput = zod.z.object({
13
+ data: zod.z.array(PiggyListForms_FormDataSchema).describe("List of form objects"),
14
+ meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
15
+ }).describe("Response schema for listing forms.");
16
+ const piggyListForms = require_action.action("PIGGY_LIST_FORMS", {
17
+ slug: "piggy-list-forms",
18
+ name: "List Forms",
19
+ description: "Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.",
20
+ input: PiggyListFormsInput,
21
+ output: PiggyListFormsOutput
22
+ });
23
+ //#endregion
24
+ exports.piggyListForms = piggyListForms;
25
+
26
+ //# sourceMappingURL=list-forms.cjs.map
@@ -0,0 +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: 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,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACjI,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAClD,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,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"}
@@ -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.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-forms.d.cts","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"}