lib/pushDynamicEntityValues.js
/*
 * Mark the push request as DONE so that it can start processing patch data,
 * train the entity, and then save the changes. There isn't any response.
 *
 * @param botId
 * @param entityId
 * @param pushRequestId
 * @param abort true | false - optional parameter that when set to true
 * aborts the push request instead of finalizing it.
 *
 */
Mark the push request as DONE so that it can start processing patch data,
train the entity, and then save the changes. There isn't any response.

@param botId
@param entityId
@param pushRequestId
@param abort true | false - optional parameter that when set to true
aborts the push request instead of finalizing it.
Mark the push request as DONE so that it can start processing patch data train the entity and then save the changes . There isn ' t any response . @param botId @param entityId @param pushRequestId @param abort true | false - optional parameter that when set to true aborts the push request instead of finalizing it .
async function finalizePushRequest (botId, entityId, pushRequestId, abort) {
  let action = 'DONE';
  if (abort) {
    action = 'ABORT';
  }
  const body = '{}';
  const options = {
    host: utils.DOMAIN,
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json'
    },
    path: BASE_PATH +
      '/bots/' +
      encodeURIComponent(botId) +
      '/dynamicEntities/' +
      encodeURIComponent(entityId) +
      '/pushRequests/' +
      encodeURIComponent(pushRequestId) +
      '/' + action
  };
  debug('finalizePushRequest: ' + JSON.stringify(options));
  return ociUtils.promisifiedSendRequest(options, body);
}
async function finalizePushRequest ( botId , entityId , pushRequestId , abort ) { let action = 'DONE' ; if ( abort ) { action = 'ABORT' ; } const body = '{}' ; const options = { host : utils . DOMAIN , method : 'PUT' , headers : { 'Content-Type' : 'application/json' } , path : BASE_PATH + '/bots/' + encodeURIComponent ( botId ) + '/dynamicEntities/' + encodeURIComponent ( entityId ) + '/pushRequests/' + encodeURIComponent ( pushRequestId ) + '/' + action } ; debug ( 'finalizePushRequest: ' + JSON . stringify ( options ) ) ; return ociUtils . promisifiedSendRequest ( options , body ) ; }
Mark the push request as DONE so that it can start processing patch data,
 train the entity, and then save the changes.
Mark the push request as DONE so that it can start processing patch data train the entity and then save the changes .