@jobsearch-works/firestore-models 1.0.18 → 1.0.20

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
@@ -172,7 +172,7 @@ interface ClientQuestionAnswerPair {
172
172
  createdAt?: Date;
173
173
  }
174
174
 
175
- declare namespace ClientKnowledgeBase {
175
+ declare namespace ClientQuestion {
176
176
  /**
177
177
  * Represents a Q&A pair in the user's knowledge base
178
178
  */
@@ -180,12 +180,13 @@ declare namespace ClientKnowledgeBase {
180
180
  questionText: string;
181
181
  answerText?: string;
182
182
  type: Type;
183
+ options?: string[];
183
184
  }
184
185
  type Type = "text" | "select";
185
186
  const TypeOptions: readonly Type[];
186
187
  const collection: (clientId: string) => string;
187
188
  const document: (clientId: string, questionId: string) => string;
188
- const createNew: (questionText: string, type: Type, answerText?: string) => ClientKnowledgeBase.Model;
189
+ const createNew: (questionText: string, type: Type, answerText?: string, options?: string[]) => ClientQuestion.Model;
189
190
  }
190
191
 
191
192
  /**
@@ -255,4 +256,4 @@ declare namespace VacancySuggestion {
255
256
  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;
256
257
  }
257
258
 
258
- export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientKnowledgeBase, ClientLogin, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
259
+ export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestion, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
package/dist/index.d.ts CHANGED
@@ -172,7 +172,7 @@ interface ClientQuestionAnswerPair {
172
172
  createdAt?: Date;
173
173
  }
174
174
 
175
- declare namespace ClientKnowledgeBase {
175
+ declare namespace ClientQuestion {
176
176
  /**
177
177
  * Represents a Q&A pair in the user's knowledge base
178
178
  */
@@ -180,12 +180,13 @@ declare namespace ClientKnowledgeBase {
180
180
  questionText: string;
181
181
  answerText?: string;
182
182
  type: Type;
183
+ options?: string[];
183
184
  }
184
185
  type Type = "text" | "select";
185
186
  const TypeOptions: readonly Type[];
186
187
  const collection: (clientId: string) => string;
187
188
  const document: (clientId: string, questionId: string) => string;
188
- const createNew: (questionText: string, type: Type, answerText?: string) => ClientKnowledgeBase.Model;
189
+ const createNew: (questionText: string, type: Type, answerText?: string, options?: string[]) => ClientQuestion.Model;
189
190
  }
190
191
 
191
192
  /**
@@ -255,4 +256,4 @@ declare namespace VacancySuggestion {
255
256
  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;
256
257
  }
257
258
 
258
- export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientKnowledgeBase, ClientLogin, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
259
+ export { Application, ApplicationQuestion, ApplicationQuestionDocument, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestion, ClientQuestionAnswerPair, Question, QuestionData, UserQuestion, UserQuestionData, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
package/dist/index.js CHANGED
@@ -25,8 +25,8 @@ __export(src_exports, {
25
25
  AuthUserUtils: () => AuthUserUtils,
26
26
  Client: () => Client,
27
27
  ClientData: () => ClientData,
28
- ClientKnowledgeBase: () => ClientKnowledgeBase,
29
28
  ClientLogin: () => ClientLogin,
29
+ ClientQuestion: () => ClientQuestion,
30
30
  Vacancy: () => Vacancy,
31
31
  VacancySuggestion: () => VacancySuggestion,
32
32
  getAuthUserDocumentPath: () => getAuthUserDocumentPath
@@ -223,21 +223,22 @@ var ClientLogin;
223
223
  };
224
224
  })(ClientLogin || (ClientLogin = {}));
225
225
 
226
- // src/models/ClientKnowledgeBase.ts
227
- var ClientKnowledgeBase;
228
- ((ClientKnowledgeBase2) => {
229
- ClientKnowledgeBase2.TypeOptions = ["text", "select"];
230
- ClientKnowledgeBase2.collection = (clientId) => `clients/${clientId}/questions`;
231
- ClientKnowledgeBase2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
232
- ClientKnowledgeBase2.createNew = (questionText, type, answerText) => {
226
+ // src/models/ClientQuestion.ts
227
+ var ClientQuestion;
228
+ ((ClientQuestion2) => {
229
+ ClientQuestion2.TypeOptions = ["text", "select"];
230
+ ClientQuestion2.collection = (clientId) => `clients/${clientId}/questions`;
231
+ ClientQuestion2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
232
+ ClientQuestion2.createNew = (questionText, type, answerText, options) => {
233
233
  return {
234
234
  questionText,
235
235
  type,
236
236
  answerText,
237
+ options,
237
238
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
238
239
  };
239
240
  };
240
- })(ClientKnowledgeBase || (ClientKnowledgeBase = {}));
241
+ })(ClientQuestion || (ClientQuestion = {}));
241
242
 
242
243
  // src/models/Vacancy.ts
243
244
  var Vacancy;
@@ -304,8 +305,8 @@ var VacancySuggestion;
304
305
  AuthUserUtils,
305
306
  Client,
306
307
  ClientData,
307
- ClientKnowledgeBase,
308
308
  ClientLogin,
309
+ ClientQuestion,
309
310
  Vacancy,
310
311
  VacancySuggestion,
311
312
  getAuthUserDocumentPath
package/dist/index.mjs CHANGED
@@ -188,21 +188,22 @@ var ClientLogin;
188
188
  };
189
189
  })(ClientLogin || (ClientLogin = {}));
190
190
 
191
- // src/models/ClientKnowledgeBase.ts
192
- var ClientKnowledgeBase;
193
- ((ClientKnowledgeBase2) => {
194
- ClientKnowledgeBase2.TypeOptions = ["text", "select"];
195
- ClientKnowledgeBase2.collection = (clientId) => `clients/${clientId}/questions`;
196
- ClientKnowledgeBase2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
197
- ClientKnowledgeBase2.createNew = (questionText, type, answerText) => {
191
+ // src/models/ClientQuestion.ts
192
+ var ClientQuestion;
193
+ ((ClientQuestion2) => {
194
+ ClientQuestion2.TypeOptions = ["text", "select"];
195
+ ClientQuestion2.collection = (clientId) => `clients/${clientId}/questions`;
196
+ ClientQuestion2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
197
+ ClientQuestion2.createNew = (questionText, type, answerText, options) => {
198
198
  return {
199
199
  questionText,
200
200
  type,
201
201
  answerText,
202
+ options,
202
203
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
203
204
  };
204
205
  };
205
- })(ClientKnowledgeBase || (ClientKnowledgeBase = {}));
206
+ })(ClientQuestion || (ClientQuestion = {}));
206
207
 
207
208
  // src/models/Vacancy.ts
208
209
  var Vacancy;
@@ -268,8 +269,8 @@ export {
268
269
  AuthUserUtils,
269
270
  Client,
270
271
  ClientData,
271
- ClientKnowledgeBase,
272
272
  ClientLogin,
273
+ ClientQuestion,
273
274
  Vacancy,
274
275
  VacancySuggestion,
275
276
  getAuthUserDocumentPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobsearch-works/firestore-models",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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",