You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/workfront.js
+97-11Lines changed: 97 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6818,6 +6818,11 @@ function hasOwnProperty(obj, prop) {
6818
6818
* limitations under the License.
6819
6819
*/
6820
6820
6821
+
/**
6822
+
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
6823
+
* @author Sassoun Derderian <citizen.sas at gmail dot com>
6824
+
*/
6825
+
6821
6826
varurl=require('url'),
6822
6827
http=require('http'),
6823
6828
https=require('https');
@@ -6826,9 +6831,10 @@ var url = require('url'),
6826
6831
* Creates new Api instance.
6827
6832
* @param {Object} config An object with the following keys:<br/>
6828
6833
* <code>url</code> {String} - Required. An url to Workfront server (for example: http://localhost:8080)<br/>
6829
-
* <code>version</code> {String} - Optional. Which version of api to use. At the moment of writing can be 1.0, 2.0, 3.0, 4.0. Pass 'unsupported' to use Workfront latest API (maybe unstable).
6834
+
* <code>version</code> {String} - Optional. Which version of api to use. At the moment of writing can be 1.0, 2.0, 3.0, 4.0. Pass 'unsupported' to use Workfront latest API (maybe unstable).<br/>
6830
6835
* <code>secureProtocol</code> {String} - Optional. Used only in https. The SSL method to use, e.g. TLSv1_method to force TLS version 1. The possible values depend on your installation of OpenSSL and are defined in the constant {@link http://www.openssl.org/docs/ssl/ssl.html#DEALING_WITH_PROTOCOL_METHODS|SSL_METHODS}.
6831
6836
* @constructor
6837
+
* @memberOf Workfront
6832
6838
*/
6833
6839
functionApi(config){
6834
6840
varparsed=url.parse(config.url),
@@ -6905,6 +6911,10 @@ module.exports = Api;
6905
6911
* limitations under the License.
6906
6912
*/
6907
6913
6914
+
/**
6915
+
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7441
+
* @author Sassoun Derderian <citizen.sas at gmail dot com>
7442
+
*/
7443
+
7429
7444
varApi=require('./Api'),
7430
7445
_instance;
7431
7446
@@ -7485,6 +7500,10 @@ module.exports = {
7485
7500
* limitations under the License.
7486
7501
*/
7487
7502
7503
+
/**
7504
+
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7505
+
*/
7506
+
7488
7507
/**
7489
7508
* @name ApiUtil
7490
7509
* @memberOf Workfront
@@ -7511,10 +7530,14 @@ module.exports = {
7511
7530
* limitations under the License.
7512
7531
*/
7513
7532
7533
+
/**
7534
+
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7535
+
*/
7514
7536
module.exports=function(Api){
7515
7537
/**
7516
7538
* Copies an existing object with making changes on a copy.
7517
7539
* Copying is supported only for some objects. The {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} page displays which objects support the Copy action.
7540
+
* @memberOf Workfront.Api
7518
7541
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7519
7542
* @param {String} objID ID of object to copy
7520
7543
* @param {Object} updates Which fields to set on copied object. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7614
+
* @author Sassoun Derderian <citizen.sas at gmail dot com>
7615
+
*/
7585
7616
module.exports=function(Api){
7586
7617
/**
7587
7618
* Creates a new object.
7619
+
* @memberOf Workfront.Api
7588
7620
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7589
7621
* @param {Object} params Values of fields to be set for the new object. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
7590
7622
* @param {String[]} [fields] Which fields of newly created object to return. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7648
+
*/
7614
7649
module.exports=function(Api){
7615
7650
/**
7616
7651
* Edits an existing object
7652
+
* @memberOf Workfront.Api
7617
7653
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7618
7654
* @param {String} objID ID of object to modify
7619
7655
* @param {Object} updates Which fields to set. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7685
+
*/
7647
7686
module.exports=function(Api){
7648
7687
7649
7688
/**
7650
7689
* Executes an action for the given object
7690
+
* @memberOf Workfront.Api
7651
7691
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7652
-
* @param {String} objID ID of object
7653
-
* @param {String} action An action to execute. A list of allowed named queries are available within the {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} under "actions" for each object.
7692
+
* @param {String} objID ID of object. Optional, pass null or undefined to omit
7693
+
* @param {String} action An action to execute. A list of allowed actions are available within the {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} under "actions" for each object.
7654
7694
* @param {Object} [actionArgs] Optional. Arguments for the action. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of valid arguments
7655
7695
* @returns {Promise} A promise which will resolved if everything went ok and rejected otherwise
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7727
+
* @author Sassoun Derderian <citizen.sas at gmail dot com>
7728
+
*/
7678
7729
module.exports=function(Api){
7679
7730
/**
7680
7731
* Used for retrieve an object or multiple objects.
7732
+
* @memberOf Workfront.Api
7681
7733
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7682
7734
* @param {String|Array} objIDs Either one or multiple object ids
7683
7735
* @param {Object} fields Which fields to return. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7850
+
*/
7786
7851
module.exports=function(Api){
7787
7852
/**
7788
7853
* Retrieves API metadata for an object.
7854
+
* @memberOf Workfront.Api
7789
7855
* @param {String} [objCode] One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}. If omitted will return list of objects available in API.
7790
7856
* @return {Promise} A promise which will resolved with object metadata if everything went ok and rejected otherwise
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
7885
+
*/
7817
7886
module.exports=function(Api){
7818
7887
7819
7888
/**
7820
7889
* Executes a named query for the given obj code
7890
+
* @memberOf Workfront.Api
7821
7891
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
7822
7892
* @param {String} query A query to execute. A list of allowed named queries are available within the {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} under "actions" for each object.
7823
7893
* @param {Object} [queryArgs] Optional. Arguments for the action. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of valid arguments
* @author Hovhannes Babayan <bhovhannes at gmail dot com>
8092
+
* @author Sassoun Derderian <citizen.sas at gmail dot com>
8093
+
*/
8013
8094
module.exports=function(Api){
8014
8095
/**
8015
8096
* Used for object retrieval by multiple search criteria.
8097
+
* @memberOf Workfront.Api
8016
8098
* @param {String} objCode One of object codes from {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer}
8017
8099
* @param {Object} query An object with search criteria
8018
8100
* @param {Array} [fields] Which fields to return. See {@link https://developers.attask.com/api-docs/api-explorer/|Workfront API Explorer} for the list of available fields for the given objCode.
0 commit comments