Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Oct 25, 2023
1 parent 8d84b09 commit d112cc0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import axios from 'axios';
//import axios from 'axios';

/*export interface Lib {
"/crm/contact": {},
}
export type Path = (path: keyof Lib) => void;*/

type Method = "GET" | "POST" | "PATCH" | "DELETE"
//type Method = "GET" | "POST" | "PATCH" | "DELETE"

type ContactBody = {
first_name: string;
Expand All @@ -25,14 +25,21 @@ export default class PanoraApiClient {
return [];
}

public async createContact({
public createContact({
first_name,
last_name,
email_addresses,
phone_numbers
} : ContactBody): Promise<string[]> {
const res = await axios.post("", {});
return [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} : ContactBody): any {
const app = {
first_name,
last_name,
email_addresses,
phone_numbers
}
//const res = await axios.post("", {});
return app;
}

}

0 comments on commit d112cc0

Please sign in to comment.