@the-inkwell/shared 0.2.216 → 0.2.218
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/constants.d.ts +30 -0
- package/dist/constants.js +10 -1
- package/dist/constants.js.map +1 -1
- package/dist/schema/admin/matches/positions.d.ts +0 -1
- package/dist/schema/admin/matches/previews.d.ts +0 -4
- package/dist/schema/admin/matches/utils.d.ts +1 -1
- package/dist/schema/admin/matches/utils.js +1 -2
- package/dist/schema/admin/matches/utils.js.map +1 -1
- package/dist/schema/admin/persons/index.d.ts +9 -1
- package/dist/schema/admin/persons/index.js +2 -10
- package/dist/schema/admin/persons/index.js.map +1 -1
- package/dist/schema/public/account/index.d.ts +72 -0
- package/dist/schema/public/account/index.js +88 -0
- package/dist/schema/public/account/index.js.map +1 -0
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -717,6 +717,36 @@ export declare const MESSAGE_CHANNELS: {
|
|
|
717
717
|
position: number;
|
|
718
718
|
};
|
|
719
719
|
};
|
|
720
|
+
export declare const PROFILE_DATA_FILTER_OPTIONS: {
|
|
721
|
+
readonly NO_LINKEDIN_PROFILE: {
|
|
722
|
+
readonly name: "No LinkedIn Profile";
|
|
723
|
+
readonly position: 0;
|
|
724
|
+
};
|
|
725
|
+
readonly NO_PHOTO: {
|
|
726
|
+
readonly name: "No Photo / Profile URL";
|
|
727
|
+
readonly position: 1;
|
|
728
|
+
};
|
|
729
|
+
readonly NO_NETWORKS: {
|
|
730
|
+
readonly name: "No Networks";
|
|
731
|
+
readonly position: 2;
|
|
732
|
+
};
|
|
733
|
+
readonly NETWORKS_COMMUNITIES: {
|
|
734
|
+
readonly name: "Has Networks Input";
|
|
735
|
+
readonly position: 3;
|
|
736
|
+
};
|
|
737
|
+
readonly CONFERENCES_ATTENDED: {
|
|
738
|
+
readonly name: "Has Conferences Input";
|
|
739
|
+
readonly position: 4;
|
|
740
|
+
};
|
|
741
|
+
readonly WHATSAPP_GROUPS: {
|
|
742
|
+
readonly name: "Has WhatsApp Groups Input";
|
|
743
|
+
readonly position: 5;
|
|
744
|
+
};
|
|
745
|
+
readonly OTHER_COMMUNITIES: {
|
|
746
|
+
readonly name: "Has Other Communities Input";
|
|
747
|
+
readonly position: 6;
|
|
748
|
+
};
|
|
749
|
+
};
|
|
720
750
|
export declare const EMPLOYMENT_TYPES: {
|
|
721
751
|
FULL_TIME: {
|
|
722
752
|
name: string;
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLIENT_SOURCES = exports.MESSAGE_TEMPLATES = exports.LIST_REQUEST_SORT_DIRECTIONS = exports.LIST_REQUEST_LIMITS = exports.PERSON_LIST_OPERATORS = exports.SETTINGS_OPTION_LISTS = exports.PAYOUT_REASONS = exports.EDUCATION_FIELDS = exports.JOB_LEVELS = exports.ENRICHMENT_SOURCES = exports.EMPLOYMENT_TYPES = exports.MESSAGE_CHANNELS = exports.MEMBER_REASONS = exports.PERSON_SOURCES = exports.POSITION_CLOSED_REASONS = exports.EMPLOYMENT_LOCATION_TYPES = exports.COUNTRIES = exports.REFERRAL_SOURCES = exports.REFERRAL_TYPES = exports.MESSAGE_STATUSES = exports.GENDERS = exports.EDUCATION_DEGREES = exports.CANDIDACY_ASSESSMENT_CATEGORIES = exports.CLIENT_STATUSES = exports.CANDIDACY_REJECTORS = exports.CANDIDACY_STAGES = exports.CANDIDACY_SOURCES = exports.STATES = exports.ACTIONS = exports.DEFAULT_UUID = exports.REFRESH_TOKEN_COOKIE_NAME = exports.ACCESS_TOKEN_COOKIE_NAME = void 0;
|
|
3
|
+
exports.CLIENT_SOURCES = exports.MESSAGE_TEMPLATES = exports.LIST_REQUEST_SORT_DIRECTIONS = exports.LIST_REQUEST_LIMITS = exports.PERSON_LIST_OPERATORS = exports.SETTINGS_OPTION_LISTS = exports.PAYOUT_REASONS = exports.EDUCATION_FIELDS = exports.JOB_LEVELS = exports.ENRICHMENT_SOURCES = exports.EMPLOYMENT_TYPES = exports.PROFILE_DATA_FILTER_OPTIONS = exports.MESSAGE_CHANNELS = exports.MEMBER_REASONS = exports.PERSON_SOURCES = exports.POSITION_CLOSED_REASONS = exports.EMPLOYMENT_LOCATION_TYPES = exports.COUNTRIES = exports.REFERRAL_SOURCES = exports.REFERRAL_TYPES = exports.MESSAGE_STATUSES = exports.GENDERS = exports.EDUCATION_DEGREES = exports.CANDIDACY_ASSESSMENT_CATEGORIES = exports.CLIENT_STATUSES = exports.CANDIDACY_REJECTORS = exports.CANDIDACY_STAGES = exports.CANDIDACY_SOURCES = exports.STATES = exports.ACTIONS = exports.DEFAULT_UUID = exports.REFRESH_TOKEN_COOKIE_NAME = exports.ACCESS_TOKEN_COOKIE_NAME = void 0;
|
|
4
4
|
exports.ACCESS_TOKEN_COOKIE_NAME = 'accesstoken';
|
|
5
5
|
exports.REFRESH_TOKEN_COOKIE_NAME = 'refreshtoken';
|
|
6
6
|
exports.DEFAULT_UUID = '00000000-0000-0000-0000-000000000000';
|
|
@@ -222,6 +222,15 @@ exports.MESSAGE_CHANNELS = {
|
|
|
222
222
|
EMAIL: { name: 'Email', position: 0 },
|
|
223
223
|
SMS: { name: 'SMS', position: 1 }
|
|
224
224
|
};
|
|
225
|
+
exports.PROFILE_DATA_FILTER_OPTIONS = {
|
|
226
|
+
NO_LINKEDIN_PROFILE: { name: 'No LinkedIn Profile', position: 0 },
|
|
227
|
+
NO_PHOTO: { name: 'No Photo / Profile URL', position: 1 },
|
|
228
|
+
NO_NETWORKS: { name: 'No Networks', position: 2 },
|
|
229
|
+
NETWORKS_COMMUNITIES: { name: 'Has Networks Input', position: 3 },
|
|
230
|
+
CONFERENCES_ATTENDED: { name: 'Has Conferences Input', position: 4 },
|
|
231
|
+
WHATSAPP_GROUPS: { name: 'Has WhatsApp Groups Input', position: 5 },
|
|
232
|
+
OTHER_COMMUNITIES: { name: 'Has Other Communities Input', position: 6 }
|
|
233
|
+
};
|
|
225
234
|
exports.EMPLOYMENT_TYPES = {
|
|
226
235
|
FULL_TIME: { name: 'Full Time', position: 0 },
|
|
227
236
|
PART_TIME: { name: 'Part Time', position: 1 }
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,aAAa,CAAA;AACxC,QAAA,yBAAyB,GAAG,cAAc,CAAA;AAE1C,QAAA,YAAY,GAAG,sCAAsC,CAAA;AAErD,QAAA,OAAO,GAAG;IACrB,aAAa,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,EAAE;IACrD,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,oBAAoB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACnE,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,sBAAsB,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACvE,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,eAAe,EAAE,EAAE,IAAI,EAAE,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,EAAE,CAAC,EAAE;CACrC,CAAA;AAEG,QAAA,qBAAqB,GAAG;IACnC,gBAAgB;IAChB,YAAY;IACZ,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;IACf,UAAU;IACV,MAAM;IACN,QAAQ;CACA,CAAA;AAEG,QAAA,qBAAqB,GAAG;IACnC,QAAQ;IACR,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,UAAU;IACV,aAAa;IACb,IAAI;IACJ,OAAO;IACP,eAAe;IACf,kBAAkB;IAClB,eAAe;IACf,kBAAkB;IAClB,YAAY;IACZ,UAAU;IACV,SAAS;IACT,MAAM;IACN,QAAQ;IACR,WAAW;CACH,CAAA;AAEG,QAAA,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAA;AACzD,QAAA,4BAA4B,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAA;AAEvD,QAAA,iBAAiB,GAAG;IAC/B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAA;AAEG,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,YAAY,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,EAAE;CAC3C,CAAA","sourcesContent":["export const ACCESS_TOKEN_COOKIE_NAME = 'accesstoken'\nexport const REFRESH_TOKEN_COOKIE_NAME = 'refreshtoken'\n\nexport const DEFAULT_UUID = '00000000-0000-0000-0000-000000000000'\n\nexport const ACTIONS = {\n CAMPAIGN_SENT: { name: 'CAMPAIGN_SENT', position: 0 },\n CANDIDACY_CREATED: { name: 'CANDIDACY_CREATED', position: 1 },\n CANDIDACY_EVALUATING: { name: 'CANDIDACY_EVALUATING', position: 2 },\n CANDIDACY_CONTACTED: { name: 'CANDIDACY_CONTACTED', position: 3 },\n CANDIDACY_PENDING: { name: 'CANDIDACY_PENDING', position: 4 },\n CANDIDACY_SUBMITTED: { name: 'CANDIDACY_SUBMITTED', position: 5 },\n CANDIDACY_SCREENING: { name: 'CANDIDACY_SCREENING', position: 6 },\n CANDIDACY_INTERVIEWING: { name: 'CANDIDACY_INTERVIEWING', position: 7 },\n CANDIDACY_OFFERED: { name: 'CANDIDACY_OFFERED', position: 8 },\n CANDIDACY_ON_HOLD: { name: 'CANDIDACY_ON_HOLD', position: 9 },\n CANDIDACY_HIRED: { name: 'CANDIDACY_HIRED', position: 10 },\n CANDIDACY_REJECTED: { name: 'CANDIDACY_REJECTED', position: 11 },\n CANDIDACY_WITHDRAWN: { name: 'CANDIDACY_WITHDRAWN', position: 12 },\n LEAD_CREATED: { name: 'LEAD_CREATED', position: 13 },\n LEAD_CONVERTED: { name: 'LEAD_CONVERTED', position: 14 },\n CLIENT_CREATED: { name: 'CLIENT_CREATED', position: 15 },\n MESSAGE_CLICKED: { name: 'MESSAGE_CLICKED', position: 16 },\n MESSAGE_OPENED: { name: 'MESSAGE_OPENED', position: 17 },\n MESSAGE_RECEIVED: { name: 'MESSAGE_RECEIVED', position: 18 },\n MESSAGE_SENT: { name: 'MESSAGE_SENT', position: 19 },\n NOTE_CREATED: { name: 'NOTE_CREATED', position: 20 },\n PERSON_CREATED: { name: 'PERSON_CREATED', position: 21 },\n PERSON_SIGNED_UP: { name: 'PERSON_SIGNED_UP', position: 22 },\n POSITION_CLOSED: { name: 'POSITION_CLOSED', position: 23 },\n POSITION_OPENED: { name: 'POSITION_OPENED', position: 24 },\n REFERRAL_CREATED: { name: 'REFERRAL_CREATED', position: 25 },\n USER_SIGN_IN: { name: 'USER_SIGN_IN', position: 26 },\n USER_UPDATE: { name: 'USER_UPDATE', position: 27 }\n} as const\n\nexport const STATES = {\n AL: { name: 'Alabama', position: 0 },\n AK: { name: 'Alaska', position: 1 },\n AS: { name: 'American Samoa', position: 2 },\n AZ: { name: 'Arizona', position: 3 },\n AR: { name: 'Arkansas', position: 4 },\n CA: { name: 'California', position: 5 },\n CO: { name: 'Colorado', position: 6 },\n CT: { name: 'Connecticut', position: 7 },\n DE: { name: 'Delaware', position: 8 },\n DC: { name: 'District Of Columbia', position: 9 },\n FM: { name: 'Federated States Of Micronesia', position: 10 },\n FL: { name: 'Florida', position: 11 },\n GA: { name: 'Georgia', position: 12 },\n GU: { name: 'Guam', position: 13 },\n HI: { name: 'Hawaii', position: 14 },\n ID: { name: 'Idaho', position: 15 },\n IL: { name: 'Illinois', position: 16 },\n IN: { name: 'Indiana', position: 17 },\n IA: { name: 'Iowa', position: 18 },\n KS: { name: 'Kansas', position: 19 },\n KY: { name: 'Kentucky', position: 20 },\n LA: { name: 'Louisiana', position: 21 },\n ME: { name: 'Maine', position: 22 },\n MH: { name: 'Marshall Islands', position: 23 },\n MD: { name: 'Maryland', position: 24 },\n MA: { name: 'Massachusetts', position: 25 },\n MI: { name: 'Michigan', position: 26 },\n MN: { name: 'Minnesota', position: 27 },\n MS: { name: 'Mississippi', position: 28 },\n MO: { name: 'Missouri', position: 29 },\n MT: { name: 'Montana', position: 30 },\n NE: { name: 'Nebraska', position: 31 },\n NV: { name: 'Nevada', position: 32 },\n NH: { name: 'New Hampshire', position: 33 },\n NJ: { name: 'New Jersey', position: 34 },\n NM: { name: 'New Mexico', position: 35 },\n NY: { name: 'New York', position: 36 },\n NC: { name: 'North Carolina', position: 37 },\n ND: { name: 'North Dakota', position: 38 },\n MP: { name: 'Northern Mariana Islands', position: 39 },\n OH: { name: 'Ohio', position: 40 },\n OK: { name: 'Oklahoma', position: 41 },\n OR: { name: 'Oregon', position: 42 },\n PW: { name: 'Palau', position: 43 },\n PA: { name: 'Pennsylvania', position: 44 },\n PR: { name: 'Puerto Rico', position: 45 },\n RI: { name: 'Rhode Island', position: 46 },\n SC: { name: 'South Carolina', position: 47 },\n SD: { name: 'South Dakota', position: 48 },\n TN: { name: 'Tennessee', position: 49 },\n TX: { name: 'Texas', position: 50 },\n UT: { name: 'Utah', position: 51 },\n VT: { name: 'Vermont', position: 52 },\n VI: { name: 'Virgin Islands', position: 53 },\n VA: { name: 'Virginia', position: 54 },\n WA: { name: 'Washington', position: 55 },\n WV: { name: 'West Virginia', position: 56 },\n WI: { name: 'Wisconsin', position: 57 },\n WY: { name: 'Wyoming', position: 58 },\n AB: { name: 'Alberta', position: 59 },\n BC: { name: 'British Columbia', position: 60 },\n MB: { name: 'Manitoba', position: 61 },\n NB: { name: 'New Brunswick', position: 62 },\n NL: { name: 'Newfoundland and Labrador', position: 63 },\n NS: { name: 'Nova Scotia', position: 64 },\n NT: { name: 'Northwest Territories', position: 65 },\n NU: { name: 'Nunavut', position: 66 },\n ON: { name: 'Ontario', position: 67 },\n PE: { name: 'Prince Edward Island', position: 68 },\n QC: { name: 'Quebec', position: 69 },\n SK: { name: 'Saskatchewan', position: 70 },\n YT: { name: 'Yukon', position: 71 }\n} as const\n\nexport const CANDIDACY_SOURCES = {\n CAMPAIGN: { name: 'Campaign', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 },\n INTERNAL: { name: 'Internal', position: 4 }\n} as const\n\nexport const CANDIDACY_STAGES = {\n PENDING: { name: 'Pending', position: 0 },\n EVALUATING: { name: 'Evaluating', position: 1 },\n CONTACTED: { name: 'Contacted', position: 2 },\n SCREENING: { name: 'Screening', position: 3 },\n SUBMITTED: { name: 'Submitted', position: 4 },\n INTERVIEWING: { name: 'Interviewing', position: 5 },\n ON_HOLD: { name: 'On Hold', position: 6 },\n REJECTED: { name: 'Rejected', position: 7 },\n WITHDRAWN: { name: 'Withdrawn', position: 8 },\n OFFERED: { name: 'Offered', position: 9 },\n HIRED: { name: 'Hired', position: 10 }\n} as const\n\nexport const CANDIDACY_REJECTORS = {\n INKWELL: { name: 'Inkwell', position: 0 },\n CLIENT: { name: 'Client', position: 1 }\n} as const\n\nexport const CLIENT_STATUSES = {\n ACTIVE: { name: 'Active', position: 0 },\n INACTIVE: { name: 'Inactive', position: 1 },\n POTENTIAL: { name: 'Potential', position: 2 }\n} as const\n\nexport const CANDIDACY_ASSESSMENT_CATEGORIES = {\n EXPERIENCE: { name: 'Experience', position: 0 },\n INDUSTRY: { name: 'Industry', position: 1 },\n SKILL: { name: 'Skill', position: 2 },\n CULTURE: { name: 'Culture', position: 3 },\n COMPENSATION: { name: 'Compensation', position: 4 },\n LOCATION: { name: 'Location', position: 5 },\n MOTIVATION: { name: 'Motivation', position: 6 }\n} as const\n\nexport const EDUCATION_DEGREES = {\n HIGH_SCHOOL: { name: 'High School', position: 0 },\n ASSOCIATES: { name: 'Associates', position: 1 },\n BACHELORS: { name: 'Bachelors', position: 2 },\n MASTERS: { name: 'Masters', position: 3 },\n DOCTORATE: { name: 'Doctorate', position: 4 }\n} as const\n\nexport const GENDERS = {\n MAN: {\n name: 'Man',\n position: 0\n },\n WOMAN: {\n name: 'Woman',\n position: 1\n },\n NON_BINARY: {\n name: 'Non-Binary',\n position: 2\n },\n UNDISCLOSED: {\n name: 'Undisclosed',\n position: 3\n }\n} as const\n\nexport const MESSAGE_STATUSES = {\n DELIVERED: { name: 'Delivered', position: 0 },\n FAILED: { name: 'Failed', position: 1 },\n BOUNCED: { name: 'Bounced', position: 2 },\n PENDING: { name: 'Pending', position: 3 },\n UNSUBSCRIBED: { name: 'Unsubscribed', position: 4 },\n REPORTED: { name: 'Reported', position: 5 },\n DROPPED: { name: 'Dropped', position: 6 },\n DEFERRED: { name: 'Deferred', position: 7 }\n} as const\n\nexport const REFERRAL_TYPES = {\n CANDIDACY: { name: 'Candidacy', position: 0 },\n CLIENT: { name: 'Client', position: 1 },\n PERSON: { name: 'Person', position: 2 }\n} as const\n\nexport const REFERRAL_SOURCES = {\n CAMPAIGN: { name: 'Campaign', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n\nexport const COUNTRIES = {\n UNITED_STATES: { name: 'United States', position: 0 },\n CANADA: { name: 'Canada', position: 1 }\n} as const\n\nexport const EMPLOYMENT_LOCATION_TYPES = {\n REMOTE: { name: 'Remote', position: 0 },\n ONSITE: { name: 'Onsite', position: 1 },\n HYBRID: { name: 'Hybrid', position: 2 }\n}\n\nexport const POSITION_CLOSED_REASONS = {\n PLACED: { name: 'Placed', position: 0 },\n CLIENT_FILLED: { name: 'Client Filled', position: 1 },\n CLIENT_CANCELED: { name: 'Client Canceled', position: 2 },\n INKWELL_CANCELED: { name: 'Inkwell Canceled', position: 3 }\n} as const\n\nexport const PERSON_SOURCES = {\n SOURCED: { name: 'Sourced', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n\nexport const MEMBER_REASONS = {\n REFER: { name: 'Refer', position: 0 },\n HIRE: { name: 'Hire', position: 1 },\n APPLY: { name: 'Apply', position: 2 }\n}\n\nexport const MESSAGE_CHANNELS = {\n EMAIL: { name: 'Email', position: 0 },\n SMS: { name: 'SMS', position: 1 }\n}\n\nexport const EMPLOYMENT_TYPES = {\n FULL_TIME: { name: 'Full Time', position: 0 },\n PART_TIME: { name: 'Part Time', position: 1 }\n}\n\nexport const ENRICHMENT_SOURCES = {\n PDL: { name: 'PDL', position: 0 }\n} as const\n\nexport const JOB_LEVELS = {\n EXPERIENCED: { name: 'Experienced', position: 0 },\n MANAGER: { name: 'Manager', position: 1 },\n DIRECTOR: { name: 'Director', position: 2 },\n VICE_PRESIDENT: { name: 'Vice President', position: 3 },\n VICE_PRESIDENT_SENIOR: { name: 'Senior Vice President', position: 4 },\n VICE_PRESIDENT_EXECUTIVE: { name: 'Executive Vice President', position: 5 },\n CHIEF_SUITE: { name: 'Chief Suite', position: 6 }\n} as const\n\nexport const EDUCATION_FIELDS = {\n ACCOUNTING: { name: 'Accounting', position: 0 },\n ARCHITECTURE: { name: 'Architecture', position: 1 },\n ARTS: { name: 'Arts', position: 2 },\n BUSINESS: { name: 'Business', position: 3 },\n COMPUTER_SCIENCE: { name: 'Computer Science', position: 4 },\n ECONOMICS: { name: 'Economics', position: 5 },\n EDUCATION: { name: 'Education', position: 6 },\n ENGINEERING: { name: 'Engineering', position: 7 },\n HOSPITALITY: { name: 'Hospitality', position: 8 },\n HUMANITIES: { name: 'Humanities', position: 9 },\n LAW: { name: 'Law', position: 10 },\n MEDICINE: { name: 'Medicine', position: 11 },\n NATURAL_SCIENCES: { name: 'Natural Sciences', position: 12 },\n SOCIAL_SCIENCES: { name: 'Social Sciences', position: 13 },\n SOCIAL_WORK: { name: 'Social Work', position: 14 },\n OTHER: { name: 'Other', position: 15 }\n} as const\n\nexport const PAYOUT_REASONS = {\n INTERVIEW: { name: 'Interview', position: 0 },\n PLACEMENT: { name: 'Placement', position: 1 }\n} as const\n\nexport const SETTINGS_OPTION_LISTS = [\n 'certifications',\n 'industries',\n 'position-locations',\n 'professional-events',\n 'job-functions',\n 'networks',\n 'tags',\n 'skills'\n] as const\n\nexport const PERSON_LIST_OPERATORS = [\n 'equals',\n 'not',\n 'lt',\n 'lte',\n 'gt',\n 'gte',\n 'contains',\n 'notContains',\n 'in',\n 'notIn',\n 'arrayContains',\n 'arrayNotContains',\n 'arrayOverlaps',\n 'arrayNotOverlaps',\n 'startsWith',\n 'endsWith',\n 'between',\n 'like',\n 'isNull',\n 'isNotNull'\n] as const\n\nexport const LIST_REQUEST_LIMITS = [0, 10, 50, 100, 200, 500] as const\nexport const LIST_REQUEST_SORT_DIRECTIONS = ['asc', 'desc'] as const\n\nexport const MESSAGE_TEMPLATES = {\n POSITIONS: 'Positions',\n NEWSLETTER: 'Newsletter'\n} as const\n\nexport const CLIENT_SOURCES = {\n SOURCED: { name: 'Sourced', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,aAAa,CAAA;AACxC,QAAA,yBAAyB,GAAG,cAAc,CAAA;AAE1C,QAAA,YAAY,GAAG,sCAAsC,CAAA;AAErD,QAAA,OAAO,GAAG;IACrB,aAAa,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,EAAE;IACrD,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,oBAAoB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACnE,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACjE,sBAAsB,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACvE,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,iBAAiB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE;IAC7D,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE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AAE,YAAY;CAChB,CAAA;AAEG,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,YAAY,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,EAAE;CAC3C,CAAA","sourcesContent":["export const ACCESS_TOKEN_COOKIE_NAME = 'accesstoken'\nexport const REFRESH_TOKEN_COOKIE_NAME = 'refreshtoken'\n\nexport const DEFAULT_UUID = '00000000-0000-0000-0000-000000000000'\n\nexport const ACTIONS = {\n CAMPAIGN_SENT: { name: 'CAMPAIGN_SENT', position: 0 },\n CANDIDACY_CREATED: { name: 'CANDIDACY_CREATED', position: 1 },\n CANDIDACY_EVALUATING: { name: 'CANDIDACY_EVALUATING', position: 2 },\n CANDIDACY_CONTACTED: { name: 'CANDIDACY_CONTACTED', position: 3 },\n CANDIDACY_PENDING: { name: 'CANDIDACY_PENDING', position: 4 },\n CANDIDACY_SUBMITTED: { name: 'CANDIDACY_SUBMITTED', position: 5 },\n CANDIDACY_SCREENING: { name: 'CANDIDACY_SCREENING', position: 6 },\n CANDIDACY_INTERVIEWING: { name: 'CANDIDACY_INTERVIEWING', position: 7 },\n CANDIDACY_OFFERED: { name: 'CANDIDACY_OFFERED', position: 8 },\n CANDIDACY_ON_HOLD: { name: 'CANDIDACY_ON_HOLD', position: 9 },\n CANDIDACY_HIRED: { name: 'CANDIDACY_HIRED', position: 10 },\n CANDIDACY_REJECTED: { name: 'CANDIDACY_REJECTED', position: 11 },\n CANDIDACY_WITHDRAWN: { name: 'CANDIDACY_WITHDRAWN', position: 12 },\n LEAD_CREATED: { name: 'LEAD_CREATED', position: 13 },\n LEAD_CONVERTED: { name: 'LEAD_CONVERTED', position: 14 },\n CLIENT_CREATED: { name: 'CLIENT_CREATED', position: 15 },\n MESSAGE_CLICKED: { name: 'MESSAGE_CLICKED', position: 16 },\n MESSAGE_OPENED: { name: 'MESSAGE_OPENED', position: 17 },\n MESSAGE_RECEIVED: { name: 'MESSAGE_RECEIVED', position: 18 },\n MESSAGE_SENT: { name: 'MESSAGE_SENT', position: 19 },\n NOTE_CREATED: { name: 'NOTE_CREATED', position: 20 },\n PERSON_CREATED: { name: 'PERSON_CREATED', position: 21 },\n PERSON_SIGNED_UP: { name: 'PERSON_SIGNED_UP', position: 22 },\n POSITION_CLOSED: { name: 'POSITION_CLOSED', position: 23 },\n POSITION_OPENED: { name: 'POSITION_OPENED', position: 24 },\n REFERRAL_CREATED: { name: 'REFERRAL_CREATED', position: 25 },\n USER_SIGN_IN: { name: 'USER_SIGN_IN', position: 26 },\n USER_UPDATE: { name: 'USER_UPDATE', position: 27 }\n} as const\n\nexport const STATES = {\n AL: { name: 'Alabama', position: 0 },\n AK: { name: 'Alaska', position: 1 },\n AS: { name: 'American Samoa', position: 2 },\n AZ: { name: 'Arizona', position: 3 },\n AR: { name: 'Arkansas', position: 4 },\n CA: { name: 'California', position: 5 },\n CO: { name: 'Colorado', position: 6 },\n CT: { name: 'Connecticut', position: 7 },\n DE: { name: 'Delaware', position: 8 },\n DC: { name: 'District Of Columbia', position: 9 },\n FM: { name: 'Federated States Of Micronesia', position: 10 },\n FL: { name: 'Florida', position: 11 },\n GA: { name: 'Georgia', position: 12 },\n GU: { name: 'Guam', position: 13 },\n HI: { name: 'Hawaii', position: 14 },\n ID: { name: 'Idaho', position: 15 },\n IL: { name: 'Illinois', position: 16 },\n IN: { name: 'Indiana', position: 17 },\n IA: { name: 'Iowa', position: 18 },\n KS: { name: 'Kansas', position: 19 },\n KY: { name: 'Kentucky', position: 20 },\n LA: { name: 'Louisiana', position: 21 },\n ME: { name: 'Maine', position: 22 },\n MH: { name: 'Marshall Islands', position: 23 },\n MD: { name: 'Maryland', position: 24 },\n MA: { name: 'Massachusetts', position: 25 },\n MI: { name: 'Michigan', position: 26 },\n MN: { name: 'Minnesota', position: 27 },\n MS: { name: 'Mississippi', position: 28 },\n MO: { name: 'Missouri', position: 29 },\n MT: { name: 'Montana', position: 30 },\n NE: { name: 'Nebraska', position: 31 },\n NV: { name: 'Nevada', position: 32 },\n NH: { name: 'New Hampshire', position: 33 },\n NJ: { name: 'New Jersey', position: 34 },\n NM: { name: 'New Mexico', position: 35 },\n NY: { name: 'New York', position: 36 },\n NC: { name: 'North Carolina', position: 37 },\n ND: { name: 'North Dakota', position: 38 },\n MP: { name: 'Northern Mariana Islands', position: 39 },\n OH: { name: 'Ohio', position: 40 },\n OK: { name: 'Oklahoma', position: 41 },\n OR: { name: 'Oregon', position: 42 },\n PW: { name: 'Palau', position: 43 },\n PA: { name: 'Pennsylvania', position: 44 },\n PR: { name: 'Puerto Rico', position: 45 },\n RI: { name: 'Rhode Island', position: 46 },\n SC: { name: 'South Carolina', position: 47 },\n SD: { name: 'South Dakota', position: 48 },\n TN: { name: 'Tennessee', position: 49 },\n TX: { name: 'Texas', position: 50 },\n UT: { name: 'Utah', position: 51 },\n VT: { name: 'Vermont', position: 52 },\n VI: { name: 'Virgin Islands', position: 53 },\n VA: { name: 'Virginia', position: 54 },\n WA: { name: 'Washington', position: 55 },\n WV: { name: 'West Virginia', position: 56 },\n WI: { name: 'Wisconsin', position: 57 },\n WY: { name: 'Wyoming', position: 58 },\n AB: { name: 'Alberta', position: 59 },\n BC: { name: 'British Columbia', position: 60 },\n MB: { name: 'Manitoba', position: 61 },\n NB: { name: 'New Brunswick', position: 62 },\n NL: { name: 'Newfoundland and Labrador', position: 63 },\n NS: { name: 'Nova Scotia', position: 64 },\n NT: { name: 'Northwest Territories', position: 65 },\n NU: { name: 'Nunavut', position: 66 },\n ON: { name: 'Ontario', position: 67 },\n PE: { name: 'Prince Edward Island', position: 68 },\n QC: { name: 'Quebec', position: 69 },\n SK: { name: 'Saskatchewan', position: 70 },\n YT: { name: 'Yukon', position: 71 }\n} as const\n\nexport const CANDIDACY_SOURCES = {\n CAMPAIGN: { name: 'Campaign', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 },\n INTERNAL: { name: 'Internal', position: 4 }\n} as const\n\nexport const CANDIDACY_STAGES = {\n PENDING: { name: 'Pending', position: 0 },\n EVALUATING: { name: 'Evaluating', position: 1 },\n CONTACTED: { name: 'Contacted', position: 2 },\n SCREENING: { name: 'Screening', position: 3 },\n SUBMITTED: { name: 'Submitted', position: 4 },\n INTERVIEWING: { name: 'Interviewing', position: 5 },\n ON_HOLD: { name: 'On Hold', position: 6 },\n REJECTED: { name: 'Rejected', position: 7 },\n WITHDRAWN: { name: 'Withdrawn', position: 8 },\n OFFERED: { name: 'Offered', position: 9 },\n HIRED: { name: 'Hired', position: 10 }\n} as const\n\nexport const CANDIDACY_REJECTORS = {\n INKWELL: { name: 'Inkwell', position: 0 },\n CLIENT: { name: 'Client', position: 1 }\n} as const\n\nexport const CLIENT_STATUSES = {\n ACTIVE: { name: 'Active', position: 0 },\n INACTIVE: { name: 'Inactive', position: 1 },\n POTENTIAL: { name: 'Potential', position: 2 }\n} as const\n\nexport const CANDIDACY_ASSESSMENT_CATEGORIES = {\n EXPERIENCE: { name: 'Experience', position: 0 },\n INDUSTRY: { name: 'Industry', position: 1 },\n SKILL: { name: 'Skill', position: 2 },\n CULTURE: { name: 'Culture', position: 3 },\n COMPENSATION: { name: 'Compensation', position: 4 },\n LOCATION: { name: 'Location', position: 5 },\n MOTIVATION: { name: 'Motivation', position: 6 }\n} as const\n\nexport const EDUCATION_DEGREES = {\n HIGH_SCHOOL: { name: 'High School', position: 0 },\n ASSOCIATES: { name: 'Associates', position: 1 },\n BACHELORS: { name: 'Bachelors', position: 2 },\n MASTERS: { name: 'Masters', position: 3 },\n DOCTORATE: { name: 'Doctorate', position: 4 }\n} as const\n\nexport const GENDERS = {\n MAN: {\n name: 'Man',\n position: 0\n },\n WOMAN: {\n name: 'Woman',\n position: 1\n },\n NON_BINARY: {\n name: 'Non-Binary',\n position: 2\n },\n UNDISCLOSED: {\n name: 'Undisclosed',\n position: 3\n }\n} as const\n\nexport const MESSAGE_STATUSES = {\n DELIVERED: { name: 'Delivered', position: 0 },\n FAILED: { name: 'Failed', position: 1 },\n BOUNCED: { name: 'Bounced', position: 2 },\n PENDING: { name: 'Pending', position: 3 },\n UNSUBSCRIBED: { name: 'Unsubscribed', position: 4 },\n REPORTED: { name: 'Reported', position: 5 },\n DROPPED: { name: 'Dropped', position: 6 },\n DEFERRED: { name: 'Deferred', position: 7 }\n} as const\n\nexport const REFERRAL_TYPES = {\n CANDIDACY: { name: 'Candidacy', position: 0 },\n CLIENT: { name: 'Client', position: 1 },\n PERSON: { name: 'Person', position: 2 }\n} as const\n\nexport const REFERRAL_SOURCES = {\n CAMPAIGN: { name: 'Campaign', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n\nexport const COUNTRIES = {\n UNITED_STATES: { name: 'United States', position: 0 },\n CANADA: { name: 'Canada', position: 1 }\n} as const\n\nexport const EMPLOYMENT_LOCATION_TYPES = {\n REMOTE: { name: 'Remote', position: 0 },\n ONSITE: { name: 'Onsite', position: 1 },\n HYBRID: { name: 'Hybrid', position: 2 }\n}\n\nexport const POSITION_CLOSED_REASONS = {\n PLACED: { name: 'Placed', position: 0 },\n CLIENT_FILLED: { name: 'Client Filled', position: 1 },\n CLIENT_CANCELED: { name: 'Client Canceled', position: 2 },\n INKWELL_CANCELED: { name: 'Inkwell Canceled', position: 3 }\n} as const\n\nexport const PERSON_SOURCES = {\n SOURCED: { name: 'Sourced', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n\nexport const MEMBER_REASONS = {\n REFER: { name: 'Refer', position: 0 },\n HIRE: { name: 'Hire', position: 1 },\n APPLY: { name: 'Apply', position: 2 }\n}\n\nexport const MESSAGE_CHANNELS = {\n EMAIL: { name: 'Email', position: 0 },\n SMS: { name: 'SMS', position: 1 }\n}\n\nexport const PROFILE_DATA_FILTER_OPTIONS = {\n NO_LINKEDIN_PROFILE: { name: 'No LinkedIn Profile', position: 0 },\n NO_PHOTO: { name: 'No Photo / Profile URL', position: 1 },\n NO_NETWORKS: { name: 'No Networks', position: 2 },\n NETWORKS_COMMUNITIES: { name: 'Has Networks Input', position: 3 },\n CONFERENCES_ATTENDED: { name: 'Has Conferences Input', position: 4 },\n WHATSAPP_GROUPS: { name: 'Has WhatsApp Groups Input', position: 5 },\n OTHER_COMMUNITIES: { name: 'Has Other Communities Input', position: 6 }\n} as const\n\nexport const EMPLOYMENT_TYPES = {\n FULL_TIME: { name: 'Full Time', position: 0 },\n PART_TIME: { name: 'Part Time', position: 1 }\n}\n\nexport const ENRICHMENT_SOURCES = {\n PDL: { name: 'PDL', position: 0 }\n} as const\n\nexport const JOB_LEVELS = {\n EXPERIENCED: { name: 'Experienced', position: 0 },\n MANAGER: { name: 'Manager', position: 1 },\n DIRECTOR: { name: 'Director', position: 2 },\n VICE_PRESIDENT: { name: 'Vice President', position: 3 },\n VICE_PRESIDENT_SENIOR: { name: 'Senior Vice President', position: 4 },\n VICE_PRESIDENT_EXECUTIVE: { name: 'Executive Vice President', position: 5 },\n CHIEF_SUITE: { name: 'Chief Suite', position: 6 }\n} as const\n\nexport const EDUCATION_FIELDS = {\n ACCOUNTING: { name: 'Accounting', position: 0 },\n ARCHITECTURE: { name: 'Architecture', position: 1 },\n ARTS: { name: 'Arts', position: 2 },\n BUSINESS: { name: 'Business', position: 3 },\n COMPUTER_SCIENCE: { name: 'Computer Science', position: 4 },\n ECONOMICS: { name: 'Economics', position: 5 },\n EDUCATION: { name: 'Education', position: 6 },\n ENGINEERING: { name: 'Engineering', position: 7 },\n HOSPITALITY: { name: 'Hospitality', position: 8 },\n HUMANITIES: { name: 'Humanities', position: 9 },\n LAW: { name: 'Law', position: 10 },\n MEDICINE: { name: 'Medicine', position: 11 },\n NATURAL_SCIENCES: { name: 'Natural Sciences', position: 12 },\n SOCIAL_SCIENCES: { name: 'Social Sciences', position: 13 },\n SOCIAL_WORK: { name: 'Social Work', position: 14 },\n OTHER: { name: 'Other', position: 15 }\n} as const\n\nexport const PAYOUT_REASONS = {\n INTERVIEW: { name: 'Interview', position: 0 },\n PLACEMENT: { name: 'Placement', position: 1 }\n} as const\n\nexport const SETTINGS_OPTION_LISTS = [\n 'certifications',\n 'industries',\n 'position-locations',\n 'professional-events',\n 'job-functions',\n 'networks',\n 'tags',\n 'skills'\n] as const\n\nexport const PERSON_LIST_OPERATORS = [\n 'equals',\n 'not',\n 'lt',\n 'lte',\n 'gt',\n 'gte',\n 'contains',\n 'notContains',\n 'in',\n 'notIn',\n 'arrayContains',\n 'arrayNotContains',\n 'arrayOverlaps',\n 'arrayNotOverlaps',\n 'startsWith',\n 'endsWith',\n 'between',\n 'like',\n 'isNull',\n 'isNotNull'\n] as const\n\nexport const LIST_REQUEST_LIMITS = [0, 10, 50, 100, 200, 500] as const\nexport const LIST_REQUEST_SORT_DIRECTIONS = ['asc', 'desc'] as const\n\nexport const MESSAGE_TEMPLATES = {\n POSITIONS: 'Positions',\n NEWSLETTER: 'Newsletter'\n} as const\n\nexport const CLIENT_SOURCES = {\n SOURCED: { name: 'Sourced', position: 0 },\n NETWORK: { name: 'Network', position: 1 },\n WEBSITE: { name: 'Website', position: 2 },\n SOCIAL_MEDIA: { name: 'Social Media', position: 3 }\n} as const\n"]}
|
|
@@ -2,7 +2,6 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
export declare const AdminMatchPositionFiltersSelectSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
3
3
|
positionId: "positionId";
|
|
4
4
|
referralId: "referralId";
|
|
5
|
-
companyEmbedding: "companyEmbedding";
|
|
6
5
|
locations: "locations";
|
|
7
6
|
excludedPersons: "excludedPersons";
|
|
8
7
|
includedPersons: "includedPersons";
|
|
@@ -5,7 +5,6 @@ export declare const AdminMatchPreviewSelectSchema: z.ZodObject<{
|
|
|
5
5
|
field: z.ZodEnum<{
|
|
6
6
|
positionId: "positionId";
|
|
7
7
|
referralId: "referralId";
|
|
8
|
-
companyEmbedding: "companyEmbedding";
|
|
9
8
|
locations: "locations";
|
|
10
9
|
excludedPersons: "excludedPersons";
|
|
11
10
|
includedPersons: "includedPersons";
|
|
@@ -79,7 +78,6 @@ export declare const AdminMatchPreviewMetaSelectSchema: z.ZodObject<{
|
|
|
79
78
|
filters: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
80
79
|
positionId: "positionId";
|
|
81
80
|
referralId: "referralId";
|
|
82
|
-
companyEmbedding: "companyEmbedding";
|
|
83
81
|
locations: "locations";
|
|
84
82
|
excludedPersons: "excludedPersons";
|
|
85
83
|
includedPersons: "includedPersons";
|
|
@@ -157,7 +155,6 @@ export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
|
157
155
|
criteria: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
158
156
|
positionId: "positionId";
|
|
159
157
|
referralId: "referralId";
|
|
160
|
-
companyEmbedding: "companyEmbedding";
|
|
161
158
|
locations: "locations";
|
|
162
159
|
excludedPersons: "excludedPersons";
|
|
163
160
|
includedPersons: "includedPersons";
|
|
@@ -224,7 +221,6 @@ export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
|
224
221
|
criteria: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
225
222
|
positionId: "positionId";
|
|
226
223
|
referralId: "referralId";
|
|
227
|
-
companyEmbedding: "companyEmbedding";
|
|
228
224
|
locations: "locations";
|
|
229
225
|
excludedPersons: "excludedPersons";
|
|
230
226
|
includedPersons: "includedPersons";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const filterFields: readonly ["locations", "excludedPersons", "includedPersons", "personEmail", "personFullName", "personLinkedInUrl", "personPhone", "personCity", "personState", "personCountry", "personPostalCode", "personLat", "personLon", "referralId", "referralSource", "positionId", "positionName", "positionCity", "positionState", "positionCountry", "positionEmploymentType", "positionIndustryId", "positionJobFunctionId", "candidacyStage", "referredPersonEmail", "referredPersonFirstName", "referredPersonLastName", "referredPersonFullName", "referredPersonCity", "referredPersonState", "referredPersonCountry", "referredPersonPostalCode", "referredPersonLat", "referredPersonLon", "referredPersonLinkedInUrl", "referralPayout", "personSkills", "personNetworks", "personEvents", "personTags", "personSchools", "personIndustries", "personJobFunctions", "personTitles", "referredPersonSkills", "referredPersonNetworks", "referredPersonEvents", "referredPersonTags", "referredPersonSchools", "referredPersonIndustries", "referredPersonJobFunctions", "referredPersonTitles", "referredIndustries", "referredJobFunctions"
|
|
2
|
+
export declare const filterFields: readonly ["locations", "excludedPersons", "includedPersons", "personEmail", "personFullName", "personLinkedInUrl", "personPhone", "personCity", "personState", "personCountry", "personPostalCode", "personLat", "personLon", "referralId", "referralSource", "positionId", "positionName", "positionCity", "positionState", "positionCountry", "positionEmploymentType", "positionIndustryId", "positionJobFunctionId", "candidacyStage", "referredPersonEmail", "referredPersonFirstName", "referredPersonLastName", "referredPersonFullName", "referredPersonCity", "referredPersonState", "referredPersonCountry", "referredPersonPostalCode", "referredPersonLat", "referredPersonLon", "referredPersonLinkedInUrl", "referralPayout", "personSkills", "personNetworks", "personEvents", "personTags", "personSchools", "personIndustries", "personJobFunctions", "personTitles", "referredPersonSkills", "referredPersonNetworks", "referredPersonEvents", "referredPersonTags", "referredPersonSchools", "referredPersonIndustries", "referredPersonJobFunctions", "referredPersonTitles", "referredIndustries", "referredJobFunctions"];
|
|
3
3
|
export declare const LocationSchema: z.ZodObject<{
|
|
4
4
|
city: z.ZodString;
|
|
5
5
|
state: z.ZodString;
|
|
@@ -56,8 +56,7 @@ exports.filterFields = [
|
|
|
56
56
|
'referredPersonJobFunctions',
|
|
57
57
|
'referredPersonTitles',
|
|
58
58
|
'referredIndustries',
|
|
59
|
-
'referredJobFunctions'
|
|
60
|
-
'companyEmbedding'
|
|
59
|
+
'referredJobFunctions'
|
|
61
60
|
];
|
|
62
61
|
// Need to make these optional
|
|
63
62
|
exports.LocationSchema = v4_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEb,QAAA,YAAY,GAAG;IAC1B,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,mBAAmB;IACnB,2BAA2B;IAC3B,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEb,QAAA,YAAY,GAAG;IAC1B,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,mBAAmB;IACnB,2BAA2B;IAC3B,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;CACd,CAAA;AAEV,8BAA8B;AAEjB,QAAA,cAAc,GAAG,MAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nexport const filterFields = [\n 'locations',\n 'excludedPersons',\n 'includedPersons',\n 'personEmail',\n 'personFullName',\n 'personLinkedInUrl',\n 'personPhone',\n 'personCity',\n 'personState',\n 'personCountry',\n 'personPostalCode',\n 'personLat',\n 'personLon',\n 'referralId',\n 'referralSource',\n 'positionId',\n 'positionName',\n 'positionCity',\n 'positionState',\n 'positionCountry',\n 'positionEmploymentType',\n 'positionIndustryId',\n 'positionJobFunctionId',\n 'candidacyStage',\n 'referredPersonEmail',\n 'referredPersonFirstName',\n 'referredPersonLastName',\n 'referredPersonFullName',\n 'referredPersonCity',\n 'referredPersonState',\n 'referredPersonCountry',\n 'referredPersonPostalCode',\n 'referredPersonLat',\n 'referredPersonLon',\n 'referredPersonLinkedInUrl',\n 'referralPayout',\n 'personSkills',\n 'personNetworks',\n 'personEvents',\n 'personTags',\n 'personSchools',\n 'personIndustries',\n 'personJobFunctions',\n 'personTitles',\n 'referredPersonSkills',\n 'referredPersonNetworks',\n 'referredPersonEvents',\n 'referredPersonTags',\n 'referredPersonSchools',\n 'referredPersonIndustries',\n 'referredPersonJobFunctions',\n 'referredPersonTitles',\n 'referredIndustries',\n 'referredJobFunctions'\n] as const\n\n// Need to make these optional\n\nexport const LocationSchema = z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n})\n"]}
|
|
@@ -1495,7 +1495,15 @@ export declare const AdminPersonListQuerySchema: z.ZodObject<{
|
|
|
1495
1495
|
filter: z.ZodOptional<z.ZodObject<{
|
|
1496
1496
|
nameEmail: z.ZodOptional<z.ZodString>;
|
|
1497
1497
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1498
|
-
|
|
1498
|
+
profileData: z.ZodOptional<z.ZodEnum<{
|
|
1499
|
+
NO_LINKEDIN_PROFILE: "NO_LINKEDIN_PROFILE";
|
|
1500
|
+
NO_PHOTO: "NO_PHOTO";
|
|
1501
|
+
NO_NETWORKS: "NO_NETWORKS";
|
|
1502
|
+
NETWORKS_COMMUNITIES: "NETWORKS_COMMUNITIES";
|
|
1503
|
+
CONFERENCES_ATTENDED: "CONFERENCES_ATTENDED";
|
|
1504
|
+
WHATSAPP_GROUPS: "WHATSAPP_GROUPS";
|
|
1505
|
+
OTHER_COMMUNITIES: "OTHER_COMMUNITIES";
|
|
1506
|
+
}>>;
|
|
1499
1507
|
source: z.ZodOptional<z.ZodEnum<{
|
|
1500
1508
|
NETWORK: "NETWORK";
|
|
1501
1509
|
WEBSITE: "WEBSITE";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ResumeParserSchema = exports.AdminPersonConnectionsResultSchema = exports.AdminPersonConnectionsPersonSchema = exports.AdminPersonConnectionsParamsSchema = exports.AdminPersonListAdvancedQuerySchema = exports.AdminPersonListQuerySchema = exports.AdminPersonDeleteParamsSchema = exports.AdminPersonUpdateParamsSchema = exports.AdminPersonByIdNanoSchema = exports.AdminPersonByPhoneParamsSchema = exports.AdminPersonByEmailParamsSchema = exports.AdminPersonParamsSchema = exports.AdminPersonUpdateSchema = exports.AdminPersonSelectSchema = exports.AdminPersonCreateSchema = exports.AdminPersonExperienceSelectSchema = exports.AdminPersonEducationSelectSchema = void 0;
|
|
7
4
|
const drizzle_zod_1 = require("drizzle-zod");
|
|
@@ -9,14 +6,8 @@ const core_1 = require("../../core");
|
|
|
9
6
|
const utils_1 = require("../../../utils");
|
|
10
7
|
const v4_1 = require("zod/v4");
|
|
11
8
|
const constants_1 = require("../../../constants");
|
|
12
|
-
const phone_1 = __importDefault(require("phone"));
|
|
13
9
|
//// validators
|
|
14
10
|
const emailSchema = v4_1.z.email().trim().toLowerCase();
|
|
15
|
-
const phoneSchema = v4_1.z
|
|
16
|
-
.string()
|
|
17
|
-
.transform((val) => (0, phone_1.default)(val.trim()).phoneNumber)
|
|
18
|
-
.pipe(v4_1.z.string().startsWith('+'))
|
|
19
|
-
.nullable();
|
|
20
11
|
exports.AdminPersonEducationSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.education, {
|
|
21
12
|
field: (schema) => schema.describe('Field of study'),
|
|
22
13
|
graduatedAt: v4_1.z
|
|
@@ -187,7 +178,8 @@ exports.AdminPersonListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
|
187
178
|
.object({
|
|
188
179
|
nameEmail: v4_1.z.string(),
|
|
189
180
|
clientId: v4_1.z.string(),
|
|
190
|
-
|
|
181
|
+
// used by ops team to find people with missing profile data
|
|
182
|
+
profileData: v4_1.z.enum((0, utils_1.makeEnumFromObj)(constants_1.PROFILE_DATA_FILTER_OPTIONS)),
|
|
191
183
|
source: v4_1.z.enum(core_1.PersonSources.enumValues),
|
|
192
184
|
location: v4_1.z.object({
|
|
193
185
|
miles: v4_1.z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/persons/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAamB;AACnB,0CAKuB;AACvB,+BAA0B;AAC1B,kDAG2B;AAC3B,kDAAyB;AAEzB,eAAe;AAEf,MAAM,WAAW,GAAG,MAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AAClD,MAAM,WAAW,GAAG,MAAC;KAClB,MAAM,EAAE;KACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,eAAK,EAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC;KACjD,IAAI,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KAChC,QAAQ,EAAE,CAAA;AAEA,QAAA,gCAAgC,GAAG,IAAA,gCAAkB,EAAC,gBAAS,EAAE;IAC5E,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACpD,WAAW,EAAE,MAAC;SACX,IAAI,EA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ertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n campaign,\n client,\n education,\n experience,\n industry,\n jobFunction,\n network,\n person,\n PersonSources,\n professionalEvent,\n skill,\n tag\n} from '../../core'\nimport {\n EmailSchema,\n ListQuerySchema,\n OptionalPhoneSchema,\n type ListResponse\n} from '../../../utils'\nimport { z } from 'zod/v4'\nimport {\n LIST_REQUEST_SORT_DIRECTIONS,\n PERSON_LIST_OPERATORS\n} from '../../../constants'\nimport phone from 'phone'\n\n//// validators\n\nconst emailSchema = z.email().trim().toLowerCase()\nconst phoneSchema = z\n .string()\n .transform((val) => phone(val.trim()).phoneNumber)\n .pipe(z.string().startsWith('+'))\n .nullable()\n\nexport const AdminPersonEducationSelectSchema = createSelectSchema(education, {\n field: (schema) => schema.describe('Field of study'),\n graduatedAt: z\n .date()\n .nullable()\n .describe('Graduation date, use June 1 if exact date unknown')\n}).pick({\n id: true,\n degree: true,\n field: true,\n school: true,\n graduatedAt: true\n})\n\nexport const AdminPersonExperienceSelectSchema = createSelectSchema(\n experience,\n {\n startDate: z.date().nullable(),\n endDate: z.date().nullable()\n }\n)\n .pick({\n id: true,\n title: true,\n company: true,\n level: true,\n salary: true,\n startDate: true,\n endDate: true,\n isCurrent: true\n })\n .extend({\n jobFunction: z.string().nullable(),\n industry: z.string().nullable()\n })\n\nexport const AdminPersonCreateSchema = createInsertSchema(person)\n .extend({\n email: emailSchema\n })\n .omit({\n idNano: true\n })\nexport const AdminPersonSelectSchema = createSelectSchema(person)\n .partial()\n .extend({\n skills: z\n .array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n tags: z\n .array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n networks: z\n .array(\n createSelectSchema(network).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n professionalEvents: z\n .array(\n createSelectSchema(professionalEvent).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n educations: z.array(AdminPersonEducationSelectSchema).optional(),\n experiences: z.array(AdminPersonExperienceSelectSchema).optional(),\n _referralsCount: z.number().nullable().optional(),\n _referredIndustries: z.array(z.string()).nullable().optional(),\n _referredLocations: z.array(z.string()).nullable().optional(),\n _referredSkills: z.array(z.string()).nullable().optional(),\n _currentTitle: z.string().nullable().optional(),\n _currentEmployer: z.string().nullable().optional(),\n _currentSalary: z.number().nullable().optional(),\n _careerLevel: z.number().nullable().optional(),\n _currentJobFunction: z.string().nullable().optional(),\n _currentIndustry: z.string().nullable().optional(),\n _calculatedIsMember: z.boolean().optional(),\n industries: z\n .array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional(),\n jobFunctions: z\n .array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional()\n })\n\nexport const AdminPersonUpdateSchema = createUpdateSchema(person, {\n email: EmailSchema.optional(),\n addedAt: z.coerce.date().optional(),\n phone: OptionalPhoneSchema\n})\n\nexport const AdminPersonParamsSchema = createSelectSchema(person).pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = createSelectSchema(person).pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = createSelectSchema(person, {\n phone: z.string()\n}).pick({\n phone: true\n})\nexport const AdminPersonByIdNanoSchema = createSelectSchema(person, {\n idNano: z.string()\n}).pick({\n idNano: true\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonParamsSchema\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonParamsSchema\n\nconst FilterSchema = z.object({\n field: z.string(),\n isDynamicColumn: z.boolean(),\n operator: z.enum(PERSON_LIST_OPERATORS),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\nconst GeoSchema = z.object({\n operator: z.string(),\n referenceLat: z.number(),\n referenceLon: z.number(),\n radius: z.number()\n})\nconst CustomQuerySchema = z.object({\n custom: z.string(),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\n// TODO - add type\nconst NestedFilterSchema: z.ZodType<any> = z.lazy(() =>\n z.object({\n and: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional(),\n or: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional()\n })\n)\n\nexport const AdminPersonListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n nameEmail: z.string(),\n clientId: z.string(),\n hasLinkedInUrl: z.boolean(),\n source: z.enum(PersonSources.enumValues),\n location: z.object({\n miles: z.number(),\n lat: z.number(),\n lon: z.number()\n })\n })\n .partial()\n .optional()\n})\n\nexport const AdminPersonListAdvancedQuerySchema = ListQuerySchema.extend({\n sort: z\n .array(\n z.object({\n field: z.string(),\n direction: z.enum(LIST_REQUEST_SORT_DIRECTIONS)\n })\n )\n .optional(),\n filter: z\n .union([FilterSchema, GeoSchema, CustomQuerySchema, NestedFilterSchema])\n .optional()\n})\n\nexport const AdminPersonConnectionsParamsSchema = createSelectSchema(\n person\n).pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = createSelectSchema(\n person\n).pick({\n id: true,\n email: true,\n fullName: true\n})\nexport const AdminPersonConnectionsResultSchema = z.object({\n sourcedPersons: z.array(AdminPersonConnectionsPersonSchema),\n sourcedBy: AdminPersonConnectionsPersonSchema.nullable(),\n bestPersons: z.array(\n z.object({ bestPerson: AdminPersonConnectionsPersonSchema })\n ),\n bestiedBy: z.array(\n z.object({ bestiedBy: AdminPersonConnectionsPersonSchema })\n ),\n referrals: z.array(\n z.object({\n candidacy: z\n .object({ person: AdminPersonConnectionsPersonSchema })\n .nullable(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n })\n ),\n candidacies: z.array(\n z.object({\n referral: z\n .object({ referrer: AdminPersonConnectionsPersonSchema })\n .nullable()\n })\n )\n})\n\n//// types\n\ntype AdminPerson = z.infer<typeof AdminPersonSelectSchema>\n\nexport type AdminPersonExperienceResult = z.infer<\n typeof AdminPersonExperienceSelectSchema\n>\nexport type AdminPersonEducationResult = z.infer<\n typeof AdminPersonEducationSelectSchema\n>\n\n// detail\nexport type AdminPersonParams = z.infer<typeof AdminPersonParamsSchema>\nexport type AdminPersonByEmailParams = z.infer<\n typeof AdminPersonByEmailParamsSchema\n>\nexport type AdminPersonByPhoneParams = z.infer<\n typeof AdminPersonByPhoneParamsSchema\n>\nexport type AdminPersonByIdNanoParams = z.infer<\n typeof AdminPersonByIdNanoSchema\n>\nexport type AdminPersonResult = AdminPerson\n\n// list\nexport type AdminPersonListQuery = z.infer<typeof AdminPersonListQuerySchema>\nexport type AdminPersonListAdvancedQuery = z.infer<\n typeof AdminPersonListAdvancedQuerySchema\n>\nexport type AdminPersonListResult = ListResponse<\n z.infer<typeof AdminPersonSelectSchema>\n>\n\n// create\nexport type AdminPersonCreateInput = z.infer<typeof AdminPersonCreateSchema>\nexport type AdminPersonCreateResult = Pick<AdminPerson, 'id'>\n\n// update\nexport type AdminPersonUpdateParams = z.infer<\n typeof AdminPersonUpdateParamsSchema\n>\nexport type AdminPersonUpdateInput = Partial<AdminPerson>\n\n// delete\nexport type AdminPersonDeleteParams = z.infer<\n typeof AdminPersonDeleteParamsSchema\n>\n\nexport const ResumeParserSchema = AdminPersonSelectSchema.pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n city: true,\n state: true,\n country: true,\n gender: true,\n linkedInUrl: true,\n websiteUrl: true,\n skills: true,\n experiences: true,\n educations: true\n}).extend({\n skills: z.array(z.string()),\n experiences: z.array(\n AdminPersonExperienceSelectSchema.extend({\n jobFunction: z.string().nullable()\n })\n )\n})\n\nexport type AdminPersonResumeParseResult = z.infer<typeof ResumeParserSchema>\n\nexport type AdminPersonConnectionsParams = z.infer<\n typeof AdminPersonConnectionsParamsSchema\n>\nexport type AdminPersonConnectionsPerson = z.infer<\n typeof AdminPersonConnectionsPersonSchema\n>\nexport type AdminPersonConnectionsResult = z.infer<\n typeof AdminPersonConnectionsResultSchema\n>\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/persons/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAamB;AACnB,0CAMuB;AACvB,+BAA0B;AAC1B,kDAI2B;AAE3B,eAAe;AAEf,MAAM,WAAW,GAAG,MAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AAErC,QAAA,gCAAgC,GAAG,IAAA,gCAAkB,EAAC,gBAAS,EAAE;IAC5E,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACpD,WAAW,EAAE,MAAC;SACX,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,mDAAmD,CAAC;CACjE,CAAC,CAAC,IAAI,CAAC;IACN,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEW,QAAA,iCAAiC,GAAG,IAAA,gCAAkB,EACjE,iBAAU,EACV;IACE,SAAS,EAAE,MAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,MAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAC7B,CACF;KACE,IAAI,CAAC;IACJ,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI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CAAC,CACH;CACF,CAAC,CAAA;AAkDW,QAAA,kBAAkB,GAAG,+BAAuB,CAAC,IAAI,CAAC;IAC7D,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC,MAAM,CAAC;IACR,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAC,CAAC,KAAK,CAClB,yCAAiC,CAAC,MAAM,CAAC;QACvC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CACH;CACF,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n campaign,\n client,\n education,\n experience,\n industry,\n jobFunction,\n network,\n person,\n PersonSources,\n professionalEvent,\n skill,\n tag\n} from '../../core'\nimport {\n EmailSchema,\n ListQuerySchema,\n makeEnumFromObj,\n OptionalPhoneSchema,\n type ListResponse\n} from '../../../utils'\nimport { z } from 'zod/v4'\nimport {\n LIST_REQUEST_SORT_DIRECTIONS,\n PERSON_LIST_OPERATORS,\n PROFILE_DATA_FILTER_OPTIONS\n} from '../../../constants'\n\n//// validators\n\nconst emailSchema = z.email().trim().toLowerCase()\n\nexport const AdminPersonEducationSelectSchema = createSelectSchema(education, {\n field: (schema) => schema.describe('Field of study'),\n graduatedAt: z\n .date()\n .nullable()\n .describe('Graduation date, use June 1 if exact date unknown')\n}).pick({\n id: true,\n degree: true,\n field: true,\n school: true,\n graduatedAt: true\n})\n\nexport const AdminPersonExperienceSelectSchema = createSelectSchema(\n experience,\n {\n startDate: z.date().nullable(),\n endDate: z.date().nullable()\n }\n)\n .pick({\n id: true,\n title: true,\n company: true,\n level: true,\n salary: true,\n startDate: true,\n endDate: true,\n isCurrent: true\n })\n .extend({\n jobFunction: z.string().nullable(),\n industry: z.string().nullable()\n })\n\nexport const AdminPersonCreateSchema = createInsertSchema(person)\n .extend({\n email: emailSchema\n })\n .omit({\n idNano: true\n })\nexport const AdminPersonSelectSchema = createSelectSchema(person)\n .partial()\n .extend({\n skills: z\n .array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n tags: z\n .array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n networks: z\n .array(\n createSelectSchema(network).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n professionalEvents: z\n .array(\n createSelectSchema(professionalEvent).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n educations: z.array(AdminPersonEducationSelectSchema).optional(),\n experiences: z.array(AdminPersonExperienceSelectSchema).optional(),\n _referralsCount: z.number().nullable().optional(),\n _referredIndustries: z.array(z.string()).nullable().optional(),\n _referredLocations: z.array(z.string()).nullable().optional(),\n _referredSkills: z.array(z.string()).nullable().optional(),\n _currentTitle: z.string().nullable().optional(),\n _currentEmployer: z.string().nullable().optional(),\n _currentSalary: z.number().nullable().optional(),\n _careerLevel: z.number().nullable().optional(),\n _currentJobFunction: z.string().nullable().optional(),\n _currentIndustry: z.string().nullable().optional(),\n _calculatedIsMember: z.boolean().optional(),\n industries: z\n .array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional(),\n jobFunctions: z\n .array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional()\n })\n\nexport const AdminPersonUpdateSchema = createUpdateSchema(person, {\n email: EmailSchema.optional(),\n addedAt: z.coerce.date().optional(),\n phone: OptionalPhoneSchema\n})\n\nexport const AdminPersonParamsSchema = createSelectSchema(person).pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = createSelectSchema(person).pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = createSelectSchema(person, {\n phone: z.string()\n}).pick({\n phone: true\n})\nexport const AdminPersonByIdNanoSchema = createSelectSchema(person, {\n idNano: z.string()\n}).pick({\n idNano: true\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonParamsSchema\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonParamsSchema\n\nconst FilterSchema = z.object({\n field: z.string(),\n isDynamicColumn: z.boolean(),\n operator: z.enum(PERSON_LIST_OPERATORS),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\nconst GeoSchema = z.object({\n operator: z.string(),\n referenceLat: z.number(),\n referenceLon: z.number(),\n radius: z.number()\n})\nconst CustomQuerySchema = z.object({\n custom: z.string(),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\n// TODO - add type\nconst NestedFilterSchema: z.ZodType<any> = z.lazy(() =>\n z.object({\n and: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional(),\n or: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional()\n })\n)\n\nexport const AdminPersonListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n nameEmail: z.string(),\n clientId: z.string(),\n // used by ops team to find people with missing profile data\n profileData: z.enum(makeEnumFromObj(PROFILE_DATA_FILTER_OPTIONS)),\n source: z.enum(PersonSources.enumValues),\n location: z.object({\n miles: z.number(),\n lat: z.number(),\n lon: z.number()\n })\n })\n .partial()\n .optional()\n})\n\nexport const AdminPersonListAdvancedQuerySchema = ListQuerySchema.extend({\n sort: z\n .array(\n z.object({\n field: z.string(),\n direction: z.enum(LIST_REQUEST_SORT_DIRECTIONS)\n })\n )\n .optional(),\n filter: z\n .union([FilterSchema, GeoSchema, CustomQuerySchema, NestedFilterSchema])\n .optional()\n})\n\nexport const AdminPersonConnectionsParamsSchema = createSelectSchema(\n person\n).pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = createSelectSchema(\n person\n).pick({\n id: true,\n email: true,\n fullName: true\n})\nexport const AdminPersonConnectionsResultSchema = z.object({\n sourcedPersons: z.array(AdminPersonConnectionsPersonSchema),\n sourcedBy: AdminPersonConnectionsPersonSchema.nullable(),\n bestPersons: z.array(\n z.object({ bestPerson: AdminPersonConnectionsPersonSchema })\n ),\n bestiedBy: z.array(\n z.object({ bestiedBy: AdminPersonConnectionsPersonSchema })\n ),\n referrals: z.array(\n z.object({\n candidacy: z\n .object({ person: AdminPersonConnectionsPersonSchema })\n .nullable(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n })\n ),\n candidacies: z.array(\n z.object({\n referral: z\n .object({ referrer: AdminPersonConnectionsPersonSchema })\n .nullable()\n })\n )\n})\n\n//// types\n\ntype AdminPerson = z.infer<typeof AdminPersonSelectSchema>\n\nexport type AdminPersonExperienceResult = z.infer<\n typeof AdminPersonExperienceSelectSchema\n>\nexport type AdminPersonEducationResult = z.infer<\n typeof AdminPersonEducationSelectSchema\n>\n\n// detail\nexport type AdminPersonParams = z.infer<typeof AdminPersonParamsSchema>\nexport type AdminPersonByEmailParams = z.infer<\n typeof AdminPersonByEmailParamsSchema\n>\nexport type AdminPersonByPhoneParams = z.infer<\n typeof AdminPersonByPhoneParamsSchema\n>\nexport type AdminPersonByIdNanoParams = z.infer<\n typeof AdminPersonByIdNanoSchema\n>\nexport type AdminPersonResult = AdminPerson\n\n// list\nexport type AdminPersonListQuery = z.infer<typeof AdminPersonListQuerySchema>\nexport type AdminPersonListAdvancedQuery = z.infer<\n typeof AdminPersonListAdvancedQuerySchema\n>\nexport type AdminPersonListResult = ListResponse<\n z.infer<typeof AdminPersonSelectSchema>\n>\n\n// create\nexport type AdminPersonCreateInput = z.infer<typeof AdminPersonCreateSchema>\nexport type AdminPersonCreateResult = Pick<AdminPerson, 'id'>\n\n// update\nexport type AdminPersonUpdateParams = z.infer<\n typeof AdminPersonUpdateParamsSchema\n>\nexport type AdminPersonUpdateInput = Partial<AdminPerson>\n\n// delete\nexport type AdminPersonDeleteParams = z.infer<\n typeof AdminPersonDeleteParamsSchema\n>\n\nexport const ResumeParserSchema = AdminPersonSelectSchema.pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n city: true,\n state: true,\n country: true,\n gender: true,\n linkedInUrl: true,\n websiteUrl: true,\n skills: true,\n experiences: true,\n educations: true\n}).extend({\n skills: z.array(z.string()),\n experiences: z.array(\n AdminPersonExperienceSelectSchema.extend({\n jobFunction: z.string().nullable()\n })\n )\n})\n\nexport type AdminPersonResumeParseResult = z.infer<typeof ResumeParserSchema>\n\nexport type AdminPersonConnectionsParams = z.infer<\n typeof AdminPersonConnectionsParamsSchema\n>\nexport type AdminPersonConnectionsPerson = z.infer<\n typeof AdminPersonConnectionsPersonSchema\n>\nexport type AdminPersonConnectionsResult = z.infer<\n typeof AdminPersonConnectionsResultSchema\n>\n"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { ListResponse } from '../../../utils';
|
|
3
|
+
export declare const PublicAccountSelectSchema: z.ZodObject<{
|
|
4
|
+
email: z.ZodString;
|
|
5
|
+
idNano: z.ZodString;
|
|
6
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
7
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, {
|
|
10
|
+
out: {};
|
|
11
|
+
in: {};
|
|
12
|
+
}>;
|
|
13
|
+
export declare const PublicAccountUpdateSchema: z.ZodObject<{
|
|
14
|
+
email: z.ZodEmail;
|
|
15
|
+
firstName: z.ZodString;
|
|
16
|
+
lastName: z.ZodString;
|
|
17
|
+
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export declare const PublicAccountReferralSelectSchema: z.ZodObject<{
|
|
20
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
wasHired: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
23
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
hasHired: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
}, {
|
|
33
|
+
out: {};
|
|
34
|
+
in: {};
|
|
35
|
+
}>>;
|
|
36
|
+
candidacy: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
person: z.ZodObject<{
|
|
38
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
39
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
stage: z.ZodString;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
createdAt: z.ZodDate;
|
|
46
|
+
referralType: z.ZodNullable<z.ZodEnum<{
|
|
47
|
+
CLIENT: "CLIENT";
|
|
48
|
+
PERSON: "PERSON";
|
|
49
|
+
CANDIDACY: "CANDIDACY";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export declare const PublicAccountApplicationSelectSchema: z.ZodObject<{
|
|
53
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
}, {
|
|
56
|
+
out: {};
|
|
57
|
+
in: {};
|
|
58
|
+
}>>;
|
|
59
|
+
position: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
}, {
|
|
62
|
+
out: {};
|
|
63
|
+
in: {};
|
|
64
|
+
}>;
|
|
65
|
+
candidacy: {
|
|
66
|
+
stage: z.ZodString;
|
|
67
|
+
};
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type PublicAccountResult = z.infer<typeof PublicAccountSelectSchema>;
|
|
70
|
+
export type PublicAccountUpdateInput = z.infer<typeof PublicAccountUpdateSchema>;
|
|
71
|
+
export type PublicAccountReferralListResult = ListResponse<z.infer<typeof PublicAccountReferralSelectSchema>>;
|
|
72
|
+
export type PublicAccountApplicationListResult = ListResponse<z.infer<typeof PublicAccountApplicationSelectSchema>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicAccountApplicationSelectSchema = exports.PublicAccountReferralSelectSchema = exports.PublicAccountUpdateSchema = exports.PublicAccountSelectSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const v4_1 = require("zod/v4");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.PublicAccountSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
10
|
+
idNano: true,
|
|
11
|
+
firstName: true,
|
|
12
|
+
lastName: true,
|
|
13
|
+
email: true,
|
|
14
|
+
phone: true
|
|
15
|
+
});
|
|
16
|
+
exports.PublicAccountUpdateSchema = v4_1.z.strictObject({
|
|
17
|
+
...(0, drizzle_zod_1.createUpdateSchema)(core_1.person, {
|
|
18
|
+
firstName: utils_1.PersonFirstNameSchema,
|
|
19
|
+
lastName: utils_1.PersonLastNameSchema,
|
|
20
|
+
phone: utils_1.OptionalPhoneSchema,
|
|
21
|
+
email: utils_1.EmailSchema
|
|
22
|
+
}).pick({
|
|
23
|
+
firstName: true,
|
|
24
|
+
lastName: true,
|
|
25
|
+
phone: true,
|
|
26
|
+
email: true
|
|
27
|
+
}).shape
|
|
28
|
+
});
|
|
29
|
+
exports.PublicAccountReferralSelectSchema = v4_1.z.strictObject({
|
|
30
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.referral).pick({
|
|
31
|
+
referralType: true,
|
|
32
|
+
createdAt: true
|
|
33
|
+
}).shape,
|
|
34
|
+
person: v4_1.z
|
|
35
|
+
.strictObject({
|
|
36
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
37
|
+
firstName: true,
|
|
38
|
+
lastName: true
|
|
39
|
+
}).shape,
|
|
40
|
+
wasHired: v4_1.z.boolean().optional()
|
|
41
|
+
})
|
|
42
|
+
.optional(),
|
|
43
|
+
client: v4_1.z
|
|
44
|
+
.strictObject({
|
|
45
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.client).pick({
|
|
46
|
+
name: true
|
|
47
|
+
}).shape,
|
|
48
|
+
hasHired: v4_1.z.boolean().optional()
|
|
49
|
+
})
|
|
50
|
+
.optional(),
|
|
51
|
+
position: v4_1.z
|
|
52
|
+
.strictObject({
|
|
53
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
|
|
54
|
+
name: true
|
|
55
|
+
}).shape,
|
|
56
|
+
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
57
|
+
.pick({
|
|
58
|
+
name: true
|
|
59
|
+
})
|
|
60
|
+
.optional(),
|
|
61
|
+
candidacy: v4_1.z
|
|
62
|
+
.strictObject({
|
|
63
|
+
person: v4_1.z.strictObject({
|
|
64
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
65
|
+
firstName: true,
|
|
66
|
+
lastName: true
|
|
67
|
+
}).shape
|
|
68
|
+
}),
|
|
69
|
+
stage: v4_1.z.string()
|
|
70
|
+
})
|
|
71
|
+
.optional()
|
|
72
|
+
})
|
|
73
|
+
.optional()
|
|
74
|
+
});
|
|
75
|
+
exports.PublicAccountApplicationSelectSchema = v4_1.z.strictObject({
|
|
76
|
+
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
77
|
+
.pick({
|
|
78
|
+
name: true
|
|
79
|
+
})
|
|
80
|
+
.optional(),
|
|
81
|
+
position: (0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
|
|
82
|
+
name: true
|
|
83
|
+
}),
|
|
84
|
+
candidacy: {
|
|
85
|
+
stage: v4_1.z.string()
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/account/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAA+D;AAC/D,+BAA0B;AAC1B,0CAMuB;AAEvB,eAAe;AAEF,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IACvE,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,MAAC,CAAC,YAAY,CAAC;IACtD,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,2BAAmB;QAC1B,KAAK,EAAE,mBAAW;KACnB,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;Q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Q,EAAE,IAAI;iBACf,CAAC,CAAC,KAAK;aACT,CAAC;YACF,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;SAClB,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEW,QAAA,oCAAoC,GAAG,MAAC,CAAC,YAAY,CAAC;IACjE,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;SAC/B,IAAI,CAAC;QACJ,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;QAC1C,IAAI,EAAE,IAAI;KACX,CAAC;IACF,SAAS,EAAE;QACT,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;KAClB;CACF,CAAC,CAAA","sourcesContent":["import { createSelectSchema, createUpdateSchema } from 'drizzle-zod'\nimport { client, person, position, referral } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n ListResponse,\n OptionalPhoneSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nexport const PublicAccountSelectSchema = createSelectSchema(person).pick({\n idNano: true,\n firstName: true,\n lastName: true,\n email: true,\n phone: true\n})\n\nexport const PublicAccountUpdateSchema = z.strictObject({\n ...createUpdateSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema\n }).pick({\n firstName: true,\n lastName: true,\n phone: true,\n email: true\n }).shape\n})\n\nexport const PublicAccountReferralSelectSchema = z.strictObject({\n ...createSelectSchema(referral).pick({\n referralType: true,\n createdAt: true\n }).shape,\n person: z\n .strictObject({\n ...createSelectSchema(person).pick({\n firstName: true,\n lastName: true\n }).shape,\n wasHired: z.boolean().optional()\n })\n .optional(),\n client: z\n .strictObject({\n ...createSelectSchema(client).pick({\n name: true\n }).shape,\n hasHired: z.boolean().optional()\n })\n .optional(),\n position: z\n .strictObject({\n ...createSelectSchema(position).pick({\n name: true\n }).shape,\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .optional(),\n candidacy: z\n .strictObject({\n person: z.strictObject({\n ...createSelectSchema(person).pick({\n firstName: true,\n lastName: true\n }).shape\n }),\n stage: z.string()\n })\n .optional()\n })\n .optional()\n})\n\nexport const PublicAccountApplicationSelectSchema = z.strictObject({\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .optional(),\n position: createSelectSchema(position).pick({\n name: true\n }),\n candidacy: {\n stage: z.string()\n }\n})\n\n//// types\n\nexport type PublicAccountResult = z.infer<typeof PublicAccountSelectSchema>\n\nexport type PublicAccountUpdateInput = z.infer<typeof PublicAccountUpdateSchema>\n\nexport type PublicAccountReferralListResult = ListResponse<\n z.infer<typeof PublicAccountReferralSelectSchema>\n>\n\nexport type PublicAccountApplicationListResult = ListResponse<\n z.infer<typeof PublicAccountApplicationSelectSchema>\n>\n"]}
|