@singi-labs/sifa-sdk 0.1.0 → 0.3.0
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.cjs +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface LocationValue {
|
|
2
2
|
city?: string;
|
|
3
|
+
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
4
|
+
locality?: string;
|
|
3
5
|
region?: string;
|
|
4
6
|
country: string;
|
|
5
7
|
countryCode?: string;
|
|
@@ -17,6 +19,7 @@ interface ProfilePosition {
|
|
|
17
19
|
startedAt: string;
|
|
18
20
|
endedAt?: string;
|
|
19
21
|
location?: LocationValue | null;
|
|
22
|
+
employmentType?: string;
|
|
20
23
|
workplaceType?: string;
|
|
21
24
|
skills?: SkillRef[];
|
|
22
25
|
linkedSkills?: ProfileSkill[];
|
|
@@ -66,7 +69,10 @@ interface ProfileLocation {
|
|
|
66
69
|
isPrimary: boolean;
|
|
67
70
|
locationCountry?: string | null;
|
|
68
71
|
locationRegion?: string | null;
|
|
72
|
+
/** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */
|
|
69
73
|
locationCity?: string | null;
|
|
74
|
+
/** community.lexicon.location.address field name -- prefer over `locationCity`. */
|
|
75
|
+
locationLocality?: string | null;
|
|
70
76
|
countryCode?: string | null;
|
|
71
77
|
location?: string | null;
|
|
72
78
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface LocationValue {
|
|
2
2
|
city?: string;
|
|
3
|
+
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
4
|
+
locality?: string;
|
|
3
5
|
region?: string;
|
|
4
6
|
country: string;
|
|
5
7
|
countryCode?: string;
|
|
@@ -17,6 +19,7 @@ interface ProfilePosition {
|
|
|
17
19
|
startedAt: string;
|
|
18
20
|
endedAt?: string;
|
|
19
21
|
location?: LocationValue | null;
|
|
22
|
+
employmentType?: string;
|
|
20
23
|
workplaceType?: string;
|
|
21
24
|
skills?: SkillRef[];
|
|
22
25
|
linkedSkills?: ProfileSkill[];
|
|
@@ -66,7 +69,10 @@ interface ProfileLocation {
|
|
|
66
69
|
isPrimary: boolean;
|
|
67
70
|
locationCountry?: string | null;
|
|
68
71
|
locationRegion?: string | null;
|
|
72
|
+
/** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */
|
|
69
73
|
locationCity?: string | null;
|
|
74
|
+
/** community.lexicon.location.address field name -- prefer over `locationCity`. */
|
|
75
|
+
locationLocality?: string | null;
|
|
70
76
|
countryCode?: string | null;
|
|
71
77
|
location?: string | null;
|
|
72
78
|
}
|
package/dist/index.js
CHANGED
|
@@ -912,7 +912,7 @@ function meetsContrastAA(foreground, background) {
|
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
// src/index.ts
|
|
915
|
-
var SIFA_SDK_VERSION = "0.
|
|
915
|
+
var SIFA_SDK_VERSION = "0.3.0";
|
|
916
916
|
|
|
917
917
|
export { CATEGORY_LABELS, CATEGORY_ORDER, CONTINENTS, COUNTRIES, INDUSTRY_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, SIFA_SDK_VERSION, SKILL_CATEGORIES, certDateExtractor, contrastRatio, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getHandleStem, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, lexiconDateExtractor, meetsContrastAA, parseLocationString, pdsProviderFromApi, relativeLuminance, rgbToString, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
|
918
918
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singi-labs/sifa-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"types": "./dist/index.d.ts",
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@changesets/cli": "2.
|
|
51
|
+
"@changesets/cli": "2.31.0",
|
|
52
52
|
"@commitlint/cli": "21.0.1",
|
|
53
53
|
"@commitlint/config-conventional": "21.0.1",
|
|
54
54
|
"@vitest/coverage-v8": "3.2.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"prettier": "3.8.3",
|
|
58
58
|
"tsup": "8.5.1",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
|
-
"typescript-eslint": "8.
|
|
60
|
+
"typescript-eslint": "8.59.3",
|
|
61
61
|
"vitest": "3.2.1"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|