timber-node 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/dist/customer.d.ts +5 -2
- package/package.json +1 -1
package/dist/customer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
2
|
export interface CustomerData {
|
|
3
3
|
name: string;
|
|
4
|
-
email:
|
|
4
|
+
email: string;
|
|
5
5
|
mobile?: string;
|
|
6
6
|
country_code?: string;
|
|
7
7
|
country?: string;
|
|
@@ -16,6 +16,9 @@ export interface Customer extends CustomerData {
|
|
|
16
16
|
createdAt?: string;
|
|
17
17
|
updatedAt?: string;
|
|
18
18
|
}
|
|
19
|
+
export type CustomerResponse = {
|
|
20
|
+
data: Customer[];
|
|
21
|
+
};
|
|
19
22
|
export interface CustomerQueryParams {
|
|
20
23
|
page?: number;
|
|
21
24
|
limit?: number;
|
|
@@ -46,7 +49,7 @@ export declare class CustomerService {
|
|
|
46
49
|
* console.log(customers.data);
|
|
47
50
|
* ```
|
|
48
51
|
*/
|
|
49
|
-
list(params?: CustomerQueryParams): Promise<AxiosResponse<
|
|
52
|
+
list(params?: CustomerQueryParams): Promise<AxiosResponse<CustomerResponse>>;
|
|
50
53
|
/**
|
|
51
54
|
* Fetch a single customer by ID.
|
|
52
55
|
*
|