New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@actito/data-model-sdk

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actito/data-model-sdk

SDK for ACTITO data model (profile tables, linked tables and content tables)

latest
Source
npmnpm
Version
0.2.5
Version published
Maintainers
4
Created
Source

data-model-sdk

THIS IS STILL VERY PRELIMINARY. PLEASE DON'T USE.

Example use

async function demoProfiles() {
  const newProfile = { firstName: "Alain", lastName: "Dresse", emailAddress: "ziki@example.com" };

  const { profileId } = await createProfile("Clients", { profile: newProfile });
  const { profile: initialProfile } = await getProfile("Clients", profileId);
  await updateProfile("Clients", profileId, { profile: { firstName: "Ziki" } });
  const { profile: updatedProfile } = await getProfile("Clients", profileId);
  await deleteProfile("Clients", profileId);

  console.log({initialProfile, updatedProfile});
}

async function demoTables() {
  const tableName = "OfferAssignments";
  const newRecord = { synchronized: false, offerReference: "springoffer", profileReference: "alaindresse@example.com" };

  const { businessKey: id } = await addRecord(tableName, newRecord);
  const initialRecord = await getRecord(tableName, id);
  await updateRecord(tableName, id, { assignmentReference: "aaa" });
  const updatedRecord = await getRecord(tableName, id);
  await deleteRecord(tableName, id);

  console.log({initialRecord, updatedRecord});
}

Keywords

actito

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts