@jobsearch-works/firestore-models 1.0.9 → 1.0.11
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 +16 -86
- package/dist/index.d.ts +16 -86
- package/dist/index.js +28 -54
- package/dist/index.mjs +24 -56
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -47,13 +47,6 @@ declare namespace Application {
|
|
47
47
|
const updateStatus: (application: Application.Model, newStatus: Application.Model["status"]) => Application.Model;
|
48
48
|
}
|
49
49
|
|
50
|
-
declare const Application$1_Application: typeof Application;
|
51
|
-
declare namespace Application$1 {
|
52
|
-
export {
|
53
|
-
Application$1_Application as Application,
|
54
|
-
};
|
55
|
-
}
|
56
|
-
|
57
50
|
interface FirestoreTimestamp {
|
58
51
|
seconds: number;
|
59
52
|
nanoseconds: number;
|
@@ -84,19 +77,6 @@ declare const AuthUserUtils: {
|
|
84
77
|
fromFirestore: (data: Record<string, any>) => AuthUser;
|
85
78
|
};
|
86
79
|
|
87
|
-
type AuthUser$1_AuthUser = AuthUser;
|
88
|
-
declare const AuthUser$1_AuthUserCollectionPath: typeof AuthUserCollectionPath;
|
89
|
-
declare const AuthUser$1_AuthUserUtils: typeof AuthUserUtils;
|
90
|
-
declare const AuthUser$1_getAuthUserDocumentPath: typeof getAuthUserDocumentPath;
|
91
|
-
declare namespace AuthUser$1 {
|
92
|
-
export {
|
93
|
-
AuthUser$1_AuthUser as AuthUser,
|
94
|
-
AuthUser$1_AuthUserCollectionPath as AuthUserCollectionPath,
|
95
|
-
AuthUser$1_AuthUserUtils as AuthUserUtils,
|
96
|
-
AuthUser$1_getAuthUserDocumentPath as getAuthUserDocumentPath,
|
97
|
-
};
|
98
|
-
}
|
99
|
-
|
100
80
|
declare namespace Client {
|
101
81
|
interface Model extends BaseModel {
|
102
82
|
name: string;
|
@@ -110,13 +90,6 @@ declare namespace Client {
|
|
110
90
|
const createNew: (name: string, email: string) => Client.Model;
|
111
91
|
}
|
112
92
|
|
113
|
-
declare const Client$1_Client: typeof Client;
|
114
|
-
declare namespace Client$1 {
|
115
|
-
export {
|
116
|
-
Client$1_Client as Client,
|
117
|
-
};
|
118
|
-
}
|
119
|
-
|
120
93
|
declare namespace ClientData {
|
121
94
|
/**
|
122
95
|
* Represents a user's personal data.
|
@@ -143,13 +116,6 @@ declare namespace ClientData {
|
|
143
116
|
const createNew: (firstName: string, lastName: string, email: string, phone: string, address: string, city: string, state: string, zip: string, country: string, countryPhoneCode: string, suburb: string) => ClientData.Model;
|
144
117
|
}
|
145
118
|
|
146
|
-
declare const ClientData$1_ClientData: typeof ClientData;
|
147
|
-
declare namespace ClientData$1 {
|
148
|
-
export {
|
149
|
-
ClientData$1_ClientData as ClientData,
|
150
|
-
};
|
151
|
-
}
|
152
|
-
|
153
119
|
declare namespace ClientLogin {
|
154
120
|
/**
|
155
121
|
* Represents login credentials for a client website
|
@@ -168,13 +134,6 @@ declare namespace ClientLogin {
|
|
168
134
|
const createNew: (userId: string, url: string, domain: string, password: string, username?: string, email?: string) => ClientLogin.Model;
|
169
135
|
}
|
170
136
|
|
171
|
-
declare const ClientLogin$1_ClientLogin: typeof ClientLogin;
|
172
|
-
declare namespace ClientLogin$1 {
|
173
|
-
export {
|
174
|
-
ClientLogin$1_ClientLogin as ClientLogin,
|
175
|
-
};
|
176
|
-
}
|
177
|
-
|
178
137
|
/**
|
179
138
|
* QuestionData interface defines the core data fields for a generic question.
|
180
139
|
*/
|
@@ -209,21 +168,6 @@ interface ClientQuestionAnswerPair {
|
|
209
168
|
createdAt?: Date;
|
210
169
|
}
|
211
170
|
|
212
|
-
type Question$1_ApplicationQuestion = ApplicationQuestion;
|
213
|
-
type Question$1_ApplicationQuestionDocument = ApplicationQuestionDocument;
|
214
|
-
type Question$1_ClientQuestionAnswerPair = ClientQuestionAnswerPair;
|
215
|
-
type Question$1_Question = Question;
|
216
|
-
type Question$1_QuestionData = QuestionData;
|
217
|
-
declare namespace Question$1 {
|
218
|
-
export {
|
219
|
-
Question$1_ApplicationQuestion as ApplicationQuestion,
|
220
|
-
Question$1_ApplicationQuestionDocument as ApplicationQuestionDocument,
|
221
|
-
Question$1_ClientQuestionAnswerPair as ClientQuestionAnswerPair,
|
222
|
-
Question$1_Question as Question,
|
223
|
-
Question$1_QuestionData as QuestionData,
|
224
|
-
};
|
225
|
-
}
|
226
|
-
|
227
171
|
/**
|
228
172
|
* UserQuestionData interface defines the core data fields for a user question.
|
229
173
|
*/
|
@@ -239,19 +183,11 @@ interface UserQuestionData {
|
|
239
183
|
interface UserQuestion extends BaseModel, UserQuestionData {
|
240
184
|
}
|
241
185
|
|
242
|
-
type UserQuestion$1_UserQuestion = UserQuestion;
|
243
|
-
type UserQuestion$1_UserQuestionData = UserQuestionData;
|
244
|
-
declare namespace UserQuestion$1 {
|
245
|
-
export {
|
246
|
-
UserQuestion$1_UserQuestion as UserQuestion,
|
247
|
-
UserQuestion$1_UserQuestionData as UserQuestionData,
|
248
|
-
};
|
249
|
-
}
|
250
|
-
|
251
186
|
declare namespace Vacancy {
|
252
187
|
/**
|
253
188
|
* Represents a job vacancy
|
254
189
|
*/
|
190
|
+
type Category = "Accounting" | "Administration & Office Support" | "Advertising, Arts & Media" | "Banking & Financial Services" | "Call Centre & Customer Service" | "CEO & General Management" | "Community Services & Development" | "Construction" | "Consulting & Strategy" | "Design & Architecture" | "Education & Training" | "Engineering" | "Farming, Animals & Conservation" | "Government & Defence" | "Healthcare & Medical" | "Hospitality & Tourism" | "Human Resources & Recruitment" | "Information & Communication Technology" | "Insurance & Superannuation" | "Legal" | "Manufacturing, Transport & Logistics" | "Marketing & Communications" | "Mining, Resources & Energy" | "Real Estate & Property" | "Retail & Consumer Products" | "Sales" | "Science & Technology" | "Self Employment" | "Sport & Recreation" | "Trades & Services";
|
255
191
|
interface Model extends BaseModel {
|
256
192
|
company: string;
|
257
193
|
position: string;
|
@@ -263,20 +199,14 @@ declare namespace Vacancy {
|
|
263
199
|
advertisingDomain: string;
|
264
200
|
fullPageText: string;
|
265
201
|
jobId: string;
|
202
|
+
category: Category;
|
266
203
|
suggestedTo?: string[];
|
267
204
|
}
|
268
205
|
const collection: () => string;
|
269
206
|
const document: (vacancyId: string) => string;
|
270
207
|
const formatSummary: (vacancy: Vacancy.Model) => string;
|
271
208
|
const formatDate: (date: Date | string) => string;
|
272
|
-
const createNew: (company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string) => Vacancy.Model;
|
273
|
-
}
|
274
|
-
|
275
|
-
declare const Vacancy$1_Vacancy: typeof Vacancy;
|
276
|
-
declare namespace Vacancy$1 {
|
277
|
-
export {
|
278
|
-
Vacancy$1_Vacancy as Vacancy,
|
279
|
-
};
|
209
|
+
const createNew: (company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string, category: Category) => Vacancy.Model;
|
280
210
|
}
|
281
211
|
|
282
212
|
declare namespace VacancySuggestion {
|
@@ -286,23 +216,23 @@ declare namespace VacancySuggestion {
|
|
286
216
|
interface Model extends BaseModel {
|
287
217
|
clientId: string;
|
288
218
|
vacancyId: string;
|
289
|
-
vacancyCompany: string;
|
290
|
-
vacancyPosition: string;
|
291
219
|
status: string;
|
292
|
-
|
293
|
-
|
220
|
+
company: string;
|
221
|
+
position: string;
|
222
|
+
location: string;
|
223
|
+
description: string;
|
224
|
+
advertisingUrl: string;
|
225
|
+
applicationUrl: string;
|
226
|
+
applicationDomain: string;
|
227
|
+
advertisingDomain: string;
|
228
|
+
fullPageText: string;
|
229
|
+
jobId: string;
|
230
|
+
category: Vacancy.Category;
|
294
231
|
}
|
295
232
|
const collection: (clientId: string) => string;
|
296
233
|
const document: (clientId: string, suggestionId: string) => string;
|
297
234
|
const formatSummary: (suggestion: VacancySuggestion.Model) => string;
|
298
|
-
const createNew: (clientId: string, vacancyId: string,
|
299
|
-
}
|
300
|
-
|
301
|
-
declare const VacancySuggestion$1_VacancySuggestion: typeof VacancySuggestion;
|
302
|
-
declare namespace VacancySuggestion$1 {
|
303
|
-
export {
|
304
|
-
VacancySuggestion$1_VacancySuggestion as VacancySuggestion,
|
305
|
-
};
|
235
|
+
const createNew: (clientId: string, vacancyId: string, status: string, company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string, category: Vacancy.Category) => VacancySuggestion.Model;
|
306
236
|
}
|
307
237
|
|
308
|
-
export { Application
|
238
|
+
export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
|
package/dist/index.d.ts
CHANGED
@@ -47,13 +47,6 @@ declare namespace Application {
|
|
47
47
|
const updateStatus: (application: Application.Model, newStatus: Application.Model["status"]) => Application.Model;
|
48
48
|
}
|
49
49
|
|
50
|
-
declare const Application$1_Application: typeof Application;
|
51
|
-
declare namespace Application$1 {
|
52
|
-
export {
|
53
|
-
Application$1_Application as Application,
|
54
|
-
};
|
55
|
-
}
|
56
|
-
|
57
50
|
interface FirestoreTimestamp {
|
58
51
|
seconds: number;
|
59
52
|
nanoseconds: number;
|
@@ -84,19 +77,6 @@ declare const AuthUserUtils: {
|
|
84
77
|
fromFirestore: (data: Record<string, any>) => AuthUser;
|
85
78
|
};
|
86
79
|
|
87
|
-
type AuthUser$1_AuthUser = AuthUser;
|
88
|
-
declare const AuthUser$1_AuthUserCollectionPath: typeof AuthUserCollectionPath;
|
89
|
-
declare const AuthUser$1_AuthUserUtils: typeof AuthUserUtils;
|
90
|
-
declare const AuthUser$1_getAuthUserDocumentPath: typeof getAuthUserDocumentPath;
|
91
|
-
declare namespace AuthUser$1 {
|
92
|
-
export {
|
93
|
-
AuthUser$1_AuthUser as AuthUser,
|
94
|
-
AuthUser$1_AuthUserCollectionPath as AuthUserCollectionPath,
|
95
|
-
AuthUser$1_AuthUserUtils as AuthUserUtils,
|
96
|
-
AuthUser$1_getAuthUserDocumentPath as getAuthUserDocumentPath,
|
97
|
-
};
|
98
|
-
}
|
99
|
-
|
100
80
|
declare namespace Client {
|
101
81
|
interface Model extends BaseModel {
|
102
82
|
name: string;
|
@@ -110,13 +90,6 @@ declare namespace Client {
|
|
110
90
|
const createNew: (name: string, email: string) => Client.Model;
|
111
91
|
}
|
112
92
|
|
113
|
-
declare const Client$1_Client: typeof Client;
|
114
|
-
declare namespace Client$1 {
|
115
|
-
export {
|
116
|
-
Client$1_Client as Client,
|
117
|
-
};
|
118
|
-
}
|
119
|
-
|
120
93
|
declare namespace ClientData {
|
121
94
|
/**
|
122
95
|
* Represents a user's personal data.
|
@@ -143,13 +116,6 @@ declare namespace ClientData {
|
|
143
116
|
const createNew: (firstName: string, lastName: string, email: string, phone: string, address: string, city: string, state: string, zip: string, country: string, countryPhoneCode: string, suburb: string) => ClientData.Model;
|
144
117
|
}
|
145
118
|
|
146
|
-
declare const ClientData$1_ClientData: typeof ClientData;
|
147
|
-
declare namespace ClientData$1 {
|
148
|
-
export {
|
149
|
-
ClientData$1_ClientData as ClientData,
|
150
|
-
};
|
151
|
-
}
|
152
|
-
|
153
119
|
declare namespace ClientLogin {
|
154
120
|
/**
|
155
121
|
* Represents login credentials for a client website
|
@@ -168,13 +134,6 @@ declare namespace ClientLogin {
|
|
168
134
|
const createNew: (userId: string, url: string, domain: string, password: string, username?: string, email?: string) => ClientLogin.Model;
|
169
135
|
}
|
170
136
|
|
171
|
-
declare const ClientLogin$1_ClientLogin: typeof ClientLogin;
|
172
|
-
declare namespace ClientLogin$1 {
|
173
|
-
export {
|
174
|
-
ClientLogin$1_ClientLogin as ClientLogin,
|
175
|
-
};
|
176
|
-
}
|
177
|
-
|
178
137
|
/**
|
179
138
|
* QuestionData interface defines the core data fields for a generic question.
|
180
139
|
*/
|
@@ -209,21 +168,6 @@ interface ClientQuestionAnswerPair {
|
|
209
168
|
createdAt?: Date;
|
210
169
|
}
|
211
170
|
|
212
|
-
type Question$1_ApplicationQuestion = ApplicationQuestion;
|
213
|
-
type Question$1_ApplicationQuestionDocument = ApplicationQuestionDocument;
|
214
|
-
type Question$1_ClientQuestionAnswerPair = ClientQuestionAnswerPair;
|
215
|
-
type Question$1_Question = Question;
|
216
|
-
type Question$1_QuestionData = QuestionData;
|
217
|
-
declare namespace Question$1 {
|
218
|
-
export {
|
219
|
-
Question$1_ApplicationQuestion as ApplicationQuestion,
|
220
|
-
Question$1_ApplicationQuestionDocument as ApplicationQuestionDocument,
|
221
|
-
Question$1_ClientQuestionAnswerPair as ClientQuestionAnswerPair,
|
222
|
-
Question$1_Question as Question,
|
223
|
-
Question$1_QuestionData as QuestionData,
|
224
|
-
};
|
225
|
-
}
|
226
|
-
|
227
171
|
/**
|
228
172
|
* UserQuestionData interface defines the core data fields for a user question.
|
229
173
|
*/
|
@@ -239,19 +183,11 @@ interface UserQuestionData {
|
|
239
183
|
interface UserQuestion extends BaseModel, UserQuestionData {
|
240
184
|
}
|
241
185
|
|
242
|
-
type UserQuestion$1_UserQuestion = UserQuestion;
|
243
|
-
type UserQuestion$1_UserQuestionData = UserQuestionData;
|
244
|
-
declare namespace UserQuestion$1 {
|
245
|
-
export {
|
246
|
-
UserQuestion$1_UserQuestion as UserQuestion,
|
247
|
-
UserQuestion$1_UserQuestionData as UserQuestionData,
|
248
|
-
};
|
249
|
-
}
|
250
|
-
|
251
186
|
declare namespace Vacancy {
|
252
187
|
/**
|
253
188
|
* Represents a job vacancy
|
254
189
|
*/
|
190
|
+
type Category = "Accounting" | "Administration & Office Support" | "Advertising, Arts & Media" | "Banking & Financial Services" | "Call Centre & Customer Service" | "CEO & General Management" | "Community Services & Development" | "Construction" | "Consulting & Strategy" | "Design & Architecture" | "Education & Training" | "Engineering" | "Farming, Animals & Conservation" | "Government & Defence" | "Healthcare & Medical" | "Hospitality & Tourism" | "Human Resources & Recruitment" | "Information & Communication Technology" | "Insurance & Superannuation" | "Legal" | "Manufacturing, Transport & Logistics" | "Marketing & Communications" | "Mining, Resources & Energy" | "Real Estate & Property" | "Retail & Consumer Products" | "Sales" | "Science & Technology" | "Self Employment" | "Sport & Recreation" | "Trades & Services";
|
255
191
|
interface Model extends BaseModel {
|
256
192
|
company: string;
|
257
193
|
position: string;
|
@@ -263,20 +199,14 @@ declare namespace Vacancy {
|
|
263
199
|
advertisingDomain: string;
|
264
200
|
fullPageText: string;
|
265
201
|
jobId: string;
|
202
|
+
category: Category;
|
266
203
|
suggestedTo?: string[];
|
267
204
|
}
|
268
205
|
const collection: () => string;
|
269
206
|
const document: (vacancyId: string) => string;
|
270
207
|
const formatSummary: (vacancy: Vacancy.Model) => string;
|
271
208
|
const formatDate: (date: Date | string) => string;
|
272
|
-
const createNew: (company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string) => Vacancy.Model;
|
273
|
-
}
|
274
|
-
|
275
|
-
declare const Vacancy$1_Vacancy: typeof Vacancy;
|
276
|
-
declare namespace Vacancy$1 {
|
277
|
-
export {
|
278
|
-
Vacancy$1_Vacancy as Vacancy,
|
279
|
-
};
|
209
|
+
const createNew: (company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string, category: Category) => Vacancy.Model;
|
280
210
|
}
|
281
211
|
|
282
212
|
declare namespace VacancySuggestion {
|
@@ -286,23 +216,23 @@ declare namespace VacancySuggestion {
|
|
286
216
|
interface Model extends BaseModel {
|
287
217
|
clientId: string;
|
288
218
|
vacancyId: string;
|
289
|
-
vacancyCompany: string;
|
290
|
-
vacancyPosition: string;
|
291
219
|
status: string;
|
292
|
-
|
293
|
-
|
220
|
+
company: string;
|
221
|
+
position: string;
|
222
|
+
location: string;
|
223
|
+
description: string;
|
224
|
+
advertisingUrl: string;
|
225
|
+
applicationUrl: string;
|
226
|
+
applicationDomain: string;
|
227
|
+
advertisingDomain: string;
|
228
|
+
fullPageText: string;
|
229
|
+
jobId: string;
|
230
|
+
category: Vacancy.Category;
|
294
231
|
}
|
295
232
|
const collection: (clientId: string) => string;
|
296
233
|
const document: (clientId: string, suggestionId: string) => string;
|
297
234
|
const formatSummary: (suggestion: VacancySuggestion.Model) => string;
|
298
|
-
const createNew: (clientId: string, vacancyId: string,
|
299
|
-
}
|
300
|
-
|
301
|
-
declare const VacancySuggestion$1_VacancySuggestion: typeof VacancySuggestion;
|
302
|
-
declare namespace VacancySuggestion$1 {
|
303
|
-
export {
|
304
|
-
VacancySuggestion$1_VacancySuggestion as VacancySuggestion,
|
305
|
-
};
|
235
|
+
const createNew: (clientId: string, vacancyId: string, status: string, company: string, position: string, location: string, description: string, advertisingUrl: string, applicationUrl: string, applicationDomain: string, advertisingDomain: string, fullPageText: string, jobId: string, category: Vacancy.Category) => VacancySuggestion.Model;
|
306
236
|
}
|
307
237
|
|
308
|
-
export { Application
|
238
|
+
export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
|
package/dist/index.js
CHANGED
@@ -20,23 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
20
20
|
// src/index.ts
|
21
21
|
var src_exports = {};
|
22
22
|
__export(src_exports, {
|
23
|
-
Application: () =>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
23
|
+
Application: () => Application,
|
24
|
+
AuthUserCollectionPath: () => AuthUserCollectionPath,
|
25
|
+
AuthUserUtils: () => AuthUserUtils,
|
26
|
+
Client: () => Client,
|
27
|
+
ClientData: () => ClientData,
|
28
|
+
ClientLogin: () => ClientLogin,
|
29
|
+
Vacancy: () => Vacancy,
|
30
|
+
VacancySuggestion: () => VacancySuggestion,
|
31
|
+
getAuthUserDocumentPath: () => getAuthUserDocumentPath
|
32
32
|
});
|
33
33
|
module.exports = __toCommonJS(src_exports);
|
34
34
|
|
35
35
|
// src/models/Application.ts
|
36
|
-
var Application_exports = {};
|
37
|
-
__export(Application_exports, {
|
38
|
-
Application: () => Application
|
39
|
-
});
|
40
36
|
var Application;
|
41
37
|
((Application2) => {
|
42
38
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
@@ -76,12 +72,6 @@ var Application;
|
|
76
72
|
})(Application || (Application = {}));
|
77
73
|
|
78
74
|
// src/models/AuthUser.ts
|
79
|
-
var AuthUser_exports = {};
|
80
|
-
__export(AuthUser_exports, {
|
81
|
-
AuthUserCollectionPath: () => AuthUserCollectionPath,
|
82
|
-
AuthUserUtils: () => AuthUserUtils,
|
83
|
-
getAuthUserDocumentPath: () => getAuthUserDocumentPath
|
84
|
-
});
|
85
75
|
var AuthUserCollectionPath = "users";
|
86
76
|
var getAuthUserDocumentPath = (userId) => `users/${userId}`;
|
87
77
|
var AuthUserUtils = {
|
@@ -154,10 +144,6 @@ var AuthUserUtils = {
|
|
154
144
|
};
|
155
145
|
|
156
146
|
// src/models/Client.ts
|
157
|
-
var Client_exports = {};
|
158
|
-
__export(Client_exports, {
|
159
|
-
Client: () => Client
|
160
|
-
});
|
161
147
|
var Client;
|
162
148
|
((Client2) => {
|
163
149
|
Client2.collection = () => "clients";
|
@@ -176,10 +162,6 @@ var Client;
|
|
176
162
|
})(Client || (Client = {}));
|
177
163
|
|
178
164
|
// src/models/ClientData.ts
|
179
|
-
var ClientData_exports = {};
|
180
|
-
__export(ClientData_exports, {
|
181
|
-
ClientData: () => ClientData
|
182
|
-
});
|
183
165
|
var ClientData;
|
184
166
|
((ClientData2) => {
|
185
167
|
ClientData2.collection = () => "clientData";
|
@@ -208,10 +190,6 @@ var ClientData;
|
|
208
190
|
})(ClientData || (ClientData = {}));
|
209
191
|
|
210
192
|
// src/models/ClientLogin.ts
|
211
|
-
var ClientLogin_exports = {};
|
212
|
-
__export(ClientLogin_exports, {
|
213
|
-
ClientLogin: () => ClientLogin
|
214
|
-
});
|
215
193
|
var ClientLogin;
|
216
194
|
((ClientLogin2) => {
|
217
195
|
ClientLogin2.collection = (userId) => `clientLogins/${userId}`;
|
@@ -232,17 +210,7 @@ var ClientLogin;
|
|
232
210
|
};
|
233
211
|
})(ClientLogin || (ClientLogin = {}));
|
234
212
|
|
235
|
-
// src/models/Question.ts
|
236
|
-
var Question_exports = {};
|
237
|
-
|
238
|
-
// src/models/UserQuestion.ts
|
239
|
-
var UserQuestion_exports = {};
|
240
|
-
|
241
213
|
// src/models/Vacancy.ts
|
242
|
-
var Vacancy_exports = {};
|
243
|
-
__export(Vacancy_exports, {
|
244
|
-
Vacancy: () => Vacancy
|
245
|
-
});
|
246
214
|
var Vacancy;
|
247
215
|
((Vacancy2) => {
|
248
216
|
Vacancy2.collection = () => "vacancies";
|
@@ -254,7 +222,7 @@ var Vacancy;
|
|
254
222
|
const dateObj = date instanceof Date ? date : new Date(date);
|
255
223
|
return dateObj.toLocaleDateString();
|
256
224
|
};
|
257
|
-
Vacancy2.createNew = (company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId) => {
|
225
|
+
Vacancy2.createNew = (company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId, category) => {
|
258
226
|
return {
|
259
227
|
company,
|
260
228
|
position,
|
@@ -266,30 +234,36 @@ var Vacancy;
|
|
266
234
|
advertisingDomain,
|
267
235
|
fullPageText,
|
268
236
|
jobId,
|
237
|
+
category,
|
269
238
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
270
239
|
};
|
271
240
|
};
|
272
241
|
})(Vacancy || (Vacancy = {}));
|
273
242
|
|
274
243
|
// src/models/VacancySuggestion.ts
|
275
|
-
var VacancySuggestion_exports = {};
|
276
|
-
__export(VacancySuggestion_exports, {
|
277
|
-
VacancySuggestion: () => VacancySuggestion
|
278
|
-
});
|
279
244
|
var VacancySuggestion;
|
280
245
|
((VacancySuggestion2) => {
|
281
246
|
VacancySuggestion2.collection = (clientId) => `clients/${clientId}/vacancySuggestions`;
|
282
247
|
VacancySuggestion2.document = (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`;
|
283
248
|
VacancySuggestion2.formatSummary = (suggestion) => {
|
284
|
-
return `${suggestion.
|
249
|
+
return `${suggestion.position} at ${suggestion.company} (${suggestion.status})`;
|
285
250
|
};
|
286
|
-
VacancySuggestion2.createNew = (clientId, vacancyId,
|
251
|
+
VacancySuggestion2.createNew = (clientId, vacancyId, status, company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId, category) => {
|
287
252
|
return {
|
288
253
|
clientId,
|
289
254
|
vacancyId,
|
290
|
-
vacancyCompany,
|
291
|
-
vacancyPosition,
|
292
255
|
status,
|
256
|
+
company,
|
257
|
+
position,
|
258
|
+
location,
|
259
|
+
description,
|
260
|
+
advertisingUrl,
|
261
|
+
applicationUrl,
|
262
|
+
applicationDomain,
|
263
|
+
advertisingDomain,
|
264
|
+
fullPageText,
|
265
|
+
jobId,
|
266
|
+
category,
|
293
267
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
294
268
|
};
|
295
269
|
};
|
@@ -297,12 +271,12 @@ var VacancySuggestion;
|
|
297
271
|
// Annotate the CommonJS export names for ESM import in node:
|
298
272
|
0 && (module.exports = {
|
299
273
|
Application,
|
300
|
-
|
274
|
+
AuthUserCollectionPath,
|
275
|
+
AuthUserUtils,
|
301
276
|
Client,
|
302
277
|
ClientData,
|
303
278
|
ClientLogin,
|
304
|
-
Question,
|
305
|
-
UserQuestion,
|
306
279
|
Vacancy,
|
307
|
-
VacancySuggestion
|
280
|
+
VacancySuggestion,
|
281
|
+
getAuthUserDocumentPath
|
308
282
|
});
|
package/dist/index.mjs
CHANGED
@@ -1,14 +1,4 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __export = (target, all) => {
|
3
|
-
for (var name in all)
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
5
|
-
};
|
6
|
-
|
7
1
|
// src/models/Application.ts
|
8
|
-
var Application_exports = {};
|
9
|
-
__export(Application_exports, {
|
10
|
-
Application: () => Application
|
11
|
-
});
|
12
2
|
var Application;
|
13
3
|
((Application2) => {
|
14
4
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
@@ -48,12 +38,6 @@ var Application;
|
|
48
38
|
})(Application || (Application = {}));
|
49
39
|
|
50
40
|
// src/models/AuthUser.ts
|
51
|
-
var AuthUser_exports = {};
|
52
|
-
__export(AuthUser_exports, {
|
53
|
-
AuthUserCollectionPath: () => AuthUserCollectionPath,
|
54
|
-
AuthUserUtils: () => AuthUserUtils,
|
55
|
-
getAuthUserDocumentPath: () => getAuthUserDocumentPath
|
56
|
-
});
|
57
41
|
var AuthUserCollectionPath = "users";
|
58
42
|
var getAuthUserDocumentPath = (userId) => `users/${userId}`;
|
59
43
|
var AuthUserUtils = {
|
@@ -126,10 +110,6 @@ var AuthUserUtils = {
|
|
126
110
|
};
|
127
111
|
|
128
112
|
// src/models/Client.ts
|
129
|
-
var Client_exports = {};
|
130
|
-
__export(Client_exports, {
|
131
|
-
Client: () => Client
|
132
|
-
});
|
133
113
|
var Client;
|
134
114
|
((Client2) => {
|
135
115
|
Client2.collection = () => "clients";
|
@@ -148,10 +128,6 @@ var Client;
|
|
148
128
|
})(Client || (Client = {}));
|
149
129
|
|
150
130
|
// src/models/ClientData.ts
|
151
|
-
var ClientData_exports = {};
|
152
|
-
__export(ClientData_exports, {
|
153
|
-
ClientData: () => ClientData
|
154
|
-
});
|
155
131
|
var ClientData;
|
156
132
|
((ClientData2) => {
|
157
133
|
ClientData2.collection = () => "clientData";
|
@@ -180,10 +156,6 @@ var ClientData;
|
|
180
156
|
})(ClientData || (ClientData = {}));
|
181
157
|
|
182
158
|
// src/models/ClientLogin.ts
|
183
|
-
var ClientLogin_exports = {};
|
184
|
-
__export(ClientLogin_exports, {
|
185
|
-
ClientLogin: () => ClientLogin
|
186
|
-
});
|
187
159
|
var ClientLogin;
|
188
160
|
((ClientLogin2) => {
|
189
161
|
ClientLogin2.collection = (userId) => `clientLogins/${userId}`;
|
@@ -204,17 +176,7 @@ var ClientLogin;
|
|
204
176
|
};
|
205
177
|
})(ClientLogin || (ClientLogin = {}));
|
206
178
|
|
207
|
-
// src/models/Question.ts
|
208
|
-
var Question_exports = {};
|
209
|
-
|
210
|
-
// src/models/UserQuestion.ts
|
211
|
-
var UserQuestion_exports = {};
|
212
|
-
|
213
179
|
// src/models/Vacancy.ts
|
214
|
-
var Vacancy_exports = {};
|
215
|
-
__export(Vacancy_exports, {
|
216
|
-
Vacancy: () => Vacancy
|
217
|
-
});
|
218
180
|
var Vacancy;
|
219
181
|
((Vacancy2) => {
|
220
182
|
Vacancy2.collection = () => "vacancies";
|
@@ -226,7 +188,7 @@ var Vacancy;
|
|
226
188
|
const dateObj = date instanceof Date ? date : new Date(date);
|
227
189
|
return dateObj.toLocaleDateString();
|
228
190
|
};
|
229
|
-
Vacancy2.createNew = (company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId) => {
|
191
|
+
Vacancy2.createNew = (company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId, category) => {
|
230
192
|
return {
|
231
193
|
company,
|
232
194
|
position,
|
@@ -238,42 +200,48 @@ var Vacancy;
|
|
238
200
|
advertisingDomain,
|
239
201
|
fullPageText,
|
240
202
|
jobId,
|
203
|
+
category,
|
241
204
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
242
205
|
};
|
243
206
|
};
|
244
207
|
})(Vacancy || (Vacancy = {}));
|
245
208
|
|
246
209
|
// src/models/VacancySuggestion.ts
|
247
|
-
var VacancySuggestion_exports = {};
|
248
|
-
__export(VacancySuggestion_exports, {
|
249
|
-
VacancySuggestion: () => VacancySuggestion
|
250
|
-
});
|
251
210
|
var VacancySuggestion;
|
252
211
|
((VacancySuggestion2) => {
|
253
212
|
VacancySuggestion2.collection = (clientId) => `clients/${clientId}/vacancySuggestions`;
|
254
213
|
VacancySuggestion2.document = (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`;
|
255
214
|
VacancySuggestion2.formatSummary = (suggestion) => {
|
256
|
-
return `${suggestion.
|
215
|
+
return `${suggestion.position} at ${suggestion.company} (${suggestion.status})`;
|
257
216
|
};
|
258
|
-
VacancySuggestion2.createNew = (clientId, vacancyId,
|
217
|
+
VacancySuggestion2.createNew = (clientId, vacancyId, status, company, position, location, description, advertisingUrl, applicationUrl, applicationDomain, advertisingDomain, fullPageText, jobId, category) => {
|
259
218
|
return {
|
260
219
|
clientId,
|
261
220
|
vacancyId,
|
262
|
-
vacancyCompany,
|
263
|
-
vacancyPosition,
|
264
221
|
status,
|
222
|
+
company,
|
223
|
+
position,
|
224
|
+
location,
|
225
|
+
description,
|
226
|
+
advertisingUrl,
|
227
|
+
applicationUrl,
|
228
|
+
applicationDomain,
|
229
|
+
advertisingDomain,
|
230
|
+
fullPageText,
|
231
|
+
jobId,
|
232
|
+
category,
|
265
233
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
266
234
|
};
|
267
235
|
};
|
268
236
|
})(VacancySuggestion || (VacancySuggestion = {}));
|
269
237
|
export {
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
238
|
+
Application,
|
239
|
+
AuthUserCollectionPath,
|
240
|
+
AuthUserUtils,
|
241
|
+
Client,
|
242
|
+
ClientData,
|
243
|
+
ClientLogin,
|
244
|
+
Vacancy,
|
245
|
+
VacancySuggestion,
|
246
|
+
getAuthUserDocumentPath
|
279
247
|
};
|
package/package.json
CHANGED