common

package
v0.0.0-...-556fe45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2025 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationState

type ApplicationState string
const (
	// Any change here should reflect in the IsValid() method too
	AppliedAppState ApplicationState = "APPLIED"

	// TODO: Remember to Reject all open applications when an Opening is closed
	RejectedAppState ApplicationState = "REJECTED"

	ShortlistedAppState ApplicationState = "SHORTLISTED"
	WithdrawnAppState   ApplicationState = "WITHDRAWN"
	ExpiredAppState     ApplicationState = "EXPIRED"
)

func (ApplicationState) IsValid

func (s ApplicationState) IsValid() bool

type CandidacyComment

type CandidacyComment struct {
	CommentID     string        `json:"comment_id"`
	CommenterName string        `json:"commenter_name"`
	CommenterType CommenterType `json:"commenter_type"`
	Content       string        `json:"content"`
	CreatedAt     time.Time     `json:"created_at"`
}

type CandidacyState

type CandidacyState string
const (
	InterviewingCandidacyState CandidacyState = "INTERVIEWING"

	OfferedCandidacyState       CandidacyState = "OFFERED"
	OfferDeclinedCandidacyState CandidacyState = "OFFER_DECLINED"
	OfferAcceptedCandidacyState CandidacyState = "OFFER_ACCEPTED"

	CandidateUnsuitableCandidacyState CandidacyState = "CANDIDATE_UNSUITABLE"

	CandidateNotRespondingCandidacyState CandidacyState = "CANDIDATE_NOT_RESPONDING"
	CandidateWithdrewCandidacyState      CandidacyState = "CANDIDATE_WITHDREW"

	EmployerDefunctCandidacyState CandidacyState = "EMPLOYER_DEFUNCT"
)

func (CandidacyState) IsValid

func (s CandidacyState) IsValid() bool

type City

type City string

type CommenterType

type CommenterType string
const (
	CommenterTypeOrgUser CommenterType = "ORG_USER"
	CommenterTypeHubUser CommenterType = "HUB_USER"
)

type CountryCode

type CountryCode string
const GlobalCountryCode CountryCode = "ZZG"

type Currency

type Currency string

type EducationLevel

type EducationLevel string
const (
	BachelorEducation    EducationLevel = "BACHELOR_EDUCATION"
	MasterEducation      EducationLevel = "MASTER_EDUCATION"
	DoctorateEducation   EducationLevel = "DOCTORATE_EDUCATION"
	NotMattersEducation  EducationLevel = "NOT_MATTERS_EDUCATION"
	UnspecifiedEducation EducationLevel = "UNSPECIFIED_EDUCATION"
)

func (EducationLevel) IsValid

func (e EducationLevel) IsValid() bool

type EmailAddress

type EmailAddress string

type FilterOpeningTagsRequest

type FilterOpeningTagsRequest struct {
	Prefix *string `json:"prefix,omitempty"`
}

type GetCandidacyCommentsRequest

type GetCandidacyCommentsRequest struct {
	CandidacyID string `json:"candidacy_id"`
}

type GetCandidacyInfoRequest

type GetCandidacyInfoRequest struct {
	CandidacyID string `json:"candidacy_id"`
}

type Handle

type Handle string

func (Handle) IsValid

func (h Handle) IsValid() bool

type InterviewState

type InterviewState string
const (
	ScheduledInterviewState InterviewState = "SCHEDULED_INTERVIEW"
	CompletedInterviewState InterviewState = "COMPLETED_INTERVIEW"
	CancelledInterviewState InterviewState = "CANCELLED_INTERVIEW"
)

func (InterviewState) IsValid

func (s InterviewState) IsValid() bool

type InterviewType

type InterviewType string
const (
	InPersonInterviewType  InterviewType = "IN_PERSON"
	VideoCallInterviewType InterviewType = "VIDEO_CALL"
	TakeHomeInterviewType  InterviewType = "TAKE_HOME"
	OtherInterviewType     InterviewType = "OTHER_INTERVIEW"
)

func (InterviewType) IsValid

func (i InterviewType) IsValid() bool

type InterviewersDecision

type InterviewersDecision string
const (
	StrongYesInterviewersDecision InterviewersDecision = "STRONG_YES"
	YesInterviewersDecision       InterviewersDecision = "YES"
	NeutralInterviewersDecision   InterviewersDecision = "NEUTRAL"
	NoInterviewersDecision        InterviewersDecision = "NO"
	StrongNoInterviewersDecision  InterviewersDecision = "STRONG_NO"
)

func (InterviewersDecision) IsValid

func (d InterviewersDecision) IsValid() bool

type OpeningState

type OpeningState string
const (
	DraftOpening     OpeningState = "DRAFT_OPENING_STATE"
	ActiveOpening    OpeningState = "ACTIVE_OPENING_STATE"
	SuspendedOpening OpeningState = "SUSPENDED_OPENING_STATE"
	ClosedOpening    OpeningState = "CLOSED_OPENING_STATE"
)

type OpeningTag

type OpeningTag struct {
	ID   OpeningTagID `json:"id"`
	Name string       `json:"name"`
}

type OpeningTagID

type OpeningTagID string

type OpeningTags

type OpeningTags struct {
	Tags []OpeningTag `json:"tags" validate:"required"`
}

type OpeningType

type OpeningType string
const (
	// Any changes to here should be reflected also in the IsValid() method
	FullTimeOpening    OpeningType = "FULL_TIME_OPENING"
	PartTimeOpening    OpeningType = "PART_TIME_OPENING"
	ContractOpening    OpeningType = "CONTRACT_OPENING"
	InternshipOpening  OpeningType = "INTERNSHIP_OPENING"
	UnspecifiedOpening OpeningType = "UNSPECIFIED_OPENING"
)

func (OpeningType) IsValid

func (o OpeningType) IsValid() bool

type OrgUserRole

type OrgUserRole string
const (
	Admin OrgUserRole = "ADMIN"

	// This ANY role is not saved in database. If this role is the value for
	// the allowedRoles in the middleware, then any OrgUser in that Org can
	// access that route.
	Any OrgUserRole = "ANY"

	ApplicationsCRUD   OrgUserRole = "APPLICATIONS_CRUD"
	ApplicationsViewer OrgUserRole = "APPLICATIONS_VIEWER"

	CostCentersCRUD   OrgUserRole = "COST_CENTERS_CRUD"
	CostCentersViewer OrgUserRole = "COST_CENTERS_VIEWER"

	LocationsCRUD   OrgUserRole = "LOCATIONS_CRUD"
	LocationsViewer OrgUserRole = "LOCATIONS_VIEWER"

	OpeningsCRUD   OrgUserRole = "OPENINGS_CRUD"
	OpeningsViewer OrgUserRole = "OPENINGS_VIEWER"

	OrgUsersCRUD   OrgUserRole = "ORG_USERS_CRUD"
	OrgUsersViewer OrgUserRole = "ORG_USERS_VIEWER"
)

func (OrgUserRole) IsValid

func (r OrgUserRole) IsValid() bool

type OrgUserRoles

type OrgUserRoles []OrgUserRole

func (OrgUserRoles) IsValid

func (roles OrgUserRoles) IsValid() bool

func (OrgUserRoles) StringArray

func (roles OrgUserRoles) StringArray() []string

type Password

type Password string

type RSVPInterviewRequest

type RSVPInterviewRequest struct {
	InterviewID string     `json:"interview_id" validate:"required"`
	RSVPStatus  RSVPStatus `json:"rsvp_status"  validate:"required,validate_rsvp_request"`
}

func (RSVPInterviewRequest) IsValid

func (r RSVPInterviewRequest) IsValid() bool

type RSVPStatus

type RSVPStatus string
const (
	YesRSVP    RSVPStatus = "YES"
	NoRSVP     RSVPStatus = "NO"
	NotSetRSVP RSVPStatus = "NOT_SET"
)

func (RSVPStatus) IsValidRequest

func (s RSVPStatus) IsValidRequest() bool

type Salary

type Salary struct {
	MinAmount float64  `json:"min_amount" validate:"required,min=0"`
	MaxAmount float64  `json:"max_amount" validate:"required,min=1"`
	Currency  Currency `json:"currency"   validate:"required"`
}

type TimeZone

type TimeZone string

func (TimeZone) IsValid

func (t TimeZone) IsValid() bool

type ValidationErrors

type ValidationErrors struct {
	Errors []string `json:"errors"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL