@jobsearch-works/firestore-models 1.1.14 → 2.0.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/README.md +162 -449
- package/dist/index.d.mts +722 -151
- package/dist/index.d.ts +722 -151
- package/dist/index.js +47 -54
- package/dist/index.mjs +47 -53
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -22,25 +22,11 @@ var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
23
23
|
ApplicationQuestionTypeOptions: () => ApplicationQuestionTypeOptions,
|
24
24
|
ApplicationStatus: () => ApplicationStatus,
|
25
|
-
ClientQuestionTypeOptions: () => ClientQuestionTypeOptions,
|
26
25
|
VacancyCategory: () => VacancyCategory,
|
27
26
|
firestorePaths: () => firestorePaths
|
28
27
|
});
|
29
28
|
module.exports = __toCommonJS(src_exports);
|
30
29
|
|
31
|
-
// src/types/Application.ts
|
32
|
-
var ApplicationStatus = {
|
33
|
-
New: "new",
|
34
|
-
Submitted: "submitted",
|
35
|
-
Interviewing: "interviewing",
|
36
|
-
Accepted: "accepted",
|
37
|
-
Rejected: "rejected",
|
38
|
-
Withdrawn: "withdrawn",
|
39
|
-
Applying: "applying",
|
40
|
-
Suggested: "suggested",
|
41
|
-
Approved: "approved"
|
42
|
-
};
|
43
|
-
|
44
30
|
// src/types/Vacancy.ts
|
45
31
|
var VacancyCategory = {
|
46
32
|
Accounting: "Accounting",
|
@@ -75,11 +61,18 @@ var VacancyCategory = {
|
|
75
61
|
TradesAndServices: "Trades & Services"
|
76
62
|
};
|
77
63
|
|
78
|
-
// src/types/
|
79
|
-
var
|
80
|
-
"
|
81
|
-
"
|
82
|
-
|
64
|
+
// src/types/Application.ts
|
65
|
+
var ApplicationStatus = {
|
66
|
+
New: "new",
|
67
|
+
Submitted: "submitted",
|
68
|
+
Interviewing: "interviewing",
|
69
|
+
Accepted: "accepted",
|
70
|
+
Rejected: "rejected",
|
71
|
+
Withdrawn: "withdrawn",
|
72
|
+
Applying: "applying",
|
73
|
+
Suggested: "suggested",
|
74
|
+
Approved: "approved"
|
75
|
+
};
|
83
76
|
|
84
77
|
// src/types/ApplicationQuestion.ts
|
85
78
|
var ApplicationQuestionTypeOptions = ["text", "select"];
|
@@ -88,33 +81,42 @@ var ApplicationQuestionTypeOptions = ["text", "select"];
|
|
88
81
|
var firestorePaths = {
|
89
82
|
clients: {
|
90
83
|
collection: () => "clients",
|
91
|
-
doc: (
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
97
|
-
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
98
|
-
}
|
99
|
-
},
|
84
|
+
doc: (id) => `clients/${id}`,
|
85
|
+
personalData: (id) => `clients/${id}/personalData`,
|
86
|
+
jobPreferences: (id) => `clients/${id}/jobPreferences`,
|
87
|
+
websitePreferences: (id) => `clients/${id}/websitePreferences`,
|
88
|
+
gmailTokens: (id) => `clients/${id}/gmailTokens`,
|
100
89
|
emails: {
|
101
90
|
collection: (clientId) => `clients/${clientId}/emails`,
|
102
|
-
doc: (clientId,
|
91
|
+
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
|
92
|
+
},
|
93
|
+
questions: {
|
94
|
+
collection: (clientId) => `clients/${clientId}/questions`,
|
95
|
+
doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
|
96
|
+
},
|
97
|
+
initialQuestions: {
|
98
|
+
collection: (clientId) => `clients/${clientId}/initialQuestions`,
|
99
|
+
doc: (clientId, questionId) => `clients/${clientId}/initialQuestions/${questionId}`
|
103
100
|
},
|
104
101
|
logins: {
|
105
102
|
collection: (clientId) => `clients/${clientId}/logins`,
|
106
|
-
doc: (clientId,
|
103
|
+
doc: (clientId, loginId) => `clients/${clientId}/logins/${loginId}`
|
107
104
|
},
|
108
|
-
|
109
|
-
|
105
|
+
resumes: {
|
106
|
+
collection: (clientId) => `clients/${clientId}/resumes`,
|
107
|
+
doc: (clientId, resumeId) => `clients/${clientId}/resumes/${resumeId}`
|
110
108
|
},
|
111
|
-
|
112
|
-
collection: (clientId) => `clients/${clientId}/
|
113
|
-
doc: (clientId,
|
109
|
+
applications: {
|
110
|
+
collection: (clientId) => `clients/${clientId}/applications`,
|
111
|
+
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
112
|
+
questions: {
|
113
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
114
|
+
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
115
|
+
}
|
114
116
|
},
|
115
|
-
|
116
|
-
collection: (clientId) => `clients/${clientId}/
|
117
|
-
doc: (clientId,
|
117
|
+
interviews: {
|
118
|
+
collection: (clientId) => `clients/${clientId}/interviews`,
|
119
|
+
doc: (clientId, interviewId) => `clients/${clientId}/interviews/${interviewId}`
|
118
120
|
},
|
119
121
|
vacancySuggestions: {
|
120
122
|
collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
|
@@ -123,34 +125,25 @@ var firestorePaths = {
|
|
123
125
|
},
|
124
126
|
users: {
|
125
127
|
collection: () => "users",
|
126
|
-
doc: (
|
128
|
+
doc: (id) => `users/${id}`
|
129
|
+
},
|
130
|
+
usersPub: {
|
131
|
+
collection: () => "usersPub",
|
132
|
+
doc: (id) => `usersPub/${id}`
|
127
133
|
},
|
128
134
|
vacancies: {
|
129
135
|
collection: () => "vacancies",
|
130
|
-
doc: (
|
136
|
+
doc: (id) => `vacancies/${id}`
|
131
137
|
},
|
132
138
|
agents: {
|
133
139
|
collection: () => "agents",
|
134
|
-
doc: (
|
135
|
-
},
|
136
|
-
clientData: {
|
137
|
-
collection: () => "clientData",
|
138
|
-
doc: (clientDataId) => `clientData/${clientDataId}`
|
139
|
-
},
|
140
|
-
clientLogins: {
|
141
|
-
collection: (clientId) => `clients/${clientId}/logins`,
|
142
|
-
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
143
|
-
},
|
144
|
-
clientEmails: {
|
145
|
-
collection: (clientId) => `clients/${clientId}/emails`,
|
146
|
-
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
140
|
+
doc: (id) => `agents/${id}`
|
147
141
|
}
|
148
142
|
};
|
149
143
|
// Annotate the CommonJS export names for ESM import in node:
|
150
144
|
0 && (module.exports = {
|
151
145
|
ApplicationQuestionTypeOptions,
|
152
146
|
ApplicationStatus,
|
153
|
-
ClientQuestionTypeOptions,
|
154
147
|
VacancyCategory,
|
155
148
|
firestorePaths
|
156
149
|
});
|
package/dist/index.mjs
CHANGED
@@ -1,16 +1,3 @@
|
|
1
|
-
// src/types/Application.ts
|
2
|
-
var ApplicationStatus = {
|
3
|
-
New: "new",
|
4
|
-
Submitted: "submitted",
|
5
|
-
Interviewing: "interviewing",
|
6
|
-
Accepted: "accepted",
|
7
|
-
Rejected: "rejected",
|
8
|
-
Withdrawn: "withdrawn",
|
9
|
-
Applying: "applying",
|
10
|
-
Suggested: "suggested",
|
11
|
-
Approved: "approved"
|
12
|
-
};
|
13
|
-
|
14
1
|
// src/types/Vacancy.ts
|
15
2
|
var VacancyCategory = {
|
16
3
|
Accounting: "Accounting",
|
@@ -45,11 +32,18 @@ var VacancyCategory = {
|
|
45
32
|
TradesAndServices: "Trades & Services"
|
46
33
|
};
|
47
34
|
|
48
|
-
// src/types/
|
49
|
-
var
|
50
|
-
"
|
51
|
-
"
|
52
|
-
|
35
|
+
// src/types/Application.ts
|
36
|
+
var ApplicationStatus = {
|
37
|
+
New: "new",
|
38
|
+
Submitted: "submitted",
|
39
|
+
Interviewing: "interviewing",
|
40
|
+
Accepted: "accepted",
|
41
|
+
Rejected: "rejected",
|
42
|
+
Withdrawn: "withdrawn",
|
43
|
+
Applying: "applying",
|
44
|
+
Suggested: "suggested",
|
45
|
+
Approved: "approved"
|
46
|
+
};
|
53
47
|
|
54
48
|
// src/types/ApplicationQuestion.ts
|
55
49
|
var ApplicationQuestionTypeOptions = ["text", "select"];
|
@@ -58,33 +52,42 @@ var ApplicationQuestionTypeOptions = ["text", "select"];
|
|
58
52
|
var firestorePaths = {
|
59
53
|
clients: {
|
60
54
|
collection: () => "clients",
|
61
|
-
doc: (
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
67
|
-
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
68
|
-
}
|
69
|
-
},
|
55
|
+
doc: (id) => `clients/${id}`,
|
56
|
+
personalData: (id) => `clients/${id}/personalData`,
|
57
|
+
jobPreferences: (id) => `clients/${id}/jobPreferences`,
|
58
|
+
websitePreferences: (id) => `clients/${id}/websitePreferences`,
|
59
|
+
gmailTokens: (id) => `clients/${id}/gmailTokens`,
|
70
60
|
emails: {
|
71
61
|
collection: (clientId) => `clients/${clientId}/emails`,
|
72
|
-
doc: (clientId,
|
62
|
+
doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
|
63
|
+
},
|
64
|
+
questions: {
|
65
|
+
collection: (clientId) => `clients/${clientId}/questions`,
|
66
|
+
doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
|
67
|
+
},
|
68
|
+
initialQuestions: {
|
69
|
+
collection: (clientId) => `clients/${clientId}/initialQuestions`,
|
70
|
+
doc: (clientId, questionId) => `clients/${clientId}/initialQuestions/${questionId}`
|
73
71
|
},
|
74
72
|
logins: {
|
75
73
|
collection: (clientId) => `clients/${clientId}/logins`,
|
76
|
-
doc: (clientId,
|
74
|
+
doc: (clientId, loginId) => `clients/${clientId}/logins/${loginId}`
|
77
75
|
},
|
78
|
-
|
79
|
-
|
76
|
+
resumes: {
|
77
|
+
collection: (clientId) => `clients/${clientId}/resumes`,
|
78
|
+
doc: (clientId, resumeId) => `clients/${clientId}/resumes/${resumeId}`
|
80
79
|
},
|
81
|
-
|
82
|
-
collection: (clientId) => `clients/${clientId}/
|
83
|
-
doc: (clientId,
|
80
|
+
applications: {
|
81
|
+
collection: (clientId) => `clients/${clientId}/applications`,
|
82
|
+
doc: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`,
|
83
|
+
questions: {
|
84
|
+
collection: (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}/questions`,
|
85
|
+
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
86
|
+
}
|
84
87
|
},
|
85
|
-
|
86
|
-
collection: (clientId) => `clients/${clientId}/
|
87
|
-
doc: (clientId,
|
88
|
+
interviews: {
|
89
|
+
collection: (clientId) => `clients/${clientId}/interviews`,
|
90
|
+
doc: (clientId, interviewId) => `clients/${clientId}/interviews/${interviewId}`
|
88
91
|
},
|
89
92
|
vacancySuggestions: {
|
90
93
|
collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
|
@@ -93,33 +96,24 @@ var firestorePaths = {
|
|
93
96
|
},
|
94
97
|
users: {
|
95
98
|
collection: () => "users",
|
96
|
-
doc: (
|
99
|
+
doc: (id) => `users/${id}`
|
100
|
+
},
|
101
|
+
usersPub: {
|
102
|
+
collection: () => "usersPub",
|
103
|
+
doc: (id) => `usersPub/${id}`
|
97
104
|
},
|
98
105
|
vacancies: {
|
99
106
|
collection: () => "vacancies",
|
100
|
-
doc: (
|
107
|
+
doc: (id) => `vacancies/${id}`
|
101
108
|
},
|
102
109
|
agents: {
|
103
110
|
collection: () => "agents",
|
104
|
-
doc: (
|
105
|
-
},
|
106
|
-
clientData: {
|
107
|
-
collection: () => "clientData",
|
108
|
-
doc: (clientDataId) => `clientData/${clientDataId}`
|
109
|
-
},
|
110
|
-
clientLogins: {
|
111
|
-
collection: (clientId) => `clients/${clientId}/logins`,
|
112
|
-
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
113
|
-
},
|
114
|
-
clientEmails: {
|
115
|
-
collection: (clientId) => `clients/${clientId}/emails`,
|
116
|
-
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
111
|
+
doc: (id) => `agents/${id}`
|
117
112
|
}
|
118
113
|
};
|
119
114
|
export {
|
120
115
|
ApplicationQuestionTypeOptions,
|
121
116
|
ApplicationStatus,
|
122
|
-
ClientQuestionTypeOptions,
|
123
117
|
VacancyCategory,
|
124
118
|
firestorePaths
|
125
119
|
};
|
package/package.json
CHANGED