@jobsearch-works/firestore-models 1.1.10 → 1.1.12
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 +17 -9
- package/dist/index.d.ts +17 -9
- package/dist/index.js +19 -11
- package/dist/index.mjs +19 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -261,13 +261,25 @@ declare const firestorePaths: {
|
|
261
261
|
readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
|
262
262
|
};
|
263
263
|
};
|
264
|
-
readonly
|
264
|
+
readonly emails: {
|
265
265
|
readonly collection: (clientId: string) => string;
|
266
|
-
readonly doc: (clientId: string,
|
266
|
+
readonly doc: (clientId: string, messageId: string) => string;
|
267
|
+
};
|
268
|
+
readonly logins: {
|
269
|
+
readonly collection: (clientId: string) => string;
|
270
|
+
readonly doc: (clientId: string, domain: string) => string;
|
267
271
|
};
|
268
272
|
readonly preferences: {
|
269
273
|
readonly target: (clientId: string) => string;
|
270
274
|
};
|
275
|
+
readonly questions: {
|
276
|
+
readonly collection: (clientId: string) => string;
|
277
|
+
readonly doc: (clientId: string, questionId: string) => string;
|
278
|
+
};
|
279
|
+
readonly resumeLinks: {
|
280
|
+
readonly collection: (clientId: string) => string;
|
281
|
+
readonly doc: (clientId: string, resumeLinkId: string) => string;
|
282
|
+
};
|
271
283
|
readonly vacancySuggestions: {
|
272
284
|
readonly collection: (clientId: string) => string;
|
273
285
|
readonly doc: (clientId: string, suggestionId: string) => string;
|
@@ -290,16 +302,12 @@ declare const firestorePaths: {
|
|
290
302
|
readonly doc: (clientDataId: string) => string;
|
291
303
|
};
|
292
304
|
readonly clientLogins: {
|
293
|
-
readonly collection: (userId: string) => string;
|
294
|
-
readonly doc: (userId: string, domain: string) => string;
|
295
|
-
};
|
296
|
-
readonly gmailMessages: {
|
297
305
|
readonly collection: (clientId: string) => string;
|
298
|
-
readonly doc: (clientId: string,
|
306
|
+
readonly doc: (clientId: string, domain: string) => string;
|
299
307
|
};
|
300
|
-
readonly
|
308
|
+
readonly clientEmails: {
|
301
309
|
readonly collection: (clientId: string) => string;
|
302
|
-
readonly doc: (clientId: string,
|
310
|
+
readonly doc: (clientId: string, messageId: string) => string;
|
303
311
|
};
|
304
312
|
};
|
305
313
|
|
package/dist/index.d.ts
CHANGED
@@ -261,13 +261,25 @@ declare const firestorePaths: {
|
|
261
261
|
readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
|
262
262
|
};
|
263
263
|
};
|
264
|
-
readonly
|
264
|
+
readonly emails: {
|
265
265
|
readonly collection: (clientId: string) => string;
|
266
|
-
readonly doc: (clientId: string,
|
266
|
+
readonly doc: (clientId: string, messageId: string) => string;
|
267
|
+
};
|
268
|
+
readonly logins: {
|
269
|
+
readonly collection: (clientId: string) => string;
|
270
|
+
readonly doc: (clientId: string, domain: string) => string;
|
267
271
|
};
|
268
272
|
readonly preferences: {
|
269
273
|
readonly target: (clientId: string) => string;
|
270
274
|
};
|
275
|
+
readonly questions: {
|
276
|
+
readonly collection: (clientId: string) => string;
|
277
|
+
readonly doc: (clientId: string, questionId: string) => string;
|
278
|
+
};
|
279
|
+
readonly resumeLinks: {
|
280
|
+
readonly collection: (clientId: string) => string;
|
281
|
+
readonly doc: (clientId: string, resumeLinkId: string) => string;
|
282
|
+
};
|
271
283
|
readonly vacancySuggestions: {
|
272
284
|
readonly collection: (clientId: string) => string;
|
273
285
|
readonly doc: (clientId: string, suggestionId: string) => string;
|
@@ -290,16 +302,12 @@ declare const firestorePaths: {
|
|
290
302
|
readonly doc: (clientDataId: string) => string;
|
291
303
|
};
|
292
304
|
readonly clientLogins: {
|
293
|
-
readonly collection: (userId: string) => string;
|
294
|
-
readonly doc: (userId: string, domain: string) => string;
|
295
|
-
};
|
296
|
-
readonly gmailMessages: {
|
297
305
|
readonly collection: (clientId: string) => string;
|
298
|
-
readonly doc: (clientId: string,
|
306
|
+
readonly doc: (clientId: string, domain: string) => string;
|
299
307
|
};
|
300
|
-
readonly
|
308
|
+
readonly clientEmails: {
|
301
309
|
readonly collection: (clientId: string) => string;
|
302
|
-
readonly doc: (clientId: string,
|
310
|
+
readonly doc: (clientId: string, messageId: string) => string;
|
303
311
|
};
|
304
312
|
};
|
305
313
|
|
package/dist/index.js
CHANGED
@@ -97,12 +97,24 @@ var firestorePaths = {
|
|
97
97
|
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
98
98
|
}
|
99
99
|
},
|
100
|
+
emails: {
|
101
|
+
collection: (clientId) => `clients/${clientId}/emails`,
|
102
|
+
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
103
|
+
},
|
104
|
+
logins: {
|
105
|
+
collection: (clientId) => `clients/${clientId}/logins`,
|
106
|
+
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
107
|
+
},
|
108
|
+
preferences: {
|
109
|
+
target: (clientId) => `clients/${clientId}/preferences/targetPreferences`
|
110
|
+
},
|
100
111
|
questions: {
|
101
112
|
collection: (clientId) => `clients/${clientId}/questions`,
|
102
113
|
doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
|
103
114
|
},
|
104
|
-
|
105
|
-
|
115
|
+
resumeLinks: {
|
116
|
+
collection: (clientId) => `clients/${clientId}/resumeLinks`,
|
117
|
+
doc: (clientId, resumeLinkId) => `clients/${clientId}/resumeLinks/${resumeLinkId}`
|
106
118
|
},
|
107
119
|
vacancySuggestions: {
|
108
120
|
collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
|
@@ -126,16 +138,12 @@ var firestorePaths = {
|
|
126
138
|
doc: (clientDataId) => `clientData/${clientDataId}`
|
127
139
|
},
|
128
140
|
clientLogins: {
|
129
|
-
collection: (
|
130
|
-
doc: (
|
131
|
-
},
|
132
|
-
gmailMessages: {
|
133
|
-
collection: (clientId) => `clientEmails/${clientId}/messages`,
|
134
|
-
doc: (clientId, messageId) => `clientEmails/${clientId}/messages/${messageId}`
|
141
|
+
collection: (clientId) => `clients/${clientId}/logins`,
|
142
|
+
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
135
143
|
},
|
136
|
-
|
137
|
-
collection: (clientId) => `clients/${clientId}/
|
138
|
-
doc: (clientId,
|
144
|
+
clientEmails: {
|
145
|
+
collection: (clientId) => `clients/${clientId}/emails`,
|
146
|
+
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
139
147
|
}
|
140
148
|
};
|
141
149
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
@@ -67,12 +67,24 @@ var firestorePaths = {
|
|
67
67
|
doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
|
68
68
|
}
|
69
69
|
},
|
70
|
+
emails: {
|
71
|
+
collection: (clientId) => `clients/${clientId}/emails`,
|
72
|
+
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
73
|
+
},
|
74
|
+
logins: {
|
75
|
+
collection: (clientId) => `clients/${clientId}/logins`,
|
76
|
+
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
77
|
+
},
|
78
|
+
preferences: {
|
79
|
+
target: (clientId) => `clients/${clientId}/preferences/targetPreferences`
|
80
|
+
},
|
70
81
|
questions: {
|
71
82
|
collection: (clientId) => `clients/${clientId}/questions`,
|
72
83
|
doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
|
73
84
|
},
|
74
|
-
|
75
|
-
|
85
|
+
resumeLinks: {
|
86
|
+
collection: (clientId) => `clients/${clientId}/resumeLinks`,
|
87
|
+
doc: (clientId, resumeLinkId) => `clients/${clientId}/resumeLinks/${resumeLinkId}`
|
76
88
|
},
|
77
89
|
vacancySuggestions: {
|
78
90
|
collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
|
@@ -96,16 +108,12 @@ var firestorePaths = {
|
|
96
108
|
doc: (clientDataId) => `clientData/${clientDataId}`
|
97
109
|
},
|
98
110
|
clientLogins: {
|
99
|
-
collection: (
|
100
|
-
doc: (
|
101
|
-
},
|
102
|
-
gmailMessages: {
|
103
|
-
collection: (clientId) => `clientEmails/${clientId}/messages`,
|
104
|
-
doc: (clientId, messageId) => `clientEmails/${clientId}/messages/${messageId}`
|
111
|
+
collection: (clientId) => `clients/${clientId}/logins`,
|
112
|
+
doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
|
105
113
|
},
|
106
|
-
|
107
|
-
collection: (clientId) => `clients/${clientId}/
|
108
|
-
doc: (clientId,
|
114
|
+
clientEmails: {
|
115
|
+
collection: (clientId) => `clients/${clientId}/emails`,
|
116
|
+
doc: (clientId, messageId) => `clients/${clientId}/emails/${messageId}`
|
109
117
|
}
|
110
118
|
};
|
111
119
|
export {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jobsearch-works/firestore-models",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.12",
|
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",
|