feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -6,10 +6,11 @@
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const organizationInvitationCreateCandidateHandleMax = 128;
|
||||
export const organizationInvitationCreateCandidateHandleMin = 47;
|
||||
export const organizationInvitationCreateCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const organizationInvitationCreateCandidateHandleRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
export const organizationInvitationCreateCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
|
||||
export const organizationInvitationCreateTermsRoleTitleMax = 200;
|
||||
|
||||
@@ -67,7 +68,7 @@ export const organizationInvitationCreateTermsPackageHealthInsuranceOneDescripti
|
||||
export const organizationInvitationCreateTermsPackageHealthInsuranceOneDescriptionRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
|
||||
export const OrganizationInvitationCreate = zod.object({
|
||||
"candidate_handle": zod.string().min(1).max(organizationInvitationCreateCandidateHandleMax).regex(organizationInvitationCreateCandidateHandleRegExp).describe('Opaque reference to a candidate as one organization sees it, taken from a search result card of that organization. It is not the candidate\'s account or profile identifier, it never contains an email address or a phone number, and it means nothing to another organization. The server resolves it only for the organization in the path. Clients never parse it. It is shared by the invitations of FR12 and the search results of FR11, which issue it.'),
|
||||
"candidate_handle": zod.string().min(organizationInvitationCreateCandidateHandleMin).max(organizationInvitationCreateCandidateHandleMax).regex(organizationInvitationCreateCandidateHandleRegExp).describe('Opaque reference to a candidate as one organization sees it, taken from the organization-scoped anonymous card. It is a versioned HMAC alias, not a candidate account or profile identifier; it contains no contact information and is meaningless to another organization. The server resolves it only against the current visible cohort of the organization in the path. Clients never parse or construct it. It is shared by the candidate-card read and invitations.'),
|
||||
"need": zod.union([zod.object({
|
||||
"need_id": zod.uuid().describe('Identifier of a need of the organization in the path.'),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.').describe('`requirements_version` of the need that the invitation refers to; it must be a version that the need has had.')
|
||||
|
||||
Reference in new issue
Block a user