@omerlo/omerlo-webkit 0.0.21 → 0.0.23

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.
@@ -5,7 +5,7 @@ export declare const useReader: (f: typeof fetch) => {
5
5
  unsubscribeFromTopic: (params: import("./reader").SubscriptionParams) => Promise<import("./reader/utils/api").ApiResponse<unknown>>;
6
6
  };
7
7
  magazines: {
8
- listReleases: (distributionId: string, params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader/endpoints/distributions").Release[]>>;
8
+ listReleases: (distributionId: string, params?: Partial<import("./reader/utils/api").PagingParams>) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Release[]>>;
9
9
  getIssue: (id: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").Issue>>;
10
10
  getBlocks: (sectionId: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").IssueBlock[]>>;
11
11
  searchContents: (issueId: string, q: string) => Promise<import("./reader/utils/api").ApiResponse<import("./reader").SectionContent[]>>;
@@ -41,6 +41,9 @@ export interface IssueSummary {
41
41
  meta: {
42
42
  locales: LocalesMetadata;
43
43
  };
44
+ metadata: {
45
+ [key: string]: string;
46
+ };
44
47
  updatedAt: Date;
45
48
  }
46
49
  export interface Issue extends IssueSummary {
@@ -52,6 +52,7 @@ export function parseIssueSummary(data, assocs) {
52
52
  meta: {
53
53
  locales: parseLocalesMetadata(data.meta)
54
54
  },
55
+ metadata: data.metadata,
55
56
  updatedAt: new Date(data.updated_at)
56
57
  };
57
58
  }
@@ -3,6 +3,7 @@ export type * from './endpoints/accounts';
3
3
  export type * from './endpoints/categories';
4
4
  export type * from './endpoints/content-templates';
5
5
  export type * from './endpoints/contents';
6
+ export type * from './endpoints/distributions';
6
7
  export type * from './endpoints/device';
7
8
  export type * from './endpoints/events';
8
9
  export type * from './endpoints/magazines';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",