@factset/sdk-portfolioreportingbatcher
Version:
Portfolio Reporting Batcher client library for JavaScript
99 lines (91 loc) • 3.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _AccountsForJobAddProp = _interopRequireDefault(require("./AccountsForJobAddProp"));
var _RunsForJob = _interopRequireDefault(require("./RunsForJob"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
* Portfolio Reporting Batcher
* The Portfolio Reporting Batcher (PRB) API allows clients to systematically leverage functionalities of the PRB application.
*
* The version of the OpenAPI document: 1.0.0
* Contact: api@factset.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
/**
* The JobDetailsResponseData model module.
* @module model/JobDetailsResponseData
*/
class JobDetailsResponseData {
/**
* Constructs a new <code>JobDetailsResponseData</code>.
* The main object in the JobDetailsResponse schema
* @alias module:model/JobDetailsResponseData
*/
constructor() {
JobDetailsResponseData.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {}
/**
* Constructs a <code>JobDetailsResponseData</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/JobDetailsResponseData} obj Optional instance to populate.
* @return {module:model/JobDetailsResponseData} The populated <code>JobDetailsResponseData</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new JobDetailsResponseData();
if (data.hasOwnProperty('accounts')) {
obj['accounts'] = _ApiClient.default.convertToType(data['accounts'], {
'String': [_AccountsForJobAddProp.default]
});
}
if (data.hasOwnProperty('documents')) {
obj['documents'] = _ApiClient.default.convertToType(data['documents'], {
'String': ['String']
});
}
if (data.hasOwnProperty('runs')) {
obj['runs'] = _ApiClient.default.convertToType(data['runs'], [_RunsForJob.default]);
}
if (data.hasOwnProperty('tasks')) {
obj['tasks'] = _ApiClient.default.convertToType(data['tasks'], ['String']);
}
}
return obj;
}
}
/**
* Please note for PI jobs you will only see portfolioId
* @member {Object.<String, Array.<module:model/AccountsForJobAddProp>>} accounts
*/
JobDetailsResponseData.prototype['accounts'] = undefined;
/**
* Shows the documents for each job where relevant with a collection of tasks under each document
* @member {Object.<String, Array.<String>>} documents
*/
JobDetailsResponseData.prototype['documents'] = undefined;
/**
* An array of information for each run
* @member {Array.<module:model/RunsForJob>} runs
*/
JobDetailsResponseData.prototype['runs'] = undefined;
/**
* A list of tasks for the given job
* @member {Array.<String>} tasks
*/
JobDetailsResponseData.prototype['tasks'] = undefined;
var _default = exports.default = JobDetailsResponseData;