@jobsearch-works/firestore-models 2.4.8 → 2.4.11
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 +143 -118
- package/dist/index.d.ts +143 -118
- 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,69 @@ 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
|
+
proficiency: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
interface Project {
|
|
674
|
+
projectName: string;
|
|
675
|
+
description: string;
|
|
676
|
+
technologies: string[];
|
|
677
|
+
startDate: string;
|
|
678
|
+
endDate: string;
|
|
679
|
+
url: string | null;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
type Skill = string;
|
|
683
|
+
|
|
684
|
+
type Summary = string | null;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Subcollection document under Client
|
|
688
|
+
* Path: clients/{clientId}/resumes/{docId}
|
|
689
|
+
* @see Client - Parent document
|
|
690
|
+
*
|
|
691
|
+
* @description Represents a client's resume document.
|
|
692
|
+
*/
|
|
693
|
+
interface ClientResume {
|
|
694
|
+
readonly id?: string;
|
|
695
|
+
jobTitle: string | null;
|
|
696
|
+
skills: Skill[];
|
|
697
|
+
education: Education[];
|
|
698
|
+
experience: WorkExperience[];
|
|
699
|
+
certifications: Certification[];
|
|
700
|
+
languages: Language[];
|
|
701
|
+
projects: Project[];
|
|
702
|
+
summary: Summary;
|
|
703
|
+
additionalInfo: string | null;
|
|
704
|
+
}
|
|
705
|
+
|
|
643
706
|
declare const ApplicationStatus: {
|
|
644
707
|
readonly New: "new";
|
|
645
708
|
readonly Submitted: "submitted";
|
|
@@ -659,7 +722,7 @@ interface Application {
|
|
|
659
722
|
status: ApplicationStatus;
|
|
660
723
|
assignedTo?: string;
|
|
661
724
|
coverLetter?: string;
|
|
662
|
-
resume?:
|
|
725
|
+
resume?: ClientResume;
|
|
663
726
|
submittedAt?: Date | string;
|
|
664
727
|
interviewingAt?: Date | string;
|
|
665
728
|
acceptedAt?: Date | string;
|
|
@@ -688,6 +751,7 @@ interface ApplicationQuestion {
|
|
|
688
751
|
id?: string;
|
|
689
752
|
questionText: string;
|
|
690
753
|
answerText?: string;
|
|
754
|
+
clientId: string;
|
|
691
755
|
type: ApplicationQuestionType;
|
|
692
756
|
createdAt?: Date | string;
|
|
693
757
|
updatedAt?: Date | string;
|
|
@@ -695,52 +759,37 @@ interface ApplicationQuestion {
|
|
|
695
759
|
action?: string;
|
|
696
760
|
}
|
|
697
761
|
|
|
698
|
-
interface ClientCompanyPreferences {
|
|
699
|
-
companyId?: string;
|
|
700
|
-
name: string;
|
|
701
|
-
careersUrl: string;
|
|
702
|
-
location: string;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
interface ClientLanguage {
|
|
706
|
-
readonly language: string;
|
|
707
|
-
readonly level: string;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
interface ClientCertifications {
|
|
711
|
-
readonly name: string;
|
|
712
|
-
readonly date: Date;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
interface ClientSkill {
|
|
716
|
-
readonly name: string;
|
|
717
|
-
readonly level: string;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
interface ClientEducation {
|
|
721
|
-
readonly schoolName: string;
|
|
722
|
-
readonly degree: string;
|
|
723
|
-
readonly fieldOfStudy: string;
|
|
724
|
-
readonly startDate: Date;
|
|
725
|
-
readonly endDate: Date;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
interface ClientWorkExperience {
|
|
729
|
-
readonly companyName: string;
|
|
730
|
-
readonly position: string;
|
|
731
|
-
readonly startDate: Date;
|
|
732
|
-
readonly endDate: Date;
|
|
733
|
-
readonly description: string;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
762
|
/**
|
|
737
763
|
* Embedded sub-object within Client document
|
|
738
764
|
* @see Client - Parent document interface
|
|
739
765
|
*/
|
|
740
|
-
interface
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
766
|
+
interface ClientPersonalData {
|
|
767
|
+
id?: string;
|
|
768
|
+
firstName: string;
|
|
769
|
+
lastName: string;
|
|
770
|
+
middleName?: string;
|
|
771
|
+
preferredName?: string;
|
|
772
|
+
email: string;
|
|
773
|
+
phone: string;
|
|
774
|
+
address: string;
|
|
775
|
+
city: string;
|
|
776
|
+
suburb: string;
|
|
777
|
+
state: string;
|
|
778
|
+
postcode: string;
|
|
779
|
+
country: string;
|
|
780
|
+
linkedIn?: string;
|
|
781
|
+
countryPhoneCode: string;
|
|
782
|
+
nationality: string;
|
|
783
|
+
dateOfBirth?: Date | string;
|
|
784
|
+
ethnicity?: string;
|
|
785
|
+
disabilityStatus?: string;
|
|
786
|
+
securityClearance?: string;
|
|
787
|
+
createdAt?: Date | string;
|
|
788
|
+
updatedAt?: Date | string;
|
|
789
|
+
photoUrl?: string;
|
|
790
|
+
personalWebsite?: string;
|
|
791
|
+
portfolioUrl?: string;
|
|
792
|
+
professionalTitle?: string;
|
|
744
793
|
}
|
|
745
794
|
|
|
746
795
|
/**
|
|
@@ -769,32 +818,13 @@ interface ClientJobPreferences {
|
|
|
769
818
|
* Embedded sub-object within Client document
|
|
770
819
|
* @see Client - Parent document interface
|
|
771
820
|
*/
|
|
772
|
-
interface
|
|
773
|
-
id?: string;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
middleName?: string;
|
|
777
|
-
preferredName?: string;
|
|
778
|
-
email: string;
|
|
779
|
-
phone: string;
|
|
780
|
-
address: string;
|
|
781
|
-
city: string;
|
|
782
|
-
suburb: string;
|
|
783
|
-
state: string;
|
|
784
|
-
postcode: string;
|
|
785
|
-
country: string;
|
|
786
|
-
linkedIn?: string;
|
|
787
|
-
countryPhoneCode: string;
|
|
788
|
-
nationality: string;
|
|
789
|
-
dateOfBirth?: Date | string;
|
|
790
|
-
ethnicity?: string;
|
|
791
|
-
disabilityStatus?: string;
|
|
792
|
-
securityClearance?: string;
|
|
793
|
-
createdAt?: Date | string;
|
|
794
|
-
updatedAt?: Date | string;
|
|
821
|
+
interface ClientWebsitePreferences {
|
|
822
|
+
readonly id?: string;
|
|
823
|
+
theme: string;
|
|
824
|
+
notifications: string;
|
|
795
825
|
}
|
|
796
826
|
|
|
797
|
-
type ClientStatus = typeof ClientStatusEnum[keyof typeof ClientStatusEnum];
|
|
827
|
+
type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
|
|
798
828
|
/**
|
|
799
829
|
* Root Client document
|
|
800
830
|
* Path: clients/{clientId}
|
|
@@ -808,12 +838,7 @@ interface Client {
|
|
|
808
838
|
readonly personalData?: ClientPersonalData;
|
|
809
839
|
readonly jobPreferences?: ClientJobPreferences;
|
|
810
840
|
readonly websitePreferences?: ClientWebsitePreferences;
|
|
811
|
-
|
|
812
|
-
readonly education?: ClientEducation[];
|
|
813
|
-
readonly skills?: ClientSkill[];
|
|
814
|
-
readonly certifications?: ClientCertifications;
|
|
815
|
-
readonly languages?: ClientLanguage[];
|
|
816
|
-
readonly clientCompanyPreferences?: ClientCompanyPreferences[];
|
|
841
|
+
resume: ClientResume;
|
|
817
842
|
readonly createdAt?: Date | string;
|
|
818
843
|
}
|
|
819
844
|
|
|
@@ -878,45 +903,6 @@ interface ClientQuestion {
|
|
|
878
903
|
vacancyId?: string;
|
|
879
904
|
}
|
|
880
905
|
|
|
881
|
-
/**
|
|
882
|
-
* Subcollection document under Client
|
|
883
|
-
* Path: clients/{clientId}/resumes/{docId}
|
|
884
|
-
* @see Client - Parent document
|
|
885
|
-
*
|
|
886
|
-
* @description Represents a client's resume document.
|
|
887
|
-
* @author [Your Name]
|
|
888
|
-
* @version 1.0.0
|
|
889
|
-
* @since [Date]
|
|
890
|
-
*/
|
|
891
|
-
interface ClientResume {
|
|
892
|
-
readonly id?: string;
|
|
893
|
-
title: string;
|
|
894
|
-
createdAt: Date | string;
|
|
895
|
-
updatedAt: Date | string;
|
|
896
|
-
format: string;
|
|
897
|
-
storagePath: string;
|
|
898
|
-
notes: string;
|
|
899
|
-
isActive: boolean;
|
|
900
|
-
clientId: string;
|
|
901
|
-
about: {
|
|
902
|
-
summary: string;
|
|
903
|
-
};
|
|
904
|
-
education: Array<{
|
|
905
|
-
school: string;
|
|
906
|
-
degree: string;
|
|
907
|
-
field: string;
|
|
908
|
-
startDate: Date | string;
|
|
909
|
-
endDate?: Date | string;
|
|
910
|
-
}>;
|
|
911
|
-
workExperience: Array<{
|
|
912
|
-
company: string;
|
|
913
|
-
role: string;
|
|
914
|
-
startDate: Date | string;
|
|
915
|
-
endDate?: Date | string;
|
|
916
|
-
description: string;
|
|
917
|
-
}>;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
906
|
/**
|
|
921
907
|
* Subcollection document under Client
|
|
922
908
|
* Path: clients/{clientId}/applications/{applicationId}/virtualInterview/{interviewId}
|
|
@@ -939,6 +925,49 @@ interface ClientVirtualInterview {
|
|
|
939
925
|
}>;
|
|
940
926
|
}
|
|
941
927
|
|
|
928
|
+
interface Award {
|
|
929
|
+
readonly name: string;
|
|
930
|
+
readonly organization: string;
|
|
931
|
+
readonly date: Date | string;
|
|
932
|
+
readonly description?: string;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface Publication {
|
|
936
|
+
readonly title: string;
|
|
937
|
+
readonly venue: string;
|
|
938
|
+
readonly date: Date | string;
|
|
939
|
+
readonly coAuthors?: string[];
|
|
940
|
+
readonly url?: string;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
interface Reference {
|
|
944
|
+
readonly name: string;
|
|
945
|
+
readonly title: string;
|
|
946
|
+
readonly company: string;
|
|
947
|
+
readonly relationship: string;
|
|
948
|
+
readonly contactInfo: {
|
|
949
|
+
email?: string;
|
|
950
|
+
phone?: string;
|
|
951
|
+
};
|
|
952
|
+
readonly highlights?: string;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface VolunteerEntry {
|
|
956
|
+
readonly organization: string;
|
|
957
|
+
readonly role: string;
|
|
958
|
+
readonly startDate: Date | string;
|
|
959
|
+
readonly endDate?: Date | string;
|
|
960
|
+
readonly responsibilities?: string;
|
|
961
|
+
readonly achievements?: string;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
interface ClientCompanyPreferences {
|
|
965
|
+
companyId?: string;
|
|
966
|
+
name: string;
|
|
967
|
+
careersUrl: string;
|
|
968
|
+
location: string;
|
|
969
|
+
}
|
|
970
|
+
|
|
942
971
|
/**
|
|
943
972
|
* Subcollection document under clients/{userId}/access_tokens/{provider}
|
|
944
973
|
*/
|
|
@@ -956,7 +985,7 @@ interface ClientAccessToken {
|
|
|
956
985
|
* Subcollection document under clients/{userId}/emails/{emailId}
|
|
957
986
|
* For new email structure
|
|
958
987
|
*/
|
|
959
|
-
type EmailCategory = "One Time Pin" | "Spam" | "Job Interview" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
988
|
+
type EmailCategory = "One Time Pin" | "Spam" | "Job Submitted" | "Job Interview" | "Job Accepted" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
960
989
|
interface ClientEmail {
|
|
961
990
|
bcc: string[];
|
|
962
991
|
cc: string[];
|
|
@@ -1004,10 +1033,6 @@ declare const firestorePaths: {
|
|
|
1004
1033
|
readonly collection: (clientId: string) => string;
|
|
1005
1034
|
readonly doc: (clientId: string, loginId: string) => string;
|
|
1006
1035
|
};
|
|
1007
|
-
readonly resumes: {
|
|
1008
|
-
readonly collection: (clientId: string) => string;
|
|
1009
|
-
readonly doc: (clientId: string, resumeId: string) => string;
|
|
1010
|
-
};
|
|
1011
1036
|
readonly applications: {
|
|
1012
1037
|
readonly collection: (clientId: string) => string;
|
|
1013
1038
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
@@ -1059,4 +1084,4 @@ declare const firestorePaths: {
|
|
|
1059
1084
|
};
|
|
1060
1085
|
};
|
|
1061
1086
|
|
|
1062
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1087
|
+
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,69 @@ 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
|
+
proficiency: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
interface Project {
|
|
674
|
+
projectName: string;
|
|
675
|
+
description: string;
|
|
676
|
+
technologies: string[];
|
|
677
|
+
startDate: string;
|
|
678
|
+
endDate: string;
|
|
679
|
+
url: string | null;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
type Skill = string;
|
|
683
|
+
|
|
684
|
+
type Summary = string | null;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Subcollection document under Client
|
|
688
|
+
* Path: clients/{clientId}/resumes/{docId}
|
|
689
|
+
* @see Client - Parent document
|
|
690
|
+
*
|
|
691
|
+
* @description Represents a client's resume document.
|
|
692
|
+
*/
|
|
693
|
+
interface ClientResume {
|
|
694
|
+
readonly id?: string;
|
|
695
|
+
jobTitle: string | null;
|
|
696
|
+
skills: Skill[];
|
|
697
|
+
education: Education[];
|
|
698
|
+
experience: WorkExperience[];
|
|
699
|
+
certifications: Certification[];
|
|
700
|
+
languages: Language[];
|
|
701
|
+
projects: Project[];
|
|
702
|
+
summary: Summary;
|
|
703
|
+
additionalInfo: string | null;
|
|
704
|
+
}
|
|
705
|
+
|
|
643
706
|
declare const ApplicationStatus: {
|
|
644
707
|
readonly New: "new";
|
|
645
708
|
readonly Submitted: "submitted";
|
|
@@ -659,7 +722,7 @@ interface Application {
|
|
|
659
722
|
status: ApplicationStatus;
|
|
660
723
|
assignedTo?: string;
|
|
661
724
|
coverLetter?: string;
|
|
662
|
-
resume?:
|
|
725
|
+
resume?: ClientResume;
|
|
663
726
|
submittedAt?: Date | string;
|
|
664
727
|
interviewingAt?: Date | string;
|
|
665
728
|
acceptedAt?: Date | string;
|
|
@@ -688,6 +751,7 @@ interface ApplicationQuestion {
|
|
|
688
751
|
id?: string;
|
|
689
752
|
questionText: string;
|
|
690
753
|
answerText?: string;
|
|
754
|
+
clientId: string;
|
|
691
755
|
type: ApplicationQuestionType;
|
|
692
756
|
createdAt?: Date | string;
|
|
693
757
|
updatedAt?: Date | string;
|
|
@@ -695,52 +759,37 @@ interface ApplicationQuestion {
|
|
|
695
759
|
action?: string;
|
|
696
760
|
}
|
|
697
761
|
|
|
698
|
-
interface ClientCompanyPreferences {
|
|
699
|
-
companyId?: string;
|
|
700
|
-
name: string;
|
|
701
|
-
careersUrl: string;
|
|
702
|
-
location: string;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
interface ClientLanguage {
|
|
706
|
-
readonly language: string;
|
|
707
|
-
readonly level: string;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
interface ClientCertifications {
|
|
711
|
-
readonly name: string;
|
|
712
|
-
readonly date: Date;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
interface ClientSkill {
|
|
716
|
-
readonly name: string;
|
|
717
|
-
readonly level: string;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
interface ClientEducation {
|
|
721
|
-
readonly schoolName: string;
|
|
722
|
-
readonly degree: string;
|
|
723
|
-
readonly fieldOfStudy: string;
|
|
724
|
-
readonly startDate: Date;
|
|
725
|
-
readonly endDate: Date;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
interface ClientWorkExperience {
|
|
729
|
-
readonly companyName: string;
|
|
730
|
-
readonly position: string;
|
|
731
|
-
readonly startDate: Date;
|
|
732
|
-
readonly endDate: Date;
|
|
733
|
-
readonly description: string;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
762
|
/**
|
|
737
763
|
* Embedded sub-object within Client document
|
|
738
764
|
* @see Client - Parent document interface
|
|
739
765
|
*/
|
|
740
|
-
interface
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
766
|
+
interface ClientPersonalData {
|
|
767
|
+
id?: string;
|
|
768
|
+
firstName: string;
|
|
769
|
+
lastName: string;
|
|
770
|
+
middleName?: string;
|
|
771
|
+
preferredName?: string;
|
|
772
|
+
email: string;
|
|
773
|
+
phone: string;
|
|
774
|
+
address: string;
|
|
775
|
+
city: string;
|
|
776
|
+
suburb: string;
|
|
777
|
+
state: string;
|
|
778
|
+
postcode: string;
|
|
779
|
+
country: string;
|
|
780
|
+
linkedIn?: string;
|
|
781
|
+
countryPhoneCode: string;
|
|
782
|
+
nationality: string;
|
|
783
|
+
dateOfBirth?: Date | string;
|
|
784
|
+
ethnicity?: string;
|
|
785
|
+
disabilityStatus?: string;
|
|
786
|
+
securityClearance?: string;
|
|
787
|
+
createdAt?: Date | string;
|
|
788
|
+
updatedAt?: Date | string;
|
|
789
|
+
photoUrl?: string;
|
|
790
|
+
personalWebsite?: string;
|
|
791
|
+
portfolioUrl?: string;
|
|
792
|
+
professionalTitle?: string;
|
|
744
793
|
}
|
|
745
794
|
|
|
746
795
|
/**
|
|
@@ -769,32 +818,13 @@ interface ClientJobPreferences {
|
|
|
769
818
|
* Embedded sub-object within Client document
|
|
770
819
|
* @see Client - Parent document interface
|
|
771
820
|
*/
|
|
772
|
-
interface
|
|
773
|
-
id?: string;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
middleName?: string;
|
|
777
|
-
preferredName?: string;
|
|
778
|
-
email: string;
|
|
779
|
-
phone: string;
|
|
780
|
-
address: string;
|
|
781
|
-
city: string;
|
|
782
|
-
suburb: string;
|
|
783
|
-
state: string;
|
|
784
|
-
postcode: string;
|
|
785
|
-
country: string;
|
|
786
|
-
linkedIn?: string;
|
|
787
|
-
countryPhoneCode: string;
|
|
788
|
-
nationality: string;
|
|
789
|
-
dateOfBirth?: Date | string;
|
|
790
|
-
ethnicity?: string;
|
|
791
|
-
disabilityStatus?: string;
|
|
792
|
-
securityClearance?: string;
|
|
793
|
-
createdAt?: Date | string;
|
|
794
|
-
updatedAt?: Date | string;
|
|
821
|
+
interface ClientWebsitePreferences {
|
|
822
|
+
readonly id?: string;
|
|
823
|
+
theme: string;
|
|
824
|
+
notifications: string;
|
|
795
825
|
}
|
|
796
826
|
|
|
797
|
-
type ClientStatus = typeof ClientStatusEnum[keyof typeof ClientStatusEnum];
|
|
827
|
+
type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
|
|
798
828
|
/**
|
|
799
829
|
* Root Client document
|
|
800
830
|
* Path: clients/{clientId}
|
|
@@ -808,12 +838,7 @@ interface Client {
|
|
|
808
838
|
readonly personalData?: ClientPersonalData;
|
|
809
839
|
readonly jobPreferences?: ClientJobPreferences;
|
|
810
840
|
readonly websitePreferences?: ClientWebsitePreferences;
|
|
811
|
-
|
|
812
|
-
readonly education?: ClientEducation[];
|
|
813
|
-
readonly skills?: ClientSkill[];
|
|
814
|
-
readonly certifications?: ClientCertifications;
|
|
815
|
-
readonly languages?: ClientLanguage[];
|
|
816
|
-
readonly clientCompanyPreferences?: ClientCompanyPreferences[];
|
|
841
|
+
resume: ClientResume;
|
|
817
842
|
readonly createdAt?: Date | string;
|
|
818
843
|
}
|
|
819
844
|
|
|
@@ -878,45 +903,6 @@ interface ClientQuestion {
|
|
|
878
903
|
vacancyId?: string;
|
|
879
904
|
}
|
|
880
905
|
|
|
881
|
-
/**
|
|
882
|
-
* Subcollection document under Client
|
|
883
|
-
* Path: clients/{clientId}/resumes/{docId}
|
|
884
|
-
* @see Client - Parent document
|
|
885
|
-
*
|
|
886
|
-
* @description Represents a client's resume document.
|
|
887
|
-
* @author [Your Name]
|
|
888
|
-
* @version 1.0.0
|
|
889
|
-
* @since [Date]
|
|
890
|
-
*/
|
|
891
|
-
interface ClientResume {
|
|
892
|
-
readonly id?: string;
|
|
893
|
-
title: string;
|
|
894
|
-
createdAt: Date | string;
|
|
895
|
-
updatedAt: Date | string;
|
|
896
|
-
format: string;
|
|
897
|
-
storagePath: string;
|
|
898
|
-
notes: string;
|
|
899
|
-
isActive: boolean;
|
|
900
|
-
clientId: string;
|
|
901
|
-
about: {
|
|
902
|
-
summary: string;
|
|
903
|
-
};
|
|
904
|
-
education: Array<{
|
|
905
|
-
school: string;
|
|
906
|
-
degree: string;
|
|
907
|
-
field: string;
|
|
908
|
-
startDate: Date | string;
|
|
909
|
-
endDate?: Date | string;
|
|
910
|
-
}>;
|
|
911
|
-
workExperience: Array<{
|
|
912
|
-
company: string;
|
|
913
|
-
role: string;
|
|
914
|
-
startDate: Date | string;
|
|
915
|
-
endDate?: Date | string;
|
|
916
|
-
description: string;
|
|
917
|
-
}>;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
906
|
/**
|
|
921
907
|
* Subcollection document under Client
|
|
922
908
|
* Path: clients/{clientId}/applications/{applicationId}/virtualInterview/{interviewId}
|
|
@@ -939,6 +925,49 @@ interface ClientVirtualInterview {
|
|
|
939
925
|
}>;
|
|
940
926
|
}
|
|
941
927
|
|
|
928
|
+
interface Award {
|
|
929
|
+
readonly name: string;
|
|
930
|
+
readonly organization: string;
|
|
931
|
+
readonly date: Date | string;
|
|
932
|
+
readonly description?: string;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface Publication {
|
|
936
|
+
readonly title: string;
|
|
937
|
+
readonly venue: string;
|
|
938
|
+
readonly date: Date | string;
|
|
939
|
+
readonly coAuthors?: string[];
|
|
940
|
+
readonly url?: string;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
interface Reference {
|
|
944
|
+
readonly name: string;
|
|
945
|
+
readonly title: string;
|
|
946
|
+
readonly company: string;
|
|
947
|
+
readonly relationship: string;
|
|
948
|
+
readonly contactInfo: {
|
|
949
|
+
email?: string;
|
|
950
|
+
phone?: string;
|
|
951
|
+
};
|
|
952
|
+
readonly highlights?: string;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface VolunteerEntry {
|
|
956
|
+
readonly organization: string;
|
|
957
|
+
readonly role: string;
|
|
958
|
+
readonly startDate: Date | string;
|
|
959
|
+
readonly endDate?: Date | string;
|
|
960
|
+
readonly responsibilities?: string;
|
|
961
|
+
readonly achievements?: string;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
interface ClientCompanyPreferences {
|
|
965
|
+
companyId?: string;
|
|
966
|
+
name: string;
|
|
967
|
+
careersUrl: string;
|
|
968
|
+
location: string;
|
|
969
|
+
}
|
|
970
|
+
|
|
942
971
|
/**
|
|
943
972
|
* Subcollection document under clients/{userId}/access_tokens/{provider}
|
|
944
973
|
*/
|
|
@@ -956,7 +985,7 @@ interface ClientAccessToken {
|
|
|
956
985
|
* Subcollection document under clients/{userId}/emails/{emailId}
|
|
957
986
|
* For new email structure
|
|
958
987
|
*/
|
|
959
|
-
type EmailCategory = "One Time Pin" | "Spam" | "Job Interview" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
988
|
+
type EmailCategory = "One Time Pin" | "Spam" | "Job Submitted" | "Job Interview" | "Job Accepted" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
960
989
|
interface ClientEmail {
|
|
961
990
|
bcc: string[];
|
|
962
991
|
cc: string[];
|
|
@@ -1004,10 +1033,6 @@ declare const firestorePaths: {
|
|
|
1004
1033
|
readonly collection: (clientId: string) => string;
|
|
1005
1034
|
readonly doc: (clientId: string, loginId: string) => string;
|
|
1006
1035
|
};
|
|
1007
|
-
readonly resumes: {
|
|
1008
|
-
readonly collection: (clientId: string) => string;
|
|
1009
|
-
readonly doc: (clientId: string, resumeId: string) => string;
|
|
1010
|
-
};
|
|
1011
1036
|
readonly applications: {
|
|
1012
1037
|
readonly collection: (clientId: string) => string;
|
|
1013
1038
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
@@ -1059,4 +1084,4 @@ declare const firestorePaths: {
|
|
|
1059
1084
|
};
|
|
1060
1085
|
};
|
|
1061
1086
|
|
|
1062
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1087
|
+
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