@autobusal/providers 1.3.4 → 1.3.6

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,25 @@ 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.6] - 2026-07-25
8
+
9
+ ### Added
10
+
11
+ - `SettingsData.addons` - whether the WhatsApp/Telegram checkout addon is
12
+ available for this label and what it costs (never credentials), exposed
13
+ by obtapi's `Settings\ViewController::get()` for the checkout SPA to
14
+ render the addon selection at Step5.
15
+
16
+ ## [1.3.5] - 2026-07-25
17
+
18
+ ### Changed
19
+
20
+ - `LabelSettings.telegram` upgraded from `{enabled: boolean}` to the same
21
+ `{status: 'disabled'|'dedicated'|'main', price, ...}` shape as the new
22
+ `LabelSettings.whatsapp` - both are now paid checkout addons that can
23
+ route through the main label's connection instead of requiring their
24
+ own.
25
+
7
26
  ## [1.3.4] - 2026-07-25
8
27
 
9
28
  ### 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.6",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -9,6 +9,15 @@ export interface SettingsData {
9
9
  site_key: string | null
10
10
  }
11
11
 
12
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
13
+ // Whether the checkout addon is available for this label and what it
14
+ // costs - the SPA never sees credentials, only what it needs to render
15
+ // the addon at checkout (see obtapi's Settings\ViewController::addon()).
16
+ addons?: {
17
+ whatsapp: { available: boolean, price: number }
18
+ telegram: { available: boolean, price: number }
19
+ }
20
+
12
21
  preferences: {
13
22
  company: string
14
23
 
@@ -149,11 +158,29 @@ export interface LabelSettings {
149
158
  // Edited: Ferjolt Ozuni - Date: 2026-07-25
150
159
  // Admin-managed Telegram bot configuration - bot_username is captured
151
160
  // automatically from a live getMe() check on save, not entered by hand.
161
+ // 'status': same disabled/dedicated/main model as whatsapp below and
162
+ // Raiffeisen's payment domain toggle. `price` is the checkout addon
163
+ // price this label charges, regardless of whose bot actually sends it.
152
164
  telegram?: {
153
- enabled: boolean
165
+ status: 'disabled' | 'dedicated' | 'main'
166
+ price: number
154
167
  bot_token?: string
155
168
  bot_username?: string
156
169
  }
170
+
171
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
172
+ // Admin-managed WhatsApp Business Platform (Meta Cloud API) connection -
173
+ // display_phone is captured automatically from a live check on save, not
174
+ // entered by hand.
175
+ whatsapp?: {
176
+ status: 'disabled' | 'dedicated' | 'main'
177
+ price: number
178
+ phone_number_id?: string
179
+ access_token?: string
180
+ template_name?: string
181
+ template_language?: string
182
+ display_phone?: string
183
+ }
157
184
  }
158
185
 
159
186
  // Edited: Ferjolt Ozuni - Date: 2026-07-18