@autobusal/providers 1.3.4 → 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,16 @@ 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
+
7
17
  ## [1.3.4] - 2026-07-25
8
18
 
9
19
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -149,11 +149,29 @@ export interface LabelSettings {
149
149
  // Edited: Ferjolt Ozuni - Date: 2026-07-25
150
150
  // Admin-managed Telegram bot configuration - bot_username is captured
151
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.
152
155
  telegram?: {
153
- enabled: boolean
156
+ status: 'disabled' | 'dedicated' | 'main'
157
+ price: number
154
158
  bot_token?: string
155
159
  bot_username?: string
156
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
+ }
157
175
  }
158
176
 
159
177
  // Edited: Ferjolt Ozuni - Date: 2026-07-18