@jobsearch-works/firestore-models 2.4.10 → 3.0.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.d.mts +146 -117
- package/dist/index.d.ts +146 -117
- package/dist/index.js +0 -4
- package/dist/index.mjs +0 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -640,6 +640,74 @@ interface VacancySuggestion {
|
|
|
640
640
|
createdAt?: Date | string;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
+
interface Education {
|
|
644
|
+
degree: string;
|
|
645
|
+
fieldOfStudy: string;
|
|
646
|
+
institution: string;
|
|
647
|
+
startDate: string | null;
|
|
648
|
+
endDate: string | null;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
interface WorkExperience {
|
|
652
|
+
jobTitle: string;
|
|
653
|
+
company: string;
|
|
654
|
+
startDate: string;
|
|
655
|
+
endDate: string;
|
|
656
|
+
description: string;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
interface Certification {
|
|
660
|
+
name: string;
|
|
661
|
+
organization: string;
|
|
662
|
+
issueDate: string;
|
|
663
|
+
expirationDate?: string;
|
|
664
|
+
credentialId?: string;
|
|
665
|
+
verificationUrl?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
interface Language {
|
|
669
|
+
language: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
interface Project {
|
|
673
|
+
projectName: string;
|
|
674
|
+
description: string;
|
|
675
|
+
technologies: string[];
|
|
676
|
+
startDate: string;
|
|
677
|
+
endDate: string;
|
|
678
|
+
url: string | null;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
type Skill = string;
|
|
682
|
+
|
|
683
|
+
type Summary = string | null;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Subcollection document under Client
|
|
687
|
+
* Path: clients/{clientId}/resumes/{docId}
|
|
688
|
+
* @see Client - Parent document
|
|
689
|
+
*
|
|
690
|
+
* @description Represents a client's resume document.
|
|
691
|
+
*/
|
|
692
|
+
interface ClientResume {
|
|
693
|
+
readonly id?: string;
|
|
694
|
+
jobTitle?: string;
|
|
695
|
+
skills?: Skill[];
|
|
696
|
+
education?: Education[];
|
|
697
|
+
experience?: WorkExperience[];
|
|
698
|
+
certifications?: Certification[];
|
|
699
|
+
languages?: Language[];
|
|
700
|
+
projects?: Project[];
|
|
701
|
+
summary?: Summary;
|
|
702
|
+
github?: string;
|
|
703
|
+
linkedin?: string;
|
|
704
|
+
website?: string;
|
|
705
|
+
createdAt: Date | string;
|
|
706
|
+
updatedAt: Date | string;
|
|
707
|
+
storagePath?: string;
|
|
708
|
+
additionalInfo?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
643
711
|
declare const ApplicationStatus: {
|
|
644
712
|
readonly New: "new";
|
|
645
713
|
readonly Submitted: "submitted";
|
|
@@ -659,7 +727,7 @@ interface Application {
|
|
|
659
727
|
status: ApplicationStatus;
|
|
660
728
|
assignedTo?: string;
|
|
661
729
|
coverLetter?: string;
|
|
662
|
-
resume?:
|
|
730
|
+
resume?: ClientResume;
|
|
663
731
|
submittedAt?: Date | string;
|
|
664
732
|
interviewingAt?: Date | string;
|
|
665
733
|
acceptedAt?: Date | string;
|
|
@@ -696,52 +764,37 @@ interface ApplicationQuestion {
|
|
|
696
764
|
action?: string;
|
|
697
765
|
}
|
|
698
766
|
|
|
699
|
-
interface ClientCompanyPreferences {
|
|
700
|
-
companyId?: string;
|
|
701
|
-
name: string;
|
|
702
|
-
careersUrl: string;
|
|
703
|
-
location: string;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
interface ClientLanguage {
|
|
707
|
-
readonly language: string;
|
|
708
|
-
readonly level: string;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
interface ClientCertifications {
|
|
712
|
-
readonly name: string;
|
|
713
|
-
readonly date: Date;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
interface ClientSkill {
|
|
717
|
-
readonly name: string;
|
|
718
|
-
readonly level: string;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
interface ClientEducation {
|
|
722
|
-
readonly schoolName: string;
|
|
723
|
-
readonly degree: string;
|
|
724
|
-
readonly fieldOfStudy: string;
|
|
725
|
-
readonly startDate: Date;
|
|
726
|
-
readonly endDate: Date;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
interface ClientWorkExperience {
|
|
730
|
-
readonly companyName: string;
|
|
731
|
-
readonly position: string;
|
|
732
|
-
readonly startDate: Date;
|
|
733
|
-
readonly endDate: Date;
|
|
734
|
-
readonly description: string;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
767
|
/**
|
|
738
768
|
* Embedded sub-object within Client document
|
|
739
769
|
* @see Client - Parent document interface
|
|
740
770
|
*/
|
|
741
|
-
interface
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
771
|
+
interface ClientPersonalData {
|
|
772
|
+
id?: string;
|
|
773
|
+
firstName: string;
|
|
774
|
+
lastName: string;
|
|
775
|
+
middleName?: string;
|
|
776
|
+
preferredName?: string;
|
|
777
|
+
email: string;
|
|
778
|
+
phone: string;
|
|
779
|
+
address: string;
|
|
780
|
+
city: string;
|
|
781
|
+
suburb: string;
|
|
782
|
+
state: string;
|
|
783
|
+
postcode: string;
|
|
784
|
+
country: string;
|
|
785
|
+
linkedIn?: string;
|
|
786
|
+
countryPhoneCode: string;
|
|
787
|
+
nationality: string;
|
|
788
|
+
dateOfBirth?: Date | string;
|
|
789
|
+
ethnicity?: string;
|
|
790
|
+
disabilityStatus?: string;
|
|
791
|
+
securityClearance?: string;
|
|
792
|
+
createdAt?: Date | string;
|
|
793
|
+
updatedAt?: Date | string;
|
|
794
|
+
photoUrl?: string;
|
|
795
|
+
personalWebsite?: string;
|
|
796
|
+
portfolioUrl?: string;
|
|
797
|
+
professionalTitle?: string;
|
|
745
798
|
}
|
|
746
799
|
|
|
747
800
|
/**
|
|
@@ -770,32 +823,13 @@ interface ClientJobPreferences {
|
|
|
770
823
|
* Embedded sub-object within Client document
|
|
771
824
|
* @see Client - Parent document interface
|
|
772
825
|
*/
|
|
773
|
-
interface
|
|
774
|
-
id?: string;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
middleName?: string;
|
|
778
|
-
preferredName?: string;
|
|
779
|
-
email: string;
|
|
780
|
-
phone: string;
|
|
781
|
-
address: string;
|
|
782
|
-
city: string;
|
|
783
|
-
suburb: string;
|
|
784
|
-
state: string;
|
|
785
|
-
postcode: string;
|
|
786
|
-
country: string;
|
|
787
|
-
linkedIn?: string;
|
|
788
|
-
countryPhoneCode: string;
|
|
789
|
-
nationality: string;
|
|
790
|
-
dateOfBirth?: Date | string;
|
|
791
|
-
ethnicity?: string;
|
|
792
|
-
disabilityStatus?: string;
|
|
793
|
-
securityClearance?: string;
|
|
794
|
-
createdAt?: Date | string;
|
|
795
|
-
updatedAt?: Date | string;
|
|
826
|
+
interface ClientWebsitePreferences {
|
|
827
|
+
readonly id?: string;
|
|
828
|
+
theme: string;
|
|
829
|
+
notifications: string;
|
|
796
830
|
}
|
|
797
831
|
|
|
798
|
-
type ClientStatus = typeof ClientStatusEnum[keyof typeof ClientStatusEnum];
|
|
832
|
+
type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
|
|
799
833
|
/**
|
|
800
834
|
* Root Client document
|
|
801
835
|
* Path: clients/{clientId}
|
|
@@ -809,12 +843,7 @@ interface Client {
|
|
|
809
843
|
readonly personalData?: ClientPersonalData;
|
|
810
844
|
readonly jobPreferences?: ClientJobPreferences;
|
|
811
845
|
readonly websitePreferences?: ClientWebsitePreferences;
|
|
812
|
-
|
|
813
|
-
readonly education?: ClientEducation[];
|
|
814
|
-
readonly skills?: ClientSkill[];
|
|
815
|
-
readonly certifications?: ClientCertifications;
|
|
816
|
-
readonly languages?: ClientLanguage[];
|
|
817
|
-
readonly clientCompanyPreferences?: ClientCompanyPreferences[];
|
|
846
|
+
resume: ClientResume;
|
|
818
847
|
readonly createdAt?: Date | string;
|
|
819
848
|
}
|
|
820
849
|
|
|
@@ -879,45 +908,6 @@ interface ClientQuestion {
|
|
|
879
908
|
vacancyId?: string;
|
|
880
909
|
}
|
|
881
910
|
|
|
882
|
-
/**
|
|
883
|
-
* Subcollection document under Client
|
|
884
|
-
* Path: clients/{clientId}/resumes/{docId}
|
|
885
|
-
* @see Client - Parent document
|
|
886
|
-
*
|
|
887
|
-
* @description Represents a client's resume document.
|
|
888
|
-
* @author [Your Name]
|
|
889
|
-
* @version 1.0.0
|
|
890
|
-
* @since [Date]
|
|
891
|
-
*/
|
|
892
|
-
interface ClientResume {
|
|
893
|
-
readonly id?: string;
|
|
894
|
-
title: string;
|
|
895
|
-
createdAt: Date | string;
|
|
896
|
-
updatedAt: Date | string;
|
|
897
|
-
format: string;
|
|
898
|
-
storagePath: string;
|
|
899
|
-
notes: string;
|
|
900
|
-
isActive: boolean;
|
|
901
|
-
clientId: string;
|
|
902
|
-
about: {
|
|
903
|
-
summary: string;
|
|
904
|
-
};
|
|
905
|
-
education: Array<{
|
|
906
|
-
school: string;
|
|
907
|
-
degree: string;
|
|
908
|
-
field: string;
|
|
909
|
-
startDate: Date | string;
|
|
910
|
-
endDate?: Date | string;
|
|
911
|
-
}>;
|
|
912
|
-
workExperience: Array<{
|
|
913
|
-
company: string;
|
|
914
|
-
role: string;
|
|
915
|
-
startDate: Date | string;
|
|
916
|
-
endDate?: Date | string;
|
|
917
|
-
description: string;
|
|
918
|
-
}>;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
911
|
/**
|
|
922
912
|
* Subcollection document under Client
|
|
923
913
|
* Path: clients/{clientId}/applications/{applicationId}/virtualInterview/{interviewId}
|
|
@@ -940,6 +930,49 @@ interface ClientVirtualInterview {
|
|
|
940
930
|
}>;
|
|
941
931
|
}
|
|
942
932
|
|
|
933
|
+
interface Award {
|
|
934
|
+
readonly name: string;
|
|
935
|
+
readonly organization: string;
|
|
936
|
+
readonly date: Date | string;
|
|
937
|
+
readonly description?: string;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
interface Publication {
|
|
941
|
+
readonly title: string;
|
|
942
|
+
readonly venue: string;
|
|
943
|
+
readonly date: Date | string;
|
|
944
|
+
readonly coAuthors?: string[];
|
|
945
|
+
readonly url?: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface Reference {
|
|
949
|
+
readonly name: string;
|
|
950
|
+
readonly title: string;
|
|
951
|
+
readonly company: string;
|
|
952
|
+
readonly relationship: string;
|
|
953
|
+
readonly contactInfo: {
|
|
954
|
+
email?: string;
|
|
955
|
+
phone?: string;
|
|
956
|
+
};
|
|
957
|
+
readonly highlights?: string;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
interface VolunteerEntry {
|
|
961
|
+
readonly organization: string;
|
|
962
|
+
readonly role: string;
|
|
963
|
+
readonly startDate: Date | string;
|
|
964
|
+
readonly endDate?: Date | string;
|
|
965
|
+
readonly responsibilities?: string;
|
|
966
|
+
readonly achievements?: string;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
interface ClientCompanyPreferences {
|
|
970
|
+
companyId?: string;
|
|
971
|
+
name: string;
|
|
972
|
+
careersUrl: string;
|
|
973
|
+
location: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
943
976
|
/**
|
|
944
977
|
* Subcollection document under clients/{userId}/access_tokens/{provider}
|
|
945
978
|
*/
|
|
@@ -1005,10 +1038,6 @@ declare const firestorePaths: {
|
|
|
1005
1038
|
readonly collection: (clientId: string) => string;
|
|
1006
1039
|
readonly doc: (clientId: string, loginId: string) => string;
|
|
1007
1040
|
};
|
|
1008
|
-
readonly resumes: {
|
|
1009
|
-
readonly collection: (clientId: string) => string;
|
|
1010
|
-
readonly doc: (clientId: string, resumeId: string) => string;
|
|
1011
|
-
};
|
|
1012
1041
|
readonly applications: {
|
|
1013
1042
|
readonly collection: (clientId: string) => string;
|
|
1014
1043
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
@@ -1060,4 +1089,4 @@ declare const firestorePaths: {
|
|
|
1060
1089
|
};
|
|
1061
1090
|
};
|
|
1062
1091
|
|
|
1063
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1092
|
+
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Award, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, Education, EmailCategory, FirestoreTimestamp, JobCategory, JobTitle, Language, LocationId, Project, Publication, Reference, Skill, Summary, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, VolunteerEntry, WorkExperience, countries, firestorePaths, jobClassifications, locations };
|
package/dist/index.d.ts
CHANGED
|
@@ -640,6 +640,74 @@ interface VacancySuggestion {
|
|
|
640
640
|
createdAt?: Date | string;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
+
interface Education {
|
|
644
|
+
degree: string;
|
|
645
|
+
fieldOfStudy: string;
|
|
646
|
+
institution: string;
|
|
647
|
+
startDate: string | null;
|
|
648
|
+
endDate: string | null;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
interface WorkExperience {
|
|
652
|
+
jobTitle: string;
|
|
653
|
+
company: string;
|
|
654
|
+
startDate: string;
|
|
655
|
+
endDate: string;
|
|
656
|
+
description: string;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
interface Certification {
|
|
660
|
+
name: string;
|
|
661
|
+
organization: string;
|
|
662
|
+
issueDate: string;
|
|
663
|
+
expirationDate?: string;
|
|
664
|
+
credentialId?: string;
|
|
665
|
+
verificationUrl?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
interface Language {
|
|
669
|
+
language: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
interface Project {
|
|
673
|
+
projectName: string;
|
|
674
|
+
description: string;
|
|
675
|
+
technologies: string[];
|
|
676
|
+
startDate: string;
|
|
677
|
+
endDate: string;
|
|
678
|
+
url: string | null;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
type Skill = string;
|
|
682
|
+
|
|
683
|
+
type Summary = string | null;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Subcollection document under Client
|
|
687
|
+
* Path: clients/{clientId}/resumes/{docId}
|
|
688
|
+
* @see Client - Parent document
|
|
689
|
+
*
|
|
690
|
+
* @description Represents a client's resume document.
|
|
691
|
+
*/
|
|
692
|
+
interface ClientResume {
|
|
693
|
+
readonly id?: string;
|
|
694
|
+
jobTitle?: string;
|
|
695
|
+
skills?: Skill[];
|
|
696
|
+
education?: Education[];
|
|
697
|
+
experience?: WorkExperience[];
|
|
698
|
+
certifications?: Certification[];
|
|
699
|
+
languages?: Language[];
|
|
700
|
+
projects?: Project[];
|
|
701
|
+
summary?: Summary;
|
|
702
|
+
github?: string;
|
|
703
|
+
linkedin?: string;
|
|
704
|
+
website?: string;
|
|
705
|
+
createdAt: Date | string;
|
|
706
|
+
updatedAt: Date | string;
|
|
707
|
+
storagePath?: string;
|
|
708
|
+
additionalInfo?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
643
711
|
declare const ApplicationStatus: {
|
|
644
712
|
readonly New: "new";
|
|
645
713
|
readonly Submitted: "submitted";
|
|
@@ -659,7 +727,7 @@ interface Application {
|
|
|
659
727
|
status: ApplicationStatus;
|
|
660
728
|
assignedTo?: string;
|
|
661
729
|
coverLetter?: string;
|
|
662
|
-
resume?:
|
|
730
|
+
resume?: ClientResume;
|
|
663
731
|
submittedAt?: Date | string;
|
|
664
732
|
interviewingAt?: Date | string;
|
|
665
733
|
acceptedAt?: Date | string;
|
|
@@ -696,52 +764,37 @@ interface ApplicationQuestion {
|
|
|
696
764
|
action?: string;
|
|
697
765
|
}
|
|
698
766
|
|
|
699
|
-
interface ClientCompanyPreferences {
|
|
700
|
-
companyId?: string;
|
|
701
|
-
name: string;
|
|
702
|
-
careersUrl: string;
|
|
703
|
-
location: string;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
interface ClientLanguage {
|
|
707
|
-
readonly language: string;
|
|
708
|
-
readonly level: string;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
interface ClientCertifications {
|
|
712
|
-
readonly name: string;
|
|
713
|
-
readonly date: Date;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
interface ClientSkill {
|
|
717
|
-
readonly name: string;
|
|
718
|
-
readonly level: string;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
interface ClientEducation {
|
|
722
|
-
readonly schoolName: string;
|
|
723
|
-
readonly degree: string;
|
|
724
|
-
readonly fieldOfStudy: string;
|
|
725
|
-
readonly startDate: Date;
|
|
726
|
-
readonly endDate: Date;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
interface ClientWorkExperience {
|
|
730
|
-
readonly companyName: string;
|
|
731
|
-
readonly position: string;
|
|
732
|
-
readonly startDate: Date;
|
|
733
|
-
readonly endDate: Date;
|
|
734
|
-
readonly description: string;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
767
|
/**
|
|
738
768
|
* Embedded sub-object within Client document
|
|
739
769
|
* @see Client - Parent document interface
|
|
740
770
|
*/
|
|
741
|
-
interface
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
771
|
+
interface ClientPersonalData {
|
|
772
|
+
id?: string;
|
|
773
|
+
firstName: string;
|
|
774
|
+
lastName: string;
|
|
775
|
+
middleName?: string;
|
|
776
|
+
preferredName?: string;
|
|
777
|
+
email: string;
|
|
778
|
+
phone: string;
|
|
779
|
+
address: string;
|
|
780
|
+
city: string;
|
|
781
|
+
suburb: string;
|
|
782
|
+
state: string;
|
|
783
|
+
postcode: string;
|
|
784
|
+
country: string;
|
|
785
|
+
linkedIn?: string;
|
|
786
|
+
countryPhoneCode: string;
|
|
787
|
+
nationality: string;
|
|
788
|
+
dateOfBirth?: Date | string;
|
|
789
|
+
ethnicity?: string;
|
|
790
|
+
disabilityStatus?: string;
|
|
791
|
+
securityClearance?: string;
|
|
792
|
+
createdAt?: Date | string;
|
|
793
|
+
updatedAt?: Date | string;
|
|
794
|
+
photoUrl?: string;
|
|
795
|
+
personalWebsite?: string;
|
|
796
|
+
portfolioUrl?: string;
|
|
797
|
+
professionalTitle?: string;
|
|
745
798
|
}
|
|
746
799
|
|
|
747
800
|
/**
|
|
@@ -770,32 +823,13 @@ interface ClientJobPreferences {
|
|
|
770
823
|
* Embedded sub-object within Client document
|
|
771
824
|
* @see Client - Parent document interface
|
|
772
825
|
*/
|
|
773
|
-
interface
|
|
774
|
-
id?: string;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
middleName?: string;
|
|
778
|
-
preferredName?: string;
|
|
779
|
-
email: string;
|
|
780
|
-
phone: string;
|
|
781
|
-
address: string;
|
|
782
|
-
city: string;
|
|
783
|
-
suburb: string;
|
|
784
|
-
state: string;
|
|
785
|
-
postcode: string;
|
|
786
|
-
country: string;
|
|
787
|
-
linkedIn?: string;
|
|
788
|
-
countryPhoneCode: string;
|
|
789
|
-
nationality: string;
|
|
790
|
-
dateOfBirth?: Date | string;
|
|
791
|
-
ethnicity?: string;
|
|
792
|
-
disabilityStatus?: string;
|
|
793
|
-
securityClearance?: string;
|
|
794
|
-
createdAt?: Date | string;
|
|
795
|
-
updatedAt?: Date | string;
|
|
826
|
+
interface ClientWebsitePreferences {
|
|
827
|
+
readonly id?: string;
|
|
828
|
+
theme: string;
|
|
829
|
+
notifications: string;
|
|
796
830
|
}
|
|
797
831
|
|
|
798
|
-
type ClientStatus = typeof ClientStatusEnum[keyof typeof ClientStatusEnum];
|
|
832
|
+
type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
|
|
799
833
|
/**
|
|
800
834
|
* Root Client document
|
|
801
835
|
* Path: clients/{clientId}
|
|
@@ -809,12 +843,7 @@ interface Client {
|
|
|
809
843
|
readonly personalData?: ClientPersonalData;
|
|
810
844
|
readonly jobPreferences?: ClientJobPreferences;
|
|
811
845
|
readonly websitePreferences?: ClientWebsitePreferences;
|
|
812
|
-
|
|
813
|
-
readonly education?: ClientEducation[];
|
|
814
|
-
readonly skills?: ClientSkill[];
|
|
815
|
-
readonly certifications?: ClientCertifications;
|
|
816
|
-
readonly languages?: ClientLanguage[];
|
|
817
|
-
readonly clientCompanyPreferences?: ClientCompanyPreferences[];
|
|
846
|
+
resume: ClientResume;
|
|
818
847
|
readonly createdAt?: Date | string;
|
|
819
848
|
}
|
|
820
849
|
|
|
@@ -879,45 +908,6 @@ interface ClientQuestion {
|
|
|
879
908
|
vacancyId?: string;
|
|
880
909
|
}
|
|
881
910
|
|
|
882
|
-
/**
|
|
883
|
-
* Subcollection document under Client
|
|
884
|
-
* Path: clients/{clientId}/resumes/{docId}
|
|
885
|
-
* @see Client - Parent document
|
|
886
|
-
*
|
|
887
|
-
* @description Represents a client's resume document.
|
|
888
|
-
* @author [Your Name]
|
|
889
|
-
* @version 1.0.0
|
|
890
|
-
* @since [Date]
|
|
891
|
-
*/
|
|
892
|
-
interface ClientResume {
|
|
893
|
-
readonly id?: string;
|
|
894
|
-
title: string;
|
|
895
|
-
createdAt: Date | string;
|
|
896
|
-
updatedAt: Date | string;
|
|
897
|
-
format: string;
|
|
898
|
-
storagePath: string;
|
|
899
|
-
notes: string;
|
|
900
|
-
isActive: boolean;
|
|
901
|
-
clientId: string;
|
|
902
|
-
about: {
|
|
903
|
-
summary: string;
|
|
904
|
-
};
|
|
905
|
-
education: Array<{
|
|
906
|
-
school: string;
|
|
907
|
-
degree: string;
|
|
908
|
-
field: string;
|
|
909
|
-
startDate: Date | string;
|
|
910
|
-
endDate?: Date | string;
|
|
911
|
-
}>;
|
|
912
|
-
workExperience: Array<{
|
|
913
|
-
company: string;
|
|
914
|
-
role: string;
|
|
915
|
-
startDate: Date | string;
|
|
916
|
-
endDate?: Date | string;
|
|
917
|
-
description: string;
|
|
918
|
-
}>;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
911
|
/**
|
|
922
912
|
* Subcollection document under Client
|
|
923
913
|
* Path: clients/{clientId}/applications/{applicationId}/virtualInterview/{interviewId}
|
|
@@ -940,6 +930,49 @@ interface ClientVirtualInterview {
|
|
|
940
930
|
}>;
|
|
941
931
|
}
|
|
942
932
|
|
|
933
|
+
interface Award {
|
|
934
|
+
readonly name: string;
|
|
935
|
+
readonly organization: string;
|
|
936
|
+
readonly date: Date | string;
|
|
937
|
+
readonly description?: string;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
interface Publication {
|
|
941
|
+
readonly title: string;
|
|
942
|
+
readonly venue: string;
|
|
943
|
+
readonly date: Date | string;
|
|
944
|
+
readonly coAuthors?: string[];
|
|
945
|
+
readonly url?: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface Reference {
|
|
949
|
+
readonly name: string;
|
|
950
|
+
readonly title: string;
|
|
951
|
+
readonly company: string;
|
|
952
|
+
readonly relationship: string;
|
|
953
|
+
readonly contactInfo: {
|
|
954
|
+
email?: string;
|
|
955
|
+
phone?: string;
|
|
956
|
+
};
|
|
957
|
+
readonly highlights?: string;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
interface VolunteerEntry {
|
|
961
|
+
readonly organization: string;
|
|
962
|
+
readonly role: string;
|
|
963
|
+
readonly startDate: Date | string;
|
|
964
|
+
readonly endDate?: Date | string;
|
|
965
|
+
readonly responsibilities?: string;
|
|
966
|
+
readonly achievements?: string;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
interface ClientCompanyPreferences {
|
|
970
|
+
companyId?: string;
|
|
971
|
+
name: string;
|
|
972
|
+
careersUrl: string;
|
|
973
|
+
location: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
943
976
|
/**
|
|
944
977
|
* Subcollection document under clients/{userId}/access_tokens/{provider}
|
|
945
978
|
*/
|
|
@@ -1005,10 +1038,6 @@ declare const firestorePaths: {
|
|
|
1005
1038
|
readonly collection: (clientId: string) => string;
|
|
1006
1039
|
readonly doc: (clientId: string, loginId: string) => string;
|
|
1007
1040
|
};
|
|
1008
|
-
readonly resumes: {
|
|
1009
|
-
readonly collection: (clientId: string) => string;
|
|
1010
|
-
readonly doc: (clientId: string, resumeId: string) => string;
|
|
1011
|
-
};
|
|
1012
1041
|
readonly applications: {
|
|
1013
1042
|
readonly collection: (clientId: string) => string;
|
|
1014
1043
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
@@ -1060,4 +1089,4 @@ declare const firestorePaths: {
|
|
|
1060
1089
|
};
|
|
1061
1090
|
};
|
|
1062
1091
|
|
|
1063
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1092
|
+
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Award, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, Education, EmailCategory, FirestoreTimestamp, JobCategory, JobTitle, Language, LocationId, Project, Publication, Reference, Skill, Summary, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, VolunteerEntry, WorkExperience, countries, firestorePaths, jobClassifications, locations };
|
package/dist/index.js
CHANGED
|
@@ -1296,10 +1296,6 @@ var firestorePaths = {
|
|
|
1296
1296
|
collection: (clientId) => `clients/${clientId}/logins`,
|
|
1297
1297
|
doc: (clientId, loginId) => `clients/${clientId}/logins/${loginId}`
|
|
1298
1298
|
},
|
|
1299
|
-
resumes: {
|
|
1300
|
-
collection: (clientId) => `clients/${clientId}/resumes`,
|
|
1301
|
-
doc: (clientId, resumeId) => `clients/${clientId}/resumes/${resumeId}`
|
|
1302
|
-
},
|
|
1303
1299
|
applications: {
|
|
1304
1300
|
collection: (clientId) => `clients/${clientId}/applications`,
|
|
1305
1301
|
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
package/dist/index.mjs
CHANGED
|
@@ -1263,10 +1263,6 @@ var firestorePaths = {
|
|
|
1263
1263
|
collection: (clientId) => `clients/${clientId}/logins`,
|
|
1264
1264
|
doc: (clientId, loginId) => `clients/${clientId}/logins/${loginId}`
|
|
1265
1265
|
},
|
|
1266
|
-
resumes: {
|
|
1267
|
-
collection: (clientId) => `clients/${clientId}/resumes`,
|
|
1268
|
-
doc: (clientId, resumeId) => `clients/${clientId}/resumes/${resumeId}`
|
|
1269
|
-
},
|
|
1270
1266
|
applications: {
|
|
1271
1267
|
collection: (clientId) => `clients/${clientId}/applications`,
|
|
1272
1268
|
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
package/package.json
CHANGED