Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightrail-client

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightrail-client - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4-beta

dist/params/contacts/DetachContactFromValueParams.d.ts

2

dist/contacts.d.ts
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* () {

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc