@jobsearch-works/firestore-models 4.3.2 → 4.3.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 +30 -12
- package/dist/index.d.ts +30 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -818,6 +818,8 @@ interface Application {
|
|
|
818
818
|
advertisingDomain?: string;
|
|
819
819
|
description?: string;
|
|
820
820
|
fullPageText?: string;
|
|
821
|
+
requiresHumanVerification?: boolean;
|
|
822
|
+
verificationType?: string;
|
|
821
823
|
createdAt?: Date | string;
|
|
822
824
|
updatedAt?: Date | string;
|
|
823
825
|
}
|
|
@@ -887,7 +889,6 @@ interface ApplicationRun {
|
|
|
887
889
|
completedAt?: Date | string;
|
|
888
890
|
tokensUsed?: number;
|
|
889
891
|
summary?: string;
|
|
890
|
-
log?: string;
|
|
891
892
|
logEntries?: ApplicationRunLogEntry[];
|
|
892
893
|
failureReason?: string;
|
|
893
894
|
triggeredBy: ApplicationRunTrigger;
|
|
@@ -897,22 +898,25 @@ interface ApplicationRun {
|
|
|
897
898
|
}
|
|
898
899
|
|
|
899
900
|
/**
|
|
900
|
-
*
|
|
901
|
-
*
|
|
901
|
+
* Statistics for a time period (day, week, or month)
|
|
902
|
+
* Tracks all application status changes
|
|
902
903
|
*/
|
|
903
|
-
interface
|
|
904
|
-
/** Number of applications
|
|
904
|
+
interface ApplicationPeriodStats {
|
|
905
|
+
/** Number of applications suggested in this period */
|
|
906
|
+
suggested: number;
|
|
907
|
+
/** Number of applications applied (submitted) in this period */
|
|
905
908
|
applied: number;
|
|
906
|
-
/** Number of applications archived (rejected or withdrawn)
|
|
909
|
+
/** Number of applications archived (rejected or withdrawn) in this period */
|
|
907
910
|
archived: number;
|
|
911
|
+
/** Number of applications that moved to interviewing in this period */
|
|
912
|
+
interviews: number;
|
|
908
913
|
}
|
|
909
914
|
/**
|
|
910
|
-
* Application statistics aggregated by day
|
|
915
|
+
* Application statistics aggregated by day, week, and month
|
|
911
916
|
* Path: stats/{clientId}
|
|
912
917
|
*
|
|
913
918
|
* One document per client containing all application statistics.
|
|
914
|
-
*
|
|
915
|
-
* for efficient daily aggregation and querying.
|
|
919
|
+
* Statistics are keyed by date strings for efficient aggregation and querying.
|
|
916
920
|
*/
|
|
917
921
|
interface ApplicationStats {
|
|
918
922
|
/** Document ID is the clientId */
|
|
@@ -920,13 +924,27 @@ interface ApplicationStats {
|
|
|
920
924
|
clientId: string;
|
|
921
925
|
/**
|
|
922
926
|
* Daily statistics keyed by date string (YYYY-MM-DD format)
|
|
923
|
-
* Example: { "2025-01-15": { applied: 3, archived: 1 } }
|
|
927
|
+
* Example: { "2025-01-15": { suggested: 2, applied: 3, archived: 1, interviews: 0 } }
|
|
924
928
|
*/
|
|
925
|
-
dailyStats: Record<string,
|
|
929
|
+
dailyStats: Record<string, ApplicationPeriodStats>;
|
|
930
|
+
/**
|
|
931
|
+
* Weekly statistics keyed by week start date (YYYY-MM-DD format, Monday of the week)
|
|
932
|
+
* Example: { "2025-01-13": { suggested: 10, applied: 15, archived: 5, interviews: 2 } }
|
|
933
|
+
*/
|
|
934
|
+
weeklyStats?: Record<string, ApplicationPeriodStats>;
|
|
935
|
+
/**
|
|
936
|
+
* Monthly statistics keyed by month (YYYY-MM format)
|
|
937
|
+
* Example: { "2025-01": { suggested: 45, applied: 60, archived: 20, interviews: 8 } }
|
|
938
|
+
*/
|
|
939
|
+
monthlyStats?: Record<string, ApplicationPeriodStats>;
|
|
940
|
+
/** Total count of all applications suggested (ever) */
|
|
941
|
+
totalSuggested: number;
|
|
926
942
|
/** Total count of all applications applied (ever) */
|
|
927
943
|
totalApplied: number;
|
|
928
944
|
/** Total count of all applications archived (ever) */
|
|
929
945
|
totalArchived: number;
|
|
946
|
+
/** Total count of all applications that reached interview stage (ever) */
|
|
947
|
+
totalInterviews: number;
|
|
930
948
|
/** Last time stats were updated */
|
|
931
949
|
updatedAt?: Date | string;
|
|
932
950
|
/** When this stats document was created */
|
|
@@ -1258,4 +1276,4 @@ declare const firestorePaths: {
|
|
|
1258
1276
|
};
|
|
1259
1277
|
};
|
|
1260
1278
|
|
|
1261
|
-
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunLogEntry, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, ApplicationStats, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies,
|
|
1279
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationPeriodStats, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunLogEntry, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, ApplicationStats, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, EMAIL_CATEGORIES, Education, EmailCategory, EmailLog, Experience, FirestoreTimestamp, GmailOAuthSession, JobCategory, JobTitle, LocationId, Project, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, countries, firestorePaths, initialQuestions, jobClassifications, locations };
|
package/dist/index.d.ts
CHANGED
|
@@ -818,6 +818,8 @@ interface Application {
|
|
|
818
818
|
advertisingDomain?: string;
|
|
819
819
|
description?: string;
|
|
820
820
|
fullPageText?: string;
|
|
821
|
+
requiresHumanVerification?: boolean;
|
|
822
|
+
verificationType?: string;
|
|
821
823
|
createdAt?: Date | string;
|
|
822
824
|
updatedAt?: Date | string;
|
|
823
825
|
}
|
|
@@ -887,7 +889,6 @@ interface ApplicationRun {
|
|
|
887
889
|
completedAt?: Date | string;
|
|
888
890
|
tokensUsed?: number;
|
|
889
891
|
summary?: string;
|
|
890
|
-
log?: string;
|
|
891
892
|
logEntries?: ApplicationRunLogEntry[];
|
|
892
893
|
failureReason?: string;
|
|
893
894
|
triggeredBy: ApplicationRunTrigger;
|
|
@@ -897,22 +898,25 @@ interface ApplicationRun {
|
|
|
897
898
|
}
|
|
898
899
|
|
|
899
900
|
/**
|
|
900
|
-
*
|
|
901
|
-
*
|
|
901
|
+
* Statistics for a time period (day, week, or month)
|
|
902
|
+
* Tracks all application status changes
|
|
902
903
|
*/
|
|
903
|
-
interface
|
|
904
|
-
/** Number of applications
|
|
904
|
+
interface ApplicationPeriodStats {
|
|
905
|
+
/** Number of applications suggested in this period */
|
|
906
|
+
suggested: number;
|
|
907
|
+
/** Number of applications applied (submitted) in this period */
|
|
905
908
|
applied: number;
|
|
906
|
-
/** Number of applications archived (rejected or withdrawn)
|
|
909
|
+
/** Number of applications archived (rejected or withdrawn) in this period */
|
|
907
910
|
archived: number;
|
|
911
|
+
/** Number of applications that moved to interviewing in this period */
|
|
912
|
+
interviews: number;
|
|
908
913
|
}
|
|
909
914
|
/**
|
|
910
|
-
* Application statistics aggregated by day
|
|
915
|
+
* Application statistics aggregated by day, week, and month
|
|
911
916
|
* Path: stats/{clientId}
|
|
912
917
|
*
|
|
913
918
|
* One document per client containing all application statistics.
|
|
914
|
-
*
|
|
915
|
-
* for efficient daily aggregation and querying.
|
|
919
|
+
* Statistics are keyed by date strings for efficient aggregation and querying.
|
|
916
920
|
*/
|
|
917
921
|
interface ApplicationStats {
|
|
918
922
|
/** Document ID is the clientId */
|
|
@@ -920,13 +924,27 @@ interface ApplicationStats {
|
|
|
920
924
|
clientId: string;
|
|
921
925
|
/**
|
|
922
926
|
* Daily statistics keyed by date string (YYYY-MM-DD format)
|
|
923
|
-
* Example: { "2025-01-15": { applied: 3, archived: 1 } }
|
|
927
|
+
* Example: { "2025-01-15": { suggested: 2, applied: 3, archived: 1, interviews: 0 } }
|
|
924
928
|
*/
|
|
925
|
-
dailyStats: Record<string,
|
|
929
|
+
dailyStats: Record<string, ApplicationPeriodStats>;
|
|
930
|
+
/**
|
|
931
|
+
* Weekly statistics keyed by week start date (YYYY-MM-DD format, Monday of the week)
|
|
932
|
+
* Example: { "2025-01-13": { suggested: 10, applied: 15, archived: 5, interviews: 2 } }
|
|
933
|
+
*/
|
|
934
|
+
weeklyStats?: Record<string, ApplicationPeriodStats>;
|
|
935
|
+
/**
|
|
936
|
+
* Monthly statistics keyed by month (YYYY-MM format)
|
|
937
|
+
* Example: { "2025-01": { suggested: 45, applied: 60, archived: 20, interviews: 8 } }
|
|
938
|
+
*/
|
|
939
|
+
monthlyStats?: Record<string, ApplicationPeriodStats>;
|
|
940
|
+
/** Total count of all applications suggested (ever) */
|
|
941
|
+
totalSuggested: number;
|
|
926
942
|
/** Total count of all applications applied (ever) */
|
|
927
943
|
totalApplied: number;
|
|
928
944
|
/** Total count of all applications archived (ever) */
|
|
929
945
|
totalArchived: number;
|
|
946
|
+
/** Total count of all applications that reached interview stage (ever) */
|
|
947
|
+
totalInterviews: number;
|
|
930
948
|
/** Last time stats were updated */
|
|
931
949
|
updatedAt?: Date | string;
|
|
932
950
|
/** When this stats document was created */
|
|
@@ -1258,4 +1276,4 @@ declare const firestorePaths: {
|
|
|
1258
1276
|
};
|
|
1259
1277
|
};
|
|
1260
1278
|
|
|
1261
|
-
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunLogEntry, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, ApplicationStats, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies,
|
|
1279
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationPeriodStats, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunLogEntry, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, ApplicationStats, ApplicationStatus, AuthEmail, AuthUser, Certification, Client, ClientAccessToken, ClientCompanyPreferences, ClientEmail, ClientGmailToken, ClientInitialQuestion, ClientJobPreferences, ClientLogin, ClientPersonalData, ClientQuestion, ClientResume, ClientStatus, ClientStatusEnum, ClientVirtualInterview, Companies, EMAIL_CATEGORIES, Education, EmailCategory, EmailLog, Experience, FirestoreTimestamp, GmailOAuthSession, JobCategory, JobTitle, LocationId, Project, UserPublic, Vacancy, VacancyCategory, VacancySuggestion, countries, firestorePaths, initialQuestions, jobClassifications, locations };
|
package/package.json
CHANGED