@the-inkwell/shared 0.2.145 → 0.2.147

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.
@@ -427,42 +427,52 @@ export declare const CANDIDACY_STAGES: {
427
427
  readonly PENDING: {
428
428
  readonly name: "Pending";
429
429
  readonly position: 0;
430
+ readonly publicLabel: "Pending";
430
431
  };
431
432
  readonly EVALUATING: {
432
433
  readonly name: "Evaluating";
433
434
  readonly position: 1;
435
+ readonly publicLabel: "In Progress";
434
436
  };
435
437
  readonly SCREENING: {
436
438
  readonly name: "Screening";
437
439
  readonly position: 2;
440
+ readonly publicLabel: "In Progress";
438
441
  };
439
442
  readonly SUBMITTED: {
440
443
  readonly name: "Submitted";
441
444
  readonly position: 3;
445
+ readonly publicLabel: "In Progress";
442
446
  };
443
447
  readonly INTERVIEWING: {
444
448
  readonly name: "Interviewing";
445
449
  readonly position: 4;
450
+ readonly publicLabel: "Interviewing";
446
451
  };
447
452
  readonly ON_HOLD: {
448
453
  readonly name: "On Hold";
449
454
  readonly position: 5;
455
+ readonly publicLabel: "In Progress";
450
456
  };
451
457
  readonly REJECTED: {
452
458
  readonly name: "Rejected";
453
459
  readonly position: 6;
460
+ readonly publicLabel: "Not Selected";
454
461
  };
455
462
  readonly WITHDRAWN: {
456
463
  readonly name: "Withdrawn";
457
464
  readonly position: 7;
465
+ readonly publicLabel: "Withdrew";
458
466
  };
459
467
  readonly OFFERED: {
460
468
  readonly name: "Offered";
461
469
  readonly position: 8;
470
+ readonly publicLabel: "Interviewed";
462
471
  };
463
472
  readonly HIRED: {
464
473
  readonly name: "Hired";
465
474
  readonly position: 9;
475
+ readonly publicLabel: "Hired";
466
476
  };
467
477
  };
468
478
  export declare const CANDIDACY_REJECTORS: {
package/dist/constants.js CHANGED
@@ -115,16 +115,20 @@ exports.CANDIDACY_SOURCES = {
115
115
  INTERNAL: { name: 'Internal', position: 4 }
116
116
  };
117
117
  exports.CANDIDACY_STAGES = {
118
- PENDING: { name: 'Pending', position: 0 },
119
- EVALUATING: { name: 'Evaluating', position: 1 },
120
- SCREENING: { name: 'Screening', position: 2 },
121
- SUBMITTED: { name: 'Submitted', position: 3 },
122
- INTERVIEWING: { name: 'Interviewing', position: 4 },
123
- ON_HOLD: { name: 'On Hold', position: 5 },
124
- REJECTED: { name: 'Rejected', position: 6 },
125
- WITHDRAWN: { name: 'Withdrawn', position: 7 },
126
- OFFERED: { name: 'Offered', position: 8 },
127
- HIRED: { name: 'Hired', position: 9 }
118
+ PENDING: { name: 'Pending', position: 0, publicLabel: 'Pending' },
119
+ EVALUATING: { name: 'Evaluating', position: 1, publicLabel: 'In Progress' },
120
+ SCREENING: { name: 'Screening', position: 2, publicLabel: 'In Progress' },
121
+ SUBMITTED: { name: 'Submitted', position: 3, publicLabel: 'In Progress' },
122
+ INTERVIEWING: {
123
+ name: 'Interviewing',
124
+ position: 4,
125
+ publicLabel: 'Interviewing'
126
+ },
127
+ ON_HOLD: { name: 'On Hold', position: 5, publicLabel: 'In Progress' },
128
+ REJECTED: { name: 'Rejected', position: 6, publicLabel: 'Not Selected' },
129
+ WITHDRAWN: { name: 'Withdrawn', position: 7, publicLabel: 'Withdrew' },
130
+ OFFERED: { name: 'Offered', position: 8, publicLabel: 'Interviewed' },
131
+ HIRED: { name: 'Hired', position: 9, publicLabel: 'Hired' }
128
132
  };
129
133
  exports.CANDIDACY_REJECTORS = {
130
134
  INKWELL: { name: 'Inkwell', position: 0 },
@@ -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,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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_PENDING: { name: 'CANDIDACY_PENDING', position: 3 },\n CANDIDACY_SUBMITTED: { name: 'CANDIDACY_SUBMITTED', position: 4 },\n CANDIDACY_SCREENING: { name: 'CANDIDACY_SCREENING', position: 5 },\n CANDIDACY_INTERVIEWING: { name: 'CANDIDACY_INTERVIEWING', position: 6 },\n CANDIDACY_OFFERED: { name: 'CANDIDACY_OFFERED', position: 7 },\n CANDIDACY_ON_HOLD: { name: 'CANDIDACY_ON_HOLD', position: 8 },\n CANDIDACY_HIRED: { name: 'CANDIDACY_HIRED', position: 9 },\n CANDIDACY_REJECTED: { name: 'CANDIDACY_REJECTED', position: 10 },\n CANDIDACY_WITHDRAWN: { name: 'CANDIDACY_WITHDRAWN', position: 11 },\n LEAD_CREATED: { name: 'LEAD_CREATED', position: 12 },\n LEAD_CONVERTED: { name: 'LEAD_CONVERTED', position: 13 },\n CLIENT_CREATED: { name: 'CLIENT_CREATED', position: 14 },\n MESSAGE_CLICKED: { name: 'MESSAGE_CLICKED', position: 15 },\n MESSAGE_OPENED: { name: 'MESSAGE_OPENED', position: 16 },\n MESSAGE_RECEIVED: { name: 'MESSAGE_RECEIVED', position: 17 },\n MESSAGE_SENT: { name: 'MESSAGE_SENT', position: 18 },\n NOTE_CREATED: { name: 'NOTE_CREATED', position: 19 },\n PERSON_CREATED: { name: 'PERSON_CREATED', position: 20 },\n PERSON_SIGNED_UP: { name: 'PERSON_SIGNED_UP', position: 21 },\n POSITION_CLOSED: { name: 'POSITION_CLOSED', position: 22 },\n POSITION_OPENED: { name: 'POSITION_OPENED', position: 23 },\n REFERRAL_CREATED: { name: 'REFERRAL_CREATED', position: 24 },\n USER_SIGN_IN: { name: 'USER_SIGN_IN', position: 25 },\n USER_UPDATE: { name: 'USER_UPDATE', position: 26 }\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 SCREENING: { name: 'Screening', position: 2 },\n SUBMITTED: { name: 'Submitted', position: 3 },\n INTERVIEWING: { name: 'Interviewing', position: 4 },\n ON_HOLD: { name: 'On Hold', position: 5 },\n REJECTED: { name: 'Rejected', position: 6 },\n WITHDRAWN: { name: 'Withdrawn', position: 7 },\n OFFERED: { name: 'Offered', position: 8 },\n HIRED: { name: 'Hired', position: 9 }\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 LIST_VIEW_MODELS = {\n PERSON: { name: 'Person', position: 0 },\n POSITION: { name: 'Position', position: 1 },\n CANDIDACY: { name: 'Candidacy', position: 2 },\n REFERRAL: { name: 'Referral', position: 3 }\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 BUSINESS: { name: 'Business', position: 1 },\n LAW: { name: 'Law', position: 2 },\n ENGINEERING: { name: 'Engineering', position: 3 },\n EDUCATION: { name: 'Education', position: 4 },\n MEDICINE: { name: 'Medicine', position: 5 },\n ARCHITECTURE: { name: 'Architecture', position: 6 },\n SOCIAL_WORK: { name: 'Social Work', position: 7 },\n HUMANITIES: { name: 'Humanities', position: 8 },\n NATURAL_SCIENCES: { name: 'Natural Sciences', position: 9 },\n SOCIAL_SCIENCES: { name: 'Social Sciences', position: 10 },\n COMPUTER_SCIENCE: { name: 'Computer Science', position: 11 }\n} as const\n\nexport const SETTINGS_OPTION_LISTS = [\n 'certifications',\n 'industries',\n 'position-locations',\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,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,Q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RESH_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_PENDING: { name: 'CANDIDACY_PENDING', position: 3 },\n CANDIDACY_SUBMITTED: { name: 'CANDIDACY_SUBMITTED', position: 4 },\n CANDIDACY_SCREENING: { name: 'CANDIDACY_SCREENING', position: 5 },\n CANDIDACY_INTERVIEWING: { name: 'CANDIDACY_INTERVIEWING', position: 6 },\n CANDIDACY_OFFERED: { name: 'CANDIDACY_OFFERED', position: 7 },\n CANDIDACY_ON_HOLD: { name: 'CANDIDACY_ON_HOLD', position: 8 },\n CANDIDACY_HIRED: { name: 'CANDIDACY_HIRED', position: 9 },\n CANDIDACY_REJECTED: { name: 'CANDIDACY_REJECTED', position: 10 },\n CANDIDACY_WITHDRAWN: { name: 'CANDIDACY_WITHDRAWN', position: 11 },\n LEAD_CREATED: { name: 'LEAD_CREATED', position: 12 },\n LEAD_CONVERTED: { name: 'LEAD_CONVERTED', position: 13 },\n CLIENT_CREATED: { name: 'CLIENT_CREATED', position: 14 },\n MESSAGE_CLICKED: { name: 'MESSAGE_CLICKED', position: 15 },\n MESSAGE_OPENED: { name: 'MESSAGE_OPENED', position: 16 },\n MESSAGE_RECEIVED: { name: 'MESSAGE_RECEIVED', position: 17 },\n MESSAGE_SENT: { name: 'MESSAGE_SENT', position: 18 },\n NOTE_CREATED: { name: 'NOTE_CREATED', position: 19 },\n PERSON_CREATED: { name: 'PERSON_CREATED', position: 20 },\n PERSON_SIGNED_UP: { name: 'PERSON_SIGNED_UP', position: 21 },\n POSITION_CLOSED: { name: 'POSITION_CLOSED', position: 22 },\n POSITION_OPENED: { name: 'POSITION_OPENED', position: 23 },\n REFERRAL_CREATED: { name: 'REFERRAL_CREATED', position: 24 },\n USER_SIGN_IN: { name: 'USER_SIGN_IN', position: 25 },\n USER_UPDATE: { name: 'USER_UPDATE', position: 26 }\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, publicLabel: 'Pending' },\n EVALUATING: { name: 'Evaluating', position: 1, publicLabel: 'In Progress' },\n SCREENING: { name: 'Screening', position: 2, publicLabel: 'In Progress' },\n SUBMITTED: { name: 'Submitted', position: 3, publicLabel: 'In Progress' },\n INTERVIEWING: {\n name: 'Interviewing',\n position: 4,\n publicLabel: 'Interviewing'\n },\n ON_HOLD: { name: 'On Hold', position: 5, publicLabel: 'In Progress' },\n REJECTED: { name: 'Rejected', position: 6, publicLabel: 'Not Selected' },\n WITHDRAWN: { name: 'Withdrawn', position: 7, publicLabel: 'Withdrew' },\n OFFERED: { name: 'Offered', position: 8, publicLabel: 'Interviewed' },\n HIRED: { name: 'Hired', position: 9, publicLabel: 'Hired' }\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 LIST_VIEW_MODELS = {\n PERSON: { name: 'Person', position: 0 },\n POSITION: { name: 'Position', position: 1 },\n CANDIDACY: { name: 'Candidacy', position: 2 },\n REFERRAL: { name: 'Referral', position: 3 }\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 BUSINESS: { name: 'Business', position: 1 },\n LAW: { name: 'Law', position: 2 },\n ENGINEERING: { name: 'Engineering', position: 3 },\n EDUCATION: { name: 'Education', position: 4 },\n MEDICINE: { name: 'Medicine', position: 5 },\n ARCHITECTURE: { name: 'Architecture', position: 6 },\n SOCIAL_WORK: { name: 'Social Work', position: 7 },\n HUMANITIES: { name: 'Humanities', position: 8 },\n NATURAL_SCIENCES: { name: 'Natural Sciences', position: 9 },\n SOCIAL_SCIENCES: { name: 'Social Sciences', position: 10 },\n COMPUTER_SCIENCE: { name: 'Computer Science', position: 11 }\n} as const\n\nexport const SETTINGS_OPTION_LISTS = [\n 'certifications',\n 'industries',\n 'position-locations',\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,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.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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/persons/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAUmB;AACnB,0CAKuB;AACvB,+BAA0B;AAC1B,kDAG2B;AAC3B,kDAAyB;AAGzB,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,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;I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AAC;aACD,QAAQ,EAAE;KACd,CAAC,CACH;IACD,WAAW,EAAE,MAAC,CAAC,KAAK,CAClB,MAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,MAAC;aACR,MAAM,CAAC,EAAE,QAAQ,EAAE,0CAAkC,EAAE,CAAC;aACxD,QAAQ,EAAE;KACd,CAAC,CACH;CACF,CAAC,CAAA;AA+CW,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 person,\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'\nimport { create } from 'domain'\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).extend({\n skills: z.array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n ),\n tags: z.array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n ),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client).pick({\n id: true,\n name: true\n }),\n educations: z.array(AdminPersonEducationSelectSchema),\n experiences: z.array(AdminPersonExperienceSelectSchema),\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.array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n ),\n jobFunctions: z.array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\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 = AdminPersonSelectSchema.pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = AdminPersonSelectSchema.pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = z.object({\n phone: z.string()\n})\nexport const AdminPersonByIdNanoSchema = z.object({\n idNano: z.string()\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonSelectSchema.pick({\n id: true\n})\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonSelectSchema.pick({\n id: true\n})\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 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 = AdminPersonSelectSchema.pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = AdminPersonSelectSchema.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 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,qCAUmB;AACnB,0CAKuB;AACvB,+BAA0B;AAC1B,kDAG2B;AAI3B,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,GA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AM,CAAC,EAAE,MAAM,EAAE,0CAAkC,EAAE,CAAC;aACtD,QAAQ,EAAE;QACb,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;aAC/B,IAAI,CAAC;YACJ,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CACH;IACD,WAAW,EAAE,MAAC,CAAC,KAAK,CAClB,MAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,MAAC;aACR,MAAM,CAAC,EAAE,QAAQ,EAAE,0CAAkC,EAAE,CAAC;aACxD,QAAQ,EAAE;KACd,CAAC,CACH;CACF,CAAC,CAAA;AA+CW,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 person,\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'\nimport { create } from 'domain'\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).extend({\n skills: z.array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n ),\n tags: z.array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n ),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client).pick({\n id: true,\n name: true\n }),\n educations: z.array(AdminPersonEducationSelectSchema),\n experiences: z.array(AdminPersonExperienceSelectSchema),\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.array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n ),\n jobFunctions: z.array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\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 = AdminPersonSelectSchema.pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = AdminPersonSelectSchema.pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = z.object({\n phone: z.string()\n})\nexport const AdminPersonByIdNanoSchema = z.object({\n idNano: z.string()\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonSelectSchema.pick({\n id: true\n})\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonSelectSchema.pick({\n id: true\n})\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 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 = AdminPersonSelectSchema.pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = AdminPersonSelectSchema.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 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,60 @@
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 PublicAccountInfoUpdateSchema: 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: {
21
+ firstName: z.ZodNullable<z.ZodString>;
22
+ lastName: z.ZodNullable<z.ZodString>;
23
+ };
24
+ client: z.ZodOptional<z.ZodObject<{
25
+ name: z.ZodString;
26
+ }, {
27
+ out: {};
28
+ in: {};
29
+ }>>;
30
+ position: z.ZodObject<{
31
+ name: z.ZodString;
32
+ }, {
33
+ out: {};
34
+ in: {};
35
+ }>;
36
+ candidacy: {
37
+ stage: z.ZodString;
38
+ };
39
+ }, z.core.$strict>;
40
+ export declare const PublicAccountApplicationSelectSchema: z.ZodObject<{
41
+ client: z.ZodOptional<z.ZodObject<{
42
+ name: z.ZodString;
43
+ }, {
44
+ out: {};
45
+ in: {};
46
+ }>>;
47
+ position: z.ZodObject<{
48
+ name: z.ZodString;
49
+ }, {
50
+ out: {};
51
+ in: {};
52
+ }>;
53
+ candidacy: {
54
+ stage: z.ZodString;
55
+ };
56
+ }, z.core.$strict>;
57
+ export type PublicAccountResult = z.infer<typeof PublicAccountSelectSchema>;
58
+ export type PublicAccountInfoUpdateInput = z.infer<typeof PublicAccountInfoUpdateSchema>;
59
+ export type PublicAccountReferralResult = ListResponse<z.infer<typeof PublicAccountReferralSelectSchema>>;
60
+ export type PublicAccountApplicationResult = ListResponse<z.infer<typeof PublicAccountApplicationSelectSchema>>;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicAccountApplicationSelectSchema = exports.PublicAccountReferralSelectSchema = exports.PublicAccountInfoUpdateSchema = 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.PublicAccountInfoUpdateSchema = 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
+ person: {
31
+ ...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
32
+ firstName: true,
33
+ lastName: true
34
+ }).shape
35
+ },
36
+ client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
37
+ .pick({
38
+ name: true
39
+ })
40
+ .optional(),
41
+ position: (0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
42
+ name: true
43
+ }),
44
+ candidacy: {
45
+ stage: v4_1.z.string()
46
+ }
47
+ });
48
+ exports.PublicAccountApplicationSelectSchema = v4_1.z.strictObject({
49
+ client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
50
+ .pick({
51
+ name: true
52
+ })
53
+ .optional(),
54
+ position: (0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
55
+ name: true
56
+ }),
57
+ candidacy: {
58
+ stage: v4_1.z.string()
59
+ }
60
+ });
61
+ //# 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,qCAAqD;AACrD,+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,6BAA6B,GAAG,MAAC,CAAC,YAAY,CAAC;IAC1D,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;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,iCAAiC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC9D,MAAM,EAAE;QACN,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;YACjC,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,KAAK;KACT;IACD,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;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 } 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 PublicAccountInfoUpdateSchema = 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 person: {\n ...createSelectSchema(person).pick({\n firstName: true,\n lastName: true\n }).shape\n },\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\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 PublicAccountInfoUpdateInput = z.infer<\n typeof PublicAccountInfoUpdateSchema\n>\n\nexport type PublicAccountReferralResult = ListResponse<\n z.infer<typeof PublicAccountReferralSelectSchema>\n>\n\nexport type PublicAccountApplicationResult = ListResponse<\n z.infer<typeof PublicAccountApplicationSelectSchema>\n>\n"]}
@@ -1,3 +1,4 @@
1
+ export * from './account';
1
2
  export * from './apply';
2
3
  export * from './join';
3
4
  export * from './hire';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account"), exports);
17
18
  __exportStar(require("./apply"), exports);
18
19
  __exportStar(require("./join"), exports);
19
20
  __exportStar(require("./hire"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB","sourcesContent":["export * from './apply'\nexport * from './join'\nexport * from './hire'\nexport * from './positions'\nexport * from './refer'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB","sourcesContent":["export * from './account'\nexport * from './apply'\nexport * from './join'\nexport * from './hire'\nexport * from './positions'\nexport * from './refer'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.145",
3
+ "version": "0.2.147",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",