@autobusal/providers 1.3.3 → 1.3.5

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/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ All notable changes to `@autobusal/providers` are documented here. This project
4
4
  adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.3.5] - 2026-07-25
8
+
9
+ ### Changed
10
+
11
+ - `LabelSettings.telegram` upgraded from `{enabled: boolean}` to the same
12
+ `{status: 'disabled'|'dedicated'|'main', price, ...}` shape as the new
13
+ `LabelSettings.whatsapp` - both are now paid checkout addons that can
14
+ route through the main label's connection instead of requiring their
15
+ own.
16
+
17
+ ## [1.3.4] - 2026-07-25
18
+
19
+ ### Added
20
+
21
+ - `LabelSettings.telegram`: admin-managed bot config (enabled/bot_token/
22
+ bot_username) for the Telegram route-notifications feature.
23
+
7
24
  ## [1.3.3] - 2026-07-25
8
25
 
9
26
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -145,6 +145,33 @@ export interface LabelSettings {
145
145
  secret_key?: string
146
146
  }
147
147
  }
148
+
149
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
150
+ // Admin-managed Telegram bot configuration - bot_username is captured
151
+ // automatically from a live getMe() check on save, not entered by hand.
152
+ // 'status': same disabled/dedicated/main model as whatsapp below and
153
+ // Raiffeisen's payment domain toggle. `price` is the checkout addon
154
+ // price this label charges, regardless of whose bot actually sends it.
155
+ telegram?: {
156
+ status: 'disabled' | 'dedicated' | 'main'
157
+ price: number
158
+ bot_token?: string
159
+ bot_username?: string
160
+ }
161
+
162
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
163
+ // Admin-managed WhatsApp Business Platform (Meta Cloud API) connection -
164
+ // display_phone is captured automatically from a live check on save, not
165
+ // entered by hand.
166
+ whatsapp?: {
167
+ status: 'disabled' | 'dedicated' | 'main'
168
+ price: number
169
+ phone_number_id?: string
170
+ access_token?: string
171
+ template_name?: string
172
+ template_language?: string
173
+ display_phone?: string
174
+ }
148
175
  }
149
176
 
150
177
  // Edited: Ferjolt Ozuni - Date: 2026-07-18