@omerlo/omerlo-webkit 0.0.42 → 0.0.43

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.
Files changed (30) hide show
  1. package/dist/omerlo/index.d.ts +20 -19
  2. package/dist/omerlo/reader/endpoints/accounts.d.ts +5 -4
  3. package/dist/omerlo/reader/endpoints/accounts.js +4 -4
  4. package/dist/omerlo/reader/endpoints/categories.d.ts +3 -3
  5. package/dist/omerlo/reader/endpoints/categories.js +2 -2
  6. package/dist/omerlo/reader/endpoints/events.d.ts +3 -3
  7. package/dist/omerlo/reader/endpoints/events.js +2 -2
  8. package/dist/omerlo/reader/endpoints/integration.d.ts +3 -3
  9. package/dist/omerlo/reader/endpoints/integration.js +2 -2
  10. package/dist/omerlo/reader/endpoints/magazines.d.ts +9 -9
  11. package/dist/omerlo/reader/endpoints/magazines.js +8 -8
  12. package/dist/omerlo/reader/endpoints/media.d.ts +7 -7
  13. package/dist/omerlo/reader/endpoints/media.js +6 -6
  14. package/dist/omerlo/reader/endpoints/menu.d.ts +3 -5
  15. package/dist/omerlo/reader/endpoints/menu.js +4 -11
  16. package/dist/omerlo/reader/endpoints/oauth.d.ts +3 -3
  17. package/dist/omerlo/reader/endpoints/oauth.js +2 -2
  18. package/dist/omerlo/reader/endpoints/organizations.d.ts +3 -3
  19. package/dist/omerlo/reader/endpoints/organizations.js +2 -2
  20. package/dist/omerlo/reader/endpoints/person.d.ts +3 -3
  21. package/dist/omerlo/reader/endpoints/person.js +2 -2
  22. package/dist/omerlo/reader/endpoints/profileType.d.ts +3 -3
  23. package/dist/omerlo/reader/endpoints/profileType.js +2 -2
  24. package/dist/omerlo/reader/endpoints/projects.d.ts +3 -3
  25. package/dist/omerlo/reader/endpoints/projects.js +2 -2
  26. package/dist/omerlo/reader/endpoints/webpage.d.ts +3 -3
  27. package/dist/omerlo/reader/endpoints/webpage.js +2 -2
  28. package/dist/omerlo/reader/fetchers.d.ts +20 -19
  29. package/dist/omerlo/reader/fetchers.js +2 -0
  30. package/package.json +1 -1
@@ -6,36 +6,37 @@ export declare const useReader: (f: typeof fetch) => {
6
6
  };
7
7
  magazines: {
8
8
  listReleases: (distributionId: string, params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Release[]>>;
9
- getIssue: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Issue>>;
10
- getBlocks: (sectionId: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").IssueBlock[]>>;
11
- searchContents: (issueId: string, q: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").SectionContent[]>>;
12
- getSectionContents: (sectionId: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ContentSummary[]>>;
9
+ getIssue: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Issue>>;
10
+ getBlocks: (sectionId: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").IssueBlock[]>>;
11
+ searchContents: (issueId: string, q: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").SectionContent[]>>;
12
+ getSectionContents: (sectionId: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ContentSummary[]>>;
13
13
  };
14
- getReference: (key: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader/endpoints/integration").Reference>>;
14
+ getReference: (key: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader/endpoints/integration").Reference>>;
15
15
  listProjects: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ProjectSummary[]>>;
16
- getProject: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Project>>;
16
+ getProject: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Project>>;
17
17
  listPeople: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").PersonSummary[]>>;
18
- getPerson: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Person>>;
18
+ getPerson: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Person>>;
19
19
  listEvents: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").EventSummary[]>>;
20
- getEvent: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Event>>;
20
+ getEvent: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Event>>;
21
21
  allEventBlocks: (id: string, params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ProfileBlockKind[]>>;
22
22
  listOrganizations: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OrganizationSummary[]>>;
23
- getOrganization: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Organization>>;
23
+ getOrganization: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Organization>>;
24
+ listProfileTypes: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ProfileTypeSummary[]>>;
25
+ getProfileType: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ProfileType>>;
24
26
  listWebpages: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").WebpageSummary[]>>;
25
- getWebpage: (slug: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OrgWebpage>>;
26
- getMenu: (key: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Menu>>;
27
- listMenus: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").MenuSummary[]>>;
28
- getMedia: () => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Media>>;
29
- getMediaSection: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").MediaSection>>;
30
- getMediaBlock: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").MediaBlock>>;
27
+ getWebpage: (slug: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OrgWebpage>>;
28
+ getMenu: (key: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Menu>>;
29
+ getMedia: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Media>>;
30
+ getMediaSection: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").MediaSection>>;
31
+ getMediaBlock: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").MediaBlock>>;
31
32
  listMediaSectionContents: (sectionId: string, params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ContentSummary[]>>;
32
33
  getContent: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Content>>;
33
34
  listContents: (params?: Partial<import("./reader").ListContentParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").ContentSummary[]>>;
34
35
  listCategories: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Category[]>>;
35
- getCategory: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Category>>;
36
+ getCategory: (id: string, params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Category>>;
36
37
  listOauthProviders: (params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OauthProviderSummary[]>>;
37
- getOauthUser: () => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OauthUser>>;
38
+ getOauthUser: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").OauthUser>>;
38
39
  registerDevice: (params: import("./reader").DeviceParams) => Promise<import("./reader/utils/api").ApiResponse<unknown>>;
39
- userInfo: () => Promise<import("./reader/utils/api").ApiResponse<import("./reader").UserInfo>>;
40
- userEntitlements: () => Promise<import("./reader/utils/api").ApiResponse<import("./reader").UserEntitlement[]>>;
40
+ userInfo: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").UserInfo>>;
41
+ userEntitlements: (params?: Partial<import("./reader/utils/api").ApiParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").UserEntitlement[]>>;
41
42
  };
@@ -1,13 +1,14 @@
1
+ import { type ApiParams } from '../utils/api';
1
2
  export declare const accountsFetchers: (f: typeof fetch) => {
2
- userInfo: () => Promise<import("../utils/api").ApiResponse<UserInfo>>;
3
- userEntitlements: () => Promise<import("../utils/api").ApiResponse<UserEntitlement[]>>;
3
+ userInfo: (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserInfo>>;
4
+ userEntitlements: (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserEntitlement[]>>;
4
5
  };
5
- export declare function getUserInfo(f: typeof fetch): () => Promise<import("../utils/api").ApiResponse<UserInfo>>;
6
+ export declare function getUserInfo(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserInfo>>;
6
7
  export interface UserInfo {
7
8
  name: string;
8
9
  email: string;
9
10
  }
10
- export declare function getUserEntitlements(f: typeof fetch): () => Promise<import("../utils/api").ApiResponse<UserEntitlement[]>>;
11
+ export declare function getUserEntitlements(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserEntitlement[]>>;
11
12
  export interface UserEntitlement {
12
13
  id: string;
13
14
  feature_key: string;
@@ -10,8 +10,8 @@ export const accountsFetchers = (f) => {
10
10
  // Get user's informations associated to the bearer token.
11
11
  //
12
12
  export function getUserInfo(f) {
13
- return async () => {
14
- const opts = { parser: parseUserInfo };
13
+ return async (params) => {
14
+ const opts = { parser: parseUserInfo, queryParams: params };
15
15
  return request(f, '/account/me', opts);
16
16
  };
17
17
  }
@@ -25,8 +25,8 @@ function parseUserInfo(data, _assoc) {
25
25
  // Get user's entitlements associated to the bearer token (Platform).
26
26
  //
27
27
  export function getUserEntitlements(f) {
28
- return async () => {
29
- const opts = { parser: parseMany(parseUserEntitlement) };
28
+ return async (params) => {
29
+ const opts = { parser: parseMany(parseUserEntitlement), queryParams: params };
30
30
  return request(f, '/account/me/entitlements', opts);
31
31
  };
32
32
  }
@@ -1,8 +1,8 @@
1
1
  import { type LocalesMetadata } from '../utils/response';
2
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
2
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
3
3
  export declare const categoriesFetchers: (f: typeof fetch) => {
4
4
  listCategories: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<Category[]>>;
5
- getCategory: (id: string) => Promise<import("../utils/api").ApiResponse<Category>>;
5
+ getCategory: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Category>>;
6
6
  };
7
7
  export interface Category {
8
8
  id: string;
@@ -13,6 +13,6 @@ export interface Category {
13
13
  };
14
14
  updatedAt: Date;
15
15
  }
16
- export declare function getCategory(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Category>>;
16
+ export declare function getCategory(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Category>>;
17
17
  export declare function listCategories(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<Category[]>>;
18
18
  export declare function parseCategory(data: ApiData, _assoc: ApiAssocs): Category;
@@ -9,8 +9,8 @@ export const categoriesFetchers = (f) => {
9
9
  };
10
10
  };
11
11
  export function getCategory(f) {
12
- return async (id) => {
13
- const opts = { parser: parseCategory };
12
+ return async (id, params) => {
13
+ const opts = { parser: parseCategory, queryParams: params };
14
14
  return requestPublisher(f, `media/categories/${id}`, opts);
15
15
  };
16
16
  }
@@ -1,15 +1,15 @@
1
1
  import type { Category } from './categories';
2
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
2
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
3
3
  import type { LocalesMetadata } from '../utils/response';
4
4
  import type { ProfileType } from './profileType';
5
5
  import type { ProfileAddress, ProfileContact, ProfileDescription } from './profiles';
6
6
  export declare const eventFetchers: (f: typeof fetch) => {
7
7
  listEvents: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<EventSummary[]>>;
8
- getEvent: (id: string) => Promise<import("../utils/api").ApiResponse<Event>>;
8
+ getEvent: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Event>>;
9
9
  allEventBlocks: (id: string, params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<import("./profiles").ProfileBlockKind[]>>;
10
10
  };
11
11
  export declare function listEvents(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<EventSummary[]>>;
12
- export declare function getEvent(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Event>>;
12
+ export declare function getEvent(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Event>>;
13
13
  export declare function allEventBlocks(f: typeof fetch): (id: string, params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<import("./profiles").ProfileBlockKind[]>>;
14
14
  export interface EventSummary {
15
15
  id: string;
@@ -18,8 +18,8 @@ export function listEvents(f) {
18
18
  };
19
19
  }
20
20
  export function getEvent(f) {
21
- return async (id) => {
22
- const opts = { parser: parseEvent };
21
+ return async (id, params) => {
22
+ const opts = { parser: parseEvent, queryParams: params };
23
23
  return requestPublisher(f, `media/events/${id}`, opts);
24
24
  };
25
25
  }
@@ -1,8 +1,8 @@
1
- import type { ApiAssocs, ApiData } from '../utils/api';
1
+ import type { ApiAssocs, ApiData, ApiParams } from '../utils/api';
2
2
  export declare const integrationFetchers: (f: typeof fetch) => {
3
- getReference: (key: string) => Promise<import("../utils/api").ApiResponse<Reference>>;
3
+ getReference: (key: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Reference>>;
4
4
  };
5
- export declare function getReference(f: typeof fetch): (key: string) => Promise<import("../utils/api").ApiResponse<Reference>>;
5
+ export declare function getReference(f: typeof fetch): (key: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Reference>>;
6
6
  export interface Reference {
7
7
  id: string;
8
8
  provider: string;
@@ -5,8 +5,8 @@ export const integrationFetchers = (f) => {
5
5
  };
6
6
  };
7
7
  export function getReference(f) {
8
- return async (key) => {
9
- const opts = { parser: parseReference };
8
+ return async (key, params) => {
9
+ const opts = { parser: parseReference, queryParams: params };
10
10
  return requestOmerlo(f, `/core/v2/references/${key}`, opts);
11
11
  };
12
12
  }
@@ -1,17 +1,17 @@
1
1
  import { type LocalesMetadata } from '../utils/response';
2
2
  import { type Visual } from './visuals';
3
- import { type ApiAssocs, type ApiData } from '../utils/api';
3
+ import { type ApiAssocs, type ApiData, type ApiParams } from '../utils/api';
4
4
  import { type ContentSummary } from './contents';
5
5
  export declare const magazineFetchers: (f: typeof fetch) => {
6
- getIssue: (id: string) => Promise<import("../utils/api").ApiResponse<Issue>>;
7
- getBlocks: (sectionId: string) => Promise<import("../utils/api").ApiResponse<IssueBlock[]>>;
8
- searchContents: (issueId: string, q: string) => Promise<import("../utils/api").ApiResponse<SectionContent[]>>;
9
- getSectionContents: (sectionId: string) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
6
+ getIssue: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Issue>>;
7
+ getBlocks: (sectionId: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<IssueBlock[]>>;
8
+ searchContents: (issueId: string, q: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<SectionContent[]>>;
9
+ getSectionContents: (sectionId: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
10
10
  };
11
- export declare function issueFetcher(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Issue>>;
12
- export declare function issueBlocksFetcher(f: typeof fetch): (sectionId: string) => Promise<import("../utils/api").ApiResponse<IssueBlock[]>>;
13
- export declare function contentsSearch(f: typeof fetch): (issueId: string, q: string) => Promise<import("../utils/api").ApiResponse<SectionContent[]>>;
14
- export declare function sectionContentsFetcher(f: typeof fetch): (sectionId: string) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
11
+ export declare function issueFetcher(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Issue>>;
12
+ export declare function issueBlocksFetcher(f: typeof fetch): (sectionId: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<IssueBlock[]>>;
13
+ export declare function contentsSearch(f: typeof fetch): (issueId: string, q: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<SectionContent[]>>;
14
+ export declare function sectionContentsFetcher(f: typeof fetch): (sectionId: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
15
15
  /******************************************************************************
16
16
  * Parsers
17
17
  ******************************************************************************/
@@ -14,26 +14,26 @@ export const magazineFetchers = (f) => {
14
14
  };
15
15
  };
16
16
  export function issueFetcher(f) {
17
- return async (id) => {
18
- const opts = { parser: parseIssue };
17
+ return async (id, params) => {
18
+ const opts = { parser: parseIssue, queryParams: params };
19
19
  return request(f, `/issues/${id}`, opts);
20
20
  };
21
21
  }
22
22
  export function issueBlocksFetcher(f) {
23
- return async (sectionId) => {
24
- const opts = { parser: parseMany(parseIssueBlock) };
23
+ return async (sectionId, params) => {
24
+ const opts = { parser: parseMany(parseIssueBlock), queryParams: params };
25
25
  return request(f, `/issues/sections/${sectionId}/blocks`, opts);
26
26
  };
27
27
  }
28
28
  export function contentsSearch(f) {
29
- return async (issueId, q) => {
30
- const opts = { parser: parseMany(parseIssueSectionContent), queryParams: { q } };
29
+ return async (issueId, q, params) => {
30
+ const opts = { parser: parseMany(parseIssueSectionContent), queryParams: { ...params, q } };
31
31
  return request(f, `/issues/${issueId}/contents/search`, opts);
32
32
  };
33
33
  }
34
34
  export function sectionContentsFetcher(f) {
35
- return async (sectionId) => {
36
- const opts = { parser: parseMany(parseContentSummary) };
35
+ return async (sectionId, params) => {
36
+ const opts = { parser: parseMany(parseContentSummary), queryParams: params };
37
37
  return request(f, `/issues/sections/${sectionId}/contents`, opts);
38
38
  };
39
39
  }
@@ -1,19 +1,19 @@
1
1
  import { type ApiAssocs, type PagingParams } from '../utils/api';
2
- import type { ApiData } from '../utils/api';
2
+ import type { ApiData, ApiParams } from '../utils/api';
3
3
  import type { LocalesMetadata } from '../utils/response';
4
4
  import { type Visual } from './visuals';
5
5
  import { type ContentSummary } from './contents';
6
6
  import { type Distribution, type Release } from './distributions';
7
7
  export declare const mediaFetchers: (f: typeof fetch) => {
8
- getMedia: () => Promise<import("../utils/api").ApiResponse<Media>>;
9
- getMediaSection: (id: string) => Promise<import("../utils/api").ApiResponse<MediaSection>>;
10
- getMediaBlock: (id: string) => Promise<import("../utils/api").ApiResponse<MediaBlock>>;
8
+ getMedia: (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Media>>;
9
+ getMediaSection: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<MediaSection>>;
10
+ getMediaBlock: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<MediaBlock>>;
11
11
  listMediaSectionContents: (sectionId: string, params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
12
12
  };
13
- export declare function getMedia(f: typeof fetch): () => Promise<import("../utils/api").ApiResponse<Media>>;
14
- export declare function getMediaSection(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<MediaSection>>;
13
+ export declare function getMedia(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Media>>;
14
+ export declare function getMediaSection(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<MediaSection>>;
15
15
  export declare function listMediaSectionContents(f: typeof fetch): (sectionId: string, params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ContentSummary[]>>;
16
- export declare function getMediaBlock(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<MediaBlock>>;
16
+ export declare function getMediaBlock(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<MediaBlock>>;
17
17
  export interface Media {
18
18
  id: string;
19
19
  displayName: string | null;
@@ -14,15 +14,15 @@ export const mediaFetchers = (f) => {
14
14
  };
15
15
  };
16
16
  export function getMedia(f) {
17
- return async () => {
18
- const opts = { parser: parseMedia };
17
+ return async (params) => {
18
+ const opts = { parser: parseMedia, queryParams: params };
19
19
  // NOTE the `/` is REALLY important
20
20
  return requestPublisher(f, 'media/', opts);
21
21
  };
22
22
  }
23
23
  export function getMediaSection(f) {
24
- return async (id) => {
25
- const opts = { parser: parseSection };
24
+ return async (id, params) => {
25
+ const opts = { parser: parseSection, queryParams: params };
26
26
  return requestPublisher(f, `/sections/${id}`, opts);
27
27
  };
28
28
  }
@@ -33,8 +33,8 @@ export function listMediaSectionContents(f) {
33
33
  };
34
34
  }
35
35
  export function getMediaBlock(f) {
36
- return async (id) => {
37
- const opts = { parser: parseBlock };
36
+ return async (id, params) => {
37
+ const opts = { parser: parseBlock, queryParams: params };
38
38
  return requestPublisher(f, `/blocks/${id}`, opts);
39
39
  };
40
40
  }
@@ -1,4 +1,4 @@
1
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
1
+ import { type ApiAssocs, type ApiData, type ApiParams } from '../utils/api';
2
2
  import type { LocalesMetadata } from '../utils/response';
3
3
  export interface MenuSummary {
4
4
  id: string;
@@ -8,11 +8,9 @@ export interface MenuSummary {
8
8
  updatedAt: Date;
9
9
  }
10
10
  export declare const menuFetchers: (f: typeof fetch) => {
11
- getMenu: (key: string) => Promise<import("../utils/api").ApiResponse<Menu>>;
12
- listMenus: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<MenuSummary[]>>;
11
+ getMenu: (key: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Menu>>;
13
12
  };
14
- export declare function listMenus(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<MenuSummary[]>>;
15
- export declare function getMenu(f: typeof fetch): (key: string) => Promise<import("../utils/api").ApiResponse<Menu>>;
13
+ export declare function getMenu(f: typeof fetch): (key: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Menu>>;
16
14
  export interface Menu extends MenuSummary {
17
15
  meta: {
18
16
  locales: LocalesMetadata;
@@ -1,21 +1,14 @@
1
- import { parseMany } from '../utils/api';
1
+ import {} from '../utils/api';
2
2
  import { buildMeta } from '../utils/parseHelpers';
3
3
  import { requestPublisher } from '../utils/request';
4
4
  export const menuFetchers = (f) => {
5
5
  return {
6
- getMenu: getMenu(f),
7
- listMenus: listMenus(f)
6
+ getMenu: getMenu(f)
8
7
  };
9
8
  };
10
- export function listMenus(f) {
11
- return async (params) => {
12
- const opts = { parser: parseMany(parseMenuSummary), queryParams: params };
13
- return requestPublisher(f, `media/menus`, opts);
14
- };
15
- }
16
9
  export function getMenu(f) {
17
- return async (key) => {
18
- const opts = { parser: parseMenu };
10
+ return async (key, params) => {
11
+ const opts = { parser: parseMenu, queryParams: params };
19
12
  return requestPublisher(f, `media/menus/${key}`, opts);
20
13
  };
21
14
  }
@@ -1,7 +1,7 @@
1
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
1
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
2
2
  export declare const oauthFetchers: (f: typeof fetch) => {
3
3
  listOauthProviders: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<OauthProviderSummary[]>>;
4
- getOauthUser: () => Promise<import("../utils/api").ApiResponse<OauthUser>>;
4
+ getOauthUser: (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<OauthUser>>;
5
5
  };
6
6
  export declare function listOauthProviders(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<OauthProviderSummary[]>>;
7
7
  export declare function parseOauthProviderSummary(data: ApiData, _assocs: ApiAssocs): OauthProviderSummary;
@@ -13,7 +13,7 @@ export interface OauthProviderSummary {
13
13
  insertedAt: Date;
14
14
  updatedAt: Date;
15
15
  }
16
- export declare function getOauthUser(f: typeof fetch): () => Promise<import("../utils/api").ApiResponse<OauthUser>>;
16
+ export declare function getOauthUser(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<OauthUser>>;
17
17
  export declare function parseOauthUser(data: ApiData, _assoc: ApiAssocs): OauthUser;
18
18
  export interface OauthUser {
19
19
  id: string;
@@ -23,8 +23,8 @@ export function parseOauthProviderSummary(data, _assocs) {
23
23
  };
24
24
  }
25
25
  export function getOauthUser(f) {
26
- return () => {
27
- const opts = { parser: parseOauthUser };
26
+ return (params) => {
27
+ const opts = { parser: parseOauthUser, queryParams: params };
28
28
  return request(f, '/oauth/user', opts);
29
29
  };
30
30
  }
@@ -1,4 +1,4 @@
1
- import type { ApiAssocs, PagingParams } from '../utils/api';
1
+ import type { ApiAssocs, ApiParams, PagingParams } from '../utils/api';
2
2
  import { type ApiData } from '../utils/api';
3
3
  import { type LocalesMetadata } from '../utils/response';
4
4
  import type { Category } from './categories';
@@ -8,10 +8,10 @@ import { type ProfileDescription } from './profiles';
8
8
  import type { ProfileType } from './profileType';
9
9
  export declare const organizationFetchers: (f: typeof fetch) => {
10
10
  listOrganizations: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<OrganizationSummary[]>>;
11
- getOrganization: (id: string) => Promise<import("../utils/api").ApiResponse<Organization>>;
11
+ getOrganization: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Organization>>;
12
12
  };
13
13
  export declare function listOrganizations(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<OrganizationSummary[]>>;
14
- export declare function getOrganization(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Organization>>;
14
+ export declare function getOrganization(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Organization>>;
15
15
  export interface OrganizationSummary {
16
16
  id: string;
17
17
  profileType: ProfileType;
@@ -21,8 +21,8 @@ export function listOrganizations(f) {
21
21
  };
22
22
  }
23
23
  export function getOrganization(f) {
24
- return async (id) => {
25
- const opts = { parser: parseOrganization };
24
+ return async (id, params) => {
25
+ const opts = { parser: parseOrganization, queryParams: params };
26
26
  return requestPublisher(f, `media/organizations/${id}`, opts);
27
27
  };
28
28
  }
@@ -1,5 +1,5 @@
1
1
  import type { Category } from './categories';
2
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
2
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
3
3
  import { type LocalesMetadata } from '../utils/response';
4
4
  import { type ProfileAddress } from './profiles';
5
5
  import { type ProfileContact } from './profiles';
@@ -7,10 +7,10 @@ import { type ProfileDescription } from './profiles';
7
7
  import type { ProfileType } from './profileType';
8
8
  export declare const personFetchers: (f: typeof fetch) => {
9
9
  listPeople: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<PersonSummary[]>>;
10
- getPerson: (id: string) => Promise<import("../utils/api").ApiResponse<Person>>;
10
+ getPerson: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Person>>;
11
11
  };
12
12
  export declare function listPeople(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<PersonSummary[]>>;
13
- export declare function getPerson(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Person>>;
13
+ export declare function getPerson(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Person>>;
14
14
  export interface PersonSummary {
15
15
  id: string;
16
16
  profileType: ProfileType;
@@ -21,8 +21,8 @@ export function listPeople(f) {
21
21
  };
22
22
  }
23
23
  export function getPerson(f) {
24
- return async (id) => {
25
- const opts = { parser: parsePerson };
24
+ return async (id, params) => {
25
+ const opts = { parser: parsePerson, queryParams: params };
26
26
  return requestPublisher(f, `media/people/${id}`, opts);
27
27
  };
28
28
  }
@@ -1,11 +1,11 @@
1
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
1
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
2
2
  import { type LocalesMetadata } from '../utils/response';
3
3
  export declare const profileTypeFetchers: (f: typeof fetch) => {
4
4
  listProfileTypes: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ProfileTypeSummary[]>>;
5
- getProfileType: (id: string) => Promise<import("../utils/api").ApiResponse<ProfileType>>;
5
+ getProfileType: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<ProfileType>>;
6
6
  };
7
7
  export declare function listProfileTypes(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ProfileTypeSummary[]>>;
8
- export declare function getProfileType(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<ProfileType>>;
8
+ export declare function getProfileType(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<ProfileType>>;
9
9
  export interface ProfileTypeSummary {
10
10
  id: string;
11
11
  kind: 'person' | 'project' | 'organization' | 'event';
@@ -15,8 +15,8 @@ export function listProfileTypes(f) {
15
15
  };
16
16
  }
17
17
  export function getProfileType(f) {
18
- return async (id) => {
19
- const opts = { parser: parseProfileType };
18
+ return async (id, params) => {
19
+ const opts = { parser: parseProfileType, queryParams: params };
20
20
  return requestPublisher(f, `media/profile-types/${id}`, opts);
21
21
  };
22
22
  }
@@ -1,14 +1,14 @@
1
1
  import type { LocalesMetadata } from '../utils/response';
2
2
  import type { Category } from './categories';
3
3
  import { type ProfileAddress, type ProfileContact, type ProfileDescription } from './profiles';
4
- import { type ApiData, type ApiAssocs, type PagingParams } from '../utils/api';
4
+ import { type ApiData, type ApiAssocs, type PagingParams, type ApiParams } from '../utils/api';
5
5
  import type { ProfileType } from './profileType';
6
6
  export declare const projectFetchers: (f: typeof fetch) => {
7
7
  listProjects: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ProjectSummary[]>>;
8
- getProject: (id: string) => Promise<import("../utils/api").ApiResponse<Project>>;
8
+ getProject: (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Project>>;
9
9
  };
10
10
  export declare function listProjects(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<ProjectSummary[]>>;
11
- export declare function getProject(f: typeof fetch): (id: string) => Promise<import("../utils/api").ApiResponse<Project>>;
11
+ export declare function getProject(f: typeof fetch): (id: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<Project>>;
12
12
  export interface ProjectSummary {
13
13
  id: string;
14
14
  profileType: ProfileType;
@@ -18,8 +18,8 @@ export function listProjects(f) {
18
18
  };
19
19
  }
20
20
  export function getProject(f) {
21
- return async (id) => {
22
- const opts = { parser: parseProject };
21
+ return async (id, params) => {
22
+ const opts = { parser: parseProject, queryParams: params };
23
23
  return requestPublisher(f, `media/projects/${id}`, opts);
24
24
  };
25
25
  }
@@ -1,11 +1,11 @@
1
- import { type ApiAssocs, type ApiData, type PagingParams } from '../utils/api';
1
+ import { type ApiAssocs, type ApiData, type ApiParams, type PagingParams } from '../utils/api';
2
2
  import type { LocalesMetadata } from '../utils/response';
3
3
  export declare const webpageFetchers: (f: typeof fetch) => {
4
4
  listWebpages: (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<WebpageSummary[]>>;
5
- getWebpage: (slug: string) => Promise<import("../utils/api").ApiResponse<OrgWebpage>>;
5
+ getWebpage: (slug: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<OrgWebpage>>;
6
6
  };
7
7
  export declare function listWebpages(f: typeof fetch): (params?: Partial<PagingParams>) => Promise<import("../utils/api").ApiResponse<WebpageSummary[]>>;
8
- export declare function getWebpage(f: typeof fetch): (slug: string) => Promise<import("../utils/api").ApiResponse<OrgWebpage>>;
8
+ export declare function getWebpage(f: typeof fetch): (slug: string, params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<OrgWebpage>>;
9
9
  export interface WebpageSummary {
10
10
  id: string;
11
11
  name: string;
@@ -14,8 +14,8 @@ export function listWebpages(f) {
14
14
  };
15
15
  }
16
16
  export function getWebpage(f) {
17
- return async (slug) => {
18
- const opts = { parser: parseWebpage };
17
+ return async (slug, params) => {
18
+ const opts = { parser: parseWebpage, queryParams: params };
19
19
  return requestPublisher(f, `organization/pages/${slug}`, opts);
20
20
  };
21
21
  }
@@ -6,36 +6,37 @@ export declare const fetchers: (f: typeof fetch) => {
6
6
  };
7
7
  magazines: {
8
8
  listReleases: (distributionId: string, params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/distributions").Release[]>>;
9
- getIssue: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").Issue>>;
10
- getBlocks: (sectionId: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").IssueBlock[]>>;
11
- searchContents: (issueId: string, q: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").SectionContent[]>>;
12
- getSectionContents: (sectionId: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
9
+ getIssue: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").Issue>>;
10
+ getBlocks: (sectionId: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").IssueBlock[]>>;
11
+ searchContents: (issueId: string, q: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/magazines").SectionContent[]>>;
12
+ getSectionContents: (sectionId: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
13
13
  };
14
- getReference: (key: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/integration").Reference>>;
14
+ getReference: (key: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/integration").Reference>>;
15
15
  listProjects: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/projects").ProjectSummary[]>>;
16
- getProject: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/projects").Project>>;
16
+ getProject: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/projects").Project>>;
17
17
  listPeople: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/person").PersonSummary[]>>;
18
- getPerson: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/person").Person>>;
18
+ getPerson: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/person").Person>>;
19
19
  listEvents: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/events").EventSummary[]>>;
20
- getEvent: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/events").Event>>;
20
+ getEvent: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/events").Event>>;
21
21
  allEventBlocks: (id: string, params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import(".").ProfileBlockKind[]>>;
22
22
  listOrganizations: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/organizations").OrganizationSummary[]>>;
23
- getOrganization: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/organizations").Organization>>;
23
+ getOrganization: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/organizations").Organization>>;
24
+ listProfileTypes: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/profileType").ProfileTypeSummary[]>>;
25
+ getProfileType: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/profileType").ProfileType>>;
24
26
  listWebpages: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/webpage").WebpageSummary[]>>;
25
- getWebpage: (slug: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/webpage").OrgWebpage>>;
26
- getMenu: (key: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/menu").Menu>>;
27
- listMenus: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/menu").MenuSummary[]>>;
28
- getMedia: () => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").Media>>;
29
- getMediaSection: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").MediaSection>>;
30
- getMediaBlock: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").MediaBlock>>;
27
+ getWebpage: (slug: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/webpage").OrgWebpage>>;
28
+ getMenu: (key: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/menu").Menu>>;
29
+ getMedia: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").Media>>;
30
+ getMediaSection: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").MediaSection>>;
31
+ getMediaBlock: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/media").MediaBlock>>;
31
32
  listMediaSectionContents: (sectionId: string, params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
32
33
  getContent: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/contents").Content>>;
33
34
  listContents: (params?: Partial<import("./endpoints/contents").ListContentParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/contents").ContentSummary[]>>;
34
35
  listCategories: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/categories").Category[]>>;
35
- getCategory: (id: string) => Promise<import("./utils/api").ApiResponse<import("./endpoints/categories").Category>>;
36
+ getCategory: (id: string, params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/categories").Category>>;
36
37
  listOauthProviders: (params?: Partial<import("./utils/api").PagingParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/oauth").OauthProviderSummary[]>>;
37
- getOauthUser: () => Promise<import("./utils/api").ApiResponse<import("./endpoints/oauth").OauthUser>>;
38
+ getOauthUser: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/oauth").OauthUser>>;
38
39
  registerDevice: (params: import("./endpoints/device").DeviceParams) => Promise<import("./utils/api").ApiResponse<unknown>>;
39
- userInfo: () => Promise<import("./utils/api").ApiResponse<import("./endpoints/accounts").UserInfo>>;
40
- userEntitlements: () => Promise<import("./utils/api").ApiResponse<import("./endpoints/accounts").UserEntitlement[]>>;
40
+ userInfo: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/accounts").UserInfo>>;
41
+ userEntitlements: (params?: Partial<import("./utils/api").ApiParams>) => Promise<import("./utils/api").ApiResponse<import("./endpoints/accounts").UserEntitlement[]>>;
41
42
  };
@@ -14,6 +14,7 @@ import { eventFetchers } from './endpoints/events';
14
14
  import { personFetchers } from './endpoints/person';
15
15
  import { projectFetchers } from './endpoints/projects';
16
16
  import { webpageFetchers } from './endpoints/webpage';
17
+ import { profileTypeFetchers } from './endpoints/profileType';
17
18
  export const fetchers = (f) => {
18
19
  return {
19
20
  ...accountsFetchers(f),
@@ -24,6 +25,7 @@ export const fetchers = (f) => {
24
25
  ...mediaFetchers(f),
25
26
  ...menuFetchers(f),
26
27
  ...webpageFetchers(f),
28
+ ...profileTypeFetchers(f),
27
29
  ...organizationFetchers(f),
28
30
  ...eventFetchers(f),
29
31
  ...personFetchers(f),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",