@pushwoosh/rpc-v2-http-api-data 0.2.139 → 0.2.140

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 (3) hide show
  1. package/data.js +13 -0
  2. package/news.d.ts +9 -1
  3. package/package.json +1 -1
package/data.js CHANGED
@@ -18441,6 +18441,19 @@ export const data = {
18441
18441
  },
18442
18442
  "updated": {
18443
18443
  "type": "Date"
18444
+ },
18445
+ "lastStatus": {
18446
+ "type": "string"
18447
+ },
18448
+ "lastError": {
18449
+ "type": "string"
18450
+ },
18451
+ "lastSyncedAt": {
18452
+ "type": "Date",
18453
+ "optional": true
18454
+ },
18455
+ "lastSyncedArticles": {
18456
+ "type": "number"
18444
18457
  }
18445
18458
  }
18446
18459
  },
package/news.d.ts CHANGED
@@ -7,7 +7,7 @@ export type NewsService_DeleteNewsFeed = RpcMethod<DeleteNewsFeedRequest, Delete
7
7
  * blocks read from. Feeds are imported hourly by the recommender.
8
8
  */
9
9
  export interface NewsService {
10
- /** Lists the news feeds registered for an application (code XXXXX-XXXXX). Use to fill the feed selector of an email news block. */
10
+ /** Lists the news feeds registered for an application (code XXXXX-XXXXX), each with the outcome of its last hourly import. Use to fill the feed selector of an email news block and to show why a feed went quiet. */
11
11
  ListNewsFeeds: NewsService_ListNewsFeeds;
12
12
  /** Registers an RSS/Atom news feed for an application (code XXXXX-XXXXX), or updates one when code is given. Articles are imported hourly; an application may have several feeds. */
13
13
  SetNewsFeed: NewsService_SetNewsFeed;
@@ -25,6 +25,14 @@ export type NewsFeed = {
25
25
  enabled: boolean;
26
26
  created: Date;
27
27
  updated: Date;
28
+ /** Outcome of the last hourly import: "ok" | "error", empty before the first run. */
29
+ lastStatus: string;
30
+ /** Why that import failed; empty when it succeeded. */
31
+ lastError: string;
32
+ /** When it finished, successful or not. Absent before the first run. */
33
+ lastSyncedAt?: Date;
34
+ /** Articles the last successful import stored. */
35
+ lastSyncedArticles: number;
28
36
  };
29
37
  export type ListNewsFeedsRequest = {
30
38
  /** Pushwoosh application code (XXXXX-XXXXX). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.139",
3
+ "version": "0.2.140",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",