@jobsearch-works/firestore-models 4.0.3 → 4.2.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 +95 -16
- package/dist/index.d.ts +95 -16
- package/dist/index.js +34 -8
- package/dist/index.mjs +31 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -583,6 +583,18 @@ interface UserPublic {
|
|
|
583
583
|
updatedAt?: Date | string;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
type ApplicationQuestionType = "text" | "select" | "radio" | "checkbox" | "textarea" | "file";
|
|
587
|
+
declare const ApplicationQuestionTypeOptions: readonly ApplicationQuestionType[];
|
|
588
|
+
interface ApplicationQuestion {
|
|
589
|
+
id?: string;
|
|
590
|
+
questionText: string;
|
|
591
|
+
answerText?: string;
|
|
592
|
+
type: ApplicationQuestionType;
|
|
593
|
+
selector?: string;
|
|
594
|
+
action?: string;
|
|
595
|
+
options?: string[];
|
|
596
|
+
}
|
|
597
|
+
|
|
586
598
|
declare const VacancyCategory: {
|
|
587
599
|
readonly Accounting: "Accounting";
|
|
588
600
|
readonly AdministrationAndOfficeSupport: "Administration & Office Support";
|
|
@@ -631,6 +643,7 @@ interface Vacancy {
|
|
|
631
643
|
category: VacancyCategory;
|
|
632
644
|
suggestedTo?: string[];
|
|
633
645
|
embeddedValue?: number[];
|
|
646
|
+
questions?: Omit<ApplicationQuestion, "answerText">[];
|
|
634
647
|
createdAt?: Date | string;
|
|
635
648
|
updatedAt?: Date | string;
|
|
636
649
|
}
|
|
@@ -653,7 +666,7 @@ interface WeeklyApplication {
|
|
|
653
666
|
|
|
654
667
|
interface AdminReport {
|
|
655
668
|
readonly agentName: string;
|
|
656
|
-
readonly applications: WeeklyApplication
|
|
669
|
+
readonly applications: WeeklyApplication;
|
|
657
670
|
}
|
|
658
671
|
|
|
659
672
|
/**
|
|
@@ -753,6 +766,17 @@ interface Application {
|
|
|
753
766
|
assignedTo?: string;
|
|
754
767
|
coverLetter?: string;
|
|
755
768
|
resume?: ClientResume;
|
|
769
|
+
questions?: ApplicationQuestion[];
|
|
770
|
+
automationSummary?: string;
|
|
771
|
+
automationTokensUsed?: number;
|
|
772
|
+
automationLog?: string;
|
|
773
|
+
automationFailedAt?: Date | string;
|
|
774
|
+
automationFailureReason?: string;
|
|
775
|
+
latestRunId?: string;
|
|
776
|
+
totalAutomationRuns?: number;
|
|
777
|
+
totalTokensUsed?: number;
|
|
778
|
+
lastRunAt?: Date | string;
|
|
779
|
+
lastRunStatus?: string;
|
|
756
780
|
submittedAt?: Date | string;
|
|
757
781
|
interviewingAt?: Date | string;
|
|
758
782
|
acceptedAt?: Date | string;
|
|
@@ -775,18 +799,63 @@ interface Application {
|
|
|
775
799
|
updatedAt?: Date | string;
|
|
776
800
|
}
|
|
777
801
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
802
|
+
/**
|
|
803
|
+
* Represents a single automation run attempt for an application
|
|
804
|
+
* Each application can have multiple runs (retries, manual interventions, etc.)
|
|
805
|
+
*/
|
|
806
|
+
declare const ApplicationRunStatus: {
|
|
807
|
+
readonly InProgress: "in_progress";
|
|
808
|
+
readonly Completed: "completed";
|
|
809
|
+
readonly Failed: "failed";
|
|
810
|
+
readonly ManualTakeover: "manual_takeover";
|
|
811
|
+
};
|
|
812
|
+
type ApplicationRunStatus = (typeof ApplicationRunStatus)[keyof typeof ApplicationRunStatus];
|
|
813
|
+
declare const ApplicationRunOutcome: {
|
|
814
|
+
readonly Submitted: "submitted";
|
|
815
|
+
readonly Failed: "failed";
|
|
816
|
+
readonly CaptchaBlocked: "captcha_blocked";
|
|
817
|
+
readonly FormNotFound: "form_not_found";
|
|
818
|
+
readonly AuthenticationFailed: "authentication_failed";
|
|
819
|
+
readonly ManualInterventionRequired: "manual_intervention_required";
|
|
820
|
+
readonly Timeout: "timeout";
|
|
821
|
+
readonly NetworkError: "network_error";
|
|
822
|
+
};
|
|
823
|
+
type ApplicationRunOutcome = (typeof ApplicationRunOutcome)[keyof typeof ApplicationRunOutcome];
|
|
824
|
+
declare const ApplicationRunTrigger: {
|
|
825
|
+
readonly Automation: "automation";
|
|
826
|
+
readonly Manual: "manual";
|
|
827
|
+
readonly RetryScheduled: "retry_scheduled";
|
|
828
|
+
readonly AdminIntervention: "admin_intervention";
|
|
829
|
+
};
|
|
830
|
+
type ApplicationRunTrigger = (typeof ApplicationRunTrigger)[keyof typeof ApplicationRunTrigger];
|
|
831
|
+
interface ApplicationRunMetadata {
|
|
832
|
+
formVersion?: string;
|
|
833
|
+
browserAgent?: string;
|
|
834
|
+
interventionNotes?: string;
|
|
835
|
+
captchaSolved?: boolean;
|
|
836
|
+
emailVerificationRequired?: boolean;
|
|
837
|
+
documentsUploaded?: string[];
|
|
838
|
+
questionsAnswered?: number;
|
|
839
|
+
fieldsCompleted?: number;
|
|
840
|
+
durationSeconds?: number;
|
|
841
|
+
}
|
|
842
|
+
interface ApplicationRun {
|
|
781
843
|
id?: string;
|
|
782
|
-
|
|
783
|
-
answerText?: string;
|
|
844
|
+
applicationId: string;
|
|
784
845
|
clientId: string;
|
|
785
|
-
|
|
846
|
+
runNumber: number;
|
|
847
|
+
status: ApplicationRunStatus;
|
|
848
|
+
outcome?: ApplicationRunOutcome;
|
|
849
|
+
startedAt: Date | string;
|
|
850
|
+
completedAt?: Date | string;
|
|
851
|
+
tokensUsed?: number;
|
|
852
|
+
summary?: string;
|
|
853
|
+
log?: string;
|
|
854
|
+
failureReason?: string;
|
|
855
|
+
triggeredBy: ApplicationRunTrigger;
|
|
856
|
+
metadata?: ApplicationRunMetadata;
|
|
786
857
|
createdAt?: Date | string;
|
|
787
858
|
updatedAt?: Date | string;
|
|
788
|
-
selector?: string;
|
|
789
|
-
action?: string;
|
|
790
859
|
}
|
|
791
860
|
|
|
792
861
|
/**
|
|
@@ -811,9 +880,16 @@ interface ClientPersonalData {
|
|
|
811
880
|
countryPhoneCode: string;
|
|
812
881
|
nationality: string;
|
|
813
882
|
dateOfBirth?: Date | string;
|
|
883
|
+
gender?: 'Male' | 'Female' | 'Non-binary' | 'Prefer not to say' | 'Other';
|
|
814
884
|
ethnicity?: string;
|
|
815
885
|
disabilityStatus?: string;
|
|
816
886
|
securityClearance?: string;
|
|
887
|
+
workEligibility?: 'Australian Citizen' | 'Permanent Resident' | 'Temporary Visa' | 'Student Visa' | 'Working Holiday Visa' | 'Other';
|
|
888
|
+
visaType?: string;
|
|
889
|
+
workRestrictions?: string;
|
|
890
|
+
backgroundCheckConsent?: 'Yes' | 'No';
|
|
891
|
+
drugTestConsent?: 'Yes' | 'No';
|
|
892
|
+
travelWillingness?: 'Yes' | 'No' | 'Sometimes';
|
|
817
893
|
createdAt?: Date | string;
|
|
818
894
|
updatedAt?: Date | string;
|
|
819
895
|
photoUrl?: string;
|
|
@@ -837,8 +913,15 @@ interface ClientJobPreferences {
|
|
|
837
913
|
jobCategories: JobCategory[];
|
|
838
914
|
locations: LocationId[];
|
|
839
915
|
salaryExpectation?: number;
|
|
916
|
+
minSalary?: number;
|
|
917
|
+
maxSalary?: number;
|
|
840
918
|
employmentTypes: string[];
|
|
841
919
|
remotePreference: 'remote' | 'hybrid' | 'office';
|
|
920
|
+
earliestStartDate?: string;
|
|
921
|
+
workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
|
|
922
|
+
weekendWork?: 'yes' | 'no' | 'sometimes';
|
|
923
|
+
shiftWork?: 'yes' | 'no' | 'sometimes';
|
|
924
|
+
travelWillingness?: 'yes' | 'no' | 'sometimes';
|
|
842
925
|
visaSponsorshipRequired: boolean;
|
|
843
926
|
createdAt?: Date | string;
|
|
844
927
|
updatedAt?: Date | string;
|
|
@@ -1037,13 +1120,9 @@ declare const firestorePaths: {
|
|
|
1037
1120
|
readonly applications: {
|
|
1038
1121
|
readonly collection: (clientId: string) => string;
|
|
1039
1122
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
1040
|
-
readonly
|
|
1041
|
-
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1042
|
-
readonly doc: (clientId: string, applicationId: string, interviewId: string) => string;
|
|
1043
|
-
};
|
|
1044
|
-
readonly questions: {
|
|
1123
|
+
readonly runs: {
|
|
1045
1124
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1046
|
-
readonly doc: (clientId: string, applicationId: string,
|
|
1125
|
+
readonly doc: (clientId: string, applicationId: string, runId: string) => string;
|
|
1047
1126
|
};
|
|
1048
1127
|
readonly notes: {
|
|
1049
1128
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
@@ -1093,4 +1172,4 @@ declare const firestorePaths: {
|
|
|
1093
1172
|
};
|
|
1094
1173
|
};
|
|
1095
1174
|
|
|
1096
|
-
export { Address, AdminReport, 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 };
|
|
1175
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, 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
|
@@ -583,6 +583,18 @@ interface UserPublic {
|
|
|
583
583
|
updatedAt?: Date | string;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
type ApplicationQuestionType = "text" | "select" | "radio" | "checkbox" | "textarea" | "file";
|
|
587
|
+
declare const ApplicationQuestionTypeOptions: readonly ApplicationQuestionType[];
|
|
588
|
+
interface ApplicationQuestion {
|
|
589
|
+
id?: string;
|
|
590
|
+
questionText: string;
|
|
591
|
+
answerText?: string;
|
|
592
|
+
type: ApplicationQuestionType;
|
|
593
|
+
selector?: string;
|
|
594
|
+
action?: string;
|
|
595
|
+
options?: string[];
|
|
596
|
+
}
|
|
597
|
+
|
|
586
598
|
declare const VacancyCategory: {
|
|
587
599
|
readonly Accounting: "Accounting";
|
|
588
600
|
readonly AdministrationAndOfficeSupport: "Administration & Office Support";
|
|
@@ -631,6 +643,7 @@ interface Vacancy {
|
|
|
631
643
|
category: VacancyCategory;
|
|
632
644
|
suggestedTo?: string[];
|
|
633
645
|
embeddedValue?: number[];
|
|
646
|
+
questions?: Omit<ApplicationQuestion, "answerText">[];
|
|
634
647
|
createdAt?: Date | string;
|
|
635
648
|
updatedAt?: Date | string;
|
|
636
649
|
}
|
|
@@ -653,7 +666,7 @@ interface WeeklyApplication {
|
|
|
653
666
|
|
|
654
667
|
interface AdminReport {
|
|
655
668
|
readonly agentName: string;
|
|
656
|
-
readonly applications: WeeklyApplication
|
|
669
|
+
readonly applications: WeeklyApplication;
|
|
657
670
|
}
|
|
658
671
|
|
|
659
672
|
/**
|
|
@@ -753,6 +766,17 @@ interface Application {
|
|
|
753
766
|
assignedTo?: string;
|
|
754
767
|
coverLetter?: string;
|
|
755
768
|
resume?: ClientResume;
|
|
769
|
+
questions?: ApplicationQuestion[];
|
|
770
|
+
automationSummary?: string;
|
|
771
|
+
automationTokensUsed?: number;
|
|
772
|
+
automationLog?: string;
|
|
773
|
+
automationFailedAt?: Date | string;
|
|
774
|
+
automationFailureReason?: string;
|
|
775
|
+
latestRunId?: string;
|
|
776
|
+
totalAutomationRuns?: number;
|
|
777
|
+
totalTokensUsed?: number;
|
|
778
|
+
lastRunAt?: Date | string;
|
|
779
|
+
lastRunStatus?: string;
|
|
756
780
|
submittedAt?: Date | string;
|
|
757
781
|
interviewingAt?: Date | string;
|
|
758
782
|
acceptedAt?: Date | string;
|
|
@@ -775,18 +799,63 @@ interface Application {
|
|
|
775
799
|
updatedAt?: Date | string;
|
|
776
800
|
}
|
|
777
801
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
802
|
+
/**
|
|
803
|
+
* Represents a single automation run attempt for an application
|
|
804
|
+
* Each application can have multiple runs (retries, manual interventions, etc.)
|
|
805
|
+
*/
|
|
806
|
+
declare const ApplicationRunStatus: {
|
|
807
|
+
readonly InProgress: "in_progress";
|
|
808
|
+
readonly Completed: "completed";
|
|
809
|
+
readonly Failed: "failed";
|
|
810
|
+
readonly ManualTakeover: "manual_takeover";
|
|
811
|
+
};
|
|
812
|
+
type ApplicationRunStatus = (typeof ApplicationRunStatus)[keyof typeof ApplicationRunStatus];
|
|
813
|
+
declare const ApplicationRunOutcome: {
|
|
814
|
+
readonly Submitted: "submitted";
|
|
815
|
+
readonly Failed: "failed";
|
|
816
|
+
readonly CaptchaBlocked: "captcha_blocked";
|
|
817
|
+
readonly FormNotFound: "form_not_found";
|
|
818
|
+
readonly AuthenticationFailed: "authentication_failed";
|
|
819
|
+
readonly ManualInterventionRequired: "manual_intervention_required";
|
|
820
|
+
readonly Timeout: "timeout";
|
|
821
|
+
readonly NetworkError: "network_error";
|
|
822
|
+
};
|
|
823
|
+
type ApplicationRunOutcome = (typeof ApplicationRunOutcome)[keyof typeof ApplicationRunOutcome];
|
|
824
|
+
declare const ApplicationRunTrigger: {
|
|
825
|
+
readonly Automation: "automation";
|
|
826
|
+
readonly Manual: "manual";
|
|
827
|
+
readonly RetryScheduled: "retry_scheduled";
|
|
828
|
+
readonly AdminIntervention: "admin_intervention";
|
|
829
|
+
};
|
|
830
|
+
type ApplicationRunTrigger = (typeof ApplicationRunTrigger)[keyof typeof ApplicationRunTrigger];
|
|
831
|
+
interface ApplicationRunMetadata {
|
|
832
|
+
formVersion?: string;
|
|
833
|
+
browserAgent?: string;
|
|
834
|
+
interventionNotes?: string;
|
|
835
|
+
captchaSolved?: boolean;
|
|
836
|
+
emailVerificationRequired?: boolean;
|
|
837
|
+
documentsUploaded?: string[];
|
|
838
|
+
questionsAnswered?: number;
|
|
839
|
+
fieldsCompleted?: number;
|
|
840
|
+
durationSeconds?: number;
|
|
841
|
+
}
|
|
842
|
+
interface ApplicationRun {
|
|
781
843
|
id?: string;
|
|
782
|
-
|
|
783
|
-
answerText?: string;
|
|
844
|
+
applicationId: string;
|
|
784
845
|
clientId: string;
|
|
785
|
-
|
|
846
|
+
runNumber: number;
|
|
847
|
+
status: ApplicationRunStatus;
|
|
848
|
+
outcome?: ApplicationRunOutcome;
|
|
849
|
+
startedAt: Date | string;
|
|
850
|
+
completedAt?: Date | string;
|
|
851
|
+
tokensUsed?: number;
|
|
852
|
+
summary?: string;
|
|
853
|
+
log?: string;
|
|
854
|
+
failureReason?: string;
|
|
855
|
+
triggeredBy: ApplicationRunTrigger;
|
|
856
|
+
metadata?: ApplicationRunMetadata;
|
|
786
857
|
createdAt?: Date | string;
|
|
787
858
|
updatedAt?: Date | string;
|
|
788
|
-
selector?: string;
|
|
789
|
-
action?: string;
|
|
790
859
|
}
|
|
791
860
|
|
|
792
861
|
/**
|
|
@@ -811,9 +880,16 @@ interface ClientPersonalData {
|
|
|
811
880
|
countryPhoneCode: string;
|
|
812
881
|
nationality: string;
|
|
813
882
|
dateOfBirth?: Date | string;
|
|
883
|
+
gender?: 'Male' | 'Female' | 'Non-binary' | 'Prefer not to say' | 'Other';
|
|
814
884
|
ethnicity?: string;
|
|
815
885
|
disabilityStatus?: string;
|
|
816
886
|
securityClearance?: string;
|
|
887
|
+
workEligibility?: 'Australian Citizen' | 'Permanent Resident' | 'Temporary Visa' | 'Student Visa' | 'Working Holiday Visa' | 'Other';
|
|
888
|
+
visaType?: string;
|
|
889
|
+
workRestrictions?: string;
|
|
890
|
+
backgroundCheckConsent?: 'Yes' | 'No';
|
|
891
|
+
drugTestConsent?: 'Yes' | 'No';
|
|
892
|
+
travelWillingness?: 'Yes' | 'No' | 'Sometimes';
|
|
817
893
|
createdAt?: Date | string;
|
|
818
894
|
updatedAt?: Date | string;
|
|
819
895
|
photoUrl?: string;
|
|
@@ -837,8 +913,15 @@ interface ClientJobPreferences {
|
|
|
837
913
|
jobCategories: JobCategory[];
|
|
838
914
|
locations: LocationId[];
|
|
839
915
|
salaryExpectation?: number;
|
|
916
|
+
minSalary?: number;
|
|
917
|
+
maxSalary?: number;
|
|
840
918
|
employmentTypes: string[];
|
|
841
919
|
remotePreference: 'remote' | 'hybrid' | 'office';
|
|
920
|
+
earliestStartDate?: string;
|
|
921
|
+
workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
|
|
922
|
+
weekendWork?: 'yes' | 'no' | 'sometimes';
|
|
923
|
+
shiftWork?: 'yes' | 'no' | 'sometimes';
|
|
924
|
+
travelWillingness?: 'yes' | 'no' | 'sometimes';
|
|
842
925
|
visaSponsorshipRequired: boolean;
|
|
843
926
|
createdAt?: Date | string;
|
|
844
927
|
updatedAt?: Date | string;
|
|
@@ -1037,13 +1120,9 @@ declare const firestorePaths: {
|
|
|
1037
1120
|
readonly applications: {
|
|
1038
1121
|
readonly collection: (clientId: string) => string;
|
|
1039
1122
|
readonly doc: (clientId: string, applicationId: string) => string;
|
|
1040
|
-
readonly
|
|
1041
|
-
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1042
|
-
readonly doc: (clientId: string, applicationId: string, interviewId: string) => string;
|
|
1043
|
-
};
|
|
1044
|
-
readonly questions: {
|
|
1123
|
+
readonly runs: {
|
|
1045
1124
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1046
|
-
readonly doc: (clientId: string, applicationId: string,
|
|
1125
|
+
readonly doc: (clientId: string, applicationId: string, runId: string) => string;
|
|
1047
1126
|
};
|
|
1048
1127
|
readonly notes: {
|
|
1049
1128
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
@@ -1093,4 +1172,4 @@ declare const firestorePaths: {
|
|
|
1093
1172
|
};
|
|
1094
1173
|
};
|
|
1095
1174
|
|
|
1096
|
-
export { Address, AdminReport, 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 };
|
|
1175
|
+
export { Address, AdminReport, Agent, AgentStatus, Application, ApplicationQuestion, ApplicationQuestionType, ApplicationQuestionTypeOptions, ApplicationRun, ApplicationRunMetadata, ApplicationRunOutcome, ApplicationRunStatus, ApplicationRunTrigger, 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
|
@@ -21,6 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
ApplicationQuestionTypeOptions: () => ApplicationQuestionTypeOptions,
|
|
24
|
+
ApplicationRunOutcome: () => ApplicationRunOutcome,
|
|
25
|
+
ApplicationRunStatus: () => ApplicationRunStatus,
|
|
26
|
+
ApplicationRunTrigger: () => ApplicationRunTrigger,
|
|
24
27
|
ApplicationStatus: () => ApplicationStatus,
|
|
25
28
|
ClientStatusEnum: () => ClientStatusEnum,
|
|
26
29
|
VacancyCategory: () => VacancyCategory,
|
|
@@ -1282,7 +1285,31 @@ var ApplicationStatus = {
|
|
|
1282
1285
|
};
|
|
1283
1286
|
|
|
1284
1287
|
// src/types/clients/ApplicationQuestion.ts
|
|
1285
|
-
var ApplicationQuestionTypeOptions = ["text", "select"];
|
|
1288
|
+
var ApplicationQuestionTypeOptions = ["text", "select", "radio", "checkbox", "textarea", "file"];
|
|
1289
|
+
|
|
1290
|
+
// src/types/clients/ApplicationRun.ts
|
|
1291
|
+
var ApplicationRunStatus = {
|
|
1292
|
+
InProgress: "in_progress",
|
|
1293
|
+
Completed: "completed",
|
|
1294
|
+
Failed: "failed",
|
|
1295
|
+
ManualTakeover: "manual_takeover"
|
|
1296
|
+
};
|
|
1297
|
+
var ApplicationRunOutcome = {
|
|
1298
|
+
Submitted: "submitted",
|
|
1299
|
+
Failed: "failed",
|
|
1300
|
+
CaptchaBlocked: "captcha_blocked",
|
|
1301
|
+
FormNotFound: "form_not_found",
|
|
1302
|
+
AuthenticationFailed: "authentication_failed",
|
|
1303
|
+
ManualInterventionRequired: "manual_intervention_required",
|
|
1304
|
+
Timeout: "timeout",
|
|
1305
|
+
NetworkError: "network_error"
|
|
1306
|
+
};
|
|
1307
|
+
var ApplicationRunTrigger = {
|
|
1308
|
+
Automation: "automation",
|
|
1309
|
+
Manual: "manual",
|
|
1310
|
+
RetryScheduled: "retry_scheduled",
|
|
1311
|
+
AdminIntervention: "admin_intervention"
|
|
1312
|
+
};
|
|
1286
1313
|
|
|
1287
1314
|
// src/paths/firestorePaths.ts
|
|
1288
1315
|
var firestorePaths = {
|
|
@@ -1312,13 +1339,9 @@ var firestorePaths = {
|
|
|
1312
1339
|
applications: {
|
|
1313
1340
|
collection: (clientId) => `clients/${clientId}/applications`,
|
|
1314
1341
|
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
|
1315
|
-
|
|
1316
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/
|
|
1317
|
-
doc: (clientId, applicationId,
|
|
1318
|
-
},
|
|
1319
|
-
questions: {
|
|
1320
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
|
1321
|
-
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
|
1342
|
+
runs: {
|
|
1343
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/runs`,
|
|
1344
|
+
doc: (clientId, applicationId, runId) => `clients/${clientId}/applications/${applicationId}/runs/${runId}`
|
|
1322
1345
|
},
|
|
1323
1346
|
notes: {
|
|
1324
1347
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
|
|
@@ -1370,6 +1393,9 @@ var firestorePaths = {
|
|
|
1370
1393
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1371
1394
|
0 && (module.exports = {
|
|
1372
1395
|
ApplicationQuestionTypeOptions,
|
|
1396
|
+
ApplicationRunOutcome,
|
|
1397
|
+
ApplicationRunStatus,
|
|
1398
|
+
ApplicationRunTrigger,
|
|
1373
1399
|
ApplicationStatus,
|
|
1374
1400
|
ClientStatusEnum,
|
|
1375
1401
|
VacancyCategory,
|
package/dist/index.mjs
CHANGED
|
@@ -1248,7 +1248,31 @@ var ApplicationStatus = {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
|
|
1250
1250
|
// src/types/clients/ApplicationQuestion.ts
|
|
1251
|
-
var ApplicationQuestionTypeOptions = ["text", "select"];
|
|
1251
|
+
var ApplicationQuestionTypeOptions = ["text", "select", "radio", "checkbox", "textarea", "file"];
|
|
1252
|
+
|
|
1253
|
+
// src/types/clients/ApplicationRun.ts
|
|
1254
|
+
var ApplicationRunStatus = {
|
|
1255
|
+
InProgress: "in_progress",
|
|
1256
|
+
Completed: "completed",
|
|
1257
|
+
Failed: "failed",
|
|
1258
|
+
ManualTakeover: "manual_takeover"
|
|
1259
|
+
};
|
|
1260
|
+
var ApplicationRunOutcome = {
|
|
1261
|
+
Submitted: "submitted",
|
|
1262
|
+
Failed: "failed",
|
|
1263
|
+
CaptchaBlocked: "captcha_blocked",
|
|
1264
|
+
FormNotFound: "form_not_found",
|
|
1265
|
+
AuthenticationFailed: "authentication_failed",
|
|
1266
|
+
ManualInterventionRequired: "manual_intervention_required",
|
|
1267
|
+
Timeout: "timeout",
|
|
1268
|
+
NetworkError: "network_error"
|
|
1269
|
+
};
|
|
1270
|
+
var ApplicationRunTrigger = {
|
|
1271
|
+
Automation: "automation",
|
|
1272
|
+
Manual: "manual",
|
|
1273
|
+
RetryScheduled: "retry_scheduled",
|
|
1274
|
+
AdminIntervention: "admin_intervention"
|
|
1275
|
+
};
|
|
1252
1276
|
|
|
1253
1277
|
// src/paths/firestorePaths.ts
|
|
1254
1278
|
var firestorePaths = {
|
|
@@ -1278,13 +1302,9 @@ var firestorePaths = {
|
|
|
1278
1302
|
applications: {
|
|
1279
1303
|
collection: (clientId) => `clients/${clientId}/applications`,
|
|
1280
1304
|
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
|
1281
|
-
|
|
1282
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/
|
|
1283
|
-
doc: (clientId, applicationId,
|
|
1284
|
-
},
|
|
1285
|
-
questions: {
|
|
1286
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
|
1287
|
-
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
|
1305
|
+
runs: {
|
|
1306
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/runs`,
|
|
1307
|
+
doc: (clientId, applicationId, runId) => `clients/${clientId}/applications/${applicationId}/runs/${runId}`
|
|
1288
1308
|
},
|
|
1289
1309
|
notes: {
|
|
1290
1310
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
|
|
@@ -1335,6 +1355,9 @@ var firestorePaths = {
|
|
|
1335
1355
|
};
|
|
1336
1356
|
export {
|
|
1337
1357
|
ApplicationQuestionTypeOptions,
|
|
1358
|
+
ApplicationRunOutcome,
|
|
1359
|
+
ApplicationRunStatus,
|
|
1360
|
+
ApplicationRunTrigger,
|
|
1338
1361
|
ApplicationStatus,
|
|
1339
1362
|
ClientStatusEnum,
|
|
1340
1363
|
VacancyCategory,
|
package/package.json
CHANGED