Skip to content

Commit eca67ab

Browse files
committed
fix: Incorrect filter examples in README
1 parent 4c3e7da commit eca67ab

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ Get all customers from all pages.
161161
await clockodo.getCustomers();
162162
// or
163163
await clockodo.getCustomers({
164-
// Filter by active flag
165-
filterActive: true,
164+
filter: {
165+
// Filter by active flag
166+
active: true,
167+
},
166168
});
167169
```
168170

@@ -220,8 +222,10 @@ await clockodo.getEntries({
220222
// timeSince and timeUntil are required
221223
timeSince: "2017-08-18T00:00:00Z",
222224
timeUntil: "2018-02-09T00:00:00Z",
223-
// You can also add additional filters here
224-
filterBillable: Billability.Billed,
225+
filter: {
226+
// You can also add additional filters here
227+
billable: Billability.Billed,
228+
},
225229
});
226230
```
227231

@@ -306,10 +310,12 @@ Get all projects from all pages.
306310
await clockodo.getProjects();
307311
// or
308312
await clockodo.getProjects({
309-
// Filter by a specific customer id
310-
filterCustomersId: 123,
311-
// Filter by active flag
312-
filterActive: true,
313+
filter: {
314+
// Filter by a specific customer id
315+
customersId: 123,
316+
// Filter by active flag
317+
active: true,
318+
},
313319
});
314320
```
315321

@@ -1155,8 +1161,10 @@ import { Billability } from "clockodo";
11551161
await clockodo.editEntryGroup({
11561162
timeSince: "2017-08-18T00:00:00Z",
11571163
timeUntil: "2018-02-09T00:00:00Z",
1158-
filterText: "Browsing Reddit",
1159-
billable: Billability.NotBillable,
1164+
filter: {
1165+
text: "Browsing Reddit",
1166+
billable: Billability.NotBillable,
1167+
},
11601168
});
11611169
```
11621170

0 commit comments

Comments
 (0)