0.0.9 • Published 6 years ago

@veeva/myinsights_javascript_library v0.0.9

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
6 years ago

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

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago