@jobsearch-works/firestore-models 2.0.1 → 2.0.3

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
@@ -141,7 +141,7 @@ interface Vacancy {
141
141
  }
142
142
 
143
143
  interface VacancySuggestion {
144
- id?: string;
144
+ readonly id?: string;
145
145
  clientId: string;
146
146
  vacancyId: string;
147
147
  status: string;
@@ -152,9 +152,7 @@ type ClientStatus = "active" | "inactive";
152
152
  interface Client {
153
153
  readonly id?: string;
154
154
  readonly name: string;
155
- readonly email: string;
156
155
  readonly status: ClientStatus;
157
- readonly resume?: string;
158
156
  readonly createdAt?: Date | string;
159
157
  }
160
158
 
@@ -185,6 +183,7 @@ interface ClientEmails {
185
183
  }
186
184
 
187
185
  interface ClientGmailTokens {
186
+ readonly id?: string;
188
187
  accessToken: string;
189
188
  refreshToken: string;
190
189
  email: string;
@@ -192,11 +191,13 @@ interface ClientGmailTokens {
192
191
  }
193
192
 
194
193
  interface ClientInitialQuestion {
194
+ readonly id?: string;
195
195
  questionText: string;
196
196
  answerText: string;
197
197
  }
198
198
 
199
199
  interface ClientInterview {
200
+ readonly id?: string;
200
201
  company: string;
201
202
  position: string;
202
203
  type: string;
@@ -730,7 +731,7 @@ type JobCategory = keyof typeof jobClassifications;
730
731
  type JobTitle = (typeof jobClassifications)[JobCategory][number];
731
732
  type LocationId = (typeof locations)[number]["id"];
732
733
  interface ClientJobPreferences {
733
- id?: string;
734
+ readonly id?: string;
734
735
  clientId: string;
735
736
  desiredPositions: JobTitle[];
736
737
  categories: JobCategory[];
@@ -744,7 +745,7 @@ interface ClientJobPreferences {
744
745
  }
745
746
 
746
747
  interface ClientLogin {
747
- id?: string;
748
+ readonly id?: string;
748
749
  userId: string;
749
750
  url: string;
750
751
  domain: string;
@@ -788,6 +789,7 @@ interface ClientQuestion {
788
789
  }
789
790
 
790
791
  interface ClientResume {
792
+ readonly id?: string;
791
793
  title: string;
792
794
  createdAt: Date | string;
793
795
  updatedAt: Date | string;
@@ -815,6 +817,7 @@ interface ClientResume {
815
817
  }
816
818
 
817
819
  interface ClientWebsitePreferences {
820
+ readonly id?: string;
818
821
  theme: string;
819
822
  notifications: string;
820
823
  }
package/dist/index.d.ts CHANGED
@@ -141,7 +141,7 @@ interface Vacancy {
141
141
  }
142
142
 
143
143
  interface VacancySuggestion {
144
- id?: string;
144
+ readonly id?: string;
145
145
  clientId: string;
146
146
  vacancyId: string;
147
147
  status: string;
@@ -152,9 +152,7 @@ type ClientStatus = "active" | "inactive";
152
152
  interface Client {
153
153
  readonly id?: string;
154
154
  readonly name: string;
155
- readonly email: string;
156
155
  readonly status: ClientStatus;
157
- readonly resume?: string;
158
156
  readonly createdAt?: Date | string;
159
157
  }
160
158
 
@@ -185,6 +183,7 @@ interface ClientEmails {
185
183
  }
186
184
 
187
185
  interface ClientGmailTokens {
186
+ readonly id?: string;
188
187
  accessToken: string;
189
188
  refreshToken: string;
190
189
  email: string;
@@ -192,11 +191,13 @@ interface ClientGmailTokens {
192
191
  }
193
192
 
194
193
  interface ClientInitialQuestion {
194
+ readonly id?: string;
195
195
  questionText: string;
196
196
  answerText: string;
197
197
  }
198
198
 
199
199
  interface ClientInterview {
200
+ readonly id?: string;
200
201
  company: string;
201
202
  position: string;
202
203
  type: string;
@@ -730,7 +731,7 @@ type JobCategory = keyof typeof jobClassifications;
730
731
  type JobTitle = (typeof jobClassifications)[JobCategory][number];
731
732
  type LocationId = (typeof locations)[number]["id"];
732
733
  interface ClientJobPreferences {
733
- id?: string;
734
+ readonly id?: string;
734
735
  clientId: string;
735
736
  desiredPositions: JobTitle[];
736
737
  categories: JobCategory[];
@@ -744,7 +745,7 @@ interface ClientJobPreferences {
744
745
  }
745
746
 
746
747
  interface ClientLogin {
747
- id?: string;
748
+ readonly id?: string;
748
749
  userId: string;
749
750
  url: string;
750
751
  domain: string;
@@ -788,6 +789,7 @@ interface ClientQuestion {
788
789
  }
789
790
 
790
791
  interface ClientResume {
792
+ readonly id?: string;
791
793
  title: string;
792
794
  createdAt: Date | string;
793
795
  updatedAt: Date | string;
@@ -815,6 +817,7 @@ interface ClientResume {
815
817
  }
816
818
 
817
819
  interface ClientWebsitePreferences {
820
+ readonly id?: string;
818
821
  theme: string;
819
822
  notifications: string;
820
823
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobsearch-works/firestore-models",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
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",