@jobloo/shared 1.0.5 → 1.0.6

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.
@@ -3,3 +3,8 @@
3
3
  * Converts short codes to user-friendly labels
4
4
  */
5
5
  export declare function formatExperienceLevel(level: string | null | undefined): string;
6
+ /**
7
+ * Format workplace type for display
8
+ * Converts API values to user-friendly labels
9
+ */
10
+ export declare function formatWorkplaceType(type: string | null | undefined): string;
@@ -13,3 +13,20 @@ export function formatExperienceLevel(level) {
13
13
  };
14
14
  return formatted[level] || level;
15
15
  }
16
+ /**
17
+ * Format workplace type for display
18
+ * Converts API values to user-friendly labels
19
+ */
20
+ export function formatWorkplaceType(type) {
21
+ if (!type)
22
+ return '';
23
+ const formatted = {
24
+ 'onsite': 'On-site',
25
+ 'on-site': 'On-site',
26
+ 'remote': 'Remote',
27
+ 'hybrid': 'Hybrid',
28
+ 'unspecified': '',
29
+ };
30
+ const lower = type.toLowerCase();
31
+ return formatted[lower] || type.charAt(0).toUpperCase() + type.slice(1);
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobloo/shared",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shared types and utilities for Jobloo",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",