@the-inkwell/shared 0.1.164 → 0.2.0
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/index.js +2 -1
- package/dist/src/constants.js +276 -0
- package/dist/src/schema/admin/actions/index.js +32 -0
- package/dist/src/schema/admin/campaigns/index.js +68 -0
- package/dist/src/schema/admin/candidacies/index.js +83 -0
- package/dist/src/schema/admin/clients/index.js +30 -0
- package/dist/src/schema/admin/educations/index.js +23 -0
- package/dist/src/schema/admin/experiences/index.js +37 -0
- package/dist/src/schema/admin/files/index.js +7 -0
- package/dist/src/{types/models → schema}/admin/index.js +18 -1
- package/dist/src/schema/admin/jobFunctions/index.js +32 -0
- package/dist/src/schema/admin/listViews/index.js +22 -0
- package/dist/src/schema/admin/locations/index.js +16 -0
- package/dist/src/schema/admin/messages/index.js +51 -0
- package/dist/src/schema/admin/notes/index.js +27 -0
- package/dist/src/schema/admin/partners/index.js +25 -0
- package/dist/src/schema/admin/persons/index.js +194 -0
- package/dist/src/schema/admin/personsToBestPersons/index.js +18 -0
- package/dist/src/schema/admin/personsToSkills/index.js +18 -0
- package/dist/src/schema/admin/personsToTags/index.js +18 -0
- package/dist/src/schema/admin/positions/index.js +58 -0
- package/dist/src/schema/admin/positionsToSkills/index.js +18 -0
- package/dist/src/schema/admin/positionsToTags/index.js +18 -0
- package/dist/src/schema/admin/referrals/index.js +64 -0
- package/dist/src/schema/admin/referralsToMessages/index.js +55 -0
- package/dist/src/schema/admin/senders/index.js +16 -0
- package/dist/src/schema/admin/sendgrid/index.js +10 -0
- package/dist/src/schema/admin/settings/index.js +21 -0
- package/dist/src/schema/admin/skills/index.js +32 -0
- package/dist/src/schema/admin/tags/index.js +29 -0
- package/dist/src/schema/admin/websiteLandingPages/index.js +16 -0
- package/dist/src/schema/admin/websiteStaticPages/index.js +16 -0
- package/dist/src/schema/auth/index.js +11 -0
- package/dist/src/schema/core.js +1469 -0
- package/dist/src/{types/models → schema}/index.js +1 -1
- package/dist/src/utils.js +16 -0
- package/index.ts +2 -1
- package/package.json +9 -2
- package/src/constants.ts +299 -0
- package/src/schema/admin/actions/index.ts +65 -0
- package/src/schema/admin/campaigns/index.ts +111 -0
- package/src/schema/admin/candidacies/index.ts +138 -0
- package/src/schema/admin/clients/index.ts +65 -0
- package/src/schema/admin/dashboard/index.ts +10 -0
- package/src/schema/admin/educations/index.ts +71 -0
- package/src/schema/admin/experiences/index.ts +87 -0
- package/src/schema/admin/files/index.ts +10 -0
- package/src/schema/admin/index.ts +29 -0
- package/src/schema/admin/jobFunctions/index.ts +79 -0
- package/src/schema/admin/listViews/index.ts +58 -0
- package/src/schema/admin/locations/index.ts +42 -0
- package/src/schema/admin/messages/index.ts +88 -0
- package/src/schema/admin/notes/index.ts +56 -0
- package/src/schema/admin/partners/index.ts +60 -0
- package/src/schema/admin/persons/index.ts +294 -0
- package/src/schema/admin/personsToBestPersons/index.ts +67 -0
- package/src/schema/admin/personsToSkills/index.ts +61 -0
- package/src/schema/admin/personsToTags/index.ts +61 -0
- package/src/schema/admin/positions/index.ts +97 -0
- package/src/schema/admin/positionsToSkills/index.ts +64 -0
- package/src/schema/admin/positionsToTags/index.ts +61 -0
- package/src/schema/admin/referrals/index.ts +100 -0
- package/src/schema/admin/referralsToMessages/index.ts +121 -0
- package/src/schema/admin/senders/index.ts +50 -0
- package/src/schema/admin/sendgrid/index.ts +16 -0
- package/src/schema/admin/settings/index.ts +34 -0
- package/src/schema/admin/skills/index.ts +64 -0
- package/src/schema/admin/tags/index.ts +56 -0
- package/src/schema/admin/websiteLandingPages/index.ts +69 -0
- package/src/schema/admin/websiteStaticPages/index.ts +67 -0
- package/src/schema/auth/index.ts +14 -0
- package/src/schema/core.ts +1906 -0
- package/src/{types/models → schema}/index.ts +1 -1
- package/src/utils.ts +41 -0
- package/README.md +0 -9
- package/dist/src/constants/enums.js +0 -209
- package/dist/src/constants/index.js +0 -17
- package/dist/src/types/_schema/Action.js +0 -4
- package/dist/src/types/_schema/ActionNames.js +0 -4
- package/dist/src/types/_schema/Actions.js +0 -4
- package/dist/src/types/_schema/Admin.js +0 -4
- package/dist/src/types/_schema/Admins.js +0 -4
- package/dist/src/types/_schema/Campaign.js +0 -4
- package/dist/src/types/_schema/CampaignStatuses.js +0 -4
- package/dist/src/types/_schema/CampaignToPosition.js +0 -4
- package/dist/src/types/_schema/Campaigns.js +0 -4
- package/dist/src/types/_schema/CampaignsToPositions.js +0 -4
- package/dist/src/types/_schema/Candidacies.js +0 -4
- package/dist/src/types/_schema/Candidacy.js +0 -4
- package/dist/src/types/_schema/CandidacyFeedback.js +0 -4
- package/dist/src/types/_schema/CandidacyRatingCategories.js +0 -4
- package/dist/src/types/_schema/CandidacyRatingReasons.js +0 -4
- package/dist/src/types/_schema/CandidacyRatingToTag.js +0 -4
- package/dist/src/types/_schema/CandidacyRatings.js +0 -4
- package/dist/src/types/_schema/CandidacyRatingsToTags.js +0 -4
- package/dist/src/types/_schema/CandidacySources.js +0 -4
- package/dist/src/types/_schema/CandidacyStages.js +0 -4
- package/dist/src/types/_schema/CandidacyStatuses.js +0 -4
- package/dist/src/types/_schema/Certifications.js +0 -4
- package/dist/src/types/_schema/Client.js +0 -4
- package/dist/src/types/_schema/ClientStages.js +0 -4
- package/dist/src/types/_schema/ClientStatuses.js +0 -4
- package/dist/src/types/_schema/Clients.js +0 -4
- package/dist/src/types/_schema/Clubs.js +0 -4
- package/dist/src/types/_schema/Contract.js +0 -4
- package/dist/src/types/_schema/Contracts.js +0 -4
- package/dist/src/types/_schema/Conversation.js +0 -4
- package/dist/src/types/_schema/Conversations.js +0 -4
- package/dist/src/types/_schema/EducationDegrees.js +0 -4
- package/dist/src/types/_schema/EducationFields.js +0 -4
- package/dist/src/types/_schema/Educations.js +0 -4
- package/dist/src/types/_schema/EnrichmentSources.js +0 -4
- package/dist/src/types/_schema/Enrichments.js +0 -4
- package/dist/src/types/_schema/Experiences.js +0 -4
- package/dist/src/types/_schema/Genders.js +0 -4
- package/dist/src/types/_schema/Industries.js +0 -4
- package/dist/src/types/_schema/JobFunctions.js +0 -4
- package/dist/src/types/_schema/JobLevels.js +0 -4
- package/dist/src/types/_schema/Jwt.js +0 -4
- package/dist/src/types/_schema/Jwts.js +0 -4
- package/dist/src/types/_schema/ListView.js +0 -4
- package/dist/src/types/_schema/ListViewModels.js +0 -4
- package/dist/src/types/_schema/ListViews.js +0 -4
- package/dist/src/types/_schema/Message.js +0 -4
- package/dist/src/types/_schema/MessageChannels.js +0 -4
- package/dist/src/types/_schema/MessageTemplate.js +0 -4
- package/dist/src/types/_schema/MessageTemplates.js +0 -4
- package/dist/src/types/_schema/Messages.js +0 -4
- package/dist/src/types/_schema/Networks.js +0 -4
- package/dist/src/types/_schema/Note.js +0 -4
- package/dist/src/types/_schema/Notes.js +0 -4
- package/dist/src/types/_schema/Otp.js +0 -4
- package/dist/src/types/_schema/Otps.js +0 -4
- package/dist/src/types/_schema/Partners.js +0 -4
- package/dist/src/types/_schema/Person.js +0 -4
- package/dist/src/types/_schema/PersonCareerLevels.js +0 -4
- package/dist/src/types/_schema/PersonClub.js +0 -4
- package/dist/src/types/_schema/PersonClubs.js +0 -4
- package/dist/src/types/_schema/PersonDegrees.js +0 -4
- package/dist/src/types/_schema/PersonEnrichment.js +0 -4
- package/dist/src/types/_schema/PersonEnrichments.js +0 -4
- package/dist/src/types/_schema/PersonGenders.js +0 -4
- package/dist/src/types/_schema/PersonNetwork.js +0 -4
- package/dist/src/types/_schema/PersonNetworks.js +0 -4
- package/dist/src/types/_schema/PersonSkill.js +0 -4
- package/dist/src/types/_schema/PersonSkills.js +0 -4
- package/dist/src/types/_schema/PersonSources.js +0 -4
- package/dist/src/types/_schema/PersonToBestPerson.js +0 -4
- package/dist/src/types/_schema/PersonToPersonClub.js +0 -4
- package/dist/src/types/_schema/PersonToPersonNetwork.js +0 -4
- package/dist/src/types/_schema/PersonToPersonSkill.js +0 -4
- package/dist/src/types/_schema/PersonToTag.js +0 -4
- package/dist/src/types/_schema/Persons.js +0 -4
- package/dist/src/types/_schema/PersonsToBestPersons.js +0 -4
- package/dist/src/types/_schema/PersonsToCertifications.js +0 -4
- package/dist/src/types/_schema/PersonsToClubs.js +0 -4
- package/dist/src/types/_schema/PersonsToIndustries.js +0 -4
- package/dist/src/types/_schema/PersonsToNetworks.js +0 -4
- package/dist/src/types/_schema/PersonsToPersonClubs.js +0 -4
- package/dist/src/types/_schema/PersonsToPersonNetworks.js +0 -4
- package/dist/src/types/_schema/PersonsToPersonSkills.js +0 -4
- package/dist/src/types/_schema/PersonsToSkills.js +0 -4
- package/dist/src/types/_schema/PersonsToTags.js +0 -4
- package/dist/src/types/_schema/Position.js +0 -4
- package/dist/src/types/_schema/PositionRatingCategories.js +0 -4
- package/dist/src/types/_schema/PositionRatings.js +0 -4
- package/dist/src/types/_schema/PositionStages.js +0 -4
- package/dist/src/types/_schema/PositionStatuses.js +0 -4
- package/dist/src/types/_schema/Positions.js +0 -4
- package/dist/src/types/_schema/PositionsToIndustries.js +0 -4
- package/dist/src/types/_schema/PositionsToPersonSkills.js +0 -4
- package/dist/src/types/_schema/PositionsToSkills.js +0 -4
- package/dist/src/types/_schema/PositionsToTags.js +0 -4
- package/dist/src/types/_schema/PublicSchema.js +0 -4
- package/dist/src/types/_schema/Referral.js +0 -4
- package/dist/src/types/_schema/ReferralPayout.js +0 -4
- package/dist/src/types/_schema/ReferralPayouts.js +0 -4
- package/dist/src/types/_schema/ReferralSources.js +0 -4
- package/dist/src/types/_schema/ReferralToIntroMessage.js +0 -4
- package/dist/src/types/_schema/Referrals.js +0 -4
- package/dist/src/types/_schema/ReferralsToIntroMessages.js +0 -4
- package/dist/src/types/_schema/ReferralsToMessages.js +0 -4
- package/dist/src/types/_schema/Sender.js +0 -4
- package/dist/src/types/_schema/Senders.js +0 -4
- package/dist/src/types/_schema/Skills.js +0 -4
- package/dist/src/types/_schema/Tag.js +0 -4
- package/dist/src/types/_schema/Tags.js +0 -4
- package/dist/src/types/_schema/WebsiteBlock.js +0 -4
- package/dist/src/types/_schema/WebsiteBlocks.js +0 -4
- package/dist/src/types/_schema/WebsiteLandingPage.js +0 -4
- package/dist/src/types/_schema/WebsiteLandingPages.js +0 -4
- package/dist/src/types/_schema/WebsiteStaticPage.js +0 -4
- package/dist/src/types/_schema/WebsiteStaticPages.js +0 -4
- package/dist/src/types/admin/index.js +0 -19
- package/dist/src/types/admin/persons/index.js +0 -2
- package/dist/src/types/admin/website/index.js +0 -2
- package/dist/src/types/auth/index.js +0 -2
- package/dist/src/types/db.js +0 -6
- package/dist/src/types/http/admin/candidacies/index.js +0 -2
- package/dist/src/types/http/admin/index.js +0 -19
- package/dist/src/types/http/admin/persons/index.js +0 -2
- package/dist/src/types/http/admin/website/index.js +0 -2
- package/dist/src/types/http/auth/index.js +0 -2
- package/dist/src/types/http/index.js +0 -19
- package/dist/src/types/http/utils/index.js +0 -2
- package/dist/src/types/index.js +0 -18
- package/dist/src/types/models/admin/campaigns/index.js +0 -2
- package/dist/src/types/models/admin/candidacies/index.js +0 -2
- package/dist/src/types/models/admin/clients/index.js +0 -2
- package/dist/src/types/models/admin/conversations/index.js +0 -2
- package/dist/src/types/models/admin/listViews/index.js +0 -2
- package/dist/src/types/models/admin/locations/index.js +0 -2
- package/dist/src/types/models/admin/messages/index.js +0 -2
- package/dist/src/types/models/admin/partners/index.js +0 -2
- package/dist/src/types/models/admin/persons/index.js +0 -2
- package/dist/src/types/models/admin/positions/index.js +0 -23
- package/dist/src/types/models/admin/referrals/index.js +0 -2
- package/dist/src/types/models/admin/settings/index.js +0 -2
- package/dist/src/types/models/admin/website/_shared.js +0 -2
- package/dist/src/types/models/admin/website/home.js +0 -2
- package/dist/src/types/models/admin/website/index.js +0 -18
- package/dist/src/types/models/admin/website/shared.js +0 -2
- package/dist/src/types/models/auth/index.js +0 -2
- package/dist/src/types/schemas/Database.js +0 -4
- package/dist/src/types/schemas/index.js +0 -23
- package/dist/src/types/schemas/public/Action.js +0 -4
- package/dist/src/types/schemas/public/ActionNames.js +0 -4
- package/dist/src/types/schemas/public/Admin.js +0 -4
- package/dist/src/types/schemas/public/Campaign.js +0 -4
- package/dist/src/types/schemas/public/CampaignStatuses.js +0 -4
- package/dist/src/types/schemas/public/CampaignToPosition.js +0 -4
- package/dist/src/types/schemas/public/Candidacy.js +0 -4
- package/dist/src/types/schemas/public/CandidacyFeedback.js +0 -4
- package/dist/src/types/schemas/public/CandidacyRatingToTag.js +0 -4
- package/dist/src/types/schemas/public/CandidacySources.js +0 -4
- package/dist/src/types/schemas/public/CandidacyStatuses.js +0 -4
- package/dist/src/types/schemas/public/Client.js +0 -4
- package/dist/src/types/schemas/public/ClientStatuses.js +0 -4
- package/dist/src/types/schemas/public/Contract.js +0 -4
- package/dist/src/types/schemas/public/Conversation.js +0 -4
- package/dist/src/types/schemas/public/EnrichmentSources.js +0 -4
- package/dist/src/types/schemas/public/Jwt.js +0 -4
- package/dist/src/types/schemas/public/ListView.js +0 -4
- package/dist/src/types/schemas/public/ListViewModels.js +0 -4
- package/dist/src/types/schemas/public/Message.js +0 -4
- package/dist/src/types/schemas/public/MessageChannels.js +0 -4
- package/dist/src/types/schemas/public/MessageSender.js +0 -4
- package/dist/src/types/schemas/public/MessageTemplate.js +0 -4
- package/dist/src/types/schemas/public/Note.js +0 -4
- package/dist/src/types/schemas/public/Otp.js +0 -4
- package/dist/src/types/schemas/public/Person.js +0 -4
- package/dist/src/types/schemas/public/PersonCareerLevels.js +0 -4
- package/dist/src/types/schemas/public/PersonClub.js +0 -4
- package/dist/src/types/schemas/public/PersonDegrees.js +0 -4
- package/dist/src/types/schemas/public/PersonEnrichment.js +0 -4
- package/dist/src/types/schemas/public/PersonGenders.js +0 -4
- package/dist/src/types/schemas/public/PersonNetwork.js +0 -4
- package/dist/src/types/schemas/public/PersonSkill.js +0 -4
- package/dist/src/types/schemas/public/PersonSources.js +0 -4
- package/dist/src/types/schemas/public/PersonToBestPerson.js +0 -4
- package/dist/src/types/schemas/public/PersonToPersonClub.js +0 -4
- package/dist/src/types/schemas/public/PersonToPersonNetwork.js +0 -4
- package/dist/src/types/schemas/public/PersonToPersonSkill.js +0 -4
- package/dist/src/types/schemas/public/PersonToTag.js +0 -4
- package/dist/src/types/schemas/public/Position.js +0 -4
- package/dist/src/types/schemas/public/PositionStatuses.js +0 -4
- package/dist/src/types/schemas/public/PrismaMigrations.js +0 -4
- package/dist/src/types/schemas/public/PublicSchema.js +0 -4
- package/dist/src/types/schemas/public/Referral.js +0 -4
- package/dist/src/types/schemas/public/ReferralPayout.js +0 -4
- package/dist/src/types/schemas/public/ReferralSources.js +0 -4
- package/dist/src/types/schemas/public/ReferralToIntroMessage.js +0 -4
- package/dist/src/types/schemas/public/Sender.js +0 -4
- package/dist/src/types/schemas/public/Tag.js +0 -4
- package/dist/src/types/schemas/public/WebsiteBlock.js +0 -4
- package/dist/src/types/schemas/public/WebsiteLandingPage.js +0 -4
- package/dist/src/types/schemas/public/WebsiteStaticPage.js +0 -4
- package/dist/src/types/shared/index.js +0 -2
- package/dist/src/types/utils/index.js +0 -2
- package/dist/types/admin/index.js +0 -17
- package/dist/types/admin/website/index.js +0 -2
- package/dist/types/index.js +0 -17
- package/src/constants/enums.ts +0 -251
- package/src/constants/index.ts +0 -1
- package/src/types/_schema/ActionNames.ts +0 -11
- package/src/types/_schema/Actions.ts +0 -104
- package/src/types/_schema/Admins.ts +0 -49
- package/src/types/_schema/CampaignStatuses.ts +0 -10
- package/src/types/_schema/Campaigns.ts +0 -76
- package/src/types/_schema/CampaignsToPositions.ts +0 -33
- package/src/types/_schema/Candidacies.ts +0 -77
- package/src/types/_schema/CandidacyFeedback.ts +0 -55
- package/src/types/_schema/CandidacyRatingCategories.ts +0 -12
- package/src/types/_schema/CandidacyRatings.ts +0 -42
- package/src/types/_schema/CandidacySources.ts +0 -11
- package/src/types/_schema/CandidacyStages.ts +0 -14
- package/src/types/_schema/CandidacyStatuses.ts +0 -9
- package/src/types/_schema/Certifications.ts +0 -59
- package/src/types/_schema/ClientStages.ts +0 -12
- package/src/types/_schema/ClientStatuses.ts +0 -9
- package/src/types/_schema/Clients.ts +0 -69
- package/src/types/_schema/Contracts.ts +0 -68
- package/src/types/_schema/EducationDegrees.ts +0 -12
- package/src/types/_schema/EducationFields.ts +0 -18
- package/src/types/_schema/Educations.ts +0 -55
- package/src/types/_schema/EnrichmentSources.ts +0 -8
- package/src/types/_schema/Enrichments.ts +0 -68
- package/src/types/_schema/Experiences.ts +0 -87
- package/src/types/_schema/Genders.ts +0 -11
- package/src/types/_schema/Industries.ts +0 -53
- package/src/types/_schema/JobFunctions.ts +0 -53
- package/src/types/_schema/JobLevels.ts +0 -13
- package/src/types/_schema/Jwts.ts +0 -61
- package/src/types/_schema/ListViewModels.ts +0 -11
- package/src/types/_schema/ListViews.ts +0 -74
- package/src/types/_schema/MessageChannels.ts +0 -9
- package/src/types/_schema/MessageTemplates.ts +0 -53
- package/src/types/_schema/Messages.ts +0 -109
- package/src/types/_schema/Networks.ts +0 -59
- package/src/types/_schema/Notes.ts +0 -76
- package/src/types/_schema/Otps.ts +0 -67
- package/src/types/_schema/Partners.ts +0 -65
- package/src/types/_schema/PersonSources.ts +0 -11
- package/src/types/_schema/Persons.ts +0 -237
- package/src/types/_schema/PersonsToBestPersons.ts +0 -32
- package/src/types/_schema/PersonsToCertifications.ts +0 -26
- package/src/types/_schema/PersonsToNetworks.ts +0 -33
- package/src/types/_schema/PersonsToSkills.ts +0 -33
- package/src/types/_schema/PersonsToTags.ts +0 -33
- package/src/types/_schema/PositionRatingCategories.ts +0 -9
- package/src/types/_schema/PositionRatings.ts +0 -42
- package/src/types/_schema/PositionStages.ts +0 -12
- package/src/types/_schema/PositionStatuses.ts +0 -9
- package/src/types/_schema/Positions.ts +0 -119
- package/src/types/_schema/PositionsToIndustries.ts +0 -33
- package/src/types/_schema/PositionsToSkills.ts +0 -33
- package/src/types/_schema/PositionsToTags.ts +0 -33
- package/src/types/_schema/ReferralPayouts.ts +0 -29
- package/src/types/_schema/ReferralSources.ts +0 -11
- package/src/types/_schema/Referrals.ts +0 -83
- package/src/types/_schema/ReferralsToMessages.ts +0 -40
- package/src/types/_schema/Senders.ts +0 -65
- package/src/types/_schema/Skills.ts +0 -53
- package/src/types/_schema/Tags.ts +0 -53
- package/src/types/_schema/WebsiteBlocks.ts +0 -45
- package/src/types/_schema/WebsiteLandingPages.ts +0 -47
- package/src/types/_schema/WebsiteStaticPages.ts +0 -53
- package/src/types/index.ts +0 -2
- package/src/types/models/admin/campaigns/index.ts +0 -28
- package/src/types/models/admin/candidacies/index.ts +0 -69
- package/src/types/models/admin/clients/index.ts +0 -49
- package/src/types/models/admin/index.ts +0 -12
- package/src/types/models/admin/listViews/index.ts +0 -48
- package/src/types/models/admin/locations/index.ts +0 -28
- package/src/types/models/admin/messages/index.ts +0 -14
- package/src/types/models/admin/partners/index.ts +0 -36
- package/src/types/models/admin/persons/index.ts +0 -90
- package/src/types/models/admin/positions/index.ts +0 -72
- package/src/types/models/admin/referrals/index.ts +0 -67
- package/src/types/models/admin/settings/index.ts +0 -24
- package/src/types/models/admin/website/home.ts +0 -42
- package/src/types/models/admin/website/index.ts +0 -2
- package/src/types/models/admin/website/shared.ts +0 -40
- package/src/types/models/auth/index.ts +0 -6
- package/src/types/utils/index.ts +0 -15
- /package/dist/src/{types/admin/candidacies → schema/admin/dashboard}/index.js +0 -0
package/dist/index.js
CHANGED
|
@@ -14,5 +14,6 @@ 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("./src/types"), exports);
|
|
18
17
|
__exportStar(require("./src/constants"), exports);
|
|
18
|
+
__exportStar(require("./src/schema"), exports);
|
|
19
|
+
__exportStar(require("./src/utils"), exports);
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MESSAGE_TEMPLATES = exports.LIST_REQUEST_SORT_DIRECTIONS = exports.LIST_REQUEST_LIMITS = exports.PERSON_LIST_OPERATORS = exports.SETTINGS_OPTION_LISTS = exports.EDUCATION_FIELDS = exports.JOB_LEVELS = exports.ENRICHMENT_SOURCES = exports.EMPLOYMENT_TYPES = exports.MESSAGE_CHANNELS = exports.PERSON_SOURCES = exports.POSITION_CLOSED_REASONS = exports.EMPLOYMENT_LOCATION_TYPES = exports.LIST_VIEW_MODELS = exports.COUNTRIES = exports.REFERRAL_SOURCES = 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
|
+
exports.ACCESS_TOKEN_COOKIE_NAME = 'accesstoken';
|
|
5
|
+
exports.REFRESH_TOKEN_COOKIE_NAME = 'refreshtoken';
|
|
6
|
+
exports.DEFAULT_UUID = '00000000-0000-0000-0000-000000000000';
|
|
7
|
+
exports.ACTIONS = {
|
|
8
|
+
CAMPAIGN_SENT: { name: 'CAMPAIGN_SENT', position: 0 },
|
|
9
|
+
CANDIDACY_CREATED: { name: 'CANDIDACY_CREATED', position: 1 },
|
|
10
|
+
CANDIDACY_SUBMITTED: { name: 'CANDIDACY_SUBMITTED', position: 2 },
|
|
11
|
+
CANDIDACY_SCREENING: { name: 'CANDIDACY_SCREENING', position: 3 },
|
|
12
|
+
CANDIDACY_INTERVIEWING: { name: 'CANDIDACY_INTERVIEWING', position: 4 },
|
|
13
|
+
CANDIDACY_OFFERED: { name: 'CANDIDACY_OFFERED', position: 5 },
|
|
14
|
+
CANDIDACY_ON_HOLD: { name: 'CANDIDACY_ON_HOLD', position: 6 },
|
|
15
|
+
CANDIDACY_HIRED: { name: 'CANDIDACY_HIRED', position: 7 },
|
|
16
|
+
CANDIDACY_REJECTED: { name: 'CANDIDACY_REJECTED', position: 8 },
|
|
17
|
+
CANDIDACY_WITHDRAWN: { name: 'CANDIDACY_WITHDRAWN', position: 9 },
|
|
18
|
+
CLIENT_CREATED: { name: 'CLIENT_CREATED', position: 10 },
|
|
19
|
+
MESSAGE_CLICKED: { name: 'MESSAGE_CLICKED', position: 11 },
|
|
20
|
+
MESSAGE_OPENED: { name: 'MESSAGE_OPENED', position: 12 },
|
|
21
|
+
MESSAGE_RECEIVED: { name: 'MESSAGE_RECEIVED', position: 13 },
|
|
22
|
+
MESSAGE_SENT: { name: 'MESSAGE_SENT', position: 14 },
|
|
23
|
+
NOTE_CREATED: { name: 'NOTE_CREATED', position: 15 },
|
|
24
|
+
PERSON_CREATED: { name: 'PERSON_CREATED', position: 16 },
|
|
25
|
+
POSITION_CLOSED: { name: 'POSITION_CLOSED', position: 17 },
|
|
26
|
+
POSITION_OPENED: { name: 'POSITION_OPENED', position: 18 },
|
|
27
|
+
REFERRAL_CREATED: { name: 'REFERRAL_CREATED', position: 19 },
|
|
28
|
+
USER_SIGN_IN: { name: 'USER_SIGN_IN', position: 20 },
|
|
29
|
+
USER_UPDATE: { name: 'USER_UPDATE', position: 21 }
|
|
30
|
+
};
|
|
31
|
+
exports.STATES = {
|
|
32
|
+
AL: { name: 'Alabama', position: 0 },
|
|
33
|
+
AK: { name: 'Alaska', position: 1 },
|
|
34
|
+
AS: { name: 'American Samoa', position: 2 },
|
|
35
|
+
AZ: { name: 'Arizona', position: 3 },
|
|
36
|
+
AR: { name: 'Arkansas', position: 4 },
|
|
37
|
+
CA: { name: 'California', position: 5 },
|
|
38
|
+
CO: { name: 'Colorado', position: 6 },
|
|
39
|
+
CT: { name: 'Connecticut', position: 7 },
|
|
40
|
+
DE: { name: 'Delaware', position: 8 },
|
|
41
|
+
DC: { name: 'District Of Columbia', position: 9 },
|
|
42
|
+
FM: { name: 'Federated States Of Micronesia', position: 10 },
|
|
43
|
+
FL: { name: 'Florida', position: 11 },
|
|
44
|
+
GA: { name: 'Georgia', position: 12 },
|
|
45
|
+
GU: { name: 'Guam', position: 13 },
|
|
46
|
+
HI: { name: 'Hawaii', position: 14 },
|
|
47
|
+
ID: { name: 'Idaho', position: 15 },
|
|
48
|
+
IL: { name: 'Illinois', position: 16 },
|
|
49
|
+
IN: { name: 'Indiana', position: 17 },
|
|
50
|
+
IA: { name: 'Iowa', position: 18 },
|
|
51
|
+
KS: { name: 'Kansas', position: 19 },
|
|
52
|
+
KY: { name: 'Kentucky', position: 20 },
|
|
53
|
+
LA: { name: 'Louisiana', position: 21 },
|
|
54
|
+
ME: { name: 'Maine', position: 22 },
|
|
55
|
+
MH: { name: 'Marshall Islands', position: 23 },
|
|
56
|
+
MD: { name: 'Maryland', position: 24 },
|
|
57
|
+
MA: { name: 'Massachusetts', position: 25 },
|
|
58
|
+
MI: { name: 'Michigan', position: 26 },
|
|
59
|
+
MN: { name: 'Minnesota', position: 27 },
|
|
60
|
+
MS: { name: 'Mississippi', position: 28 },
|
|
61
|
+
MO: { name: 'Missouri', position: 29 },
|
|
62
|
+
MT: { name: 'Montana', position: 30 },
|
|
63
|
+
NE: { name: 'Nebraska', position: 31 },
|
|
64
|
+
NV: { name: 'Nevada', position: 32 },
|
|
65
|
+
NH: { name: 'New Hampshire', position: 33 },
|
|
66
|
+
NJ: { name: 'New Jersey', position: 34 },
|
|
67
|
+
NM: { name: 'New Mexico', position: 35 },
|
|
68
|
+
NY: { name: 'New York', position: 36 },
|
|
69
|
+
NC: { name: 'North Carolina', position: 37 },
|
|
70
|
+
ND: { name: 'North Dakota', position: 38 },
|
|
71
|
+
MP: { name: 'Northern Mariana Islands', position: 39 },
|
|
72
|
+
OH: { name: 'Ohio', position: 40 },
|
|
73
|
+
OK: { name: 'Oklahoma', position: 41 },
|
|
74
|
+
OR: { name: 'Oregon', position: 42 },
|
|
75
|
+
PW: { name: 'Palau', position: 43 },
|
|
76
|
+
PA: { name: 'Pennsylvania', position: 44 },
|
|
77
|
+
PR: { name: 'Puerto Rico', position: 45 },
|
|
78
|
+
RI: { name: 'Rhode Island', position: 46 },
|
|
79
|
+
SC: { name: 'South Carolina', position: 47 },
|
|
80
|
+
SD: { name: 'South Dakota', position: 48 },
|
|
81
|
+
TN: { name: 'Tennessee', position: 49 },
|
|
82
|
+
TX: { name: 'Texas', position: 50 },
|
|
83
|
+
UT: { name: 'Utah', position: 51 },
|
|
84
|
+
VT: { name: 'Vermont', position: 52 },
|
|
85
|
+
VI: { name: 'Virgin Islands', position: 53 },
|
|
86
|
+
VA: { name: 'Virginia', position: 54 },
|
|
87
|
+
WA: { name: 'Washington', position: 55 },
|
|
88
|
+
WV: { name: 'West Virginia', position: 56 },
|
|
89
|
+
WI: { name: 'Wisconsin', position: 57 },
|
|
90
|
+
WY: { name: 'Wyoming', position: 58 },
|
|
91
|
+
AB: { name: 'Alberta', position: 59 },
|
|
92
|
+
BC: { name: 'British Columbia', position: 60 },
|
|
93
|
+
MB: { name: 'Manitoba', position: 61 },
|
|
94
|
+
NB: { name: 'New Brunswick', position: 62 },
|
|
95
|
+
NL: { name: 'Newfoundland and Labrador', position: 63 },
|
|
96
|
+
NS: { name: 'Nova Scotia', position: 64 },
|
|
97
|
+
NT: { name: 'Northwest Territories', position: 65 },
|
|
98
|
+
NU: { name: 'Nunavut', position: 66 },
|
|
99
|
+
ON: { name: 'Ontario', position: 67 },
|
|
100
|
+
PE: { name: 'Prince Edward Island', position: 68 },
|
|
101
|
+
QC: { name: 'Quebec', position: 69 },
|
|
102
|
+
SK: { name: 'Saskatchewan', position: 70 },
|
|
103
|
+
YT: { name: 'Yukon', position: 71 }
|
|
104
|
+
};
|
|
105
|
+
exports.CANDIDACY_SOURCES = {
|
|
106
|
+
CAMPAIGN: { name: 'Campaign', position: 0 },
|
|
107
|
+
NETWORK: { name: 'Network', position: 1 },
|
|
108
|
+
WEBSITE: { name: 'Website', position: 2 },
|
|
109
|
+
SOCIAL_MEDIA: { name: 'Social Media', position: 3 }
|
|
110
|
+
};
|
|
111
|
+
exports.CANDIDACY_STAGES = {
|
|
112
|
+
SUBMITTED: { name: 'Submitted', position: 0 },
|
|
113
|
+
SCREENING: { name: 'Screening', position: 1 },
|
|
114
|
+
INTERVIEWING: { name: 'Interviewing', position: 2 },
|
|
115
|
+
OFFERED: { name: 'Offered', position: 3 },
|
|
116
|
+
HIRED: { name: 'Hired', position: 4 },
|
|
117
|
+
REJECTED: { name: 'Rejected', position: 5 },
|
|
118
|
+
WITHDRAWN: { name: 'Withdrawn', position: 6 },
|
|
119
|
+
ON_HOLD: { name: 'On Hold', position: 7 }
|
|
120
|
+
};
|
|
121
|
+
exports.CANDIDACY_REJECTORS = {
|
|
122
|
+
INKWELL: { name: 'Inkwell', position: 0 },
|
|
123
|
+
CLIENT: { name: 'Client', position: 1 }
|
|
124
|
+
};
|
|
125
|
+
exports.CLIENT_STATUSES = {
|
|
126
|
+
ACTIVE: { name: 'Active', position: 0 },
|
|
127
|
+
INACTIVE: { name: 'Inactive', position: 1 }
|
|
128
|
+
};
|
|
129
|
+
exports.CANDIDACY_ASSESSMENT_CATEGORIES = {
|
|
130
|
+
EXPERIENCE: { name: 'Experience', position: 0 },
|
|
131
|
+
INDUSTRY: { name: 'Industry', position: 1 },
|
|
132
|
+
SKILL: { name: 'Skill', position: 2 },
|
|
133
|
+
CULTURE: { name: 'Culture', position: 3 },
|
|
134
|
+
COMPENSATION: { name: 'Compensation', position: 4 },
|
|
135
|
+
LOCATION: { name: 'Location', position: 5 },
|
|
136
|
+
MOTIVATION: { name: 'Motivation', position: 6 }
|
|
137
|
+
};
|
|
138
|
+
exports.EDUCATION_DEGREES = {
|
|
139
|
+
HIGH_SCHOOL: { name: 'High School', position: 0 },
|
|
140
|
+
ASSOCIATES: { name: 'Associates', position: 1 },
|
|
141
|
+
BACHELORS: { name: 'Bachelors', position: 2 },
|
|
142
|
+
MASTERS: { name: 'Masters', position: 3 },
|
|
143
|
+
DOCTORATE: { name: 'Doctorate', position: 4 }
|
|
144
|
+
};
|
|
145
|
+
exports.GENDERS = {
|
|
146
|
+
MAN: {
|
|
147
|
+
name: 'Man',
|
|
148
|
+
position: 0
|
|
149
|
+
},
|
|
150
|
+
WOMAN: {
|
|
151
|
+
name: 'Woman',
|
|
152
|
+
position: 1
|
|
153
|
+
},
|
|
154
|
+
NON_BINARY: {
|
|
155
|
+
name: 'Non-Binary',
|
|
156
|
+
position: 2
|
|
157
|
+
},
|
|
158
|
+
UNDISCLOSED: {
|
|
159
|
+
name: 'Undisclosed',
|
|
160
|
+
position: 3
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
exports.MESSAGE_STATUSES = {
|
|
164
|
+
DELIVERED: { name: 'Delivered', position: 0 },
|
|
165
|
+
FAILED: { name: 'Failed', position: 1 },
|
|
166
|
+
BOUNCED: { name: 'Bounced', position: 2 },
|
|
167
|
+
PENDING: { name: 'Pending', position: 3 },
|
|
168
|
+
UNSUBSCRIBED: { name: 'Unsubscribed', position: 4 },
|
|
169
|
+
REPORTED: { name: 'Reported', position: 5 },
|
|
170
|
+
DROPPED: { name: 'Dropped', position: 6 },
|
|
171
|
+
DEFERRED: { name: 'Deferred', position: 7 }
|
|
172
|
+
};
|
|
173
|
+
exports.REFERRAL_SOURCES = {
|
|
174
|
+
CAMPAIGN: { name: 'Campaign', position: 0 },
|
|
175
|
+
NETWORK: { name: 'Network', position: 1 },
|
|
176
|
+
WEBSITE: { name: 'Website', position: 2 },
|
|
177
|
+
SOCIAL_MEDIA: { name: 'Social Media', position: 3 }
|
|
178
|
+
};
|
|
179
|
+
exports.COUNTRIES = {
|
|
180
|
+
UNITED_STATES: { name: 'United States', position: 0 },
|
|
181
|
+
CANADA: { name: 'Canada', position: 1 }
|
|
182
|
+
};
|
|
183
|
+
exports.LIST_VIEW_MODELS = {
|
|
184
|
+
PERSON: { name: 'Person', position: 0 },
|
|
185
|
+
POSITION: { name: 'Position', position: 1 },
|
|
186
|
+
CANDIDACY: { name: 'Candidacy', position: 2 },
|
|
187
|
+
REFERRAL: { name: 'Referral', position: 3 }
|
|
188
|
+
};
|
|
189
|
+
exports.EMPLOYMENT_LOCATION_TYPES = {
|
|
190
|
+
REMOTE: { name: 'Remote', position: 0 },
|
|
191
|
+
ONSITE: { name: 'Onsite', position: 1 },
|
|
192
|
+
HYBRID: { name: 'Hybrid', position: 2 }
|
|
193
|
+
};
|
|
194
|
+
exports.POSITION_CLOSED_REASONS = {
|
|
195
|
+
PLACED: { name: 'Placed', position: 0 },
|
|
196
|
+
CLIENT_FILLED: { name: 'Client Filled', position: 1 },
|
|
197
|
+
CLIENT_CANCELED: { name: 'Client Canceled', position: 2 },
|
|
198
|
+
INKWELL_CANCELED: { name: 'Inkwell Canceled', position: 3 }
|
|
199
|
+
};
|
|
200
|
+
exports.PERSON_SOURCES = {
|
|
201
|
+
SOURCED: { name: 'Sourced', position: 0 },
|
|
202
|
+
NETWORK: { name: 'Network', position: 1 },
|
|
203
|
+
WEBSITE: { name: 'Website', position: 2 },
|
|
204
|
+
SOCIAL_MEDIA: { name: 'Social Media', position: 3 }
|
|
205
|
+
};
|
|
206
|
+
exports.MESSAGE_CHANNELS = {
|
|
207
|
+
EMAIL: { name: 'Email', position: 0 },
|
|
208
|
+
SMS: { name: 'SMS', position: 1 }
|
|
209
|
+
};
|
|
210
|
+
exports.EMPLOYMENT_TYPES = {
|
|
211
|
+
FULL_TIME: { name: 'Full Time', position: 0 },
|
|
212
|
+
PART_TIME: { name: 'Part Time', position: 1 }
|
|
213
|
+
};
|
|
214
|
+
exports.ENRICHMENT_SOURCES = {
|
|
215
|
+
PDL: { name: 'PDL', position: 0 }
|
|
216
|
+
};
|
|
217
|
+
exports.JOB_LEVELS = {
|
|
218
|
+
EXPERIENCED: { name: 'Experienced', position: 0 },
|
|
219
|
+
MANAGER: { name: 'Manager', position: 1 },
|
|
220
|
+
DIRECTOR: { name: 'Director', position: 2 },
|
|
221
|
+
VICE_PRESIDENT: { name: 'Vice President', position: 3 },
|
|
222
|
+
VICE_PRESIDENT_SENIOR: { name: 'Senior Vice President', position: 4 },
|
|
223
|
+
VICE_PRESIDENT_EXECUTIVE: { name: 'Executive Vice President', position: 5 },
|
|
224
|
+
CHIEF_SUITE: { name: 'Chief Suite', position: 6 }
|
|
225
|
+
};
|
|
226
|
+
exports.EDUCATION_FIELDS = {
|
|
227
|
+
ACCOUNTING: { name: 'Accounting', position: 0 },
|
|
228
|
+
BUSINESS: { name: 'Business', position: 1 },
|
|
229
|
+
LAW: { name: 'Law', position: 2 },
|
|
230
|
+
ENGINEERING: { name: 'Engineering', position: 3 },
|
|
231
|
+
EDUCATION: { name: 'Education', position: 4 },
|
|
232
|
+
MEDICINE: { name: 'Medicine', position: 5 },
|
|
233
|
+
ARCHITECTURE: { name: 'Architecture', position: 6 },
|
|
234
|
+
SOCIAL_WORK: { name: 'Social Work', position: 7 },
|
|
235
|
+
HUMANITIES: { name: 'Humanities', position: 8 },
|
|
236
|
+
NATURAL_SCIENCES: { name: 'Natural Sciences', position: 9 },
|
|
237
|
+
SOCIAL_SCIENCES: { name: 'Social Sciences', position: 10 },
|
|
238
|
+
COMPUTER_SCIENCE: { name: 'Computer Science', position: 11 }
|
|
239
|
+
};
|
|
240
|
+
exports.SETTINGS_OPTION_LISTS = [
|
|
241
|
+
'certifications',
|
|
242
|
+
'industries',
|
|
243
|
+
'position-locations',
|
|
244
|
+
'job-functions',
|
|
245
|
+
'networks',
|
|
246
|
+
'tags',
|
|
247
|
+
'skills'
|
|
248
|
+
];
|
|
249
|
+
exports.PERSON_LIST_OPERATORS = [
|
|
250
|
+
'equals',
|
|
251
|
+
'not',
|
|
252
|
+
'lt',
|
|
253
|
+
'lte',
|
|
254
|
+
'gt',
|
|
255
|
+
'gte',
|
|
256
|
+
'contains',
|
|
257
|
+
'notContains',
|
|
258
|
+
'in',
|
|
259
|
+
'notIn',
|
|
260
|
+
'arrayContains',
|
|
261
|
+
'arrayNotContains',
|
|
262
|
+
'arrayOverlaps',
|
|
263
|
+
'arrayNotOverlaps',
|
|
264
|
+
'startsWith',
|
|
265
|
+
'endsWith',
|
|
266
|
+
'between',
|
|
267
|
+
'like',
|
|
268
|
+
'isNull',
|
|
269
|
+
'isNotNull'
|
|
270
|
+
];
|
|
271
|
+
exports.LIST_REQUEST_LIMITS = [0, 10, 50, 100, 200, 500];
|
|
272
|
+
exports.LIST_REQUEST_SORT_DIRECTIONS = ['asc', 'desc'];
|
|
273
|
+
exports.MESSAGE_TEMPLATES = {
|
|
274
|
+
POSITIONS: 'Positions',
|
|
275
|
+
NEWSLETTER: 'Newsletter'
|
|
276
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminActionDeleteParamsSchema = exports.AdminActionUpdateParamsSchema = exports.AdminActionListQuerySchema = exports.AdminActionParamsSchema = exports.AdminActionUpdateSchema = exports.AdminActionSelectSchema = exports.AdminActionCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.AdminActionCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.action);
|
|
10
|
+
exports.AdminActionSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.action);
|
|
11
|
+
exports.AdminActionUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.action);
|
|
12
|
+
exports.AdminActionParamsSchema = exports.AdminActionSelectSchema.pick({
|
|
13
|
+
id: true
|
|
14
|
+
});
|
|
15
|
+
exports.AdminActionListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
16
|
+
filter: v4_1.z
|
|
17
|
+
.object({
|
|
18
|
+
name: v4_1.z.enum(core_1.Actions.enumValues),
|
|
19
|
+
campaignId: v4_1.z.string(),
|
|
20
|
+
candidacyId: v4_1.z.string(),
|
|
21
|
+
clientId: v4_1.z.string(),
|
|
22
|
+
messageId: v4_1.z.string(),
|
|
23
|
+
noteId: v4_1.z.string(),
|
|
24
|
+
positionId: v4_1.z.string(),
|
|
25
|
+
personId: v4_1.z.string(),
|
|
26
|
+
referralId: v4_1.z.string()
|
|
27
|
+
})
|
|
28
|
+
.partial()
|
|
29
|
+
.optional()
|
|
30
|
+
});
|
|
31
|
+
exports.AdminActionUpdateParamsSchema = exports.AdminActionParamsSchema;
|
|
32
|
+
exports.AdminActionDeleteParamsSchema = exports.AdminActionParamsSchema;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminCampaignDeleteParamsSchema = exports.AdminCampaignUpdateParamsSchema = exports.AdminCampaignListQuerySchema = exports.AdminCampaignParamsSchema = exports.AdminCampaignUpdateSchema = exports.AdminCampaignSelectSchema = exports.AdminCampaignCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
const PositionsEmailSchema = v4_1.z.object({
|
|
10
|
+
subject: v4_1.z.string(),
|
|
11
|
+
body: v4_1.z.object({
|
|
12
|
+
intro: v4_1.z.string().nullable().optional(),
|
|
13
|
+
excludedPositionIds: v4_1.z
|
|
14
|
+
.record(v4_1.z.string(), v4_1.z.boolean())
|
|
15
|
+
.nullable()
|
|
16
|
+
.optional(),
|
|
17
|
+
outro: v4_1.z.string().nullable().optional()
|
|
18
|
+
}),
|
|
19
|
+
ctaText: v4_1.z.string(),
|
|
20
|
+
landingPageId: v4_1.z.string()
|
|
21
|
+
});
|
|
22
|
+
const PositionsSMSSchema = v4_1.z.object({
|
|
23
|
+
body: v4_1.z.object({
|
|
24
|
+
text: v4_1.z.string()
|
|
25
|
+
}),
|
|
26
|
+
landingPageId: v4_1.z.string()
|
|
27
|
+
});
|
|
28
|
+
const NewsletterEmailSchema = v4_1.z.object({});
|
|
29
|
+
const ContentSchema = v4_1.z
|
|
30
|
+
.object({
|
|
31
|
+
newsletterEmail: NewsletterEmailSchema.optional(),
|
|
32
|
+
positionsEmail: PositionsEmailSchema.optional(),
|
|
33
|
+
positionsSMS: PositionsSMSSchema.optional()
|
|
34
|
+
})
|
|
35
|
+
.nullable()
|
|
36
|
+
.optional();
|
|
37
|
+
exports.AdminCampaignCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.campaign);
|
|
38
|
+
exports.AdminCampaignSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.campaign, {
|
|
39
|
+
content: ContentSchema
|
|
40
|
+
}).extend({
|
|
41
|
+
listView: (0, drizzle_zod_1.createSelectSchema)(core_1.listView)
|
|
42
|
+
.pick({
|
|
43
|
+
id: true,
|
|
44
|
+
name: true
|
|
45
|
+
})
|
|
46
|
+
.nullable(),
|
|
47
|
+
_messagesCount: v4_1.z.number(),
|
|
48
|
+
_referralsCount: v4_1.z.number()
|
|
49
|
+
});
|
|
50
|
+
exports.AdminCampaignUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.campaign, {
|
|
51
|
+
content: ContentSchema
|
|
52
|
+
});
|
|
53
|
+
exports.AdminCampaignParamsSchema = exports.AdminCampaignSelectSchema.pick({
|
|
54
|
+
id: true,
|
|
55
|
+
externalId: true
|
|
56
|
+
})
|
|
57
|
+
.partial()
|
|
58
|
+
.refine((data) => data.id || data.externalId, 'Either id or externalId should be present');
|
|
59
|
+
exports.AdminCampaignListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
60
|
+
filter: v4_1.z
|
|
61
|
+
.object({
|
|
62
|
+
isSent: v4_1.z.boolean().optional()
|
|
63
|
+
})
|
|
64
|
+
.partial()
|
|
65
|
+
.optional()
|
|
66
|
+
});
|
|
67
|
+
exports.AdminCampaignUpdateParamsSchema = exports.AdminCampaignParamsSchema;
|
|
68
|
+
exports.AdminCampaignDeleteParamsSchema = exports.AdminCampaignParamsSchema;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminCandidacyListQuerySchema = exports.AdminCandidacyDeleteParamsSchema = exports.AdminCandidacyUpdateParamsSchema = exports.AdminCandidacyParamsSchema = exports.AdminCandidacyUpdateSchema = exports.AdminCandidacySelectSchema = exports.AdminCandidacyCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.AdminCandidacyCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.candidacy);
|
|
10
|
+
const AdminCandidacySelectPersonSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
11
|
+
id: true,
|
|
12
|
+
firstName: true,
|
|
13
|
+
lastName: true,
|
|
14
|
+
fullName: true,
|
|
15
|
+
photoUri: true,
|
|
16
|
+
email: true
|
|
17
|
+
});
|
|
18
|
+
exports.AdminCandidacySelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.candidacy).extend({
|
|
19
|
+
referral: v4_1.z
|
|
20
|
+
.object({
|
|
21
|
+
id: v4_1.z.string(),
|
|
22
|
+
referrer: AdminCandidacySelectPersonSchema
|
|
23
|
+
})
|
|
24
|
+
.nullable()
|
|
25
|
+
.optional(),
|
|
26
|
+
person: AdminCandidacySelectPersonSchema.optional(),
|
|
27
|
+
position: (0, drizzle_zod_1.createSelectSchema)(core_1.position)
|
|
28
|
+
.pick({
|
|
29
|
+
id: true,
|
|
30
|
+
name: true
|
|
31
|
+
})
|
|
32
|
+
.extend({
|
|
33
|
+
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client).pick({
|
|
34
|
+
id: true,
|
|
35
|
+
name: true
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
.optional(),
|
|
39
|
+
ratingTags: v4_1.z
|
|
40
|
+
.array(v4_1.z.object({
|
|
41
|
+
tag: (0, drizzle_zod_1.createSelectSchema)(core_1.tag).pick({
|
|
42
|
+
id: true,
|
|
43
|
+
slug: true,
|
|
44
|
+
name: true
|
|
45
|
+
})
|
|
46
|
+
}))
|
|
47
|
+
.optional(),
|
|
48
|
+
actions: v4_1.z
|
|
49
|
+
.array((0, drizzle_zod_1.createSelectSchema)(core_1.action).pick({
|
|
50
|
+
id: true,
|
|
51
|
+
name: true
|
|
52
|
+
}))
|
|
53
|
+
.optional(),
|
|
54
|
+
candidacyFeedbacks: v4_1.z
|
|
55
|
+
.array((0, drizzle_zod_1.createSelectSchema)(core_1.candidacyFeedback).pick({
|
|
56
|
+
id: true,
|
|
57
|
+
content: true
|
|
58
|
+
}))
|
|
59
|
+
.optional(),
|
|
60
|
+
notes: v4_1.z
|
|
61
|
+
.array((0, drizzle_zod_1.createSelectSchema)(core_1.note).pick({
|
|
62
|
+
id: true,
|
|
63
|
+
content: true
|
|
64
|
+
}))
|
|
65
|
+
.optional()
|
|
66
|
+
});
|
|
67
|
+
exports.AdminCandidacyUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.candidacy);
|
|
68
|
+
exports.AdminCandidacyParamsSchema = exports.AdminCandidacySelectSchema.pick({
|
|
69
|
+
id: true
|
|
70
|
+
});
|
|
71
|
+
exports.AdminCandidacyUpdateParamsSchema = exports.AdminCandidacyParamsSchema;
|
|
72
|
+
exports.AdminCandidacyDeleteParamsSchema = exports.AdminCandidacyParamsSchema;
|
|
73
|
+
exports.AdminCandidacyListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
74
|
+
filter: exports.AdminCandidacySelectSchema.pick({
|
|
75
|
+
personId: true,
|
|
76
|
+
positionId: true
|
|
77
|
+
})
|
|
78
|
+
.extend({
|
|
79
|
+
isClosed: v4_1.z.boolean().optional()
|
|
80
|
+
})
|
|
81
|
+
.partial()
|
|
82
|
+
.optional()
|
|
83
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminClientDeleteParamsSchema = exports.AdminClientUpdateParamsSchema = exports.AdminClientListQuerySchema = exports.AdminClientParamsSchema = exports.AdminClientUpdateSchema = exports.AdminClientSelectSchema = exports.AdminClientCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.AdminClientCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.client);
|
|
10
|
+
exports.AdminClientSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.client).extend({
|
|
11
|
+
_openPositionsCount: v4_1.z.number().optional()
|
|
12
|
+
});
|
|
13
|
+
exports.AdminClientUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.client);
|
|
14
|
+
exports.AdminClientParamsSchema = exports.AdminClientSelectSchema.pick({
|
|
15
|
+
id: true
|
|
16
|
+
});
|
|
17
|
+
exports.AdminClientListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
18
|
+
filter: v4_1.z
|
|
19
|
+
.object({
|
|
20
|
+
status: v4_1.z.array(v4_1.z.enum(core_1.ClientStatuses.enumValues)).optional()
|
|
21
|
+
})
|
|
22
|
+
.merge((0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
23
|
+
.pick({
|
|
24
|
+
isLead: true
|
|
25
|
+
})
|
|
26
|
+
.partial())
|
|
27
|
+
.optional()
|
|
28
|
+
});
|
|
29
|
+
exports.AdminClientUpdateParamsSchema = exports.AdminClientParamsSchema;
|
|
30
|
+
exports.AdminClientDeleteParamsSchema = exports.AdminClientParamsSchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminEducationDeleteByPersonParamsSchema = exports.AdminEducationDeleteParamsSchema = exports.AdminEducationUpdateParamsSchema = exports.AdminEducationListQuerySchema = exports.AdminEducationParamsSchema = exports.AdminEducationUpdateSchema = exports.AdminEducationSelectSchema = exports.AdminEducationCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
const upsertEducationSchema = {
|
|
9
|
+
graduatedAt: v4_1.z.null().or(v4_1.z.coerce.date()).optional()
|
|
10
|
+
};
|
|
11
|
+
//// validators
|
|
12
|
+
exports.AdminEducationCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.education, upsertEducationSchema);
|
|
13
|
+
exports.AdminEducationSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.education);
|
|
14
|
+
exports.AdminEducationUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.education, upsertEducationSchema);
|
|
15
|
+
exports.AdminEducationParamsSchema = exports.AdminEducationSelectSchema.pick({
|
|
16
|
+
id: true
|
|
17
|
+
});
|
|
18
|
+
exports.AdminEducationListQuerySchema = utils_1.ListQuerySchema;
|
|
19
|
+
exports.AdminEducationUpdateParamsSchema = exports.AdminEducationParamsSchema;
|
|
20
|
+
exports.AdminEducationDeleteParamsSchema = exports.AdminEducationParamsSchema;
|
|
21
|
+
exports.AdminEducationDeleteByPersonParamsSchema = exports.AdminEducationSelectSchema.pick({
|
|
22
|
+
personId: true
|
|
23
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminExperienceDeleteByPersonParamsSchema = exports.AdminExperienceDeleteParamsSchema = exports.AdminExperienceUpdateParamsSchema = exports.AdminExperienceListQuerySchema = exports.AdminExperienceParamsSchema = exports.AdminExperienceUpdateSchema = exports.AdminExperienceSelectSchema = exports.AdminExperienceCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
const upsertExperienceSchema = {
|
|
9
|
+
endDate: v4_1.z.null().or(v4_1.z.coerce.date()).optional(),
|
|
10
|
+
startDate: v4_1.z.null().or(v4_1.z.coerce.date()).optional()
|
|
11
|
+
};
|
|
12
|
+
//// validators
|
|
13
|
+
exports.AdminExperienceCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.experience, upsertExperienceSchema);
|
|
14
|
+
exports.AdminExperienceSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.experience).extend({
|
|
15
|
+
jobFunction: (0, drizzle_zod_1.createSelectSchema)(core_1.jobFunction)
|
|
16
|
+
.pick({
|
|
17
|
+
id: true,
|
|
18
|
+
name: true
|
|
19
|
+
})
|
|
20
|
+
.nullable(),
|
|
21
|
+
industry: (0, drizzle_zod_1.createSelectSchema)(core_1.industry)
|
|
22
|
+
.pick({
|
|
23
|
+
id: true,
|
|
24
|
+
name: true
|
|
25
|
+
})
|
|
26
|
+
.nullable()
|
|
27
|
+
});
|
|
28
|
+
exports.AdminExperienceUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.experience, upsertExperienceSchema);
|
|
29
|
+
exports.AdminExperienceParamsSchema = exports.AdminExperienceSelectSchema.pick({
|
|
30
|
+
id: true
|
|
31
|
+
});
|
|
32
|
+
exports.AdminExperienceListQuerySchema = utils_1.ListQuerySchema;
|
|
33
|
+
exports.AdminExperienceUpdateParamsSchema = exports.AdminExperienceParamsSchema;
|
|
34
|
+
exports.AdminExperienceDeleteParamsSchema = exports.AdminExperienceParamsSchema;
|
|
35
|
+
exports.AdminExperienceDeleteByPersonParamsSchema = exports.AdminExperienceSelectSchema.pick({
|
|
36
|
+
personId: true
|
|
37
|
+
});
|
|
@@ -14,15 +14,32 @@ 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("./actions"), exports);
|
|
17
18
|
__exportStar(require("./campaigns"), exports);
|
|
18
19
|
__exportStar(require("./candidacies"), exports);
|
|
19
20
|
__exportStar(require("./clients"), exports);
|
|
21
|
+
__exportStar(require("./dashboard"), exports);
|
|
22
|
+
__exportStar(require("./educations"), exports);
|
|
23
|
+
__exportStar(require("./experiences"), exports);
|
|
24
|
+
__exportStar(require("./files"), exports);
|
|
25
|
+
__exportStar(require("./jobFunctions"), exports);
|
|
20
26
|
__exportStar(require("./listViews"), exports);
|
|
21
27
|
__exportStar(require("./locations"), exports);
|
|
22
28
|
__exportStar(require("./messages"), exports);
|
|
29
|
+
__exportStar(require("./notes"), exports);
|
|
23
30
|
__exportStar(require("./partners"), exports);
|
|
24
31
|
__exportStar(require("./persons"), exports);
|
|
32
|
+
__exportStar(require("./personsToBestPersons"), exports);
|
|
33
|
+
__exportStar(require("./personsToSkills"), exports);
|
|
34
|
+
__exportStar(require("./personsToTags"), exports);
|
|
25
35
|
__exportStar(require("./positions"), exports);
|
|
36
|
+
__exportStar(require("./positionsToSkills"), exports);
|
|
37
|
+
__exportStar(require("./positionsToTags"), exports);
|
|
26
38
|
__exportStar(require("./referrals"), exports);
|
|
39
|
+
__exportStar(require("./referralsToMessages"), exports);
|
|
40
|
+
__exportStar(require("./senders"), exports);
|
|
27
41
|
__exportStar(require("./settings"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
42
|
+
__exportStar(require("./skills"), exports);
|
|
43
|
+
__exportStar(require("./tags"), exports);
|
|
44
|
+
__exportStar(require("./websiteLandingPages"), exports);
|
|
45
|
+
__exportStar(require("./websiteStaticPages"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AdminJobFunctionDeleteParamsSchema = exports.AdminJobFunctionUpdateParamsSchema = exports.AdminJobFunctionListQuerySchema = exports.AdminJobFunctionSlugParamsSchema = exports.AdminJobFunctionParamsSchema = exports.AdminJobFunctionUpdateSchema = exports.AdminSelectJobFunctionSchema = exports.AdminJobFunctionCreateSchema = void 0;
|
|
7
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
8
|
+
const core_1 = require("../../core");
|
|
9
|
+
const utils_1 = require("../../../utils");
|
|
10
|
+
const v4_1 = require("zod/v4");
|
|
11
|
+
const slugify_1 = __importDefault(require("slugify"));
|
|
12
|
+
const upsertExtended = {
|
|
13
|
+
name: v4_1.z.string().transform((value) => {
|
|
14
|
+
return value.trim().toLowerCase();
|
|
15
|
+
}),
|
|
16
|
+
slug: v4_1.z.string().transform((value) => {
|
|
17
|
+
return (0, slugify_1.default)(value, { lower: true });
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
//// validators
|
|
21
|
+
exports.AdminJobFunctionCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.jobFunction, upsertExtended);
|
|
22
|
+
exports.AdminSelectJobFunctionSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.jobFunction);
|
|
23
|
+
exports.AdminJobFunctionUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.jobFunction, upsertExtended);
|
|
24
|
+
exports.AdminJobFunctionParamsSchema = exports.AdminSelectJobFunctionSchema.pick({
|
|
25
|
+
id: true
|
|
26
|
+
});
|
|
27
|
+
exports.AdminJobFunctionSlugParamsSchema = exports.AdminSelectJobFunctionSchema.pick({
|
|
28
|
+
slug: true
|
|
29
|
+
});
|
|
30
|
+
exports.AdminJobFunctionListQuerySchema = utils_1.ListQuerySchema;
|
|
31
|
+
exports.AdminJobFunctionUpdateParamsSchema = exports.AdminJobFunctionParamsSchema;
|
|
32
|
+
exports.AdminJobFunctionDeleteParamsSchema = exports.AdminJobFunctionParamsSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminListViewListQuerySchema = exports.AdminListViewDeleteParamsSchema = exports.AdminListViewUpdateParamsSchema = exports.AdminListViewParamsSchema = exports.AdminListViewUpdateSchema = exports.AdminListViewSelectSchema = exports.AdminListViewCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
//// validators
|
|
8
|
+
exports.AdminListViewCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.listView);
|
|
9
|
+
exports.AdminListViewSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.listView);
|
|
10
|
+
exports.AdminListViewUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.listView);
|
|
11
|
+
exports.AdminListViewParamsSchema = exports.AdminListViewSelectSchema.pick({
|
|
12
|
+
id: true
|
|
13
|
+
});
|
|
14
|
+
exports.AdminListViewUpdateParamsSchema = exports.AdminListViewParamsSchema;
|
|
15
|
+
exports.AdminListViewDeleteParamsSchema = exports.AdminListViewParamsSchema;
|
|
16
|
+
exports.AdminListViewListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
17
|
+
filter: exports.AdminListViewSelectSchema.pick({
|
|
18
|
+
model: true
|
|
19
|
+
})
|
|
20
|
+
.partial()
|
|
21
|
+
.optional()
|
|
22
|
+
});
|