timber-node 0.2.2 → 0.2.3

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.
@@ -19,6 +19,7 @@ export interface Customer extends CustomerData {
19
19
  export interface CustomerQueryParams {
20
20
  page?: number;
21
21
  limit?: number;
22
+ role: 'customer' | 'vendor' | 'biller';
22
23
  }
23
24
  /**
24
25
  * Service for Customer
package/dist/customer.js CHANGED
@@ -29,7 +29,7 @@ class CustomerService {
29
29
  * console.log(customers.data);
30
30
  * ```
31
31
  */
32
- async list(params = {}) {
32
+ async list(params = { role: 'customer' }) {
33
33
  return await this.http.get('/customer/customer', { params });
34
34
  }
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timber-node",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Simplifying accounting and tax filing for businesses",
5
5
  "keywords": [
6
6
  "timber"