@jobsearch-works/firestore-models 1.0.18 → 1.0.19

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
@@ -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[]) => ClientKnowledgeBase.Model;
189
190
  }
190
191
 
191
192
  /**
package/dist/index.d.ts CHANGED
@@ -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[]) => ClientKnowledgeBase.Model;
189
190
  }
190
191
 
191
192
  /**
package/dist/index.js CHANGED
@@ -229,11 +229,12 @@ var ClientKnowledgeBase;
229
229
  ClientKnowledgeBase2.TypeOptions = ["text", "select"];
230
230
  ClientKnowledgeBase2.collection = (clientId) => `clients/${clientId}/questions`;
231
231
  ClientKnowledgeBase2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
232
- ClientKnowledgeBase2.createNew = (questionText, type, answerText) => {
232
+ ClientKnowledgeBase2.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
  };
package/dist/index.mjs CHANGED
@@ -194,11 +194,12 @@ var ClientKnowledgeBase;
194
194
  ClientKnowledgeBase2.TypeOptions = ["text", "select"];
195
195
  ClientKnowledgeBase2.collection = (clientId) => `clients/${clientId}/questions`;
196
196
  ClientKnowledgeBase2.document = (clientId, questionId) => `clients/${clientId}/questions/${questionId}`;
197
- ClientKnowledgeBase2.createNew = (questionText, type, answerText) => {
197
+ ClientKnowledgeBase2.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
  };
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.19",
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",