@autobusal/providers 1.13.0 → 1.14.0

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
@@ -7,6 +7,16 @@ adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
7
7
  > Note: 1.8.0 through 1.11.0 were published without changelog entries. The
8
8
  > gap is left as-is rather than reconstructed after the fact.
9
9
 
10
+ ## [1.14.0] - 2026-08-02
11
+
12
+ ### Changed
13
+
14
+ - **`LabelSettings.telegram`/`.whatsapp` drop `price` and `refundable`.** They
15
+ moved to obtapi's `addons` table; the label manager reads them from the
16
+ label's `addons` map instead (see `@autobusal/admin-label` 1.15.0). The
17
+ public `settings.addons` shape is unchanged, but its contents are now
18
+ filtered by who is asking and through what channel.
19
+
10
20
  ## [1.13.0] - 2026-08-01
11
21
 
12
22
  ### Removed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -190,15 +190,9 @@ export interface LabelSettings {
190
190
  // Admin-managed Telegram bot configuration - bot_username is captured
191
191
  // automatically from a live getMe() check on save, not entered by hand.
192
192
  // 'status': same disabled/dedicated/main model as whatsapp below and
193
- // Raiffeisen's payment domain toggle. `price` is the checkout addon
194
- // price this label charges, regardless of whose bot actually sends it.
193
+ // Raiffeisen's payment domain toggle.
195
194
  telegram?: {
196
195
  status: 'disabled' | 'dedicated' | 'main'
197
- price: number
198
- // Edited: Ferjolt Ozuni - Date: 2026-07-31
199
- // whether this label gives the addon fee back on cancellation;
200
- // snapshotted onto each purchase, so it only affects future orders
201
- refundable?: boolean
202
196
  bot_token?: string
203
197
  bot_username?: string
204
198
  }
@@ -209,11 +203,6 @@ export interface LabelSettings {
209
203
  // entered by hand.
210
204
  whatsapp?: {
211
205
  status: 'disabled' | 'dedicated' | 'main'
212
- price: number
213
- // Edited: Ferjolt Ozuni - Date: 2026-07-31
214
- // whether this label gives the addon fee back on cancellation;
215
- // snapshotted onto each purchase, so it only affects future orders
216
- refundable?: boolean
217
206
  phone_number_id?: string
218
207
  access_token?: string
219
208
  template_name?: string