@go-labs-sg/bb 3.24.0 → 3.25.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/README.md +15 -1
- package/command-manifest.json +100 -0
- package/command-reference.md +16 -0
- package/dist/index.js +719 -674
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ Deployment prerequisite: apply the Budget Builder Prisma schema additions (`Bill
|
|
|
191
191
|
|
|
192
192
|
## Payload help and uncertain writes
|
|
193
193
|
|
|
194
|
-
Run `bb <command> --help` (for example, `bb create-item --help`) to see required and optional `--payload` fields and an example JSON object. Item creation and updates accept a finite numeric `cost` and convert it to the API's decimal-string input. Validation errors identify the affected field; unsupported QuickBooks name characters are listed explicitly.
|
|
194
|
+
Run `bb <command> --help` (for example, `bb create-item --help`) to see required and optional `--payload` fields and an example JSON object. Item creation and updates accept a finite numeric `cost` and convert it to the API's plain decimal-string input; a string `cost` must already be a plain decimal such as `1119.50` (no commas, exponents or spaces). Validation errors identify the affected field; unsupported QuickBooks name characters are listed explicitly.
|
|
195
195
|
|
|
196
196
|
If `create-budget` reports an uncertain outcome (including Prisma P2028 or a network interruption), **do not retry immediately**. Run `bb list-budgets --projectId <project-id>` and check for the budget name first; the write may have committed even though the CLI did not receive a successful response. This check is not an idempotency guarantee when another budget has the same name.
|
|
197
197
|
|
|
@@ -318,6 +318,20 @@ user; targeting another user requires a Budget Builder admin. Revocation affects
|
|
|
318
318
|
only that device's CLI session and tokens, not automation API keys. Existing
|
|
319
319
|
`bb auth login`, `status`, `whoami`, and `logout` commands are unchanged.
|
|
320
320
|
|
|
321
|
+
### Android approval notifications
|
|
322
|
+
|
|
323
|
+
`bb mobile-push status` shows service configuration and your active Android
|
|
324
|
+
registrations. To clear a registration, copy its session ID from that output.
|
|
325
|
+
|
|
326
|
+
```sh
|
|
327
|
+
bb mobile-push status
|
|
328
|
+
bb mobile-push unregister <sessionId> --allow-state-change
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
The app can register again when it refreshes its token. Use Android notification
|
|
332
|
+
settings to turn notifications off on the phone, or revoke the session under
|
|
333
|
+
**CLI Sessions** to sign the device out remotely.
|
|
334
|
+
|
|
321
335
|
Credentials use macOS Keychain, Windows Credential Manager, or Linux Secret Service, not plaintext files.
|
|
322
336
|
The per-user lock directory contains only random ownership markers used to serialize
|
|
323
337
|
login, refresh, and logout. macOS/Linux enforce owner-only POSIX permissions there;
|
package/command-manifest.json
CHANGED
|
@@ -196,6 +196,106 @@
|
|
|
196
196
|
"effects": [],
|
|
197
197
|
"legacyTarget": "whoami"
|
|
198
198
|
},
|
|
199
|
+
{
|
|
200
|
+
"path": ["mobile-push", "status"],
|
|
201
|
+
"legacyAliases": [],
|
|
202
|
+
"summary": "Show push availability and your active Android push registrations.",
|
|
203
|
+
"globalOptions": [
|
|
204
|
+
{
|
|
205
|
+
"name": "--help",
|
|
206
|
+
"description": "Show help for this command."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "--quiet",
|
|
210
|
+
"description": "Suppress non-error diagnostics."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "--debug",
|
|
214
|
+
"description": "Emit sanitized diagnostic traces."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "--api-url",
|
|
218
|
+
"description": "Override the Budget Builder API base URL."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "--no-browser",
|
|
222
|
+
"description": "Print the authorization URL without opening a browser."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "--allow-state-change",
|
|
226
|
+
"description": "Allow a Budget Builder state change in non-interactive use."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "--allow-email",
|
|
230
|
+
"description": "Allow sending email in non-interactive use."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "--allow-external-write",
|
|
234
|
+
"description": "Allow writes to external systems in non-interactive use."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "--allow-delete",
|
|
238
|
+
"description": "Allow deleting data in non-interactive use."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "--allow-financial-write",
|
|
242
|
+
"description": "Allow financial-record changes in non-interactive use."
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"argumentMode": "legacy-passthrough",
|
|
246
|
+
"effects": [],
|
|
247
|
+
"legacyTarget": "mobile-push-status"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"path": ["mobile-push", "unregister"],
|
|
251
|
+
"legacyAliases": [],
|
|
252
|
+
"summary": "Unregister notifications for one of your active Android devices. Argument: <sessionId>.",
|
|
253
|
+
"globalOptions": [
|
|
254
|
+
{
|
|
255
|
+
"name": "--help",
|
|
256
|
+
"description": "Show help for this command."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "--quiet",
|
|
260
|
+
"description": "Suppress non-error diagnostics."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "--debug",
|
|
264
|
+
"description": "Emit sanitized diagnostic traces."
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "--api-url",
|
|
268
|
+
"description": "Override the Budget Builder API base URL."
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "--no-browser",
|
|
272
|
+
"description": "Print the authorization URL without opening a browser."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "--allow-state-change",
|
|
276
|
+
"description": "Allow a Budget Builder state change in non-interactive use."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "--allow-email",
|
|
280
|
+
"description": "Allow sending email in non-interactive use."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "--allow-external-write",
|
|
284
|
+
"description": "Allow writes to external systems in non-interactive use."
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "--allow-delete",
|
|
288
|
+
"description": "Allow deleting data in non-interactive use."
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "--allow-financial-write",
|
|
292
|
+
"description": "Allow financial-record changes in non-interactive use."
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"argumentMode": "legacy-passthrough",
|
|
296
|
+
"effects": ["state-change"],
|
|
297
|
+
"legacyTarget": "mobile-push-unregister"
|
|
298
|
+
},
|
|
199
299
|
{
|
|
200
300
|
"path": ["budget", "list"],
|
|
201
301
|
"legacyAliases": ["list-budgets", "list_budgets"],
|
package/command-reference.md
CHANGED
|
@@ -49,6 +49,22 @@ Legacy aliases: `whoami`.
|
|
|
49
49
|
|
|
50
50
|
Effects: none.
|
|
51
51
|
|
|
52
|
+
## `bb mobile-push status`
|
|
53
|
+
|
|
54
|
+
Show push availability and your active Android push registrations.
|
|
55
|
+
|
|
56
|
+
Legacy aliases: .
|
|
57
|
+
|
|
58
|
+
Effects: none.
|
|
59
|
+
|
|
60
|
+
## `bb mobile-push unregister`
|
|
61
|
+
|
|
62
|
+
Unregister notifications for one of your active Android devices. Argument: <sessionId>.
|
|
63
|
+
|
|
64
|
+
Legacy aliases: .
|
|
65
|
+
|
|
66
|
+
Effects: state-change.
|
|
67
|
+
|
|
52
68
|
## `bb budget list`
|
|
53
69
|
|
|
54
70
|
List one cursor page of budgets ({ items, pageInfo }; --limit/--cursor/--direction). Omit --active for active budgets only; use --active false or --active all for Admin-only historical reads.
|