@jobsearch-works/firestore-models 1.1.11 → 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 CHANGED
@@ -261,21 +261,29 @@ declare const firestorePaths: {
261
261
  readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
262
262
  };
263
263
  };
264
- readonly questions: {
264
+ readonly emails: {
265
265
  readonly collection: (clientId: string) => string;
266
- readonly doc: (clientId: string, questionId: string) => 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
  };
271
- readonly vacancySuggestions: {
275
+ readonly questions: {
272
276
  readonly collection: (clientId: string) => string;
273
- readonly doc: (clientId: string, suggestionId: string) => string;
277
+ readonly doc: (clientId: string, questionId: string) => string;
274
278
  };
275
279
  readonly resumeLinks: {
276
280
  readonly collection: (clientId: string) => string;
277
281
  readonly doc: (clientId: string, resumeLinkId: string) => string;
278
282
  };
283
+ readonly vacancySuggestions: {
284
+ readonly collection: (clientId: string) => string;
285
+ readonly doc: (clientId: string, suggestionId: string) => string;
286
+ };
279
287
  };
280
288
  readonly users: {
281
289
  readonly collection: () => string;
@@ -294,10 +302,10 @@ declare const firestorePaths: {
294
302
  readonly doc: (clientDataId: string) => string;
295
303
  };
296
304
  readonly clientLogins: {
297
- readonly collection: (userId: string) => string;
298
- readonly doc: (userId: string, domain: string) => string;
305
+ readonly collection: (clientId: string) => string;
306
+ readonly doc: (clientId: string, domain: string) => string;
299
307
  };
300
- readonly gmailMessages: {
308
+ readonly clientEmails: {
301
309
  readonly collection: (clientId: string) => string;
302
310
  readonly doc: (clientId: string, messageId: string) => string;
303
311
  };
package/dist/index.d.ts CHANGED
@@ -261,21 +261,29 @@ declare const firestorePaths: {
261
261
  readonly doc: (clientId: string, applicationId: string, questionId: string) => string;
262
262
  };
263
263
  };
264
- readonly questions: {
264
+ readonly emails: {
265
265
  readonly collection: (clientId: string) => string;
266
- readonly doc: (clientId: string, questionId: string) => 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
  };
271
- readonly vacancySuggestions: {
275
+ readonly questions: {
272
276
  readonly collection: (clientId: string) => string;
273
- readonly doc: (clientId: string, suggestionId: string) => string;
277
+ readonly doc: (clientId: string, questionId: string) => string;
274
278
  };
275
279
  readonly resumeLinks: {
276
280
  readonly collection: (clientId: string) => string;
277
281
  readonly doc: (clientId: string, resumeLinkId: string) => string;
278
282
  };
283
+ readonly vacancySuggestions: {
284
+ readonly collection: (clientId: string) => string;
285
+ readonly doc: (clientId: string, suggestionId: string) => string;
286
+ };
279
287
  };
280
288
  readonly users: {
281
289
  readonly collection: () => string;
@@ -294,10 +302,10 @@ declare const firestorePaths: {
294
302
  readonly doc: (clientDataId: string) => string;
295
303
  };
296
304
  readonly clientLogins: {
297
- readonly collection: (userId: string) => string;
298
- readonly doc: (userId: string, domain: string) => string;
305
+ readonly collection: (clientId: string) => string;
306
+ readonly doc: (clientId: string, domain: string) => string;
299
307
  };
300
- readonly gmailMessages: {
308
+ readonly clientEmails: {
301
309
  readonly collection: (clientId: string) => string;
302
310
  readonly doc: (clientId: string, messageId: string) => string;
303
311
  };
package/dist/index.js CHANGED
@@ -97,20 +97,28 @@ var firestorePaths = {
97
97
  doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
98
98
  }
99
99
  },
100
- questions: {
101
- collection: (clientId) => `clients/${clientId}/questions`,
102
- doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
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}`
103
107
  },
104
108
  preferences: {
105
109
  target: (clientId) => `clients/${clientId}/preferences/targetPreferences`
106
110
  },
107
- vacancySuggestions: {
108
- collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
109
- doc: (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`
111
+ questions: {
112
+ collection: (clientId) => `clients/${clientId}/questions`,
113
+ doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
110
114
  },
111
115
  resumeLinks: {
112
116
  collection: (clientId) => `clients/${clientId}/resumeLinks`,
113
117
  doc: (clientId, resumeLinkId) => `clients/${clientId}/resumeLinks/${resumeLinkId}`
118
+ },
119
+ vacancySuggestions: {
120
+ collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
121
+ doc: (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`
114
122
  }
115
123
  },
116
124
  users: {
@@ -130,12 +138,12 @@ var firestorePaths = {
130
138
  doc: (clientDataId) => `clientData/${clientDataId}`
131
139
  },
132
140
  clientLogins: {
133
- collection: (userId) => `clientLogins/${userId}/logins`,
134
- doc: (userId, domain) => `clientLogins/${userId}/logins/${domain}`
141
+ collection: (clientId) => `clients/${clientId}/logins`,
142
+ doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
135
143
  },
136
- gmailMessages: {
137
- collection: (clientId) => `clientEmails/${clientId}/messages`,
138
- doc: (clientId, messageId) => `clientEmails/${clientId}/messages/${messageId}`
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,20 +67,28 @@ var firestorePaths = {
67
67
  doc: (clientId, applicationId, questionId) => `clients/${clientId}/applications/${applicationId}/questions/${questionId}`
68
68
  }
69
69
  },
70
- questions: {
71
- collection: (clientId) => `clients/${clientId}/questions`,
72
- doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
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}`
73
77
  },
74
78
  preferences: {
75
79
  target: (clientId) => `clients/${clientId}/preferences/targetPreferences`
76
80
  },
77
- vacancySuggestions: {
78
- collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
79
- doc: (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`
81
+ questions: {
82
+ collection: (clientId) => `clients/${clientId}/questions`,
83
+ doc: (clientId, questionId) => `clients/${clientId}/questions/${questionId}`
80
84
  },
81
85
  resumeLinks: {
82
86
  collection: (clientId) => `clients/${clientId}/resumeLinks`,
83
87
  doc: (clientId, resumeLinkId) => `clients/${clientId}/resumeLinks/${resumeLinkId}`
88
+ },
89
+ vacancySuggestions: {
90
+ collection: (clientId) => `clients/${clientId}/vacancySuggestions`,
91
+ doc: (clientId, suggestionId) => `clients/${clientId}/vacancySuggestions/${suggestionId}`
84
92
  }
85
93
  },
86
94
  users: {
@@ -100,12 +108,12 @@ var firestorePaths = {
100
108
  doc: (clientDataId) => `clientData/${clientDataId}`
101
109
  },
102
110
  clientLogins: {
103
- collection: (userId) => `clientLogins/${userId}/logins`,
104
- doc: (userId, domain) => `clientLogins/${userId}/logins/${domain}`
111
+ collection: (clientId) => `clients/${clientId}/logins`,
112
+ doc: (clientId, domain) => `clients/${clientId}/logins/${domain}`
105
113
  },
106
- gmailMessages: {
107
- collection: (clientId) => `clientEmails/${clientId}/messages`,
108
- doc: (clientId, messageId) => `clientEmails/${clientId}/messages/${messageId}`
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.11",
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",