@keystrokehq/piggy 0.1.0 → 0.1.3

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 (121) 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 +2 -2
  4. package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
  5. package/dist/actions/claim-anonymous-contact.d.cts +15 -3
  6. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
  7. package/dist/actions/claim-anonymous-contact.d.mts +15 -3
  8. package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
  9. package/dist/actions/claim-anonymous-contact.mjs +2 -2
  10. package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
  11. package/dist/actions/create-contact-attribute.cjs +12 -12
  12. package/dist/actions/create-contact-attribute.cjs.map +1 -1
  13. package/dist/actions/create-contact-attribute.d.cts +60 -3
  14. package/dist/actions/create-contact-attribute.d.cts.map +1 -1
  15. package/dist/actions/create-contact-attribute.d.mts +60 -3
  16. package/dist/actions/create-contact-attribute.d.mts.map +1 -1
  17. package/dist/actions/create-contact-attribute.mjs +12 -12
  18. package/dist/actions/create-contact-attribute.mjs.map +1 -1
  19. package/dist/actions/create-credit-reception.cjs +1 -1
  20. package/dist/actions/create-credit-reception.cjs.map +1 -1
  21. package/dist/actions/create-credit-reception.d.cts +16 -3
  22. package/dist/actions/create-credit-reception.d.cts.map +1 -1
  23. package/dist/actions/create-credit-reception.d.mts +16 -3
  24. package/dist/actions/create-credit-reception.d.mts.map +1 -1
  25. package/dist/actions/create-credit-reception.mjs +1 -1
  26. package/dist/actions/create-credit-reception.mjs.map +1 -1
  27. package/dist/actions/create-vouchers-batch.cjs +8 -8
  28. package/dist/actions/create-vouchers-batch.cjs.map +1 -1
  29. package/dist/actions/create-vouchers-batch.d.cts +33 -3
  30. package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
  31. package/dist/actions/create-vouchers-batch.d.mts +33 -3
  32. package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
  33. package/dist/actions/create-vouchers-batch.mjs +8 -8
  34. package/dist/actions/create-vouchers-batch.mjs.map +1 -1
  35. package/dist/actions/find-or-create-products.cjs +8 -8
  36. package/dist/actions/find-or-create-products.cjs.map +1 -1
  37. package/dist/actions/find-or-create-products.d.cts +32 -3
  38. package/dist/actions/find-or-create-products.d.cts.map +1 -1
  39. package/dist/actions/find-or-create-products.d.mts +32 -3
  40. package/dist/actions/find-or-create-products.d.mts.map +1 -1
  41. package/dist/actions/find-or-create-products.mjs +8 -8
  42. package/dist/actions/find-or-create-products.mjs.map +1 -1
  43. package/dist/actions/find-voucher-by-code.cjs +8 -8
  44. package/dist/actions/find-voucher-by-code.cjs.map +1 -1
  45. package/dist/actions/find-voucher-by-code.d.cts +33 -3
  46. package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
  47. package/dist/actions/find-voucher-by-code.d.mts +33 -3
  48. package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
  49. package/dist/actions/find-voucher-by-code.mjs +8 -8
  50. package/dist/actions/find-voucher-by-code.mjs.map +1 -1
  51. package/dist/actions/get-contact-auth-token.cjs +2 -2
  52. package/dist/actions/get-contact-auth-token.cjs.map +1 -1
  53. package/dist/actions/get-contact-auth-token.d.cts +12 -3
  54. package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
  55. package/dist/actions/get-contact-auth-token.d.mts +12 -3
  56. package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
  57. package/dist/actions/get-contact-auth-token.mjs +2 -2
  58. package/dist/actions/get-contact-auth-token.mjs.map +1 -1
  59. package/dist/actions/get-contacts-credit-balance.cjs +2 -2
  60. package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
  61. package/dist/actions/get-contacts-credit-balance.d.cts +12 -3
  62. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
  63. package/dist/actions/get-contacts-credit-balance.d.mts +12 -3
  64. package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
  65. package/dist/actions/get-contacts-credit-balance.mjs +2 -2
  66. package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
  67. package/dist/actions/list-forms.cjs +7 -7
  68. package/dist/actions/list-forms.cjs.map +1 -1
  69. package/dist/actions/list-forms.d.cts +12 -3
  70. package/dist/actions/list-forms.d.cts.map +1 -1
  71. package/dist/actions/list-forms.d.mts +12 -3
  72. package/dist/actions/list-forms.d.mts.map +1 -1
  73. package/dist/actions/list-forms.mjs +7 -7
  74. package/dist/actions/list-forms.mjs.map +1 -1
  75. package/dist/actions/list-perks.cjs +3 -3
  76. package/dist/actions/list-perks.cjs.map +1 -1
  77. package/dist/actions/list-perks.d.cts +12 -3
  78. package/dist/actions/list-perks.d.cts.map +1 -1
  79. package/dist/actions/list-perks.d.mts +12 -3
  80. package/dist/actions/list-perks.d.mts.map +1 -1
  81. package/dist/actions/list-perks.mjs +3 -3
  82. package/dist/actions/list-perks.mjs.map +1 -1
  83. package/dist/actions/merge-contacts.cjs +1 -1
  84. package/dist/actions/merge-contacts.cjs.map +1 -1
  85. package/dist/actions/merge-contacts.d.cts +12 -3
  86. package/dist/actions/merge-contacts.d.cts.map +1 -1
  87. package/dist/actions/merge-contacts.d.mts +12 -3
  88. package/dist/actions/merge-contacts.d.mts.map +1 -1
  89. package/dist/actions/merge-contacts.mjs +1 -1
  90. package/dist/actions/merge-contacts.mjs.map +1 -1
  91. package/dist/actions/send-contact-verification-email.cjs +4 -4
  92. package/dist/actions/send-contact-verification-email.cjs.map +1 -1
  93. package/dist/actions/send-contact-verification-email.d.cts +13 -3
  94. package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
  95. package/dist/actions/send-contact-verification-email.d.mts +13 -3
  96. package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
  97. package/dist/actions/send-contact-verification-email.mjs +4 -4
  98. package/dist/actions/send-contact-verification-email.mjs.map +1 -1
  99. package/dist/actions/update-bookings.cjs +1 -1
  100. package/dist/actions/update-bookings.cjs.map +1 -1
  101. package/dist/actions/update-bookings.d.cts +33 -3
  102. package/dist/actions/update-bookings.d.cts.map +1 -1
  103. package/dist/actions/update-bookings.d.mts +33 -3
  104. package/dist/actions/update-bookings.d.mts.map +1 -1
  105. package/dist/actions/update-bookings.mjs +1 -1
  106. package/dist/actions/update-bookings.mjs.map +1 -1
  107. package/dist/actions/update-contact-identifiers.cjs +5 -5
  108. package/dist/actions/update-contact-identifiers.cjs.map +1 -1
  109. package/dist/actions/update-contact-identifiers.d.cts +20 -3
  110. package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
  111. package/dist/actions/update-contact-identifiers.d.mts +20 -3
  112. package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
  113. package/dist/actions/update-contact-identifiers.mjs +5 -5
  114. package/dist/actions/update-contact-identifiers.mjs.map +1 -1
  115. package/dist/catalog.cjs +7 -1
  116. package/dist/catalog.cjs.map +1 -1
  117. package/dist/catalog.d.cts +8 -0
  118. package/dist/catalog.d.mts +8 -0
  119. package/dist/catalog.mjs +7 -1
  120. package/dist/catalog.mjs.map +1 -1
  121. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"create-vouchers-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput: z.ZodTypeAny = z.object({\n quantity: z.number().int().describe(\"The number of Vouchers you want to generate (min: 1, max: 500)\"),\n contact_uuid: z.string().describe(\"The Contact's UUID to be linked to the batch of Vouchers\").optional(),\n promotion_uuid: z.string().describe(\"UUID of the Promotion for which the Vouchers are to be created\"),\n activation_date: z.string().describe(\"The activation date for the batch of Vouchers in ISO 8601 format\").optional(),\n expiration_date: z.string().describe(\"The expiration date for the batch of Vouchers in ISO 8601 format\").optional(),\n custom_attributes: z.array(z.object({\n key: z.string().describe(\"Attribute key\"),\n value: z.string().describe(\"Attribute value\"),\n}).describe(\"Custom attribute for vouchers.\")).describe(\"Additional Custom Attributes for the Vouchers\").optional(),\n}).describe(\"Request schema for batch voucher creation.\");\nconst PiggyCreateVouchersBatch_VoucherBatchDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Resource type, always 'vouchers' for this endpoint\"),\n uuid: z.string().describe(\"Unique identifier for the batch operation\"),\n status: z.string().describe(\"Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous\"),\n quantity: z.number().int().describe(\"The number of vouchers generated in this batch\"),\n created_at: z.string().describe(\"Timestamp when batch was created\"),\n}).describe(\"Batch voucher creation data.\");\nexport const PiggyCreateVouchersBatchOutput: z.ZodTypeAny = z.object({\n data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for batch voucher creation.\");\n\nexport const piggyCreateVouchersBatch = action(\"PIGGY_CREATE_VOUCHERS_BATCH\", {\n slug: \"piggy-create-vouchers-batch\",\n name: \"Create Vouchers Batch\",\n description: \"Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.\",\n input: PiggyCreateVouchersBatchInput,\n output: PiggyCreateVouchersBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACpC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACpE,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,gDAAgD,SAAS;CAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-vouchers-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput = z.object({\n quantity: z.number().int().describe(\"The number of Vouchers you want to generate (min: 1, max: 500)\"),\n contact_uuid: z.string().describe(\"The Contact's UUID to be linked to the batch of Vouchers\").optional(),\n promotion_uuid: z.string().describe(\"UUID of the Promotion for which the Vouchers are to be created\"),\n activation_date: z.string().describe(\"The activation date for the batch of Vouchers in ISO 8601 format\").optional(),\n expiration_date: z.string().describe(\"The expiration date for the batch of Vouchers in ISO 8601 format\").optional(),\n custom_attributes: z.array(z.object({\n key: z.string().describe(\"Attribute key\"),\n value: z.string().describe(\"Attribute value\"),\n}).passthrough().describe(\"Custom attribute for vouchers.\")).describe(\"Additional Custom Attributes for the Vouchers\").optional(),\n}).describe(\"Request schema for batch voucher creation.\");\nconst PiggyCreateVouchersBatch_VoucherBatchDataSchema = z.object({\n type: z.string().describe(\"Resource type, always 'vouchers' for this endpoint\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the batch operation\").nullable(),\n status: z.string().describe(\"Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous\").nullable(),\n quantity: z.number().int().describe(\"The number of vouchers generated in this batch\").nullable(),\n created_at: z.string().describe(\"Timestamp when batch was created\").nullable(),\n}).passthrough().describe(\"Batch voucher creation data.\");\nexport const PiggyCreateVouchersBatchOutput = z.object({\n data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for batch voucher creation.\");\n\nexport const piggyCreateVouchersBatch = action(\"PIGGY_CREATE_VOUCHERS_BATCH\", {\n slug: \"piggy-create-vouchers-batch\",\n name: \"Create Vouchers Batch\",\n description: \"Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.\",\n input: PiggyCreateVouchersBatchInput,\n output: PiggyCreateVouchersBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CAC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AO;CACrD,MAAM,gDAAgD,SAAS;CAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-vouchers-batch.d.ts
4
- declare const PiggyCreateVouchersBatchInput: z.ZodTypeAny;
5
- declare const PiggyCreateVouchersBatchOutput: z.ZodTypeAny;
6
- declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
5
+ quantity: z.ZodNumber;
6
+ contact_uuid: z.ZodOptional<z.ZodString>;
7
+ promotion_uuid: z.ZodString;
8
+ activation_date: z.ZodOptional<z.ZodString>;
9
+ expiration_date: z.ZodOptional<z.ZodString>;
10
+ custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ key: z.ZodString;
12
+ value: z.ZodString;
13
+ }, z.core.$loose>>>;
14
+ }, z.core.$strip>;
15
+ declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
16
+ data: z.ZodNullable<z.ZodObject<{
17
+ type: z.ZodNullable<z.ZodString>;
18
+ uuid: z.ZodNullable<z.ZodString>;
19
+ status: z.ZodNullable<z.ZodString>;
20
+ quantity: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>;
23
+ meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
+ }, z.core.$loose>;
25
+ declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ quantity: number;
27
+ promotion_uuid: string;
28
+ contact_uuid?: string | undefined;
29
+ activation_date?: string | undefined;
30
+ expiration_date?: string | undefined;
31
+ custom_attributes?: {
32
+ [x: string]: unknown;
33
+ key: string;
34
+ value: string;
35
+ }[] | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { piggyCreateVouchersBatch };
9
39
  //# sourceMappingURL=create-vouchers-batch.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-vouchers-batch.d.cts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAUW;AAAA,cAQ5C,8BAAA,EAAgC,CAAA,CAAE,UAGW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-vouchers-batch.d.cts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAkB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-vouchers-batch.d.ts
4
- declare const PiggyCreateVouchersBatchInput: z.ZodTypeAny;
5
- declare const PiggyCreateVouchersBatchOutput: z.ZodTypeAny;
6
- declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateVouchersBatchInput: z.ZodObject<{
5
+ quantity: z.ZodNumber;
6
+ contact_uuid: z.ZodOptional<z.ZodString>;
7
+ promotion_uuid: z.ZodString;
8
+ activation_date: z.ZodOptional<z.ZodString>;
9
+ expiration_date: z.ZodOptional<z.ZodString>;
10
+ custom_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ key: z.ZodString;
12
+ value: z.ZodString;
13
+ }, z.core.$loose>>>;
14
+ }, z.core.$strip>;
15
+ declare const PiggyCreateVouchersBatchOutput: z.ZodObject<{
16
+ data: z.ZodNullable<z.ZodObject<{
17
+ type: z.ZodNullable<z.ZodString>;
18
+ uuid: z.ZodNullable<z.ZodString>;
19
+ status: z.ZodNullable<z.ZodString>;
20
+ quantity: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>;
23
+ meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
+ }, z.core.$loose>;
25
+ declare const piggyCreateVouchersBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ quantity: number;
27
+ promotion_uuid: string;
28
+ contact_uuid?: string | undefined;
29
+ activation_date?: string | undefined;
30
+ expiration_date?: string | undefined;
31
+ custom_attributes?: {
32
+ [x: string]: unknown;
33
+ key: string;
34
+ value: string;
35
+ }[] | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { piggyCreateVouchersBatch };
9
39
  //# sourceMappingURL=create-vouchers-batch.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-vouchers-batch.d.mts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAUW;AAAA,cAQ5C,8BAAA,EAAgC,CAAA,CAAE,UAGW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-vouchers-batch.d.mts","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAkB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
@@ -10,15 +10,15 @@ const PiggyCreateVouchersBatchInput = z.object({
10
10
  custom_attributes: z.array(z.object({
11
11
  key: z.string().describe("Attribute key"),
12
12
  value: z.string().describe("Attribute value")
13
- }).describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
13
+ }).passthrough().describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
14
14
  }).describe("Request schema for batch voucher creation.");
15
15
  const PiggyCreateVouchersBatch_VoucherBatchDataSchema = z.object({
16
- type: z.string().describe("Resource type, always 'vouchers' for this endpoint"),
17
- uuid: z.string().describe("Unique identifier for the batch operation"),
18
- status: z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous"),
19
- quantity: z.number().int().describe("The number of vouchers generated in this batch"),
20
- created_at: z.string().describe("Timestamp when batch was created")
21
- }).describe("Batch voucher creation data.");
16
+ type: z.string().describe("Resource type, always 'vouchers' for this endpoint").nullable(),
17
+ uuid: z.string().describe("Unique identifier for the batch operation").nullable(),
18
+ status: z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous").nullable(),
19
+ quantity: z.number().int().describe("The number of vouchers generated in this batch").nullable(),
20
+ created_at: z.string().describe("Timestamp when batch was created").nullable()
21
+ }).passthrough().describe("Batch voucher creation data.");
22
22
  const piggyCreateVouchersBatch = action("PIGGY_CREATE_VOUCHERS_BATCH", {
23
23
  slug: "piggy-create-vouchers-batch",
24
24
  name: "Create Vouchers Batch",
@@ -27,7 +27,7 @@ const piggyCreateVouchersBatch = action("PIGGY_CREATE_VOUCHERS_BATCH", {
27
27
  output: z.object({
28
28
  data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),
29
29
  meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
30
- }).describe("Response schema for batch voucher creation.")
30
+ }).passthrough().describe("Response schema for batch voucher creation.")
31
31
  });
32
32
  //#endregion
33
33
  export { piggyCreateVouchersBatch };
@@ -1 +1 @@
1
- {"version":3,"file":"create-vouchers-batch.mjs","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput: z.ZodTypeAny = z.object({\n quantity: z.number().int().describe(\"The number of Vouchers you want to generate (min: 1, max: 500)\"),\n contact_uuid: z.string().describe(\"The Contact's UUID to be linked to the batch of Vouchers\").optional(),\n promotion_uuid: z.string().describe(\"UUID of the Promotion for which the Vouchers are to be created\"),\n activation_date: z.string().describe(\"The activation date for the batch of Vouchers in ISO 8601 format\").optional(),\n expiration_date: z.string().describe(\"The expiration date for the batch of Vouchers in ISO 8601 format\").optional(),\n custom_attributes: z.array(z.object({\n key: z.string().describe(\"Attribute key\"),\n value: z.string().describe(\"Attribute value\"),\n}).describe(\"Custom attribute for vouchers.\")).describe(\"Additional Custom Attributes for the Vouchers\").optional(),\n}).describe(\"Request schema for batch voucher creation.\");\nconst PiggyCreateVouchersBatch_VoucherBatchDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Resource type, always 'vouchers' for this endpoint\"),\n uuid: z.string().describe(\"Unique identifier for the batch operation\"),\n status: z.string().describe(\"Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous\"),\n quantity: z.number().int().describe(\"The number of vouchers generated in this batch\"),\n created_at: z.string().describe(\"Timestamp when batch was created\"),\n}).describe(\"Batch voucher creation data.\");\nexport const PiggyCreateVouchersBatchOutput: z.ZodTypeAny = z.object({\n data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).describe(\"Response schema for batch voucher creation.\");\n\nexport const piggyCreateVouchersBatch = action(\"PIGGY_CREATE_VOUCHERS_BATCH\", {\n slug: \"piggy-create-vouchers-batch\",\n name: \"Create Vouchers Batch\",\n description: \"Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.\",\n input: PiggyCreateVouchersBatchInput,\n output: PiggyCreateVouchersBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACpE,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAM1C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0D,EAAE,OAAO;EACnE,MAAM,gDAAgD,SAAS;EAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-vouchers-batch.mjs","names":[],"sources":["../../src/actions/create-vouchers-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateVouchersBatchInput = z.object({\n quantity: z.number().int().describe(\"The number of Vouchers you want to generate (min: 1, max: 500)\"),\n contact_uuid: z.string().describe(\"The Contact's UUID to be linked to the batch of Vouchers\").optional(),\n promotion_uuid: z.string().describe(\"UUID of the Promotion for which the Vouchers are to be created\"),\n activation_date: z.string().describe(\"The activation date for the batch of Vouchers in ISO 8601 format\").optional(),\n expiration_date: z.string().describe(\"The expiration date for the batch of Vouchers in ISO 8601 format\").optional(),\n custom_attributes: z.array(z.object({\n key: z.string().describe(\"Attribute key\"),\n value: z.string().describe(\"Attribute value\"),\n}).passthrough().describe(\"Custom attribute for vouchers.\")).describe(\"Additional Custom Attributes for the Vouchers\").optional(),\n}).describe(\"Request schema for batch voucher creation.\");\nconst PiggyCreateVouchersBatch_VoucherBatchDataSchema = z.object({\n type: z.string().describe(\"Resource type, always 'vouchers' for this endpoint\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the batch operation\").nullable(),\n status: z.string().describe(\"Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous\").nullable(),\n quantity: z.number().int().describe(\"The number of vouchers generated in this batch\").nullable(),\n created_at: z.string().describe(\"Timestamp when batch was created\").nullable(),\n}).passthrough().describe(\"Batch voucher creation data.\");\nexport const PiggyCreateVouchersBatchOutput = z.object({\n data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for batch voucher creation.\");\n\nexport const piggyCreateVouchersBatch = action(\"PIGGY_CREATE_VOUCHERS_BATCH\", {\n slug: \"piggy-create-vouchers-batch\",\n name: \"Create Vouchers Batch\",\n description: \"Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.\",\n input: PiggyCreateVouchersBatchInput,\n output: PiggyCreateVouchersBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,gDAAgD,SAAS;EAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -6,25 +6,25 @@ const PiggyFindOrCreateProductsInput = zod.z.object({
6
6
  categories: zod.z.array(zod.z.object({
7
7
  uuid: zod.z.string().describe("UUID of an existing category to associate with the product").optional(),
8
8
  external_identifier: zod.z.string().describe("External identifier of an existing category to associate with the product").optional()
9
- }).describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
9
+ }).passthrough().describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
10
10
  description: zod.z.string().describe("The description of the Product").optional(),
11
11
  external_identifier: zod.z.string().describe("A unique identifier from your system to find or create the product")
12
12
  }).describe("Request model for finding or creating a product in Piggy.");
13
13
  const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = zod.z.object({
14
- uuid: zod.z.string().describe("UUID of the category"),
14
+ uuid: zod.z.string().describe("UUID of the category").nullable(),
15
15
  external_identifier: zod.z.string().describe("External identifier of the category").nullable().optional()
16
- }).describe("Category information in product response.");
16
+ }).passthrough().describe("Category information in product response.");
17
17
  const PiggyFindOrCreateProducts_ProductDataSchema = zod.z.object({
18
- name: zod.z.string().describe("Name of the product"),
19
- uuid: zod.z.string().describe("Unique identifier for the product in Piggy system"),
18
+ name: zod.z.string().describe("Name of the product").nullable(),
19
+ uuid: zod.z.string().describe("Unique identifier for the product in Piggy system").nullable(),
20
20
  categories: zod.z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
21
21
  description: zod.z.string().describe("Description of the product").nullable().optional(),
22
- external_identifier: zod.z.string().describe("External identifier from your system")
23
- }).describe("Product data object returned by the API.");
22
+ external_identifier: zod.z.string().describe("External identifier from your system").nullable()
23
+ }).passthrough().describe("Product data object returned by the API.");
24
24
  const PiggyFindOrCreateProductsOutput = zod.z.object({
25
25
  data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
26
26
  meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty").nullable().optional()
27
- }).describe("Response model for finding or creating a product.");
27
+ }).passthrough().describe("Response model for finding or creating a product.");
28
28
  const piggyFindOrCreateProducts = require_action.action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
29
29
  slug: "piggy-find-or-create-products",
30
30
  name: "Find or Create Products",
@@ -1 +1 @@
1
- {"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput: z.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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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"}
1
+ {"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC5M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,4CAA4C,SAAS;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PiggyFindOrCreateProductsInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ external_identifier: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$loose>>>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ external_identifier: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const PiggyFindOrCreateProductsOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ name: z.ZodNullable<z.ZodString>;
16
+ uuid: z.ZodNullable<z.ZodString>;
17
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodNullable<z.ZodString>;
19
+ external_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>>>;
21
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ external_identifier: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$loose>>;
24
+ meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
25
+ }, z.core.$loose>;
26
+ declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ external_identifier: string;
28
+ name?: string | undefined;
29
+ categories?: {
30
+ [x: string]: unknown;
31
+ uuid?: string | undefined;
32
+ external_identifier?: string | undefined;
33
+ }[] | undefined;
34
+ description?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { piggyFindOrCreateProducts };
9
38
  //# sourceMappingURL=find-or-create-products.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"find-or-create-products.d.cts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PiggyFindOrCreateProductsInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ external_identifier: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$loose>>>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ external_identifier: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const PiggyFindOrCreateProductsOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ name: z.ZodNullable<z.ZodString>;
16
+ uuid: z.ZodNullable<z.ZodString>;
17
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodNullable<z.ZodString>;
19
+ external_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>>>;
21
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ external_identifier: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$loose>>;
24
+ meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
25
+ }, z.core.$loose>;
26
+ declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ external_identifier: string;
28
+ name?: string | undefined;
29
+ categories?: {
30
+ [x: string]: unknown;
31
+ uuid?: string | undefined;
32
+ external_identifier?: string | undefined;
33
+ }[] | undefined;
34
+ description?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { piggyFindOrCreateProducts };
9
38
  //# sourceMappingURL=find-or-create-products.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"find-or-create-products.d.mts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,21 +6,21 @@ const PiggyFindOrCreateProductsInput = z.object({
6
6
  categories: z.array(z.object({
7
7
  uuid: z.string().describe("UUID of an existing category to associate with the product").optional(),
8
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(),
9
+ }).passthrough().describe("Category reference for product association.")).describe("List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier").optional(),
10
10
  description: z.string().describe("The description of the Product").optional(),
11
11
  external_identifier: z.string().describe("A unique identifier from your system to find or create the product")
12
12
  }).describe("Request model for finding or creating a product in Piggy.");
13
13
  const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({
14
- uuid: z.string().describe("UUID of the category"),
14
+ uuid: z.string().describe("UUID of the category").nullable(),
15
15
  external_identifier: z.string().describe("External identifier of the category").nullable().optional()
16
- }).describe("Category information in product response.");
16
+ }).passthrough().describe("Category information in product response.");
17
17
  const PiggyFindOrCreateProducts_ProductDataSchema = z.object({
18
- name: z.string().describe("Name of the product"),
19
- uuid: z.string().describe("Unique identifier for the product in Piggy system"),
18
+ name: z.string().describe("Name of the product").nullable(),
19
+ uuid: z.string().describe("Unique identifier for the product in Piggy system").nullable(),
20
20
  categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
21
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.");
22
+ external_identifier: z.string().describe("External identifier from your system").nullable()
23
+ }).passthrough().describe("Product data object returned by the API.");
24
24
  const piggyFindOrCreateProducts = action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
25
25
  slug: "piggy-find-or-create-products",
26
26
  name: "Find or Create Products",
@@ -29,7 +29,7 @@ const piggyFindOrCreateProducts = action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
29
29
  output: z.object({
30
30
  data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
31
31
  meta: z.array(z.unknown()).describe("Metadata array; typically empty").nullable().optional()
32
- }).describe("Response model for finding or creating a product.")
32
+ }).passthrough().describe("Response model for finding or creating a product.")
33
33
  });
34
34
  //#endregion
35
35
  export { piggyFindOrCreateProducts };
@@ -1 +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,SA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MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
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.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,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,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC5M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,4CAA4C,SAAS;EAC3D,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -5,20 +5,20 @@ const PiggyFindVoucherByCodeInput = zod.z.object({ code: zod.z.string().describe
5
5
  const PiggyFindVoucherByCode_VoucherContactSchema = zod.z.object({
6
6
  uuid: zod.z.string().describe("UUID of the contact").nullable().optional(),
7
7
  email: zod.z.string().describe("Email of the contact").nullable().optional()
8
- }).describe("Contact associated with the voucher.");
8
+ }).passthrough().describe("Contact associated with the voucher.");
9
9
  const PiggyFindVoucherByCode_VoucherPromotionSchema = zod.z.object({
10
10
  name: zod.z.string().describe("Name of the promotion").nullable().optional(),
11
11
  uuid: zod.z.string().describe("UUID of the promotion").nullable().optional(),
12
12
  description: zod.z.string().describe("Description of the promotion").nullable().optional()
13
- }).describe("Promotion details associated with the voucher.");
13
+ }).passthrough().describe("Promotion details associated with the voucher.");
14
14
  const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
15
- code: zod.z.string().describe("Unique code of the voucher"),
15
+ code: zod.z.string().describe("Unique code of the voucher").nullable(),
16
16
  name: zod.z.string().describe("Name of the voucher").nullable().optional(),
17
- uuid: zod.z.string().describe("UUID of the voucher"),
17
+ uuid: zod.z.string().describe("UUID of the voucher").nullable(),
18
18
  status: zod.z.string().describe("Status of the voucher (e.g., ACTIVE, REDEEMED)").nullable().optional(),
19
19
  contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),
20
20
  promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),
21
- attributes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
21
+ attributes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
22
22
  description: zod.z.string().describe("Description of the voucher").nullable().optional(),
23
23
  is_redeemed: zod.z.boolean().describe("Indicates if the voucher has been redeemed").nullable().optional(),
24
24
  redeemed_at: zod.z.string().describe("Date when the voucher was redeemed in ISO 8601 format").nullable().optional(),
@@ -27,11 +27,11 @@ const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
27
27
  expiration_date: zod.z.string().describe("Expiration date of the voucher in ISO 8601 format").nullable().optional(),
28
28
  redemptions_remaining: zod.z.number().int().describe("Number of redemptions remaining for the voucher").nullable().optional(),
29
29
  total_redemptions_allowed: zod.z.number().int().describe("Total number of redemptions allowed for the voucher").nullable().optional()
30
- }).describe("Detailed voucher information.");
30
+ }).passthrough().describe("Detailed voucher information.");
31
31
  const PiggyFindVoucherByCodeOutput = zod.z.object({
32
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.");
33
+ meta: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional()
34
+ }).passthrough().describe("Response schema for voucher retrieval by code.");
35
35
  const piggyFindVoucherByCode = require_action.action("PIGGY_FIND_VOUCHER_BY_CODE", {
36
36
  slug: "piggy-find-voucher-by-code",
37
37
  name: "Find Voucher By Code",
@@ -1 +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: PiggyFindVoucherByCodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAA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CAC9G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAM,yCAAyC,SAAS;CACxD,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,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"}
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.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.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).passthrough().describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema = 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}).passthrough().describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema = z.object({\n code: z.string().describe(\"Unique code of the voucher\").nullable(),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\").nullable(),\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.record(z.string(), z.unknown()), 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}).passthrough().describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().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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B;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,yCAAyC,SAAS;CACxD,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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/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]>;
4
+ declare const PiggyFindVoucherByCodeInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ uuid: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>;
17
+ promotion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$loose>>>;
22
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ is_redeemed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
+ redeemed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ times_redeemed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ activation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ redemptions_remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ total_redemptions_allowed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$loose>>;
32
+ meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
33
+ }, z.core.$loose>;
34
+ declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ code: string;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { piggyFindVoucherByCode };
9
39
  //# sourceMappingURL=find-voucher-by-code.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"find-voucher-by-code.d.cts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PiggyFindVoucherByCodeInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ uuid: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>;
17
+ promotion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$loose>>>;
22
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ is_redeemed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
+ redeemed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ times_redeemed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ activation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ redemptions_remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ total_redemptions_allowed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$loose>>;
32
+ meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
33
+ }, z.core.$loose>;
34
+ declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ code: string;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { piggyFindVoucherByCode };
9
39
  //# sourceMappingURL=find-voucher-by-code.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"find-voucher-by-code.d.mts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}