@jobsearch-works/firestore-models 1.0.20 → 1.0.21
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 +1 -50
- package/dist/index.d.ts +1 -50
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -138,40 +138,6 @@ declare namespace ClientLogin {
|
|
138
138
|
const createNew: (userId: string, url: string, domain: string, password: string, username?: string, email?: string) => ClientLogin.Model;
|
139
139
|
}
|
140
140
|
|
141
|
-
/**
|
142
|
-
* QuestionData interface defines the core data fields for a generic question.
|
143
|
-
*/
|
144
|
-
interface QuestionData {
|
145
|
-
question: string;
|
146
|
-
options: string[];
|
147
|
-
}
|
148
|
-
/**
|
149
|
-
* Question interface - extends BaseModelInterface and includes QuestionData
|
150
|
-
*/
|
151
|
-
interface Question extends BaseModel, QuestionData {
|
152
|
-
}
|
153
|
-
interface ApplicationQuestion {
|
154
|
-
questionText: string;
|
155
|
-
type: "text";
|
156
|
-
answer?: string;
|
157
|
-
}
|
158
|
-
/**
|
159
|
-
* Represents ApplicationQuestion data including its Firestore document ID.
|
160
|
-
*/
|
161
|
-
type ApplicationQuestionDocument = ApplicationQuestion & {
|
162
|
-
id: string;
|
163
|
-
};
|
164
|
-
/**
|
165
|
-
* Represents a question-answer pair stored centrally for a client.
|
166
|
-
* Assumes structure in clients/{clientId}/questions collection.
|
167
|
-
*/
|
168
|
-
interface ClientQuestionAnswerPair {
|
169
|
-
id?: string;
|
170
|
-
questionText: string;
|
171
|
-
answer: string;
|
172
|
-
createdAt?: Date;
|
173
|
-
}
|
174
|
-
|
175
141
|
declare namespace ClientQuestion {
|
176
142
|
/**
|
177
143
|
* Represents a Q&A pair in the user's knowledge base
|
@@ -189,21 +155,6 @@ declare namespace ClientQuestion {
|
|
189
155
|
const createNew: (questionText: string, type: Type, answerText?: string, options?: string[]) => ClientQuestion.Model;
|
190
156
|
}
|
191
157
|
|
192
|
-
/**
|
193
|
-
* UserQuestionData interface defines the core data fields for a user question.
|
194
|
-
*/
|
195
|
-
interface UserQuestionData {
|
196
|
-
userId: string;
|
197
|
-
question: string;
|
198
|
-
answer: string;
|
199
|
-
options: string[];
|
200
|
-
}
|
201
|
-
/**
|
202
|
-
* UserQuestion interface - extends BaseModel and includes UserQuestionData
|
203
|
-
*/
|
204
|
-
interface UserQuestion extends BaseModel, UserQuestionData {
|
205
|
-
}
|
206
|
-
|
207
158
|
declare namespace Vacancy {
|
208
159
|
/**
|
209
160
|
* Represents a job vacancy
|
@@ -256,4 +207,4 @@ declare namespace VacancySuggestion {
|
|
256
207
|
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;
|
257
208
|
}
|
258
209
|
|
259
|
-
export { Application,
|
210
|
+
export { Application, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestion, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
|
package/dist/index.d.ts
CHANGED
@@ -138,40 +138,6 @@ declare namespace ClientLogin {
|
|
138
138
|
const createNew: (userId: string, url: string, domain: string, password: string, username?: string, email?: string) => ClientLogin.Model;
|
139
139
|
}
|
140
140
|
|
141
|
-
/**
|
142
|
-
* QuestionData interface defines the core data fields for a generic question.
|
143
|
-
*/
|
144
|
-
interface QuestionData {
|
145
|
-
question: string;
|
146
|
-
options: string[];
|
147
|
-
}
|
148
|
-
/**
|
149
|
-
* Question interface - extends BaseModelInterface and includes QuestionData
|
150
|
-
*/
|
151
|
-
interface Question extends BaseModel, QuestionData {
|
152
|
-
}
|
153
|
-
interface ApplicationQuestion {
|
154
|
-
questionText: string;
|
155
|
-
type: "text";
|
156
|
-
answer?: string;
|
157
|
-
}
|
158
|
-
/**
|
159
|
-
* Represents ApplicationQuestion data including its Firestore document ID.
|
160
|
-
*/
|
161
|
-
type ApplicationQuestionDocument = ApplicationQuestion & {
|
162
|
-
id: string;
|
163
|
-
};
|
164
|
-
/**
|
165
|
-
* Represents a question-answer pair stored centrally for a client.
|
166
|
-
* Assumes structure in clients/{clientId}/questions collection.
|
167
|
-
*/
|
168
|
-
interface ClientQuestionAnswerPair {
|
169
|
-
id?: string;
|
170
|
-
questionText: string;
|
171
|
-
answer: string;
|
172
|
-
createdAt?: Date;
|
173
|
-
}
|
174
|
-
|
175
141
|
declare namespace ClientQuestion {
|
176
142
|
/**
|
177
143
|
* Represents a Q&A pair in the user's knowledge base
|
@@ -189,21 +155,6 @@ declare namespace ClientQuestion {
|
|
189
155
|
const createNew: (questionText: string, type: Type, answerText?: string, options?: string[]) => ClientQuestion.Model;
|
190
156
|
}
|
191
157
|
|
192
|
-
/**
|
193
|
-
* UserQuestionData interface defines the core data fields for a user question.
|
194
|
-
*/
|
195
|
-
interface UserQuestionData {
|
196
|
-
userId: string;
|
197
|
-
question: string;
|
198
|
-
answer: string;
|
199
|
-
options: string[];
|
200
|
-
}
|
201
|
-
/**
|
202
|
-
* UserQuestion interface - extends BaseModel and includes UserQuestionData
|
203
|
-
*/
|
204
|
-
interface UserQuestion extends BaseModel, UserQuestionData {
|
205
|
-
}
|
206
|
-
|
207
158
|
declare namespace Vacancy {
|
208
159
|
/**
|
209
160
|
* Represents a job vacancy
|
@@ -256,4 +207,4 @@ declare namespace VacancySuggestion {
|
|
256
207
|
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;
|
257
208
|
}
|
258
209
|
|
259
|
-
export { Application,
|
210
|
+
export { Application, AuthUser, AuthUserCollectionPath, AuthUserUtils, Client, ClientData, ClientLogin, ClientQuestion, Vacancy, VacancySuggestion, getAuthUserDocumentPath };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jobsearch-works/firestore-models",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.21",
|
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",
|