@jobsearch-works/firestore-models 4.1.0 → 4.2.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 CHANGED
@@ -767,6 +767,16 @@ interface Application {
767
767
  coverLetter?: string;
768
768
  resume?: ClientResume;
769
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;
770
780
  submittedAt?: Date | string;
771
781
  interviewingAt?: Date | string;
772
782
  acceptedAt?: Date | string;
@@ -789,6 +799,65 @@ interface Application {
789
799
  updatedAt?: Date | string;
790
800
  }
791
801
 
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 {
843
+ id?: string;
844
+ applicationId: string;
845
+ clientId: string;
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;
857
+ createdAt?: Date | string;
858
+ updatedAt?: Date | string;
859
+ }
860
+
792
861
  /**
793
862
  * Embedded sub-object within Client document
794
863
  * @see Client - Parent document interface
@@ -811,15 +880,13 @@ 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;
817
887
  workEligibility?: 'Australian Citizen' | 'Permanent Resident' | 'Temporary Visa' | 'Student Visa' | 'Working Holiday Visa' | 'Other';
818
888
  visaType?: string;
819
889
  workRestrictions?: string;
820
- emergencyContactName?: string;
821
- emergencyContactPhone?: string;
822
- emergencyContactRelationship?: string;
823
890
  backgroundCheckConsent?: 'Yes' | 'No';
824
891
  drugTestConsent?: 'Yes' | 'No';
825
892
  travelWillingness?: 'Yes' | 'No' | 'Sometimes';
@@ -850,7 +917,7 @@ interface ClientJobPreferences {
850
917
  maxSalary?: number;
851
918
  employmentTypes: string[];
852
919
  remotePreference: 'remote' | 'hybrid' | 'office';
853
- earliestStartDate?: string;
920
+ noticePeriod?: 'immediate' | '1_week' | '2_weeks' | '1_month' | '2_months' | '3_months' | '6_months' | 'negotiable';
854
921
  workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
855
922
  weekendWork?: 'yes' | 'no' | 'sometimes';
856
923
  shiftWork?: 'yes' | 'no' | 'sometimes';
@@ -870,6 +937,19 @@ interface ClientWebsitePreferences {
870
937
  notifications: string;
871
938
  }
872
939
 
940
+ /**
941
+ * Subcollection document under Client
942
+ * Path: clients/{clientId}/gmailTokens/{docId}
943
+ * @see Client - Parent document
944
+ */
945
+ interface ClientGmailToken {
946
+ readonly id?: string;
947
+ accessToken: string;
948
+ refreshToken: string;
949
+ email: string;
950
+ useThisEmail: boolean;
951
+ }
952
+
873
953
  type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
874
954
  /**
875
955
  * Root Client document
@@ -884,23 +964,11 @@ interface Client {
884
964
  readonly personalData?: ClientPersonalData;
885
965
  readonly jobPreferences?: ClientJobPreferences;
886
966
  readonly websitePreferences?: ClientWebsitePreferences;
967
+ readonly gmailToken?: ClientGmailToken;
887
968
  resume: ClientResume;
888
969
  readonly createdAt?: Date | string;
889
970
  }
890
971
 
891
- /**
892
- * Subcollection document under Client
893
- * Path: clients/{clientId}/gmailTokens/{docId}
894
- * @see Client - Parent document
895
- */
896
- interface ClientGmailToken {
897
- readonly id?: string;
898
- accessToken: string;
899
- refreshToken: string;
900
- email: string;
901
- useThisEmail: boolean;
902
- }
903
-
904
972
  /**
905
973
  * Subcollection document under Client
906
974
  * Path: clients/{clientId}/initialQuestions/{docId}
@@ -1030,10 +1098,6 @@ declare const firestorePaths: {
1030
1098
  readonly clients: {
1031
1099
  readonly collection: () => string;
1032
1100
  readonly doc: (id: string) => string;
1033
- readonly accessTokens: {
1034
- readonly collection: (clientId: string) => string;
1035
- readonly doc: (clientId: string, providerName: string) => string;
1036
- };
1037
1101
  readonly emails: {
1038
1102
  readonly collection: (clientId: string) => string;
1039
1103
  readonly doc: (clientId: string, emailId: string) => string;
@@ -1053,6 +1117,10 @@ declare const firestorePaths: {
1053
1117
  readonly applications: {
1054
1118
  readonly collection: (clientId: string) => string;
1055
1119
  readonly doc: (clientId: string, applicationId: string) => string;
1120
+ readonly runs: {
1121
+ readonly collection: (clientId: string, applicationId: string) => string;
1122
+ readonly doc: (clientId: string, applicationId: string, runId: string) => string;
1123
+ };
1056
1124
  readonly notes: {
1057
1125
  readonly collection: (clientId: string, applicationId: string) => string;
1058
1126
  readonly doc: (clientId: string, applicationId: string, noteId: string) => string;
@@ -1101,4 +1169,4 @@ declare const firestorePaths: {
1101
1169
  };
1102
1170
  };
1103
1171
 
1104
- 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 };
1172
+ 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
@@ -767,6 +767,16 @@ interface Application {
767
767
  coverLetter?: string;
768
768
  resume?: ClientResume;
769
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;
770
780
  submittedAt?: Date | string;
771
781
  interviewingAt?: Date | string;
772
782
  acceptedAt?: Date | string;
@@ -789,6 +799,65 @@ interface Application {
789
799
  updatedAt?: Date | string;
790
800
  }
791
801
 
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 {
843
+ id?: string;
844
+ applicationId: string;
845
+ clientId: string;
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;
857
+ createdAt?: Date | string;
858
+ updatedAt?: Date | string;
859
+ }
860
+
792
861
  /**
793
862
  * Embedded sub-object within Client document
794
863
  * @see Client - Parent document interface
@@ -811,15 +880,13 @@ 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;
817
887
  workEligibility?: 'Australian Citizen' | 'Permanent Resident' | 'Temporary Visa' | 'Student Visa' | 'Working Holiday Visa' | 'Other';
818
888
  visaType?: string;
819
889
  workRestrictions?: string;
820
- emergencyContactName?: string;
821
- emergencyContactPhone?: string;
822
- emergencyContactRelationship?: string;
823
890
  backgroundCheckConsent?: 'Yes' | 'No';
824
891
  drugTestConsent?: 'Yes' | 'No';
825
892
  travelWillingness?: 'Yes' | 'No' | 'Sometimes';
@@ -850,7 +917,7 @@ interface ClientJobPreferences {
850
917
  maxSalary?: number;
851
918
  employmentTypes: string[];
852
919
  remotePreference: 'remote' | 'hybrid' | 'office';
853
- earliestStartDate?: string;
920
+ noticePeriod?: 'immediate' | '1_week' | '2_weeks' | '1_month' | '2_months' | '3_months' | '6_months' | 'negotiable';
854
921
  workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
855
922
  weekendWork?: 'yes' | 'no' | 'sometimes';
856
923
  shiftWork?: 'yes' | 'no' | 'sometimes';
@@ -870,6 +937,19 @@ interface ClientWebsitePreferences {
870
937
  notifications: string;
871
938
  }
872
939
 
940
+ /**
941
+ * Subcollection document under Client
942
+ * Path: clients/{clientId}/gmailTokens/{docId}
943
+ * @see Client - Parent document
944
+ */
945
+ interface ClientGmailToken {
946
+ readonly id?: string;
947
+ accessToken: string;
948
+ refreshToken: string;
949
+ email: string;
950
+ useThisEmail: boolean;
951
+ }
952
+
873
953
  type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
874
954
  /**
875
955
  * Root Client document
@@ -884,23 +964,11 @@ interface Client {
884
964
  readonly personalData?: ClientPersonalData;
885
965
  readonly jobPreferences?: ClientJobPreferences;
886
966
  readonly websitePreferences?: ClientWebsitePreferences;
967
+ readonly gmailToken?: ClientGmailToken;
887
968
  resume: ClientResume;
888
969
  readonly createdAt?: Date | string;
889
970
  }
890
971
 
891
- /**
892
- * Subcollection document under Client
893
- * Path: clients/{clientId}/gmailTokens/{docId}
894
- * @see Client - Parent document
895
- */
896
- interface ClientGmailToken {
897
- readonly id?: string;
898
- accessToken: string;
899
- refreshToken: string;
900
- email: string;
901
- useThisEmail: boolean;
902
- }
903
-
904
972
  /**
905
973
  * Subcollection document under Client
906
974
  * Path: clients/{clientId}/initialQuestions/{docId}
@@ -1030,10 +1098,6 @@ declare const firestorePaths: {
1030
1098
  readonly clients: {
1031
1099
  readonly collection: () => string;
1032
1100
  readonly doc: (id: string) => string;
1033
- readonly accessTokens: {
1034
- readonly collection: (clientId: string) => string;
1035
- readonly doc: (clientId: string, providerName: string) => string;
1036
- };
1037
1101
  readonly emails: {
1038
1102
  readonly collection: (clientId: string) => string;
1039
1103
  readonly doc: (clientId: string, emailId: string) => string;
@@ -1053,6 +1117,10 @@ declare const firestorePaths: {
1053
1117
  readonly applications: {
1054
1118
  readonly collection: (clientId: string) => string;
1055
1119
  readonly doc: (clientId: string, applicationId: string) => string;
1120
+ readonly runs: {
1121
+ readonly collection: (clientId: string, applicationId: string) => string;
1122
+ readonly doc: (clientId: string, applicationId: string, runId: string) => string;
1123
+ };
1056
1124
  readonly notes: {
1057
1125
  readonly collection: (clientId: string, applicationId: string) => string;
1058
1126
  readonly doc: (clientId: string, applicationId: string, noteId: string) => string;
@@ -1101,4 +1169,4 @@ declare const firestorePaths: {
1101
1169
  };
1102
1170
  };
1103
1171
 
1104
- 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 };
1172
+ 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,
@@ -1284,15 +1287,35 @@ var ApplicationStatus = {
1284
1287
  // src/types/clients/ApplicationQuestion.ts
1285
1288
  var ApplicationQuestionTypeOptions = ["text", "select", "radio", "checkbox", "textarea", "file"];
1286
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
+ };
1313
+
1287
1314
  // src/paths/firestorePaths.ts
1288
1315
  var firestorePaths = {
1289
1316
  clients: {
1290
1317
  collection: () => "clients",
1291
1318
  doc: (id) => `clients/${id}`,
1292
- accessTokens: {
1293
- collection: (clientId) => `clients/${clientId}/access_tokens`,
1294
- doc: (clientId, providerName) => `clients/${clientId}/access_tokens/${providerName}`
1295
- },
1296
1319
  emails: {
1297
1320
  collection: (clientId) => `clients/${clientId}/emails`,
1298
1321
  doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
@@ -1312,6 +1335,10 @@ var firestorePaths = {
1312
1335
  applications: {
1313
1336
  collection: (clientId) => `clients/${clientId}/applications`,
1314
1337
  doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
1338
+ runs: {
1339
+ collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/runs`,
1340
+ doc: (clientId, applicationId, runId) => `clients/${clientId}/applications/${applicationId}/runs/${runId}`
1341
+ },
1315
1342
  notes: {
1316
1343
  collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
1317
1344
  doc: (clientId, applicationId, noteId) => `clients/${clientId}/applications/${applicationId}/notes/${noteId}`
@@ -1362,6 +1389,9 @@ var firestorePaths = {
1362
1389
  // Annotate the CommonJS export names for ESM import in node:
1363
1390
  0 && (module.exports = {
1364
1391
  ApplicationQuestionTypeOptions,
1392
+ ApplicationRunOutcome,
1393
+ ApplicationRunStatus,
1394
+ ApplicationRunTrigger,
1365
1395
  ApplicationStatus,
1366
1396
  ClientStatusEnum,
1367
1397
  VacancyCategory,
package/dist/index.mjs CHANGED
@@ -1250,15 +1250,35 @@ var ApplicationStatus = {
1250
1250
  // src/types/clients/ApplicationQuestion.ts
1251
1251
  var ApplicationQuestionTypeOptions = ["text", "select", "radio", "checkbox", "textarea", "file"];
1252
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
+ };
1276
+
1253
1277
  // src/paths/firestorePaths.ts
1254
1278
  var firestorePaths = {
1255
1279
  clients: {
1256
1280
  collection: () => "clients",
1257
1281
  doc: (id) => `clients/${id}`,
1258
- accessTokens: {
1259
- collection: (clientId) => `clients/${clientId}/access_tokens`,
1260
- doc: (clientId, providerName) => `clients/${clientId}/access_tokens/${providerName}`
1261
- },
1262
1282
  emails: {
1263
1283
  collection: (clientId) => `clients/${clientId}/emails`,
1264
1284
  doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
@@ -1278,6 +1298,10 @@ var firestorePaths = {
1278
1298
  applications: {
1279
1299
  collection: (clientId) => `clients/${clientId}/applications`,
1280
1300
  doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
1301
+ runs: {
1302
+ collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/runs`,
1303
+ doc: (clientId, applicationId, runId) => `clients/${clientId}/applications/${applicationId}/runs/${runId}`
1304
+ },
1281
1305
  notes: {
1282
1306
  collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
1283
1307
  doc: (clientId, applicationId, noteId) => `clients/${clientId}/applications/${applicationId}/notes/${noteId}`
@@ -1327,6 +1351,9 @@ var firestorePaths = {
1327
1351
  };
1328
1352
  export {
1329
1353
  ApplicationQuestionTypeOptions,
1354
+ ApplicationRunOutcome,
1355
+ ApplicationRunStatus,
1356
+ ApplicationRunTrigger,
1330
1357
  ApplicationStatus,
1331
1358
  ClientStatusEnum,
1332
1359
  VacancyCategory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobsearch-works/firestore-models",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "A shared library for standardizing Firestore document schemas and paths across multiple projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",