npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@veeva/myinsights_javascript_library

v0.0.9

Published

MyInsights Javascript Library

Downloads

1

Readme

Table of Contents

DataAccessLibrary

queryRecord

Parameters

Returns Promise

runQuery

Parameters

Returns Promise

querySalesData

Parameters

  • queryObject
  • Object

Returns Promise

joinQueries

Parameters

  • q1 Object The query to which to outerjoin q2
  • q2 Object The query to which to outerjoin to q1
  • keyForID String The member name of what to consider as the primary key
  • fieldsLabelsToExclude Array
  • primaryObjectName String The object name assigned to the query desired to be the primary query to which to join the non-primary query.

Returns Object Joined query result

getInStatement

Generates an in-statment fragment to be included in a query.

Parameters

  • ids Array the ids to include in the generated in-statement

Returns string In-statement to use in a query

getDataForCurrentObject

Returns the value of a field for a specific record related to the current object

Parameters

  • object String The api name of the object on which the field can be found.
  • field String The name of the field whose value you want returned.

Returns Promise

getObjectLabels

Parameters

  • objects Array API names of objects for which to retrieve object labels.

Returns Promise

getFieldLabels

Parameters

Returns Promise

getPicklistValueLabels

Returns the translated label for each of the picklist values of the specified field

Parameters

  • object String Object API name
  • field String Field API name for which to get the picklist labels

Returns Promise

getVeevaMessagesWithDefault

Parameters

  • tokens Array The tokens for which to get translations
  • languageLocaleKey String Locale key of the translations to return.

Returns Promise

checkQueryQueue

Returns Promise

newRecord

Parameters

Returns Promise

viewRecord

Parameters

Returns Promise

smartLinking

Parameters

Returns Promise

executeSuggestionAction

Parameters

Returns Promise

launchMediaForAccount

Parameters

Returns Promise

getAvailableObjects

Returns Promise

getObjectMetadata

Parameters

Returns Promise

getRecordTypeLabels

Parameters

Returns Promise

queryVDSRecord

CDW Query Record

Parameters

  • configObject
  • Object

Returns Promise

Meta

  • copyright: All rights reserved

OnlineAPI

Extends DataAccessLibrary

Overrides for the online environment.

genericQueryErrorHandler

Parameters

Returns null

queryRecord

Parameters

Returns Promise

querySalesData

Parameters

  • queryObject
  • Object

Returns Promise

query

Parameters

Returns Promise

getDataForCurrentObject

Returns the value of a field for a specific record related to the current object

Parameters

  • object String The api name of the object on which the field can be found.
  • field String The name of the field whose value you want returned.

Returns Promise

getObjectLabels

Parameters

  • objects Array API names of objects for which to retrieve object labels.

Returns Promise

getFieldLabels

Parameters

Returns Promise

getTranslation

Parameters

Returns Promise

getPicklistValueLabels

Returns the translated label for each of the picklist values of the specified field

Parameters

  • object String Object API name
  • field String Field API name for which to get the picklist labels

Returns Promise

newRecord

Parameters

Returns Promise

viewRecord

Parameters

Returns Promise

smartLinking

Parameters

Returns Promise

getAvailableObjects

Returns Promise

getObjectMetadata

Parameters

Returns Promise

getRecordTypeLabels

Parameters

Returns Promise

Utilities

Provided for your convenience.

isWin8

Returns Boolean Returns true if the client is Windows 8

isOnline

Returns Boolean

addMessageListener

Adds a listener for the rest api call callback

Parameters

Returns Function The callback function passed in.

removeMessageListener

Parameters

  • callback Function Listener function to remove

Returns undefined

mergeObjects

Parameters

  • dst object Source of truth object to which to add members from src object.
  • src object Object from which to copy members to dst
  • clobber boolean Boolean to indicate if src members should override dst members.

Returns object

copyObject

Parameters

Returns Object

deepCopy

Parameters

  • originalObject Object The object to copy.

Returns Object

replaceStringInWhereClause

Parameters

  • whereClause String
  • input String String to use in place of stringToBeReplaced
  • stringToBeReplaced String The string to replace with the input.

Returns String