@chat-ads/chatads-sdk 0.2.1 → 0.2.2
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/dist/models.d.ts +4 -0
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface Offer {
|
|
|
65
65
|
is_branded?: boolean;
|
|
66
66
|
/** Resolved products carousel. products[0] is the ranking-best pick; additional entries are runner-ups deduped across offers. Up to max_products_per_offer entries (default 1). */
|
|
67
67
|
products?: Product[];
|
|
68
|
+
/** Zero-based character offset into the original `message` pointing at the preferred occurrence of `link_text` (non-preamble when multiple occurrences exist). Omitted when the sidecar didn't provide an offset (e.g. extraction_mode=none with a caller-supplied keyword), or when sanitize-step transformations prevent reliable re-mapping. When omitted, fall back to a first-match string replace of `link_text` in `message`. */
|
|
69
|
+
match_start?: number;
|
|
70
|
+
/** Exclusive character offset paired with `match_start`. Use `message.slice(match_start, match_end)` to wrap the exact span the API recommends. Omitted under the same conditions as `match_start`. */
|
|
71
|
+
match_end?: number;
|
|
68
72
|
}
|
|
69
73
|
/**
|
|
70
74
|
* Response data containing affiliate offers.
|