@omerlo/omerlo-webkit 0.0.50 → 0.0.52
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/omerlo/reader/endpoints/accounts.d.ts +1 -0
- package/dist/omerlo/reader/endpoints/accounts.js +1 -0
- package/dist/omerlo/reader/endpoints/events.d.ts +3 -3
- package/dist/omerlo/reader/endpoints/events.js +3 -3
- package/dist/omerlo/reader/endpoints/organizations.d.ts +1 -1
- package/dist/omerlo/reader/endpoints/organizations.js +1 -1
- package/dist/omerlo/reader/endpoints/person.d.ts +2 -2
- package/dist/omerlo/reader/endpoints/person.js +2 -2
- package/dist/omerlo/reader/endpoints/profiles.d.ts +5 -3
- package/dist/omerlo/reader/endpoints/profiles.js +5 -3
- package/dist/omerlo/reader/endpoints/projects.d.ts +2 -2
- package/dist/omerlo/reader/endpoints/projects.js +2 -2
- package/dist/omerlo/reader/endpoints/visuals.d.ts +2 -2
- package/dist/omerlo/reader/endpoints/visuals.js +2 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare const accountsFetchers: (f: typeof fetch) => {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function getUserInfo(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserInfo>>;
|
|
7
7
|
export interface UserInfo {
|
|
8
|
+
id: string;
|
|
8
9
|
name: string;
|
|
9
10
|
email: string;
|
|
10
11
|
}
|
|
@@ -26,9 +26,9 @@ export interface EventSummary {
|
|
|
26
26
|
kind: string;
|
|
27
27
|
type: string;
|
|
28
28
|
isAllDay: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
profileImageUrl: string | null;
|
|
30
|
+
coverImageUrl: string | null;
|
|
31
|
+
subscriptionUrl: string | null;
|
|
32
32
|
meta: {
|
|
33
33
|
locales: LocalesMetadata;
|
|
34
34
|
};
|
|
@@ -43,9 +43,9 @@ export function parseEventSummary(data, assocs) {
|
|
|
43
43
|
type: data.type,
|
|
44
44
|
isAllDay: data.is_all_day,
|
|
45
45
|
// NOTE remove logo_image_url once using reader api
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
profileImageUrl: data.logo_image_url || data.profile_image_url,
|
|
47
|
+
coverImageUrl: data.cover_image_url,
|
|
48
|
+
subscriptionUrl: data.subscription_url,
|
|
49
49
|
name,
|
|
50
50
|
summaryHtml,
|
|
51
51
|
summaryText,
|
|
@@ -56,7 +56,7 @@ export function parseOrganizationSummary(data, assocs) {
|
|
|
56
56
|
kind: 'organization',
|
|
57
57
|
name: data.name,
|
|
58
58
|
// NOTE remove logo_image_url once using reader api
|
|
59
|
-
|
|
59
|
+
profileImageUrl: data.logo_image_url || data.profile_image_url,
|
|
60
60
|
...localizedField,
|
|
61
61
|
updatedAt: new Date(data.updated_at)
|
|
62
62
|
};
|
|
@@ -21,8 +21,8 @@ export interface PersonSummary {
|
|
|
21
21
|
lastName: string;
|
|
22
22
|
otherName: string | null;
|
|
23
23
|
pronoun: string | null;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
profileImageUrl: string | null;
|
|
25
|
+
coverImageUrl: string | null;
|
|
26
26
|
meta: {
|
|
27
27
|
locales: LocalesMetadata;
|
|
28
28
|
};
|
|
@@ -59,8 +59,8 @@ export function parsePersonSummary(data, assocs) {
|
|
|
59
59
|
otherName: data.other_name,
|
|
60
60
|
pronoun: data.pronoun,
|
|
61
61
|
// NOTE remove logo_image_url once using reader api
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
profileImageUrl: data.avatar_image_url || data.profile_image_url,
|
|
63
|
+
coverImageUrl: data.cover_image_url,
|
|
64
64
|
...localizedField,
|
|
65
65
|
updatedAt: new Date(data.updated_at)
|
|
66
66
|
};
|
|
@@ -22,12 +22,14 @@ export interface ProfileAddress {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export interface ProfileContact {
|
|
25
|
-
|
|
25
|
+
bluesky: string | null;
|
|
26
26
|
email: string | null;
|
|
27
|
-
linkedin: string | null;
|
|
28
|
-
website: string | null;
|
|
29
27
|
facebook: string | null;
|
|
28
|
+
instagram: string | null;
|
|
29
|
+
linkedin: string | null;
|
|
30
|
+
phone: string | null;
|
|
30
31
|
twitter: string | null;
|
|
32
|
+
website: string | null;
|
|
31
33
|
meta: {
|
|
32
34
|
locales: LocalesMetadata;
|
|
33
35
|
};
|
|
@@ -81,12 +81,14 @@ export function parseProfileAddress(data, _assocs) {
|
|
|
81
81
|
}
|
|
82
82
|
export function parseProfileContact(data, _assocs) {
|
|
83
83
|
return {
|
|
84
|
-
|
|
84
|
+
bluesky: data.bluesky,
|
|
85
85
|
email: data.email,
|
|
86
|
-
linkedin: data.linkedin,
|
|
87
|
-
website: data.website,
|
|
88
86
|
facebook: data.facebook,
|
|
87
|
+
instagram: data.instagram,
|
|
88
|
+
linkedin: data.linkedin,
|
|
89
|
+
phone: data.phone,
|
|
89
90
|
twitter: data.twitter,
|
|
91
|
+
website: data.website,
|
|
90
92
|
meta: buildMeta(data.locale)
|
|
91
93
|
};
|
|
92
94
|
}
|
|
@@ -15,8 +15,8 @@ export interface ProjectSummary {
|
|
|
15
15
|
id: string;
|
|
16
16
|
profileType: ProfileType;
|
|
17
17
|
kind: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
profileImageUrl: string | null;
|
|
19
|
+
coverImageUrl: string | null;
|
|
20
20
|
meta: {
|
|
21
21
|
locales: LocalesMetadata;
|
|
22
22
|
};
|
|
@@ -36,8 +36,8 @@ export function parseProjectSummary(data, assocs) {
|
|
|
36
36
|
profileType: getAssoc(assocs, 'profile_types', data.profile_type_id),
|
|
37
37
|
kind: 'project',
|
|
38
38
|
// NOTE remove logo_image_url once using reader api
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
profileImageUrl: data.logo_image_url || data.profile_image_url,
|
|
40
|
+
coverImageUrl: data.cover_image_url,
|
|
41
41
|
meta: buildMeta(data.localized?.locale),
|
|
42
42
|
name: data.localized?.name,
|
|
43
43
|
summaryHtml: data.localized?.summary_html,
|
|
@@ -33,8 +33,8 @@ export function parseVideo(data, _assocs) {
|
|
|
33
33
|
videoID: data.video_id,
|
|
34
34
|
monetized: data.monetized,
|
|
35
35
|
provider: data.provider,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
embedUrl: data.embed_url,
|
|
37
|
+
thumbnailUrl: data.thumbnail_url,
|
|
38
38
|
url: data.url,
|
|
39
39
|
captionHtml: data.caption_html,
|
|
40
40
|
credit: data.credit,
|