UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

37 lines 1.17 kB
import { ContactsUdIdResponseSchema } from '../schemas'; /** * Creates the contactsUd resource methods * OpenAPI Path: /contacts-ud → contactsUd.* * @description Contact user-defined data operations */ export function createContactsUdResource(executeRequest) { return (contactId) => ({ /** * Get contact user-defined data * @fullPath api.customers.contactsUd.get * @service customers * @domain contact-management * @dataMethod contactsUdData.get * @discoverable true */ get: async () => { return executeRequest({ method: 'GET', path: '/contacts-ud/{id}', responseSchema: ContactsUdIdResponseSchema, }, undefined, { id: String(contactId) }); }, }); } /** * Creates the contactsUdData resource methods (data-only versions) */ export function createContactsUdDataResource(contactsUd) { return (contactId) => ({ get: async () => { const response = await contactsUd(contactId).get(); return response.data; }, }); } //# sourceMappingURL=contacts-ud.js.map