Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repository": "https://github.com/energy-tracker/api-client-python",
"commit": "54ff998357ffa7c191f4538b5b3c49308b777d49",
"commit": "6cf17f0631e3f71038da3ac06ce91e82965e1cf2",
"sha256": {
"README.md": "985242aa12e06502b0dcbdf75ec3b95c8fd840dee4a1f309620f1b338e64a59a",
"cases/calculations.json": "0065dc017f173c15b21dbc3b40c3e37d1f1ea80b957669ad50df20f9e888efe0",
Expand Down
3 changes: 3 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const csv = await client.meterReadings.export(
); // Same filters as list()
```

Since version 2.0.0, CSV exports default to semicolon. To preserve the comma-separated
output of version 1.x, explicitly set `delimiter: CsvDelimiter.COMMA`.

Reading values must be plain decimal strings, without an exponent. Formatting
removes redundant zeros without converting to a JavaScript number. Meter precision
and range checks belong to the server; `allowRounding` is sent only when supplied.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@energy-tracker/api-client",
"version": "1.0.2",
"version": "2.0.0",
"description": "Typed async client for the Energy Tracker public API",
"license": "MIT",
"author": "Stefan Nebel",
Expand Down
2 changes: 1 addition & 1 deletion src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface TimestampDto {
export interface ExportMeterReadingsDto {
columns: readonly ExportColumn[];
includeHeader?: boolean;
/** Defaults to semicolon; comma and tab can be selected explicitly. */
/** Defaults to semicolon. */
delimiter?: CsvDelimiter;
dateFormat?: DateFormat;
}
Expand Down