lightrail-client
Advanced tools
Comparing version 4.1.3 to 4.1.4-beta
import { AttachContactToValueParams, AttachContactToValueResponse, CreateContactParams, CreateContactResponse, DeleteContactResponse, GetContactResponse, ListContactsParams, ListContactsResponse, ListContactsValuesParams, ListContactsValuesResponse, UpdateContactParams, UpdateContactResponse } from "./params"; | ||
import { Contact } from "./model"; | ||
import { DetachContactFromValueParams, DetachContactFromValueResponse } from "./params/contacts/DetachContactFromValueParams"; | ||
export declare function createContact(params: CreateContactParams): Promise<CreateContactResponse>; | ||
@@ -9,2 +10,3 @@ export declare function getContact(contact: string | Contact): Promise<GetContactResponse>; | ||
export declare function attachContactToValue(contact: string | Contact, params: AttachContactToValueParams): Promise<AttachContactToValueResponse>; | ||
export declare function detachContactFromValue(contact: string | Contact, params: DetachContactFromValueParams): Promise<DetachContactFromValueResponse>; | ||
export declare function deleteContact(contact: string | Contact): Promise<DeleteContactResponse>; | ||
@@ -11,0 +13,0 @@ /** |
@@ -84,2 +84,13 @@ "use strict"; | ||
exports.attachContactToValue = attachContactToValue; | ||
function detachContactFromValue(contact, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const contactId = getContactId(contact); | ||
const resp = yield lightrail.request("POST", `contacts/${encodeURIComponent(contactId)}/values/detach`).send(params); | ||
if (requestUtils_1.isSuccessStatus(resp.status)) { | ||
return requestUtils_1.formatResponse(resp); | ||
} | ||
throw new LightrailRequestError_1.LightrailRequestError(resp); | ||
}); | ||
} | ||
exports.detachContactFromValue = detachContactFromValue; | ||
function deleteContact(contact) { | ||
@@ -86,0 +97,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "lightrail-client", | ||
"version": "4.1.3", | ||
"version": "4.1.4-beta", | ||
"description": "A Javascript and Typescript client for Lightrail", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82601
131
1956
1