@omerlo/omerlo-webkit 0.0.49 → 0.0.51
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/index.d.ts +7 -7
- 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/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/dist/omerlo/reader/fetchers.d.ts +7 -7
- package/dist/omerlo/reader/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/omerlo/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const useReader: (f: typeof fetch) => {
|
|
2
2
|
notifications: {
|
|
3
|
-
listTopics: (params?: Partial<import("./reader/utils
|
|
3
|
+
listTopics: (params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").TopicSummary[]>>;
|
|
4
4
|
subscribeToTopic: (params: import("./reader").SubscriptionParams) => Promise<import("./reader/utils").ApiResponse<unknown>>;
|
|
5
5
|
unsubscribeFromTopic: (params: import("./reader").SubscriptionParams) => Promise<import("./reader/utils").ApiResponse<unknown>>;
|
|
6
6
|
};
|
|
7
7
|
magazines: {
|
|
8
|
-
listReleases: (distributionId: string, params?: Partial<import("./reader/utils
|
|
8
|
+
listReleases: (distributionId: string, params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Release[]>>;
|
|
9
9
|
getIssue: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Issue>>;
|
|
10
10
|
getBlocks: (sectionId: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").IssueBlock[]>>;
|
|
11
11
|
searchContents: (issueId: string, q: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").SectionContent[]>>;
|
|
@@ -24,20 +24,20 @@ export declare const useReader: (f: typeof fetch) => {
|
|
|
24
24
|
listOrganizations: (params?: Partial<import("./reader").ListProfilesParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").OrganizationSummary[]>>;
|
|
25
25
|
getOrganization: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Organization>>;
|
|
26
26
|
allOrganizationBlocks: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").ProfileBlockKind[]>>;
|
|
27
|
-
listProfileTypes: (params?: Partial<import("./reader/utils
|
|
27
|
+
listProfileTypes: (params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").ProfileTypeSummary[]>>;
|
|
28
28
|
getProfileType: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").ProfileType>>;
|
|
29
|
-
listWebpages: (params?: Partial<import("./reader/utils
|
|
29
|
+
listWebpages: (params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").WebpageSummary[]>>;
|
|
30
30
|
getWebpage: (slug: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").OrgWebpage>>;
|
|
31
31
|
getMenu: (key: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Menu>>;
|
|
32
32
|
getMedia: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Media>>;
|
|
33
33
|
getMediaSection: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").MediaSection>>;
|
|
34
34
|
getMediaBlock: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").MediaBlock>>;
|
|
35
|
-
listMediaSectionContents: (sectionId: string, params?: Partial<import("./reader/utils
|
|
35
|
+
listMediaSectionContents: (sectionId: string, params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").ContentSummary[]>>;
|
|
36
36
|
getContent: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Content>>;
|
|
37
37
|
listContents: (params?: Partial<import("./reader").ListContentParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").ContentSummary[]>>;
|
|
38
|
-
listCategories: (params?: Partial<import("./reader/utils
|
|
38
|
+
listCategories: (params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Category[]>>;
|
|
39
39
|
getCategory: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").Category>>;
|
|
40
|
-
listOauthProviders: (params?: Partial<import("./reader/utils
|
|
40
|
+
listOauthProviders: (params?: Partial<import("./reader/utils").PagingParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").OauthProviderSummary[]>>;
|
|
41
41
|
getOauthUser: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").OauthUser>>;
|
|
42
42
|
registerDevice: (params: import("./reader").DeviceParams) => Promise<import("./reader/utils").ApiResponse<unknown>>;
|
|
43
43
|
userInfo: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils").ApiResponse<import("./reader").UserInfo>>;
|
|
@@ -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
|
};
|
|
@@ -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,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const fetchers: (f: typeof fetch) => {
|
|
2
2
|
notifications: {
|
|
3
|
-
listTopics: (params?: Partial<import("./utils
|
|
3
|
+
listTopics: (params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/notification").TopicSummary[]>>;
|
|
4
4
|
subscribeToTopic: (params: import("./endpoints/notification").SubscriptionParams) => Promise<import("./utils").ApiResponse<unknown>>;
|
|
5
5
|
unsubscribeFromTopic: (params: import("./endpoints/notification").SubscriptionParams) => Promise<import("./utils").ApiResponse<unknown>>;
|
|
6
6
|
};
|
|
7
7
|
magazines: {
|
|
8
|
-
listReleases: (distributionId: string, params?: Partial<import("./utils
|
|
8
|
+
listReleases: (distributionId: string, params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/distributions").Release[]>>;
|
|
9
9
|
getIssue: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/magazines").Issue>>;
|
|
10
10
|
getBlocks: (sectionId: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/magazines").IssueBlock[]>>;
|
|
11
11
|
searchContents: (issueId: string, q: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/magazines").SectionContent[]>>;
|
|
@@ -24,20 +24,20 @@ export declare const fetchers: (f: typeof fetch) => {
|
|
|
24
24
|
listOrganizations: (params?: Partial<import(".").ListProfilesParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/organizations").OrganizationSummary[]>>;
|
|
25
25
|
getOrganization: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/organizations").Organization>>;
|
|
26
26
|
allOrganizationBlocks: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import(".").ProfileBlockKind[]>>;
|
|
27
|
-
listProfileTypes: (params?: Partial<import("./utils
|
|
27
|
+
listProfileTypes: (params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/profile-types").ProfileTypeSummary[]>>;
|
|
28
28
|
getProfileType: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/profile-types").ProfileType>>;
|
|
29
|
-
listWebpages: (params?: Partial<import("./utils
|
|
29
|
+
listWebpages: (params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/webpage").WebpageSummary[]>>;
|
|
30
30
|
getWebpage: (slug: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/webpage").OrgWebpage>>;
|
|
31
31
|
getMenu: (key: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/menu").Menu>>;
|
|
32
32
|
getMedia: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/media").Media>>;
|
|
33
33
|
getMediaSection: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/media").MediaSection>>;
|
|
34
34
|
getMediaBlock: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/media").MediaBlock>>;
|
|
35
|
-
listMediaSectionContents: (sectionId: string, params?: Partial<import("./utils
|
|
35
|
+
listMediaSectionContents: (sectionId: string, params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
|
|
36
36
|
getContent: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/contents").Content>>;
|
|
37
37
|
listContents: (params?: Partial<import("./endpoints/contents").ListContentParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
|
|
38
|
-
listCategories: (params?: Partial<import("./utils
|
|
38
|
+
listCategories: (params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/categories").Category[]>>;
|
|
39
39
|
getCategory: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/categories").Category>>;
|
|
40
|
-
listOauthProviders: (params?: Partial<import("./utils
|
|
40
|
+
listOauthProviders: (params?: Partial<import("./utils").PagingParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/oauth").OauthProviderSummary[]>>;
|
|
41
41
|
getOauthUser: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/oauth").OauthUser>>;
|
|
42
42
|
registerDevice: (params: import("./endpoints/device").DeviceParams) => Promise<import("./utils").ApiResponse<unknown>>;
|
|
43
43
|
userInfo: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils").ApiResponse<import("./endpoints/accounts").UserInfo>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ApiResponse } from './api';
|
|
1
|
+
export type { ApiResponse, PagingParams } from './api';
|
|
2
2
|
export * from './guards';
|