@pushwoosh/rpc-v2-http-api-data 0.2.143 → 0.2.144

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/data.js CHANGED
@@ -3554,6 +3554,37 @@ export const data = {
3554
3554
  }
3555
3555
  }
3556
3556
  },
3557
+ "pushwoosh.aibuilder.v1.NewsSource": {
3558
+ "type": "E",
3559
+ "values": [
3560
+ "NEWS_SOURCE_UNSPECIFIED",
3561
+ "NEWS_SOURCE_MANUAL",
3562
+ "NEWS_SOURCE_FEED"
3563
+ ]
3564
+ },
3565
+ "pushwoosh.aibuilder.v1.NewsFeedSource": {
3566
+ "type": "I",
3567
+ "fields": {
3568
+ "application": {
3569
+ "type": "string"
3570
+ },
3571
+ "feedOrigin": {
3572
+ "type": "string"
3573
+ },
3574
+ "feedCode": {
3575
+ "type": "string"
3576
+ },
3577
+ "category": {
3578
+ "type": "string"
3579
+ },
3580
+ "limit": {
3581
+ "type": "number"
3582
+ },
3583
+ "strategy": {
3584
+ "type": "string"
3585
+ }
3586
+ }
3587
+ },
3557
3588
  "pushwoosh.aibuilder.v1.NewsData": {
3558
3589
  "type": "I",
3559
3590
  "fields": {
@@ -3583,6 +3614,16 @@ export const data = {
3583
3614
  "gap": {
3584
3615
  "type": "number",
3585
3616
  "optional": true
3617
+ },
3618
+ "source": {
3619
+ "type": "pushwoosh.aibuilder.v1.NewsSource"
3620
+ },
3621
+ "feed": {
3622
+ "type": "pushwoosh.aibuilder.v1.NewsFeedSource",
3623
+ "optional": true
3624
+ },
3625
+ "pinned": {
3626
+ "type": "number"
3586
3627
  }
3587
3628
  }
3588
3629
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.143",
3
+ "version": "0.2.144",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1181,9 +1181,32 @@ export type NewsItem = {
1181
1181
  category: string;
1182
1182
  url: string;
1183
1183
  };
1184
+ export type NewsSource =
1185
+ /** Renders as MANUAL. */
1186
+ 'NEWS_SOURCE_UNSPECIFIED' | 'NEWS_SOURCE_MANUAL' | 'NEWS_SOURCE_FEED';
1187
+ /**
1188
+ * Registered news feed the block reads per send. Same degradation contract as
1189
+ * ProductsRule: anything unusable here falls back to the baked articles.
1190
+ */
1191
+ export type NewsFeedSource = {
1192
+ application: string;
1193
+ /** Environment-resolved feed host. "" = unset → degrades to MANUAL. */
1194
+ feedOrigin: string;
1195
+ /** Code of the feed in the news_feeds registry. "" = every feed of the app. */
1196
+ feedCode: string;
1197
+ /** "" = unset (the query parameter is omitted). */
1198
+ category: string;
1199
+ /** Grid cells emitted, and the feed limit. <= 0 → degrades to MANUAL. */
1200
+ limit: number;
1201
+ /**
1202
+ * How the feed RANKS the articles, in the feed's own vocabulary (hence not an
1203
+ * enum); "" and an unknown value leave the feed on its recency default.
1204
+ */
1205
+ strategy: string;
1206
+ };
1184
1207
  /**
1185
- * News repeater: one card template per article, baked at edit time from the
1186
- * block's RSS/Atom feed.
1208
+ * News repeater: one card template per article baked at edit time, or fetched
1209
+ * per send when source is FEED.
1187
1210
  */
1188
1211
  export type NewsData = {
1189
1212
  /** Feed the articles were taken from, kept for the panel's Refresh. */
@@ -1204,6 +1227,13 @@ export type NewsData = {
1204
1227
  columns?: number;
1205
1228
  /** Gap between cells in px. Unset = renderer default. */
1206
1229
  gap?: number;
1230
+ source: NewsSource;
1231
+ feed?: NewsFeedSource;
1232
+ /**
1233
+ * Leading cells taken from items[] instead of the feed — the editorial pin.
1234
+ * Clamped to leave at least one feed cell; ignored by a MANUAL block.
1235
+ */
1236
+ pinned: number;
1207
1237
  };
1208
1238
  export type AiBuilderBlock_block_card = {
1209
1239
  type: 'card';