@keystrokehq/recruitee 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-candidate.cjs +4 -4
- package/dist/actions/create-candidate.cjs.map +1 -1
- package/dist/actions/create-candidate.d.cts +43 -3
- package/dist/actions/create-candidate.d.cts.map +1 -1
- package/dist/actions/create-candidate.d.mts +43 -3
- package/dist/actions/create-candidate.d.mts.map +1 -1
- package/dist/actions/create-candidate.mjs +4 -4
- package/dist/actions/create-candidate.mjs.map +1 -1
- package/dist/actions/create-note.cjs +3 -3
- package/dist/actions/create-note.cjs.map +1 -1
- package/dist/actions/create-note.d.cts +39 -3
- package/dist/actions/create-note.d.cts.map +1 -1
- package/dist/actions/create-note.d.mts +39 -3
- package/dist/actions/create-note.d.mts.map +1 -1
- package/dist/actions/create-note.mjs +3 -3
- package/dist/actions/create-note.mjs.map +1 -1
- package/dist/actions/create-offer.cjs +3 -3
- package/dist/actions/create-offer.cjs.map +1 -1
- package/dist/actions/create-offer.d.cts +96 -3
- package/dist/actions/create-offer.d.cts.map +1 -1
- package/dist/actions/create-offer.d.mts +96 -3
- package/dist/actions/create-offer.d.mts.map +1 -1
- package/dist/actions/create-offer.mjs +3 -3
- package/dist/actions/create-offer.mjs.map +1 -1
- package/dist/actions/delete-candidate.cjs.map +1 -1
- package/dist/actions/delete-candidate.d.cts +7 -3
- package/dist/actions/delete-candidate.d.cts.map +1 -1
- package/dist/actions/delete-candidate.d.mts +7 -3
- package/dist/actions/delete-candidate.d.mts.map +1 -1
- package/dist/actions/delete-candidate.mjs.map +1 -1
- package/dist/actions/delete-tag.cjs.map +1 -1
- package/dist/actions/delete-tag.d.cts +7 -3
- package/dist/actions/delete-tag.d.cts.map +1 -1
- package/dist/actions/delete-tag.d.mts +7 -3
- package/dist/actions/delete-tag.d.mts.map +1 -1
- package/dist/actions/delete-tag.mjs.map +1 -1
- package/dist/actions/get-candidate.cjs +4 -4
- package/dist/actions/get-candidate.cjs.map +1 -1
- package/dist/actions/get-candidate.d.cts +30 -3
- package/dist/actions/get-candidate.d.cts.map +1 -1
- package/dist/actions/get-candidate.d.mts +30 -3
- package/dist/actions/get-candidate.d.mts.map +1 -1
- package/dist/actions/get-candidate.mjs +4 -4
- package/dist/actions/get-candidate.mjs.map +1 -1
- package/dist/actions/get-candidates.cjs +3 -3
- package/dist/actions/get-candidates.cjs.map +1 -1
- package/dist/actions/get-candidates.d.cts +48 -3
- package/dist/actions/get-candidates.d.cts.map +1 -1
- package/dist/actions/get-candidates.d.mts +48 -3
- package/dist/actions/get-candidates.d.mts.map +1 -1
- package/dist/actions/get-candidates.mjs +3 -3
- package/dist/actions/get-candidates.mjs.map +1 -1
- package/dist/actions/get-company-id.cjs +4 -4
- package/dist/actions/get-company-id.cjs.map +1 -1
- package/dist/actions/get-company-id.d.cts +10 -3
- package/dist/actions/get-company-id.d.cts.map +1 -1
- package/dist/actions/get-company-id.d.mts +10 -3
- package/dist/actions/get-company-id.d.mts.map +1 -1
- package/dist/actions/get-company-id.mjs +4 -4
- package/dist/actions/get-company-id.mjs.map +1 -1
- package/dist/actions/get-company-offer-public.cjs +3 -3
- package/dist/actions/get-company-offer-public.cjs.map +1 -1
- package/dist/actions/get-company-offer-public.d.cts +28 -3
- package/dist/actions/get-company-offer-public.d.cts.map +1 -1
- package/dist/actions/get-company-offer-public.d.mts +28 -3
- package/dist/actions/get-company-offer-public.d.mts.map +1 -1
- package/dist/actions/get-company-offer-public.mjs +3 -3
- package/dist/actions/get-company-offer-public.mjs.map +1 -1
- package/dist/actions/get-departments.cjs +3 -3
- package/dist/actions/get-departments.cjs.map +1 -1
- package/dist/actions/get-departments.d.cts +9 -3
- package/dist/actions/get-departments.d.cts.map +1 -1
- package/dist/actions/get-departments.d.mts +9 -3
- package/dist/actions/get-departments.d.mts.map +1 -1
- package/dist/actions/get-departments.mjs +3 -3
- package/dist/actions/get-departments.mjs.map +1 -1
- package/dist/actions/get-locations.cjs +8 -8
- package/dist/actions/get-locations.cjs.map +1 -1
- package/dist/actions/get-locations.d.cts +32 -3
- package/dist/actions/get-locations.d.cts.map +1 -1
- package/dist/actions/get-locations.d.mts +32 -3
- package/dist/actions/get-locations.d.mts.map +1 -1
- package/dist/actions/get-locations.mjs +8 -8
- package/dist/actions/get-locations.mjs.map +1 -1
- package/dist/actions/get-notes.cjs +9 -9
- package/dist/actions/get-notes.cjs.map +1 -1
- package/dist/actions/get-notes.d.cts +40 -3
- package/dist/actions/get-notes.d.cts.map +1 -1
- package/dist/actions/get-notes.d.mts +40 -3
- package/dist/actions/get-notes.d.mts.map +1 -1
- package/dist/actions/get-notes.mjs +9 -9
- package/dist/actions/get-notes.mjs.map +1 -1
- package/dist/actions/get-offers.cjs +4 -4
- package/dist/actions/get-offers.cjs.map +1 -1
- package/dist/actions/get-offers.d.cts +34 -3
- package/dist/actions/get-offers.d.cts.map +1 -1
- package/dist/actions/get-offers.d.mts +34 -3
- package/dist/actions/get-offers.d.mts.map +1 -1
- package/dist/actions/get-offers.mjs +4 -4
- package/dist/actions/get-offers.mjs.map +1 -1
- package/dist/actions/get-pipeline-stages.cjs +3 -3
- package/dist/actions/get-pipeline-stages.cjs.map +1 -1
- package/dist/actions/get-pipeline-stages.d.cts +16 -3
- package/dist/actions/get-pipeline-stages.d.cts.map +1 -1
- package/dist/actions/get-pipeline-stages.d.mts +16 -3
- package/dist/actions/get-pipeline-stages.d.mts.map +1 -1
- package/dist/actions/get-pipeline-stages.mjs +3 -3
- package/dist/actions/get-pipeline-stages.mjs.map +1 -1
- package/dist/actions/get-tags.cjs +4 -4
- package/dist/actions/get-tags.cjs.map +1 -1
- package/dist/actions/get-tags.d.cts +32 -3
- package/dist/actions/get-tags.d.cts.map +1 -1
- package/dist/actions/get-tags.d.mts +32 -3
- package/dist/actions/get-tags.d.mts.map +1 -1
- package/dist/actions/get-tags.mjs +4 -4
- package/dist/actions/get-tags.mjs.map +1 -1
- package/dist/actions/list-eeo-job-categories.cjs.map +1 -1
- package/dist/actions/list-eeo-job-categories.d.cts +5 -3
- package/dist/actions/list-eeo-job-categories.d.cts.map +1 -1
- package/dist/actions/list-eeo-job-categories.d.mts +5 -3
- package/dist/actions/list-eeo-job-categories.d.mts.map +1 -1
- package/dist/actions/list-eeo-job-categories.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +21 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +21 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-localization-settings.cjs.map +1 -1
- package/dist/actions/list-localization-settings.d.cts +6 -3
- package/dist/actions/list-localization-settings.d.cts.map +1 -1
- package/dist/actions/list-localization-settings.d.mts +6 -3
- package/dist/actions/list-localization-settings.d.mts.map +1 -1
- package/dist/actions/list-localization-settings.mjs.map +1 -1
- package/dist/actions/list-share-countries.cjs +1 -1
- package/dist/actions/list-share-countries.cjs.map +1 -1
- package/dist/actions/list-share-countries.d.cts +10 -3
- package/dist/actions/list-share-countries.d.cts.map +1 -1
- package/dist/actions/list-share-countries.d.mts +10 -3
- package/dist/actions/list-share-countries.d.mts.map +1 -1
- package/dist/actions/list-share-countries.mjs +1 -1
- package/dist/actions/list-share-countries.mjs.map +1 -1
- package/dist/actions/list-share-eeo-answers.cjs.map +1 -1
- package/dist/actions/list-share-eeo-answers.d.cts +10 -3
- package/dist/actions/list-share-eeo-answers.d.cts.map +1 -1
- package/dist/actions/list-share-eeo-answers.d.mts +10 -3
- package/dist/actions/list-share-eeo-answers.d.mts.map +1 -1
- package/dist/actions/list-share-eeo-answers.mjs.map +1 -1
- package/dist/actions/update-candidate.cjs +4 -4
- package/dist/actions/update-candidate.cjs.map +1 -1
- package/dist/actions/update-candidate.d.cts +52 -3
- package/dist/actions/update-candidate.d.cts.map +1 -1
- package/dist/actions/update-candidate.d.mts +52 -3
- package/dist/actions/update-candidate.d.mts.map +1 -1
- package/dist/actions/update-candidate.mjs +4 -4
- package/dist/actions/update-candidate.mjs.map +1 -1
- package/dist/actions/update-note.cjs +4 -4
- package/dist/actions/update-note.cjs.map +1 -1
- package/dist/actions/update-note.d.cts +27 -3
- package/dist/actions/update-note.d.cts.map +1 -1
- package/dist/actions/update-note.d.mts +27 -3
- package/dist/actions/update-note.d.mts.map +1 -1
- package/dist/actions/update-note.mjs +4 -4
- package/dist/actions/update-note.mjs.map +1 -1
- package/dist/actions/update-offer.cjs +9 -9
- package/dist/actions/update-offer.cjs.map +1 -1
- package/dist/actions/update-offer.d.cts +108 -3
- package/dist/actions/update-offer.d.cts.map +1 -1
- package/dist/actions/update-offer.d.mts +108 -3
- package/dist/actions/update-offer.d.mts.map +1 -1
- package/dist/actions/update-offer.mjs +9 -9
- package/dist/actions/update-offer.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-note.d.ts
|
|
4
|
-
declare const RecruiteeUpdateNoteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RecruiteeUpdateNoteInput: z.ZodObject<{
|
|
5
|
+
body: z.ZodOptional<z.ZodString>;
|
|
6
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
note_id: z.ZodNumber;
|
|
8
|
+
candidate_id: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RecruiteeUpdateNoteOutput: z.ZodObject<{
|
|
11
|
+
note: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
body: z.ZodNullable<z.ZodString>;
|
|
14
|
+
pinned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
admin_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
guest_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
body_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
body_json: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
reply_to_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
candidate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const recruiteeUpdateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
note_id: number;
|
|
27
|
+
candidate_id: number;
|
|
28
|
+
body?: string | undefined;
|
|
29
|
+
pinned?: boolean | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { recruiteeUpdateNote };
|
|
9
33
|
//# sourceMappingURL=update-note.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.d.cts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-note.d.cts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAmBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-note.d.ts
|
|
4
|
-
declare const RecruiteeUpdateNoteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RecruiteeUpdateNoteInput: z.ZodObject<{
|
|
5
|
+
body: z.ZodOptional<z.ZodString>;
|
|
6
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
note_id: z.ZodNumber;
|
|
8
|
+
candidate_id: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RecruiteeUpdateNoteOutput: z.ZodObject<{
|
|
11
|
+
note: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
body: z.ZodNullable<z.ZodString>;
|
|
14
|
+
pinned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
admin_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
guest_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
body_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
body_json: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
reply_to_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
candidate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const recruiteeUpdateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
note_id: number;
|
|
27
|
+
candidate_id: number;
|
|
28
|
+
body?: string | undefined;
|
|
29
|
+
pinned?: boolean | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { recruiteeUpdateNote };
|
|
9
33
|
//# sourceMappingURL=update-note.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.d.mts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-note.d.mts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAmBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -8,15 +8,15 @@ const RecruiteeUpdateNoteInput = z.object({
|
|
|
8
8
|
candidate_id: z.number().int().describe("Unique identifier of the candidate.")
|
|
9
9
|
}).describe("Request model for updating an existing note for a candidate.");
|
|
10
10
|
const RecruiteeUpdateNote_NoteResponseSchema = z.object({
|
|
11
|
-
id: z.number().int().describe("Unique identifier of the note."),
|
|
12
|
-
body: z.string().describe("Text content of the note."),
|
|
11
|
+
id: z.number().int().describe("Unique identifier of the note.").nullable(),
|
|
12
|
+
body: z.string().describe("Text content of the note.").nullable(),
|
|
13
13
|
pinned: z.boolean().describe("Pin status of the note.").nullable().optional(),
|
|
14
14
|
admin_id: z.number().int().describe("ID of the admin who created or updated the note.").nullable().optional(),
|
|
15
15
|
guest_id: z.number().int().describe("ID of the guest who created or updated the note.").nullable().optional(),
|
|
16
16
|
body_html: z.string().describe("HTML version of the note body, if any.").nullable().optional(),
|
|
17
17
|
body_json: z.record(z.string(), z.unknown()).describe("JSON representation of the note body, if any.").nullable().optional(),
|
|
18
|
-
created_at: z.string().describe("ISO 8601 timestamp when the note was created."),
|
|
19
|
-
updated_at: z.string().describe("ISO 8601 timestamp when the note was last updated."),
|
|
18
|
+
created_at: z.string().describe("ISO 8601 timestamp when the note was created.").nullable(),
|
|
19
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the note was last updated.").nullable(),
|
|
20
20
|
reply_to_id: z.number().int().describe("If reply, the parent note ID.").nullable().optional(),
|
|
21
21
|
candidate_id: z.number().int().describe("ID of the candidate associated with the note.").nullable().optional()
|
|
22
22
|
}).describe("The note object returned by the API after update.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateNoteInput
|
|
1
|
+
{"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateNoteInput = z.object({\n body: z.string().describe(\"Updated text content of the note.\").optional(),\n pinned: z.boolean().describe(\"True to pin the note, false to unpin.\").optional(),\n note_id: z.number().int().describe(\"Unique identifier of the note to update.\"),\n candidate_id: z.number().int().describe(\"Unique identifier of the candidate.\"),\n}).describe(\"Request model for updating an existing note for a candidate.\");\nconst RecruiteeUpdateNote_NoteResponseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the note.\").nullable(),\n body: z.string().describe(\"Text content of the note.\").nullable(),\n pinned: z.boolean().describe(\"Pin status of the note.\").nullable().optional(),\n admin_id: z.number().int().describe(\"ID of the admin who created or updated the note.\").nullable().optional(),\n guest_id: z.number().int().describe(\"ID of the guest who created or updated the note.\").nullable().optional(),\n body_html: z.string().describe(\"HTML version of the note body, if any.\").nullable().optional(),\n body_json: z.record(z.string(), z.unknown()).describe(\"JSON representation of the note body, if any.\").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 reply_to_id: z.number().int().describe(\"If reply, the parent note ID.\").nullable().optional(),\n candidate_id: z.number().int().describe(\"ID of the candidate associated with the note.\").nullable().optional(),\n}).describe(\"The note object returned by the API after update.\");\nexport const RecruiteeUpdateNoteOutput = z.object({\n note: RecruiteeUpdateNote_NoteResponseSchema.nullable(),\n}).describe(\"Response model for the updated note.\");\n\nexport const recruiteeUpdateNote = action(\"RECRUITEE_UPDATE_NOTE\", {\n slug: \"recruitee-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note for a candidate. Use when you need to modify note text or pin status after creation.\",\n input: RecruiteeUpdateNoteInput,\n output: RecruiteeUpdateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;AAC/E,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
|
@@ -51,27 +51,27 @@ const RecruiteeUpdateOfferInput = zod.z.object({
|
|
|
51
51
|
locations_question_required: zod.z.boolean().describe("Whether applicants must answer the location question to submit their application.").optional()
|
|
52
52
|
}).describe("Request model for updating an existing job offer. All fields except offer_id are optional.\nOnly provide fields you want to update - other fields will remain unchanged.");
|
|
53
53
|
const RecruiteeUpdateOffer_AttachmentInfoSchema = zod.z.object({
|
|
54
|
-
id: zod.z.number().int().describe("Unique attachment ID."),
|
|
55
|
-
url: zod.z.string().describe("Download URL of the attachment."),
|
|
56
|
-
filename: zod.z.string().describe("Uploaded filename.")
|
|
54
|
+
id: zod.z.number().int().describe("Unique attachment ID.").nullable(),
|
|
55
|
+
url: zod.z.string().describe("Download URL of the attachment.").nullable(),
|
|
56
|
+
filename: zod.z.string().describe("Uploaded filename.").nullable()
|
|
57
57
|
}).describe("Attachment metadata linked to the job offer.");
|
|
58
58
|
const RecruiteeUpdateOffer_OfferCustomFieldSchema = zod.z.object({
|
|
59
59
|
value: zod.z.unknown().describe("Value of the custom field."),
|
|
60
|
-
field_key: zod.z.string().describe("Custom field identifier key.")
|
|
60
|
+
field_key: zod.z.string().describe("Custom field identifier key.").nullable()
|
|
61
61
|
}).describe("Key/value pair for a custom field on the offer.");
|
|
62
62
|
const RecruiteeUpdateOffer_OfferSchema = zod.z.object({
|
|
63
|
-
id: zod.z.number().int().describe("Unique identifier of the offer."),
|
|
63
|
+
id: zod.z.number().int().describe("Unique identifier of the offer.").nullable(),
|
|
64
64
|
ref: zod.z.string().describe("Internal reference code.").nullable().optional(),
|
|
65
65
|
kind: zod.z.string().describe("Type of the offer, e.g., 'job' or 'talent_pool'.").nullable().optional(),
|
|
66
66
|
slug: zod.z.string().describe("URL-friendly slug of the offer.").nullable().optional(),
|
|
67
67
|
tags: zod.z.array(zod.z.string()).describe("Tags assigned to the offer.").nullable().optional(),
|
|
68
|
-
title: zod.z.string().describe("Title of the job offer."),
|
|
69
|
-
status: zod.z.string().describe("Current status of the offer."),
|
|
68
|
+
title: zod.z.string().describe("Title of the job offer.").nullable(),
|
|
69
|
+
status: zod.z.string().describe("Current status of the offer.").nullable(),
|
|
70
70
|
locations: zod.z.array(zod.z.string()).describe("List of locations for this offer.").nullable().optional(),
|
|
71
|
-
created_at: zod.z.string().describe("ISO 8601 datetime when the offer was created."),
|
|
71
|
+
created_at: zod.z.string().describe("ISO 8601 datetime when the offer was created.").nullable(),
|
|
72
72
|
expires_at: zod.z.string().describe("ISO 8601 datetime when the offer expires.").nullable().optional(),
|
|
73
73
|
options_cv: zod.z.string().describe("CV requirement setting in application form.").nullable().optional(),
|
|
74
|
-
updated_at: zod.z.string().describe("ISO 8601 datetime when the offer was last updated."),
|
|
74
|
+
updated_at: zod.z.string().describe("ISO 8601 datetime when the offer was last updated.").nullable(),
|
|
75
75
|
attachments: zod.z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe("Attachments linked to the offer.").nullable().optional(),
|
|
76
76
|
description: zod.z.string().describe("Detailed description of the job offer.").nullable().optional(),
|
|
77
77
|
custom_fields: zod.z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe("Custom fields for the offer.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-offer.cjs","names":["z","action"],"sources":["../../src/actions/update-offer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateOfferInput: z.ZodTypeAny = z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).describe(\"Type of the offer: 'job' for standard job postings or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\").optional(),\n hybrid: z.boolean().describe(\"Display the job as hybrid (combination of on-site and remote) on the careers site.\").optional(),\n remote: z.boolean().describe(\"Display the job as fully remote on the careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Current status of the offer. Options: 'draft' (not visible), 'internal' (visible to team), 'published' (public), 'closed' (no longer accepting applications), 'archived' (hidden from all views).\").optional(),\n on_site: z.boolean().describe(\"Display the job as on-site on the careers site.\").optional(),\n offer_id: z.number().int().describe(\"The unique identifier of the offer to update. Required.\"),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV/resume upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n description: z.string().describe(\"Detailed description of the job offer. Supports HTML formatting.\").optional(),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use Get Locations action to retrieve valid IDs.\").optional(),\n requirements: z.string().describe(\"Job requirements and qualifications. Supports HTML formatting.\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use Get Departments action to retrieve valid IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone number field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n locations_question: z.string().describe(\"Custom question text for the location picker in the application form. Only used when 'locations_question' is in visibility_options.\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Job visibility and feature options. Include 'indeed' to post on Indeed, 'linkedin' for LinkedIn, 'social_share' for social media sharing, 'job_location' to show location, 'locations_question' to enable location picker in application form.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location selection in application form: 'single_choice' allows one location, 'multiple_choice' allows multiple.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether applicants must answer the location question to submit their application.\").optional(),\n}).describe(\"Request model for updating an existing job offer. All fields except offer_id are optional.\\nOnly provide fields you want to update - other fields will remain unchanged.\");\nconst RecruiteeUpdateOffer_AttachmentInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique attachment ID.\"),\n url: z.string().describe(\"Download URL of the attachment.\"),\n filename: z.string().describe(\"Uploaded filename.\"),\n}).describe(\"Attachment metadata linked to the job offer.\");\nconst RecruiteeUpdateOffer_OfferCustomFieldSchema: z.ZodTypeAny = z.object({\n value: z.unknown().describe(\"Value of the custom field.\"),\n field_key: z.string().describe(\"Custom field identifier key.\"),\n}).describe(\"Key/value pair for a custom field on the offer.\");\nconst RecruiteeUpdateOffer_OfferSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the offer.\"),\n ref: z.string().describe(\"Internal reference code.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer, e.g., 'job' or 'talent_pool'.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly slug of the offer.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to the offer.\").nullable().optional(),\n title: z.string().describe(\"Title of the job offer.\"),\n status: z.string().describe(\"Current status of the offer.\"),\n locations: z.array(z.string()).describe(\"List of locations for this offer.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the offer was created.\"),\n expires_at: z.string().describe(\"ISO 8601 datetime when the offer expires.\").nullable().optional(),\n options_cv: z.string().describe(\"CV requirement setting in application form.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the offer was last updated.\"),\n attachments: z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe(\"Attachments linked to the offer.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the job offer.\").nullable().optional(),\n custom_fields: z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe(\"Custom fields for the offer.\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID this offer belongs to.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone requirement setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo requirement setting in application form.\").nullable().optional(),\n employment_types: z.array(z.string()).describe(\"List of employment types for this offer.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Visibility options for this offer.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter requirement setting in application form.\").nullable().optional(),\n}).describe(\"Schema for a job offer in Recruitee.\");\nexport const RecruiteeUpdateOfferOutput: z.ZodTypeAny = z.object({\n offer: RecruiteeUpdateOffer_OfferSchema.nullable(),\n}).describe(\"Response schema for the updated job offer.\");\n\nexport const recruiteeUpdateOffer = action(\"RECRUITEE_UPDATE_OFFER\", {\n slug: \"recruitee-update-offer\",\n name: \"Update Offer\",\n description: \"Updates an existing job offer or talent pool in Recruitee. Allows modification of offer details including title, description, requirements, status, locations, department assignment, work type (remote/hybrid/on-site), visibility settings, and application form field requirements. Only specified fields are updated; omitted fields remain unchanged. Requires the offer ID - use Get Offers or Get Offer actions to retrieve existing offer IDs.\",\n input: RecruiteeUpdateOfferInput,\n output: RecruiteeUpdateOfferOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC5H,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAY;EAAa;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mMAAmM,CAAC,CAAC,SAAS;CAChS,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CAC7F,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;CAAK,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACrJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7G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src/actions/update-offer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateOfferInput = z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).describe(\"Type of the offer: 'job' for standard job postings or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\").optional(),\n hybrid: z.boolean().describe(\"Display the job as hybrid (combination of on-site and remote) on the careers site.\").optional(),\n remote: z.boolean().describe(\"Display the job as fully remote on the careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Current status of the offer. Options: 'draft' (not visible), 'internal' (visible to team), 'published' (public), 'closed' (no longer accepting applications), 'archived' (hidden from all views).\").optional(),\n on_site: z.boolean().describe(\"Display the job as on-site on the careers site.\").optional(),\n offer_id: z.number().int().describe(\"The unique identifier of the offer to update. Required.\"),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV/resume upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n description: z.string().describe(\"Detailed description of the job offer. Supports HTML formatting.\").optional(),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use Get Locations action to retrieve valid IDs.\").optional(),\n requirements: z.string().describe(\"Job requirements and qualifications. Supports HTML formatting.\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use Get Departments action to retrieve valid IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone number field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n locations_question: z.string().describe(\"Custom question text for the location picker in the application form. Only used when 'locations_question' is in visibility_options.\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Job visibility and feature options. Include 'indeed' to post on Indeed, 'linkedin' for LinkedIn, 'social_share' for social media sharing, 'job_location' to show location, 'locations_question' to enable location picker in application form.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location selection in application form: 'single_choice' allows one location, 'multiple_choice' allows multiple.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether applicants must answer the location question to submit their application.\").optional(),\n}).describe(\"Request model for updating an existing job offer. All fields except offer_id are optional.\\nOnly provide fields you want to update - other fields will remain unchanged.\");\nconst RecruiteeUpdateOffer_AttachmentInfoSchema = z.object({\n id: z.number().int().describe(\"Unique attachment ID.\").nullable(),\n url: z.string().describe(\"Download URL of the attachment.\").nullable(),\n filename: z.string().describe(\"Uploaded filename.\").nullable(),\n}).describe(\"Attachment metadata linked to the job offer.\");\nconst RecruiteeUpdateOffer_OfferCustomFieldSchema = z.object({\n value: z.unknown().describe(\"Value of the custom field.\"),\n field_key: z.string().describe(\"Custom field identifier key.\").nullable(),\n}).describe(\"Key/value pair for a custom field on the offer.\");\nconst RecruiteeUpdateOffer_OfferSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the offer.\").nullable(),\n ref: z.string().describe(\"Internal reference code.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer, e.g., 'job' or 'talent_pool'.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly slug of the offer.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to the offer.\").nullable().optional(),\n title: z.string().describe(\"Title of the job offer.\").nullable(),\n status: z.string().describe(\"Current status of the offer.\").nullable(),\n locations: z.array(z.string()).describe(\"List of locations for this offer.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the offer was created.\").nullable(),\n expires_at: z.string().describe(\"ISO 8601 datetime when the offer expires.\").nullable().optional(),\n options_cv: z.string().describe(\"CV requirement setting in application form.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the offer was last updated.\").nullable(),\n attachments: z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe(\"Attachments linked to the offer.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the job offer.\").nullable().optional(),\n custom_fields: z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe(\"Custom fields for the offer.\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID this offer belongs to.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone requirement setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo requirement setting in application form.\").nullable().optional(),\n employment_types: z.array(z.string()).describe(\"List of employment types for this offer.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Visibility options for this offer.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter requirement setting in application form.\").nullable().optional(),\n}).describe(\"Schema for a job offer in Recruitee.\");\nexport const RecruiteeUpdateOfferOutput = z.object({\n offer: RecruiteeUpdateOffer_OfferSchema.nullable(),\n}).describe(\"Response schema for the updated job offer.\");\n\nexport const recruiteeUpdateOffer = action(\"RECRUITEE_UPDATE_OFFER\", {\n slug: \"recruitee-update-offer\",\n name: \"Update Offer\",\n description: \"Updates an existing job offer or talent pool in Recruitee. Allows modification of offer details including title, description, requirements, status, locations, department assignment, work type (remote/hybrid/on-site), visibility settings, and application form field requirements. Only specified fields are updated; omitted fields remain unchanged. Requires the offer ID - use Get Offers or Get Offer actions to retrieve existing offer IDs.\",\n input: RecruiteeUpdateOfferInput,\n output: RecruiteeUpdateOfferOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6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C,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,OAAO,iCAAiC,SAAS,EACnD,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,114 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-offer.d.ts
|
|
4
|
-
declare const RecruiteeUpdateOfferInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RecruiteeUpdateOfferInput: z.ZodObject<{
|
|
5
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
job: "job";
|
|
7
|
+
talent_pool: "talent_pool";
|
|
8
|
+
}>>;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
hybrid: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
draft: "draft";
|
|
14
|
+
internal: "internal";
|
|
15
|
+
published: "published";
|
|
16
|
+
closed: "closed";
|
|
17
|
+
archived: "archived";
|
|
18
|
+
}>>;
|
|
19
|
+
on_site: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
offer_id: z.ZodNumber;
|
|
21
|
+
options_cv: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
optional: "optional";
|
|
23
|
+
required: "required";
|
|
24
|
+
off: "off";
|
|
25
|
+
}>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
location_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
28
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
29
|
+
department_id: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
options_phone: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
optional: "optional";
|
|
32
|
+
required: "required";
|
|
33
|
+
off: "off";
|
|
34
|
+
}>>;
|
|
35
|
+
options_photo: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
optional: "optional";
|
|
37
|
+
required: "required";
|
|
38
|
+
off: "off";
|
|
39
|
+
}>>;
|
|
40
|
+
locations_question: z.ZodOptional<z.ZodString>;
|
|
41
|
+
visibility_options: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
locations_question: "locations_question";
|
|
43
|
+
indeed: "indeed";
|
|
44
|
+
social_share: "social_share";
|
|
45
|
+
job_location: "job_location";
|
|
46
|
+
linkedin: "linkedin";
|
|
47
|
+
}>>>;
|
|
48
|
+
options_cover_letter: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
optional: "optional";
|
|
50
|
+
required: "required";
|
|
51
|
+
off: "off";
|
|
52
|
+
}>>;
|
|
53
|
+
locations_question_type: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
single_choice: "single_choice";
|
|
55
|
+
multiple_choice: "multiple_choice";
|
|
56
|
+
}>>;
|
|
57
|
+
locations_question_required: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
declare const RecruiteeUpdateOfferOutput: z.ZodObject<{
|
|
60
|
+
offer: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
66
|
+
title: z.ZodNullable<z.ZodString>;
|
|
67
|
+
status: z.ZodNullable<z.ZodString>;
|
|
68
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
69
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
70
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
options_cv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
73
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
url: z.ZodNullable<z.ZodString>;
|
|
76
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>>>;
|
|
78
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
80
|
+
value: z.ZodUnknown;
|
|
81
|
+
field_key: z.ZodNullable<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>>>;
|
|
83
|
+
department_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
+
options_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
options_photo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
employment_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
87
|
+
visibility_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
88
|
+
options_cover_letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
declare const recruiteeUpdateOffer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
92
|
+
offer_id: number;
|
|
93
|
+
kind?: "job" | "talent_pool" | undefined;
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
hybrid?: boolean | undefined;
|
|
96
|
+
remote?: boolean | undefined;
|
|
97
|
+
status?: "draft" | "internal" | "published" | "closed" | "archived" | undefined;
|
|
98
|
+
on_site?: boolean | undefined;
|
|
99
|
+
options_cv?: "optional" | "required" | "off" | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
location_ids?: number[] | undefined;
|
|
102
|
+
requirements?: string | undefined;
|
|
103
|
+
department_id?: number | undefined;
|
|
104
|
+
options_phone?: "optional" | "required" | "off" | undefined;
|
|
105
|
+
options_photo?: "optional" | "required" | "off" | undefined;
|
|
106
|
+
locations_question?: string | undefined;
|
|
107
|
+
visibility_options?: ("locations_question" | "indeed" | "social_share" | "job_location" | "linkedin")[] | undefined;
|
|
108
|
+
options_cover_letter?: "optional" | "required" | "off" | undefined;
|
|
109
|
+
locations_question_type?: "single_choice" | "multiple_choice" | undefined;
|
|
110
|
+
locations_question_required?: boolean | undefined;
|
|
111
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
112
|
//#endregion
|
|
8
113
|
export { recruiteeUpdateOffer };
|
|
9
114
|
//# sourceMappingURL=update-offer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-offer.d.cts","names":[],"sources":["../../src/actions/update-offer.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"update-offer.d.cts","names":[],"sources":["../../src/actions/update-offer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,114 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-offer.d.ts
|
|
4
|
-
declare const RecruiteeUpdateOfferInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RecruiteeUpdateOfferInput: z.ZodObject<{
|
|
5
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
job: "job";
|
|
7
|
+
talent_pool: "talent_pool";
|
|
8
|
+
}>>;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
hybrid: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
draft: "draft";
|
|
14
|
+
internal: "internal";
|
|
15
|
+
published: "published";
|
|
16
|
+
closed: "closed";
|
|
17
|
+
archived: "archived";
|
|
18
|
+
}>>;
|
|
19
|
+
on_site: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
offer_id: z.ZodNumber;
|
|
21
|
+
options_cv: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
optional: "optional";
|
|
23
|
+
required: "required";
|
|
24
|
+
off: "off";
|
|
25
|
+
}>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
location_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
28
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
29
|
+
department_id: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
options_phone: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
optional: "optional";
|
|
32
|
+
required: "required";
|
|
33
|
+
off: "off";
|
|
34
|
+
}>>;
|
|
35
|
+
options_photo: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
optional: "optional";
|
|
37
|
+
required: "required";
|
|
38
|
+
off: "off";
|
|
39
|
+
}>>;
|
|
40
|
+
locations_question: z.ZodOptional<z.ZodString>;
|
|
41
|
+
visibility_options: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
locations_question: "locations_question";
|
|
43
|
+
indeed: "indeed";
|
|
44
|
+
social_share: "social_share";
|
|
45
|
+
job_location: "job_location";
|
|
46
|
+
linkedin: "linkedin";
|
|
47
|
+
}>>>;
|
|
48
|
+
options_cover_letter: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
optional: "optional";
|
|
50
|
+
required: "required";
|
|
51
|
+
off: "off";
|
|
52
|
+
}>>;
|
|
53
|
+
locations_question_type: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
single_choice: "single_choice";
|
|
55
|
+
multiple_choice: "multiple_choice";
|
|
56
|
+
}>>;
|
|
57
|
+
locations_question_required: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
declare const RecruiteeUpdateOfferOutput: z.ZodObject<{
|
|
60
|
+
offer: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
66
|
+
title: z.ZodNullable<z.ZodString>;
|
|
67
|
+
status: z.ZodNullable<z.ZodString>;
|
|
68
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
69
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
70
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
options_cv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
73
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
url: z.ZodNullable<z.ZodString>;
|
|
76
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>>>;
|
|
78
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
80
|
+
value: z.ZodUnknown;
|
|
81
|
+
field_key: z.ZodNullable<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>>>;
|
|
83
|
+
department_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
+
options_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
options_photo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
employment_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
87
|
+
visibility_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
88
|
+
options_cover_letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
declare const recruiteeUpdateOffer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
92
|
+
offer_id: number;
|
|
93
|
+
kind?: "job" | "talent_pool" | undefined;
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
hybrid?: boolean | undefined;
|
|
96
|
+
remote?: boolean | undefined;
|
|
97
|
+
status?: "draft" | "internal" | "published" | "closed" | "archived" | undefined;
|
|
98
|
+
on_site?: boolean | undefined;
|
|
99
|
+
options_cv?: "optional" | "required" | "off" | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
location_ids?: number[] | undefined;
|
|
102
|
+
requirements?: string | undefined;
|
|
103
|
+
department_id?: number | undefined;
|
|
104
|
+
options_phone?: "optional" | "required" | "off" | undefined;
|
|
105
|
+
options_photo?: "optional" | "required" | "off" | undefined;
|
|
106
|
+
locations_question?: string | undefined;
|
|
107
|
+
visibility_options?: ("locations_question" | "indeed" | "social_share" | "job_location" | "linkedin")[] | undefined;
|
|
108
|
+
options_cover_letter?: "optional" | "required" | "off" | undefined;
|
|
109
|
+
locations_question_type?: "single_choice" | "multiple_choice" | undefined;
|
|
110
|
+
locations_question_required?: boolean | undefined;
|
|
111
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
112
|
//#endregion
|
|
8
113
|
export { recruiteeUpdateOffer };
|
|
9
114
|
//# sourceMappingURL=update-offer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-offer.d.mts","names":[],"sources":["../../src/actions/update-offer.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"update-offer.d.mts","names":[],"sources":["../../src/actions/update-offer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -51,27 +51,27 @@ const RecruiteeUpdateOfferInput = z.object({
|
|
|
51
51
|
locations_question_required: z.boolean().describe("Whether applicants must answer the location question to submit their application.").optional()
|
|
52
52
|
}).describe("Request model for updating an existing job offer. All fields except offer_id are optional.\nOnly provide fields you want to update - other fields will remain unchanged.");
|
|
53
53
|
const RecruiteeUpdateOffer_AttachmentInfoSchema = z.object({
|
|
54
|
-
id: z.number().int().describe("Unique attachment ID."),
|
|
55
|
-
url: z.string().describe("Download URL of the attachment."),
|
|
56
|
-
filename: z.string().describe("Uploaded filename.")
|
|
54
|
+
id: z.number().int().describe("Unique attachment ID.").nullable(),
|
|
55
|
+
url: z.string().describe("Download URL of the attachment.").nullable(),
|
|
56
|
+
filename: z.string().describe("Uploaded filename.").nullable()
|
|
57
57
|
}).describe("Attachment metadata linked to the job offer.");
|
|
58
58
|
const RecruiteeUpdateOffer_OfferCustomFieldSchema = z.object({
|
|
59
59
|
value: z.unknown().describe("Value of the custom field."),
|
|
60
|
-
field_key: z.string().describe("Custom field identifier key.")
|
|
60
|
+
field_key: z.string().describe("Custom field identifier key.").nullable()
|
|
61
61
|
}).describe("Key/value pair for a custom field on the offer.");
|
|
62
62
|
const RecruiteeUpdateOffer_OfferSchema = z.object({
|
|
63
|
-
id: z.number().int().describe("Unique identifier of the offer."),
|
|
63
|
+
id: z.number().int().describe("Unique identifier of the offer.").nullable(),
|
|
64
64
|
ref: z.string().describe("Internal reference code.").nullable().optional(),
|
|
65
65
|
kind: z.string().describe("Type of the offer, e.g., 'job' or 'talent_pool'.").nullable().optional(),
|
|
66
66
|
slug: z.string().describe("URL-friendly slug of the offer.").nullable().optional(),
|
|
67
67
|
tags: z.array(z.string()).describe("Tags assigned to the offer.").nullable().optional(),
|
|
68
|
-
title: z.string().describe("Title of the job offer."),
|
|
69
|
-
status: z.string().describe("Current status of the offer."),
|
|
68
|
+
title: z.string().describe("Title of the job offer.").nullable(),
|
|
69
|
+
status: z.string().describe("Current status of the offer.").nullable(),
|
|
70
70
|
locations: z.array(z.string()).describe("List of locations for this offer.").nullable().optional(),
|
|
71
|
-
created_at: z.string().describe("ISO 8601 datetime when the offer was created."),
|
|
71
|
+
created_at: z.string().describe("ISO 8601 datetime when the offer was created.").nullable(),
|
|
72
72
|
expires_at: z.string().describe("ISO 8601 datetime when the offer expires.").nullable().optional(),
|
|
73
73
|
options_cv: z.string().describe("CV requirement setting in application form.").nullable().optional(),
|
|
74
|
-
updated_at: z.string().describe("ISO 8601 datetime when the offer was last updated."),
|
|
74
|
+
updated_at: z.string().describe("ISO 8601 datetime when the offer was last updated.").nullable(),
|
|
75
75
|
attachments: z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe("Attachments linked to the offer.").nullable().optional(),
|
|
76
76
|
description: z.string().describe("Detailed description of the job offer.").nullable().optional(),
|
|
77
77
|
custom_fields: z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe("Custom fields for the offer.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-offer.mjs","names":[],"sources":["../../src/actions/update-offer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateOfferInput: z.ZodTypeAny = z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).describe(\"Type of the offer: 'job' for standard job postings or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\").optional(),\n hybrid: z.boolean().describe(\"Display the job as hybrid (combination of on-site and remote) on the careers site.\").optional(),\n remote: z.boolean().describe(\"Display the job as fully remote on the careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Current status of the offer. Options: 'draft' (not visible), 'internal' (visible to team), 'published' (public), 'closed' (no longer accepting applications), 'archived' (hidden from all views).\").optional(),\n on_site: z.boolean().describe(\"Display the job as on-site on the careers site.\").optional(),\n offer_id: z.number().int().describe(\"The unique identifier of the offer to update. Required.\"),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV/resume upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n description: z.string().describe(\"Detailed description of the job offer. Supports HTML formatting.\").optional(),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use Get Locations action to retrieve valid IDs.\").optional(),\n requirements: z.string().describe(\"Job requirements and qualifications. Supports HTML formatting.\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use Get Departments action to retrieve valid IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone number field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n locations_question: z.string().describe(\"Custom question text for the location picker in the application form. Only used when 'locations_question' is in visibility_options.\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Job visibility and feature options. Include 'indeed' to post on Indeed, 'linkedin' for LinkedIn, 'social_share' for social media sharing, 'job_location' to show location, 'locations_question' to enable location picker in application form.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location selection in application form: 'single_choice' allows one location, 'multiple_choice' allows multiple.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether applicants must answer the location question to submit their application.\").optional(),\n}).describe(\"Request model for updating an existing job offer. All fields except offer_id are optional.\\nOnly provide fields you want to update - other fields will remain unchanged.\");\nconst RecruiteeUpdateOffer_AttachmentInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique attachment ID.\"),\n url: z.string().describe(\"Download URL of the attachment.\"),\n filename: z.string().describe(\"Uploaded filename.\"),\n}).describe(\"Attachment metadata linked to the job offer.\");\nconst RecruiteeUpdateOffer_OfferCustomFieldSchema: z.ZodTypeAny = z.object({\n value: z.unknown().describe(\"Value of the custom field.\"),\n field_key: z.string().describe(\"Custom field identifier key.\"),\n}).describe(\"Key/value pair for a custom field on the offer.\");\nconst RecruiteeUpdateOffer_OfferSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the offer.\"),\n ref: z.string().describe(\"Internal reference code.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer, e.g., 'job' or 'talent_pool'.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly slug of the offer.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to the offer.\").nullable().optional(),\n title: z.string().describe(\"Title of the job offer.\"),\n status: z.string().describe(\"Current status of the offer.\"),\n locations: z.array(z.string()).describe(\"List of locations for this offer.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the offer was created.\"),\n expires_at: z.string().describe(\"ISO 8601 datetime when the offer expires.\").nullable().optional(),\n options_cv: z.string().describe(\"CV requirement setting in application form.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the offer was last updated.\"),\n attachments: z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe(\"Attachments linked to the offer.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the job offer.\").nullable().optional(),\n custom_fields: z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe(\"Custom fields for the offer.\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID this offer belongs to.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone requirement setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo requirement setting in application form.\").nullable().optional(),\n employment_types: z.array(z.string()).describe(\"List of employment types for this offer.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Visibility options for this offer.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter requirement setting in application form.\").nullable().optional(),\n}).describe(\"Schema for a job offer in Recruitee.\");\nexport const RecruiteeUpdateOfferOutput: z.ZodTypeAny = z.object({\n offer: RecruiteeUpdateOffer_OfferSchema.nullable(),\n}).describe(\"Response schema for the updated job offer.\");\n\nexport const recruiteeUpdateOffer = action(\"RECRUITEE_UPDATE_OFFER\", {\n slug: \"recruitee-update-offer\",\n name: \"Update Offer\",\n description: \"Updates an existing job offer or talent pool in Recruitee. Allows modification of offer details including title, description, requirements, status, locations, department assignment, work type (remote/hybrid/on-site), visibility settings, and application form field requirements. Only specified fields are updated; omitted fields remain unchanged. Requires the offer ID - use Get Offers or Get Offer actions to retrieve existing offer IDs.\",\n input: RecruiteeUpdateOfferInput,\n output: RecruiteeUpdateOfferOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC5H,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAY;EAAa;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mMAAmM,CAAC,CAAC,SAAS;CAChS,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,y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od\";\n\nimport { action } from \"../action\";\n\nexport const RecruiteeUpdateOfferInput = z.object({\n kind: z.enum([\"job\", \"talent_pool\"]).describe(\"Type of the offer: 'job' for standard job postings or 'talent_pool' for talent pools.\").optional(),\n title: z.string().describe(\"The title of the job offer.\").optional(),\n hybrid: z.boolean().describe(\"Display the job as hybrid (combination of on-site and remote) on the careers site.\").optional(),\n remote: z.boolean().describe(\"Display the job as fully remote on the careers site.\").optional(),\n status: z.enum([\"draft\", \"internal\", \"published\", \"closed\", \"archived\"]).describe(\"Current status of the offer. Options: 'draft' (not visible), 'internal' (visible to team), 'published' (public), 'closed' (no longer accepting applications), 'archived' (hidden from all views).\").optional(),\n on_site: z.boolean().describe(\"Display the job as on-site on the careers site.\").optional(),\n offer_id: z.number().int().describe(\"The unique identifier of the offer to update. Required.\"),\n options_cv: z.enum([\"required\", \"optional\", \"off\"]).describe(\"CV/resume upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n description: z.string().describe(\"Detailed description of the job offer. Supports HTML formatting.\").optional(),\n location_ids: z.array(z.number().int()).describe(\"List of location IDs for the job offer. Use Get Locations action to retrieve valid IDs.\").optional(),\n requirements: z.string().describe(\"Job requirements and qualifications. Supports HTML formatting.\").optional(),\n department_id: z.number().int().describe(\"Department ID to assign the offer to. Use Get Departments action to retrieve valid IDs.\").optional(),\n options_phone: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Phone number field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n options_photo: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Photo upload field setting in application form. Options: 'required' (must upload), 'optional' (can upload), 'off' (field hidden).\").optional(),\n locations_question: z.string().describe(\"Custom question text for the location picker in the application form. Only used when 'locations_question' is in visibility_options.\").optional(),\n visibility_options: z.array(z.enum([\"indeed\", \"social_share\", \"job_location\", \"linkedin\", \"locations_question\"])).describe(\"Job visibility and feature options. Include 'indeed' to post on Indeed, 'linkedin' for LinkedIn, 'social_share' for social media sharing, 'job_location' to show location, 'locations_question' to enable location picker in application form.\").optional(),\n options_cover_letter: z.enum([\"required\", \"optional\", \"off\"]).describe(\"Cover letter field setting in application form. Options: 'required' (must provide), 'optional' (can provide), 'off' (field hidden).\").optional(),\n locations_question_type: z.enum([\"single_choice\", \"multiple_choice\"]).describe(\"Type of location selection in application form: 'single_choice' allows one location, 'multiple_choice' allows multiple.\").optional(),\n locations_question_required: z.boolean().describe(\"Whether applicants must answer the location question to submit their application.\").optional(),\n}).describe(\"Request model for updating an existing job offer. All fields except offer_id are optional.\\nOnly provide fields you want to update - other fields will remain unchanged.\");\nconst RecruiteeUpdateOffer_AttachmentInfoSchema = z.object({\n id: z.number().int().describe(\"Unique attachment ID.\").nullable(),\n url: z.string().describe(\"Download URL of the attachment.\").nullable(),\n filename: z.string().describe(\"Uploaded filename.\").nullable(),\n}).describe(\"Attachment metadata linked to the job offer.\");\nconst RecruiteeUpdateOffer_OfferCustomFieldSchema = z.object({\n value: z.unknown().describe(\"Value of the custom field.\"),\n field_key: z.string().describe(\"Custom field identifier key.\").nullable(),\n}).describe(\"Key/value pair for a custom field on the offer.\");\nconst RecruiteeUpdateOffer_OfferSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the offer.\").nullable(),\n ref: z.string().describe(\"Internal reference code.\").nullable().optional(),\n kind: z.string().describe(\"Type of the offer, e.g., 'job' or 'talent_pool'.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly slug of the offer.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to the offer.\").nullable().optional(),\n title: z.string().describe(\"Title of the job offer.\").nullable(),\n status: z.string().describe(\"Current status of the offer.\").nullable(),\n locations: z.array(z.string()).describe(\"List of locations for this offer.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the offer was created.\").nullable(),\n expires_at: z.string().describe(\"ISO 8601 datetime when the offer expires.\").nullable().optional(),\n options_cv: z.string().describe(\"CV requirement setting in application form.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the offer was last updated.\").nullable(),\n attachments: z.array(RecruiteeUpdateOffer_AttachmentInfoSchema).describe(\"Attachments linked to the offer.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the job offer.\").nullable().optional(),\n custom_fields: z.array(RecruiteeUpdateOffer_OfferCustomFieldSchema).describe(\"Custom fields for the offer.\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID this offer belongs to.\").nullable().optional(),\n options_phone: z.string().describe(\"Phone requirement setting in application form.\").nullable().optional(),\n options_photo: z.string().describe(\"Photo requirement setting in application form.\").nullable().optional(),\n employment_types: z.array(z.string()).describe(\"List of employment types for this offer.\").nullable().optional(),\n visibility_options: z.array(z.string()).describe(\"Visibility options for this offer.\").nullable().optional(),\n options_cover_letter: z.string().describe(\"Cover letter requirement setting in application form.\").nullable().optional(),\n}).describe(\"Schema for a job offer in Recruitee.\");\nexport const RecruiteeUpdateOfferOutput = z.object({\n offer: RecruiteeUpdateOffer_OfferSchema.nullable(),\n}).describe(\"Response schema for the updated job offer.\");\n\nexport const recruiteeUpdateOffer = action(\"RECRUITEE_UPDATE_OFFER\", {\n slug: \"recruitee-update-offer\",\n name: \"Update Offer\",\n description: \"Updates an existing job offer or talent pool in Recruitee. Allows modification of offer details including title, description, requirements, status, locations, department assignment, work type (remote/hybrid/on-site), visibility settings, and application form field requirements. Only specified fields are updated; omitted fields remain unchanged. Requires the offer ID - use Get Offers or Get Offer actions to retrieve existing offer IDs.\",\n input: RecruiteeUpdateOfferInput,\n output: RecruiteeUpdateOfferOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,QAAQ,CAAC,CAAC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AAC,SAAS;CAC/G,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,OAAO,iCAAiC,SAAS,EACnD,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,19 @@ const recruiteeCatalog = {
|
|
|
7
7
|
"category": "HR Talent & Recruitment",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/recruitee",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"subdomain": {
|
|
13
|
+
"label": "Company ID",
|
|
14
|
+
"description": "The unique identifier for your company in Recruitee, used to construct the base URL for API requests."
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "Recruitee API Token",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The personal API token generated in Recruitee for authenticating API requests."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
exports.recruiteeCatalog = recruiteeCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const recruiteeCatalog = {\n \"slug\": \"recruitee\",\n \"name\": \"Recruitee\",\n \"description\": \"Recruitee is a collaborative hiring software that streamlines recruitment processes, enabling teams to source, interview, and hire candidates efficiently.\",\n \"category\": \"HR Talent & Recruitment\",\n \"logo\": \"https://logos.composio.dev/api/recruitee\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const recruiteeCatalog = {\n \"slug\": \"recruitee\",\n \"name\": \"Recruitee\",\n \"description\": \"Recruitee is a collaborative hiring software that streamlines recruitment processes, enabling teams to source, interview, and hire candidates efficiently.\",\n \"category\": \"HR Talent & Recruitment\",\n \"logo\": \"https://logos.composio.dev/api/recruitee\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Company ID\",\n \"description\": \"The unique identifier for your company in Recruitee, used to construct the base URL for API requests.\"\n },\n \"api_key\": {\n \"label\": \"Recruitee API Token\",\n \"secret\": true,\n \"description\": \"The personal API token generated in Recruitee for authenticating API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|