chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
import { ActionDefinition } from '@botpress/sdk'
|
||||
import {
|
||||
getCandidateInputSchema,
|
||||
getCandidateOutputSchema,
|
||||
listCandidatesInputSchema,
|
||||
listCandidatesOutputSchema,
|
||||
postCandidateInJobInputSchema,
|
||||
postCandidateInJobOutputSchema,
|
||||
postCandidateInTalentPoolInputSchema,
|
||||
postCandidateInTalentPoolOutputSchema,
|
||||
updateCandidateInputSchema,
|
||||
updateCandidateOutputSchema,
|
||||
} from 'definitions/models/candidates'
|
||||
|
||||
export const listCandidates = {
|
||||
title: 'List candidates',
|
||||
description: 'List the candidates for a job',
|
||||
input: {
|
||||
schema: listCandidatesInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: listCandidatesOutputSchema,
|
||||
},
|
||||
} satisfies ActionDefinition
|
||||
|
||||
export const getCandidate = {
|
||||
title: 'Get candidate',
|
||||
description: 'Get a candidate by ID',
|
||||
input: {
|
||||
schema: getCandidateInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: getCandidateOutputSchema,
|
||||
},
|
||||
} satisfies ActionDefinition
|
||||
|
||||
export const createCandidateInJob = {
|
||||
title: 'Create candidate in job',
|
||||
description: 'Create a candidate in the specified job',
|
||||
input: {
|
||||
schema: postCandidateInJobInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: postCandidateInJobOutputSchema,
|
||||
},
|
||||
} satisfies ActionDefinition
|
||||
|
||||
export const createCandidateInTalentPool = {
|
||||
title: 'Create candidate in talent pool',
|
||||
description: 'Create a candidate in the talent pool',
|
||||
input: {
|
||||
schema: postCandidateInTalentPoolInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: postCandidateInTalentPoolOutputSchema,
|
||||
},
|
||||
} satisfies ActionDefinition
|
||||
|
||||
export const updateCandidate = {
|
||||
title: 'Update candidate',
|
||||
description: 'Update an existing candidate. Omitted fields will remain unchanged.',
|
||||
input: {
|
||||
schema: updateCandidateInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: updateCandidateOutputSchema,
|
||||
},
|
||||
} satisfies ActionDefinition
|
||||
@@ -0,0 +1,12 @@
|
||||
import { getJobQuestionsInputSchema, getJobQuestionsOutputSchema } from 'definitions/models/jobs'
|
||||
|
||||
export const getJobQuestions = {
|
||||
title: 'Get job questions',
|
||||
description: 'Get the questions associated with a job offer',
|
||||
input: {
|
||||
schema: getJobQuestionsInputSchema,
|
||||
},
|
||||
output: {
|
||||
schema: getJobQuestionsOutputSchema,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user