@jobsearch-works/firestore-models 4.0.1 → 4.0.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 +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +9 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -643,6 +643,19 @@ interface VacancySuggestion {
|
|
|
643
643
|
createdAt?: Date | string;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
+
interface WeeklyApplication {
|
|
647
|
+
readonly id?: string;
|
|
648
|
+
readonly week: number;
|
|
649
|
+
readonly startDate: string;
|
|
650
|
+
readonly endDate: string;
|
|
651
|
+
readonly applicationsDone: number;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
interface AdminReport {
|
|
655
|
+
readonly agentName: string;
|
|
656
|
+
readonly applications: WeeklyApplication[];
|
|
657
|
+
}
|
|
658
|
+
|
|
646
659
|
/**
|
|
647
660
|
* Address interface for client resume
|
|
648
661
|
*/
|
|
@@ -1032,6 +1045,10 @@ declare const firestorePaths: {
|
|
|
1032
1045
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1033
1046
|
readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
|
|
1034
1047
|
};
|
|
1048
|
+
readonly notes: {
|
|
1049
|
+
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1050
|
+
readonly doc: (clientId: string, applicationId: string, noteId: string) => string;
|
|
1051
|
+
};
|
|
1035
1052
|
readonly enrichedForms: {
|
|
1036
1053
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1037
1054
|
readonly doc: (clientId: string, applicationId: string, formId: string) => string;
|
|
@@ -1061,6 +1078,10 @@ declare const firestorePaths: {
|
|
|
1061
1078
|
readonly agents: {
|
|
1062
1079
|
readonly collection: () => string;
|
|
1063
1080
|
readonly doc: (id: string) => string;
|
|
1081
|
+
readonly weeklyApplications: {
|
|
1082
|
+
readonly collection: (agentId: string) => string;
|
|
1083
|
+
readonly doc: (agentId: string, docId: string) => string;
|
|
1084
|
+
};
|
|
1064
1085
|
};
|
|
1065
1086
|
readonly companies: {
|
|
1066
1087
|
readonly collection: () => string;
|
|
@@ -1072,4 +1093,4 @@ declare const firestorePaths: {
|
|
|
1072
1093
|
};
|
|
1073
1094
|
};
|
|
1074
1095
|
|
|
1075
|
-
export { Address, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -643,6 +643,19 @@ interface VacancySuggestion {
|
|
|
643
643
|
createdAt?: Date | string;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
+
interface WeeklyApplication {
|
|
647
|
+
readonly id?: string;
|
|
648
|
+
readonly week: number;
|
|
649
|
+
readonly startDate: string;
|
|
650
|
+
readonly endDate: string;
|
|
651
|
+
readonly applicationsDone: number;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
interface AdminReport {
|
|
655
|
+
readonly agentName: string;
|
|
656
|
+
readonly applications: WeeklyApplication[];
|
|
657
|
+
}
|
|
658
|
+
|
|
646
659
|
/**
|
|
647
660
|
* Address interface for client resume
|
|
648
661
|
*/
|
|
@@ -1032,6 +1045,10 @@ declare const firestorePaths: {
|
|
|
1032
1045
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1033
1046
|
readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
|
|
1034
1047
|
};
|
|
1048
|
+
readonly notes: {
|
|
1049
|
+
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1050
|
+
readonly doc: (clientId: string, applicationId: string, noteId: string) => string;
|
|
1051
|
+
};
|
|
1035
1052
|
readonly enrichedForms: {
|
|
1036
1053
|
readonly collection: (clientId: string, applicationId: string) => string;
|
|
1037
1054
|
readonly doc: (clientId: string, applicationId: string, formId: string) => string;
|
|
@@ -1061,6 +1078,10 @@ declare const firestorePaths: {
|
|
|
1061
1078
|
readonly agents: {
|
|
1062
1079
|
readonly collection: () => string;
|
|
1063
1080
|
readonly doc: (id: string) => string;
|
|
1081
|
+
readonly weeklyApplications: {
|
|
1082
|
+
readonly collection: (agentId: string) => string;
|
|
1083
|
+
readonly doc: (agentId: string, docId: string) => string;
|
|
1084
|
+
};
|
|
1064
1085
|
};
|
|
1065
1086
|
readonly companies: {
|
|
1066
1087
|
readonly collection: () => string;
|
|
@@ -1072,4 +1093,4 @@ declare const firestorePaths: {
|
|
|
1072
1093
|
};
|
|
1073
1094
|
};
|
|
1074
1095
|
|
|
1075
|
-
export { Address, 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1320,6 +1320,10 @@ var firestorePaths = {
|
|
|
1320
1320
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
|
1321
1321
|
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
|
1322
1322
|
},
|
|
1323
|
+
notes: {
|
|
1324
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
|
|
1325
|
+
doc: (clientId, applicationId, noteId) => `clients/${clientId}/applications/${applicationId}/notes/${noteId}`
|
|
1326
|
+
},
|
|
1323
1327
|
enrichedForms: {
|
|
1324
1328
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/enrichedForms`,
|
|
1325
1329
|
doc: (clientId, applicationId, formId) => `clients/${clientId}/applications/${applicationId}/enrichedForms/${formId}`
|
|
@@ -1348,7 +1352,11 @@ var firestorePaths = {
|
|
|
1348
1352
|
},
|
|
1349
1353
|
agents: {
|
|
1350
1354
|
collection: () => "agents",
|
|
1351
|
-
doc: (id) => `agents/${id}
|
|
1355
|
+
doc: (id) => `agents/${id}`,
|
|
1356
|
+
weeklyApplications: {
|
|
1357
|
+
collection: (agentId) => `agents/${agentId}/weeklyApplications`,
|
|
1358
|
+
doc: (agentId, docId) => `agents/${agentId}/weeklyApplications/${docId}`
|
|
1359
|
+
}
|
|
1352
1360
|
},
|
|
1353
1361
|
companies: {
|
|
1354
1362
|
collection: () => "companies",
|
package/dist/index.mjs
CHANGED
|
@@ -1286,6 +1286,10 @@ var firestorePaths = {
|
|
|
1286
1286
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
|
1287
1287
|
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
|
1288
1288
|
},
|
|
1289
|
+
notes: {
|
|
1290
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/notes`,
|
|
1291
|
+
doc: (clientId, applicationId, noteId) => `clients/${clientId}/applications/${applicationId}/notes/${noteId}`
|
|
1292
|
+
},
|
|
1289
1293
|
enrichedForms: {
|
|
1290
1294
|
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/enrichedForms`,
|
|
1291
1295
|
doc: (clientId, applicationId, formId) => `clients/${clientId}/applications/${applicationId}/enrichedForms/${formId}`
|
|
@@ -1314,7 +1318,11 @@ var firestorePaths = {
|
|
|
1314
1318
|
},
|
|
1315
1319
|
agents: {
|
|
1316
1320
|
collection: () => "agents",
|
|
1317
|
-
doc: (id) => `agents/${id}
|
|
1321
|
+
doc: (id) => `agents/${id}`,
|
|
1322
|
+
weeklyApplications: {
|
|
1323
|
+
collection: (agentId) => `agents/${agentId}/weeklyApplications`,
|
|
1324
|
+
doc: (agentId, docId) => `agents/${agentId}/weeklyApplications/${docId}`
|
|
1325
|
+
}
|
|
1318
1326
|
},
|
|
1319
1327
|
companies: {
|
|
1320
1328
|
collection: () => "companies",
|
package/package.json
CHANGED