@keystrokehq/recruitee 0.1.4 → 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 (197) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-candidate.cjs +1 -0
  4. package/dist/actions/create-candidate.cjs.map +1 -1
  5. package/dist/actions/create-candidate.d.cts +3 -13
  6. package/dist/actions/create-candidate.d.cts.map +1 -1
  7. package/dist/actions/create-candidate.d.mts +3 -13
  8. package/dist/actions/create-candidate.d.mts.map +1 -1
  9. package/dist/actions/create-candidate.mjs +1 -0
  10. package/dist/actions/create-candidate.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +1 -0
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +3 -9
  14. package/dist/actions/create-note.d.cts.map +1 -1
  15. package/dist/actions/create-note.d.mts +3 -9
  16. package/dist/actions/create-note.d.mts.map +1 -1
  17. package/dist/actions/create-note.mjs +1 -0
  18. package/dist/actions/create-note.mjs.map +1 -1
  19. package/dist/actions/create-offer.cjs +1 -0
  20. package/dist/actions/create-offer.cjs.map +1 -1
  21. package/dist/actions/create-offer.d.cts +7 -26
  22. package/dist/actions/create-offer.d.cts.map +1 -1
  23. package/dist/actions/create-offer.d.mts +7 -26
  24. package/dist/actions/create-offer.d.mts.map +1 -1
  25. package/dist/actions/create-offer.mjs +1 -0
  26. package/dist/actions/create-offer.mjs.map +1 -1
  27. package/dist/actions/delete-candidate.cjs +1 -0
  28. package/dist/actions/delete-candidate.cjs.map +1 -1
  29. package/dist/actions/delete-candidate.d.cts +3 -3
  30. package/dist/actions/delete-candidate.d.cts.map +1 -1
  31. package/dist/actions/delete-candidate.d.mts +3 -3
  32. package/dist/actions/delete-candidate.d.mts.map +1 -1
  33. package/dist/actions/delete-candidate.mjs +1 -0
  34. package/dist/actions/delete-candidate.mjs.map +1 -1
  35. package/dist/actions/delete-tag.cjs +1 -0
  36. package/dist/actions/delete-tag.cjs.map +1 -1
  37. package/dist/actions/delete-tag.d.cts +3 -3
  38. package/dist/actions/delete-tag.d.cts.map +1 -1
  39. package/dist/actions/delete-tag.d.mts +3 -3
  40. package/dist/actions/delete-tag.d.mts.map +1 -1
  41. package/dist/actions/delete-tag.mjs +1 -0
  42. package/dist/actions/delete-tag.mjs.map +1 -1
  43. package/dist/actions/get-candidate.cjs +1 -0
  44. package/dist/actions/get-candidate.cjs.map +1 -1
  45. package/dist/actions/get-candidate.d.cts +3 -4
  46. package/dist/actions/get-candidate.d.cts.map +1 -1
  47. package/dist/actions/get-candidate.d.mts +3 -4
  48. package/dist/actions/get-candidate.d.mts.map +1 -1
  49. package/dist/actions/get-candidate.mjs +1 -0
  50. package/dist/actions/get-candidate.mjs.map +1 -1
  51. package/dist/actions/get-candidates.cjs +1 -0
  52. package/dist/actions/get-candidates.cjs.map +1 -1
  53. package/dist/actions/get-candidates.d.cts +3 -13
  54. package/dist/actions/get-candidates.d.cts.map +1 -1
  55. package/dist/actions/get-candidates.d.mts +3 -13
  56. package/dist/actions/get-candidates.d.mts.map +1 -1
  57. package/dist/actions/get-candidates.mjs +1 -0
  58. package/dist/actions/get-candidates.mjs.map +1 -1
  59. package/dist/actions/get-company-id.cjs +1 -0
  60. package/dist/actions/get-company-id.cjs.map +1 -1
  61. package/dist/actions/get-company-id.d.cts +3 -1
  62. package/dist/actions/get-company-id.d.cts.map +1 -1
  63. package/dist/actions/get-company-id.d.mts +3 -1
  64. package/dist/actions/get-company-id.d.mts.map +1 -1
  65. package/dist/actions/get-company-id.mjs +1 -0
  66. package/dist/actions/get-company-id.mjs.map +1 -1
  67. package/dist/actions/get-company-offer-public.cjs +1 -0
  68. package/dist/actions/get-company-offer-public.cjs.map +1 -1
  69. package/dist/actions/get-company-offer-public.d.cts +3 -3
  70. package/dist/actions/get-company-offer-public.d.cts.map +1 -1
  71. package/dist/actions/get-company-offer-public.d.mts +3 -3
  72. package/dist/actions/get-company-offer-public.d.mts.map +1 -1
  73. package/dist/actions/get-company-offer-public.mjs +1 -0
  74. package/dist/actions/get-company-offer-public.mjs.map +1 -1
  75. package/dist/actions/get-departments.cjs +1 -0
  76. package/dist/actions/get-departments.cjs.map +1 -1
  77. package/dist/actions/get-departments.d.cts +3 -1
  78. package/dist/actions/get-departments.d.cts.map +1 -1
  79. package/dist/actions/get-departments.d.mts +3 -1
  80. package/dist/actions/get-departments.d.mts.map +1 -1
  81. package/dist/actions/get-departments.mjs +1 -0
  82. package/dist/actions/get-departments.mjs.map +1 -1
  83. package/dist/actions/get-locations.cjs +1 -0
  84. package/dist/actions/get-locations.cjs.map +1 -1
  85. package/dist/actions/get-locations.d.cts +3 -1
  86. package/dist/actions/get-locations.d.cts.map +1 -1
  87. package/dist/actions/get-locations.d.mts +3 -1
  88. package/dist/actions/get-locations.d.mts.map +1 -1
  89. package/dist/actions/get-locations.mjs +1 -0
  90. package/dist/actions/get-locations.mjs.map +1 -1
  91. package/dist/actions/get-notes.cjs +1 -0
  92. package/dist/actions/get-notes.cjs.map +1 -1
  93. package/dist/actions/get-notes.d.cts +3 -5
  94. package/dist/actions/get-notes.d.cts.map +1 -1
  95. package/dist/actions/get-notes.d.mts +3 -5
  96. package/dist/actions/get-notes.d.mts.map +1 -1
  97. package/dist/actions/get-notes.mjs +1 -0
  98. package/dist/actions/get-notes.mjs.map +1 -1
  99. package/dist/actions/get-offers.cjs +1 -0
  100. package/dist/actions/get-offers.cjs.map +1 -1
  101. package/dist/actions/get-offers.d.cts +3 -6
  102. package/dist/actions/get-offers.d.cts.map +1 -1
  103. package/dist/actions/get-offers.d.mts +3 -6
  104. package/dist/actions/get-offers.d.mts.map +1 -1
  105. package/dist/actions/get-offers.mjs +1 -0
  106. package/dist/actions/get-offers.mjs.map +1 -1
  107. package/dist/actions/get-pipeline-stages.cjs +1 -0
  108. package/dist/actions/get-pipeline-stages.cjs.map +1 -1
  109. package/dist/actions/get-pipeline-stages.d.cts +3 -3
  110. package/dist/actions/get-pipeline-stages.d.cts.map +1 -1
  111. package/dist/actions/get-pipeline-stages.d.mts +3 -3
  112. package/dist/actions/get-pipeline-stages.d.mts.map +1 -1
  113. package/dist/actions/get-pipeline-stages.mjs +1 -0
  114. package/dist/actions/get-pipeline-stages.mjs.map +1 -1
  115. package/dist/actions/get-tags.cjs +1 -0
  116. package/dist/actions/get-tags.cjs.map +1 -1
  117. package/dist/actions/get-tags.d.cts +3 -7
  118. package/dist/actions/get-tags.d.cts.map +1 -1
  119. package/dist/actions/get-tags.d.mts +3 -7
  120. package/dist/actions/get-tags.d.mts.map +1 -1
  121. package/dist/actions/get-tags.mjs +1 -0
  122. package/dist/actions/get-tags.mjs.map +1 -1
  123. package/dist/actions/list-eeo-job-categories.cjs +1 -0
  124. package/dist/actions/list-eeo-job-categories.cjs.map +1 -1
  125. package/dist/actions/list-eeo-job-categories.d.cts +3 -1
  126. package/dist/actions/list-eeo-job-categories.d.cts.map +1 -1
  127. package/dist/actions/list-eeo-job-categories.d.mts +3 -1
  128. package/dist/actions/list-eeo-job-categories.d.mts.map +1 -1
  129. package/dist/actions/list-eeo-job-categories.mjs +1 -0
  130. package/dist/actions/list-eeo-job-categories.mjs.map +1 -1
  131. package/dist/actions/list-invoices.cjs +1 -0
  132. package/dist/actions/list-invoices.cjs.map +1 -1
  133. package/dist/actions/list-invoices.d.cts +3 -3
  134. package/dist/actions/list-invoices.d.cts.map +1 -1
  135. package/dist/actions/list-invoices.d.mts +3 -3
  136. package/dist/actions/list-invoices.d.mts.map +1 -1
  137. package/dist/actions/list-invoices.mjs +1 -0
  138. package/dist/actions/list-invoices.mjs.map +1 -1
  139. package/dist/actions/list-localization-settings.cjs +1 -0
  140. package/dist/actions/list-localization-settings.cjs.map +1 -1
  141. package/dist/actions/list-localization-settings.d.cts +3 -1
  142. package/dist/actions/list-localization-settings.d.cts.map +1 -1
  143. package/dist/actions/list-localization-settings.d.mts +3 -1
  144. package/dist/actions/list-localization-settings.d.mts.map +1 -1
  145. package/dist/actions/list-localization-settings.mjs +1 -0
  146. package/dist/actions/list-localization-settings.mjs.map +1 -1
  147. package/dist/actions/list-share-countries.cjs +1 -0
  148. package/dist/actions/list-share-countries.cjs.map +1 -1
  149. package/dist/actions/list-share-countries.d.cts +3 -1
  150. package/dist/actions/list-share-countries.d.cts.map +1 -1
  151. package/dist/actions/list-share-countries.d.mts +3 -1
  152. package/dist/actions/list-share-countries.d.mts.map +1 -1
  153. package/dist/actions/list-share-countries.mjs +1 -0
  154. package/dist/actions/list-share-countries.mjs.map +1 -1
  155. package/dist/actions/list-share-eeo-answers.cjs +1 -0
  156. package/dist/actions/list-share-eeo-answers.cjs.map +1 -1
  157. package/dist/actions/list-share-eeo-answers.d.cts +3 -1
  158. package/dist/actions/list-share-eeo-answers.d.cts.map +1 -1
  159. package/dist/actions/list-share-eeo-answers.d.mts +3 -1
  160. package/dist/actions/list-share-eeo-answers.d.mts.map +1 -1
  161. package/dist/actions/list-share-eeo-answers.mjs +1 -0
  162. package/dist/actions/list-share-eeo-answers.mjs.map +1 -1
  163. package/dist/actions/update-candidate.cjs +1 -0
  164. package/dist/actions/update-candidate.cjs.map +1 -1
  165. package/dist/actions/update-candidate.d.cts +3 -14
  166. package/dist/actions/update-candidate.d.cts.map +1 -1
  167. package/dist/actions/update-candidate.d.mts +3 -14
  168. package/dist/actions/update-candidate.d.mts.map +1 -1
  169. package/dist/actions/update-candidate.mjs +1 -0
  170. package/dist/actions/update-candidate.mjs.map +1 -1
  171. package/dist/actions/update-note.cjs +1 -0
  172. package/dist/actions/update-note.cjs.map +1 -1
  173. package/dist/actions/update-note.d.cts +3 -6
  174. package/dist/actions/update-note.d.cts.map +1 -1
  175. package/dist/actions/update-note.d.mts +3 -6
  176. package/dist/actions/update-note.d.mts.map +1 -1
  177. package/dist/actions/update-note.mjs +1 -0
  178. package/dist/actions/update-note.mjs.map +1 -1
  179. package/dist/actions/update-offer.cjs +1 -0
  180. package/dist/actions/update-offer.cjs.map +1 -1
  181. package/dist/actions/update-offer.d.cts +7 -25
  182. package/dist/actions/update-offer.d.cts.map +1 -1
  183. package/dist/actions/update-offer.d.mts +7 -25
  184. package/dist/actions/update-offer.d.mts.map +1 -1
  185. package/dist/actions/update-offer.mjs +1 -0
  186. package/dist/actions/update-offer.mjs.map +1 -1
  187. package/dist/app.cjs +9 -2
  188. package/dist/app.cjs.map +1 -1
  189. package/dist/app.d.cts +8 -1
  190. package/dist/app.d.cts.map +1 -1
  191. package/dist/app.d.mts +8 -1
  192. package/dist/app.d.mts.map +1 -1
  193. package/dist/app.mjs +6 -2
  194. package/dist/app.mjs.map +1 -1
  195. package/dist/index.d.cts +1 -1
  196. package/dist/index.d.mts +1 -1
  197. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["recruitee","executeRecruiteeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { recruitee } from \"./app\";\nimport { executeRecruiteeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return recruitee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRecruiteeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["recruitee","executeRecruiteeTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { recruitee } from \"./app\";\nimport { executeRecruiteeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof recruitee.credential> {\n return recruitee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRecruiteeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { recruitee } from \"./app\";\nimport { executeRecruiteeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return recruitee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRecruiteeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { recruitee } from \"./app\";\nimport { executeRecruiteeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof recruitee.credential> {\n return recruitee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRecruiteeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -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/create-candidate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-candidate.cjs","names":["z","action"],"sources":["../../src/actions/create-candidate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateCandidateInput = z.object({\n name: z.string().describe(\"Full name of the candidate.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the candidate.\").optional(),\n email: z.string().describe(\"Email address of the candidate\").optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").optional(),\n photo: z.string().describe(\"URL to the candidate's photo\").optional(),\n offers: z.array(z.number().int()).describe(\"List of offer IDs to associate with the candidate.\").optional(),\n resume: z.string().describe(\"URL to the candidate's resume\").optional(),\n source: z.string().describe(\"The source from which the candidate was obtained.\").optional(),\n cover_letter: z.string().describe(\"Cover letter text for the candidate.\").optional(),\n social_links: z.array(z.string().describe(\"URL to candidate's social profile\")).describe(\"List of social media profile links for the candidate.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the candidate as defined by the company.\").optional(),\n}).describe(\"Fields required to create a new candidate in Recruitee.\");\nconst RecruiteeCreateCandidate_CandidateSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the candidate.\").nullable(),\n name: z.string().describe(\"Full name of the candidate.\").nullable(),\n tags: z.array(z.string()).describe(\"Tags associated with the candidate.\").nullable().optional(),\n email: z.string().describe(\"Email address of the candidate.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").nullable().optional(),\n photo: z.string().describe(\"URL of the candidate's photo.\").nullable().optional(),\n resume: z.string().describe(\"URL of the candidate's resume.\").nullable().optional(),\n source: z.string().describe(\"Source from which the candidate was obtained.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the candidate was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the candidate was last updated.\").nullable(),\n cover_letter: z.string().describe(\"Cover letter text.\").nullable().optional(),\n social_links: z.array(z.string()).describe(\"URLs of the candidate's social profiles.\").nullable().optional(),\n custom_fields: z.unknown().describe(\"Custom fields defined by the company for the candidate.\").nullable().optional(),\n}).passthrough();\nexport const RecruiteeCreateCandidateOutput = z.object({\n candidate: RecruiteeCreateCandidate_CandidateSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created candidate.\");\n\nexport const recruiteeCreateCandidate = action(\"RECRUITEE_CREATE_CANDIDATE\", {\n slug: \"recruitee-create-candidate\",\n name: \"Create Candidate\",\n description: \"Tool to create a new candidate profile. Use after gathering all candidate details. Example: \\\"Create a new candidate named Jane Doe with email jane.doe@example.com.\\\"\",\n input: RecruiteeCreateCandidateInput,\n output: RecruiteeCreateCandidateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC3J,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAA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CAC3G,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,WAAW,yCAAyC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-candidate.cjs","names":["z","action"],"sources":["../../src/actions/create-candidate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateCandidateInput = z.object({\n name: z.string().describe(\"Full name of the candidate.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the candidate.\").optional(),\n email: z.string().describe(\"Email address of the candidate\").optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").optional(),\n photo: z.string().describe(\"URL to the candidate's photo\").optional(),\n offers: z.array(z.number().int()).describe(\"List of offer IDs to associate with the candidate.\").optional(),\n resume: z.string().describe(\"URL to the candidate's resume\").optional(),\n source: z.string().describe(\"The source from which the candidate was obtained.\").optional(),\n cover_letter: z.string().describe(\"Cover letter text for the candidate.\").optional(),\n social_links: z.array(z.string().describe(\"URL to candidate's social profile\")).describe(\"List of social media profile links for the candidate.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the candidate as defined by the company.\").optional(),\n}).describe(\"Fields required to create a new candidate in Recruitee.\");\nconst RecruiteeCreateCandidate_CandidateSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the candidate.\").nullable(),\n name: z.string().describe(\"Full name of the candidate.\").nullable(),\n tags: z.array(z.string()).describe(\"Tags associated with the candidate.\").nullable().optional(),\n email: z.string().describe(\"Email address of the candidate.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").nullable().optional(),\n photo: z.string().describe(\"URL of the candidate's photo.\").nullable().optional(),\n resume: z.string().describe(\"URL of the candidate's resume.\").nullable().optional(),\n source: z.string().describe(\"Source from which the candidate was obtained.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the candidate was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the candidate was last updated.\").nullable(),\n cover_letter: z.string().describe(\"Cover letter text.\").nullable().optional(),\n social_links: z.array(z.string()).describe(\"URLs of the candidate's social profiles.\").nullable().optional(),\n custom_fields: z.unknown().describe(\"Custom fields defined by the company for the candidate.\").nullable().optional(),\n}).passthrough();\nexport const RecruiteeCreateCandidateOutput = z.object({\n candidate: RecruiteeCreateCandidate_CandidateSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created candidate.\");\n\nexport const recruiteeCreateCandidate: AppAction<\n typeof RecruiteeCreateCandidateInput,\n typeof RecruiteeCreateCandidateOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_CANDIDATE\", {\n slug: \"recruitee-create-candidate\",\n name: \"Create Candidate\",\n description: \"Tool to create a new candidate profile. Use after gathering all candidate details. Example: \\\"Create a new candidate named Jane Doe with email jane.doe@example.com.\\\"\",\n input: RecruiteeCreateCandidateInput,\n output: RecruiteeCreateCandidateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAA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AAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,WAAW,yCAAyC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-candidate.d.ts
@@ -31,19 +33,7 @@ declare const RecruiteeCreateCandidateOutput: z.ZodObject<{
31
33
  custom_fields: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const recruiteeCreateCandidate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- name: string;
36
- tags?: string[] | undefined;
37
- email?: string | undefined;
38
- phone?: string | undefined;
39
- photo?: string | undefined;
40
- offers?: number[] | undefined;
41
- resume?: string | undefined;
42
- source?: string | undefined;
43
- cover_letter?: string | undefined;
44
- social_links?: string[] | undefined;
45
- custom_fields?: Record<string, unknown> | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const recruiteeCreateCandidate: AppAction<typeof RecruiteeCreateCandidateInput, typeof RecruiteeCreateCandidateOutput, typeof recruitee.credential>;
47
37
  //#endregion
48
38
  export { recruiteeCreateCandidate };
49
39
  //# sourceMappingURL=create-candidate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-candidate.d.cts","names":[],"sources":["../../src/actions/create-candidate.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;kBAMnC,MAAA;AAAA"}
1
+ {"version":3,"file":"create-candidate.d.cts","names":[],"sources":["../../src/actions/create-candidate.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-candidate.d.ts
@@ -31,19 +33,7 @@ declare const RecruiteeCreateCandidateOutput: z.ZodObject<{
31
33
  custom_fields: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const recruiteeCreateCandidate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- name: string;
36
- tags?: string[] | undefined;
37
- email?: string | undefined;
38
- phone?: string | undefined;
39
- photo?: string | undefined;
40
- offers?: number[] | undefined;
41
- resume?: string | undefined;
42
- source?: string | undefined;
43
- cover_letter?: string | undefined;
44
- social_links?: string[] | undefined;
45
- custom_fields?: Record<string, unknown> | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const recruiteeCreateCandidate: AppAction<typeof RecruiteeCreateCandidateInput, typeof RecruiteeCreateCandidateOutput, typeof recruitee.credential>;
47
37
  //#endregion
48
38
  export { recruiteeCreateCandidate };
49
39
  //# sourceMappingURL=create-candidate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-candidate.d.mts","names":[],"sources":["../../src/actions/create-candidate.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;kBAMnC,MAAA;AAAA"}
1
+ {"version":3,"file":"create-candidate.d.mts","names":[],"sources":["../../src/actions/create-candidate.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,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/create-candidate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-candidate.mjs","names":[],"sources":["../../src/actions/create-candidate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateCandidateInput = z.object({\n name: z.string().describe(\"Full name of the candidate.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the candidate.\").optional(),\n email: z.string().describe(\"Email address of the candidate\").optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").optional(),\n photo: z.string().describe(\"URL to the candidate's photo\").optional(),\n offers: z.array(z.number().int()).describe(\"List of offer IDs to associate with the candidate.\").optional(),\n resume: z.string().describe(\"URL to the candidate's resume\").optional(),\n source: z.string().describe(\"The source from which the candidate was obtained.\").optional(),\n cover_letter: z.string().describe(\"Cover letter text for the candidate.\").optional(),\n social_links: z.array(z.string().describe(\"URL to candidate's social profile\")).describe(\"List of social media profile links for the candidate.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the candidate as defined by the company.\").optional(),\n}).describe(\"Fields required to create a new candidate in Recruitee.\");\nconst RecruiteeCreateCandidate_CandidateSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the candidate.\").nullable(),\n name: z.string().describe(\"Full name of the candidate.\").nullable(),\n tags: z.array(z.string()).describe(\"Tags associated with the candidate.\").nullable().optional(),\n email: z.string().describe(\"Email address of the candidate.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").nullable().optional(),\n photo: z.string().describe(\"URL of the candidate's photo.\").nullable().optional(),\n resume: z.string().describe(\"URL of the candidate's resume.\").nullable().optional(),\n source: z.string().describe(\"Source from which the candidate was obtained.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the candidate was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the candidate was last updated.\").nullable(),\n cover_letter: z.string().describe(\"Cover letter text.\").nullable().optional(),\n social_links: z.array(z.string()).describe(\"URLs of the candidate's social profiles.\").nullable().optional(),\n custom_fields: z.unknown().describe(\"Custom fields defined by the company for the candidate.\").nullable().optional(),\n}).passthrough();\nexport const RecruiteeCreateCandidateOutput = z.object({\n candidate: RecruiteeCreateCandidate_CandidateSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created candidate.\");\n\nexport const recruiteeCreateCandidate = action(\"RECRUITEE_CREATE_CANDIDATE\", {\n slug: \"recruitee-create-candidate\",\n name: \"Create Candidate\",\n description: \"Tool to create a new candidate profile. Use after gathering all candidate details. Example: \\\"Create a new candidate named Jane Doe with email jane.doe@example.com.\\\"\",\n input: RecruiteeCreateCandidateInput,\n output: RecruiteeCreateCandidateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,MAA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AC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,WAAW,yCAAyC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-candidate.mjs","names":[],"sources":["../../src/actions/create-candidate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateCandidateInput = z.object({\n name: z.string().describe(\"Full name of the candidate.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the candidate.\").optional(),\n email: z.string().describe(\"Email address of the candidate\").optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").optional(),\n photo: z.string().describe(\"URL to the candidate's photo\").optional(),\n offers: z.array(z.number().int()).describe(\"List of offer IDs to associate with the candidate.\").optional(),\n resume: z.string().describe(\"URL to the candidate's resume\").optional(),\n source: z.string().describe(\"The source from which the candidate was obtained.\").optional(),\n cover_letter: z.string().describe(\"Cover letter text for the candidate.\").optional(),\n social_links: z.array(z.string().describe(\"URL to candidate's social profile\")).describe(\"List of social media profile links for the candidate.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the candidate as defined by the company.\").optional(),\n}).describe(\"Fields required to create a new candidate in Recruitee.\");\nconst RecruiteeCreateCandidate_CandidateSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the candidate.\").nullable(),\n name: z.string().describe(\"Full name of the candidate.\").nullable(),\n tags: z.array(z.string()).describe(\"Tags associated with the candidate.\").nullable().optional(),\n email: z.string().describe(\"Email address of the candidate.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the candidate.\").nullable().optional(),\n photo: z.string().describe(\"URL of the candidate's photo.\").nullable().optional(),\n resume: z.string().describe(\"URL of the candidate's resume.\").nullable().optional(),\n source: z.string().describe(\"Source from which the candidate was obtained.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the candidate was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the candidate was last updated.\").nullable(),\n cover_letter: z.string().describe(\"Cover letter text.\").nullable().optional(),\n social_links: z.array(z.string()).describe(\"URLs of the candidate's social profiles.\").nullable().optional(),\n custom_fields: z.unknown().describe(\"Custom fields defined by the company for the candidate.\").nullable().optional(),\n}).passthrough();\nexport const RecruiteeCreateCandidateOutput = z.object({\n candidate: RecruiteeCreateCandidate_CandidateSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created candidate.\");\n\nexport const recruiteeCreateCandidate: AppAction<\n typeof RecruiteeCreateCandidateInput,\n typeof RecruiteeCreateCandidateOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_CANDIDATE\", {\n slug: \"recruitee-create-candidate\",\n name: \"Create Candidate\",\n description: \"Tool to create a new candidate profile. Use after gathering all candidate details. Example: \\\"Create a new candidate named Jane Doe with email jane.doe@example.com.\\\"\",\n input: RecruiteeCreateCandidateInput,\n output: RecruiteeCreateCandidateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO,EACrD,WAAW,yCAAyC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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/create-note.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.cjs","names":["z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateNoteInput = z.object({\n note: z.object({\n body: z.string().describe(\"The content of the note.\"),\n visibility: z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").optional(),\n}).describe(\"Visibility settings for a note.\").optional(),\n}).describe(\"The note object containing content and optional visibility.\"),\n candidate_id: z.string().describe(\"Unique identifier of the candidate to attach the note to.\"),\n}).describe(\"Request model for creating a new note for a candidate.\");\nconst RecruiteeCreateNote_VisibilitySchema = z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").nullable().optional(),\n}).passthrough().describe(\"Visibility settings for a note.\");\nconst RecruiteeCreateNote_NoteResponseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the created note.\").nullable(),\n body: z.string().describe(\"Plain text content of the note.\").nullable().optional(),\n admin_id: z.number().int().describe(\"ID of the admin user who created the note.\").nullable().optional(),\n body_html: z.string().describe(\"HTML formatted content of the note.\").nullable().optional(),\n body_json: z.record(z.string(), z.unknown()).describe(\"JSON representation of the note content.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the note was last updated.\").nullable(),\n visibility: RecruiteeCreateNote_VisibilitySchema.nullable(),\n candidate_id: z.number().int().describe(\"ID of the candidate this note belongs to.\").nullable().optional(),\n}).passthrough().describe(\"The note object returned by the API.\");\nexport const RecruiteeCreateNoteOutput = z.object({\n note: RecruiteeCreateNote_NoteResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for a newly created note.\");\n\nexport const recruiteeCreateNote = action(\"RECRUITEE_CREATE_NOTE\", {\n slug: \"recruitee-create-note\",\n name: \"Create Note\",\n description: \"Creates a new note for a candidate in Recruitee. Notes can be used to record interview feedback, assessments, or any observations about the candidate. Use this when you need to add commentary or documentation to a candidate's profile.\",\n input: RecruiteeCreateNoteInput,\n output: RecruiteeCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,OAAOA,IAAAA,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A,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAY,qCAAqC,SAAS;CAC1D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-note.cjs","names":["z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateNoteInput = z.object({\n note: z.object({\n body: z.string().describe(\"The content of the note.\"),\n visibility: z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").optional(),\n}).describe(\"Visibility settings for a note.\").optional(),\n}).describe(\"The note object containing content and optional visibility.\"),\n candidate_id: z.string().describe(\"Unique identifier of the candidate to attach the note to.\"),\n}).describe(\"Request model for creating a new note for a candidate.\");\nconst RecruiteeCreateNote_VisibilitySchema = z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").nullable().optional(),\n}).passthrough().describe(\"Visibility settings for a note.\");\nconst RecruiteeCreateNote_NoteResponseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the created note.\").nullable(),\n body: z.string().describe(\"Plain text content of the note.\").nullable().optional(),\n admin_id: z.number().int().describe(\"ID of the admin user who created the note.\").nullable().optional(),\n body_html: z.string().describe(\"HTML formatted content of the note.\").nullable().optional(),\n body_json: z.record(z.string(), z.unknown()).describe(\"JSON representation of the note content.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the note was last updated.\").nullable(),\n visibility: RecruiteeCreateNote_VisibilitySchema.nullable(),\n candidate_id: z.number().int().describe(\"ID of the candidate this note belongs to.\").nullable().optional(),\n}).passthrough().describe(\"The note object returned by the API.\");\nexport const RecruiteeCreateNoteOutput = z.object({\n note: RecruiteeCreateNote_NoteResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for a newly created note.\");\n\nexport const recruiteeCreateNote: AppAction<\n typeof RecruiteeCreateNoteInput,\n typeof RecruiteeCreateNoteOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_NOTE\", {\n slug: \"recruitee-create-note\",\n name: \"Create Note\",\n description: \"Creates a new note for a candidate in Recruitee. Notes can be used to record interview feedback, assessments, or any observations about the candidate. Use this when you need to add commentary or documentation to a candidate's profile.\",\n input: RecruiteeCreateNoteInput,\n output: RecruiteeCreateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,OAAOA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,EAC1L,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxD,CAAC,CAAC,CAAC,SAAS,6DAA6D;CACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DA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;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-note.d.ts
@@ -31,15 +33,7 @@ declare const RecruiteeCreateNoteOutput: z.ZodObject<{
31
33
  candidate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const recruiteeCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- note: {
36
- body: string;
37
- visibility?: {
38
- level?: "public" | "private" | undefined;
39
- } | undefined;
40
- };
41
- candidate_id: string;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const recruiteeCreateNote: AppAction<typeof RecruiteeCreateNoteInput, typeof RecruiteeCreateNoteOutput, typeof recruitee.credential>;
43
37
  //#endregion
44
38
  export { recruiteeCreateNote };
45
39
  //# sourceMappingURL=create-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.d.cts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-note.d.cts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-note.d.ts
@@ -31,15 +33,7 @@ declare const RecruiteeCreateNoteOutput: z.ZodObject<{
31
33
  candidate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const recruiteeCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- note: {
36
- body: string;
37
- visibility?: {
38
- level?: "public" | "private" | undefined;
39
- } | undefined;
40
- };
41
- candidate_id: string;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const recruiteeCreateNote: AppAction<typeof RecruiteeCreateNoteInput, typeof RecruiteeCreateNoteOutput, typeof recruitee.credential>;
43
37
  //#endregion
44
38
  export { recruiteeCreateNote };
45
39
  //# sourceMappingURL=create-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,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/create-note.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateNoteInput = z.object({\n note: z.object({\n body: z.string().describe(\"The content of the note.\"),\n visibility: z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").optional(),\n}).describe(\"Visibility settings for a note.\").optional(),\n}).describe(\"The note object containing content and optional visibility.\"),\n candidate_id: z.string().describe(\"Unique identifier of the candidate to attach the note to.\"),\n}).describe(\"Request model for creating a new note for a candidate.\");\nconst RecruiteeCreateNote_VisibilitySchema = z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").nullable().optional(),\n}).passthrough().describe(\"Visibility settings for a note.\");\nconst RecruiteeCreateNote_NoteResponseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the created note.\").nullable(),\n body: z.string().describe(\"Plain text content of the note.\").nullable().optional(),\n admin_id: z.number().int().describe(\"ID of the admin user who created the note.\").nullable().optional(),\n body_html: z.string().describe(\"HTML formatted content of the note.\").nullable().optional(),\n body_json: z.record(z.string(), z.unknown()).describe(\"JSON representation of the note content.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the note was last updated.\").nullable(),\n visibility: RecruiteeCreateNote_VisibilitySchema.nullable(),\n candidate_id: z.number().int().describe(\"ID of the candidate this note belongs to.\").nullable().optional(),\n}).passthrough().describe(\"The note object returned by the API.\");\nexport const RecruiteeCreateNoteOutput = z.object({\n note: RecruiteeCreateNote_NoteResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for a newly created note.\");\n\nexport const recruiteeCreateNote = action(\"RECRUITEE_CREATE_NOTE\", {\n slug: \"recruitee-create-note\",\n name: \"Create Note\",\n description: \"Creates a new note for a candidate in Recruitee. Notes can be used to record interview feedback, assessments, or any observations about the candidate. Use this when you need to add commentary or documentation to a candidate's profile.\",\n input: RecruiteeCreateNoteInput,\n output: RecruiteeCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,YAAY,EAAE,OAAO,EACrB,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,EAC1L,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxD,CAAC,CAAC,CAAC,SAAS,6DAA6D;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC/F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuC,EAAE,OAAO,EACpD,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAY,qCAAqC,SAAS;CAC1D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateNoteInput = z.object({\n note: z.object({\n body: z.string().describe(\"The content of the note.\"),\n visibility: z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").optional(),\n}).describe(\"Visibility settings for a note.\").optional(),\n}).describe(\"The note object containing content and optional visibility.\"),\n candidate_id: z.string().describe(\"Unique identifier of the candidate to attach the note to.\"),\n}).describe(\"Request model for creating a new note for a candidate.\");\nconst RecruiteeCreateNote_VisibilitySchema = z.object({\n level: z.enum([\"public\", \"private\"]).default(\"public\").describe(\"Visibility level of the note. 'public' is visible to anyone with candidate access; 'private' is restricted.\").nullable().optional(),\n}).passthrough().describe(\"Visibility settings for a note.\");\nconst RecruiteeCreateNote_NoteResponseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the created note.\").nullable(),\n body: z.string().describe(\"Plain text content of the note.\").nullable().optional(),\n admin_id: z.number().int().describe(\"ID of the admin user who created the note.\").nullable().optional(),\n body_html: z.string().describe(\"HTML formatted content of the note.\").nullable().optional(),\n body_json: z.record(z.string(), z.unknown()).describe(\"JSON representation of the note content.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the note was last updated.\").nullable(),\n visibility: RecruiteeCreateNote_VisibilitySchema.nullable(),\n candidate_id: z.number().int().describe(\"ID of the candidate this note belongs to.\").nullable().optional(),\n}).passthrough().describe(\"The note object returned by the API.\");\nexport const RecruiteeCreateNoteOutput = z.object({\n note: RecruiteeCreateNote_NoteResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for a newly created note.\");\n\nexport const recruiteeCreateNote: AppAction<\n typeof RecruiteeCreateNoteInput,\n typeof RecruiteeCreateNoteOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_NOTE\", {\n slug: \"recruitee-create-note\",\n name: \"Create Note\",\n description: \"Creates a new note for a candidate in Recruitee. Notes can be used to record interview feedback, assessments, or any observations about the candidate. Use this when you need to add commentary or documentation to a candidate's profile.\",\n input: RecruiteeCreateNoteInput,\n output: RecruiteeCreateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,YAAY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S;CAC1D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;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/create-offer.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-offer.cjs","names":["z","action"],"sources":["../../src/actions/create-offer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateOfferInput = z.object({\n offer: z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).default(\"job\").describe(\"Type of the offer: 'job' for standard positions or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\"),\n hybrid: z.boolean().describe(\"Shows location as hybrid on careers site.\").optional(),\n remote: z.boolean().default(false).describe(\"Shows location as remote on careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Status of the job offer.\").optional(),\n on_site: z.boolean().describe(\"Shows location as on-site on careers site.\").optional(),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV upload field setting in application form.\").optional(),\n description: z.string().describe(\"Detailed description of the job offer.\"),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use the Get Locations action to retrieve valid location IDs.\"),\n requirements: z.string().describe(\"Job requirements (optional for talent pools).\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use the Get Departments action to retrieve valid department IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone field setting in application form.\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo field setting in application form.\").optional(),\n locations_question: z.string().describe(\"Question text for the location picker in application form (only if 'locations_question' is in visibility_options).\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Options for job visibility and features. Use 'locations_question' to enable location picker.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form.\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location question in application form.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether location selection is mandatory in application form.\").optional(),\n}).describe(\"The offer object containing details for the new job offer.\"),\n});\nexport const RecruiteeCreateOfferOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the created offer.\").nullable(),\n guid: z.string().describe(\"Globally unique identifier of the offer.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer (job or talent_pool).\").nullable(),\n slug: z.string().describe(\"URL-friendly slug generated from the offer title.\").nullable().optional(),\n title: z.string().describe(\"The title of the job offer.\").nullable(),\n hybrid: z.boolean().describe(\"Whether job is hybrid.\").nullable().optional(),\n remote: z.boolean().describe(\"Whether job is remote.\").nullable().optional(),\n status: z.string().describe(\"Status of the job offer.\").nullable().optional(),\n on_site: z.boolean().describe(\"Whether job is on-site.\").nullable().optional(),\n options_cv: z.string().describe(\"CV upload field setting in application form.\").nullable().optional(),\n description: z.string().describe(\"Job offer description.\").nullable().optional(),\n requirements: z.string().describe(\"Job requirements.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone field setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo field setting in application form.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Options for job visibility.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter field setting in application form.\").nullable().optional(),\n}).passthrough();\n\nexport const recruiteeCreateOffer = action(\"RECRUITEE_CREATE_OFFER\", {\n slug: \"recruitee-create-offer\",\n name: \"Create Offer\",\n description: \"Creates a new job offer or talent pool in Recruitee. Required fields include title, location IDs, and description. Use Get Locations action to retrieve valid location IDs before creating an offer. The offer status can be set to draft, internal, published, closed, or archived.\",\n input: RecruiteeCreateOfferInput,\n output: RecruiteeCreateOfferOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAOA,IAAAA,EAAE,OAAO;CAChB,MAAMA,IAAAA,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC5J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAY;EAAa;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;CAAK,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACzE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,sGAAsG;CACvJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,C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C,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-offer.cjs","names":["z","action"],"sources":["../../src/actions/create-offer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateOfferInput = z.object({\n offer: z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).default(\"job\").describe(\"Type of the offer: 'job' for standard positions or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\"),\n hybrid: z.boolean().describe(\"Shows location as hybrid on careers site.\").optional(),\n remote: z.boolean().default(false).describe(\"Shows location as remote on careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Status of the job offer.\").optional(),\n on_site: z.boolean().describe(\"Shows location as on-site on careers site.\").optional(),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV upload field setting in application form.\").optional(),\n description: z.string().describe(\"Detailed description of the job offer.\"),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use the Get Locations action to retrieve valid location IDs.\"),\n requirements: z.string().describe(\"Job requirements (optional for talent pools).\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use the Get Departments action to retrieve valid department IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone field setting in application form.\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo field setting in application form.\").optional(),\n locations_question: z.string().describe(\"Question text for the location picker in application form (only if 'locations_question' is in visibility_options).\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Options for job visibility and features. Use 'locations_question' to enable location picker.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form.\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location question in application form.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether location selection is mandatory in application form.\").optional(),\n}).describe(\"The offer object containing details for the new job offer.\"),\n});\nexport const RecruiteeCreateOfferOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the created offer.\").nullable(),\n guid: z.string().describe(\"Globally unique identifier of the offer.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer (job or talent_pool).\").nullable(),\n slug: z.string().describe(\"URL-friendly slug generated from the offer title.\").nullable().optional(),\n title: z.string().describe(\"The title of the job offer.\").nullable(),\n hybrid: z.boolean().describe(\"Whether job is hybrid.\").nullable().optional(),\n remote: z.boolean().describe(\"Whether job is remote.\").nullable().optional(),\n status: z.string().describe(\"Status of the job offer.\").nullable().optional(),\n on_site: z.boolean().describe(\"Whether job is on-site.\").nullable().optional(),\n options_cv: z.string().describe(\"CV upload field setting in application form.\").nullable().optional(),\n description: z.string().describe(\"Job offer description.\").nullable().optional(),\n requirements: z.string().describe(\"Job requirements.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone field setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo field setting in application form.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Options for job visibility.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter field setting in application form.\").nullable().optional(),\n}).passthrough();\n\nexport const recruiteeCreateOffer: AppAction<\n typeof RecruiteeCreateOfferInput,\n typeof RecruiteeCreateOfferOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_OFFER\", {\n slug: \"recruitee-create-offer\",\n name: \"Create Offer\",\n description: \"Creates a new job offer or talent pool in Recruitee. Required fields include title, location IDs, and description. Use Get Locations action to retrieve valid location IDs before creating an offer. The offer status can be set to draft, internal, published, closed, or arch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.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-offer.d.ts
@@ -19,8 +21,8 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
19
21
  }>>;
20
22
  on_site: z.ZodOptional<z.ZodBoolean>;
21
23
  options_cv: z.ZodOptional<z.ZodEnum<{
22
- required: "required";
23
24
  optional: "optional";
25
+ required: "required";
24
26
  off: "off";
25
27
  }>>;
26
28
  description: z.ZodString;
@@ -28,13 +30,13 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
28
30
  requirements: z.ZodOptional<z.ZodString>;
29
31
  department_id: z.ZodOptional<z.ZodNumber>;
30
32
  options_phone: z.ZodOptional<z.ZodEnum<{
31
- required: "required";
32
33
  optional: "optional";
34
+ required: "required";
33
35
  off: "off";
34
36
  }>>;
35
37
  options_photo: z.ZodOptional<z.ZodEnum<{
36
- required: "required";
37
38
  optional: "optional";
39
+ required: "required";
38
40
  off: "off";
39
41
  }>>;
40
42
  locations_question: z.ZodOptional<z.ZodString>;
@@ -46,8 +48,8 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
46
48
  linkedin: "linkedin";
47
49
  }>>>;
48
50
  options_cover_letter: z.ZodOptional<z.ZodEnum<{
49
- required: "required";
50
51
  optional: "optional";
52
+ required: "required";
51
53
  off: "off";
52
54
  }>>;
53
55
  locations_question_type: z.ZodOptional<z.ZodEnum<{
@@ -75,28 +77,7 @@ declare const RecruiteeCreateOfferOutput: z.ZodObject<{
75
77
  visibility_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
76
78
  options_cover_letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
79
  }, z.core.$loose>;
78
- declare const recruiteeCreateOffer: import("@keystrokehq/action").WorkflowActionDefinition<{
79
- offer: {
80
- title: string;
81
- description: string;
82
- location_ids: number[];
83
- kind?: "job" | "talent_pool" | undefined;
84
- hybrid?: boolean | undefined;
85
- remote?: boolean | undefined;
86
- status?: "draft" | "internal" | "published" | "closed" | "archived" | undefined;
87
- on_site?: boolean | undefined;
88
- options_cv?: "required" | "optional" | "off" | undefined;
89
- requirements?: string | undefined;
90
- department_id?: number | undefined;
91
- options_phone?: "required" | "optional" | "off" | undefined;
92
- options_photo?: "required" | "optional" | "off" | undefined;
93
- locations_question?: string | undefined;
94
- visibility_options?: ("locations_question" | "indeed" | "social_share" | "job_location" | "linkedin")[] | undefined;
95
- options_cover_letter?: "required" | "optional" | "off" | undefined;
96
- locations_question_type?: "single_choice" | "multiple_choice" | undefined;
97
- locations_question_required?: boolean | undefined;
98
- };
99
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
80
+ declare const recruiteeCreateOffer: AppAction<typeof RecruiteeCreateOfferInput, typeof RecruiteeCreateOfferOutput, typeof recruitee.credential>;
100
81
  //#endregion
101
82
  export { recruiteeCreateOffer };
102
83
  //# sourceMappingURL=create-offer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-offer.d.cts","names":[],"sources":["../../src/actions/create-offer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmB1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-offer.d.cts","names":[],"sources":["../../src/actions/create-offer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-offer.d.ts
@@ -19,8 +21,8 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
19
21
  }>>;
20
22
  on_site: z.ZodOptional<z.ZodBoolean>;
21
23
  options_cv: z.ZodOptional<z.ZodEnum<{
22
- required: "required";
23
24
  optional: "optional";
25
+ required: "required";
24
26
  off: "off";
25
27
  }>>;
26
28
  description: z.ZodString;
@@ -28,13 +30,13 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
28
30
  requirements: z.ZodOptional<z.ZodString>;
29
31
  department_id: z.ZodOptional<z.ZodNumber>;
30
32
  options_phone: z.ZodOptional<z.ZodEnum<{
31
- required: "required";
32
33
  optional: "optional";
34
+ required: "required";
33
35
  off: "off";
34
36
  }>>;
35
37
  options_photo: z.ZodOptional<z.ZodEnum<{
36
- required: "required";
37
38
  optional: "optional";
39
+ required: "required";
38
40
  off: "off";
39
41
  }>>;
40
42
  locations_question: z.ZodOptional<z.ZodString>;
@@ -46,8 +48,8 @@ declare const RecruiteeCreateOfferInput: z.ZodObject<{
46
48
  linkedin: "linkedin";
47
49
  }>>>;
48
50
  options_cover_letter: z.ZodOptional<z.ZodEnum<{
49
- required: "required";
50
51
  optional: "optional";
52
+ required: "required";
51
53
  off: "off";
52
54
  }>>;
53
55
  locations_question_type: z.ZodOptional<z.ZodEnum<{
@@ -75,28 +77,7 @@ declare const RecruiteeCreateOfferOutput: z.ZodObject<{
75
77
  visibility_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
76
78
  options_cover_letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
79
  }, z.core.$loose>;
78
- declare const recruiteeCreateOffer: import("@keystrokehq/action").WorkflowActionDefinition<{
79
- offer: {
80
- title: string;
81
- description: string;
82
- location_ids: number[];
83
- kind?: "job" | "talent_pool" | undefined;
84
- hybrid?: boolean | undefined;
85
- remote?: boolean | undefined;
86
- status?: "draft" | "internal" | "published" | "closed" | "archived" | undefined;
87
- on_site?: boolean | undefined;
88
- options_cv?: "required" | "optional" | "off" | undefined;
89
- requirements?: string | undefined;
90
- department_id?: number | undefined;
91
- options_phone?: "required" | "optional" | "off" | undefined;
92
- options_photo?: "required" | "optional" | "off" | undefined;
93
- locations_question?: string | undefined;
94
- visibility_options?: ("locations_question" | "indeed" | "social_share" | "job_location" | "linkedin")[] | undefined;
95
- options_cover_letter?: "required" | "optional" | "off" | undefined;
96
- locations_question_type?: "single_choice" | "multiple_choice" | undefined;
97
- locations_question_required?: boolean | undefined;
98
- };
99
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
80
+ declare const recruiteeCreateOffer: AppAction<typeof RecruiteeCreateOfferInput, typeof RecruiteeCreateOfferOutput, typeof recruitee.credential>;
100
81
  //#endregion
101
82
  export { recruiteeCreateOffer };
102
83
  //# sourceMappingURL=create-offer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-offer.d.mts","names":[],"sources":["../../src/actions/create-offer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmB1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-offer.d.mts","names":[],"sources":["../../src/actions/create-offer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,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 recruiteeCreateOffer = action("RECRUITEE_CREATE_OFFER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-offer.mjs","names":[],"sources":["../../src/actions/create-offer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeCreateOfferInput = z.object({\n offer: z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).default(\"job\").describe(\"Type of the offer: 'job' for standard positions or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\"),\n hybrid: z.boolean().describe(\"Shows location as hybrid on careers site.\").optional(),\n remote: z.boolean().default(false).describe(\"Shows location as remote on careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Status of the job offer.\").optional(),\n on_site: z.boolean().describe(\"Shows location as on-site on careers site.\").optional(),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV upload field setting in application form.\").optional(),\n description: z.string().describe(\"Detailed description of the job offer.\"),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use the Get Locations action to retrieve valid location IDs.\"),\n requirements: z.string().describe(\"Job requirements (optional for talent pools).\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use the Get Departments action to retrieve valid department IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone field setting in application form.\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo field setting in application form.\").optional(),\n locations_question: z.string().describe(\"Question text for the location picker in application form (only if 'locations_question' is in visibility_options).\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Options for job visibility and features. Use 'locations_question' to enable location picker.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form.\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location question in application form.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether location selection is mandatory in application form.\").optional(),\n}).describe(\"The offer object containing details for the new job offer.\"),\n});\nexport const RecruiteeCreateOfferOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the created offer.\").nullable(),\n guid: z.string().describe(\"Globally unique identifier of the offer.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer (job or talent_pool).\").nullable(),\n slug: z.string().describe(\"URL-friendly slug generated from the offer title.\").nullable().optional(),\n title: z.string().describe(\"The title of the job offer.\").nullable(),\n hybrid: z.boolean().describe(\"Whether job is hybrid.\").nullable().optional(),\n remote: z.boolean().describe(\"Whether job is remote.\").nullable().optional(),\n status: z.string().describe(\"Status of the job offer.\").nullable().optional(),\n on_site: z.boolean().describe(\"Whether job is on-site.\").nullable().optional(),\n options_cv: z.string().describe(\"CV upload field setting in application form.\").nullable().optional(),\n description: z.string().describe(\"Job offer description.\").nullable().optional(),\n requirements: z.string().describe(\"Job requirements.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone field setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo field setting in application form.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Options for job visibility.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter field setting in application form.\").nullable().optional(),\n}).passthrough();\n\nexport const recruiteeCreateOffer = action(\"RECRUITEE_CREATE_OFFER\", {\n slug: \"recruitee-create-offer\",\n name: \"Create Offer\",\n description: \"Creates a new job offer or talent pool in Recruitee. Required fields include title, location IDs, and description. Use Get Locations action to retrieve valid location IDs before creating an offer. The offer status can be set to draft, internal, published, closed, or archived.\",\n input: RecruiteeCreateOfferInput,\n output: RecruiteeCreateOfferOutput,\n});\n"],"mappings":";;AA6CA,MAAa,uBAAuB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AC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-offer.mjs","names":[],"sources":["../../src/actions/create-offer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeCreateOfferInput = z.object({\n offer: z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).default(\"job\").describe(\"Type of the offer: 'job' for standard positions or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\"),\n hybrid: z.boolean().describe(\"Shows location as hybrid on careers site.\").optional(),\n remote: z.boolean().default(false).describe(\"Shows location as remote on careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Status of the job offer.\").optional(),\n on_site: z.boolean().describe(\"Shows location as on-site on careers site.\").optional(),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV upload field setting in application form.\").optional(),\n description: z.string().describe(\"Detailed description of the job offer.\"),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use the Get Locations action to retrieve valid location IDs.\"),\n requirements: z.string().describe(\"Job requirements (optional for talent pools).\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use the Get Departments action to retrieve valid department IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone field setting in application form.\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo field setting in application form.\").optional(),\n locations_question: z.string().describe(\"Question text for the location picker in application form (only if 'locations_question' is in visibility_options).\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Options for job visibility and features. Use 'locations_question' to enable location picker.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form.\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location question in application form.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether location selection is mandatory in application form.\").optional(),\n}).describe(\"The offer object containing details for the new job offer.\"),\n});\nexport const RecruiteeCreateOfferOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the created offer.\").nullable(),\n guid: z.string().describe(\"Globally unique identifier of the offer.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer (job or talent_pool).\").nullable(),\n slug: z.string().describe(\"URL-friendly slug generated from the offer title.\").nullable().optional(),\n title: z.string().describe(\"The title of the job offer.\").nullable(),\n hybrid: z.boolean().describe(\"Whether job is hybrid.\").nullable().optional(),\n remote: z.boolean().describe(\"Whether job is remote.\").nullable().optional(),\n status: z.string().describe(\"Status of the job offer.\").nullable().optional(),\n on_site: z.boolean().describe(\"Whether job is on-site.\").nullable().optional(),\n options_cv: z.string().describe(\"CV upload field setting in application form.\").nullable().optional(),\n description: z.string().describe(\"Job offer description.\").nullable().optional(),\n requirements: z.string().describe(\"Job requirements.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone field setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo field setting in application form.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Options for job visibility.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter field setting in application form.\").nullable().optional(),\n}).passthrough();\n\nexport const recruiteeCreateOffer: AppAction<\n typeof RecruiteeCreateOfferInput,\n typeof RecruiteeCreateOfferOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_CREATE_OFFER\", {\n slug: \"recruitee-create-offer\",\n name: \"Create Offer\",\n description: \"Creates a new job offer or talent pool in Recruitee. Required fields include title, location IDs, and description. Use Get Locations action to retrieve valid location IDs before creating an offer. The offer status can be set to draft, internal, published, closed, or archived.\",\n input: RecruiteeCreateOfferInput,\n output: RecruiteeCreateOfferOutput,\n});\n"],"mappings":";;;AA+CA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjDuC,EAAE,OAAO,EAChD,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC5J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACxD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClG,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAY;GAAa;GAAU;EAAU,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACvH,SAAS,EAAE,QAA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAWO;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/delete-candidate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-candidate.cjs","names":["z","action"],"sources":["../../src/actions/delete-candidate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeDeleteCandidateInput = z.object({\n candidate_id: z.number().int().describe(\"Unique identifier of the candidate to delete.\"),\n}).describe(\"Request model for deleting a candidate profile.\");\nexport const RecruiteeDeleteCandidateOutput = z.record(z.string(), z.unknown()).describe(\"Response model for delete candidate action.\\nEmpty response returned on successful deletion.\");\n\nexport const recruiteeDeleteCandidate = action(\"RECRUITEE_DELETE_CANDIDATE\", {\n slug: \"recruitee-delete-candidate\",\n name: \"Delete Candidate\",\n description: \"Tool to delete a candidate profile. Use when you need to permanently remove a candidate from your Recruitee account. Returns no content on success.\",\n input: RecruiteeDeleteCandidateInput,\n output: RecruiteeDeleteCandidateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACzF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAEvL,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-candidate.cjs","names":["z","action"],"sources":["../../src/actions/delete-candidate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { recruitee } from \"../app\";\n\nexport const RecruiteeDeleteCandidateInput = z.object({\n candidate_id: z.number().int().describe(\"Unique identifier of the candidate to delete.\"),\n}).describe(\"Request model for deleting a candidate profile.\");\nexport const RecruiteeDeleteCandidateOutput = z.record(z.string(), z.unknown()).describe(\"Response model for delete candidate action.\\nEmpty response returned on successful deletion.\");\n\nexport const recruiteeDeleteCandidate: AppAction<\n typeof RecruiteeDeleteCandidateInput,\n typeof RecruiteeDeleteCandidateOutput,\n typeof recruitee.credential\n> = action(\"RECRUITEE_DELETE_CANDIDATE\", {\n slug: \"recruitee-delete-candidate\",\n name: \"Delete Candidate\",\n description: \"Tool to delete a candidate profile. Use when you need to permanently remove a candidate from your Recruitee account. Returns no content on success.\",\n input: RecruiteeDeleteCandidateInput,\n output: RecruiteeDeleteCandidateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACzF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAEvL,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-candidate.d.ts
@@ -5,9 +7,7 @@ declare const RecruiteeDeleteCandidateInput: z.ZodObject<{
5
7
  candidate_id: z.ZodNumber;
6
8
  }, z.core.$strip>;
7
9
  declare const RecruiteeDeleteCandidateOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const recruiteeDeleteCandidate: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- candidate_id: number;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const recruiteeDeleteCandidate: AppAction<typeof RecruiteeDeleteCandidateInput, typeof RecruiteeDeleteCandidateOutput, typeof recruitee.credential>;
11
11
  //#endregion
12
12
  export { recruiteeDeleteCandidate };
13
13
  //# sourceMappingURL=delete-candidate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-candidate.d.cts","names":[],"sources":["../../src/actions/delete-candidate.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"delete-candidate.d.cts","names":[],"sources":["../../src/actions/delete-candidate.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { recruitee } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-candidate.d.ts
@@ -5,9 +7,7 @@ declare const RecruiteeDeleteCandidateInput: z.ZodObject<{
5
7
  candidate_id: z.ZodNumber;
6
8
  }, z.core.$strip>;
7
9
  declare const RecruiteeDeleteCandidateOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const recruiteeDeleteCandidate: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- candidate_id: number;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const recruiteeDeleteCandidate: AppAction<typeof RecruiteeDeleteCandidateInput, typeof RecruiteeDeleteCandidateOutput, typeof recruitee.credential>;
11
11
  //#endregion
12
12
  export { recruiteeDeleteCandidate };
13
13
  //# sourceMappingURL=delete-candidate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-candidate.d.mts","names":[],"sources":["../../src/actions/delete-candidate.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"delete-candidate.d.mts","names":[],"sources":["../../src/actions/delete-candidate.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,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 recruiteeDeleteCandidate = action("RECRUITEE_DELETE_CANDIDATE", {