@jobloo/shared 1.0.4 → 1.0.5

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.
@@ -8,6 +8,7 @@ export interface User {
8
8
  firstName?: string;
9
9
  lastName?: string;
10
10
  phone: string;
11
+ phoneCountryCode?: string;
11
12
  gender?: 'male' | 'female' | 'other' | 'prefer-not-to-say';
12
13
  race?: 'asian' | 'black-african-american' | 'white-caucasian' | 'hispanic' | 'native-american-pacific-islander' | 'other' | 'prefer-not-to-say';
13
14
  isProtectedVeteran?: 'yes' | 'no' | 'prefer-not-to-say';
@@ -42,6 +43,7 @@ export interface User {
42
43
  minSalary?: number;
43
44
  maxSalary?: number;
44
45
  salaryCurrency?: string;
46
+ generateCoverLetter?: boolean;
45
47
  };
46
48
  authorizedCountries: Array<{
47
49
  country: string;
@@ -56,6 +58,7 @@ export interface User {
56
58
  referredBy?: string;
57
59
  referralAdvanceUsed?: boolean;
58
60
  subscription_tier?: 'FREE' | 'STANDARD' | 'PRO' | 'LEGACY';
61
+ emailVerified?: boolean;
59
62
  }
60
63
  /**
61
64
  * Minimal user data for initial creation
@@ -20,3 +20,18 @@ export declare function getBestDescription(job: {
20
20
  description?: string | null;
21
21
  descriptionBody?: string | null;
22
22
  }): string;
23
+ /**
24
+ * Get raw HTML description for rich rendering
25
+ * Only decodes HTML entities but preserves structure tags
26
+ */
27
+ export declare function getRawDescription(job: {
28
+ source?: string;
29
+ title?: string;
30
+ company?: string;
31
+ openingPlain?: string | null;
32
+ descriptionPlain?: string | null;
33
+ descriptionBodyPlain?: string | null;
34
+ opening?: string | null;
35
+ description?: string | null;
36
+ descriptionBody?: string | null;
37
+ }): string;
@@ -135,3 +135,20 @@ export function getBestDescription(job) {
135
135
  }
136
136
  return '';
137
137
  }
138
+ /**
139
+ * Get raw HTML description for rich rendering
140
+ * Only decodes HTML entities but preserves structure tags
141
+ */
142
+ export function getRawDescription(job) {
143
+ // For LEVER: Combine opening + description_body
144
+ if (job.source === 'lever') {
145
+ const opening = job.opening || '';
146
+ const body = job.descriptionBody || '';
147
+ if (opening && body) {
148
+ return opening + '<br/><br/>' + body;
149
+ }
150
+ return body || opening || '';
151
+ }
152
+ // For other sources: Use description field
153
+ return job.description || job.descriptionBody || job.opening || '';
154
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobloo/shared",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Shared types and utilities for Jobloo",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",