0.1.1 • Published 5 months ago

carerix-next-connector v0.1.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 months ago

Carerix Next.js Connector

This package is created to have Next.js websites interact with Carerix. Any and all features included are currently undocumented.

Force thou shall use - Reading source ain't abuse

Force thou shall use - Reading source ain't abuse

Set up

To set up the connection to Carerix you can simply use environment variables. It is however possible to provide/override the credentials onto each API method as an object in the last parameter.

// Required
CARERIX_CLIENT_ID=
CARERIX_CLIENT_SECRET=
CARERIX_TOKEN_ENDPOINT=

// Optional (defaults shown)
CARERIX_GRAPHQL_URI=https://api.carerix.io/graphql/v1/graphql
CARERIX_MEDIUM_CODE=web
CARERIX_AGENCY_NAME=''

Functions

The following methods are available:

Get Vacancies

const vacancy: Promise<CarerixVacancy | null> =
	await carerix.vacancy(
		vacancyId: number,
		connection?: Partial<CarerixConnection>
	);

const vacancies: Promise<CarerixVacancy[]> =
	await carerix.vacancies(
		connection?: Partial<CarerixConnection>
	);

Employee Apply

const response: Promise<Boolean> =
	await carerix.employeeApply(
		vacancyId: number,
		data: CarerixEmployeeApply,
		connection?: Partial<CarerixConnection>
	);

Contributing

See the CONTRIBUTE.md document

0.1.0

5 months ago

0.1.1

5 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.4

7 months ago

0.0.1

7 months ago