@pushwoosh/rpc-v2-http-api-data 0.2.172 → 0.2.174

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
@@ -28015,6 +28015,9 @@ export const data = {
28015
28015
  },
28016
28016
  "anchorTag": {
28017
28017
  "type": "string"
28018
+ },
28019
+ "newsFeedCode": {
28020
+ "type": "string"
28018
28021
  }
28019
28022
  }
28020
28023
  },
@@ -28035,6 +28038,12 @@ export const data = {
28035
28038
  },
28036
28039
  "url": {
28037
28040
  "type": "string"
28041
+ },
28042
+ "summary": {
28043
+ "type": "string"
28044
+ },
28045
+ "author": {
28046
+ "type": "string"
28038
28047
  }
28039
28048
  }
28040
28049
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.172",
3
+ "version": "0.2.174",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/sms_presets.d.ts CHANGED
@@ -55,10 +55,12 @@ export type SmsProductsSource_Rule = {
55
55
  strategy: string;
56
56
  /** Device tag holding the anchor product id of "also_bought"; empty = unset. */
57
57
  anchorTag: string;
58
+ /** Registry code of the news feed a "news" body reads; empty = every feed of the application. */
59
+ newsFeedCode: string;
58
60
  };
59
61
  /**
60
- * One hand-picked product row, frozen as the editor saw it. The fields are exactly
61
- * the tokens an item template can spend; catalog_id backs the panel's Refresh.
62
+ * One hand-picked row — a catalog product or a news article — frozen as the editor saw it.
63
+ * The fields are exactly the tokens an item template can spend; catalog_id backs Refresh.
62
64
  */
63
65
  export type SmsProductsSource_Picked = {
64
66
  catalogId: string;
@@ -66,6 +68,9 @@ export type SmsProductsSource_Picked = {
66
68
  price: string;
67
69
  category: string;
68
70
  url: string;
71
+ /** Only a hand-picked news article carries these; a product row leaves them empty. */
72
+ summary: string;
73
+ author: string;
69
74
  };
70
75
  /**
71
76
  * Catalog-driven body: the rule that picks products and the per-locale parts wrapped
@@ -91,8 +96,8 @@ export type SmsProductsSource = {
91
96
  /** Opens the message, sent once, before the product list. */
92
97
  intro: Record<string, string>;
93
98
  /**
94
- * Where the rows come from: "manual" reads `picked`, anything else (including "")
95
- * reads `rule`, which is what presets written before hand-picking existed carry.
99
+ * Where the rows come from: "manual" reads `picked`, "news" reads `rule` against the news
100
+ * feed, anything else (including "") reads `rule` what presets written before it carry.
96
101
  */
97
102
  mode: string;
98
103
  /** The hand-picked rows. A send fetches nothing for them, so the segment count is exact. */