@the-inkwell/shared 0.1.164 → 0.2.1
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/package.json +9 -4
- package/src/constants.d.ts +770 -0
- package/src/constants.d.ts.map +1 -0
- package/src/constants.js +277 -0
- package/src/constants.js.map +1 -0
- package/src/constants.ts +299 -0
- package/src/index.d.ts +4 -0
- package/src/index.d.ts.map +1 -0
- package/{dist/src/types → src}/index.js +3 -1
- package/src/index.js.map +1 -0
- package/src/index.ts +3 -0
- package/src/schema/admin/actions/index.d.ts +797 -0
- package/src/schema/admin/actions/index.d.ts.map +1 -0
- package/src/schema/admin/actions/index.js +33 -0
- package/src/schema/admin/actions/index.js.map +1 -0
- package/src/schema/admin/actions/index.ts +65 -0
- package/src/schema/admin/campaigns/index.d.ts +491 -0
- package/src/schema/admin/campaigns/index.d.ts.map +1 -0
- package/src/schema/admin/campaigns/index.js +69 -0
- package/src/schema/admin/campaigns/index.js.map +1 -0
- package/src/schema/admin/campaigns/index.ts +111 -0
- package/src/schema/admin/candidacies/index.d.ts +766 -0
- package/src/schema/admin/candidacies/index.d.ts.map +1 -0
- package/src/schema/admin/candidacies/index.js +84 -0
- package/src/schema/admin/candidacies/index.js.map +1 -0
- package/src/schema/admin/candidacies/index.ts +138 -0
- package/src/schema/admin/clients/index.d.ts +340 -0
- package/src/schema/admin/clients/index.d.ts.map +1 -0
- package/src/schema/admin/clients/index.js +31 -0
- package/src/schema/admin/clients/index.js.map +1 -0
- package/src/schema/admin/clients/index.ts +65 -0
- package/src/schema/admin/dashboard/index.d.ts +11 -0
- package/src/schema/admin/dashboard/index.d.ts.map +1 -0
- package/{dist/src/types/admin/candidacies → src/schema/admin/dashboard}/index.js +1 -0
- package/src/schema/admin/dashboard/index.js.map +1 -0
- package/src/schema/admin/dashboard/index.ts +10 -0
- package/src/schema/admin/educations/index.d.ts +361 -0
- package/src/schema/admin/educations/index.d.ts.map +1 -0
- package/src/schema/admin/educations/index.js +24 -0
- package/src/schema/admin/educations/index.js.map +1 -0
- package/src/schema/admin/educations/index.ts +71 -0
- package/src/schema/admin/experiences/index.d.ts +467 -0
- package/src/schema/admin/experiences/index.d.ts.map +1 -0
- package/src/schema/admin/experiences/index.js +38 -0
- package/src/schema/admin/experiences/index.js.map +1 -0
- package/src/schema/admin/experiences/index.ts +87 -0
- package/src/schema/admin/files/index.d.ts +9 -0
- package/src/schema/admin/files/index.d.ts.map +1 -0
- package/src/schema/admin/files/index.js +8 -0
- package/src/schema/admin/files/index.js.map +1 -0
- package/src/schema/admin/files/index.ts +10 -0
- package/src/schema/admin/index.d.ts +30 -0
- package/src/schema/admin/index.d.ts.map +1 -0
- package/{dist/src/types/models → src/schema}/admin/index.js +19 -1
- package/src/schema/admin/index.js.map +1 -0
- package/src/schema/admin/index.ts +29 -0
- package/src/schema/admin/jobFunctions/index.d.ts +363 -0
- package/src/schema/admin/jobFunctions/index.d.ts.map +1 -0
- package/src/schema/admin/jobFunctions/index.js +33 -0
- package/src/schema/admin/jobFunctions/index.js.map +1 -0
- package/src/schema/admin/jobFunctions/index.ts +79 -0
- package/src/schema/admin/listViews/index.d.ts +576 -0
- package/src/schema/admin/listViews/index.d.ts.map +1 -0
- package/src/schema/admin/listViews/index.js +23 -0
- package/src/schema/admin/listViews/index.js.map +1 -0
- package/src/schema/admin/listViews/index.ts +58 -0
- package/src/schema/admin/locations/index.d.ts +28 -0
- package/src/schema/admin/locations/index.d.ts.map +1 -0
- package/src/schema/admin/locations/index.js +17 -0
- package/src/schema/admin/locations/index.js.map +1 -0
- package/src/schema/admin/locations/index.ts +42 -0
- package/src/schema/admin/messages/index.d.ts +801 -0
- package/src/schema/admin/messages/index.d.ts.map +1 -0
- package/src/schema/admin/messages/index.js +52 -0
- package/src/schema/admin/messages/index.js.map +1 -0
- package/src/schema/admin/messages/index.ts +88 -0
- package/src/schema/admin/notes/index.d.ts +559 -0
- package/src/schema/admin/notes/index.d.ts.map +1 -0
- package/src/schema/admin/notes/index.js +28 -0
- package/src/schema/admin/notes/index.js.map +1 -0
- package/src/schema/admin/notes/index.ts +56 -0
- package/src/schema/admin/partners/index.d.ts +335 -0
- package/src/schema/admin/partners/index.d.ts.map +1 -0
- package/src/schema/admin/partners/index.js +26 -0
- package/src/schema/admin/partners/index.js.map +1 -0
- package/src/schema/admin/partners/index.ts +60 -0
- package/src/schema/admin/persons/index.d.ts +890 -0
- package/src/schema/admin/persons/index.d.ts.map +1 -0
- package/src/schema/admin/persons/index.js +195 -0
- package/src/schema/admin/persons/index.js.map +1 -0
- package/src/schema/admin/persons/index.ts +294 -0
- package/src/schema/admin/personsToBestPersons/index.d.ts +199 -0
- package/src/schema/admin/personsToBestPersons/index.d.ts.map +1 -0
- package/src/schema/admin/personsToBestPersons/index.js +19 -0
- package/src/schema/admin/personsToBestPersons/index.js.map +1 -0
- package/src/schema/admin/personsToBestPersons/index.ts +67 -0
- package/src/schema/admin/personsToSkills/index.d.ts +199 -0
- package/src/schema/admin/personsToSkills/index.d.ts.map +1 -0
- package/src/schema/admin/personsToSkills/index.js +19 -0
- package/src/schema/admin/personsToSkills/index.js.map +1 -0
- package/src/schema/admin/personsToSkills/index.ts +61 -0
- package/src/schema/admin/personsToTags/index.d.ts +199 -0
- package/src/schema/admin/personsToTags/index.d.ts.map +1 -0
- package/src/schema/admin/personsToTags/index.js +19 -0
- package/src/schema/admin/personsToTags/index.js.map +1 -0
- package/src/schema/admin/personsToTags/index.ts +61 -0
- package/src/schema/admin/positions/index.d.ts +1329 -0
- package/src/schema/admin/positions/index.d.ts.map +1 -0
- package/src/schema/admin/positions/index.js +59 -0
- package/src/schema/admin/positions/index.js.map +1 -0
- package/src/schema/admin/positions/index.ts +97 -0
- package/src/schema/admin/positionsToSkills/index.d.ts +199 -0
- package/src/schema/admin/positionsToSkills/index.d.ts.map +1 -0
- package/src/schema/admin/positionsToSkills/index.js +19 -0
- package/src/schema/admin/positionsToSkills/index.js.map +1 -0
- package/src/schema/admin/positionsToSkills/index.ts +64 -0
- package/src/schema/admin/positionsToTags/index.d.ts +199 -0
- package/src/schema/admin/positionsToTags/index.d.ts.map +1 -0
- package/src/schema/admin/positionsToTags/index.js +19 -0
- package/src/schema/admin/positionsToTags/index.js.map +1 -0
- package/src/schema/admin/positionsToTags/index.ts +61 -0
- package/src/schema/admin/referrals/index.d.ts +478 -0
- package/src/schema/admin/referrals/index.d.ts.map +1 -0
- package/src/schema/admin/referrals/index.js +65 -0
- package/src/schema/admin/referrals/index.js.map +1 -0
- package/src/schema/admin/referrals/index.ts +100 -0
- package/src/schema/admin/referralsToMessages/index.d.ts +244 -0
- package/src/schema/admin/referralsToMessages/index.d.ts.map +1 -0
- package/src/schema/admin/referralsToMessages/index.js +56 -0
- package/src/schema/admin/referralsToMessages/index.js.map +1 -0
- package/src/schema/admin/referralsToMessages/index.ts +121 -0
- package/src/schema/admin/senders/index.d.ts +452 -0
- package/src/schema/admin/senders/index.d.ts.map +1 -0
- package/src/schema/admin/senders/index.js +17 -0
- package/src/schema/admin/senders/index.js.map +1 -0
- package/src/schema/admin/senders/index.ts +50 -0
- package/src/schema/admin/sendgrid/index.d.ts +10 -0
- package/src/schema/admin/sendgrid/index.d.ts.map +1 -0
- package/src/schema/admin/sendgrid/index.js +11 -0
- package/src/schema/admin/sendgrid/index.js.map +1 -0
- package/src/schema/admin/sendgrid/index.ts +16 -0
- package/src/schema/admin/settings/index.d.ts +31 -0
- package/src/schema/admin/settings/index.d.ts.map +1 -0
- package/src/schema/admin/settings/index.js +22 -0
- package/src/schema/admin/settings/index.js.map +1 -0
- package/src/schema/admin/settings/index.ts +34 -0
- package/src/schema/admin/skills/index.d.ts +363 -0
- package/src/schema/admin/skills/index.d.ts.map +1 -0
- package/src/schema/admin/skills/index.js +33 -0
- package/src/schema/admin/skills/index.js.map +1 -0
- package/src/schema/admin/skills/index.ts +64 -0
- package/src/schema/admin/tags/index.d.ts +356 -0
- package/src/schema/admin/tags/index.d.ts.map +1 -0
- package/src/schema/admin/tags/index.js +30 -0
- package/src/schema/admin/tags/index.js.map +1 -0
- package/src/schema/admin/tags/index.ts +56 -0
- package/src/schema/admin/websiteLandingPages/index.d.ts +563 -0
- package/src/schema/admin/websiteLandingPages/index.d.ts.map +1 -0
- package/src/schema/admin/websiteLandingPages/index.js +17 -0
- package/src/schema/admin/websiteLandingPages/index.js.map +1 -0
- package/src/schema/admin/websiteLandingPages/index.ts +69 -0
- package/src/schema/admin/websiteStaticPages/index.d.ts +386 -0
- package/src/schema/admin/websiteStaticPages/index.d.ts.map +1 -0
- package/src/schema/admin/websiteStaticPages/index.js +17 -0
- package/src/schema/admin/websiteStaticPages/index.js.map +1 -0
- package/src/schema/admin/websiteStaticPages/index.ts +67 -0
- package/src/schema/auth/index.d.ts +16 -0
- package/src/schema/auth/index.d.ts.map +1 -0
- package/src/schema/auth/index.js +12 -0
- package/src/schema/auth/index.js.map +1 -0
- package/src/schema/auth/index.ts +14 -0
- package/src/schema/core.d.ts +6336 -0
- package/src/schema/core.d.ts.map +1 -0
- package/src/schema/core.js +1470 -0
- package/src/schema/core.js.map +1 -0
- package/src/schema/core.ts +1906 -0
- package/src/schema/index.d.ts +4 -0
- package/src/schema/index.d.ts.map +1 -0
- package/{dist/src/types/http → src/schema}/index.js +2 -1
- package/src/schema/index.js.map +1 -0
- package/src/{types/models → schema}/index.ts +1 -1
- package/src/utils.d.ts +24 -0
- package/src/utils.d.ts.map +1 -0
- package/src/utils.js +18 -0
- package/src/utils.js.map +1 -0
- package/src/utils.ts +42 -0
- package/tsconfig.json +14 -107
- package/README.md +0 -9
- package/dist/index.js +0 -18
- 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/utils/index.js +0 -2
- 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/models/index.js +0 -19
- 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/index.ts +0 -2
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAI1B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAgC,CAAA;AAUvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDrC,CAAA;AACF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAgC,CAAA;AAEvE,eAAO,MAAM,0BAA0B;;;;;EAErC,CAAA;AACF,eAAO,MAAM,gCAAgC;;;;;EAA6B,CAAA;AAC1E,eAAO,MAAM,gCAAgC;;;;;EAA6B,CAAA;AAC1E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;iBAUxC,CAAA;AAIF,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAGhE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAC7E,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAA;AAGjD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAA;AACD,MAAM,MAAM,wBAAwB,GAAG,YAAY,CACjD,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAC3C,CAAA;AAGD,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,0BAA0B,CAClC,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAA;AAGnE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAA;AACD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;AAG/D,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
});
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCASmB;AACnB,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAA;AAEvE,MAAM,gCAAgC,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IACvE,EAAE,EAAE,IAAI;IACR,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAC,MAAM,CAAC;IAC7E,QAAQ,EAAE,MAAC;SACR,MAAM,CAAC;QACN,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE;QACd,QAAQ,EAAE,gCAAgC;KAC3C,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,MAAM,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACnC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,MAAM,CAAC;QACN,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;YACtC,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;IACb,UAAU,EAAE,MAAC;SACV,KAAK,CACJ,MAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,IAAA,gCAAkB,EAAC,UAAG,CAAC,CAAC,IAAI,CAAC;YAChC,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACX,CAAC;KACH,CAAC,CACH;SACA,QAAQ,EAAE;IACb,OAAO,EAAE,MAAC;SACP,KAAK,CACJ,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QAC9B,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC,CACH;SACA,QAAQ,EAAE;IACb,kBAAkB,EAAE,MAAC;SAClB,KAAK,CACJ,IAAA,gCAAkB,EAAC,wBAAiB,CAAC,CAAC,IAAI,CAAC;QACzC,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,IAAI;KACd,CAAC,CACH;SACA,QAAQ,EAAE;IACb,KAAK,EAAE,MAAC;SACL,KAAK,CACJ,IAAA,gCAAkB,EAAC,WAAI,CAAC,CAAC,IAAI,CAAC;QAC5B,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,IAAI;KACd,CAAC,CACH;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAA;AAE1D,QAAA,0BAA0B,GAAG,kCAA0B,CAAC,IAAI,CAAC;IACxE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,gCAAgC,GAAG,kCAA0B,CAAA;AAC7D,QAAA,gCAAgC,GAAG,kCAA0B,CAAA;AAC7D,QAAA,6BAA6B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAClE,MAAM,EAAE,kCAA0B,CAAC,IAAI,CAAC;QACtC,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;KACjB,CAAC;SACC,MAAM,CAAC;QACN,QAAQ,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n action,\n candidacy,\n candidacyFeedback,\n client,\n note,\n person,\n position,\n tag\n} from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminCandidacyCreateSchema = createInsertSchema(candidacy)\n\nconst AdminCandidacySelectPersonSchema = createSelectSchema(person).pick({\n id: true,\n firstName: true,\n lastName: true,\n fullName: true,\n photoUri: true,\n email: true\n})\nexport const AdminCandidacySelectSchema = createSelectSchema(candidacy).extend({\n referral: z\n .object({\n id: z.string(),\n referrer: AdminCandidacySelectPersonSchema\n })\n .nullable()\n .optional(),\n person: AdminCandidacySelectPersonSchema.optional(),\n position: createSelectSchema(position)\n .pick({\n id: true,\n name: true\n })\n .extend({\n client: createSelectSchema(client).pick({\n id: true,\n name: true\n })\n })\n .optional(),\n ratingTags: z\n .array(\n z.object({\n tag: createSelectSchema(tag).pick({\n id: true,\n slug: true,\n name: true\n })\n })\n )\n .optional(),\n actions: z\n .array(\n createSelectSchema(action).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n candidacyFeedbacks: z\n .array(\n createSelectSchema(candidacyFeedback).pick({\n id: true,\n content: true\n })\n )\n .optional(),\n notes: z\n .array(\n createSelectSchema(note).pick({\n id: true,\n content: true\n })\n )\n .optional()\n})\nexport const AdminCandidacyUpdateSchema = createUpdateSchema(candidacy)\n\nexport const AdminCandidacyParamsSchema = AdminCandidacySelectSchema.pick({\n id: true\n})\nexport const AdminCandidacyUpdateParamsSchema = AdminCandidacyParamsSchema\nexport const AdminCandidacyDeleteParamsSchema = AdminCandidacyParamsSchema\nexport const AdminCandidacyListQuerySchema = ListQuerySchema.extend({\n filter: AdminCandidacySelectSchema.pick({\n personId: true,\n positionId: true\n })\n .extend({\n isClosed: z.boolean().optional()\n })\n .partial()\n .optional()\n})\n\n//// types\n\ntype AdminCandidacy = z.infer<typeof AdminCandidacySelectSchema>\n\n// detail\nexport type AdminCandidacyParams = z.infer<typeof AdminCandidacyParamsSchema>\nexport type AdminCandidacyResult = AdminCandidacy\n\n// list\nexport type AdminCandidacyListQuery = z.infer<\n typeof AdminCandidacyListQuerySchema\n>\nexport type AdminCandidacyListResult = ListResponse<\n z.infer<typeof AdminCandidacySelectSchema>\n>\n\n// create\nexport type AdminCandidacyCreateInput = z.infer<\n typeof AdminCandidacyCreateSchema\n>\nexport type AdminCandidacyCreateResult = Pick<AdminCandidacy, 'id'>\n\n// update\nexport type AdminCandidacyUpdateParams = z.infer<\n typeof AdminCandidacyUpdateParamsSchema\n>\nexport type AdminCandidacyUpdateInput = Partial<AdminCandidacy>\n\n// delete\nexport type AdminCandidacyDeleteParams = z.infer<\n typeof AdminCandidacyDeleteParamsSchema\n>\n"]}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createInsertSchema,
|
|
3
|
+
createSelectSchema,
|
|
4
|
+
createUpdateSchema
|
|
5
|
+
} from 'drizzle-zod'
|
|
6
|
+
import {
|
|
7
|
+
action,
|
|
8
|
+
candidacy,
|
|
9
|
+
candidacyFeedback,
|
|
10
|
+
client,
|
|
11
|
+
note,
|
|
12
|
+
person,
|
|
13
|
+
position,
|
|
14
|
+
tag
|
|
15
|
+
} from '../../core'
|
|
16
|
+
import { ListQuerySchema, type ListResponse } from '../../../utils'
|
|
17
|
+
import { z } from 'zod/v4'
|
|
18
|
+
|
|
19
|
+
//// validators
|
|
20
|
+
|
|
21
|
+
export const AdminCandidacyCreateSchema = createInsertSchema(candidacy)
|
|
22
|
+
|
|
23
|
+
const AdminCandidacySelectPersonSchema = createSelectSchema(person).pick({
|
|
24
|
+
id: true,
|
|
25
|
+
firstName: true,
|
|
26
|
+
lastName: true,
|
|
27
|
+
fullName: true,
|
|
28
|
+
photoUri: true,
|
|
29
|
+
email: true
|
|
30
|
+
})
|
|
31
|
+
export const AdminCandidacySelectSchema = createSelectSchema(candidacy).extend({
|
|
32
|
+
referral: z
|
|
33
|
+
.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
referrer: AdminCandidacySelectPersonSchema
|
|
36
|
+
})
|
|
37
|
+
.nullable()
|
|
38
|
+
.optional(),
|
|
39
|
+
person: AdminCandidacySelectPersonSchema.optional(),
|
|
40
|
+
position: createSelectSchema(position)
|
|
41
|
+
.pick({
|
|
42
|
+
id: true,
|
|
43
|
+
name: true
|
|
44
|
+
})
|
|
45
|
+
.extend({
|
|
46
|
+
client: createSelectSchema(client).pick({
|
|
47
|
+
id: true,
|
|
48
|
+
name: true
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
.optional(),
|
|
52
|
+
ratingTags: z
|
|
53
|
+
.array(
|
|
54
|
+
z.object({
|
|
55
|
+
tag: createSelectSchema(tag).pick({
|
|
56
|
+
id: true,
|
|
57
|
+
slug: true,
|
|
58
|
+
name: true
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
.optional(),
|
|
63
|
+
actions: z
|
|
64
|
+
.array(
|
|
65
|
+
createSelectSchema(action).pick({
|
|
66
|
+
id: true,
|
|
67
|
+
name: true
|
|
68
|
+
})
|
|
69
|
+
)
|
|
70
|
+
.optional(),
|
|
71
|
+
candidacyFeedbacks: z
|
|
72
|
+
.array(
|
|
73
|
+
createSelectSchema(candidacyFeedback).pick({
|
|
74
|
+
id: true,
|
|
75
|
+
content: true
|
|
76
|
+
})
|
|
77
|
+
)
|
|
78
|
+
.optional(),
|
|
79
|
+
notes: z
|
|
80
|
+
.array(
|
|
81
|
+
createSelectSchema(note).pick({
|
|
82
|
+
id: true,
|
|
83
|
+
content: true
|
|
84
|
+
})
|
|
85
|
+
)
|
|
86
|
+
.optional()
|
|
87
|
+
})
|
|
88
|
+
export const AdminCandidacyUpdateSchema = createUpdateSchema(candidacy)
|
|
89
|
+
|
|
90
|
+
export const AdminCandidacyParamsSchema = AdminCandidacySelectSchema.pick({
|
|
91
|
+
id: true
|
|
92
|
+
})
|
|
93
|
+
export const AdminCandidacyUpdateParamsSchema = AdminCandidacyParamsSchema
|
|
94
|
+
export const AdminCandidacyDeleteParamsSchema = AdminCandidacyParamsSchema
|
|
95
|
+
export const AdminCandidacyListQuerySchema = ListQuerySchema.extend({
|
|
96
|
+
filter: AdminCandidacySelectSchema.pick({
|
|
97
|
+
personId: true,
|
|
98
|
+
positionId: true
|
|
99
|
+
})
|
|
100
|
+
.extend({
|
|
101
|
+
isClosed: z.boolean().optional()
|
|
102
|
+
})
|
|
103
|
+
.partial()
|
|
104
|
+
.optional()
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
//// types
|
|
108
|
+
|
|
109
|
+
type AdminCandidacy = z.infer<typeof AdminCandidacySelectSchema>
|
|
110
|
+
|
|
111
|
+
// detail
|
|
112
|
+
export type AdminCandidacyParams = z.infer<typeof AdminCandidacyParamsSchema>
|
|
113
|
+
export type AdminCandidacyResult = AdminCandidacy
|
|
114
|
+
|
|
115
|
+
// list
|
|
116
|
+
export type AdminCandidacyListQuery = z.infer<
|
|
117
|
+
typeof AdminCandidacyListQuerySchema
|
|
118
|
+
>
|
|
119
|
+
export type AdminCandidacyListResult = ListResponse<
|
|
120
|
+
z.infer<typeof AdminCandidacySelectSchema>
|
|
121
|
+
>
|
|
122
|
+
|
|
123
|
+
// create
|
|
124
|
+
export type AdminCandidacyCreateInput = z.infer<
|
|
125
|
+
typeof AdminCandidacyCreateSchema
|
|
126
|
+
>
|
|
127
|
+
export type AdminCandidacyCreateResult = Pick<AdminCandidacy, 'id'>
|
|
128
|
+
|
|
129
|
+
// update
|
|
130
|
+
export type AdminCandidacyUpdateParams = z.infer<
|
|
131
|
+
typeof AdminCandidacyUpdateParamsSchema
|
|
132
|
+
>
|
|
133
|
+
export type AdminCandidacyUpdateInput = Partial<AdminCandidacy>
|
|
134
|
+
|
|
135
|
+
// delete
|
|
136
|
+
export type AdminCandidacyDeleteParams = z.infer<
|
|
137
|
+
typeof AdminCandidacyDeleteParamsSchema
|
|
138
|
+
>
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { type ListResponse } from '../../../utils';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AdminClientCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
|
|
4
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5
|
+
name: "id";
|
|
6
|
+
tableName: "clients";
|
|
7
|
+
dataType: "string";
|
|
8
|
+
columnType: "PgUUID";
|
|
9
|
+
data: string;
|
|
10
|
+
driverParam: string;
|
|
11
|
+
notNull: true;
|
|
12
|
+
hasDefault: true;
|
|
13
|
+
isPrimaryKey: true;
|
|
14
|
+
isAutoincrement: false;
|
|
15
|
+
hasRuntimeDefault: false;
|
|
16
|
+
enumValues: undefined;
|
|
17
|
+
baseColumn: never;
|
|
18
|
+
identity: undefined;
|
|
19
|
+
generated: undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
22
|
+
name: "name";
|
|
23
|
+
tableName: "clients";
|
|
24
|
+
dataType: "string";
|
|
25
|
+
columnType: "PgText";
|
|
26
|
+
data: string;
|
|
27
|
+
driverParam: string;
|
|
28
|
+
notNull: true;
|
|
29
|
+
hasDefault: false;
|
|
30
|
+
isPrimaryKey: false;
|
|
31
|
+
isAutoincrement: false;
|
|
32
|
+
hasRuntimeDefault: false;
|
|
33
|
+
enumValues: [string, ...string[]];
|
|
34
|
+
baseColumn: never;
|
|
35
|
+
identity: undefined;
|
|
36
|
+
generated: undefined;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
39
|
+
name: "description";
|
|
40
|
+
tableName: "clients";
|
|
41
|
+
dataType: "string";
|
|
42
|
+
columnType: "PgText";
|
|
43
|
+
data: string;
|
|
44
|
+
driverParam: string;
|
|
45
|
+
notNull: false;
|
|
46
|
+
hasDefault: false;
|
|
47
|
+
isPrimaryKey: false;
|
|
48
|
+
isAutoincrement: false;
|
|
49
|
+
hasRuntimeDefault: false;
|
|
50
|
+
enumValues: [string, ...string[]];
|
|
51
|
+
baseColumn: never;
|
|
52
|
+
identity: undefined;
|
|
53
|
+
generated: undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
isLead: import("drizzle-orm/pg-core").PgColumn<{
|
|
56
|
+
name: "isLead";
|
|
57
|
+
tableName: "clients";
|
|
58
|
+
dataType: "boolean";
|
|
59
|
+
columnType: "PgBoolean";
|
|
60
|
+
data: boolean;
|
|
61
|
+
driverParam: boolean;
|
|
62
|
+
notNull: true;
|
|
63
|
+
hasDefault: true;
|
|
64
|
+
isPrimaryKey: false;
|
|
65
|
+
isAutoincrement: false;
|
|
66
|
+
hasRuntimeDefault: false;
|
|
67
|
+
enumValues: undefined;
|
|
68
|
+
baseColumn: never;
|
|
69
|
+
identity: undefined;
|
|
70
|
+
generated: undefined;
|
|
71
|
+
}, {}, {}>;
|
|
72
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
73
|
+
name: "status";
|
|
74
|
+
tableName: "clients";
|
|
75
|
+
dataType: "string";
|
|
76
|
+
columnType: "PgEnumColumn";
|
|
77
|
+
data: "ACTIVE" | "INACTIVE";
|
|
78
|
+
driverParam: string;
|
|
79
|
+
notNull: false;
|
|
80
|
+
hasDefault: true;
|
|
81
|
+
isPrimaryKey: false;
|
|
82
|
+
isAutoincrement: false;
|
|
83
|
+
hasRuntimeDefault: false;
|
|
84
|
+
enumValues: ["ACTIVE" | "INACTIVE"];
|
|
85
|
+
baseColumn: never;
|
|
86
|
+
identity: undefined;
|
|
87
|
+
generated: undefined;
|
|
88
|
+
}, {}, {}>;
|
|
89
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
90
|
+
name: "deletedAt";
|
|
91
|
+
tableName: "clients";
|
|
92
|
+
dataType: "date";
|
|
93
|
+
columnType: "PgTimestamp";
|
|
94
|
+
data: Date;
|
|
95
|
+
driverParam: string;
|
|
96
|
+
notNull: false;
|
|
97
|
+
hasDefault: false;
|
|
98
|
+
isPrimaryKey: false;
|
|
99
|
+
isAutoincrement: false;
|
|
100
|
+
hasRuntimeDefault: false;
|
|
101
|
+
enumValues: undefined;
|
|
102
|
+
baseColumn: never;
|
|
103
|
+
identity: undefined;
|
|
104
|
+
generated: undefined;
|
|
105
|
+
}, {}, {}>;
|
|
106
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
107
|
+
name: "createdAt";
|
|
108
|
+
tableName: "clients";
|
|
109
|
+
dataType: "date";
|
|
110
|
+
columnType: "PgTimestamp";
|
|
111
|
+
data: Date;
|
|
112
|
+
driverParam: string;
|
|
113
|
+
notNull: true;
|
|
114
|
+
hasDefault: true;
|
|
115
|
+
isPrimaryKey: false;
|
|
116
|
+
isAutoincrement: false;
|
|
117
|
+
hasRuntimeDefault: false;
|
|
118
|
+
enumValues: undefined;
|
|
119
|
+
baseColumn: never;
|
|
120
|
+
identity: undefined;
|
|
121
|
+
generated: undefined;
|
|
122
|
+
}, {}, {}>;
|
|
123
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
124
|
+
name: "updatedAt";
|
|
125
|
+
tableName: "clients";
|
|
126
|
+
dataType: "date";
|
|
127
|
+
columnType: "PgTimestamp";
|
|
128
|
+
data: Date;
|
|
129
|
+
driverParam: string;
|
|
130
|
+
notNull: true;
|
|
131
|
+
hasDefault: true;
|
|
132
|
+
isPrimaryKey: false;
|
|
133
|
+
isAutoincrement: false;
|
|
134
|
+
hasRuntimeDefault: false;
|
|
135
|
+
enumValues: undefined;
|
|
136
|
+
baseColumn: never;
|
|
137
|
+
identity: undefined;
|
|
138
|
+
generated: undefined;
|
|
139
|
+
}, {}, {}>;
|
|
140
|
+
}, undefined, undefined>;
|
|
141
|
+
export declare const AdminClientSelectSchema: z.ZodObject<{
|
|
142
|
+
id: z.ZodUUID;
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
description: z.ZodNullable<z.ZodString>;
|
|
145
|
+
isLead: z.ZodBoolean;
|
|
146
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
147
|
+
ACTIVE: "ACTIVE";
|
|
148
|
+
INACTIVE: "INACTIVE";
|
|
149
|
+
}>>;
|
|
150
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
151
|
+
createdAt: z.ZodDate;
|
|
152
|
+
updatedAt: z.ZodDate;
|
|
153
|
+
_openPositionsCount: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
}, {
|
|
155
|
+
out: {};
|
|
156
|
+
in: {};
|
|
157
|
+
}>;
|
|
158
|
+
export declare const AdminClientUpdateSchema: import("drizzle-zod").BuildSchema<"update", {
|
|
159
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
160
|
+
name: "id";
|
|
161
|
+
tableName: "clients";
|
|
162
|
+
dataType: "string";
|
|
163
|
+
columnType: "PgUUID";
|
|
164
|
+
data: string;
|
|
165
|
+
driverParam: string;
|
|
166
|
+
notNull: true;
|
|
167
|
+
hasDefault: true;
|
|
168
|
+
isPrimaryKey: true;
|
|
169
|
+
isAutoincrement: false;
|
|
170
|
+
hasRuntimeDefault: false;
|
|
171
|
+
enumValues: undefined;
|
|
172
|
+
baseColumn: never;
|
|
173
|
+
identity: undefined;
|
|
174
|
+
generated: undefined;
|
|
175
|
+
}, {}, {}>;
|
|
176
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
177
|
+
name: "name";
|
|
178
|
+
tableName: "clients";
|
|
179
|
+
dataType: "string";
|
|
180
|
+
columnType: "PgText";
|
|
181
|
+
data: string;
|
|
182
|
+
driverParam: string;
|
|
183
|
+
notNull: true;
|
|
184
|
+
hasDefault: false;
|
|
185
|
+
isPrimaryKey: false;
|
|
186
|
+
isAutoincrement: false;
|
|
187
|
+
hasRuntimeDefault: false;
|
|
188
|
+
enumValues: [string, ...string[]];
|
|
189
|
+
baseColumn: never;
|
|
190
|
+
identity: undefined;
|
|
191
|
+
generated: undefined;
|
|
192
|
+
}, {}, {}>;
|
|
193
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
194
|
+
name: "description";
|
|
195
|
+
tableName: "clients";
|
|
196
|
+
dataType: "string";
|
|
197
|
+
columnType: "PgText";
|
|
198
|
+
data: string;
|
|
199
|
+
driverParam: string;
|
|
200
|
+
notNull: false;
|
|
201
|
+
hasDefault: false;
|
|
202
|
+
isPrimaryKey: false;
|
|
203
|
+
isAutoincrement: false;
|
|
204
|
+
hasRuntimeDefault: false;
|
|
205
|
+
enumValues: [string, ...string[]];
|
|
206
|
+
baseColumn: never;
|
|
207
|
+
identity: undefined;
|
|
208
|
+
generated: undefined;
|
|
209
|
+
}, {}, {}>;
|
|
210
|
+
isLead: import("drizzle-orm/pg-core").PgColumn<{
|
|
211
|
+
name: "isLead";
|
|
212
|
+
tableName: "clients";
|
|
213
|
+
dataType: "boolean";
|
|
214
|
+
columnType: "PgBoolean";
|
|
215
|
+
data: boolean;
|
|
216
|
+
driverParam: boolean;
|
|
217
|
+
notNull: true;
|
|
218
|
+
hasDefault: true;
|
|
219
|
+
isPrimaryKey: false;
|
|
220
|
+
isAutoincrement: false;
|
|
221
|
+
hasRuntimeDefault: false;
|
|
222
|
+
enumValues: undefined;
|
|
223
|
+
baseColumn: never;
|
|
224
|
+
identity: undefined;
|
|
225
|
+
generated: undefined;
|
|
226
|
+
}, {}, {}>;
|
|
227
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
228
|
+
name: "status";
|
|
229
|
+
tableName: "clients";
|
|
230
|
+
dataType: "string";
|
|
231
|
+
columnType: "PgEnumColumn";
|
|
232
|
+
data: "ACTIVE" | "INACTIVE";
|
|
233
|
+
driverParam: string;
|
|
234
|
+
notNull: false;
|
|
235
|
+
hasDefault: true;
|
|
236
|
+
isPrimaryKey: false;
|
|
237
|
+
isAutoincrement: false;
|
|
238
|
+
hasRuntimeDefault: false;
|
|
239
|
+
enumValues: ["ACTIVE" | "INACTIVE"];
|
|
240
|
+
baseColumn: never;
|
|
241
|
+
identity: undefined;
|
|
242
|
+
generated: undefined;
|
|
243
|
+
}, {}, {}>;
|
|
244
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
245
|
+
name: "deletedAt";
|
|
246
|
+
tableName: "clients";
|
|
247
|
+
dataType: "date";
|
|
248
|
+
columnType: "PgTimestamp";
|
|
249
|
+
data: Date;
|
|
250
|
+
driverParam: string;
|
|
251
|
+
notNull: false;
|
|
252
|
+
hasDefault: false;
|
|
253
|
+
isPrimaryKey: false;
|
|
254
|
+
isAutoincrement: false;
|
|
255
|
+
hasRuntimeDefault: false;
|
|
256
|
+
enumValues: undefined;
|
|
257
|
+
baseColumn: never;
|
|
258
|
+
identity: undefined;
|
|
259
|
+
generated: undefined;
|
|
260
|
+
}, {}, {}>;
|
|
261
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
262
|
+
name: "createdAt";
|
|
263
|
+
tableName: "clients";
|
|
264
|
+
dataType: "date";
|
|
265
|
+
columnType: "PgTimestamp";
|
|
266
|
+
data: Date;
|
|
267
|
+
driverParam: string;
|
|
268
|
+
notNull: true;
|
|
269
|
+
hasDefault: true;
|
|
270
|
+
isPrimaryKey: false;
|
|
271
|
+
isAutoincrement: false;
|
|
272
|
+
hasRuntimeDefault: false;
|
|
273
|
+
enumValues: undefined;
|
|
274
|
+
baseColumn: never;
|
|
275
|
+
identity: undefined;
|
|
276
|
+
generated: undefined;
|
|
277
|
+
}, {}, {}>;
|
|
278
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
279
|
+
name: "updatedAt";
|
|
280
|
+
tableName: "clients";
|
|
281
|
+
dataType: "date";
|
|
282
|
+
columnType: "PgTimestamp";
|
|
283
|
+
data: Date;
|
|
284
|
+
driverParam: string;
|
|
285
|
+
notNull: true;
|
|
286
|
+
hasDefault: true;
|
|
287
|
+
isPrimaryKey: false;
|
|
288
|
+
isAutoincrement: false;
|
|
289
|
+
hasRuntimeDefault: false;
|
|
290
|
+
enumValues: undefined;
|
|
291
|
+
baseColumn: never;
|
|
292
|
+
identity: undefined;
|
|
293
|
+
generated: undefined;
|
|
294
|
+
}, {}, {}>;
|
|
295
|
+
}, undefined, undefined>;
|
|
296
|
+
export declare const AdminClientParamsSchema: z.ZodObject<{
|
|
297
|
+
id: z.ZodUUID;
|
|
298
|
+
}, {
|
|
299
|
+
out: {};
|
|
300
|
+
in: {};
|
|
301
|
+
}>;
|
|
302
|
+
export declare const AdminClientListQuerySchema: z.ZodObject<{
|
|
303
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
sort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
306
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
308
|
+
ACTIVE: "ACTIVE";
|
|
309
|
+
INACTIVE: "INACTIVE";
|
|
310
|
+
}>>>;
|
|
311
|
+
isLead: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
}, {
|
|
313
|
+
out: {};
|
|
314
|
+
in: {};
|
|
315
|
+
}>>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
export declare const AdminClientUpdateParamsSchema: z.ZodObject<{
|
|
318
|
+
id: z.ZodUUID;
|
|
319
|
+
}, {
|
|
320
|
+
out: {};
|
|
321
|
+
in: {};
|
|
322
|
+
}>;
|
|
323
|
+
export declare const AdminClientDeleteParamsSchema: z.ZodObject<{
|
|
324
|
+
id: z.ZodUUID;
|
|
325
|
+
}, {
|
|
326
|
+
out: {};
|
|
327
|
+
in: {};
|
|
328
|
+
}>;
|
|
329
|
+
type AdminClient = z.infer<typeof AdminClientSelectSchema>;
|
|
330
|
+
export type AdminClientParams = z.infer<typeof AdminClientParamsSchema>;
|
|
331
|
+
export type AdminClientResult = AdminClient;
|
|
332
|
+
export type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>;
|
|
333
|
+
export type AdminClientListResult = ListResponse<z.infer<typeof AdminClientSelectSchema>>;
|
|
334
|
+
export type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>;
|
|
335
|
+
export type AdminClientCreateResult = Pick<AdminClient, 'id'>;
|
|
336
|
+
export type AdminClientUpdateParams = z.infer<typeof AdminClientUpdateParamsSchema>;
|
|
337
|
+
export type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>;
|
|
338
|
+
export type AdminClientDeleteParams = z.infer<typeof AdminClientDeleteParamsSchema>;
|
|
339
|
+
export {};
|
|
340
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAI1B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA6B,CAAA;AACjE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EAElC,CAAA;AACF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA6B,CAAA;AAEjE,eAAO,MAAM,uBAAuB;;;;;EAElC,CAAA;AACF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAarC,CAAA;AACF,eAAO,MAAM,6BAA6B;;;;;EAA0B,CAAA;AACpE,eAAO,MAAM,6BAA6B;;;;;EAA0B,CAAA;AAIpE,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAG1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvE,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAA;AAG3C,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAC7E,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAC9C,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CACxC,CAAA;AAGD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAC5E,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;AAG7D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAG5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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;
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAmD;AACnD,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAA;AACpD,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,MAAM,CAAC;IACvE,mBAAmB,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA;AACW,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAA;AAEpD,QAAA,uBAAuB,GAAG,+BAAuB,CAAC,IAAI,CAAC;IAClE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAC/D,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,IAAI,CAAC,qBAAc,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC9D,CAAC;SACD,KAAK,CACJ,IAAA,gCAAkB,EAAC,aAAM,CAAC;SACvB,IAAI,CAAC;QACJ,MAAM,EAAE,IAAI;KACb,CAAC;SACD,OAAO,EAAE,CACb;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,6BAA6B,GAAG,+BAAuB,CAAA;AACvD,QAAA,6BAA6B,GAAG,+BAAuB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { client, ClientStatuses } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminClientCreateSchema = createInsertSchema(client)\nexport const AdminClientSelectSchema = createSelectSchema(client).extend({\n _openPositionsCount: z.number().optional()\n})\nexport const AdminClientUpdateSchema = createUpdateSchema(client)\n\nexport const AdminClientParamsSchema = AdminClientSelectSchema.pick({\n id: true\n})\nexport const AdminClientListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n status: z.array(z.enum(ClientStatuses.enumValues)).optional()\n })\n .merge(\n createSelectSchema(client)\n .pick({\n isLead: true\n })\n .partial()\n )\n .optional()\n})\nexport const AdminClientUpdateParamsSchema = AdminClientParamsSchema\nexport const AdminClientDeleteParamsSchema = AdminClientParamsSchema\n\n//// types\n\ntype AdminClient = z.infer<typeof AdminClientSelectSchema>\n\n// detail\nexport type AdminClientParams = z.infer<typeof AdminClientParamsSchema>\nexport type AdminClientResult = AdminClient\n\n// list\nexport type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>\nexport type AdminClientListResult = ListResponse<\n z.infer<typeof AdminClientSelectSchema>\n>\n\n// create\nexport type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>\nexport type AdminClientCreateResult = Pick<AdminClient, 'id'>\n\n// update\nexport type AdminClientUpdateParams = z.infer<\n typeof AdminClientUpdateParamsSchema\n>\nexport type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>\n\n// delete\nexport type AdminClientDeleteParams = z.infer<\n typeof AdminClientDeleteParamsSchema\n>\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createInsertSchema,
|
|
3
|
+
createSelectSchema,
|
|
4
|
+
createUpdateSchema
|
|
5
|
+
} from 'drizzle-zod'
|
|
6
|
+
import { client, ClientStatuses } from '../../core'
|
|
7
|
+
import { ListQuerySchema, type ListResponse } from '../../../utils'
|
|
8
|
+
import { z } from 'zod/v4'
|
|
9
|
+
|
|
10
|
+
//// validators
|
|
11
|
+
|
|
12
|
+
export const AdminClientCreateSchema = createInsertSchema(client)
|
|
13
|
+
export const AdminClientSelectSchema = createSelectSchema(client).extend({
|
|
14
|
+
_openPositionsCount: z.number().optional()
|
|
15
|
+
})
|
|
16
|
+
export const AdminClientUpdateSchema = createUpdateSchema(client)
|
|
17
|
+
|
|
18
|
+
export const AdminClientParamsSchema = AdminClientSelectSchema.pick({
|
|
19
|
+
id: true
|
|
20
|
+
})
|
|
21
|
+
export const AdminClientListQuerySchema = ListQuerySchema.extend({
|
|
22
|
+
filter: z
|
|
23
|
+
.object({
|
|
24
|
+
status: z.array(z.enum(ClientStatuses.enumValues)).optional()
|
|
25
|
+
})
|
|
26
|
+
.merge(
|
|
27
|
+
createSelectSchema(client)
|
|
28
|
+
.pick({
|
|
29
|
+
isLead: true
|
|
30
|
+
})
|
|
31
|
+
.partial()
|
|
32
|
+
)
|
|
33
|
+
.optional()
|
|
34
|
+
})
|
|
35
|
+
export const AdminClientUpdateParamsSchema = AdminClientParamsSchema
|
|
36
|
+
export const AdminClientDeleteParamsSchema = AdminClientParamsSchema
|
|
37
|
+
|
|
38
|
+
//// types
|
|
39
|
+
|
|
40
|
+
type AdminClient = z.infer<typeof AdminClientSelectSchema>
|
|
41
|
+
|
|
42
|
+
// detail
|
|
43
|
+
export type AdminClientParams = z.infer<typeof AdminClientParamsSchema>
|
|
44
|
+
export type AdminClientResult = AdminClient
|
|
45
|
+
|
|
46
|
+
// list
|
|
47
|
+
export type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>
|
|
48
|
+
export type AdminClientListResult = ListResponse<
|
|
49
|
+
z.infer<typeof AdminClientSelectSchema>
|
|
50
|
+
>
|
|
51
|
+
|
|
52
|
+
// create
|
|
53
|
+
export type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>
|
|
54
|
+
export type AdminClientCreateResult = Pick<AdminClient, 'id'>
|
|
55
|
+
|
|
56
|
+
// update
|
|
57
|
+
export type AdminClientUpdateParams = z.infer<
|
|
58
|
+
typeof AdminClientUpdateParamsSchema
|
|
59
|
+
>
|
|
60
|
+
export type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>
|
|
61
|
+
|
|
62
|
+
// delete
|
|
63
|
+
export type AdminClientDeleteParams = z.infer<
|
|
64
|
+
typeof AdminClientDeleteParamsSchema
|
|
65
|
+
>
|