@jobsearch-works/firestore-models 4.2.0 → 4.2.1

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
@@ -917,7 +917,7 @@ interface ClientJobPreferences {
917
917
  maxSalary?: number;
918
918
  employmentTypes: string[];
919
919
  remotePreference: 'remote' | 'hybrid' | 'office';
920
- earliestStartDate?: string;
920
+ noticePeriod?: 'immediate' | '1_week' | '2_weeks' | '1_month' | '2_months' | '3_months' | '6_months' | 'negotiable';
921
921
  workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
922
922
  weekendWork?: 'yes' | 'no' | 'sometimes';
923
923
  shiftWork?: 'yes' | 'no' | 'sometimes';
@@ -937,6 +937,19 @@ interface ClientWebsitePreferences {
937
937
  notifications: string;
938
938
  }
939
939
 
940
+ /**
941
+ * Subcollection document under Client
942
+ * Path: clients/{clientId}/gmailTokens/{docId}
943
+ * @see Client - Parent document
944
+ */
945
+ interface ClientGmailToken {
946
+ readonly id?: string;
947
+ accessToken: string;
948
+ refreshToken: string;
949
+ email: string;
950
+ useThisEmail: boolean;
951
+ }
952
+
940
953
  type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
941
954
  /**
942
955
  * Root Client document
@@ -951,23 +964,11 @@ interface Client {
951
964
  readonly personalData?: ClientPersonalData;
952
965
  readonly jobPreferences?: ClientJobPreferences;
953
966
  readonly websitePreferences?: ClientWebsitePreferences;
967
+ readonly gmailToken?: ClientGmailToken;
954
968
  resume: ClientResume;
955
969
  readonly createdAt?: Date | string;
956
970
  }
957
971
 
958
- /**
959
- * Subcollection document under Client
960
- * Path: clients/{clientId}/gmailTokens/{docId}
961
- * @see Client - Parent document
962
- */
963
- interface ClientGmailToken {
964
- readonly id?: string;
965
- accessToken: string;
966
- refreshToken: string;
967
- email: string;
968
- useThisEmail: boolean;
969
- }
970
-
971
972
  /**
972
973
  * Subcollection document under Client
973
974
  * Path: clients/{clientId}/initialQuestions/{docId}
@@ -1097,10 +1098,6 @@ declare const firestorePaths: {
1097
1098
  readonly clients: {
1098
1099
  readonly collection: () => string;
1099
1100
  readonly doc: (id: string) => string;
1100
- readonly accessTokens: {
1101
- readonly collection: (clientId: string) => string;
1102
- readonly doc: (clientId: string, providerName: string) => string;
1103
- };
1104
1101
  readonly emails: {
1105
1102
  readonly collection: (clientId: string) => string;
1106
1103
  readonly doc: (clientId: string, emailId: string) => string;
package/dist/index.d.ts CHANGED
@@ -917,7 +917,7 @@ interface ClientJobPreferences {
917
917
  maxSalary?: number;
918
918
  employmentTypes: string[];
919
919
  remotePreference: 'remote' | 'hybrid' | 'office';
920
- earliestStartDate?: string;
920
+ noticePeriod?: 'immediate' | '1_week' | '2_weeks' | '1_month' | '2_months' | '3_months' | '6_months' | 'negotiable';
921
921
  workAvailability?: 'full-time' | 'part-time' | 'casual' | 'contract' | 'flexible';
922
922
  weekendWork?: 'yes' | 'no' | 'sometimes';
923
923
  shiftWork?: 'yes' | 'no' | 'sometimes';
@@ -937,6 +937,19 @@ interface ClientWebsitePreferences {
937
937
  notifications: string;
938
938
  }
939
939
 
940
+ /**
941
+ * Subcollection document under Client
942
+ * Path: clients/{clientId}/gmailTokens/{docId}
943
+ * @see Client - Parent document
944
+ */
945
+ interface ClientGmailToken {
946
+ readonly id?: string;
947
+ accessToken: string;
948
+ refreshToken: string;
949
+ email: string;
950
+ useThisEmail: boolean;
951
+ }
952
+
940
953
  type ClientStatus = (typeof ClientStatusEnum)[keyof typeof ClientStatusEnum];
941
954
  /**
942
955
  * Root Client document
@@ -951,23 +964,11 @@ interface Client {
951
964
  readonly personalData?: ClientPersonalData;
952
965
  readonly jobPreferences?: ClientJobPreferences;
953
966
  readonly websitePreferences?: ClientWebsitePreferences;
967
+ readonly gmailToken?: ClientGmailToken;
954
968
  resume: ClientResume;
955
969
  readonly createdAt?: Date | string;
956
970
  }
957
971
 
958
- /**
959
- * Subcollection document under Client
960
- * Path: clients/{clientId}/gmailTokens/{docId}
961
- * @see Client - Parent document
962
- */
963
- interface ClientGmailToken {
964
- readonly id?: string;
965
- accessToken: string;
966
- refreshToken: string;
967
- email: string;
968
- useThisEmail: boolean;
969
- }
970
-
971
972
  /**
972
973
  * Subcollection document under Client
973
974
  * Path: clients/{clientId}/initialQuestions/{docId}
@@ -1097,10 +1098,6 @@ declare const firestorePaths: {
1097
1098
  readonly clients: {
1098
1099
  readonly collection: () => string;
1099
1100
  readonly doc: (id: string) => string;
1100
- readonly accessTokens: {
1101
- readonly collection: (clientId: string) => string;
1102
- readonly doc: (clientId: string, providerName: string) => string;
1103
- };
1104
1101
  readonly emails: {
1105
1102
  readonly collection: (clientId: string) => string;
1106
1103
  readonly doc: (clientId: string, emailId: string) => string;
package/dist/index.js CHANGED
@@ -1316,10 +1316,6 @@ var firestorePaths = {
1316
1316
  clients: {
1317
1317
  collection: () => "clients",
1318
1318
  doc: (id) => `clients/${id}`,
1319
- accessTokens: {
1320
- collection: (clientId) => `clients/${clientId}/access_tokens`,
1321
- doc: (clientId, providerName) => `clients/${clientId}/access_tokens/${providerName}`
1322
- },
1323
1319
  emails: {
1324
1320
  collection: (clientId) => `clients/${clientId}/emails`,
1325
1321
  doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
package/dist/index.mjs CHANGED
@@ -1279,10 +1279,6 @@ var firestorePaths = {
1279
1279
  clients: {
1280
1280
  collection: () => "clients",
1281
1281
  doc: (id) => `clients/${id}`,
1282
- accessTokens: {
1283
- collection: (clientId) => `clients/${clientId}/access_tokens`,
1284
- doc: (clientId, providerName) => `clients/${clientId}/access_tokens/${providerName}`
1285
- },
1286
1282
  emails: {
1287
1283
  collection: (clientId) => `clients/${clientId}/emails`,
1288
1284
  doc: (clientId, emailId) => `clients/${clientId}/emails/${emailId}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobsearch-works/firestore-models",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
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",