@jobsearch-works/firestore-models 2.3.0 → 2.3.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/dist/index.d.mts +4 -24
- package/dist/index.d.ts +4 -24
- package/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -966,7 +966,8 @@ interface ClientAccessToken {
|
|
966
966
|
* Subcollection document under clients/{userId}/emails/{emailId}
|
967
967
|
* For new email structure
|
968
968
|
*/
|
969
|
-
|
969
|
+
type EmailCategory = "One Time Pin" | "Spam" | "Job Interview" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
970
|
+
interface ClientEmail {
|
970
971
|
bcc: string[];
|
971
972
|
cc: string[];
|
972
973
|
to: string[];
|
@@ -980,24 +981,7 @@ interface ClientEmailV2 {
|
|
980
981
|
thread_id: string;
|
981
982
|
timestamp: number;
|
982
983
|
labels: string[];
|
983
|
-
|
984
|
-
|
985
|
-
/**
|
986
|
-
* Subcollection document under clients/{userId}/emails/{emailId}/analysed/general
|
987
|
-
*/
|
988
|
-
interface EmailAnalysedGeneral {
|
989
|
-
category: string;
|
990
|
-
date: string;
|
991
|
-
job_response: boolean;
|
992
|
-
suggested_action: string;
|
993
|
-
}
|
994
|
-
|
995
|
-
/**
|
996
|
-
* Subcollection document under clients/{userId}/emails/{emailId}/analysed/classified
|
997
|
-
* All fields are dynamic.
|
998
|
-
*/
|
999
|
-
interface EmailAnalysedClassified {
|
1000
|
-
[key: string]: any;
|
984
|
+
categories: EmailCategory[];
|
1001
985
|
}
|
1002
986
|
|
1003
987
|
type FirestoreTimestamp = {
|
@@ -1016,10 +1000,6 @@ declare const firestorePaths: {
|
|
1016
1000
|
readonly emails: {
|
1017
1001
|
readonly collection: (clientId: string) => string;
|
1018
1002
|
readonly doc: (clientId: string, emailId: string) => string;
|
1019
|
-
readonly analysed: {
|
1020
|
-
readonly collection: (clientId: string, emailId: string) => string;
|
1021
|
-
readonly doc: (clientId: string, emailId: string, analysedType: "general" | "classified") => string;
|
1022
|
-
};
|
1023
1003
|
};
|
1024
1004
|
readonly questions: {
|
1025
1005
|
readonly collection: (clientId: string) => string;
|
@@ -1084,4 +1064,4 @@ declare const firestorePaths: {
|
|
1084
1064
|
};
|
1085
1065
|
};
|
1086
1066
|
|
1087
|
-
export { Agent, AgentStatus, Application, ApplicationEnrichedField, ApplicationEnrichedForm, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Client, ClientAccessToken, ClientCertifications, ClientEducation,
|
1067
|
+
export { Agent, AgentStatus, Application, ApplicationEnrichedField, ApplicationEnrichedForm, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Client, ClientAccessToken, ClientCertifications, ClientEducation, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLanguage, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientSkill, ClientStatus, ClientVirtualInterview, ClientWebsitePreferences, ClientWorkExperience, EmailCategory, FirestoreTimestamp, JobCategory, JobTitle, LocationId, UserPublic, Vacancy, VacancyCategory, VacancyExtractedField, VacancyExtractedForm, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
package/dist/index.d.ts
CHANGED
@@ -966,7 +966,8 @@ interface ClientAccessToken {
|
|
966
966
|
* Subcollection document under clients/{userId}/emails/{emailId}
|
967
967
|
* For new email structure
|
968
968
|
*/
|
969
|
-
|
969
|
+
type EmailCategory = "One Time Pin" | "Spam" | "Job Interview" | "Job Rejection" | "Require More Info" | "Job Suggestions" | "Uncategorised";
|
970
|
+
interface ClientEmail {
|
970
971
|
bcc: string[];
|
971
972
|
cc: string[];
|
972
973
|
to: string[];
|
@@ -980,24 +981,7 @@ interface ClientEmailV2 {
|
|
980
981
|
thread_id: string;
|
981
982
|
timestamp: number;
|
982
983
|
labels: string[];
|
983
|
-
|
984
|
-
|
985
|
-
/**
|
986
|
-
* Subcollection document under clients/{userId}/emails/{emailId}/analysed/general
|
987
|
-
*/
|
988
|
-
interface EmailAnalysedGeneral {
|
989
|
-
category: string;
|
990
|
-
date: string;
|
991
|
-
job_response: boolean;
|
992
|
-
suggested_action: string;
|
993
|
-
}
|
994
|
-
|
995
|
-
/**
|
996
|
-
* Subcollection document under clients/{userId}/emails/{emailId}/analysed/classified
|
997
|
-
* All fields are dynamic.
|
998
|
-
*/
|
999
|
-
interface EmailAnalysedClassified {
|
1000
|
-
[key: string]: any;
|
984
|
+
categories: EmailCategory[];
|
1001
985
|
}
|
1002
986
|
|
1003
987
|
type FirestoreTimestamp = {
|
@@ -1016,10 +1000,6 @@ declare const firestorePaths: {
|
|
1016
1000
|
readonly emails: {
|
1017
1001
|
readonly collection: (clientId: string) => string;
|
1018
1002
|
readonly doc: (clientId: string, emailId: string) => string;
|
1019
|
-
readonly analysed: {
|
1020
|
-
readonly collection: (clientId: string, emailId: string) => string;
|
1021
|
-
readonly doc: (clientId: string, emailId: string, analysedType: "general" | "classified") => string;
|
1022
|
-
};
|
1023
1003
|
};
|
1024
1004
|
readonly questions: {
|
1025
1005
|
readonly collection: (clientId: string) => string;
|
@@ -1084,4 +1064,4 @@ declare const firestorePaths: {
|
|
1084
1064
|
};
|
1085
1065
|
};
|
1086
1066
|
|
1087
|
-
export { Agent, AgentStatus, Application, ApplicationEnrichedField, ApplicationEnrichedForm, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Client, ClientAccessToken, ClientCertifications, ClientEducation,
|
1067
|
+
export { Agent, AgentStatus, Application, ApplicationEnrichedField, ApplicationEnrichedForm, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationStatus, AuthEmail, AuthUser, Client, ClientAccessToken, ClientCertifications, ClientEducation, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLanguage, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientSkill, ClientStatus, ClientVirtualInterview, ClientWebsitePreferences, ClientWorkExperience, EmailCategory, FirestoreTimestamp, JobCategory, JobTitle, LocationId, UserPublic, Vacancy, VacancyCategory, VacancyExtractedField, VacancyExtractedForm, VacancySuggestion, firestorePaths, jobClassifications, locations };
|
package/dist/index.js
CHANGED
@@ -1071,11 +1071,7 @@ var firestorePaths = {
|
|
1071
1071
|
},
|
1072
1072
|
emails: {
|
1073
1073
|
collection: (clientId) => `clients/${clientId}/emails`,
|
1074
|
-
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}
|
1075
|
-
analysed: {
|
1076
|
-
collection: (clientId, emailId) => `clients/${clientId}/emails/${emailId}/analysed`,
|
1077
|
-
doc: (clientId, emailId, analysedType) => `clients/${clientId}/emails/${emailId}/analysed/${analysedType}`
|
1078
|
-
}
|
1074
|
+
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
|
1079
1075
|
},
|
1080
1076
|
questions: {
|
1081
1077
|
collection: (clientId) => `clients/${clientId}/questions`,
|
package/dist/index.mjs
CHANGED
@@ -1040,11 +1040,7 @@ var firestorePaths = {
|
|
1040
1040
|
},
|
1041
1041
|
emails: {
|
1042
1042
|
collection: (clientId) => `clients/${clientId}/emails`,
|
1043
|
-
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}
|
1044
|
-
analysed: {
|
1045
|
-
collection: (clientId, emailId) => `clients/${clientId}/emails/${emailId}/analysed`,
|
1046
|
-
doc: (clientId, emailId, analysedType) => `clients/${clientId}/emails/${emailId}/analysed/${analysedType}`
|
1047
|
-
}
|
1043
|
+
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
|
1048
1044
|
},
|
1049
1045
|
questions: {
|
1050
1046
|
collection: (clientId) => `clients/${clientId}/questions`,
|
package/package.json
CHANGED