Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
update public docs to reflect state
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Sep 7, 2017
1 parent 5f1e97e commit b6774fe
Showing 1 changed file with 23 additions and 43 deletions.
66 changes: 23 additions & 43 deletions src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import { curry, mapValues, flatten } from 'lodash-fp';
* Outputs basic information about an sObject to `STDOUT`.
* @public
* @example
* describe(
* 'obj_name',
* state
* )
* describe('obj_name')
* @function
* @param {String} sObject - API name of the sObject.
* @param {State} state - Runtime state.
Expand All @@ -49,13 +46,10 @@ export const describe = curry(function(sObject, state) {
* Create a new object.
* @public
* @example
* create(
* 'obj_name',
* {
* attr1: "foo",
* attr2: "bar"
* },
* state)
* create('obj_name', {
* attr1: "foo",
* attr2: "bar"
* })
* @function
* @param {String} sObject - API name of the sObject.
* @param {Object} attrs - Field attributes for the new object.
Expand All @@ -81,14 +75,10 @@ export const create = curry(function(sObject, attrs, state) {
* Create a new object if conditions are met.
* @public
* @example
* createIf(
* true,
* 'obj_name',
* {
* attr1: "foo",
* attr2: "bar"
* },
* state)
* createIf(true, 'obj_name', {
* attr1: "foo",
* attr2: "bar"
* })
* @function
* @param {boolean} logical - a logical statement that will be evaluated.
* @param {String} sObject - API name of the sObject.
Expand Down Expand Up @@ -125,14 +115,10 @@ export const createIf = curry(function(logical, sObject, attrs, state) {
* Upsert an object.
* @public
* @example
* upsert(
* 'obj_name',
* 'ext_id',
* {
* attr1: "foo",
* attr2: "bar"
* },
* state)
* upsert('obj_name', 'ext_id', {
* attr1: "foo",
* attr2: "bar"
* })
* @function
* @param {String} sObject - API name of the sObject.
* @param {String} externalId - ID.
Expand Down Expand Up @@ -161,15 +147,10 @@ export const upsert = curry(function(sObject, externalId, attrs, state) {
* Upsert if conditions are met.
* @public
* @example
* upsert(
* true,
* 'obj_name',
* 'ext_id',
* {
* attr1: "foo",
* attr2: "bar"
* },
* state)
* upsert(true, 'obj_name', 'ext_id', {
* attr1: "foo",
* attr2: "bar"
* })
* @function
* @param {boolean} logical - a logical statement that will be evaluated.
* @param {String} sObject - API name of the sObject.
Expand Down Expand Up @@ -209,13 +190,10 @@ export const upsertIf = curry(function(logical, sObject, externalId, attrs, stat
* Update an object.
* @public
* @example
* update(
* 'obj_name',
* {
* attr1: "foo",
* attr2: "bar"
* },
* state)
* update('obj_name', {
* attr1: "foo",
* attr2: "bar"
* })
* @function
* @param {String} sObject - API name of the sObject.
* @param {Object} attrs - Field attributes for the new object.
Expand All @@ -240,6 +218,8 @@ export const update = curry(function(sObject, attrs, state) {
/**
* Get a reference ID by an index.
* @public
* @example
* reference(0)
* @function
* @param {number} position - Position for references array.
* @param {State} state - Array of references.
Expand Down

0 comments on commit b6774fe

Please sign in to comment.