@genz-its/sevdesk-cli 0.1.3 → 0.1.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/README.md +49 -13
- package/dist/index.js +206 -62
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -95,9 +95,11 @@ sevdesk transactions:list --unbooked --json | jq -r '.[].id'
|
|
|
95
95
|
- [`contacts:add-phone`](#contactsadd-phone)
|
|
96
96
|
- [`contacts:create`](#contactscreate)
|
|
97
97
|
- [`contacts:delete`](#contactsdelete)
|
|
98
|
+
- [`contacts:delete-address`](#contactsdelete-address)
|
|
98
99
|
- [`contacts:get`](#contactsget)
|
|
99
100
|
- [`contacts:list`](#contactslist)
|
|
100
101
|
- [`contacts:update`](#contactsupdate)
|
|
102
|
+
- [`contacts:update-address`](#contactsupdate-address)
|
|
101
103
|
- [`credit-notes:get`](#credit-notesget)
|
|
102
104
|
- [`credit-notes:list`](#credit-noteslist)
|
|
103
105
|
- [`credit-notes:pdf`](#credit-notespdf)
|
|
@@ -187,8 +189,8 @@ sevdesk accounts-datev:list [options]
|
|
|
187
189
|
|
|
188
190
|
- `--number`: Only show accounts with this account number. Filtered client-side across all visible accounts.
|
|
189
191
|
- `--name-like`: Only show accounts whose name contains this text. Filtered client-side across all visible accounts.
|
|
190
|
-
- `--limit`: Maximum number of accounts to return.
|
|
191
|
-
- `--offset`: Number of accounts to skip
|
|
192
|
+
- `--limit`: Maximum number of accounts to return. Defaults to all of them.
|
|
193
|
+
- `--offset`: Number of accounts to skip before filtering.
|
|
192
194
|
- `--json`: Output in JSON format.
|
|
193
195
|
|
|
194
196
|
### `accounts:balance`
|
|
@@ -258,7 +260,7 @@ sevdesk accounts:list [options]
|
|
|
258
260
|
|
|
259
261
|
**Options:**
|
|
260
262
|
|
|
261
|
-
- `--limit`: The maximum number of check accounts to return.
|
|
263
|
+
- `--limit`: The maximum number of check accounts to return. Defaults to all of them.
|
|
262
264
|
- `--offset`: The number of check accounts to skip.
|
|
263
265
|
- `--json`: Output in JSON format.
|
|
264
266
|
|
|
@@ -346,6 +348,20 @@ sevdesk contacts:delete [options]
|
|
|
346
348
|
- `--yes`: Skip the confirmation prompt. Defaults to `false`.
|
|
347
349
|
- `--json`: Output in JSON format.
|
|
348
350
|
|
|
351
|
+
### `contacts:delete-address`
|
|
352
|
+
|
|
353
|
+
Delete an address of a contact.
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
sevdesk contacts:delete-address [options]
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
**Options:**
|
|
360
|
+
|
|
361
|
+
- `--id`: The contact address ID, as shown by [`contacts:get`](#contactsget). If omitted, you will be prompted.
|
|
362
|
+
- `--yes`: Skip the confirmation prompt. Defaults to `false`.
|
|
363
|
+
- `--json`: Output in JSON format.
|
|
364
|
+
|
|
349
365
|
### `contacts:get`
|
|
350
366
|
|
|
351
367
|
Show a single contact with its addresses and communication ways.
|
|
@@ -373,7 +389,7 @@ sevdesk contacts:list [options]
|
|
|
373
389
|
- `--customer-number`: Filter by customer number.
|
|
374
390
|
- `--depth`: Contact depth: `0` returns only organizations, `1` organizations and persons. Defaults to `0`.
|
|
375
391
|
- `--category`: ID of the contact category to filter by: `2` supplier, `3` customer, `4` partner.
|
|
376
|
-
- `--limit`: Maximum number of contacts to return.
|
|
392
|
+
- `--limit`: Maximum number of contacts to return. Defaults to all of them.
|
|
377
393
|
- `--offset`: Number of contacts to skip.
|
|
378
394
|
- `--json`: Output in JSON format.
|
|
379
395
|
|
|
@@ -398,6 +414,24 @@ sevdesk contacts:update [options]
|
|
|
398
414
|
- `--tax-number`: Tax number of the contact.
|
|
399
415
|
- `--json`: Output in JSON format.
|
|
400
416
|
|
|
417
|
+
### `contacts:update-address`
|
|
418
|
+
|
|
419
|
+
Update an address of a contact. Only the given fields are changed.
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
sevdesk contacts:update-address [options]
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
**Options:**
|
|
426
|
+
|
|
427
|
+
- `--id`: The contact address ID, as shown by [`contacts:get`](#contactsget). If omitted, you will be prompted.
|
|
428
|
+
- `--street`: Street and house number.
|
|
429
|
+
- `--zip`: Zip code.
|
|
430
|
+
- `--city`: City name.
|
|
431
|
+
- `--country`: ID of the country as a StaticCountry ID, for example `1` for Germany.
|
|
432
|
+
- `--category`: ID of the address category.
|
|
433
|
+
- `--json`: Output in JSON format.
|
|
434
|
+
|
|
401
435
|
### `credit-notes:get`
|
|
402
436
|
|
|
403
437
|
Show a single credit note.
|
|
@@ -426,7 +460,7 @@ sevdesk credit-notes:list [options]
|
|
|
426
460
|
- `--start-date`: Only credit notes on or after this date as `dd.mm.yyyy` or Unix timestamp.
|
|
427
461
|
- `--end-date`: Only credit notes on or before this date as `dd.mm.yyyy` or Unix timestamp.
|
|
428
462
|
- `--contact`: ID of the contact whose credit notes to list.
|
|
429
|
-
- `--limit`: Maximum number of credit notes to return.
|
|
463
|
+
- `--limit`: Maximum number of credit notes to return. Defaults to all of them.
|
|
430
464
|
- `--offset`: Number of credit notes to skip.
|
|
431
465
|
- `--json`: Output in JSON format.
|
|
432
466
|
|
|
@@ -569,7 +603,7 @@ sevdesk invoices:list [options]
|
|
|
569
603
|
- `--start-date`: Only invoices on or after this date as `dd.mm.yyyy` or Unix timestamp.
|
|
570
604
|
- `--end-date`: Only invoices on or before this date as `dd.mm.yyyy` or Unix timestamp.
|
|
571
605
|
- `--contact`: ID of the contact whose invoices to list.
|
|
572
|
-
- `--limit`: Maximum number of invoices to return.
|
|
606
|
+
- `--limit`: Maximum number of invoices to return. Defaults to all of them.
|
|
573
607
|
- `--offset`: Number of invoices to skip.
|
|
574
608
|
- `--json`: Output in JSON format.
|
|
575
609
|
|
|
@@ -616,7 +650,7 @@ sevdesk orders:list [options]
|
|
|
616
650
|
- `--start-date`: Only orders on or after this date as `dd.mm.yyyy` or Unix timestamp.
|
|
617
651
|
- `--end-date`: Only orders on or before this date as `dd.mm.yyyy` or Unix timestamp.
|
|
618
652
|
- `--contact`: ID of the contact whose orders to list.
|
|
619
|
-
- `--limit`: Maximum number of orders to return.
|
|
653
|
+
- `--limit`: Maximum number of orders to return. Defaults to all of them.
|
|
620
654
|
- `--offset`: Number of orders to skip.
|
|
621
655
|
- `--json`: Output in JSON format.
|
|
622
656
|
|
|
@@ -660,7 +694,7 @@ sevdesk parts:list [options]
|
|
|
660
694
|
|
|
661
695
|
- `--name`: Filter by part name.
|
|
662
696
|
- `--part-number`: Filter by part number.
|
|
663
|
-
- `--limit`: Maximum number of parts to return.
|
|
697
|
+
- `--limit`: Maximum number of parts to return. Defaults to all of them.
|
|
664
698
|
- `--offset`: Number of parts to skip.
|
|
665
699
|
- `--json`: Output in JSON format.
|
|
666
700
|
|
|
@@ -703,7 +737,7 @@ sevdesk tags:list [options]
|
|
|
703
737
|
|
|
704
738
|
**Options:**
|
|
705
739
|
|
|
706
|
-
- `--limit`: Maximum number of tags to return.
|
|
740
|
+
- `--limit`: Maximum number of tags to return. Defaults to all of them.
|
|
707
741
|
- `--offset`: Number of tags to skip.
|
|
708
742
|
- `--json`: Output in JSON format.
|
|
709
743
|
|
|
@@ -750,12 +784,12 @@ sevdesk transactions:list [options]
|
|
|
750
784
|
**Options:**
|
|
751
785
|
|
|
752
786
|
- `--check-account`: Only show transactions of this check account ID.
|
|
753
|
-
- `--unbooked`: Only show transactions with status `100` (created). Filtered client-side because the sevdesk API ignores its `isBooked=false` filter
|
|
787
|
+
- `--unbooked`: Only show transactions with status `100` (created). Filtered client-side because the sevdesk API ignores its `isBooked=false` filter. Defaults to `false`.
|
|
754
788
|
- `--start-date`: Only show transactions on or after this date (ISO 8601).
|
|
755
789
|
- `--end-date`: Only show transactions on or before this date (ISO 8601).
|
|
756
790
|
- `--payee`: Only show transactions with this payee or payer name.
|
|
757
791
|
- `--purpose`: Only show transactions with this payment purpose.
|
|
758
|
-
- `--limit`: The maximum number of transactions to return.
|
|
792
|
+
- `--limit`: The maximum number of transactions to return. Defaults to all of them.
|
|
759
793
|
- `--offset`: The number of transactions to skip.
|
|
760
794
|
- `--json`: Output in JSON format.
|
|
761
795
|
|
|
@@ -799,6 +833,8 @@ sevdesk vouchers:create [options]
|
|
|
799
833
|
- `--tax-rate`: Tax rate of the voucher position in percent. Defaults to `19`.
|
|
800
834
|
- `--voucher-date`: Date as `dd.mm.yyyy` or Unix timestamp.
|
|
801
835
|
- `--pay-date`: Date as `dd.mm.yyyy` or Unix timestamp.
|
|
836
|
+
- `--delivery-date`: Start of the service period (Leistungszeitraum), or the single service date, as `dd.mm.yyyy` or Unix timestamp.
|
|
837
|
+
- `--delivery-date-until`: End of the service period as `dd.mm.yyyy` or Unix timestamp. Requires `--delivery-date`.
|
|
802
838
|
- `--supplier-id`: ID of the supplier contact.
|
|
803
839
|
- `--supplier-name`: Name of the supplier, used when no supplier ID is given.
|
|
804
840
|
- `--description`: The voucher number.
|
|
@@ -848,7 +884,7 @@ sevdesk vouchers:list [options]
|
|
|
848
884
|
- `--start-date`: Only vouchers on or after this date as `dd.mm.yyyy` or Unix timestamp.
|
|
849
885
|
- `--end-date`: Only vouchers on or before this date as `dd.mm.yyyy` or Unix timestamp.
|
|
850
886
|
- `--contact`: ID of the contact whose vouchers to list.
|
|
851
|
-
- `--limit`: Maximum number of vouchers to return.
|
|
887
|
+
- `--limit`: Maximum number of vouchers to return. Defaults to all of them.
|
|
852
888
|
- `--offset`: Number of vouchers to skip.
|
|
853
889
|
- `--json`: Output in JSON format.
|
|
854
890
|
|
|
@@ -863,7 +899,7 @@ sevdesk vouchers:positions [options]
|
|
|
863
899
|
**Options:**
|
|
864
900
|
|
|
865
901
|
- `--voucher`: ID of the voucher whose positions to list.
|
|
866
|
-
- `--limit`: Maximum number of positions to return.
|
|
902
|
+
- `--limit`: Maximum number of positions to return. Defaults to all of them.
|
|
867
903
|
- `--offset`: Number of positions to skip.
|
|
868
904
|
- `--json`: Output in JSON format.
|
|
869
905
|
|