@autobusal/providers 1.26.0 → 1.27.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
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.27.0
4
+
5
+ ### Added
6
+
7
+ - `LabelSettings.sms` (BulkGate: status, credentials, sender) and
8
+ `SettingsData.addons.sms` — the paid per-order confirmation. Both optional,
9
+ so an older payload cannot crash a checkout.
3
10
  ## 1.26.0
4
11
 
5
12
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -40,6 +40,15 @@ export interface SettingsData {
40
40
  addons?: {
41
41
  whatsapp: { available: boolean, price: number }
42
42
  telegram: { available: boolean, price: number }
43
+
44
+ /**
45
+ * Edited: Ferjolt Ozuni - Date: 2026-08-05
46
+ * The paid per-order CONFIRMATION by SMS. Route alerts over SMS are
47
+ * free and reach every passenger who gave a phone number, so nothing
48
+ * gates them - this only answers whether a confirmation text may be
49
+ * bought. Optional so an older payload cannot crash the checkout.
50
+ */
51
+ sms?: { available: boolean, price: number }
43
52
  }
44
53
 
45
54
  // Edited: Ferjolt Ozuni - Date: 2026-07-31
@@ -230,6 +239,23 @@ export interface LabelSettings {
230
239
  display_phone?: string
231
240
  }
232
241
 
242
+ /**
243
+ * Edited: Ferjolt Ozuni - Date: 2026-08-05
244
+ * BulkGate, for SMS. `status` is only ever 'disabled' or 'dedicated' -
245
+ * deliberately no 'main': the other channels let a whitelabel borrow the
246
+ * main brand's connection, and SMS costs money per message, so borrowing
247
+ * would mean one brand running up another's bill. `credit` is captured
248
+ * from a live check on save, not entered by hand.
249
+ */
250
+ sms?: {
251
+ status: 'disabled' | 'dedicated'
252
+ application_id?: string
253
+ application_token?: string
254
+ sender?: string
255
+ sender_value?: string
256
+ credit?: string
257
+ }
258
+
233
259
  // Edited: Ferjolt Ozuni - Date: 2026-07-29
234
260
  // Admin-managed footer social-share links (public preferences.social
235
261
  // above is populated from this) - distinct from `social` above, which