@keystrokehq/piggy 0.1.5 → 0.1.6

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 (125) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/claim-anonymous-contact.cjs +1 -0
  4. package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
  5. package/dist/actions/claim-anonymous-contact.d.cts +3 -16
  6. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
  7. package/dist/actions/claim-anonymous-contact.d.mts +3 -16
  8. package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
  9. package/dist/actions/claim-anonymous-contact.mjs +1 -0
  10. package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
  11. package/dist/actions/create-contact-attribute.cjs +1 -0
  12. package/dist/actions/create-contact-attribute.cjs.map +1 -1
  13. package/dist/actions/create-contact-attribute.d.cts +4 -24
  14. package/dist/actions/create-contact-attribute.d.cts.map +1 -1
  15. package/dist/actions/create-contact-attribute.d.mts +4 -24
  16. package/dist/actions/create-contact-attribute.d.mts.map +1 -1
  17. package/dist/actions/create-contact-attribute.mjs +1 -0
  18. package/dist/actions/create-contact-attribute.mjs.map +1 -1
  19. package/dist/actions/create-credit-reception.cjs +1 -0
  20. package/dist/actions/create-credit-reception.cjs.map +1 -1
  21. package/dist/actions/create-credit-reception.d.cts +3 -18
  22. package/dist/actions/create-credit-reception.d.cts.map +1 -1
  23. package/dist/actions/create-credit-reception.d.mts +3 -18
  24. package/dist/actions/create-credit-reception.d.mts.map +1 -1
  25. package/dist/actions/create-credit-reception.mjs +1 -0
  26. package/dist/actions/create-credit-reception.mjs.map +1 -1
  27. package/dist/actions/create-vouchers-batch.cjs +1 -0
  28. package/dist/actions/create-vouchers-batch.cjs.map +1 -1
  29. package/dist/actions/create-vouchers-batch.d.cts +3 -24
  30. package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
  31. package/dist/actions/create-vouchers-batch.d.mts +3 -24
  32. package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
  33. package/dist/actions/create-vouchers-batch.mjs +1 -0
  34. package/dist/actions/create-vouchers-batch.mjs.map +1 -1
  35. package/dist/actions/find-or-create-products.cjs +1 -0
  36. package/dist/actions/find-or-create-products.cjs.map +1 -1
  37. package/dist/actions/find-or-create-products.d.cts +3 -22
  38. package/dist/actions/find-or-create-products.d.cts.map +1 -1
  39. package/dist/actions/find-or-create-products.d.mts +3 -22
  40. package/dist/actions/find-or-create-products.d.mts.map +1 -1
  41. package/dist/actions/find-or-create-products.mjs +1 -0
  42. package/dist/actions/find-or-create-products.mjs.map +1 -1
  43. package/dist/actions/find-voucher-by-code.cjs +1 -0
  44. package/dist/actions/find-voucher-by-code.cjs.map +1 -1
  45. package/dist/actions/find-voucher-by-code.d.cts +3 -15
  46. package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
  47. package/dist/actions/find-voucher-by-code.d.mts +3 -15
  48. package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
  49. package/dist/actions/find-voucher-by-code.mjs +1 -0
  50. package/dist/actions/find-voucher-by-code.mjs.map +1 -1
  51. package/dist/actions/get-contact-auth-token.cjs +1 -0
  52. package/dist/actions/get-contact-auth-token.cjs.map +1 -1
  53. package/dist/actions/get-contact-auth-token.d.cts +3 -15
  54. package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
  55. package/dist/actions/get-contact-auth-token.d.mts +3 -15
  56. package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
  57. package/dist/actions/get-contact-auth-token.mjs +1 -0
  58. package/dist/actions/get-contact-auth-token.mjs.map +1 -1
  59. package/dist/actions/get-contacts-credit-balance.cjs +1 -0
  60. package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
  61. package/dist/actions/get-contacts-credit-balance.d.cts +3 -15
  62. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
  63. package/dist/actions/get-contacts-credit-balance.d.mts +3 -15
  64. package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
  65. package/dist/actions/get-contacts-credit-balance.mjs +1 -0
  66. package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
  67. package/dist/actions/list-forms.cjs +1 -0
  68. package/dist/actions/list-forms.cjs.map +1 -1
  69. package/dist/actions/list-forms.d.cts +3 -13
  70. package/dist/actions/list-forms.d.cts.map +1 -1
  71. package/dist/actions/list-forms.d.mts +3 -13
  72. package/dist/actions/list-forms.d.mts.map +1 -1
  73. package/dist/actions/list-forms.mjs +1 -0
  74. package/dist/actions/list-forms.mjs.map +1 -1
  75. package/dist/actions/list-perks.cjs +1 -0
  76. package/dist/actions/list-perks.cjs.map +1 -1
  77. package/dist/actions/list-perks.d.cts +3 -13
  78. package/dist/actions/list-perks.d.cts.map +1 -1
  79. package/dist/actions/list-perks.d.mts +3 -13
  80. package/dist/actions/list-perks.d.mts.map +1 -1
  81. package/dist/actions/list-perks.mjs +1 -0
  82. package/dist/actions/list-perks.mjs.map +1 -1
  83. package/dist/actions/merge-contacts.cjs +1 -0
  84. package/dist/actions/merge-contacts.cjs.map +1 -1
  85. package/dist/actions/merge-contacts.d.cts +3 -16
  86. package/dist/actions/merge-contacts.d.cts.map +1 -1
  87. package/dist/actions/merge-contacts.d.mts +3 -16
  88. package/dist/actions/merge-contacts.d.mts.map +1 -1
  89. package/dist/actions/merge-contacts.mjs +1 -0
  90. package/dist/actions/merge-contacts.mjs.map +1 -1
  91. package/dist/actions/send-contact-verification-email.cjs +1 -0
  92. package/dist/actions/send-contact-verification-email.cjs.map +1 -1
  93. package/dist/actions/send-contact-verification-email.d.cts +3 -15
  94. package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
  95. package/dist/actions/send-contact-verification-email.d.mts +3 -15
  96. package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
  97. package/dist/actions/send-contact-verification-email.mjs +1 -0
  98. package/dist/actions/send-contact-verification-email.mjs.map +1 -1
  99. package/dist/actions/update-bookings.cjs +1 -0
  100. package/dist/actions/update-bookings.cjs.map +1 -1
  101. package/dist/actions/update-bookings.d.cts +3 -24
  102. package/dist/actions/update-bookings.d.cts.map +1 -1
  103. package/dist/actions/update-bookings.d.mts +3 -24
  104. package/dist/actions/update-bookings.d.mts.map +1 -1
  105. package/dist/actions/update-bookings.mjs +1 -0
  106. package/dist/actions/update-bookings.mjs.map +1 -1
  107. package/dist/actions/update-contact-identifiers.cjs +1 -0
  108. package/dist/actions/update-contact-identifiers.cjs.map +1 -1
  109. package/dist/actions/update-contact-identifiers.d.cts +3 -17
  110. package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
  111. package/dist/actions/update-contact-identifiers.d.mts +3 -17
  112. package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
  113. package/dist/actions/update-contact-identifiers.mjs +1 -0
  114. package/dist/actions/update-contact-identifiers.mjs.map +1 -1
  115. package/dist/app.cjs +2 -2
  116. package/dist/app.cjs.map +1 -1
  117. package/dist/app.d.cts +4 -6
  118. package/dist/app.d.cts.map +1 -1
  119. package/dist/app.d.mts +4 -6
  120. package/dist/app.d.mts.map +1 -1
  121. package/dist/app.mjs +0 -1
  122. package/dist/app.mjs.map +1 -1
  123. package/dist/index.d.cts +1 -1
  124. package/dist/index.d.mts +1 -1
  125. package/package.json +2 -2
@@ -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 = 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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,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,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-forms.mjs","names":[],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response schema for listing forms.\");\n\nexport const piggyListForms: AppAction<\n typeof PiggyListFormsInput,\n typeof PiggyListFormsOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdkC,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,YAAY,CAAC,CAAC,SAAS,oCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-perks.ts
@@ -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 = 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.record(z.string(), z.unknown())])).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}).passthrough().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}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-perks.cjs","names":["z","action"],"sources":["../../src/actions/list-perks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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.record(z.string(), z.unknown())])).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}).passthrough().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}).passthrough().describe(\"Response model for listing perks.\");\n\nexport const piggyListPerks: AppAction<\n typeof PiggyListPerksInput,\n typeof PiggyListPerksOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-perks.d.ts
@@ -12,19 +14,7 @@ declare const PiggyListPerksOutput: z.ZodObject<{
12
14
  }, z.core.$loose>>>>;
13
15
  meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
16
  }, z.core.$loose>;
15
- declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const piggyListPerks: AppAction<typeof PiggyListPerksInput, typeof PiggyListPerksOutput, typeof piggy.credential>;
28
18
  //#endregion
29
19
  export { piggyListPerks };
30
20
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-perks.d.cts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-perks.d.ts
@@ -12,19 +14,7 @@ declare const PiggyListPerksOutput: z.ZodObject<{
12
14
  }, z.core.$loose>>>>;
13
15
  meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
16
  }, z.core.$loose>;
15
- declare const piggyListPerks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const piggyListPerks: AppAction<typeof PiggyListPerksInput, typeof PiggyListPerksOutput, typeof piggy.credential>;
28
18
  //#endregion
29
19
  export { piggyListPerks };
30
20
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-perks.d.mts","names":[],"sources":["../../src/actions/list-perks.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-perks.ts
@@ -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 = 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.record(z.string(), z.unknown())])).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}).passthrough().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}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAM3E,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,YAAY,CAAC,CAAC,SAAS,mCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-perks.mjs","names":[],"sources":["../../src/actions/list-perks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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.record(z.string(), z.unknown())])).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}).passthrough().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}).passthrough().describe(\"Response model for listing perks.\");\n\nexport const piggyListPerks: AppAction<\n typeof PiggyListPerksInput,\n typeof PiggyListPerksOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAM3E,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdkC,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,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/merge-contacts.ts
@@ -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 = 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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,kGAAkG;AAE5H,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"merge-contacts.cjs","names":["z","action"],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts: AppAction<\n typeof PiggyMergeContactsInput,\n typeof PiggyMergeContactsOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,kGAAkG;AAE5H,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/merge-contacts.d.ts
@@ -9,22 +11,7 @@ declare const PiggyMergeContactsOutput: z.ZodObject<{
9
11
  data: z.ZodNullable<z.ZodArray<z.ZodString>>;
10
12
  meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
11
13
  }, z.core.$loose>;
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<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
14
+ declare const piggyMergeContacts: AppAction<typeof PiggyMergeContactsInput, typeof PiggyMergeContactsOutput, typeof piggy.credential>;
28
15
  //#endregion
29
16
  export { piggyMergeContacts };
30
17
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"merge-contacts.d.cts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/merge-contacts.d.ts
@@ -9,22 +11,7 @@ declare const PiggyMergeContactsOutput: z.ZodObject<{
9
11
  data: z.ZodNullable<z.ZodArray<z.ZodString>>;
10
12
  meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
11
13
  }, z.core.$loose>;
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<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
14
+ declare const piggyMergeContacts: AppAction<typeof PiggyMergeContactsInput, typeof PiggyMergeContactsOutput, typeof piggy.credential>;
28
15
  //#endregion
29
16
  export { piggyMergeContacts };
30
17
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"merge-contacts.d.mts","names":[],"sources":["../../src/actions/merge-contacts.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const piggyMergeContacts = action("PIGGY_MERGE_CONTACTS", {
@@ -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 = 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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,kGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"merge-contacts.mjs","names":[],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts: AppAction<\n typeof PiggyMergeContactsInput,\n typeof PiggyMergeContactsOutput,\n typeof piggy.credential\n> = 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":";;;AAeA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqC,EAAE,OAAO;EAC9C,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9L,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAChL,CAAC,CAAC,CAAC,SAAS,+CAcH;CACP,QAdsC,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,YAAY,CAAC,CAAC,SAAS,kGAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/send-contact-verification-email.ts
@@ -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 = 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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-contact-verification-email.cjs","names":["z","action"],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail: AppAction<\n typeof PiggySendContactVerificationEmailInput,\n typeof PiggySendContactVerificationEmailOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,oCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-contact-verification-email.d.ts
@@ -11,21 +13,7 @@ declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$loose>;
14
- declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- email: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
16
+ declare const piggySendContactVerificationEmail: AppAction<typeof PiggySendContactVerificationEmailInput, typeof PiggySendContactVerificationEmailOutput, typeof piggy.credential>;
29
17
  //#endregion
30
18
  export { piggySendContactVerificationEmail };
31
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,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-contact-verification-email.d.ts
@@ -11,21 +13,7 @@ declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$loose>;
14
- declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- email: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
16
+ declare const piggySendContactVerificationEmail: AppAction<typeof PiggySendContactVerificationEmailInput, typeof PiggySendContactVerificationEmailOutput, typeof piggy.credential>;
29
17
  //#endregion
30
18
  export { piggySendContactVerificationEmail };
31
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,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/send-contact-verification-email.ts
@@ -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 = 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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,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,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"send-contact-verification-email.mjs","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail: AppAction<\n typeof PiggySendContactVerificationEmailInput,\n typeof PiggySendContactVerificationEmailOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqD,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,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-bookings.ts
@@ -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 = 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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-bookings.cjs","names":["z","action"],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings: AppAction<\n typeof PiggyUpdateBookingsInput,\n typeof PiggyUpdateBookingsOutput,\n typeof piggy.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-bookings.d.ts
@@ -22,30 +24,7 @@ declare const PiggyUpdateBookingsOutput: z.ZodObject<{
22
24
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
25
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
24
26
  }, z.core.$loose>;
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<"piggy", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
27
+ declare const piggyUpdateBookings: AppAction<typeof PiggyUpdateBookingsInput, typeof PiggyUpdateBookingsOutput, typeof piggy.credential>;
49
28
  //#endregion
50
29
  export { piggyUpdateBookings };
51
30
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-bookings.d.ts
@@ -22,30 +24,7 @@ declare const PiggyUpdateBookingsOutput: z.ZodObject<{
22
24
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
25
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
24
26
  }, z.core.$loose>;
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<"piggy", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
27
+ declare const piggyUpdateBookings: AppAction<typeof PiggyUpdateBookingsInput, typeof PiggyUpdateBookingsOutput, typeof piggy.credential>;
49
28
  //#endregion
50
29
  export { piggyUpdateBookings };
51
30
  //# sourceMappingURL=update-bookings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.d.mts","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
+ {"version":3,"file":"update-bookings.d.mts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const piggyUpdateBookings = action("PIGGY_UPDATE_BOOKINGS", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.mjs","names":[],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateBookingsInput = z.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}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAe;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;EACvE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-bookings.mjs","names":[],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\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}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings: AppAction<\n typeof PiggyUpdateBookingsInput,\n typeof PiggyUpdateBookingsOutput,\n typeof piggy.credential\n> = 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":";;;AAuBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAe;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,wCAcH;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;EACvE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-contact-identifiers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,0DAA0D,SAAS;CACzE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact-identifiers.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers: AppAction<\n typeof PiggyUpdateContactIdentifiersInput,\n typeof PiggyUpdateContactIdentifiersOutput,\n typeof piggy.credential\n> = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,0DAA0D,SAAS;CACzE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact-identifiers.d.ts
@@ -16,23 +18,7 @@ declare const PiggyUpdateContactIdentifiersOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
18
20
  }, z.core.$loose>;
19
- declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- contact_identifier_value: string;
21
- contact_identifier_name?: string | undefined;
22
- contact_identifier_active?: boolean | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>;
21
+ declare const piggyUpdateContactIdentifiers: AppAction<typeof PiggyUpdateContactIdentifiersInput, typeof PiggyUpdateContactIdentifiersOutput, typeof piggy.credential>;
36
22
  //#endregion
37
23
  export { piggyUpdateContactIdentifiers };
38
24
  //# sourceMappingURL=update-contact-identifiers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.d.cts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"update-contact-identifiers.d.cts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact-identifiers.d.ts
@@ -16,23 +18,7 @@ declare const PiggyUpdateContactIdentifiersOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
18
20
  }, z.core.$loose>;
19
- declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- contact_identifier_value: string;
21
- contact_identifier_name?: string | undefined;
22
- contact_identifier_active?: boolean | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>;
21
+ declare const piggyUpdateContactIdentifiers: AppAction<typeof PiggyUpdateContactIdentifiersInput, typeof PiggyUpdateContactIdentifiersOutput, typeof piggy.credential>;
36
22
  //#endregion
37
23
  export { piggyUpdateContactIdentifiers };
38
24
  //# sourceMappingURL=update-contact-identifiers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.d.mts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"update-contact-identifiers.d.mts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,UAAA"}