@jobsearch-works/firestore-models 2.4.11 → 4.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 +60 -72
- package/dist/index.d.ts +60 -72
- package/dist/index.js +14 -0
- package/dist/index.mjs +13 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -528,6 +528,8 @@ declare const ClientStatusEnum: {
|
|
|
528
528
|
readonly deleted: "deleted";
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
+
declare const initialQuestions: readonly ["What are your career goals for the next 2-3 years?", "What are your strongest technical skills?", "What are the biggest challenges you've overcome in your career?", "What work environment do you thrive in?", "What are your most significant professional achievements?", "What's your approach to learning new technologies?", "What type of projects are you most interested in working on?", "What values are most important to you in a company?"];
|
|
532
|
+
|
|
531
533
|
type AgentStatus = "active" | "inactive";
|
|
532
534
|
interface Agent {
|
|
533
535
|
readonly id?: string;
|
|
@@ -628,6 +630,7 @@ interface Vacancy {
|
|
|
628
630
|
jobId: string;
|
|
629
631
|
category: VacancyCategory;
|
|
630
632
|
suggestedTo?: string[];
|
|
633
|
+
embeddedValue?: number[];
|
|
631
634
|
createdAt?: Date | string;
|
|
632
635
|
updatedAt?: Date | string;
|
|
633
636
|
}
|
|
@@ -640,49 +643,55 @@ interface VacancySuggestion {
|
|
|
640
643
|
createdAt?: Date | string;
|
|
641
644
|
}
|
|
642
645
|
|
|
646
|
+
/**
|
|
647
|
+
* Address interface for client resume
|
|
648
|
+
*/
|
|
649
|
+
interface Address {
|
|
650
|
+
street: string;
|
|
651
|
+
city: string;
|
|
652
|
+
state: string;
|
|
653
|
+
zip_code: string;
|
|
654
|
+
country: string;
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Education interface for client resume
|
|
658
|
+
*/
|
|
643
659
|
interface Education {
|
|
644
660
|
degree: string;
|
|
645
|
-
|
|
661
|
+
field_of_study: string;
|
|
646
662
|
institution: string;
|
|
647
|
-
|
|
648
|
-
|
|
663
|
+
start_date: string;
|
|
664
|
+
end_date: string;
|
|
649
665
|
}
|
|
650
|
-
|
|
651
|
-
interface
|
|
652
|
-
|
|
666
|
+
/**
|
|
667
|
+
* Work experience interface for client resume
|
|
668
|
+
*/
|
|
669
|
+
interface Experience {
|
|
670
|
+
job_title: string;
|
|
653
671
|
company: string;
|
|
654
|
-
|
|
655
|
-
|
|
672
|
+
start_date: string;
|
|
673
|
+
end_date: string;
|
|
656
674
|
description: string;
|
|
657
675
|
}
|
|
658
|
-
|
|
676
|
+
/**
|
|
677
|
+
* Certification interface for client resume
|
|
678
|
+
*/
|
|
659
679
|
interface Certification {
|
|
660
680
|
name: string;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
expirationDate?: string;
|
|
664
|
-
credentialId?: string;
|
|
665
|
-
verificationUrl?: string;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
interface Language {
|
|
669
|
-
language: string;
|
|
670
|
-
proficiency: string;
|
|
681
|
+
issuing_organization: string;
|
|
682
|
+
issue_date: string;
|
|
671
683
|
}
|
|
672
|
-
|
|
684
|
+
/**
|
|
685
|
+
* Project interface for client resume
|
|
686
|
+
*/
|
|
673
687
|
interface Project {
|
|
674
|
-
|
|
688
|
+
project_name: string;
|
|
675
689
|
description: string;
|
|
676
690
|
technologies: string[];
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
url: string
|
|
691
|
+
start_date: string;
|
|
692
|
+
end_date: string;
|
|
693
|
+
url: string;
|
|
680
694
|
}
|
|
681
|
-
|
|
682
|
-
type Skill = string;
|
|
683
|
-
|
|
684
|
-
type Summary = string | null;
|
|
685
|
-
|
|
686
695
|
/**
|
|
687
696
|
* Subcollection document under Client
|
|
688
697
|
* Path: clients/{clientId}/resumes/{docId}
|
|
@@ -692,15 +701,23 @@ type Summary = string | null;
|
|
|
692
701
|
*/
|
|
693
702
|
interface ClientResume {
|
|
694
703
|
readonly id?: string;
|
|
695
|
-
|
|
696
|
-
|
|
704
|
+
first_name: string;
|
|
705
|
+
last_name: string;
|
|
706
|
+
email: string;
|
|
707
|
+
phone: string;
|
|
708
|
+
linkedin: string;
|
|
709
|
+
summary: string;
|
|
710
|
+
github: string;
|
|
711
|
+
website: string;
|
|
712
|
+
address: Address;
|
|
713
|
+
job_title: string;
|
|
714
|
+
skills: string[];
|
|
697
715
|
education: Education[];
|
|
698
|
-
experience:
|
|
716
|
+
experience: Experience[];
|
|
699
717
|
certifications: Certification[];
|
|
700
|
-
languages:
|
|
718
|
+
languages: string[];
|
|
701
719
|
projects: Project[];
|
|
702
|
-
|
|
703
|
-
additionalInfo: string | null;
|
|
720
|
+
additional_info: string;
|
|
704
721
|
}
|
|
705
722
|
|
|
706
723
|
declare const ApplicationStatus: {
|
|
@@ -925,42 +942,6 @@ interface ClientVirtualInterview {
|
|
|
925
942
|
}>;
|
|
926
943
|
}
|
|
927
944
|
|
|
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
945
|
interface ClientCompanyPreferences {
|
|
965
946
|
companyId?: string;
|
|
966
947
|
name: string;
|
|
@@ -986,6 +967,12 @@ interface ClientAccessToken {
|
|
|
986
967
|
* For new email structure
|
|
987
968
|
*/
|
|
988
969
|
type EmailCategory = "One Time Pin" | "Spam" | "Job Submitted" | "Job Interview" | "Job Accepted" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
970
|
+
interface EmailLog {
|
|
971
|
+
outcome: string;
|
|
972
|
+
status: string;
|
|
973
|
+
timestamp: string;
|
|
974
|
+
errorDetails: string;
|
|
975
|
+
}
|
|
989
976
|
interface ClientEmail {
|
|
990
977
|
bcc: string[];
|
|
991
978
|
cc: string[];
|
|
@@ -1002,6 +989,7 @@ interface ClientEmail {
|
|
|
1002
989
|
labels: string[];
|
|
1003
990
|
categories: EmailCategory[];
|
|
1004
991
|
jobApplicationId?: string;
|
|
992
|
+
logs: EmailLog[];
|
|
1005
993
|
}
|
|
1006
994
|
|
|
1007
995
|
type FirestoreTimestamp = {
|
|
@@ -1084,4 +1072,4 @@ declare const firestorePaths: {
|
|
|
1084
1072
|
};
|
|
1085
1073
|
};
|
|
1086
1074
|
|
|
1087
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1075
|
+
export { Address, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, Education, EmailCategory, EmailLog, Experience, FirestoreTimestamp, JobCategory, JobTitle, LocationId, Project, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, countries, firestorePaths, initialQuestions, jobClassifications, locations };
|
package/dist/index.d.ts
CHANGED
|
@@ -528,6 +528,8 @@ declare const ClientStatusEnum: {
|
|
|
528
528
|
readonly deleted: "deleted";
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
+
declare const initialQuestions: readonly ["What are your career goals for the next 2-3 years?", "What are your strongest technical skills?", "What are the biggest challenges you've overcome in your career?", "What work environment do you thrive in?", "What are your most significant professional achievements?", "What's your approach to learning new technologies?", "What type of projects are you most interested in working on?", "What values are most important to you in a company?"];
|
|
532
|
+
|
|
531
533
|
type AgentStatus = "active" | "inactive";
|
|
532
534
|
interface Agent {
|
|
533
535
|
readonly id?: string;
|
|
@@ -628,6 +630,7 @@ interface Vacancy {
|
|
|
628
630
|
jobId: string;
|
|
629
631
|
category: VacancyCategory;
|
|
630
632
|
suggestedTo?: string[];
|
|
633
|
+
embeddedValue?: number[];
|
|
631
634
|
createdAt?: Date | string;
|
|
632
635
|
updatedAt?: Date | string;
|
|
633
636
|
}
|
|
@@ -640,49 +643,55 @@ interface VacancySuggestion {
|
|
|
640
643
|
createdAt?: Date | string;
|
|
641
644
|
}
|
|
642
645
|
|
|
646
|
+
/**
|
|
647
|
+
* Address interface for client resume
|
|
648
|
+
*/
|
|
649
|
+
interface Address {
|
|
650
|
+
street: string;
|
|
651
|
+
city: string;
|
|
652
|
+
state: string;
|
|
653
|
+
zip_code: string;
|
|
654
|
+
country: string;
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Education interface for client resume
|
|
658
|
+
*/
|
|
643
659
|
interface Education {
|
|
644
660
|
degree: string;
|
|
645
|
-
|
|
661
|
+
field_of_study: string;
|
|
646
662
|
institution: string;
|
|
647
|
-
|
|
648
|
-
|
|
663
|
+
start_date: string;
|
|
664
|
+
end_date: string;
|
|
649
665
|
}
|
|
650
|
-
|
|
651
|
-
interface
|
|
652
|
-
|
|
666
|
+
/**
|
|
667
|
+
* Work experience interface for client resume
|
|
668
|
+
*/
|
|
669
|
+
interface Experience {
|
|
670
|
+
job_title: string;
|
|
653
671
|
company: string;
|
|
654
|
-
|
|
655
|
-
|
|
672
|
+
start_date: string;
|
|
673
|
+
end_date: string;
|
|
656
674
|
description: string;
|
|
657
675
|
}
|
|
658
|
-
|
|
676
|
+
/**
|
|
677
|
+
* Certification interface for client resume
|
|
678
|
+
*/
|
|
659
679
|
interface Certification {
|
|
660
680
|
name: string;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
expirationDate?: string;
|
|
664
|
-
credentialId?: string;
|
|
665
|
-
verificationUrl?: string;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
interface Language {
|
|
669
|
-
language: string;
|
|
670
|
-
proficiency: string;
|
|
681
|
+
issuing_organization: string;
|
|
682
|
+
issue_date: string;
|
|
671
683
|
}
|
|
672
|
-
|
|
684
|
+
/**
|
|
685
|
+
* Project interface for client resume
|
|
686
|
+
*/
|
|
673
687
|
interface Project {
|
|
674
|
-
|
|
688
|
+
project_name: string;
|
|
675
689
|
description: string;
|
|
676
690
|
technologies: string[];
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
url: string
|
|
691
|
+
start_date: string;
|
|
692
|
+
end_date: string;
|
|
693
|
+
url: string;
|
|
680
694
|
}
|
|
681
|
-
|
|
682
|
-
type Skill = string;
|
|
683
|
-
|
|
684
|
-
type Summary = string | null;
|
|
685
|
-
|
|
686
695
|
/**
|
|
687
696
|
* Subcollection document under Client
|
|
688
697
|
* Path: clients/{clientId}/resumes/{docId}
|
|
@@ -692,15 +701,23 @@ type Summary = string | null;
|
|
|
692
701
|
*/
|
|
693
702
|
interface ClientResume {
|
|
694
703
|
readonly id?: string;
|
|
695
|
-
|
|
696
|
-
|
|
704
|
+
first_name: string;
|
|
705
|
+
last_name: string;
|
|
706
|
+
email: string;
|
|
707
|
+
phone: string;
|
|
708
|
+
linkedin: string;
|
|
709
|
+
summary: string;
|
|
710
|
+
github: string;
|
|
711
|
+
website: string;
|
|
712
|
+
address: Address;
|
|
713
|
+
job_title: string;
|
|
714
|
+
skills: string[];
|
|
697
715
|
education: Education[];
|
|
698
|
-
experience:
|
|
716
|
+
experience: Experience[];
|
|
699
717
|
certifications: Certification[];
|
|
700
|
-
languages:
|
|
718
|
+
languages: string[];
|
|
701
719
|
projects: Project[];
|
|
702
|
-
|
|
703
|
-
additionalInfo: string | null;
|
|
720
|
+
additional_info: string;
|
|
704
721
|
}
|
|
705
722
|
|
|
706
723
|
declare const ApplicationStatus: {
|
|
@@ -925,42 +942,6 @@ interface ClientVirtualInterview {
|
|
|
925
942
|
}>;
|
|
926
943
|
}
|
|
927
944
|
|
|
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
945
|
interface ClientCompanyPreferences {
|
|
965
946
|
companyId?: string;
|
|
966
947
|
name: string;
|
|
@@ -986,6 +967,12 @@ interface ClientAccessToken {
|
|
|
986
967
|
* For new email structure
|
|
987
968
|
*/
|
|
988
969
|
type EmailCategory = "One Time Pin" | "Spam" | "Job Submitted" | "Job Interview" | "Job Accepted" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
|
970
|
+
interface EmailLog {
|
|
971
|
+
outcome: string;
|
|
972
|
+
status: string;
|
|
973
|
+
timestamp: string;
|
|
974
|
+
errorDetails: string;
|
|
975
|
+
}
|
|
989
976
|
interface ClientEmail {
|
|
990
977
|
bcc: string[];
|
|
991
978
|
cc: string[];
|
|
@@ -1002,6 +989,7 @@ interface ClientEmail {
|
|
|
1002
989
|
labels: string[];
|
|
1003
990
|
categories: EmailCategory[];
|
|
1004
991
|
jobApplicationId?: string;
|
|
992
|
+
logs: EmailLog[];
|
|
1005
993
|
}
|
|
1006
994
|
|
|
1007
995
|
type FirestoreTimestamp = {
|
|
@@ -1084,4 +1072,4 @@ declare const firestorePaths: {
|
|
|
1084
1072
|
};
|
|
1085
1073
|
};
|
|
1086
1074
|
|
|
1087
|
-
export { Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser,
|
|
1075
|
+
export { Address, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, Education, EmailCategory, EmailLog, Experience, FirestoreTimestamp, JobCategory, JobTitle, LocationId, Project, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, countries, firestorePaths, initialQuestions, jobClassifications, locations };
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(src_exports, {
|
|
|
26
26
|
VacancyCategory: () => VacancyCategory,
|
|
27
27
|
countries: () => countries,
|
|
28
28
|
firestorePaths: () => firestorePaths,
|
|
29
|
+
initialQuestions: () => initialQuestions,
|
|
29
30
|
jobClassifications: () => jobClassification_default,
|
|
30
31
|
locations: () => locations
|
|
31
32
|
});
|
|
@@ -1221,6 +1222,18 @@ var ClientStatusEnum = {
|
|
|
1221
1222
|
"deleted": "deleted"
|
|
1222
1223
|
};
|
|
1223
1224
|
|
|
1225
|
+
// src/static/initialQuestions.ts
|
|
1226
|
+
var initialQuestions = [
|
|
1227
|
+
"What are your career goals for the next 2-3 years?",
|
|
1228
|
+
"What are your strongest technical skills?",
|
|
1229
|
+
"What are the biggest challenges you've overcome in your career?",
|
|
1230
|
+
"What work environment do you thrive in?",
|
|
1231
|
+
"What are your most significant professional achievements?",
|
|
1232
|
+
"What's your approach to learning new technologies?",
|
|
1233
|
+
"What type of projects are you most interested in working on?",
|
|
1234
|
+
"What values are most important to you in a company?"
|
|
1235
|
+
];
|
|
1236
|
+
|
|
1224
1237
|
// src/types/Vacancy.ts
|
|
1225
1238
|
var VacancyCategory = {
|
|
1226
1239
|
Accounting: "Accounting",
|
|
@@ -1354,6 +1367,7 @@ var firestorePaths = {
|
|
|
1354
1367
|
VacancyCategory,
|
|
1355
1368
|
countries,
|
|
1356
1369
|
firestorePaths,
|
|
1370
|
+
initialQuestions,
|
|
1357
1371
|
jobClassifications,
|
|
1358
1372
|
locations
|
|
1359
1373
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1188,6 +1188,18 @@ var ClientStatusEnum = {
|
|
|
1188
1188
|
"deleted": "deleted"
|
|
1189
1189
|
};
|
|
1190
1190
|
|
|
1191
|
+
// src/static/initialQuestions.ts
|
|
1192
|
+
var initialQuestions = [
|
|
1193
|
+
"What are your career goals for the next 2-3 years?",
|
|
1194
|
+
"What are your strongest technical skills?",
|
|
1195
|
+
"What are the biggest challenges you've overcome in your career?",
|
|
1196
|
+
"What work environment do you thrive in?",
|
|
1197
|
+
"What are your most significant professional achievements?",
|
|
1198
|
+
"What's your approach to learning new technologies?",
|
|
1199
|
+
"What type of projects are you most interested in working on?",
|
|
1200
|
+
"What values are most important to you in a company?"
|
|
1201
|
+
];
|
|
1202
|
+
|
|
1191
1203
|
// src/types/Vacancy.ts
|
|
1192
1204
|
var VacancyCategory = {
|
|
1193
1205
|
Accounting: "Accounting",
|
|
@@ -1320,6 +1332,7 @@ export {
|
|
|
1320
1332
|
VacancyCategory,
|
|
1321
1333
|
countries,
|
|
1322
1334
|
firestorePaths,
|
|
1335
|
+
initialQuestions,
|
|
1323
1336
|
jobClassification_default as jobClassifications,
|
|
1324
1337
|
locations
|
|
1325
1338
|
};
|
package/package.json
CHANGED