fcx-minddale-ts
Version:
TypeScript client SDK for the headless micro CRM, Minddale.
17 lines (16 loc) • 579 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContactClient = void 0;
const minddale_client_1 = require("./minddale.client");
class ContactClient extends minddale_client_1.MinddaleClient {
constructor(apiKey, baseUrl) {
super(apiKey, baseUrl);
this.apiKey = apiKey;
this.baseUrl = baseUrl;
}
publishContact(contact, endpoint) {
return this.post(endpoint || ContactClient.ENDPOINT, contact);
}
}
exports.ContactClient = ContactClient;
ContactClient.ENDPOINT = '/api/open/minddale/v1/contact';