@jobsearch-works/firestore-models 4.3.3 → 4.3.5
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 +39 -3
- package/dist/index.d.ts +39 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -560,11 +560,22 @@ interface AuthUser {
|
|
|
560
560
|
deletedAt?: Date;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
/**
|
|
564
|
+
* Company - Represents a company being monitored for job vacancies
|
|
565
|
+
* Path: companies/{companyId}
|
|
566
|
+
*/
|
|
567
|
+
interface Company {
|
|
564
568
|
companyId?: string;
|
|
565
569
|
name: string;
|
|
566
570
|
careersUrl: string;
|
|
567
|
-
|
|
571
|
+
checkCount?: number;
|
|
572
|
+
industry?: string;
|
|
573
|
+
lastChecked?: Date | string;
|
|
574
|
+
lastFoundJobs?: number;
|
|
575
|
+
platform?: string;
|
|
576
|
+
status?: "active" | "inactive" | "paused";
|
|
577
|
+
totalJobsFound?: number;
|
|
578
|
+
createdAt?: Date | string;
|
|
568
579
|
}
|
|
569
580
|
|
|
570
581
|
interface UserPublic {
|
|
@@ -766,6 +777,30 @@ interface ClientResume {
|
|
|
766
777
|
additional_info: string;
|
|
767
778
|
}
|
|
768
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Application Note - Activity log entry stored as array item in Application document
|
|
782
|
+
* Stored in: Application.notes[]
|
|
783
|
+
*
|
|
784
|
+
* Tracks all actions and changes made to an application with timestamps.
|
|
785
|
+
* Examples: status changes, withdrawals, manual interventions, etc.
|
|
786
|
+
*/
|
|
787
|
+
interface ApplicationNote {
|
|
788
|
+
/** Type of action/note */
|
|
789
|
+
type: "status_change" | "withdrawal" | "manual_intervention" | "note" | "other";
|
|
790
|
+
/** Human-readable message describing the action */
|
|
791
|
+
message: string;
|
|
792
|
+
/** Previous status (if status change) */
|
|
793
|
+
previousStatus?: string;
|
|
794
|
+
/** New status (if status change) */
|
|
795
|
+
newStatus?: string;
|
|
796
|
+
/** User who performed the action (clientId or admin userId) */
|
|
797
|
+
performedBy?: string;
|
|
798
|
+
/** Additional metadata */
|
|
799
|
+
metadata?: Record<string, any>;
|
|
800
|
+
/** Timestamp when the note was created */
|
|
801
|
+
createdAt: Date | string;
|
|
802
|
+
}
|
|
803
|
+
|
|
769
804
|
declare const ApplicationStatus: {
|
|
770
805
|
readonly New: "new";
|
|
771
806
|
readonly Submitted: "submitted";
|
|
@@ -820,6 +855,7 @@ interface Application {
|
|
|
820
855
|
fullPageText?: string;
|
|
821
856
|
requiresHumanVerification?: boolean;
|
|
822
857
|
verificationType?: string;
|
|
858
|
+
notes?: ApplicationNote[];
|
|
823
859
|
createdAt?: Date | string;
|
|
824
860
|
updatedAt?: Date | string;
|
|
825
861
|
}
|
|
@@ -1276,4 +1312,4 @@ declare const firestorePaths: {
|
|
|
1276
1312
|
};
|
|
1277
1313
|
};
|
|
1278
1314
|
|
|
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,
|
|
1315
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationNote, 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, Company, 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
|
@@ -560,11 +560,22 @@ interface AuthUser {
|
|
|
560
560
|
deletedAt?: Date;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
/**
|
|
564
|
+
* Company - Represents a company being monitored for job vacancies
|
|
565
|
+
* Path: companies/{companyId}
|
|
566
|
+
*/
|
|
567
|
+
interface Company {
|
|
564
568
|
companyId?: string;
|
|
565
569
|
name: string;
|
|
566
570
|
careersUrl: string;
|
|
567
|
-
|
|
571
|
+
checkCount?: number;
|
|
572
|
+
industry?: string;
|
|
573
|
+
lastChecked?: Date | string;
|
|
574
|
+
lastFoundJobs?: number;
|
|
575
|
+
platform?: string;
|
|
576
|
+
status?: "active" | "inactive" | "paused";
|
|
577
|
+
totalJobsFound?: number;
|
|
578
|
+
createdAt?: Date | string;
|
|
568
579
|
}
|
|
569
580
|
|
|
570
581
|
interface UserPublic {
|
|
@@ -766,6 +777,30 @@ interface ClientResume {
|
|
|
766
777
|
additional_info: string;
|
|
767
778
|
}
|
|
768
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Application Note - Activity log entry stored as array item in Application document
|
|
782
|
+
* Stored in: Application.notes[]
|
|
783
|
+
*
|
|
784
|
+
* Tracks all actions and changes made to an application with timestamps.
|
|
785
|
+
* Examples: status changes, withdrawals, manual interventions, etc.
|
|
786
|
+
*/
|
|
787
|
+
interface ApplicationNote {
|
|
788
|
+
/** Type of action/note */
|
|
789
|
+
type: "status_change" | "withdrawal" | "manual_intervention" | "note" | "other";
|
|
790
|
+
/** Human-readable message describing the action */
|
|
791
|
+
message: string;
|
|
792
|
+
/** Previous status (if status change) */
|
|
793
|
+
previousStatus?: string;
|
|
794
|
+
/** New status (if status change) */
|
|
795
|
+
newStatus?: string;
|
|
796
|
+
/** User who performed the action (clientId or admin userId) */
|
|
797
|
+
performedBy?: string;
|
|
798
|
+
/** Additional metadata */
|
|
799
|
+
metadata?: Record<string, any>;
|
|
800
|
+
/** Timestamp when the note was created */
|
|
801
|
+
createdAt: Date | string;
|
|
802
|
+
}
|
|
803
|
+
|
|
769
804
|
declare const ApplicationStatus: {
|
|
770
805
|
readonly New: "new";
|
|
771
806
|
readonly Submitted: "submitted";
|
|
@@ -820,6 +855,7 @@ interface Application {
|
|
|
820
855
|
fullPageText?: string;
|
|
821
856
|
requiresHumanVerification?: boolean;
|
|
822
857
|
verificationType?: string;
|
|
858
|
+
notes?: ApplicationNote[];
|
|
823
859
|
createdAt?: Date | string;
|
|
824
860
|
updatedAt?: Date | string;
|
|
825
861
|
}
|
|
@@ -1276,4 +1312,4 @@ declare const firestorePaths: {
|
|
|
1276
1312
|
};
|
|
1277
1313
|
};
|
|
1278
1314
|
|
|
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,
|
|
1315
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationNote, 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, Company, 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