@jobsearch-works/firestore-models 2.2.1 → 2.2.3
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 +52 -6
- package/dist/index.d.ts +52 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -643,6 +643,37 @@ interface VacancySuggestion {
|
|
643
643
|
createdAt?: Date | string;
|
644
644
|
}
|
645
645
|
|
646
|
+
interface ClientLanguage {
|
647
|
+
readonly language: string;
|
648
|
+
readonly level: string;
|
649
|
+
}
|
650
|
+
|
651
|
+
interface ClientCertifications {
|
652
|
+
readonly name: string;
|
653
|
+
readonly date: Date;
|
654
|
+
}
|
655
|
+
|
656
|
+
interface ClientSkill {
|
657
|
+
readonly name: string;
|
658
|
+
readonly level: string;
|
659
|
+
}
|
660
|
+
|
661
|
+
interface ClientEducation {
|
662
|
+
readonly schoolName: string;
|
663
|
+
readonly degree: string;
|
664
|
+
readonly fieldOfStudy: string;
|
665
|
+
readonly startDate: Date;
|
666
|
+
readonly endDate: Date;
|
667
|
+
}
|
668
|
+
|
669
|
+
interface ClientWorkExperience {
|
670
|
+
readonly companyName: string;
|
671
|
+
readonly position: string;
|
672
|
+
readonly startDate: Date;
|
673
|
+
readonly endDate: Date;
|
674
|
+
readonly description: string;
|
675
|
+
}
|
676
|
+
|
646
677
|
/**
|
647
678
|
* Embedded sub-object within Client document
|
648
679
|
* @see Client - Parent document interface
|
@@ -733,7 +764,7 @@ interface ClientPersonalData {
|
|
733
764
|
updatedAt?: Date | string;
|
734
765
|
}
|
735
766
|
|
736
|
-
type ClientStatus =
|
767
|
+
type ClientStatus = "active" | "inactive";
|
737
768
|
/**
|
738
769
|
* Root Client document
|
739
770
|
* Path: clients/{clientId}
|
@@ -747,6 +778,11 @@ interface Client {
|
|
747
778
|
readonly personalData?: ClientPersonalData;
|
748
779
|
readonly jobPreferences?: ClientJobPreferences;
|
749
780
|
readonly websitePreferences?: ClientWebsitePreferences;
|
781
|
+
readonly workExperience?: ClientWorkExperience[];
|
782
|
+
readonly education?: ClientEducation[];
|
783
|
+
readonly skills?: ClientSkill[];
|
784
|
+
readonly certifications?: ClientCertifications;
|
785
|
+
readonly languages?: ClientLanguage[];
|
750
786
|
readonly createdAt?: Date | string;
|
751
787
|
}
|
752
788
|
|
@@ -839,19 +875,29 @@ interface ClientLogin {
|
|
839
875
|
updatedAt?: Date | string;
|
840
876
|
}
|
841
877
|
|
878
|
+
type FirestoreTimestamp = {
|
879
|
+
seconds: number;
|
880
|
+
nanoseconds: number;
|
881
|
+
};
|
882
|
+
|
842
883
|
/**
|
843
884
|
* Subcollection document under Client
|
844
885
|
* Path: clients/{clientId}/questions/{docId}
|
845
886
|
* @see Client - Parent document
|
846
887
|
*/
|
888
|
+
|
847
889
|
interface ClientQuestion {
|
848
|
-
id
|
890
|
+
id: string;
|
891
|
+
clientId: string;
|
849
892
|
questionText: string;
|
850
|
-
|
893
|
+
type: string;
|
851
894
|
tags: string[];
|
852
895
|
importance: string;
|
853
|
-
|
854
|
-
|
896
|
+
answer?: string;
|
897
|
+
createdAt: FirestoreTimestamp | Date | string;
|
898
|
+
updatedAt?: FirestoreTimestamp | Date | string;
|
899
|
+
applicationId?: string;
|
900
|
+
vacancyId?: string;
|
855
901
|
}
|
856
902
|
|
857
903
|
/**
|
@@ -952,4 +998,4 @@ declare const firestorePaths: {
|
|
952
998
|
};
|
953
999
|
};
|
954
1000
|
|
955
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthUser, Client, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientInterview, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientWebsitePreferences, JobCategory, JobTitle, Location, LocationId, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
1001
|
+
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthUser, Client, ClientEducation, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientInterview, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientSkill, ClientStatus, ClientWebsitePreferences, ClientWorkExperience, JobCategory, JobTitle, Location, LocationId, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
package/dist/index.d.ts
CHANGED
@@ -643,6 +643,37 @@ interface VacancySuggestion {
|
|
643
643
|
createdAt?: Date | string;
|
644
644
|
}
|
645
645
|
|
646
|
+
interface ClientLanguage {
|
647
|
+
readonly language: string;
|
648
|
+
readonly level: string;
|
649
|
+
}
|
650
|
+
|
651
|
+
interface ClientCertifications {
|
652
|
+
readonly name: string;
|
653
|
+
readonly date: Date;
|
654
|
+
}
|
655
|
+
|
656
|
+
interface ClientSkill {
|
657
|
+
readonly name: string;
|
658
|
+
readonly level: string;
|
659
|
+
}
|
660
|
+
|
661
|
+
interface ClientEducation {
|
662
|
+
readonly schoolName: string;
|
663
|
+
readonly degree: string;
|
664
|
+
readonly fieldOfStudy: string;
|
665
|
+
readonly startDate: Date;
|
666
|
+
readonly endDate: Date;
|
667
|
+
}
|
668
|
+
|
669
|
+
interface ClientWorkExperience {
|
670
|
+
readonly companyName: string;
|
671
|
+
readonly position: string;
|
672
|
+
readonly startDate: Date;
|
673
|
+
readonly endDate: Date;
|
674
|
+
readonly description: string;
|
675
|
+
}
|
676
|
+
|
646
677
|
/**
|
647
678
|
* Embedded sub-object within Client document
|
648
679
|
* @see Client - Parent document interface
|
@@ -733,7 +764,7 @@ interface ClientPersonalData {
|
|
733
764
|
updatedAt?: Date | string;
|
734
765
|
}
|
735
766
|
|
736
|
-
type ClientStatus =
|
767
|
+
type ClientStatus = "active" | "inactive";
|
737
768
|
/**
|
738
769
|
* Root Client document
|
739
770
|
* Path: clients/{clientId}
|
@@ -747,6 +778,11 @@ interface Client {
|
|
747
778
|
readonly personalData?: ClientPersonalData;
|
748
779
|
readonly jobPreferences?: ClientJobPreferences;
|
749
780
|
readonly websitePreferences?: ClientWebsitePreferences;
|
781
|
+
readonly workExperience?: ClientWorkExperience[];
|
782
|
+
readonly education?: ClientEducation[];
|
783
|
+
readonly skills?: ClientSkill[];
|
784
|
+
readonly certifications?: ClientCertifications;
|
785
|
+
readonly languages?: ClientLanguage[];
|
750
786
|
readonly createdAt?: Date | string;
|
751
787
|
}
|
752
788
|
|
@@ -839,19 +875,29 @@ interface ClientLogin {
|
|
839
875
|
updatedAt?: Date | string;
|
840
876
|
}
|
841
877
|
|
878
|
+
type FirestoreTimestamp = {
|
879
|
+
seconds: number;
|
880
|
+
nanoseconds: number;
|
881
|
+
};
|
882
|
+
|
842
883
|
/**
|
843
884
|
* Subcollection document under Client
|
844
885
|
* Path: clients/{clientId}/questions/{docId}
|
845
886
|
* @see Client - Parent document
|
846
887
|
*/
|
888
|
+
|
847
889
|
interface ClientQuestion {
|
848
|
-
id
|
890
|
+
id: string;
|
891
|
+
clientId: string;
|
849
892
|
questionText: string;
|
850
|
-
|
893
|
+
type: string;
|
851
894
|
tags: string[];
|
852
895
|
importance: string;
|
853
|
-
|
854
|
-
|
896
|
+
answer?: string;
|
897
|
+
createdAt: FirestoreTimestamp | Date | string;
|
898
|
+
updatedAt?: FirestoreTimestamp | Date | string;
|
899
|
+
applicationId?: string;
|
900
|
+
vacancyId?: string;
|
855
901
|
}
|
856
902
|
|
857
903
|
/**
|
@@ -952,4 +998,4 @@ declare const firestorePaths: {
|
|
952
998
|
};
|
953
999
|
};
|
954
1000
|
|
955
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthUser, Client, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientInterview, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientWebsitePreferences, JobCategory, JobTitle, Location, LocationId, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
1001
|
+
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthUser, Client, ClientEducation, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientInterview, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientSkill, ClientStatus, ClientWebsitePreferences, ClientWorkExperience, JobCategory, JobTitle, Location, LocationId, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
package/package.json
CHANGED