@pushwoosh/rpc-v2-http-api-data 0.2.133 → 0.2.135
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 +27 -0
- package/package.json +1 -1
- package/sms_presets.d.ts +18 -0
package/data.js
CHANGED
|
@@ -27029,6 +27029,26 @@ export const data = {
|
|
|
27029
27029
|
}
|
|
27030
27030
|
}
|
|
27031
27031
|
},
|
|
27032
|
+
"pushwoosh.rpc_v2.sms_presets.SmsProductsSource.Picked": {
|
|
27033
|
+
"type": "I",
|
|
27034
|
+
"fields": {
|
|
27035
|
+
"catalogId": {
|
|
27036
|
+
"type": "string"
|
|
27037
|
+
},
|
|
27038
|
+
"title": {
|
|
27039
|
+
"type": "string"
|
|
27040
|
+
},
|
|
27041
|
+
"price": {
|
|
27042
|
+
"type": "string"
|
|
27043
|
+
},
|
|
27044
|
+
"category": {
|
|
27045
|
+
"type": "string"
|
|
27046
|
+
},
|
|
27047
|
+
"url": {
|
|
27048
|
+
"type": "string"
|
|
27049
|
+
}
|
|
27050
|
+
}
|
|
27051
|
+
},
|
|
27032
27052
|
"pushwoosh.rpc_v2.sms_presets.SmsProductsSource": {
|
|
27033
27053
|
"type": "I",
|
|
27034
27054
|
"fields": {
|
|
@@ -27059,6 +27079,13 @@ export const data = {
|
|
|
27059
27079
|
"intro": {
|
|
27060
27080
|
"type": "string",
|
|
27061
27081
|
"mapKeyType": "string"
|
|
27082
|
+
},
|
|
27083
|
+
"mode": {
|
|
27084
|
+
"type": "string"
|
|
27085
|
+
},
|
|
27086
|
+
"picked": {
|
|
27087
|
+
"type": "pushwoosh.rpc_v2.sms_presets.SmsProductsSource.Picked",
|
|
27088
|
+
"array": true
|
|
27062
27089
|
}
|
|
27063
27090
|
}
|
|
27064
27091
|
},
|
package/package.json
CHANGED
package/sms_presets.d.ts
CHANGED
|
@@ -49,6 +49,17 @@ export type SmsProductsSource_Rule = {
|
|
|
49
49
|
/** How many products the message carries, and the feed limit. */
|
|
50
50
|
items: number;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* One hand-picked product row, frozen as the editor saw it. The fields are exactly
|
|
54
|
+
* the tokens an item template can spend; catalog_id backs the panel's Refresh.
|
|
55
|
+
*/
|
|
56
|
+
export type SmsProductsSource_Picked = {
|
|
57
|
+
catalogId: string;
|
|
58
|
+
title: string;
|
|
59
|
+
price: string;
|
|
60
|
+
category: string;
|
|
61
|
+
url: string;
|
|
62
|
+
};
|
|
52
63
|
/**
|
|
53
64
|
* Catalog-driven body: the rule that picks products and the per-locale parts wrapped
|
|
54
65
|
* around them. Absent means the body was written by hand.
|
|
@@ -72,6 +83,13 @@ export type SmsProductsSource = {
|
|
|
72
83
|
fallbackMode: string;
|
|
73
84
|
/** Opens the message, sent once, before the product list. */
|
|
74
85
|
intro: Record<string, string>;
|
|
86
|
+
/**
|
|
87
|
+
* Where the rows come from: "manual" reads `picked`, anything else (including "")
|
|
88
|
+
* reads `rule`, which is what presets written before hand-picking existed carry.
|
|
89
|
+
*/
|
|
90
|
+
mode: string;
|
|
91
|
+
/** The hand-picked rows. A send fetches nothing for them, so the segment count is exact. */
|
|
92
|
+
picked: SmsProductsSource_Picked[];
|
|
75
93
|
};
|
|
76
94
|
export type SmsPreset = {
|
|
77
95
|
name: string;
|