@factset/sdk-newsapifordigitalportals
Advanced tools
Comparing version 0.9.0 to 0.9.1
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -50,2 +44,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -67,5 +63,5 @@ * Prime Developer Trial | ||
* @module api/NewsApi | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsApi = /*#__PURE__*/function () { | ||
class NewsApi { | ||
/** | ||
@@ -78,5 +74,4 @@ * Constructs a new NewsApi. | ||
*/ | ||
function NewsApi(apiClient) { | ||
(0, _classCallCheck2["default"])(this, NewsApi); | ||
this.apiClient = apiClient || _ApiClient["default"].instance; | ||
constructor(apiClient) { | ||
this.apiClient = apiClient || _ApiClient.default.instance; | ||
} | ||
@@ -95,664 +90,632 @@ /** | ||
(0, _createClass2["default"])(NewsApi, [{ | ||
key: "getNewsArticleGetWithHttpInfo", | ||
value: function getNewsArticleGetWithHttpInfo(code, opts) { | ||
opts = opts || {}; | ||
var postBody = null; // verify the required parameter 'code' is set | ||
getNewsArticleGetWithHttpInfo(code, opts) { | ||
opts = opts || {}; | ||
let postBody = null; // verify the required parameter 'code' is set | ||
if (code === undefined || code === null) { | ||
throw new Error("Missing the required parameter 'code' when calling getNewsArticleGet"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = { | ||
'code': code, | ||
'includeMedia': opts['includeMedia'], | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse["default"]; | ||
return this.apiClient.callApi('/news/article/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
if (code === undefined || code === null) { | ||
throw new Error("Missing the required parameter 'code' when calling getNewsArticleGet"); | ||
} | ||
/** | ||
* Details for a news article. | ||
* Details for a news article. | ||
* @param {String} code Identifier of a news article. | ||
* @param {Object} opts Optional parameters | ||
* @param {Boolean} opts.includeMedia If true, media references are included if available. (default to false) | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse200} | ||
*/ | ||
}, { | ||
key: "getNewsArticleGet", | ||
value: function getNewsArticleGet(code, opts) { | ||
return this.getNewsArticleGetWithHttpInfo(code, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details for a news article type. | ||
* Details for a news article type. | ||
* @param {Number} id Identifier of a news article type. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2003} and HTTP response | ||
*/ | ||
let pathParams = {}; | ||
let queryParams = { | ||
'code': code, | ||
'includeMedia': opts['includeMedia'], | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse.default; | ||
return this.apiClient.callApi('/news/article/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details for a news article. | ||
* Details for a news article. | ||
* @param {String} code Identifier of a news article. | ||
* @param {Object} opts Optional parameters | ||
* @param {Boolean} opts.includeMedia If true, media references are included if available. (default to false) | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse200} | ||
*/ | ||
}, { | ||
key: "getNewsArticleTypeGetWithHttpInfo", | ||
value: function getNewsArticleTypeGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
var postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsArticleTypeGet"); | ||
} | ||
getNewsArticleGet(code, opts) { | ||
return this.getNewsArticleGetWithHttpInfo(code, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details for a news article type. | ||
* Details for a news article type. | ||
* @param {Number} id Identifier of a news article type. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2003} and HTTP response | ||
*/ | ||
var pathParams = {}; | ||
var queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse4["default"]; | ||
return this.apiClient.callApi('/news/article/type/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details for a news article type. | ||
* Details for a news article type. | ||
* @param {Number} id Identifier of a news article type. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2003} | ||
*/ | ||
}, { | ||
key: "getNewsArticleTypeGet", | ||
value: function getNewsArticleTypeGet(id, opts) { | ||
return this.getNewsArticleTypeGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of news article types. | ||
* List of news article types. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2004} and HTTP response | ||
*/ | ||
getNewsArticleTypeGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
let postBody = null; // verify the required parameter 'id' is set | ||
}, { | ||
key: "getNewsArticleTypeListWithHttpInfo", | ||
value: function getNewsArticleTypeListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
var postBody = null; | ||
var pathParams = {}; | ||
var queryParams = { | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse5["default"]; | ||
return this.apiClient.callApi('/news/article/type/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsArticleTypeGet"); | ||
} | ||
/** | ||
* List of news article types. | ||
* List of news article types. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2004} | ||
*/ | ||
}, { | ||
key: "getNewsArticleTypeList", | ||
value: function getNewsArticleTypeList(opts) { | ||
return this.getNewsArticleTypeListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details of a distributor. | ||
* Details of a distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2005} and HTTP response | ||
*/ | ||
let pathParams = {}; | ||
let queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse4.default; | ||
return this.apiClient.callApi('/news/article/type/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details for a news article type. | ||
* Details for a news article type. | ||
* @param {Number} id Identifier of a news article type. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2003} | ||
*/ | ||
}, { | ||
key: "getNewsDistributorGetWithHttpInfo", | ||
value: function getNewsDistributorGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
var postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsDistributorGet"); | ||
} | ||
getNewsArticleTypeGet(id, opts) { | ||
return this.getNewsArticleTypeGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of news article types. | ||
* List of news article types. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2004} and HTTP response | ||
*/ | ||
var pathParams = {}; | ||
var queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv') | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse6["default"]; | ||
return this.apiClient.callApi('/news/distributor/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details of a distributor. | ||
* Details of a distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2005} | ||
*/ | ||
}, { | ||
key: "getNewsDistributorGet", | ||
value: function getNewsDistributorGet(id, opts) { | ||
return this.getNewsDistributorGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of distributors. | ||
* List of distributors. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of distributors. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2006} and HTTP response | ||
*/ | ||
getNewsArticleTypeListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
let postBody = null; | ||
let pathParams = {}; | ||
let queryParams = { | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_language': opts['language'] | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse5.default; | ||
return this.apiClient.callApi('/news/article/type/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of news article types. | ||
* List of news article types. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {String} opts.language ISO 639-1 code of the language. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2004} | ||
*/ | ||
}, { | ||
key: "getNewsDistributorListWithHttpInfo", | ||
value: function getNewsDistributorListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
var postBody = null; | ||
var pathParams = {}; | ||
var queryParams = { | ||
'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'), | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv') | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse7["default"]; | ||
return this.apiClient.callApi('/news/distributor/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of distributors. | ||
* List of distributors. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of distributors. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2006} | ||
*/ | ||
}, { | ||
key: "getNewsDistributorList", | ||
value: function getNewsDistributorList(opts) { | ||
return this.getNewsDistributorListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details of a publisher. | ||
* Details of a publisher. | ||
* @param {Number} id Identifier of a publisher. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2007} and HTTP response | ||
*/ | ||
getNewsArticleTypeList(opts) { | ||
return this.getNewsArticleTypeListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details of a distributor. | ||
* Details of a distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2005} and HTTP response | ||
*/ | ||
}, { | ||
key: "getNewsPublisherGetWithHttpInfo", | ||
value: function getNewsPublisherGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
var postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsPublisherGet"); | ||
} | ||
getNewsDistributorGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
let postBody = null; // verify the required parameter 'id' is set | ||
var pathParams = {}; | ||
var queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv') | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse8["default"]; | ||
return this.apiClient.callApi('/news/publisher/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsDistributorGet"); | ||
} | ||
/** | ||
* Details of a publisher. | ||
* Details of a publisher. | ||
* @param {Number} id Identifier of a publisher. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2007} | ||
*/ | ||
}, { | ||
key: "getNewsPublisherGet", | ||
value: function getNewsPublisherGet(id, opts) { | ||
return this.getNewsPublisherGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of publishers. | ||
* List of publishers. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of publishers. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @param {Number} opts.paginationOffset Non-negative number of entries to skip, or 0 (default). (default to 0.0) | ||
* @param {Number} opts.paginationLimit Non-negative maximum number of entries to return. (default to 20.0) | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2008} and HTTP response | ||
*/ | ||
let pathParams = {}; | ||
let queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv') | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse6.default; | ||
return this.apiClient.callApi('/news/distributor/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details of a distributor. | ||
* Details of a distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2005} | ||
*/ | ||
}, { | ||
key: "getNewsPublisherListWithHttpInfo", | ||
value: function getNewsPublisherListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
var postBody = null; | ||
var pathParams = {}; | ||
var queryParams = { | ||
'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'), | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv'), | ||
'_paginationOffset': opts['paginationOffset'], | ||
'_paginationLimit': opts['paginationLimit'] | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse9["default"]; | ||
return this.apiClient.callApi('/news/publisher/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of publishers. | ||
* List of publishers. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of publishers. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @param {Number} opts.paginationOffset Non-negative number of entries to skip, or 0 (default). (default to 0.0) | ||
* @param {Number} opts.paginationLimit Non-negative maximum number of entries to return. (default to 20.0) | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2008} | ||
*/ | ||
}, { | ||
key: "getNewsPublisherList", | ||
value: function getNewsPublisherList(opts) { | ||
return this.getNewsPublisherListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of publishers provided by the given distributor. | ||
* List of publishers provided by the given distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2009} and HTTP response | ||
*/ | ||
getNewsDistributorGet(id, opts) { | ||
return this.getNewsDistributorGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of distributors. | ||
* List of distributors. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of distributors. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2006} and HTTP response | ||
*/ | ||
}, { | ||
key: "getNewsPublisherListByDistributorWithHttpInfo", | ||
value: function getNewsPublisherListByDistributorWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
var postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsPublisherListByDistributor"); | ||
} | ||
getNewsDistributorListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
let postBody = null; | ||
let pathParams = {}; | ||
let queryParams = { | ||
'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'), | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv') | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse7.default; | ||
return this.apiClient.callApi('/news/distributor/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of distributors. | ||
* List of distributors. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of distributors. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2006} | ||
*/ | ||
var pathParams = {}; | ||
var queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv') | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse10["default"]; | ||
return this.apiClient.callApi('/news/publisher/listByDistributor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of publishers provided by the given distributor. | ||
* List of publishers provided by the given distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2009} | ||
*/ | ||
}, { | ||
key: "getNewsPublisherListByDistributor", | ||
value: function getNewsPublisherListByDistributor(id, opts) { | ||
return this.getNewsPublisherListByDistributorWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of news articles. | ||
* List of news articles. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
getNewsDistributorList(opts) { | ||
return this.getNewsDistributorListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Details of a publisher. | ||
* Details of a publisher. | ||
* @param {Number} id Identifier of a publisher. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2007} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListWithHttpInfo", | ||
value: function postNewsArticleListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
var postBody = opts['body']; | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse2["default"]; | ||
return this.apiClient.callApi('/news/article/list', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of news articles. | ||
* List of news articles. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
}, { | ||
key: "postNewsArticleList", | ||
value: function postNewsArticleList(opts) { | ||
return this.postNewsArticleListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
getNewsPublisherGetWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
let postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsPublisherGet"); | ||
} | ||
/** | ||
* List news articles of an article chain. | ||
* List news articles of an article chain. | ||
* @param {module:model/InlineObject1} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2002} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByChainWithHttpInfo", | ||
value: function postNewsArticleListByChainWithHttpInfo(body) { | ||
var postBody = body; // verify the required parameter 'body' is set | ||
let pathParams = {}; | ||
let queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv') | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse8.default; | ||
return this.apiClient.callApi('/news/publisher/get', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Details of a publisher. | ||
* Details of a publisher. | ||
* @param {Number} id Identifier of a publisher. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2007} | ||
*/ | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByChain"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse3["default"]; | ||
return this.apiClient.callApi('/news/article/listByChain', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List news articles of an article chain. | ||
* List news articles of an article chain. | ||
* @param {module:model/InlineObject1} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2002} | ||
*/ | ||
getNewsPublisherGet(id, opts) { | ||
return this.getNewsPublisherGetWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of publishers. | ||
* List of publishers. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of publishers. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @param {Number} opts.paginationOffset Non-negative number of entries to skip, or 0 (default). (default to 0.0) | ||
* @param {Number} opts.paginationLimit Non-negative maximum number of entries to return. (default to 20.0) | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2008} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByChain", | ||
value: function postNewsArticleListByChain(body) { | ||
return this.postNewsArticleListByChainWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* News articles for instruments that are constituents of the given indices. | ||
* News articles for instruments that are constituents of the given indices. | ||
* @param {module:model/InlineObject2} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByIndexWithHttpInfo", | ||
value: function postNewsArticleListByIndexWithHttpInfo(body) { | ||
var postBody = body; // verify the required parameter 'body' is set | ||
getNewsPublisherListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
let postBody = null; | ||
let pathParams = {}; | ||
let queryParams = { | ||
'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'), | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv'), | ||
'_paginationOffset': opts['paginationOffset'], | ||
'_paginationLimit': opts['paginationLimit'] | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse9.default; | ||
return this.apiClient.callApi('/news/publisher/list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of publishers. | ||
* List of publishers. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<Number>} opts.ids Identifiers of publishers. | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @param {Number} opts.paginationOffset Non-negative number of entries to skip, or 0 (default). (default to 0.0) | ||
* @param {Number} opts.paginationLimit Non-negative maximum number of entries to return. (default to 20.0) | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2008} | ||
*/ | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByIndex"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse2["default"]; | ||
return this.apiClient.callApi('/news/article/listByIndex', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* News articles for instruments that are constituents of the given indices. | ||
* News articles for instruments that are constituents of the given indices. | ||
* @param {module:model/InlineObject2} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
getNewsPublisherList(opts) { | ||
return this.getNewsPublisherListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of publishers provided by the given distributor. | ||
* List of publishers provided by the given distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2009} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByIndex", | ||
value: function postNewsArticleListByIndex(body) { | ||
return this.postNewsArticleListByIndexWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
getNewsPublisherListByDistributorWithHttpInfo(id, opts) { | ||
opts = opts || {}; | ||
let postBody = null; // verify the required parameter 'id' is set | ||
if (id === undefined || id === null) { | ||
throw new Error("Missing the required parameter 'id' when calling getNewsPublisherListByDistributor"); | ||
} | ||
/** | ||
* News articles for instruments. | ||
* News articles for instruments. | ||
* @param {module:model/InlineObject3} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByInstrumentWithHttpInfo", | ||
value: function postNewsArticleListByInstrumentWithHttpInfo(body) { | ||
var postBody = body; // verify the required parameter 'body' is set | ||
let pathParams = {}; | ||
let queryParams = { | ||
'id': id, | ||
'_attributes': this.apiClient.buildCollectionParam(opts['attributes'], 'csv'), | ||
'_sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv') | ||
}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = []; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse10.default; | ||
return this.apiClient.callApi('/news/publisher/listByDistributor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of publishers provided by the given distributor. | ||
* List of publishers provided by the given distributor. | ||
* @param {Number} id Identifier of a distributor. | ||
* @param {Object} opts Optional parameters | ||
* @param {Array.<String>} opts.attributes Limit the attributes returned in the response to the specified set. | ||
* @param {Array.<module:model/String>} opts.sort Sortable attributes. The sort order is ascending unless it is prefixed with a minus sign, in which case it is descending. A list of at most 1 (possibly prefixed) attribute name(s) is allowed. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2009} | ||
*/ | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByInstrument"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse2["default"]; | ||
return this.apiClient.callApi('/news/article/listByInstrument', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* News articles for instruments. | ||
* News articles for instruments. | ||
* @param {module:model/InlineObject3} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
getNewsPublisherListByDistributor(id, opts) { | ||
return this.getNewsPublisherListByDistributorWithHttpInfo(id, opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List of news articles. | ||
* List of news articles. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByInstrument", | ||
value: function postNewsArticleListByInstrument(body) { | ||
return this.postNewsArticleListByInstrumentWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List news articles which contain media of specific media kinds. | ||
* List news articles which contain media of specific media kinds. | ||
* @param {module:model/InlineObject4} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByMediaKindWithHttpInfo", | ||
value: function postNewsArticleListByMediaKindWithHttpInfo(body) { | ||
var postBody = body; // verify the required parameter 'body' is set | ||
postNewsArticleListWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
let postBody = opts['body']; | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse2.default; | ||
return this.apiClient.callApi('/news/article/list', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List of news articles. | ||
* List of news articles. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByMediaKind"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse2["default"]; | ||
return this.apiClient.callApi('/news/article/listByMediaKind', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List news articles which contain media of specific media kinds. | ||
* List news articles which contain media of specific media kinds. | ||
* @param {module:model/InlineObject4} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
postNewsArticleList(opts) { | ||
return this.postNewsArticleListWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List news articles of an article chain. | ||
* List news articles of an article chain. | ||
* @param {module:model/InlineObject1} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2002} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleListByMediaKind", | ||
value: function postNewsArticleListByMediaKind(body) { | ||
return this.postNewsArticleListByMediaKindWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
postNewsArticleListByChainWithHttpInfo(body) { | ||
let postBody = body; // verify the required parameter 'body' is set | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByChain"); | ||
} | ||
/** | ||
* Search for news articles using a fulltext search. | ||
* Search for news articles using a fulltext search. All specified criteria need to be fulfilled for an article to match. Each criterion is handled according to its selectionType; \"include\" requires the criterion to evaluate to true, \"exclude\" requires the criterion to evaluate to false. A criterion is fulfilled when at least one of its values is found. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject5} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsArticleSearchByTextWithHttpInfo", | ||
value: function postNewsArticleSearchByTextWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
var postBody = opts['body']; | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse2["default"]; | ||
return this.apiClient.callApi('/news/article/searchByText', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse3.default; | ||
return this.apiClient.callApi('/news/article/listByChain', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List news articles of an article chain. | ||
* List news articles of an article chain. | ||
* @param {module:model/InlineObject1} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2002} | ||
*/ | ||
postNewsArticleListByChain(body) { | ||
return this.postNewsArticleListByChainWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* News articles for instruments that are constituents of the given indices. | ||
* News articles for instruments that are constituents of the given indices. | ||
* @param {module:model/InlineObject2} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
postNewsArticleListByIndexWithHttpInfo(body) { | ||
let postBody = body; // verify the required parameter 'body' is set | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByIndex"); | ||
} | ||
/** | ||
* Search for news articles using a fulltext search. | ||
* Search for news articles using a fulltext search. All specified criteria need to be fulfilled for an article to match. Each criterion is handled according to its selectionType; \"include\" requires the criterion to evaluate to true, \"exclude\" requires the criterion to evaluate to false. A criterion is fulfilled when at least one of its values is found. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject5} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
}, { | ||
key: "postNewsArticleSearchByText", | ||
value: function postNewsArticleSearchByText(opts) { | ||
return this.postNewsArticleSearchByTextWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse2.default; | ||
return this.apiClient.callApi('/news/article/listByIndex', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* News articles for instruments that are constituents of the given indices. | ||
* News articles for instruments that are constituents of the given indices. | ||
* @param {module:model/InlineObject2} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
postNewsArticleListByIndex(body) { | ||
return this.postNewsArticleListByIndexWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* News articles for instruments. | ||
* News articles for instruments. | ||
* @param {module:model/InlineObject3} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
postNewsArticleListByInstrumentWithHttpInfo(body) { | ||
let postBody = body; // verify the required parameter 'body' is set | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByInstrument"); | ||
} | ||
/** | ||
* Search for publishers. | ||
* Search for publishers by the name of the publisher. | ||
* @param {module:model/InlineObject6} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2009} and HTTP response | ||
*/ | ||
}, { | ||
key: "postNewsPublisherSearchByNameWithHttpInfo", | ||
value: function postNewsPublisherSearchByNameWithHttpInfo(body) { | ||
var postBody = body; // verify the required parameter 'body' is set | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse2.default; | ||
return this.apiClient.callApi('/news/article/listByInstrument', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* News articles for instruments. | ||
* News articles for instruments. | ||
* @param {module:model/InlineObject3} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsPublisherSearchByName"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = {}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/json']; | ||
var returnType = _InlineResponse10["default"]; | ||
return this.apiClient.callApi('/news/publisher/searchByName', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
postNewsArticleListByInstrument(body) { | ||
return this.postNewsArticleListByInstrumentWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* List news articles which contain media of specific media kinds. | ||
* List news articles which contain media of specific media kinds. | ||
* @param {module:model/InlineObject4} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
postNewsArticleListByMediaKindWithHttpInfo(body) { | ||
let postBody = body; // verify the required parameter 'body' is set | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsArticleListByMediaKind"); | ||
} | ||
/** | ||
* Search for publishers. | ||
* Search for publishers by the name of the publisher. | ||
* @param {module:model/InlineObject6} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2009} | ||
*/ | ||
}, { | ||
key: "postNewsPublisherSearchByName", | ||
value: function postNewsPublisherSearchByName(body) { | ||
return this.postNewsPublisherSearchByNameWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse2.default; | ||
return this.apiClient.callApi('/news/article/listByMediaKind', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* List news articles which contain media of specific media kinds. | ||
* List news articles which contain media of specific media kinds. | ||
* @param {module:model/InlineObject4} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
postNewsArticleListByMediaKind(body) { | ||
return this.postNewsArticleListByMediaKindWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Search for news articles using a fulltext search. | ||
* Search for news articles using a fulltext search. All specified criteria need to be fulfilled for an article to match. Each criterion is handled according to its selectionType; \"include\" requires the criterion to evaluate to true, \"exclude\" requires the criterion to evaluate to false. A criterion is fulfilled when at least one of its values is found. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject5} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response | ||
*/ | ||
postNewsArticleSearchByTextWithHttpInfo(opts) { | ||
opts = opts || {}; | ||
let postBody = opts['body']; | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse2.default; | ||
return this.apiClient.callApi('/news/article/searchByText', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Search for news articles using a fulltext search. | ||
* Search for news articles using a fulltext search. All specified criteria need to be fulfilled for an article to match. Each criterion is handled according to its selectionType; \"include\" requires the criterion to evaluate to true, \"exclude\" requires the criterion to evaluate to false. A criterion is fulfilled when at least one of its values is found. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/InlineObject5} opts.body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} | ||
*/ | ||
postNewsArticleSearchByText(opts) { | ||
return this.postNewsArticleSearchByTextWithHttpInfo(opts).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
/** | ||
* Search for publishers. | ||
* Search for publishers by the name of the publisher. | ||
* @param {module:model/InlineObject6} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2009} and HTTP response | ||
*/ | ||
postNewsPublisherSearchByNameWithHttpInfo(body) { | ||
let postBody = body; // verify the required parameter 'body' is set | ||
if (body === undefined || body === null) { | ||
throw new Error("Missing the required parameter 'body' when calling postNewsPublisherSearchByName"); | ||
} | ||
}]); | ||
return NewsApi; | ||
}(); | ||
exports["default"] = NewsApi; | ||
let pathParams = {}; | ||
let queryParams = {}; | ||
let headerParams = {}; | ||
let formParams = {}; | ||
let authNames = ['FactSetApiKey', 'FactSetOAuth2']; | ||
let contentTypes = ['application/json']; | ||
let accepts = ['application/json']; | ||
let returnType = _InlineResponse10.default; | ||
return this.apiClient.callApi('/news/publisher/searchByName', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); | ||
} | ||
/** | ||
* Search for publishers. | ||
* Search for publishers by the name of the publisher. | ||
* @param {module:model/InlineObject6} body | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2009} | ||
*/ | ||
postNewsPublisherSearchByName(body) { | ||
return this.postNewsPublisherSearchByNameWithHttpInfo(body).then(function (response_and_data) { | ||
return response_and_data.data; | ||
}); | ||
} | ||
} | ||
exports.default = NewsApi; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _superagent = _interopRequireDefault(require("superagent")); | ||
@@ -24,11 +12,20 @@ | ||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
/** | ||
* Prime Developer Trial | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: v1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
* | ||
*/ | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
/** | ||
* @module ApiClient | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
@@ -43,3 +40,3 @@ | ||
*/ | ||
var ApiClient = /*#__PURE__*/function () { | ||
class ApiClient { | ||
/** | ||
@@ -50,6 +47,3 @@ * The base URL against which to resolve every API call's (relative) path. | ||
*/ | ||
function ApiClient() { | ||
var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'http://api.factset.com/wealth/v1'; | ||
(0, _classCallCheck2["default"])(this, ApiClient); | ||
constructor(basePath = 'http://api.factset.com/wealth/v1') { | ||
/** | ||
@@ -88,3 +82,3 @@ * The base URL against which to resolve every API call's (relative) path. | ||
this.defaultHeaders = { | ||
'User-Agent': 'fds-sdk/javascript/NewsAPIforDigitalPortals/0.9.0' | ||
'User-Agent': 'fds-sdk/javascript/NewsAPIforDigitalPortals/0.9.1' | ||
}; | ||
@@ -119,3 +113,3 @@ /** | ||
if (typeof window === 'undefined') { | ||
this.agent = new _superagent["default"].agent(); | ||
this.agent = new _superagent.default.agent(); | ||
} | ||
@@ -141,703 +135,587 @@ /* | ||
(0, _createClass2["default"])(ApiClient, [{ | ||
key: "paramToString", | ||
value: function paramToString(param) { | ||
if (param == undefined || param == null) { | ||
return ''; | ||
} | ||
paramToString(param) { | ||
if (param == undefined || param == null) { | ||
return ''; | ||
} | ||
if (param instanceof Date) { | ||
return param.toJSON(); | ||
} | ||
if (param instanceof Date) { | ||
return param.toJSON(); | ||
} | ||
if (ApiClient.canBeJsonified(param)) { | ||
return JSON.stringify(param); | ||
} | ||
return param.toString(); | ||
if (ApiClient.canBeJsonified(param)) { | ||
return JSON.stringify(param); | ||
} | ||
/** | ||
* Returns a boolean indicating if the parameter could be JSON.stringified | ||
* @param param The actual parameter | ||
* @returns {Boolean} Flag indicating if <code>param</code> can be JSON.stringified | ||
*/ | ||
}, { | ||
key: "buildUrl", | ||
value: | ||
/** | ||
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. | ||
* NOTE: query parameters are not handled here. | ||
* @param {String} path The path to append to the base URL. | ||
* @param {Object} pathParams The parameter values to append. | ||
* @param {String} apiBasePath Base path defined in the path, operation level to override the default one | ||
* @returns {String} The encoded path with parameter values substituted. | ||
*/ | ||
function buildUrl(path, pathParams, apiBasePath) { | ||
var _this = this; | ||
return param.toString(); | ||
} | ||
/** | ||
* Returns a boolean indicating if the parameter could be JSON.stringified | ||
* @param param The actual parameter | ||
* @returns {Boolean} Flag indicating if <code>param</code> can be JSON.stringified | ||
*/ | ||
if (!path.match(/^\//)) { | ||
path = '/' + path; | ||
} | ||
var url = this.basePath + path; // use API (operation, path) base path if defined | ||
static canBeJsonified(str) { | ||
if (typeof str !== 'string' && typeof str !== 'object') return false; | ||
if (apiBasePath !== null && apiBasePath !== undefined) { | ||
url = apiBasePath + path; | ||
} | ||
try { | ||
const type = str.toString(); | ||
return type === '[object Object]' || type === '[object Array]'; | ||
} catch (err) { | ||
return false; | ||
} | ||
} | ||
url = url.replace(/\{([\w-\.]+)\}/g, function (fullMatch, key) { | ||
var value; | ||
/** | ||
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. | ||
* NOTE: query parameters are not handled here. | ||
* @param {String} path The path to append to the base URL. | ||
* @param {Object} pathParams The parameter values to append. | ||
* @param {String} apiBasePath Base path defined in the path, operation level to override the default one | ||
* @returns {String} The encoded path with parameter values substituted. | ||
*/ | ||
buildUrl(path, pathParams, apiBasePath) { | ||
if (!path.match(/^\//)) { | ||
path = '/' + path; | ||
} | ||
if (pathParams.hasOwnProperty(key)) { | ||
value = _this.paramToString(pathParams[key]); | ||
} else { | ||
value = fullMatch; | ||
} | ||
var url = this.basePath + path; // use API (operation, path) base path if defined | ||
return encodeURIComponent(value); | ||
}); | ||
return url; | ||
if (apiBasePath !== null && apiBasePath !== undefined) { | ||
url = apiBasePath + path; | ||
} | ||
/** | ||
* Checks whether the given content type represents JSON.<br> | ||
* JSON content type examples:<br> | ||
* <ul> | ||
* <li>application/json</li> | ||
* <li>application/json; charset=UTF8</li> | ||
* <li>APPLICATION/JSON</li> | ||
* </ul> | ||
* @param {String} contentType The MIME content type to check. | ||
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>. | ||
*/ | ||
}, { | ||
key: "isJsonMime", | ||
value: function isJsonMime(contentType) { | ||
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); | ||
} | ||
/** | ||
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. | ||
* @param {Array.<String>} contentTypes | ||
* @returns {String} The chosen content type, preferring JSON. | ||
*/ | ||
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => { | ||
var value; | ||
}, { | ||
key: "jsonPreferredMime", | ||
value: function jsonPreferredMime(contentTypes) { | ||
for (var i = 0; i < contentTypes.length; i++) { | ||
if (this.isJsonMime(contentTypes[i])) { | ||
return contentTypes[i]; | ||
} | ||
if (pathParams.hasOwnProperty(key)) { | ||
value = this.paramToString(pathParams[key]); | ||
} else { | ||
value = fullMatch; | ||
} | ||
return contentTypes[0]; | ||
} | ||
/** | ||
* Checks whether the given parameter value represents file-like content. | ||
* @param param The parameter to check. | ||
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file. | ||
*/ | ||
return encodeURIComponent(value); | ||
}); | ||
return url; | ||
} | ||
/** | ||
* Checks whether the given content type represents JSON.<br> | ||
* JSON content type examples:<br> | ||
* <ul> | ||
* <li>application/json</li> | ||
* <li>application/json; charset=UTF8</li> | ||
* <li>APPLICATION/JSON</li> | ||
* </ul> | ||
* @param {String} contentType The MIME content type to check. | ||
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>. | ||
*/ | ||
}, { | ||
key: "isFileParam", | ||
value: function isFileParam(param) { | ||
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify) | ||
if (typeof require === 'function') { | ||
var fs; | ||
try { | ||
fs = require('fs'); | ||
} catch (err) {} | ||
isJsonMime(contentType) { | ||
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); | ||
} | ||
/** | ||
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. | ||
* @param {Array.<String>} contentTypes | ||
* @returns {String} The chosen content type, preferring JSON. | ||
*/ | ||
if (fs && fs.ReadStream && param instanceof fs.ReadStream) { | ||
return true; | ||
} | ||
} // Buffer in Node.js | ||
jsonPreferredMime(contentTypes) { | ||
for (var i = 0; i < contentTypes.length; i++) { | ||
if (this.isJsonMime(contentTypes[i])) { | ||
return contentTypes[i]; | ||
} | ||
} | ||
if (typeof Buffer === 'function' && param instanceof Buffer) { | ||
return true; | ||
} // Blob in browser | ||
return contentTypes[0]; | ||
} | ||
/** | ||
* Checks whether the given parameter value represents file-like content. | ||
* @param param The parameter to check. | ||
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file. | ||
*/ | ||
if (typeof Blob === 'function' && param instanceof Blob) { | ||
return true; | ||
} // File in browser (it seems File object is also instance of Blob, but keep this for safe) | ||
isFileParam(param) { | ||
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify) | ||
if (typeof require === 'function') { | ||
let fs; | ||
try { | ||
fs = require('fs'); | ||
} catch (err) {} | ||
if (typeof File === 'function' && param instanceof File) { | ||
if (fs && fs.ReadStream && param instanceof fs.ReadStream) { | ||
return true; | ||
} | ||
} // Buffer in Node.js | ||
return false; | ||
} | ||
/** | ||
* Normalizes parameter values: | ||
* <ul> | ||
* <li>remove nils</li> | ||
* <li>keep files and arrays</li> | ||
* <li>format to string with `paramToString` for other cases</li> | ||
* </ul> | ||
* @param {Object.<String, Object>} params The parameters as object properties. | ||
* @returns {Object.<String, Object>} normalized parameters. | ||
*/ | ||
}, { | ||
key: "normalizeParams", | ||
value: function normalizeParams(params) { | ||
var newParams = {}; | ||
if (typeof Buffer === 'function' && param instanceof Buffer) { | ||
return true; | ||
} // Blob in browser | ||
for (var key in params) { | ||
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { | ||
var value = params[key]; | ||
if (this.isFileParam(value) || Array.isArray(value)) { | ||
newParams[key] = value; | ||
} else { | ||
newParams[key] = this.paramToString(value); | ||
} | ||
} | ||
} | ||
if (typeof Blob === 'function' && param instanceof Blob) { | ||
return true; | ||
} // File in browser (it seems File object is also instance of Blob, but keep this for safe) | ||
return newParams; | ||
if (typeof File === 'function' && param instanceof File) { | ||
return true; | ||
} | ||
/** | ||
* Builds a string representation of an array-type actual parameter, according to the given collection format. | ||
* @param {Array} param An array parameter. | ||
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. | ||
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns | ||
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>. | ||
*/ | ||
}, { | ||
key: "buildCollectionParam", | ||
value: function buildCollectionParam(param, collectionFormat) { | ||
if (param == null) { | ||
return null; | ||
} | ||
return false; | ||
} | ||
/** | ||
* Normalizes parameter values: | ||
* <ul> | ||
* <li>remove nils</li> | ||
* <li>keep files and arrays</li> | ||
* <li>format to string with `paramToString` for other cases</li> | ||
* </ul> | ||
* @param {Object.<String, Object>} params The parameters as object properties. | ||
* @returns {Object.<String, Object>} normalized parameters. | ||
*/ | ||
switch (collectionFormat) { | ||
case 'csv': | ||
return param.map(this.paramToString, this).join(','); | ||
case 'ssv': | ||
return param.map(this.paramToString, this).join(' '); | ||
normalizeParams(params) { | ||
var newParams = {}; | ||
case 'tsv': | ||
return param.map(this.paramToString, this).join('\t'); | ||
for (var key in params) { | ||
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { | ||
var value = params[key]; | ||
case 'pipes': | ||
return param.map(this.paramToString, this).join('|'); | ||
if (this.isFileParam(value) || Array.isArray(value)) { | ||
newParams[key] = value; | ||
} else { | ||
newParams[key] = this.paramToString(value); | ||
} | ||
} | ||
} | ||
case 'multi': | ||
//return the array directly as SuperAgent will handle it as expected | ||
return param.map(this.paramToString, this); | ||
return newParams; | ||
} | ||
/** | ||
* Builds a string representation of an array-type actual parameter, according to the given collection format. | ||
* @param {Array} param An array parameter. | ||
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. | ||
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns | ||
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>. | ||
*/ | ||
case 'passthrough': | ||
return param; | ||
default: | ||
throw new Error('Unknown collection format: ' + collectionFormat); | ||
} | ||
buildCollectionParam(param, collectionFormat) { | ||
if (param == null) { | ||
return null; | ||
} | ||
/** | ||
* Applies authentication headers to the request. | ||
* @param {Object} request The request object created by a <code>superagent()</code> call. | ||
* @param {Array.<String>} authNames An array of authentication method names. | ||
*/ | ||
}, { | ||
key: "applyAuthToRequest", | ||
value: function () { | ||
var _applyAuthToRequest = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request, authNames) { | ||
var _iterator, _step, authName, auth, localVarBearerToken, data, token; | ||
switch (collectionFormat) { | ||
case 'csv': | ||
return param.map(this.paramToString, this).join(','); | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_iterator = _createForOfIteratorHelper(authNames); | ||
_context.prev = 1; | ||
case 'ssv': | ||
return param.map(this.paramToString, this).join(' '); | ||
_iterator.s(); | ||
case 'tsv': | ||
return param.map(this.paramToString, this).join('\t'); | ||
case 3: | ||
if ((_step = _iterator.n()).done) { | ||
_context.next = 27; | ||
break; | ||
} | ||
case 'pipes': | ||
return param.map(this.paramToString, this).join('|'); | ||
authName = _step.value; | ||
auth = this.authentications[authName]; | ||
_context.t0 = auth.type; | ||
_context.next = _context.t0 === 'basic' ? 9 : _context.t0 === 'bearer' ? 11 : _context.t0 === 'apiKey' ? 13 : _context.t0 === 'oauth2' ? 15 : 24; | ||
break; | ||
case 'multi': | ||
//return the array directly as SuperAgent will handle it as expected | ||
return param.map(this.paramToString, this); | ||
case 9: | ||
if (auth.username || auth.password) { | ||
request.auth(auth.username || '', auth.password || ''); | ||
} | ||
case 'passthrough': | ||
return param; | ||
return _context.abrupt("break", 25); | ||
default: | ||
throw new Error('Unknown collection format: ' + collectionFormat); | ||
} | ||
} | ||
/** | ||
* Applies authentication headers to the request. | ||
* @param {Object} request The request object created by a <code>superagent()</code> call. | ||
* @param {Array.<String>} authNames An array of authentication method names. | ||
*/ | ||
case 11: | ||
if (auth.accessToken) { | ||
localVarBearerToken = typeof auth.accessToken === 'function' ? auth.accessToken() : auth.accessToken; | ||
request.set({ | ||
'Authorization': 'Bearer ' + localVarBearerToken | ||
}); | ||
} | ||
return _context.abrupt("break", 25); | ||
async applyAuthToRequest(request, authNames) { | ||
for (const authName of authNames) { | ||
var auth = this.authentications[authName]; | ||
case 13: | ||
if (auth.apiKey) { | ||
data = {}; | ||
switch (auth.type) { | ||
case 'basic': | ||
if (auth.username || auth.password) { | ||
request.auth(auth.username || '', auth.password || ''); | ||
} | ||
if (auth.apiKeyPrefix) { | ||
data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; | ||
} else { | ||
data[auth.name] = auth.apiKey; | ||
} | ||
break; | ||
if (auth['in'] === 'header') { | ||
request.set(data); | ||
} else { | ||
request.query(data); | ||
} | ||
} | ||
case 'bearer': | ||
if (auth.accessToken) { | ||
var localVarBearerToken = typeof auth.accessToken === 'function' ? auth.accessToken() : auth.accessToken; | ||
request.set({ | ||
'Authorization': 'Bearer ' + localVarBearerToken | ||
}); | ||
} | ||
return _context.abrupt("break", 25); | ||
break; | ||
case 15: | ||
if (!(this.factsetOauth2Client !== undefined)) { | ||
_context.next = 22; | ||
break; | ||
} | ||
case 'apiKey': | ||
if (auth.apiKey) { | ||
var data = {}; | ||
_context.next = 18; | ||
return this.factsetOauth2Client.getAccessToken(); | ||
if (auth.apiKeyPrefix) { | ||
data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; | ||
} else { | ||
data[auth.name] = auth.apiKey; | ||
} | ||
case 18: | ||
token = _context.sent; | ||
request.set({ | ||
'Authorization': 'Bearer ' + token | ||
}); | ||
_context.next = 23; | ||
break; | ||
if (auth['in'] === 'header') { | ||
request.set(data); | ||
} else { | ||
request.query(data); | ||
} | ||
} | ||
case 22: | ||
if (auth.accessToken) { | ||
request.set({ | ||
'Authorization': 'Bearer ' + auth.accessToken | ||
}); | ||
} | ||
break; | ||
case 23: | ||
return _context.abrupt("break", 25); | ||
case 'oauth2': | ||
if (this.factsetOauth2Client !== undefined) { | ||
const token = await this.factsetOauth2Client.getAccessToken(); | ||
request.set({ | ||
'Authorization': 'Bearer ' + token | ||
}); | ||
} else if (auth.accessToken) { | ||
request.set({ | ||
'Authorization': 'Bearer ' + auth.accessToken | ||
}); | ||
} | ||
case 24: | ||
throw new Error('Unknown authentication type: ' + auth.type); | ||
break; | ||
case 25: | ||
_context.next = 3; | ||
break; | ||
default: | ||
throw new Error('Unknown authentication type: ' + auth.type); | ||
} | ||
} | ||
} | ||
/** | ||
* Deserializes an HTTP response body into a value of the specified type. | ||
* @param {Object} response A SuperAgent response object. | ||
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types | ||
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To | ||
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: | ||
* all properties on <code>data<code> will be converted to this type. | ||
* @returns A value of the specified type. | ||
*/ | ||
case 27: | ||
_context.next = 32; | ||
break; | ||
case 29: | ||
_context.prev = 29; | ||
_context.t1 = _context["catch"](1); | ||
deserialize(response, returnType) { | ||
if (response == null || returnType == null || response.status == 204) { | ||
return null; | ||
} // Rely on SuperAgent for parsing response body. | ||
// See http://visionmedia.github.io/superagent/#parsing-response-bodies | ||
_iterator.e(_context.t1); | ||
case 32: | ||
_context.prev = 32; | ||
var data = response.body; | ||
_iterator.f(); | ||
if (data == null || typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { | ||
// SuperAgent does not always produce a body; use the unparsed response as a fallback | ||
data = response.text; | ||
} | ||
return _context.finish(32); | ||
return ApiClient.convertToType(data, returnType); | ||
} | ||
/** | ||
* Invokes the REST service using the supplied settings and parameters. | ||
* @param {String} path The base URL to invoke. | ||
* @param {String} httpMethod The HTTP method to use. | ||
* @param {Object.<String, String>} pathParams A map of path parameters and their values. | ||
* @param {Object.<String, Object>} queryParams A map of query parameters and their values. | ||
* @param {Object.<String, Object>} headerParams A map of header parameters and their values. | ||
* @param {Object.<String, Object>} formParams A map of form parameters and their values. | ||
* @param {Object} bodyParam The value to pass as the request body. | ||
* @param {Array.<String>} authNames An array of authentication type names. | ||
* @param {Array.<String>} contentTypes An array of request MIME types. | ||
* @param {Array.<String>} accepts An array of acceptable response MIME types. | ||
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the | ||
* constructor for a complex type. | ||
* @param {String} apiBasePath base path defined in the operation/path level to override the default one | ||
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. | ||
*/ | ||
case 35: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, this, [[1, 29, 32, 35]]); | ||
})); | ||
function applyAuthToRequest(_x, _x2) { | ||
return _applyAuthToRequest.apply(this, arguments); | ||
async callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { | ||
var url = this.buildUrl(path, pathParams, apiBasePath); | ||
var request = (0, _superagent.default)(httpMethod, url); | ||
if (this.plugins !== null) { | ||
for (var index in this.plugins) { | ||
if (this.plugins.hasOwnProperty(index)) { | ||
request.use(this.plugins[index]); | ||
} | ||
} | ||
} // apply authentications | ||
return applyAuthToRequest; | ||
}() | ||
/** | ||
* Deserializes an HTTP response body into a value of the specified type. | ||
* @param {Object} response A SuperAgent response object. | ||
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types | ||
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To | ||
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: | ||
* all properties on <code>data<code> will be converted to this type. | ||
* @returns A value of the specified type. | ||
*/ | ||
}, { | ||
key: "deserialize", | ||
value: function deserialize(response, returnType) { | ||
if (response == null || returnType == null || response.status == 204) { | ||
return null; | ||
} // Rely on SuperAgent for parsing response body. | ||
// See http://visionmedia.github.io/superagent/#parsing-response-bodies | ||
await this.applyAuthToRequest(request, authNames); // set query parameters | ||
var data = response.body; | ||
if (data == null || (0, _typeof2["default"])(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { | ||
// SuperAgent does not always produce a body; use the unparsed response as a fallback | ||
data = response.text; | ||
} | ||
return ApiClient.convertToType(data, returnType); | ||
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { | ||
queryParams['_'] = new Date().getTime(); | ||
} | ||
/** | ||
* Invokes the REST service using the supplied settings and parameters. | ||
* @param {String} path The base URL to invoke. | ||
* @param {String} httpMethod The HTTP method to use. | ||
* @param {Object.<String, String>} pathParams A map of path parameters and their values. | ||
* @param {Object.<String, Object>} queryParams A map of query parameters and their values. | ||
* @param {Object.<String, Object>} headerParams A map of header parameters and their values. | ||
* @param {Object.<String, Object>} formParams A map of form parameters and their values. | ||
* @param {Object} bodyParam The value to pass as the request body. | ||
* @param {Array.<String>} authNames An array of authentication type names. | ||
* @param {Array.<String>} contentTypes An array of request MIME types. | ||
* @param {Array.<String>} accepts An array of acceptable response MIME types. | ||
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the | ||
* constructor for a complex type. | ||
* @param {String} apiBasePath base path defined in the operation/path level to override the default one | ||
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. | ||
*/ | ||
}, { | ||
key: "callApi", | ||
value: function () { | ||
var _callApi = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { | ||
var _this2 = this; | ||
request.query(this.normalizeParams(queryParams)); // set header parameters | ||
var url, request, index, contentType, _formParams, key, _formParamsValue, accept; | ||
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user | ||
return _regenerator["default"].wrap(function _callee2$(_context2) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
case 0: | ||
url = this.buildUrl(path, pathParams, apiBasePath); | ||
request = (0, _superagent["default"])(httpMethod, url); | ||
if (this.requestAgent) { | ||
request.agent(this.requestAgent); | ||
} // set request timeout | ||
if (this.plugins !== null) { | ||
for (index in this.plugins) { | ||
if (this.plugins.hasOwnProperty(index)) { | ||
request.use(this.plugins[index]); | ||
} | ||
} | ||
} // apply authentications | ||
request.timeout(this.timeout); | ||
var contentType = this.jsonPreferredMime(contentTypes); | ||
_context2.next = 5; | ||
return this.applyAuthToRequest(request, authNames); | ||
if (contentType) { | ||
// Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) | ||
if (contentType != 'multipart/form-data') { | ||
request.type(contentType); | ||
} | ||
} | ||
case 5: | ||
// set query parameters | ||
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { | ||
queryParams['_'] = new Date().getTime(); | ||
} | ||
if (contentType === 'application/x-www-form-urlencoded') { | ||
request.send(_querystring.default.stringify(this.normalizeParams(formParams))); | ||
} else if (contentType == 'multipart/form-data') { | ||
var _formParams = this.normalizeParams(formParams); | ||
request.query(this.normalizeParams(queryParams)); // set header parameters | ||
for (var key in _formParams) { | ||
if (_formParams.hasOwnProperty(key)) { | ||
let _formParamsValue = _formParams[key]; | ||
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user | ||
if (this.isFileParam(_formParamsValue)) { | ||
// file field | ||
request.attach(key, _formParamsValue); | ||
} else if (Array.isArray(_formParamsValue) && _formParamsValue.length && this.isFileParam(_formParamsValue[0])) { | ||
// multiple files | ||
_formParamsValue.forEach(file => request.attach(key, file)); | ||
} else { | ||
request.field(key, _formParamsValue); | ||
} | ||
} | ||
} | ||
} else if (bodyParam !== null && bodyParam !== undefined) { | ||
if (!request.header['Content-Type']) { | ||
request.type('application/json'); | ||
} | ||
if (this.requestAgent) { | ||
request.agent(this.requestAgent); | ||
} // set request timeout | ||
request.send(bodyParam); | ||
} | ||
var accept = this.jsonPreferredMime(accepts); | ||
request.timeout(this.timeout); | ||
contentType = this.jsonPreferredMime(contentTypes); | ||
if (accept) { | ||
request.accept(accept); | ||
} | ||
if (contentType) { | ||
// Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) | ||
if (contentType != 'multipart/form-data') { | ||
request.type(contentType); | ||
} | ||
} | ||
if (returnType === 'Blob') { | ||
request.responseType('blob'); | ||
} else if (returnType === 'String') { | ||
request.responseType('string'); | ||
} // Attach previously saved cookies, if enabled | ||
if (contentType === 'application/x-www-form-urlencoded') { | ||
request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); | ||
} else if (contentType == 'multipart/form-data') { | ||
_formParams = this.normalizeParams(formParams); | ||
for (key in _formParams) { | ||
if (_formParams.hasOwnProperty(key)) { | ||
_formParamsValue = _formParams[key]; | ||
if (this.enableCookies) { | ||
if (typeof window === 'undefined') { | ||
this.agent._attachCookies(request); | ||
} else { | ||
request.withCredentials(); | ||
} | ||
} | ||
if (this.isFileParam(_formParamsValue)) { | ||
// file field | ||
request.attach(key, _formParamsValue); | ||
} else if (Array.isArray(_formParamsValue) && _formParamsValue.length && this.isFileParam(_formParamsValue[0])) { | ||
// multiple files | ||
_formParamsValue.forEach(function (file) { | ||
return request.attach(key, file); | ||
}); | ||
} else { | ||
request.field(key, _formParamsValue); | ||
} | ||
} | ||
} | ||
} else if (bodyParam !== null && bodyParam !== undefined) { | ||
if (!request.header['Content-Type']) { | ||
request.type('application/json'); | ||
} | ||
return new Promise((resolve, reject) => { | ||
request.end((error, response) => { | ||
if (error) { | ||
var err = {}; | ||
request.send(bodyParam); | ||
} | ||
if (response) { | ||
err.status = response.status; | ||
err.statusText = response.statusText; | ||
err.body = response.body; | ||
err.response = response; | ||
} | ||
accept = this.jsonPreferredMime(accepts); | ||
err.error = error; | ||
reject(err); | ||
} else { | ||
try { | ||
var data = this.deserialize(response, returnType); | ||
if (accept) { | ||
request.accept(accept); | ||
} | ||
if (this.enableCookies && typeof window === 'undefined') { | ||
this.agent._saveCookies(response); | ||
} | ||
if (returnType === 'Blob') { | ||
request.responseType('blob'); | ||
} else if (returnType === 'String') { | ||
request.responseType('string'); | ||
} // Attach previously saved cookies, if enabled | ||
resolve({ | ||
data, | ||
response | ||
}); | ||
} catch (err) { | ||
reject(err); | ||
} | ||
} | ||
}); | ||
}); | ||
} | ||
/** | ||
* Parses an ISO-8601 string representation or epoch representation of a date value. | ||
* @param {String} str The date value as a string. | ||
* @returns {Date} The parsed date object. | ||
*/ | ||
if (this.enableCookies) { | ||
if (typeof window === 'undefined') { | ||
this.agent._attachCookies(request); | ||
} else { | ||
request.withCredentials(); | ||
} | ||
} | ||
static parseDate(str) { | ||
if (isNaN(str)) { | ||
return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3')); | ||
} | ||
return _context2.abrupt("return", new Promise(function (resolve, reject) { | ||
request.end(function (error, response) { | ||
if (error) { | ||
var err = {}; | ||
return new Date(+str); | ||
} | ||
/** | ||
* Converts a value to the specified type. | ||
* @param {(String|Object)} data The data to convert, as a string or object. | ||
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types | ||
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To | ||
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: | ||
* all properties on <code>data<code> will be converted to this type. | ||
* @returns An instance of the specified type or null or undefined if data is null or undefined. | ||
*/ | ||
if (response) { | ||
err.status = response.status; | ||
err.statusText = response.statusText; | ||
err.body = response.body; | ||
err.response = response; | ||
} | ||
err.error = error; | ||
reject(err); | ||
} else { | ||
try { | ||
var data = _this2.deserialize(response, returnType); | ||
static convertToType(data, type) { | ||
if (data === null || data === undefined) return data; | ||
if (_this2.enableCookies && typeof window === 'undefined') { | ||
_this2.agent._saveCookies(response); | ||
} | ||
switch (type) { | ||
case 'Boolean': | ||
return Boolean(data); | ||
resolve({ | ||
data: data, | ||
response: response | ||
}); | ||
} catch (err) { | ||
reject(err); | ||
} | ||
} | ||
}); | ||
})); | ||
case 'Integer': | ||
return parseInt(data, 10); | ||
case 18: | ||
case "end": | ||
return _context2.stop(); | ||
} | ||
} | ||
}, _callee2, this); | ||
})); | ||
case 'Number': | ||
return parseFloat(data); | ||
function callApi(_x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12, _x13, _x14) { | ||
return _callApi.apply(this, arguments); | ||
} | ||
case 'String': | ||
return String(data); | ||
return callApi; | ||
}() | ||
/** | ||
* Parses an ISO-8601 string representation or epoch representation of a date value. | ||
* @param {String} str The date value as a string. | ||
* @returns {Date} The parsed date object. | ||
*/ | ||
case 'Date': | ||
return ApiClient.parseDate(String(data)); | ||
}, { | ||
key: "hostSettings", | ||
value: | ||
/** | ||
* Gets an array of host settings | ||
* @returns An array of host settings | ||
*/ | ||
function hostSettings() { | ||
return [{ | ||
'url': "//api.factset.com/wealth/v1", | ||
'description': "No description provided" | ||
}]; | ||
} | ||
}, { | ||
key: "getBasePathFromSettings", | ||
value: function getBasePathFromSettings(index) { | ||
var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var servers = this.hostSettings(); // check array index out of bound | ||
case 'Blob': | ||
return data; | ||
if (index < 0 || index >= servers.length) { | ||
throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); | ||
} | ||
default: | ||
if (type === Object) { | ||
// generic object, return directly | ||
return data; | ||
} else if (typeof type.constructFromObject === 'function') { | ||
// for model type like User and enum class | ||
return type.constructFromObject(data); | ||
} else if (Array.isArray(type)) { | ||
// for array type like: ['String'] | ||
var itemType = type[0]; | ||
return data.map(item => { | ||
return ApiClient.convertToType(item, itemType); | ||
}); | ||
} else if (typeof type === 'object') { | ||
// for plain object type like: {'String': 'Integer'} | ||
var keyType, valueType; | ||
var server = servers[index]; | ||
var url = server['url']; // go through variable and assign a value | ||
for (var k in type) { | ||
if (type.hasOwnProperty(k)) { | ||
keyType = k; | ||
valueType = type[k]; | ||
break; | ||
} | ||
} | ||
for (var variable_name in server['variables']) { | ||
if (variable_name in variables) { | ||
var variable = server['variables'][variable_name]; | ||
var result = {}; | ||
if (!('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name])) { | ||
url = url.replace("{" + variable_name + "}", variables[variable_name]); | ||
} else { | ||
throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); | ||
for (var k in data) { | ||
if (data.hasOwnProperty(k)) { | ||
var key = ApiClient.convertToType(k, keyType); | ||
var value = ApiClient.convertToType(data[k], valueType); | ||
result[key] = value; | ||
} | ||
} | ||
return result; | ||
} else { | ||
// use default value | ||
url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']); | ||
// for unknown type, return the data directly | ||
return data; | ||
} | ||
} | ||
return url; | ||
} | ||
/** | ||
* Constructs a new map or array model from REST data. | ||
* @param data {Object|Array} The REST data. | ||
* @param obj {Object|Array} The target object or array. | ||
} | ||
/** | ||
* Gets an array of host settings | ||
* @returns An array of host settings | ||
*/ | ||
}], [{ | ||
key: "canBeJsonified", | ||
value: function canBeJsonified(str) { | ||
if (typeof str !== 'string' && (0, _typeof2["default"])(str) !== 'object') return false; | ||
try { | ||
var type = str.toString(); | ||
return type === '[object Object]' || type === '[object Array]'; | ||
} catch (err) { | ||
return false; | ||
} | ||
} | ||
}, { | ||
key: "parseDate", | ||
value: function parseDate(str) { | ||
if (isNaN(str)) { | ||
return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3')); | ||
} | ||
hostSettings() { | ||
return [{ | ||
'url': "//api.factset.com/wealth/v1", | ||
'description': "No description provided" | ||
}]; | ||
} | ||
return new Date(+str); | ||
getBasePathFromSettings(index, variables = {}) { | ||
var servers = this.hostSettings(); // check array index out of bound | ||
if (index < 0 || index >= servers.length) { | ||
throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); | ||
} | ||
/** | ||
* Converts a value to the specified type. | ||
* @param {(String|Object)} data The data to convert, as a string or object. | ||
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types | ||
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To | ||
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: | ||
* all properties on <code>data<code> will be converted to this type. | ||
* @returns An instance of the specified type or null or undefined if data is null or undefined. | ||
*/ | ||
}, { | ||
key: "convertToType", | ||
value: function convertToType(data, type) { | ||
if (data === null || data === undefined) return data; | ||
var server = servers[index]; | ||
var url = server['url']; // go through variable and assign a value | ||
switch (type) { | ||
case 'Boolean': | ||
return Boolean(data); | ||
for (var variable_name in server['variables']) { | ||
if (variable_name in variables) { | ||
let variable = server['variables'][variable_name]; | ||
case 'Integer': | ||
return parseInt(data, 10); | ||
if (!('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name])) { | ||
url = url.replace("{" + variable_name + "}", variables[variable_name]); | ||
} else { | ||
throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); | ||
} | ||
} else { | ||
// use default value | ||
url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']); | ||
} | ||
} | ||
case 'Number': | ||
return parseFloat(data); | ||
return url; | ||
} | ||
/** | ||
* Constructs a new map or array model from REST data. | ||
* @param data {Object|Array} The REST data. | ||
* @param obj {Object|Array} The target object or array. | ||
*/ | ||
case 'String': | ||
return String(data); | ||
case 'Date': | ||
return ApiClient.parseDate(String(data)); | ||
case 'Blob': | ||
return data; | ||
default: | ||
if (type === Object) { | ||
// generic object, return directly | ||
return data; | ||
} else if (typeof type.constructFromObject === 'function') { | ||
// for model type like User and enum class | ||
return type.constructFromObject(data); | ||
} else if (Array.isArray(type)) { | ||
// for array type like: ['String'] | ||
var itemType = type[0]; | ||
return data.map(function (item) { | ||
return ApiClient.convertToType(item, itemType); | ||
}); | ||
} else if ((0, _typeof2["default"])(type) === 'object') { | ||
// for plain object type like: {'String': 'Integer'} | ||
var keyType, valueType; | ||
for (var k in type) { | ||
if (type.hasOwnProperty(k)) { | ||
keyType = k; | ||
valueType = type[k]; | ||
break; | ||
} | ||
} | ||
var result = {}; | ||
for (var k in data) { | ||
if (data.hasOwnProperty(k)) { | ||
var key = ApiClient.convertToType(k, keyType); | ||
var value = ApiClient.convertToType(data[k], valueType); | ||
result[key] = value; | ||
} | ||
} | ||
return result; | ||
} else { | ||
// for unknown type, return the data directly | ||
return data; | ||
} | ||
static constructFromObject(data, obj, itemType) { | ||
if (Array.isArray(data)) { | ||
for (var i = 0; i < data.length; i++) { | ||
if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); | ||
} | ||
} | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj, itemType) { | ||
if (Array.isArray(data)) { | ||
for (var i = 0; i < data.length; i++) { | ||
if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); | ||
} | ||
} else { | ||
for (var k in data) { | ||
if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); | ||
} | ||
} else { | ||
for (var k in data) { | ||
if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); | ||
} | ||
} | ||
}]); | ||
return ApiClient; | ||
}(); | ||
} | ||
} | ||
/** | ||
@@ -888,2 +766,2 @@ * Enumeration of collection format separator strategies. | ||
var _default = ApiClient; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -10,4 +8,4 @@ value: true | ||
enumerable: true, | ||
get: function get() { | ||
return _ApiClient["default"]; | ||
get: function () { | ||
return _ApiClient.default; | ||
} | ||
@@ -17,4 +15,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _CursorBasedPaginationOutputObject["default"]; | ||
get: function () { | ||
return _CursorBasedPaginationOutputObject.default; | ||
} | ||
@@ -24,4 +22,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _CursorBasedPaginationOutputObjectWithoutTotal["default"]; | ||
get: function () { | ||
return _CursorBasedPaginationOutputObjectWithoutTotal.default; | ||
} | ||
@@ -31,4 +29,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _ErrorMetaObject["default"]; | ||
get: function () { | ||
return _ErrorMetaObject.default; | ||
} | ||
@@ -38,4 +36,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject["default"]; | ||
get: function () { | ||
return _InlineObject.default; | ||
} | ||
@@ -45,4 +43,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject2["default"]; | ||
get: function () { | ||
return _InlineObject2.default; | ||
} | ||
@@ -52,4 +50,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject3["default"]; | ||
get: function () { | ||
return _InlineObject3.default; | ||
} | ||
@@ -59,4 +57,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject4["default"]; | ||
get: function () { | ||
return _InlineObject4.default; | ||
} | ||
@@ -66,4 +64,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject5["default"]; | ||
get: function () { | ||
return _InlineObject5.default; | ||
} | ||
@@ -73,4 +71,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject6["default"]; | ||
get: function () { | ||
return _InlineObject6.default; | ||
} | ||
@@ -80,4 +78,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineObject7["default"]; | ||
get: function () { | ||
return _InlineObject7.default; | ||
} | ||
@@ -87,4 +85,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse["default"]; | ||
get: function () { | ||
return _InlineResponse.default; | ||
} | ||
@@ -94,4 +92,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2["default"]; | ||
get: function () { | ||
return _InlineResponse2.default; | ||
} | ||
@@ -101,4 +99,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Categories["default"]; | ||
get: function () { | ||
return _InlineResponse2001Categories.default; | ||
} | ||
@@ -108,4 +106,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Chain["default"]; | ||
get: function () { | ||
return _InlineResponse2001Chain.default; | ||
} | ||
@@ -115,4 +113,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Data["default"]; | ||
get: function () { | ||
return _InlineResponse2001Data.default; | ||
} | ||
@@ -122,4 +120,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Distributor["default"]; | ||
get: function () { | ||
return _InlineResponse2001Distributor.default; | ||
} | ||
@@ -129,4 +127,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Language["default"]; | ||
get: function () { | ||
return _InlineResponse2001Language.default; | ||
} | ||
@@ -136,4 +134,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Meta["default"]; | ||
get: function () { | ||
return _InlineResponse2001Meta.default; | ||
} | ||
@@ -143,4 +141,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Publisher["default"]; | ||
get: function () { | ||
return _InlineResponse2001Publisher.default; | ||
} | ||
@@ -150,4 +148,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2001Types["default"]; | ||
get: function () { | ||
return _InlineResponse2001Types.default; | ||
} | ||
@@ -157,4 +155,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse3["default"]; | ||
get: function () { | ||
return _InlineResponse3.default; | ||
} | ||
@@ -164,4 +162,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2002Data["default"]; | ||
get: function () { | ||
return _InlineResponse2002Data.default; | ||
} | ||
@@ -171,4 +169,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2002DataArticles["default"]; | ||
get: function () { | ||
return _InlineResponse2002DataArticles.default; | ||
} | ||
@@ -178,4 +176,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2002DataDistributor["default"]; | ||
get: function () { | ||
return _InlineResponse2002DataDistributor.default; | ||
} | ||
@@ -185,4 +183,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse4["default"]; | ||
get: function () { | ||
return _InlineResponse4.default; | ||
} | ||
@@ -192,4 +190,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2003Data["default"]; | ||
get: function () { | ||
return _InlineResponse2003Data.default; | ||
} | ||
@@ -199,4 +197,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse5["default"]; | ||
get: function () { | ||
return _InlineResponse5.default; | ||
} | ||
@@ -206,4 +204,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2004Data["default"]; | ||
get: function () { | ||
return _InlineResponse2004Data.default; | ||
} | ||
@@ -213,4 +211,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse6["default"]; | ||
get: function () { | ||
return _InlineResponse6.default; | ||
} | ||
@@ -220,4 +218,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2005Data["default"]; | ||
get: function () { | ||
return _InlineResponse2005Data.default; | ||
} | ||
@@ -227,4 +225,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2005DataDelivery["default"]; | ||
get: function () { | ||
return _InlineResponse2005DataDelivery.default; | ||
} | ||
@@ -234,4 +232,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse7["default"]; | ||
get: function () { | ||
return _InlineResponse7.default; | ||
} | ||
@@ -241,4 +239,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2006Data["default"]; | ||
get: function () { | ||
return _InlineResponse2006Data.default; | ||
} | ||
@@ -248,4 +246,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse8["default"]; | ||
get: function () { | ||
return _InlineResponse8.default; | ||
} | ||
@@ -255,4 +253,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2007Data["default"]; | ||
get: function () { | ||
return _InlineResponse2007Data.default; | ||
} | ||
@@ -262,4 +260,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2007DataDistributor["default"]; | ||
get: function () { | ||
return _InlineResponse2007DataDistributor.default; | ||
} | ||
@@ -269,4 +267,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse9["default"]; | ||
get: function () { | ||
return _InlineResponse9.default; | ||
} | ||
@@ -276,4 +274,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2008Data["default"]; | ||
get: function () { | ||
return _InlineResponse2008Data.default; | ||
} | ||
@@ -283,4 +281,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2008Meta["default"]; | ||
get: function () { | ||
return _InlineResponse2008Meta.default; | ||
} | ||
@@ -290,4 +288,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse10["default"]; | ||
get: function () { | ||
return _InlineResponse10.default; | ||
} | ||
@@ -297,4 +295,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse2009Data["default"]; | ||
get: function () { | ||
return _InlineResponse2009Data.default; | ||
} | ||
@@ -304,4 +302,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200Data["default"]; | ||
get: function () { | ||
return _InlineResponse200Data.default; | ||
} | ||
@@ -311,4 +309,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataCategories["default"]; | ||
get: function () { | ||
return _InlineResponse200DataCategories.default; | ||
} | ||
@@ -318,4 +316,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataDistributor["default"]; | ||
get: function () { | ||
return _InlineResponse200DataDistributor.default; | ||
} | ||
@@ -325,4 +323,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataInstruments["default"]; | ||
get: function () { | ||
return _InlineResponse200DataInstruments.default; | ||
} | ||
@@ -332,4 +330,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataLanguage["default"]; | ||
get: function () { | ||
return _InlineResponse200DataLanguage.default; | ||
} | ||
@@ -339,4 +337,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataMedia["default"]; | ||
get: function () { | ||
return _InlineResponse200DataMedia.default; | ||
} | ||
@@ -346,4 +344,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataPublisher["default"]; | ||
get: function () { | ||
return _InlineResponse200DataPublisher.default; | ||
} | ||
@@ -353,4 +351,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200DataTypes["default"]; | ||
get: function () { | ||
return _InlineResponse200DataTypes.default; | ||
} | ||
@@ -360,4 +358,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _InlineResponse200Meta["default"]; | ||
get: function () { | ||
return _InlineResponse200Meta.default; | ||
} | ||
@@ -367,4 +365,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsApi["default"]; | ||
get: function () { | ||
return _NewsApi.default; | ||
} | ||
@@ -374,4 +372,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListByChainData["default"]; | ||
get: function () { | ||
return _NewsArticleListByChainData.default; | ||
} | ||
@@ -381,4 +379,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListByChainDataFilter["default"]; | ||
get: function () { | ||
return _NewsArticleListByChainDataFilter.default; | ||
} | ||
@@ -388,4 +386,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListByIndexData["default"]; | ||
get: function () { | ||
return _NewsArticleListByIndexData.default; | ||
} | ||
@@ -395,4 +393,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListByInstrumentData["default"]; | ||
get: function () { | ||
return _NewsArticleListByInstrumentData.default; | ||
} | ||
@@ -402,4 +400,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListByMediaKindData["default"]; | ||
get: function () { | ||
return _NewsArticleListByMediaKindData.default; | ||
} | ||
@@ -409,4 +407,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListData["default"]; | ||
get: function () { | ||
return _NewsArticleListData.default; | ||
} | ||
@@ -416,4 +414,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilter["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilter.default; | ||
} | ||
@@ -423,4 +421,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterCategories["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterCategories.default; | ||
} | ||
@@ -430,4 +428,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterDistributor["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterDistributor.default; | ||
} | ||
@@ -437,4 +435,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterLanguage["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterLanguage.default; | ||
} | ||
@@ -444,4 +442,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterPublisher["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterPublisher.default; | ||
} | ||
@@ -451,4 +449,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterRange["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterRange.default; | ||
} | ||
@@ -458,4 +456,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterRegions["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterRegions.default; | ||
} | ||
@@ -465,4 +463,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListDataFilterTypes["default"]; | ||
get: function () { | ||
return _NewsArticleListDataFilterTypes.default; | ||
} | ||
@@ -472,4 +470,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListMeta["default"]; | ||
get: function () { | ||
return _NewsArticleListMeta.default; | ||
} | ||
@@ -479,4 +477,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListMetaPagination["default"]; | ||
get: function () { | ||
return _NewsArticleListMetaPagination.default; | ||
} | ||
@@ -486,4 +484,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleListMetaSubscription["default"]; | ||
get: function () { | ||
return _NewsArticleListMetaSubscription.default; | ||
} | ||
@@ -493,4 +491,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextData["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextData.default; | ||
} | ||
@@ -500,4 +498,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataCategories["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataCategories.default; | ||
} | ||
@@ -507,4 +505,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataCriteria["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataCriteria.default; | ||
} | ||
@@ -514,4 +512,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataDistributor["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataDistributor.default; | ||
} | ||
@@ -521,4 +519,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataIndices["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataIndices.default; | ||
} | ||
@@ -528,4 +526,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataInstruments["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataInstruments.default; | ||
} | ||
@@ -535,4 +533,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataLanguage["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataLanguage.default; | ||
} | ||
@@ -542,4 +540,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataPublisher["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataPublisher.default; | ||
} | ||
@@ -549,4 +547,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataRegions["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataRegions.default; | ||
} | ||
@@ -556,4 +554,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataText["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataText.default; | ||
} | ||
@@ -563,4 +561,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataTextCriteria["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataTextCriteria.default; | ||
} | ||
@@ -570,4 +568,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticleSearchByTextDataTypes["default"]; | ||
get: function () { | ||
return _NewsArticleSearchByTextDataTypes.default; | ||
} | ||
@@ -577,4 +575,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsPublisherSearchByNameData["default"]; | ||
get: function () { | ||
return _NewsPublisherSearchByNameData.default; | ||
} | ||
@@ -584,4 +582,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsPublisherSearchByNameDataFilter["default"]; | ||
get: function () { | ||
return _NewsPublisherSearchByNameDataFilter.default; | ||
} | ||
@@ -591,4 +589,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsPublisherSearchByNameDataFilterDelivery["default"]; | ||
get: function () { | ||
return _NewsPublisherSearchByNameDataFilterDelivery.default; | ||
} | ||
@@ -598,4 +596,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsPublisherSearchByNameDataFilterDistributor["default"]; | ||
get: function () { | ||
return _NewsPublisherSearchByNameDataFilterDistributor.default; | ||
} | ||
@@ -605,4 +603,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsPublisherSearchByNameMeta["default"]; | ||
get: function () { | ||
return _NewsPublisherSearchByNameMeta.default; | ||
} | ||
@@ -612,4 +610,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _OffsetBasedPaginationOutputObject["default"]; | ||
get: function () { | ||
return _OffsetBasedPaginationOutputObject.default; | ||
} | ||
@@ -619,4 +617,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _OffsetBasedPaginationOutputObjectWithoutTotal["default"]; | ||
get: function () { | ||
return _OffsetBasedPaginationOutputObjectWithoutTotal.default; | ||
} | ||
@@ -626,4 +624,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _PartialOutputObject["default"]; | ||
get: function () { | ||
return _PartialOutputObject.default; | ||
} | ||
@@ -633,4 +631,4 @@ }); | ||
enumerable: true, | ||
get: function get() { | ||
return _StatusObject["default"]; | ||
get: function () { | ||
return _StatusObject.default; | ||
} | ||
@@ -817,2 +815,4 @@ }); | ||
var _NewsApi = _interopRequireDefault(require("./api/NewsApi")); | ||
var _NewsApi = _interopRequireDefault(require("./api/NewsApi")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/CursorBasedPaginationOutputObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var CursorBasedPaginationOutputObject = /*#__PURE__*/function () { | ||
class CursorBasedPaginationOutputObject { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>CursorBasedPaginationOutputObject</code>. | ||
*/ | ||
function CursorBasedPaginationOutputObject(total, isEstimatedTotal, next, previous) { | ||
(0, _classCallCheck2["default"])(this, CursorBasedPaginationOutputObject); | ||
constructor(total, isEstimatedTotal, next, previous) { | ||
CursorBasedPaginationOutputObject.initialize(this, total, isEstimatedTotal, next, previous); | ||
@@ -57,46 +52,42 @@ } | ||
(0, _createClass2["default"])(CursorBasedPaginationOutputObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, total, isEstimatedTotal, next, previous) { | ||
obj['total'] = total; | ||
obj['isEstimatedTotal'] = isEstimatedTotal; | ||
obj['next'] = next; | ||
obj['previous'] = previous; | ||
} | ||
/** | ||
* Constructs a <code>CursorBasedPaginationOutputObject</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/CursorBasedPaginationOutputObject} obj Optional instance to populate. | ||
* @return {module:model/CursorBasedPaginationOutputObject} The populated <code>CursorBasedPaginationOutputObject</code> instance. | ||
*/ | ||
static initialize(obj, total, isEstimatedTotal, next, previous) { | ||
obj['total'] = total; | ||
obj['isEstimatedTotal'] = isEstimatedTotal; | ||
obj['next'] = next; | ||
obj['previous'] = previous; | ||
} | ||
/** | ||
* Constructs a <code>CursorBasedPaginationOutputObject</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/CursorBasedPaginationOutputObject} obj Optional instance to populate. | ||
* @return {module:model/CursorBasedPaginationOutputObject} The populated <code>CursorBasedPaginationOutputObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new CursorBasedPaginationOutputObject(); | ||
if (data.hasOwnProperty('total')) { | ||
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new CursorBasedPaginationOutputObject(); | ||
if (data.hasOwnProperty('isEstimatedTotal')) { | ||
obj['isEstimatedTotal'] = _ApiClient["default"].convertToType(data['isEstimatedTotal'], 'Boolean'); | ||
} | ||
if (data.hasOwnProperty('total')) { | ||
obj['total'] = _ApiClient.default.convertToType(data['total'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('next')) { | ||
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); | ||
} | ||
if (data.hasOwnProperty('isEstimatedTotal')) { | ||
obj['isEstimatedTotal'] = _ApiClient.default.convertToType(data['isEstimatedTotal'], 'Boolean'); | ||
} | ||
if (data.hasOwnProperty('previous')) { | ||
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); | ||
} | ||
if (data.hasOwnProperty('next')) { | ||
obj['next'] = _ApiClient.default.convertToType(data['next'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('previous')) { | ||
obj['previous'] = _ApiClient.default.convertToType(data['previous'], 'String'); | ||
} | ||
} | ||
}]); | ||
return CursorBasedPaginationOutputObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -128,2 +119,2 @@ * Total number of entries in the result set. | ||
var _default = CursorBasedPaginationOutputObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/CursorBasedPaginationOutputObjectWithoutTotal | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var CursorBasedPaginationOutputObjectWithoutTotal = /*#__PURE__*/function () { | ||
class CursorBasedPaginationOutputObjectWithoutTotal { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>CursorBasedPaginationOutputObjectWithoutTotal</code>. | ||
*/ | ||
function CursorBasedPaginationOutputObjectWithoutTotal(next, previous) { | ||
(0, _classCallCheck2["default"])(this, CursorBasedPaginationOutputObjectWithoutTotal); | ||
constructor(next, previous) { | ||
CursorBasedPaginationOutputObjectWithoutTotal.initialize(this, next, previous); | ||
@@ -55,36 +50,32 @@ } | ||
(0, _createClass2["default"])(CursorBasedPaginationOutputObjectWithoutTotal, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, next, previous) { | ||
obj['next'] = next; | ||
obj['previous'] = previous; | ||
} | ||
/** | ||
* Constructs a <code>CursorBasedPaginationOutputObjectWithoutTotal</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/CursorBasedPaginationOutputObjectWithoutTotal} obj Optional instance to populate. | ||
* @return {module:model/CursorBasedPaginationOutputObjectWithoutTotal} The populated <code>CursorBasedPaginationOutputObjectWithoutTotal</code> instance. | ||
*/ | ||
static initialize(obj, next, previous) { | ||
obj['next'] = next; | ||
obj['previous'] = previous; | ||
} | ||
/** | ||
* Constructs a <code>CursorBasedPaginationOutputObjectWithoutTotal</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/CursorBasedPaginationOutputObjectWithoutTotal} obj Optional instance to populate. | ||
* @return {module:model/CursorBasedPaginationOutputObjectWithoutTotal} The populated <code>CursorBasedPaginationOutputObjectWithoutTotal</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new CursorBasedPaginationOutputObjectWithoutTotal(); | ||
if (data.hasOwnProperty('next')) { | ||
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new CursorBasedPaginationOutputObjectWithoutTotal(); | ||
if (data.hasOwnProperty('previous')) { | ||
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); | ||
} | ||
if (data.hasOwnProperty('next')) { | ||
obj['next'] = _ApiClient.default.convertToType(data['next'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('previous')) { | ||
obj['previous'] = _ApiClient.default.convertToType(data['previous'], 'String'); | ||
} | ||
} | ||
}]); | ||
return CursorBasedPaginationOutputObjectWithoutTotal; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * Cursor position to use in the attribute `pagination.cursor` to retrieve the next page of results, if any, otherwise null. | ||
var _default = CursorBasedPaginationOutputObjectWithoutTotal; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/ErrorMetaObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var ErrorMetaObject = /*#__PURE__*/function () { | ||
class ErrorMetaObject { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>ErrorMetaObject</code>. | ||
*/ | ||
function ErrorMetaObject() { | ||
(0, _classCallCheck2["default"])(this, ErrorMetaObject); | ||
constructor() { | ||
ErrorMetaObject.initialize(this); | ||
@@ -55,29 +50,25 @@ } | ||
(0, _createClass2["default"])(ErrorMetaObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>ErrorMetaObject</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/ErrorMetaObject} obj Optional instance to populate. | ||
* @return {module:model/ErrorMetaObject} The populated <code>ErrorMetaObject</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>ErrorMetaObject</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/ErrorMetaObject} obj Optional instance to populate. | ||
* @return {module:model/ErrorMetaObject} The populated <code>ErrorMetaObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new ErrorMetaObject(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject["default"].constructFromObject(data['status']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new ErrorMetaObject(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject.default.constructFromObject(data['status']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return ErrorMetaObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -90,2 +81,2 @@ * @member {module:model/StatusObject} status | ||
var _default = ErrorMetaObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject = /*#__PURE__*/function () { | ||
class InlineObject { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineObject</code>. | ||
*/ | ||
function InlineObject() { | ||
(0, _classCallCheck2["default"])(this, InlineObject); | ||
constructor() { | ||
InlineObject.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineObject</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/InlineObject} obj Optional instance to populate. | ||
* @return {module:model/InlineObject} The populated <code>InlineObject</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineObject</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/InlineObject} obj Optional instance to populate. | ||
* @return {module:model/InlineObject} The populated <code>InlineObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/NewsArticleListData} data | ||
var _default = InlineObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject1 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject1 = /*#__PURE__*/function () { | ||
class InlineObject1 { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineObject1</code>. | ||
*/ | ||
function InlineObject1(data) { | ||
(0, _classCallCheck2["default"])(this, InlineObject1); | ||
constructor(data) { | ||
InlineObject1.initialize(this, data); | ||
@@ -58,35 +53,31 @@ } | ||
(0, _createClass2["default"])(InlineObject1, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject1</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/InlineObject1} obj Optional instance to populate. | ||
* @return {module:model/InlineObject1} The populated <code>InlineObject1</code> instance. | ||
*/ | ||
static initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject1</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/InlineObject1} obj Optional instance to populate. | ||
* @return {module:model/InlineObject1} The populated <code>InlineObject1</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject1(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByChainData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject1(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByChainData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject1; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * @member {module:model/NewsArticleListByChainData} data | ||
var _default = InlineObject1; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject2 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject2 = /*#__PURE__*/function () { | ||
class InlineObject2 { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineObject2</code>. | ||
*/ | ||
function InlineObject2(data) { | ||
(0, _classCallCheck2["default"])(this, InlineObject2); | ||
constructor(data) { | ||
InlineObject2.initialize(this, data); | ||
@@ -58,35 +53,31 @@ } | ||
(0, _createClass2["default"])(InlineObject2, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject2</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/InlineObject2} obj Optional instance to populate. | ||
* @return {module:model/InlineObject2} The populated <code>InlineObject2</code> instance. | ||
*/ | ||
static initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject2</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/InlineObject2} obj Optional instance to populate. | ||
* @return {module:model/InlineObject2} The populated <code>InlineObject2</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject2(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByIndexData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject2(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByIndexData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject2; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * @member {module:model/NewsArticleListByIndexData} data | ||
var _default = InlineObject2; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject3 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject3 = /*#__PURE__*/function () { | ||
class InlineObject3 { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineObject3</code>. | ||
*/ | ||
function InlineObject3(data) { | ||
(0, _classCallCheck2["default"])(this, InlineObject3); | ||
constructor(data) { | ||
InlineObject3.initialize(this, data); | ||
@@ -58,35 +53,31 @@ } | ||
(0, _createClass2["default"])(InlineObject3, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject3</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/InlineObject3} obj Optional instance to populate. | ||
* @return {module:model/InlineObject3} The populated <code>InlineObject3</code> instance. | ||
*/ | ||
static initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject3</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/InlineObject3} obj Optional instance to populate. | ||
* @return {module:model/InlineObject3} The populated <code>InlineObject3</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject3(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByInstrumentData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject3(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByInstrumentData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject3; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * @member {module:model/NewsArticleListByInstrumentData} data | ||
var _default = InlineObject3; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject4 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject4 = /*#__PURE__*/function () { | ||
class InlineObject4 { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineObject4</code>. | ||
*/ | ||
function InlineObject4(data) { | ||
(0, _classCallCheck2["default"])(this, InlineObject4); | ||
constructor(data) { | ||
InlineObject4.initialize(this, data); | ||
@@ -58,35 +53,31 @@ } | ||
(0, _createClass2["default"])(InlineObject4, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject4</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/InlineObject4} obj Optional instance to populate. | ||
* @return {module:model/InlineObject4} The populated <code>InlineObject4</code> instance. | ||
*/ | ||
static initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject4</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/InlineObject4} obj Optional instance to populate. | ||
* @return {module:model/InlineObject4} The populated <code>InlineObject4</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject4(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByMediaKindData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject4(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleListByMediaKindData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject4; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * @member {module:model/NewsArticleListByMediaKindData} data | ||
var _default = InlineObject4; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject5 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject5 = /*#__PURE__*/function () { | ||
class InlineObject5 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineObject5</code>. | ||
*/ | ||
function InlineObject5() { | ||
(0, _classCallCheck2["default"])(this, InlineObject5); | ||
constructor() { | ||
InlineObject5.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineObject5, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineObject5</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/InlineObject5} obj Optional instance to populate. | ||
* @return {module:model/InlineObject5} The populated <code>InlineObject5</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineObject5</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/InlineObject5} obj Optional instance to populate. | ||
* @return {module:model/InlineObject5} The populated <code>InlineObject5</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject5(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleSearchByTextData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject5(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsArticleSearchByTextData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsArticleListMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject5; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/NewsArticleSearchByTextData} data | ||
var _default = InlineObject5; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineObject6 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineObject6 = /*#__PURE__*/function () { | ||
class InlineObject6 { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineObject6</code>. | ||
*/ | ||
function InlineObject6(data) { | ||
(0, _classCallCheck2["default"])(this, InlineObject6); | ||
constructor(data) { | ||
InlineObject6.initialize(this, data); | ||
@@ -58,35 +53,31 @@ } | ||
(0, _createClass2["default"])(InlineObject6, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject6</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/InlineObject6} obj Optional instance to populate. | ||
* @return {module:model/InlineObject6} The populated <code>InlineObject6</code> instance. | ||
*/ | ||
static initialize(obj, data) { | ||
obj['data'] = data; | ||
} | ||
/** | ||
* Constructs a <code>InlineObject6</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/InlineObject6} obj Optional instance to populate. | ||
* @return {module:model/InlineObject6} The populated <code>InlineObject6</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject6(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsPublisherSearchByNameData["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineObject6(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsPublisherSearchByNameMeta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _NewsPublisherSearchByNameData.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _NewsPublisherSearchByNameMeta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineObject6; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * @member {module:model/NewsPublisherSearchByNameData} data | ||
var _default = InlineObject6; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200 = /*#__PURE__*/function () { | ||
class InlineResponse200 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse200</code>. | ||
*/ | ||
function InlineResponse200() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200); | ||
constructor() { | ||
InlineResponse200.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200</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/InlineResponse200} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200} The populated <code>InlineResponse200</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200</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/InlineResponse200} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200} The populated <code>InlineResponse200</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse200Data["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse200Data.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/InlineResponse200Data} data | ||
var _default = InlineResponse200; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001 = /*#__PURE__*/function () { | ||
class InlineResponse2001 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2001</code>. | ||
*/ | ||
function InlineResponse2001() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001); | ||
constructor() { | ||
InlineResponse2001.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001</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/InlineResponse2001} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001} The populated <code>InlineResponse2001</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001</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/InlineResponse2001} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001} The populated <code>InlineResponse2001</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_InlineResponse2001Data["default"]]); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2001Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient.default.convertToType(data['data'], [_InlineResponse2001Data.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2001Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2001; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * News articles that match the filter criteria ordered by descending article time. | ||
var _default = InlineResponse2001; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Categories | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Categories = /*#__PURE__*/function () { | ||
class InlineResponse2001Categories { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse2001Categories</code>. | ||
*/ | ||
function InlineResponse2001Categories() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Categories); | ||
constructor() { | ||
InlineResponse2001Categories.initialize(this); | ||
@@ -52,29 +47,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Categories, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Categories</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/InlineResponse2001Categories} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Categories} The populated <code>InlineResponse2001Categories</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Categories</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/InlineResponse2001Categories} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Categories} The populated <code>InlineResponse2001Categories</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Categories(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Categories(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Categories; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -88,2 +79,2 @@ * Identifier of the category. | ||
var _default = InlineResponse2001Categories; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Chain | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Chain = /*#__PURE__*/function () { | ||
class InlineResponse2001Chain { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2001Chain</code>. | ||
*/ | ||
function InlineResponse2001Chain() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Chain); | ||
constructor() { | ||
InlineResponse2001Chain.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Chain, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Chain</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/InlineResponse2001Chain} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Chain} The populated <code>InlineResponse2001Chain</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Chain</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/InlineResponse2001Chain} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Chain} The populated <code>InlineResponse2001Chain</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Chain(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Chain(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Chain; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of the news article chain. | ||
var _default = InlineResponse2001Chain; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -28,2 +22,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -45,5 +41,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Data = /*#__PURE__*/function () { | ||
class InlineResponse2001Data { | ||
/** | ||
@@ -53,4 +49,3 @@ * Constructs a new <code>InlineResponse2001Data</code>. | ||
*/ | ||
function InlineResponse2001Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Data); | ||
constructor() { | ||
InlineResponse2001Data.initialize(this); | ||
@@ -65,61 +60,57 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Data</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/InlineResponse2001Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Data} The populated <code>InlineResponse2001Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Data</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/InlineResponse2001Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Data} The populated <code>InlineResponse2001Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Data(); | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Data(); | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'String'); | ||
} | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient.default.convertToType(data['code'], 'String'); | ||
} | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient["default"].convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient.default.convertToType(data['time'], 'String'); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient["default"].convertToType(data['types'], [_InlineResponse2001Types["default"]]); | ||
} | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient.default.convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse2001Language["default"].constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient.default.convertToType(data['types'], [_InlineResponse2001Types.default]); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2001Distributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse2001Language.default.constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse2001Publisher["default"].constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2001Distributor.default.constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_InlineResponse2001Categories["default"]]); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse2001Publisher.default.constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('chain')) { | ||
obj['chain'] = _InlineResponse2001Chain["default"].constructFromObject(data['chain']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient.default.convertToType(data['categories'], [_InlineResponse2001Categories.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('chain')) { | ||
obj['chain'] = _InlineResponse2001Chain.default.constructFromObject(data['chain']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2001Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -177,2 +168,2 @@ * Identifier of the news article. | ||
var _default = InlineResponse2001Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Distributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Distributor = /*#__PURE__*/function () { | ||
class InlineResponse2001Distributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2001Distributor</code>. | ||
*/ | ||
function InlineResponse2001Distributor() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Distributor); | ||
constructor() { | ||
InlineResponse2001Distributor.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Distributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Distributor</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/InlineResponse2001Distributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Distributor} The populated <code>InlineResponse2001Distributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Distributor</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/InlineResponse2001Distributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Distributor} The populated <code>InlineResponse2001Distributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Distributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Distributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Distributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of the distributor. | ||
var _default = InlineResponse2001Distributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Language | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Language = /*#__PURE__*/function () { | ||
class InlineResponse2001Language { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2001Language</code>. | ||
*/ | ||
function InlineResponse2001Language() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Language); | ||
constructor() { | ||
InlineResponse2001Language.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Language, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Language</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/InlineResponse2001Language} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Language} The populated <code>InlineResponse2001Language</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Language</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/InlineResponse2001Language} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Language} The populated <code>InlineResponse2001Language</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Language(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Language(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Language; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of the language. | ||
var _default = InlineResponse2001Language; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Meta | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Meta = /*#__PURE__*/function () { | ||
class InlineResponse2001Meta { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineResponse2001Meta</code>. | ||
*/ | ||
function InlineResponse2001Meta() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Meta); | ||
constructor() { | ||
InlineResponse2001Meta.initialize(this); | ||
@@ -58,33 +53,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Meta, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Meta</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/InlineResponse2001Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Meta} The populated <code>InlineResponse2001Meta</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Meta</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/InlineResponse2001Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Meta} The populated <code>InlineResponse2001Meta</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Meta(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject["default"].constructFromObject(data['status']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Meta(); | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _CursorBasedPaginationOutputObjectWithoutTotal["default"].constructFromObject(data['pagination']); | ||
} | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject.default.constructFromObject(data['status']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _CursorBasedPaginationOutputObjectWithoutTotal.default.constructFromObject(data['pagination']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2001Meta; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * @member {module:model/StatusObject} status | ||
var _default = InlineResponse2001Meta; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Publisher | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Publisher = /*#__PURE__*/function () { | ||
class InlineResponse2001Publisher { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2001Publisher</code>. | ||
*/ | ||
function InlineResponse2001Publisher() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Publisher); | ||
constructor() { | ||
InlineResponse2001Publisher.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Publisher, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Publisher</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/InlineResponse2001Publisher} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Publisher} The populated <code>InlineResponse2001Publisher</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Publisher</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/InlineResponse2001Publisher} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Publisher} The populated <code>InlineResponse2001Publisher</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Publisher(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Publisher(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Publisher; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of the publisher. | ||
var _default = InlineResponse2001Publisher; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2001Types | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2001Types = /*#__PURE__*/function () { | ||
class InlineResponse2001Types { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse2001Types</code>. | ||
*/ | ||
function InlineResponse2001Types() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2001Types); | ||
constructor() { | ||
InlineResponse2001Types.initialize(this); | ||
@@ -52,29 +47,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2001Types, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Types</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/InlineResponse2001Types} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Types} The populated <code>InlineResponse2001Types</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2001Types</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/InlineResponse2001Types} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2001Types} The populated <code>InlineResponse2001Types</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Types(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2001Types(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2001Types; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -88,2 +79,2 @@ * Identifier of the type of news article. | ||
var _default = InlineResponse2001Types; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2002 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2002 = /*#__PURE__*/function () { | ||
class InlineResponse2002 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2002</code>. | ||
*/ | ||
function InlineResponse2002() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2002); | ||
constructor() { | ||
InlineResponse2002.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2002, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002</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/InlineResponse2002} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002} The populated <code>InlineResponse2002</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002</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/InlineResponse2002} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002} The populated <code>InlineResponse2002</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2002Data["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2001Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2002Data.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2001Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2002; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/InlineResponse2002Data} data | ||
var _default = InlineResponse2002; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -22,2 +16,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -39,5 +35,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2002Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2002Data = /*#__PURE__*/function () { | ||
class InlineResponse2002Data { | ||
/** | ||
@@ -48,4 +44,3 @@ * Constructs a new <code>InlineResponse2002Data</code>. | ||
*/ | ||
function InlineResponse2002Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2002Data); | ||
constructor() { | ||
InlineResponse2002Data.initialize(this); | ||
@@ -60,37 +55,33 @@ } | ||
(0, _createClass2["default"])(InlineResponse2002Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002Data</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/InlineResponse2002Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002Data} The populated <code>InlineResponse2002Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002Data</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/InlineResponse2002Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002Data} The populated <code>InlineResponse2002Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002Data(); | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2002DataDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002Data(); | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse2001Publisher["default"].constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2002DataDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('articles')) { | ||
obj['articles'] = _ApiClient["default"].convertToType(data['articles'], [_InlineResponse2002DataArticles["default"]]); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse2001Publisher.default.constructFromObject(data['publisher']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('articles')) { | ||
obj['articles'] = _ApiClient.default.convertToType(data['articles'], [_InlineResponse2002DataArticles.default]); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2002Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -114,2 +105,2 @@ * @member {module:model/InlineResponse2002DataDistributor} distributor | ||
var _default = InlineResponse2002Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -22,2 +16,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -39,5 +35,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2002DataArticles | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2002DataArticles = /*#__PURE__*/function () { | ||
class InlineResponse2002DataArticles { | ||
/** | ||
@@ -47,4 +43,3 @@ * Constructs a new <code>InlineResponse2002DataArticles</code>. | ||
*/ | ||
function InlineResponse2002DataArticles() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2002DataArticles); | ||
constructor() { | ||
InlineResponse2002DataArticles.initialize(this); | ||
@@ -59,49 +54,45 @@ } | ||
(0, _createClass2["default"])(InlineResponse2002DataArticles, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002DataArticles</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/InlineResponse2002DataArticles} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002DataArticles} The populated <code>InlineResponse2002DataArticles</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002DataArticles</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/InlineResponse2002DataArticles} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002DataArticles} The populated <code>InlineResponse2002DataArticles</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002DataArticles(); | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002DataArticles(); | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'String'); | ||
} | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient.default.convertToType(data['code'], 'String'); | ||
} | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient["default"].convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient.default.convertToType(data['time'], 'String'); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient["default"].convertToType(data['types'], [_InlineResponse2001Types["default"]]); | ||
} | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient.default.convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse2001Language["default"].constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient.default.convertToType(data['types'], [_InlineResponse2001Types.default]); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_InlineResponse2001Categories["default"]]); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse2001Language.default.constructFromObject(data['language']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient.default.convertToType(data['categories'], [_InlineResponse2001Categories.default]); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2002DataArticles; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -144,2 +135,2 @@ * Identifier of the news article. | ||
var _default = InlineResponse2002DataArticles; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2002DataDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2002DataDistributor = /*#__PURE__*/function () { | ||
class InlineResponse2002DataDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2002DataDistributor</code>. | ||
*/ | ||
function InlineResponse2002DataDistributor() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2002DataDistributor); | ||
constructor() { | ||
InlineResponse2002DataDistributor.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2002DataDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002DataDistributor</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/InlineResponse2002DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002DataDistributor} The populated <code>InlineResponse2002DataDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2002DataDistributor</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/InlineResponse2002DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2002DataDistributor} The populated <code>InlineResponse2002DataDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002DataDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2002DataDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2002DataDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of the distributor. | ||
var _default = InlineResponse2002DataDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2003 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2003 = /*#__PURE__*/function () { | ||
class InlineResponse2003 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2003</code>. | ||
*/ | ||
function InlineResponse2003() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2003); | ||
constructor() { | ||
InlineResponse2003.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2003, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2003</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/InlineResponse2003} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2003} The populated <code>InlineResponse2003</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2003</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/InlineResponse2003} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2003} The populated <code>InlineResponse2003</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2003(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2003Data["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2003(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2003Data.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2003; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/InlineResponse2003Data} data | ||
var _default = InlineResponse2003; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2003Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2003Data = /*#__PURE__*/function () { | ||
class InlineResponse2003Data { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2003Data</code>. | ||
*/ | ||
function InlineResponse2003Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2003Data); | ||
constructor() { | ||
InlineResponse2003Data.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse2003Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2003Data</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/InlineResponse2003Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2003Data} The populated <code>InlineResponse2003Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2003Data</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/InlineResponse2003Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2003Data} The populated <code>InlineResponse2003Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2003Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2003Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse2003Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Name of the news article type. | ||
var _default = InlineResponse2003Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2004 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2004 = /*#__PURE__*/function () { | ||
class InlineResponse2004 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2004</code>. | ||
*/ | ||
function InlineResponse2004() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2004); | ||
constructor() { | ||
InlineResponse2004.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2004, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2004</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/InlineResponse2004} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2004} The populated <code>InlineResponse2004</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2004</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/InlineResponse2004} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2004} The populated <code>InlineResponse2004</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2004(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_InlineResponse2004Data["default"]]); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2004(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient.default.convertToType(data['data'], [_InlineResponse2004Data.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2004; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * List of news article types, sorted by ascending identifier value. | ||
var _default = InlineResponse2004; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2004Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2004Data = /*#__PURE__*/function () { | ||
class InlineResponse2004Data { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse2004Data</code>. | ||
*/ | ||
function InlineResponse2004Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2004Data); | ||
constructor() { | ||
InlineResponse2004Data.initialize(this); | ||
@@ -52,33 +47,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2004Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2004Data</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/InlineResponse2004Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2004Data} The populated <code>InlineResponse2004Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2004Data</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/InlineResponse2004Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2004Data} The populated <code>InlineResponse2004Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2004Data(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2004Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2004Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -98,2 +89,2 @@ * Identifier of the news article type. | ||
var _default = InlineResponse2004Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2005 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2005 = /*#__PURE__*/function () { | ||
class InlineResponse2005 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2005</code>. | ||
*/ | ||
function InlineResponse2005() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2005); | ||
constructor() { | ||
InlineResponse2005.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2005, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005</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/InlineResponse2005} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005} The populated <code>InlineResponse2005</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005</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/InlineResponse2005} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005} The populated <code>InlineResponse2005</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2005Data["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2005Data.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2005; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/InlineResponse2005Data} data | ||
var _default = InlineResponse2005; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2005Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2005Data = /*#__PURE__*/function () { | ||
class InlineResponse2005Data { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>InlineResponse2005Data</code>. | ||
*/ | ||
function InlineResponse2005Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2005Data); | ||
constructor() { | ||
InlineResponse2005Data.initialize(this); | ||
@@ -56,33 +51,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2005Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005Data</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/InlineResponse2005Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005Data} The populated <code>InlineResponse2005Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005Data</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/InlineResponse2005Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005Data} The populated <code>InlineResponse2005Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005Data(); | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _InlineResponse2005DataDelivery["default"].constructFromObject(data['delivery']); | ||
} | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _InlineResponse2005DataDelivery.default.constructFromObject(data['delivery']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2005Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * Name of the distributor. | ||
var _default = InlineResponse2005Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2005DataDelivery | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2005DataDelivery = /*#__PURE__*/function () { | ||
class InlineResponse2005DataDelivery { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2005DataDelivery</code>. | ||
*/ | ||
function InlineResponse2005DataDelivery() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2005DataDelivery); | ||
constructor() { | ||
InlineResponse2005DataDelivery.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2005DataDelivery, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005DataDelivery</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/InlineResponse2005DataDelivery} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005DataDelivery} The populated <code>InlineResponse2005DataDelivery</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2005DataDelivery</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/InlineResponse2005DataDelivery} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2005DataDelivery} The populated <code>InlineResponse2005DataDelivery</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005DataDelivery(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2005DataDelivery(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2005DataDelivery; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Identifier of the delivery. | ||
var _default = InlineResponse2005DataDelivery; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2006 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2006 = /*#__PURE__*/function () { | ||
class InlineResponse2006 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2006</code>. | ||
*/ | ||
function InlineResponse2006() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2006); | ||
constructor() { | ||
InlineResponse2006.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2006, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2006</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/InlineResponse2006} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2006} The populated <code>InlineResponse2006</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2006</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/InlineResponse2006} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2006} The populated <code>InlineResponse2006</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2006(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_InlineResponse2006Data["default"]]); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2006(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient.default.convertToType(data['data'], [_InlineResponse2006Data.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2006; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * List of distributors. | ||
var _default = InlineResponse2006; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2006Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2006Data = /*#__PURE__*/function () { | ||
class InlineResponse2006Data { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>InlineResponse2006Data</code>. | ||
*/ | ||
function InlineResponse2006Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2006Data); | ||
constructor() { | ||
InlineResponse2006Data.initialize(this); | ||
@@ -55,37 +50,33 @@ } | ||
(0, _createClass2["default"])(InlineResponse2006Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2006Data</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/InlineResponse2006Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2006Data} The populated <code>InlineResponse2006Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2006Data</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/InlineResponse2006Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2006Data} The populated <code>InlineResponse2006Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2006Data(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2006Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _InlineResponse2005DataDelivery["default"].constructFromObject(data['delivery']); | ||
} | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _InlineResponse2005DataDelivery.default.constructFromObject(data['delivery']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2006Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -110,2 +101,2 @@ * Identifier of the distributor. | ||
var _default = InlineResponse2006Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2007 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2007 = /*#__PURE__*/function () { | ||
class InlineResponse2007 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2007</code>. | ||
*/ | ||
function InlineResponse2007() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2007); | ||
constructor() { | ||
InlineResponse2007.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2007, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007</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/InlineResponse2007} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007} The populated <code>InlineResponse2007</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007</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/InlineResponse2007} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007} The populated <code>InlineResponse2007</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2007Data["default"].constructFromObject(data['data']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _InlineResponse2007Data.default.constructFromObject(data['data']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2007; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * @member {module:model/InlineResponse2007Data} data | ||
var _default = InlineResponse2007; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2007Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2007Data = /*#__PURE__*/function () { | ||
class InlineResponse2007Data { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>InlineResponse2007Data</code>. | ||
*/ | ||
function InlineResponse2007Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2007Data); | ||
constructor() { | ||
InlineResponse2007Data.initialize(this); | ||
@@ -56,33 +51,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2007Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007Data</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/InlineResponse2007Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007Data} The populated <code>InlineResponse2007Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007Data</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/InlineResponse2007Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007Data} The populated <code>InlineResponse2007Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007Data(); | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2007DataDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2007DataDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2007Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -101,2 +92,2 @@ * Name of the publisher. | ||
var _default = InlineResponse2007Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2007DataDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2007DataDistributor = /*#__PURE__*/function () { | ||
class InlineResponse2007DataDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse2007DataDistributor</code>. | ||
*/ | ||
function InlineResponse2007DataDistributor() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2007DataDistributor); | ||
constructor() { | ||
InlineResponse2007DataDistributor.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2007DataDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007DataDistributor</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/InlineResponse2007DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007DataDistributor} The populated <code>InlineResponse2007DataDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2007DataDistributor</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/InlineResponse2007DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2007DataDistributor} The populated <code>InlineResponse2007DataDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007DataDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2007DataDistributor(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2007DataDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Identifier of the distributor. | ||
var _default = InlineResponse2007DataDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2008 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2008 = /*#__PURE__*/function () { | ||
class InlineResponse2008 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2008</code>. | ||
*/ | ||
function InlineResponse2008() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2008); | ||
constructor() { | ||
InlineResponse2008.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2008, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008</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/InlineResponse2008} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008} The populated <code>InlineResponse2008</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008</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/InlineResponse2008} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008} The populated <code>InlineResponse2008</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_InlineResponse2008Data["default"]]); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2008Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient.default.convertToType(data['data'], [_InlineResponse2008Data.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse2008Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2008; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * List of publishers. | ||
var _default = InlineResponse2008; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2008Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2008Data = /*#__PURE__*/function () { | ||
class InlineResponse2008Data { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>InlineResponse2008Data</code>. | ||
*/ | ||
function InlineResponse2008Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2008Data); | ||
constructor() { | ||
InlineResponse2008Data.initialize(this); | ||
@@ -55,37 +50,33 @@ } | ||
(0, _createClass2["default"])(InlineResponse2008Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008Data</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/InlineResponse2008Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008Data} The populated <code>InlineResponse2008Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008Data</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/InlineResponse2008Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008Data} The populated <code>InlineResponse2008Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008Data(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2007DataDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse2007DataDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2008Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -110,2 +101,2 @@ * Identifier of the publisher. | ||
var _default = InlineResponse2008Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2008Meta | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2008Meta = /*#__PURE__*/function () { | ||
class InlineResponse2008Meta { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>InlineResponse2008Meta</code>. | ||
*/ | ||
function InlineResponse2008Meta() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2008Meta); | ||
constructor() { | ||
InlineResponse2008Meta.initialize(this); | ||
@@ -58,33 +53,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2008Meta, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008Meta</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/InlineResponse2008Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008Meta} The populated <code>InlineResponse2008Meta</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2008Meta</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/InlineResponse2008Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2008Meta} The populated <code>InlineResponse2008Meta</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008Meta(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject["default"].constructFromObject(data['status']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2008Meta(); | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _OffsetBasedPaginationOutputObjectWithoutTotal["default"].constructFromObject(data['pagination']); | ||
} | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject.default.constructFromObject(data['status']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _OffsetBasedPaginationOutputObjectWithoutTotal.default.constructFromObject(data['pagination']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2008Meta; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * @member {module:model/StatusObject} status | ||
var _default = InlineResponse2008Meta; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2009 | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2009 = /*#__PURE__*/function () { | ||
class InlineResponse2009 { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>InlineResponse2009</code>. | ||
*/ | ||
function InlineResponse2009() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2009); | ||
constructor() { | ||
InlineResponse2009.initialize(this); | ||
@@ -57,33 +52,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2009, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2009</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/InlineResponse2009} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2009} The populated <code>InlineResponse2009</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2009</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/InlineResponse2009} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2009} The populated <code>InlineResponse2009</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2009(); | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_InlineResponse2009Data["default"]]); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2009(); | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta["default"].constructFromObject(data['meta']); | ||
} | ||
if (data.hasOwnProperty('data')) { | ||
obj['data'] = _ApiClient.default.convertToType(data['data'], [_InlineResponse2009Data.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('meta')) { | ||
obj['meta'] = _InlineResponse200Meta.default.constructFromObject(data['meta']); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2009; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * List of publishers. | ||
var _default = InlineResponse2009; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse2009Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse2009Data = /*#__PURE__*/function () { | ||
class InlineResponse2009Data { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse2009Data</code>. | ||
*/ | ||
function InlineResponse2009Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse2009Data); | ||
constructor() { | ||
InlineResponse2009Data.initialize(this); | ||
@@ -52,33 +47,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse2009Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2009Data</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/InlineResponse2009Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2009Data} The populated <code>InlineResponse2009Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse2009Data</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/InlineResponse2009Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse2009Data} The populated <code>InlineResponse2009Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2009Data(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse2009Data(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse2009Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -98,2 +89,2 @@ * Identifier of the publisher. | ||
var _default = InlineResponse2009Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -30,2 +24,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -47,5 +43,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200Data | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200Data = /*#__PURE__*/function () { | ||
class InlineResponse200Data { | ||
/** | ||
@@ -56,4 +52,3 @@ * Constructs a new <code>InlineResponse200Data</code>. | ||
*/ | ||
function InlineResponse200Data() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200Data); | ||
constructor() { | ||
InlineResponse200Data.initialize(this); | ||
@@ -68,65 +63,61 @@ } | ||
(0, _createClass2["default"])(InlineResponse200Data, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200Data</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/InlineResponse200Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200Data} The populated <code>InlineResponse200Data</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200Data</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/InlineResponse200Data} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200Data} The populated <code>InlineResponse200Data</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200Data(); | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200Data(); | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient["default"].convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('time')) { | ||
obj['time'] = _ApiClient.default.convertToType(data['time'], 'String'); | ||
} | ||
if (data.hasOwnProperty('body')) { | ||
obj['body'] = _ApiClient["default"].convertToType(data['body'], 'String'); | ||
} | ||
if (data.hasOwnProperty('headline')) { | ||
obj['headline'] = _ApiClient.default.convertToType(data['headline'], 'String'); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient["default"].convertToType(data['types'], [_InlineResponse200DataTypes["default"]]); | ||
} | ||
if (data.hasOwnProperty('body')) { | ||
obj['body'] = _ApiClient.default.convertToType(data['body'], 'String'); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse200DataLanguage["default"].constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _ApiClient.default.convertToType(data['types'], [_InlineResponse200DataTypes.default]); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse200DataDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _InlineResponse200DataLanguage.default.constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse200DataPublisher["default"].constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _InlineResponse200DataDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_InlineResponse200DataCategories["default"]]); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _InlineResponse200DataPublisher.default.constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('instruments')) { | ||
obj['instruments'] = _ApiClient["default"].convertToType(data['instruments'], [_InlineResponse200DataInstruments["default"]]); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _ApiClient.default.convertToType(data['categories'], [_InlineResponse200DataCategories.default]); | ||
} | ||
if (data.hasOwnProperty('media')) { | ||
obj['media'] = _ApiClient["default"].convertToType(data['media'], [_InlineResponse200DataMedia["default"]]); | ||
} | ||
if (data.hasOwnProperty('instruments')) { | ||
obj['instruments'] = _ApiClient.default.convertToType(data['instruments'], [_InlineResponse200DataInstruments.default]); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('media')) { | ||
obj['media'] = _ApiClient.default.convertToType(data['media'], [_InlineResponse200DataMedia.default]); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200Data; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -191,2 +182,2 @@ * Date and time of the news article. | ||
var _default = InlineResponse200Data; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataCategories | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataCategories = /*#__PURE__*/function () { | ||
class InlineResponse200DataCategories { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse200DataCategories</code>. | ||
*/ | ||
function InlineResponse200DataCategories() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataCategories); | ||
constructor() { | ||
InlineResponse200DataCategories.initialize(this); | ||
@@ -52,33 +47,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataCategories, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataCategories</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/InlineResponse200DataCategories} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataCategories} The populated <code>InlineResponse200DataCategories</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataCategories</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/InlineResponse200DataCategories} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataCategories} The populated <code>InlineResponse200DataCategories</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataCategories(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataCategories(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataCategories; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -98,2 +89,2 @@ * Identifier of the category. | ||
var _default = InlineResponse200DataCategories; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataDistributor = /*#__PURE__*/function () { | ||
class InlineResponse200DataDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse200DataDistributor</code>. | ||
*/ | ||
function InlineResponse200DataDistributor() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataDistributor); | ||
constructor() { | ||
InlineResponse200DataDistributor.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataDistributor</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/InlineResponse200DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataDistributor} The populated <code>InlineResponse200DataDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataDistributor</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/InlineResponse200DataDistributor} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataDistributor} The populated <code>InlineResponse200DataDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataDistributor(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Identifier of the distributor. | ||
var _default = InlineResponse200DataDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataInstruments | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataInstruments = /*#__PURE__*/function () { | ||
class InlineResponse200DataInstruments { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse200DataInstruments</code>. | ||
*/ | ||
function InlineResponse200DataInstruments() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataInstruments); | ||
constructor() { | ||
InlineResponse200DataInstruments.initialize(this); | ||
@@ -52,29 +47,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataInstruments, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataInstruments</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/InlineResponse200DataInstruments} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataInstruments} The populated <code>InlineResponse200DataInstruments</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataInstruments</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/InlineResponse200DataInstruments} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataInstruments} The populated <code>InlineResponse200DataInstruments</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataInstruments(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataInstruments(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse200DataInstruments; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -88,2 +79,2 @@ * Identifier of the instrument. | ||
var _default = InlineResponse200DataInstruments; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataLanguage | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataLanguage = /*#__PURE__*/function () { | ||
class InlineResponse200DataLanguage { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse200DataLanguage</code>. | ||
*/ | ||
function InlineResponse200DataLanguage() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataLanguage); | ||
constructor() { | ||
InlineResponse200DataLanguage.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataLanguage, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataLanguage</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/InlineResponse200DataLanguage} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataLanguage} The populated <code>InlineResponse200DataLanguage</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataLanguage</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/InlineResponse200DataLanguage} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataLanguage} The populated <code>InlineResponse200DataLanguage</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataLanguage(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataLanguage(); | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient.default.convertToType(data['code'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataLanguage; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Identifier of the language. | ||
var _default = InlineResponse200DataLanguage; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataMedia | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataMedia = /*#__PURE__*/function () { | ||
class InlineResponse200DataMedia { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse200DataMedia</code>. | ||
*/ | ||
function InlineResponse200DataMedia() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataMedia); | ||
constructor() { | ||
InlineResponse200DataMedia.initialize(this); | ||
@@ -52,49 +47,45 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataMedia, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataMedia</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/InlineResponse200DataMedia} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataMedia} The populated <code>InlineResponse200DataMedia</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataMedia</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/InlineResponse200DataMedia} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataMedia} The populated <code>InlineResponse200DataMedia</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataMedia(); | ||
if (data.hasOwnProperty('url')) { | ||
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataMedia(); | ||
if (data.hasOwnProperty('mimeType')) { | ||
obj['mimeType'] = _ApiClient["default"].convertToType(data['mimeType'], 'String'); | ||
} | ||
if (data.hasOwnProperty('url')) { | ||
obj['url'] = _ApiClient.default.convertToType(data['url'], 'String'); | ||
} | ||
if (data.hasOwnProperty('caption')) { | ||
obj['caption'] = _ApiClient["default"].convertToType(data['caption'], 'String'); | ||
} | ||
if (data.hasOwnProperty('mimeType')) { | ||
obj['mimeType'] = _ApiClient.default.convertToType(data['mimeType'], 'String'); | ||
} | ||
if (data.hasOwnProperty('alternativeText')) { | ||
obj['alternativeText'] = _ApiClient["default"].convertToType(data['alternativeText'], 'String'); | ||
} | ||
if (data.hasOwnProperty('caption')) { | ||
obj['caption'] = _ApiClient.default.convertToType(data['caption'], 'String'); | ||
} | ||
if (data.hasOwnProperty('width')) { | ||
obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('alternativeText')) { | ||
obj['alternativeText'] = _ApiClient.default.convertToType(data['alternativeText'], 'String'); | ||
} | ||
if (data.hasOwnProperty('height')) { | ||
obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('width')) { | ||
obj['width'] = _ApiClient.default.convertToType(data['width'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('height')) { | ||
obj['height'] = _ApiClient.default.convertToType(data['height'], 'Number'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataMedia; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -138,2 +129,2 @@ * URL of the media element. The URL is publicly available and hosted by either the publisher, the distributor, or FactSet. | ||
var _default = InlineResponse200DataMedia; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataPublisher | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataPublisher = /*#__PURE__*/function () { | ||
class InlineResponse200DataPublisher { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>InlineResponse200DataPublisher</code>. | ||
*/ | ||
function InlineResponse200DataPublisher() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataPublisher); | ||
constructor() { | ||
InlineResponse200DataPublisher.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataPublisher, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataPublisher</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/InlineResponse200DataPublisher} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataPublisher} The populated <code>InlineResponse200DataPublisher</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataPublisher</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/InlineResponse200DataPublisher} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataPublisher} The populated <code>InlineResponse200DataPublisher</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataPublisher(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataPublisher(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataPublisher; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Identifier of the publisher. | ||
var _default = InlineResponse200DataPublisher; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200DataTypes | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200DataTypes = /*#__PURE__*/function () { | ||
class InlineResponse200DataTypes { | ||
/** | ||
@@ -40,4 +36,3 @@ * Constructs a new <code>InlineResponse200DataTypes</code>. | ||
*/ | ||
function InlineResponse200DataTypes() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200DataTypes); | ||
constructor() { | ||
InlineResponse200DataTypes.initialize(this); | ||
@@ -52,33 +47,29 @@ } | ||
(0, _createClass2["default"])(InlineResponse200DataTypes, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataTypes</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/InlineResponse200DataTypes} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataTypes} The populated <code>InlineResponse200DataTypes</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200DataTypes</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/InlineResponse200DataTypes} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200DataTypes} The populated <code>InlineResponse200DataTypes</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataTypes(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200DataTypes(); | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('name')) { | ||
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String'); | ||
} | ||
} | ||
}]); | ||
return InlineResponse200DataTypes; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -98,2 +89,2 @@ * Identifier of the type of news article. | ||
var _default = InlineResponse200DataTypes; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/InlineResponse200Meta | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var InlineResponse200Meta = /*#__PURE__*/function () { | ||
class InlineResponse200Meta { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>InlineResponse200Meta</code>. | ||
*/ | ||
function InlineResponse200Meta() { | ||
(0, _classCallCheck2["default"])(this, InlineResponse200Meta); | ||
constructor() { | ||
InlineResponse200Meta.initialize(this); | ||
@@ -56,29 +51,25 @@ } | ||
(0, _createClass2["default"])(InlineResponse200Meta, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200Meta</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/InlineResponse200Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200Meta} The populated <code>InlineResponse200Meta</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>InlineResponse200Meta</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/InlineResponse200Meta} obj Optional instance to populate. | ||
* @return {module:model/InlineResponse200Meta} The populated <code>InlineResponse200Meta</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200Meta(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject["default"].constructFromObject(data['status']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new InlineResponse200Meta(); | ||
if (data.hasOwnProperty('status')) { | ||
obj['status'] = _StatusObject.default.constructFromObject(data['status']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return InlineResponse200Meta; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -91,2 +82,2 @@ * @member {module:model/StatusObject} status | ||
var _default = InlineResponse200Meta; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListByChainData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListByChainData = /*#__PURE__*/function () { | ||
class NewsArticleListByChainData { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>NewsArticleListByChainData</code>. | ||
*/ | ||
function NewsArticleListByChainData(id) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListByChainData); | ||
constructor(id) { | ||
NewsArticleListByChainData.initialize(this, id); | ||
@@ -57,35 +52,31 @@ } | ||
(0, _createClass2["default"])(NewsArticleListByChainData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, id) { | ||
obj['id'] = id; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByChainData</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/NewsArticleListByChainData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByChainData} The populated <code>NewsArticleListByChainData</code> instance. | ||
*/ | ||
static initialize(obj, id) { | ||
obj['id'] = id; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByChainData</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/NewsArticleListByChainData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByChainData} The populated <code>NewsArticleListByChainData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByChainData(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByChainData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListByChainDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListByChainDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListByChainData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * Identifier of the news article chain. | ||
var _default = NewsArticleListByChainData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListByChainDataFilter | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListByChainDataFilter = /*#__PURE__*/function () { | ||
class NewsArticleListByChainDataFilter { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>NewsArticleListByChainDataFilter</code>. | ||
*/ | ||
function NewsArticleListByChainDataFilter() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListByChainDataFilter); | ||
constructor() { | ||
NewsArticleListByChainDataFilter.initialize(this); | ||
@@ -56,29 +51,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListByChainDataFilter, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListByChainDataFilter</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/NewsArticleListByChainDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByChainDataFilter} The populated <code>NewsArticleListByChainDataFilter</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListByChainDataFilter</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/NewsArticleListByChainDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByChainDataFilter} The populated <code>NewsArticleListByChainDataFilter</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByChainDataFilter(); | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange["default"].constructFromObject(data['range']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByChainDataFilter(); | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange.default.constructFromObject(data['range']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListByChainDataFilter; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -91,2 +82,2 @@ * @member {module:model/NewsArticleListDataFilterRange} range | ||
var _default = NewsArticleListByChainDataFilter; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListByIndexData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListByIndexData = /*#__PURE__*/function () { | ||
class NewsArticleListByIndexData { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>NewsArticleListByIndexData</code>. | ||
*/ | ||
function NewsArticleListByIndexData(ids) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListByIndexData); | ||
constructor(ids) { | ||
NewsArticleListByIndexData.initialize(this, ids); | ||
@@ -57,35 +52,31 @@ } | ||
(0, _createClass2["default"])(NewsArticleListByIndexData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByIndexData</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/NewsArticleListByIndexData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByIndexData} The populated <code>NewsArticleListByIndexData</code> instance. | ||
*/ | ||
static initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByIndexData</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/NewsArticleListByIndexData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByIndexData} The populated <code>NewsArticleListByIndexData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByIndexData(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByIndexData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListByIndexData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * List of index notation identifiers. | ||
var _default = NewsArticleListByIndexData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListByInstrumentData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListByInstrumentData = /*#__PURE__*/function () { | ||
class NewsArticleListByInstrumentData { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>NewsArticleListByInstrumentData</code>. | ||
*/ | ||
function NewsArticleListByInstrumentData(ids) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListByInstrumentData); | ||
constructor(ids) { | ||
NewsArticleListByInstrumentData.initialize(this, ids); | ||
@@ -57,35 +52,31 @@ } | ||
(0, _createClass2["default"])(NewsArticleListByInstrumentData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByInstrumentData</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/NewsArticleListByInstrumentData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByInstrumentData} The populated <code>NewsArticleListByInstrumentData</code> instance. | ||
*/ | ||
static initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByInstrumentData</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/NewsArticleListByInstrumentData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByInstrumentData} The populated <code>NewsArticleListByInstrumentData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByInstrumentData(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByInstrumentData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListByInstrumentData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * List of instrument identifiers. | ||
var _default = NewsArticleListByInstrumentData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListByMediaKindData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListByMediaKindData = /*#__PURE__*/function () { | ||
class NewsArticleListByMediaKindData { | ||
/** | ||
@@ -45,4 +41,3 @@ * Constructs a new <code>NewsArticleListByMediaKindData</code>. | ||
*/ | ||
function NewsArticleListByMediaKindData(ids) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListByMediaKindData); | ||
constructor(ids) { | ||
NewsArticleListByMediaKindData.initialize(this, ids); | ||
@@ -57,35 +52,31 @@ } | ||
(0, _createClass2["default"])(NewsArticleListByMediaKindData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByMediaKindData</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/NewsArticleListByMediaKindData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByMediaKindData} The populated <code>NewsArticleListByMediaKindData</code> instance. | ||
*/ | ||
static initialize(obj, ids) { | ||
obj['ids'] = ids; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListByMediaKindData</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/NewsArticleListByMediaKindData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListByMediaKindData} The populated <code>NewsArticleListByMediaKindData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByMediaKindData(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListByMediaKindData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListByMediaKindData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * List of media kind identifiers. See endpoint `/basic/media/kind/list` for valid values. | ||
var _default = NewsArticleListByMediaKindData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListData = /*#__PURE__*/function () { | ||
class NewsArticleListData { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>NewsArticleListData</code>. | ||
*/ | ||
function NewsArticleListData() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListData); | ||
constructor() { | ||
NewsArticleListData.initialize(this); | ||
@@ -56,29 +51,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListData</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/NewsArticleListData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListData} The populated <code>NewsArticleListData</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListData</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/NewsArticleListData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListData} The populated <code>NewsArticleListData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListData(); | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsArticleListDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -91,2 +82,2 @@ * @member {module:model/NewsArticleListDataFilter} filter | ||
var _default = NewsArticleListData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -30,2 +24,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -47,5 +43,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilter | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilter = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilter { | ||
/** | ||
@@ -56,4 +52,3 @@ * Constructs a new <code>NewsArticleListDataFilter</code>. | ||
*/ | ||
function NewsArticleListDataFilter() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilter); | ||
constructor() { | ||
NewsArticleListDataFilter.initialize(this); | ||
@@ -68,53 +63,49 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilter, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilter</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/NewsArticleListDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilter} The populated <code>NewsArticleListDataFilter</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilter</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/NewsArticleListDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilter} The populated <code>NewsArticleListDataFilter</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilter(); | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange["default"].constructFromObject(data['range']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilter(); | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _NewsArticleListDataFilterCategories["default"].constructFromObject(data['categories']); | ||
} | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange.default.constructFromObject(data['range']); | ||
} | ||
if (data.hasOwnProperty('regions')) { | ||
obj['regions'] = _NewsArticleListDataFilterRegions["default"].constructFromObject(data['regions']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _NewsArticleListDataFilterCategories.default.constructFromObject(data['categories']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsArticleListDataFilterDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('regions')) { | ||
obj['regions'] = _NewsArticleListDataFilterRegions.default.constructFromObject(data['regions']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _NewsArticleListDataFilterPublisher["default"].constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsArticleListDataFilterDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _NewsArticleListDataFilterLanguage["default"].constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _NewsArticleListDataFilterPublisher.default.constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _NewsArticleListDataFilterTypes["default"].constructFromObject(data['types']); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _NewsArticleListDataFilterLanguage.default.constructFromObject(data['language']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _NewsArticleListDataFilterTypes.default.constructFromObject(data['types']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListDataFilter; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -157,2 +148,2 @@ * @member {module:model/NewsArticleListDataFilterRange} range | ||
var _default = NewsArticleListDataFilter; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterCategories | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterCategories = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterCategories { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterCategories</code>. | ||
*/ | ||
function NewsArticleListDataFilterCategories() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterCategories); | ||
constructor() { | ||
NewsArticleListDataFilterCategories.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterCategories, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterCategories</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/NewsArticleListDataFilterCategories} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterCategories} The populated <code>NewsArticleListDataFilterCategories</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterCategories</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/NewsArticleListDataFilterCategories} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterCategories} The populated <code>NewsArticleListDataFilterCategories</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterCategories(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterCategories(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterCategories; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the categories. | ||
var _default = NewsArticleListDataFilterCategories; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterDistributor = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterDistributor</code>. | ||
*/ | ||
function NewsArticleListDataFilterDistributor() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterDistributor); | ||
constructor() { | ||
NewsArticleListDataFilterDistributor.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterDistributor</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/NewsArticleListDataFilterDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterDistributor} The populated <code>NewsArticleListDataFilterDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterDistributor</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/NewsArticleListDataFilterDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterDistributor} The populated <code>NewsArticleListDataFilterDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterDistributor(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterDistributor(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the distributors. | ||
var _default = NewsArticleListDataFilterDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterLanguage | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterLanguage = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterLanguage { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterLanguage</code>. | ||
*/ | ||
function NewsArticleListDataFilterLanguage() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterLanguage); | ||
constructor() { | ||
NewsArticleListDataFilterLanguage.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterLanguage, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterLanguage</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/NewsArticleListDataFilterLanguage} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterLanguage} The populated <code>NewsArticleListDataFilterLanguage</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterLanguage</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/NewsArticleListDataFilterLanguage} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterLanguage} The populated <code>NewsArticleListDataFilterLanguage</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterLanguage(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterLanguage(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterLanguage; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the languages. | ||
var _default = NewsArticleListDataFilterLanguage; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterPublisher | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterPublisher = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterPublisher { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterPublisher</code>. | ||
*/ | ||
function NewsArticleListDataFilterPublisher() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterPublisher); | ||
constructor() { | ||
NewsArticleListDataFilterPublisher.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterPublisher, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterPublisher</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/NewsArticleListDataFilterPublisher} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterPublisher} The populated <code>NewsArticleListDataFilterPublisher</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterPublisher</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/NewsArticleListDataFilterPublisher} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterPublisher} The populated <code>NewsArticleListDataFilterPublisher</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterPublisher(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterPublisher(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterPublisher; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the publishers. | ||
var _default = NewsArticleListDataFilterPublisher; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterRange | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterRange = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterRange { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>NewsArticleListDataFilterRange</code>. | ||
*/ | ||
function NewsArticleListDataFilterRange(start, end) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterRange); | ||
constructor(start, end) { | ||
NewsArticleListDataFilterRange.initialize(this, start, end); | ||
@@ -55,36 +50,32 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterRange, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, start, end) { | ||
obj['start'] = start; | ||
obj['end'] = end; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterRange</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/NewsArticleListDataFilterRange} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterRange} The populated <code>NewsArticleListDataFilterRange</code> instance. | ||
*/ | ||
static initialize(obj, start, end) { | ||
obj['start'] = start; | ||
obj['end'] = end; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterRange</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/NewsArticleListDataFilterRange} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterRange} The populated <code>NewsArticleListDataFilterRange</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterRange(); | ||
if (data.hasOwnProperty('start')) { | ||
obj['start'] = _ApiClient["default"].convertToType(data['start'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterRange(); | ||
if (data.hasOwnProperty('end')) { | ||
obj['end'] = _ApiClient["default"].convertToType(data['end'], 'String'); | ||
} | ||
if (data.hasOwnProperty('start')) { | ||
obj['start'] = _ApiClient.default.convertToType(data['start'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('end')) { | ||
obj['end'] = _ApiClient.default.convertToType(data['end'], 'String'); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListDataFilterRange; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * The starting point of the time range (inclusive), or `null` to indicate that the time range extends indefinitely into the past. | ||
var _default = NewsArticleListDataFilterRange; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterRegions | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterRegions = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterRegions { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterRegions</code>. | ||
*/ | ||
function NewsArticleListDataFilterRegions() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterRegions); | ||
constructor() { | ||
NewsArticleListDataFilterRegions.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterRegions, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterRegions</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/NewsArticleListDataFilterRegions} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterRegions} The populated <code>NewsArticleListDataFilterRegions</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterRegions</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/NewsArticleListDataFilterRegions} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterRegions} The populated <code>NewsArticleListDataFilterRegions</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterRegions(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterRegions(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterRegions; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the regions. | ||
var _default = NewsArticleListDataFilterRegions; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListDataFilterTypes | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListDataFilterTypes = /*#__PURE__*/function () { | ||
class NewsArticleListDataFilterTypes { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListDataFilterTypes</code>. | ||
*/ | ||
function NewsArticleListDataFilterTypes() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListDataFilterTypes); | ||
constructor() { | ||
NewsArticleListDataFilterTypes.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleListDataFilterTypes, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterTypes</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/NewsArticleListDataFilterTypes} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterTypes} The populated <code>NewsArticleListDataFilterTypes</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListDataFilterTypes</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/NewsArticleListDataFilterTypes} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListDataFilterTypes} The populated <code>NewsArticleListDataFilterTypes</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterTypes(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListDataFilterTypes(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListDataFilterTypes; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the article types. | ||
var _default = NewsArticleListDataFilterTypes; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListMeta | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListMeta = /*#__PURE__*/function () { | ||
class NewsArticleListMeta { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>NewsArticleListMeta</code>. | ||
*/ | ||
function NewsArticleListMeta() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListMeta); | ||
constructor() { | ||
NewsArticleListMeta.initialize(this); | ||
@@ -58,37 +53,33 @@ } | ||
(0, _createClass2["default"])(NewsArticleListMeta, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListMeta</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/NewsArticleListMeta} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMeta} The populated <code>NewsArticleListMeta</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListMeta</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/NewsArticleListMeta} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMeta} The populated <code>NewsArticleListMeta</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMeta(); | ||
if (data.hasOwnProperty('attributes')) { | ||
obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMeta(); | ||
if (data.hasOwnProperty('subscription')) { | ||
obj['subscription'] = _NewsArticleListMetaSubscription["default"].constructFromObject(data['subscription']); | ||
} | ||
if (data.hasOwnProperty('attributes')) { | ||
obj['attributes'] = _ApiClient.default.convertToType(data['attributes'], ['String']); | ||
} | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _NewsArticleListMetaPagination["default"].constructFromObject(data['pagination']); | ||
} | ||
if (data.hasOwnProperty('subscription')) { | ||
obj['subscription'] = _NewsArticleListMetaSubscription.default.constructFromObject(data['subscription']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('pagination')) { | ||
obj['pagination'] = _NewsArticleListMetaPagination.default.constructFromObject(data['pagination']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListMeta; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -112,2 +103,2 @@ * Limit the attributes returned in the response to the specified set. | ||
var _default = NewsArticleListMeta; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListMetaPagination | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListMetaPagination = /*#__PURE__*/function () { | ||
class NewsArticleListMetaPagination { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleListMetaPagination</code>. | ||
*/ | ||
function NewsArticleListMetaPagination() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListMetaPagination); | ||
constructor() { | ||
NewsArticleListMetaPagination.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(NewsArticleListMetaPagination, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListMetaPagination</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/NewsArticleListMetaPagination} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMetaPagination} The populated <code>NewsArticleListMetaPagination</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleListMetaPagination</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/NewsArticleListMetaPagination} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMetaPagination} The populated <code>NewsArticleListMetaPagination</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMetaPagination(); | ||
if (data.hasOwnProperty('cursor')) { | ||
obj['cursor'] = _ApiClient["default"].convertToType(data['cursor'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMetaPagination(); | ||
if (data.hasOwnProperty('limit')) { | ||
obj['limit'] = _ApiClient["default"].convertToType(data['limit'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('cursor')) { | ||
obj['cursor'] = _ApiClient.default.convertToType(data['cursor'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('limit')) { | ||
obj['limit'] = _ApiClient.default.convertToType(data['limit'], 'Number'); | ||
} | ||
} | ||
}]); | ||
return NewsArticleListMetaPagination; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -99,2 +90,2 @@ * Starting point as returned in the attributes `pagination.next` or `pagination.previous` by a prior invocation of this endpoint, or undefined (default). | ||
var _default = NewsArticleListMetaPagination; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleListMetaSubscription | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleListMetaSubscription = /*#__PURE__*/function () { | ||
class NewsArticleListMetaSubscription { | ||
/** | ||
@@ -42,4 +38,3 @@ * Constructs a new <code>NewsArticleListMetaSubscription</code>. | ||
*/ | ||
function NewsArticleListMetaSubscription(minimumInterval) { | ||
(0, _classCallCheck2["default"])(this, NewsArticleListMetaSubscription); | ||
constructor(minimumInterval) { | ||
NewsArticleListMetaSubscription.initialize(this, minimumInterval); | ||
@@ -54,31 +49,27 @@ } | ||
(0, _createClass2["default"])(NewsArticleListMetaSubscription, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, minimumInterval) { | ||
obj['minimumInterval'] = minimumInterval; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListMetaSubscription</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/NewsArticleListMetaSubscription} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMetaSubscription} The populated <code>NewsArticleListMetaSubscription</code> instance. | ||
*/ | ||
static initialize(obj, minimumInterval) { | ||
obj['minimumInterval'] = minimumInterval; | ||
} | ||
/** | ||
* Constructs a <code>NewsArticleListMetaSubscription</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/NewsArticleListMetaSubscription} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleListMetaSubscription} The populated <code>NewsArticleListMetaSubscription</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMetaSubscription(); | ||
if (data.hasOwnProperty('minimumInterval')) { | ||
obj['minimumInterval'] = _ApiClient["default"].convertToType(data['minimumInterval'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleListMetaSubscription(); | ||
if (data.hasOwnProperty('minimumInterval')) { | ||
obj['minimumInterval'] = _ApiClient.default.convertToType(data['minimumInterval'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleListMetaSubscription; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -92,2 +83,2 @@ * Non-negative number of milliseconds to throttle the update rate from 0ms to 5000ms. Set to 0 for sending updates immediately. | ||
var _default = NewsArticleListMetaSubscription; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextData = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextData { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>NewsArticleSearchByTextData</code>. | ||
*/ | ||
function NewsArticleSearchByTextData() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextData); | ||
constructor() { | ||
NewsArticleSearchByTextData.initialize(this); | ||
@@ -58,33 +53,29 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextData</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/NewsArticleSearchByTextData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextData} The populated <code>NewsArticleSearchByTextData</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextData</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/NewsArticleSearchByTextData} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextData} The populated <code>NewsArticleSearchByTextData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextData(); | ||
if (data.hasOwnProperty('text')) { | ||
obj['text'] = _NewsArticleSearchByTextDataText["default"].constructFromObject(data['text']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextData(); | ||
if (data.hasOwnProperty('criteria')) { | ||
obj['criteria'] = _ApiClient["default"].convertToType(data['criteria'], [_NewsArticleSearchByTextDataCriteria["default"]]); | ||
} | ||
if (data.hasOwnProperty('text')) { | ||
obj['text'] = _NewsArticleSearchByTextDataText.default.constructFromObject(data['text']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('criteria')) { | ||
obj['criteria'] = _ApiClient.default.convertToType(data['criteria'], [_NewsArticleSearchByTextDataCriteria.default]); | ||
} | ||
} | ||
}]); | ||
return NewsArticleSearchByTextData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -103,2 +94,2 @@ * @member {module:model/NewsArticleSearchByTextDataText} text | ||
var _default = NewsArticleSearchByTextData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataCategories | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataCategories = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataCategories { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataCategories</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataCategories() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataCategories); | ||
constructor() { | ||
NewsArticleSearchByTextDataCategories.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataCategories, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataCategories</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/NewsArticleSearchByTextDataCategories} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataCategories} The populated <code>NewsArticleSearchByTextDataCategories</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataCategories</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/NewsArticleSearchByTextDataCategories} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataCategories} The populated <code>NewsArticleSearchByTextDataCategories</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataCategories(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataCategories(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataCategories; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the categories. | ||
var _default = NewsArticleSearchByTextDataCategories; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -34,2 +28,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -51,5 +47,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataCriteria | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataCriteria = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataCriteria { | ||
/** | ||
@@ -59,4 +55,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataCriteria</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataCriteria() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataCriteria); | ||
constructor() { | ||
NewsArticleSearchByTextDataCriteria.initialize(this); | ||
@@ -71,65 +66,61 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataCriteria, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataCriteria</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/NewsArticleSearchByTextDataCriteria} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataCriteria} The populated <code>NewsArticleSearchByTextDataCriteria</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataCriteria</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/NewsArticleSearchByTextDataCriteria} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataCriteria} The populated <code>NewsArticleSearchByTextDataCriteria</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataCriteria(); | ||
if (data.hasOwnProperty('selectionType')) { | ||
obj['selectionType'] = _ApiClient["default"].convertToType(data['selectionType'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataCriteria(); | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange["default"].constructFromObject(data['range']); | ||
} | ||
if (data.hasOwnProperty('selectionType')) { | ||
obj['selectionType'] = _ApiClient.default.convertToType(data['selectionType'], 'String'); | ||
} | ||
if (data.hasOwnProperty('indices')) { | ||
obj['indices'] = _NewsArticleSearchByTextDataIndices["default"].constructFromObject(data['indices']); | ||
} | ||
if (data.hasOwnProperty('range')) { | ||
obj['range'] = _NewsArticleListDataFilterRange.default.constructFromObject(data['range']); | ||
} | ||
if (data.hasOwnProperty('instruments')) { | ||
obj['instruments'] = _NewsArticleSearchByTextDataInstruments["default"].constructFromObject(data['instruments']); | ||
} | ||
if (data.hasOwnProperty('indices')) { | ||
obj['indices'] = _NewsArticleSearchByTextDataIndices.default.constructFromObject(data['indices']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _NewsArticleSearchByTextDataTypes["default"].constructFromObject(data['types']); | ||
} | ||
if (data.hasOwnProperty('instruments')) { | ||
obj['instruments'] = _NewsArticleSearchByTextDataInstruments.default.constructFromObject(data['instruments']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _NewsArticleSearchByTextDataCategories["default"].constructFromObject(data['categories']); | ||
} | ||
if (data.hasOwnProperty('types')) { | ||
obj['types'] = _NewsArticleSearchByTextDataTypes.default.constructFromObject(data['types']); | ||
} | ||
if (data.hasOwnProperty('regions')) { | ||
obj['regions'] = _NewsArticleSearchByTextDataRegions["default"].constructFromObject(data['regions']); | ||
} | ||
if (data.hasOwnProperty('categories')) { | ||
obj['categories'] = _NewsArticleSearchByTextDataCategories.default.constructFromObject(data['categories']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsArticleSearchByTextDataDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('regions')) { | ||
obj['regions'] = _NewsArticleSearchByTextDataRegions.default.constructFromObject(data['regions']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _NewsArticleSearchByTextDataPublisher["default"].constructFromObject(data['publisher']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsArticleSearchByTextDataDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _NewsArticleSearchByTextDataLanguage["default"].constructFromObject(data['language']); | ||
} | ||
if (data.hasOwnProperty('publisher')) { | ||
obj['publisher'] = _NewsArticleSearchByTextDataPublisher.default.constructFromObject(data['publisher']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('language')) { | ||
obj['language'] = _NewsArticleSearchByTextDataLanguage.default.constructFromObject(data['language']); | ||
} | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataCriteria; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -208,2 +199,2 @@ * Specify how the criteria should be applied to the search. | ||
var _default = NewsArticleSearchByTextDataCriteria; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataDistributor = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataDistributor</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataDistributor() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataDistributor); | ||
constructor() { | ||
NewsArticleSearchByTextDataDistributor.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataDistributor</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/NewsArticleSearchByTextDataDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataDistributor} The populated <code>NewsArticleSearchByTextDataDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataDistributor</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/NewsArticleSearchByTextDataDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataDistributor} The populated <code>NewsArticleSearchByTextDataDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataDistributor(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataDistributor(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the distributors. | ||
var _default = NewsArticleSearchByTextDataDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataIndices | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataIndices = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataIndices { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataIndices</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataIndices() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataIndices); | ||
constructor() { | ||
NewsArticleSearchByTextDataIndices.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataIndices, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataIndices</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/NewsArticleSearchByTextDataIndices} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataIndices} The populated <code>NewsArticleSearchByTextDataIndices</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataIndices</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/NewsArticleSearchByTextDataIndices} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataIndices} The populated <code>NewsArticleSearchByTextDataIndices</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataIndices(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataIndices(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataIndices; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the index notations. | ||
var _default = NewsArticleSearchByTextDataIndices; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataInstruments | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataInstruments = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataInstruments { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataInstruments</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataInstruments() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataInstruments); | ||
constructor() { | ||
NewsArticleSearchByTextDataInstruments.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataInstruments, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataInstruments</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/NewsArticleSearchByTextDataInstruments} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataInstruments} The populated <code>NewsArticleSearchByTextDataInstruments</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataInstruments</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/NewsArticleSearchByTextDataInstruments} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataInstruments} The populated <code>NewsArticleSearchByTextDataInstruments</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataInstruments(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataInstruments(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataInstruments; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the instruments. | ||
var _default = NewsArticleSearchByTextDataInstruments; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataLanguage | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataLanguage = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataLanguage { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataLanguage</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataLanguage() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataLanguage); | ||
constructor() { | ||
NewsArticleSearchByTextDataLanguage.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataLanguage, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataLanguage</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/NewsArticleSearchByTextDataLanguage} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataLanguage} The populated <code>NewsArticleSearchByTextDataLanguage</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataLanguage</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/NewsArticleSearchByTextDataLanguage} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataLanguage} The populated <code>NewsArticleSearchByTextDataLanguage</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataLanguage(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataLanguage(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataLanguage; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the languages. | ||
var _default = NewsArticleSearchByTextDataLanguage; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataPublisher | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataPublisher = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataPublisher { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataPublisher</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataPublisher() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataPublisher); | ||
constructor() { | ||
NewsArticleSearchByTextDataPublisher.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataPublisher, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataPublisher</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/NewsArticleSearchByTextDataPublisher} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataPublisher} The populated <code>NewsArticleSearchByTextDataPublisher</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataPublisher</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/NewsArticleSearchByTextDataPublisher} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataPublisher} The populated <code>NewsArticleSearchByTextDataPublisher</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataPublisher(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataPublisher(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataPublisher; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the publishers. | ||
var _default = NewsArticleSearchByTextDataPublisher; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataRegions | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataRegions = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataRegions { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataRegions</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataRegions() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataRegions); | ||
constructor() { | ||
NewsArticleSearchByTextDataRegions.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataRegions, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataRegions</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/NewsArticleSearchByTextDataRegions} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataRegions} The populated <code>NewsArticleSearchByTextDataRegions</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataRegions</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/NewsArticleSearchByTextDataRegions} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataRegions} The populated <code>NewsArticleSearchByTextDataRegions</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataRegions(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataRegions(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataRegions; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the regions. | ||
var _default = NewsArticleSearchByTextDataRegions; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataText | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataText = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataText { | ||
/** | ||
@@ -44,4 +40,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataText</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataText() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataText); | ||
constructor() { | ||
NewsArticleSearchByTextDataText.initialize(this); | ||
@@ -56,29 +51,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataText, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataText</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/NewsArticleSearchByTextDataText} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataText} The populated <code>NewsArticleSearchByTextDataText</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataText</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/NewsArticleSearchByTextDataText} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataText} The populated <code>NewsArticleSearchByTextDataText</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataText(); | ||
if (data.hasOwnProperty('criteria')) { | ||
obj['criteria'] = _NewsArticleSearchByTextDataTextCriteria["default"].constructFromObject(data['criteria']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataText(); | ||
if (data.hasOwnProperty('criteria')) { | ||
obj['criteria'] = _NewsArticleSearchByTextDataTextCriteria.default.constructFromObject(data['criteria']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataText; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -91,2 +82,2 @@ * @member {module:model/NewsArticleSearchByTextDataTextCriteria} criteria | ||
var _default = NewsArticleSearchByTextDataText; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataTextCriteria | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataTextCriteria = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataTextCriteria { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataTextCriteria</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataTextCriteria() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataTextCriteria); | ||
constructor() { | ||
NewsArticleSearchByTextDataTextCriteria.initialize(this); | ||
@@ -53,41 +48,37 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataTextCriteria, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataTextCriteria</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/NewsArticleSearchByTextDataTextCriteria} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataTextCriteria} The populated <code>NewsArticleSearchByTextDataTextCriteria</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataTextCriteria</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/NewsArticleSearchByTextDataTextCriteria} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataTextCriteria} The populated <code>NewsArticleSearchByTextDataTextCriteria</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataTextCriteria(); | ||
if (data.hasOwnProperty('selectionType')) { | ||
obj['selectionType'] = _ApiClient["default"].convertToType(data['selectionType'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataTextCriteria(); | ||
if (data.hasOwnProperty('phrases')) { | ||
obj['phrases'] = _ApiClient["default"].convertToType(data['phrases'], ['String']); | ||
} | ||
if (data.hasOwnProperty('selectionType')) { | ||
obj['selectionType'] = _ApiClient.default.convertToType(data['selectionType'], 'String'); | ||
} | ||
if (data.hasOwnProperty('minimumMatchScore')) { | ||
obj['minimumMatchScore'] = _ApiClient["default"].convertToType(data['minimumMatchScore'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('phrases')) { | ||
obj['phrases'] = _ApiClient.default.convertToType(data['phrases'], ['String']); | ||
} | ||
if (data.hasOwnProperty('scope')) { | ||
obj['scope'] = _ApiClient["default"].convertToType(data['scope'], 'String'); | ||
} | ||
if (data.hasOwnProperty('minimumMatchScore')) { | ||
obj['minimumMatchScore'] = _ApiClient.default.convertToType(data['minimumMatchScore'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('scope')) { | ||
obj['scope'] = _ApiClient.default.convertToType(data['scope'], 'String'); | ||
} | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataTextCriteria; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -165,2 +156,2 @@ * Specify how the criteria should be applied to the search. | ||
var _default = NewsArticleSearchByTextDataTextCriteria; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsArticleSearchByTextDataTypes | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsArticleSearchByTextDataTypes = /*#__PURE__*/function () { | ||
class NewsArticleSearchByTextDataTypes { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsArticleSearchByTextDataTypes</code>. | ||
*/ | ||
function NewsArticleSearchByTextDataTypes() { | ||
(0, _classCallCheck2["default"])(this, NewsArticleSearchByTextDataTypes); | ||
constructor() { | ||
NewsArticleSearchByTextDataTypes.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsArticleSearchByTextDataTypes, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataTypes</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/NewsArticleSearchByTextDataTypes} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataTypes} The populated <code>NewsArticleSearchByTextDataTypes</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsArticleSearchByTextDataTypes</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/NewsArticleSearchByTextDataTypes} obj Optional instance to populate. | ||
* @return {module:model/NewsArticleSearchByTextDataTypes} The populated <code>NewsArticleSearchByTextDataTypes</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataTypes(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsArticleSearchByTextDataTypes(); | ||
if (data.hasOwnProperty('ids')) { | ||
obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['Number']); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsArticleSearchByTextDataTypes; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifiers of the article types. | ||
var _default = NewsArticleSearchByTextDataTypes; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -18,2 +12,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -35,5 +31,5 @@ * Prime Developer Trial | ||
* @module model/NewsPublisherSearchByNameData | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsPublisherSearchByNameData = /*#__PURE__*/function () { | ||
class NewsPublisherSearchByNameData { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>NewsPublisherSearchByNameData</code>. | ||
*/ | ||
function NewsPublisherSearchByNameData(searchValue, matchType) { | ||
(0, _classCallCheck2["default"])(this, NewsPublisherSearchByNameData); | ||
constructor(searchValue, matchType) { | ||
NewsPublisherSearchByNameData.initialize(this, searchValue, matchType); | ||
@@ -58,40 +53,36 @@ } | ||
(0, _createClass2["default"])(NewsPublisherSearchByNameData, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, searchValue, matchType) { | ||
obj['searchValue'] = searchValue; | ||
obj['matchType'] = matchType; | ||
} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameData</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/NewsPublisherSearchByNameData} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameData} The populated <code>NewsPublisherSearchByNameData</code> instance. | ||
*/ | ||
static initialize(obj, searchValue, matchType) { | ||
obj['searchValue'] = searchValue; | ||
obj['matchType'] = matchType; | ||
} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameData</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/NewsPublisherSearchByNameData} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameData} The populated <code>NewsPublisherSearchByNameData</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameData(); | ||
if (data.hasOwnProperty('searchValue')) { | ||
obj['searchValue'] = _ApiClient["default"].convertToType(data['searchValue'], 'String'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameData(); | ||
if (data.hasOwnProperty('matchType')) { | ||
obj['matchType'] = _ApiClient["default"].convertToType(data['matchType'], 'String'); | ||
} | ||
if (data.hasOwnProperty('searchValue')) { | ||
obj['searchValue'] = _ApiClient.default.convertToType(data['searchValue'], 'String'); | ||
} | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsPublisherSearchByNameDataFilter["default"].constructFromObject(data['filter']); | ||
} | ||
if (data.hasOwnProperty('matchType')) { | ||
obj['matchType'] = _ApiClient.default.convertToType(data['matchType'], 'String'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('filter')) { | ||
obj['filter'] = _NewsPublisherSearchByNameDataFilter.default.constructFromObject(data['filter']); | ||
} | ||
} | ||
}]); | ||
return NewsPublisherSearchByNameData; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -141,2 +132,2 @@ * Restricts the search to publishers, which match the search value. The comparison for a match is case sensitive. | ||
var _default = NewsPublisherSearchByNameData; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
@@ -20,2 +14,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -37,5 +33,5 @@ * Prime Developer Trial | ||
* @module model/NewsPublisherSearchByNameDataFilter | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsPublisherSearchByNameDataFilter = /*#__PURE__*/function () { | ||
class NewsPublisherSearchByNameDataFilter { | ||
/** | ||
@@ -46,4 +42,3 @@ * Constructs a new <code>NewsPublisherSearchByNameDataFilter</code>. | ||
*/ | ||
function NewsPublisherSearchByNameDataFilter() { | ||
(0, _classCallCheck2["default"])(this, NewsPublisherSearchByNameDataFilter); | ||
constructor() { | ||
NewsPublisherSearchByNameDataFilter.initialize(this); | ||
@@ -58,33 +53,29 @@ } | ||
(0, _createClass2["default"])(NewsPublisherSearchByNameDataFilter, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilter</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/NewsPublisherSearchByNameDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilter} The populated <code>NewsPublisherSearchByNameDataFilter</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilter</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/NewsPublisherSearchByNameDataFilter} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilter} The populated <code>NewsPublisherSearchByNameDataFilter</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilter(); | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsPublisherSearchByNameDataFilterDistributor["default"].constructFromObject(data['distributor']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilter(); | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _NewsPublisherSearchByNameDataFilterDelivery["default"].constructFromObject(data['delivery']); | ||
} | ||
if (data.hasOwnProperty('distributor')) { | ||
obj['distributor'] = _NewsPublisherSearchByNameDataFilterDistributor.default.constructFromObject(data['distributor']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('delivery')) { | ||
obj['delivery'] = _NewsPublisherSearchByNameDataFilterDelivery.default.constructFromObject(data['delivery']); | ||
} | ||
} | ||
}]); | ||
return NewsPublisherSearchByNameDataFilter; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -102,2 +93,2 @@ * @member {module:model/NewsPublisherSearchByNameDataFilterDistributor} distributor | ||
var _default = NewsPublisherSearchByNameDataFilter; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsPublisherSearchByNameDataFilterDelivery | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsPublisherSearchByNameDataFilterDelivery = /*#__PURE__*/function () { | ||
class NewsPublisherSearchByNameDataFilterDelivery { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsPublisherSearchByNameDataFilterDelivery</code>. | ||
*/ | ||
function NewsPublisherSearchByNameDataFilterDelivery() { | ||
(0, _classCallCheck2["default"])(this, NewsPublisherSearchByNameDataFilterDelivery); | ||
constructor() { | ||
NewsPublisherSearchByNameDataFilterDelivery.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsPublisherSearchByNameDataFilterDelivery, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilterDelivery</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/NewsPublisherSearchByNameDataFilterDelivery} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilterDelivery} The populated <code>NewsPublisherSearchByNameDataFilterDelivery</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilterDelivery</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/NewsPublisherSearchByNameDataFilterDelivery} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilterDelivery} The populated <code>NewsPublisherSearchByNameDataFilterDelivery</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilterDelivery(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilterDelivery(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsPublisherSearchByNameDataFilterDelivery; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of delivery. | ||
var _default = NewsPublisherSearchByNameDataFilterDelivery; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsPublisherSearchByNameDataFilterDistributor | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsPublisherSearchByNameDataFilterDistributor = /*#__PURE__*/function () { | ||
class NewsPublisherSearchByNameDataFilterDistributor { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsPublisherSearchByNameDataFilterDistributor</code>. | ||
*/ | ||
function NewsPublisherSearchByNameDataFilterDistributor() { | ||
(0, _classCallCheck2["default"])(this, NewsPublisherSearchByNameDataFilterDistributor); | ||
constructor() { | ||
NewsPublisherSearchByNameDataFilterDistributor.initialize(this); | ||
@@ -53,29 +48,25 @@ } | ||
(0, _createClass2["default"])(NewsPublisherSearchByNameDataFilterDistributor, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilterDistributor</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/NewsPublisherSearchByNameDataFilterDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilterDistributor} The populated <code>NewsPublisherSearchByNameDataFilterDistributor</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameDataFilterDistributor</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/NewsPublisherSearchByNameDataFilterDistributor} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameDataFilterDistributor} The populated <code>NewsPublisherSearchByNameDataFilterDistributor</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilterDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameDataFilterDistributor(); | ||
if (data.hasOwnProperty('id')) { | ||
obj['id'] = _ApiClient.default.convertToType(data['id'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return NewsPublisherSearchByNameDataFilterDistributor; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -89,2 +80,2 @@ * Identifier of distributor. | ||
var _default = NewsPublisherSearchByNameDataFilterDistributor; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/NewsPublisherSearchByNameMeta | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var NewsPublisherSearchByNameMeta = /*#__PURE__*/function () { | ||
class NewsPublisherSearchByNameMeta { | ||
/** | ||
@@ -41,4 +37,3 @@ * Constructs a new <code>NewsPublisherSearchByNameMeta</code>. | ||
*/ | ||
function NewsPublisherSearchByNameMeta() { | ||
(0, _classCallCheck2["default"])(this, NewsPublisherSearchByNameMeta); | ||
constructor() { | ||
NewsPublisherSearchByNameMeta.initialize(this); | ||
@@ -53,33 +48,29 @@ } | ||
(0, _createClass2["default"])(NewsPublisherSearchByNameMeta, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameMeta</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/NewsPublisherSearchByNameMeta} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameMeta} The populated <code>NewsPublisherSearchByNameMeta</code> instance. | ||
*/ | ||
static initialize(obj) {} | ||
/** | ||
* Constructs a <code>NewsPublisherSearchByNameMeta</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/NewsPublisherSearchByNameMeta} obj Optional instance to populate. | ||
* @return {module:model/NewsPublisherSearchByNameMeta} The populated <code>NewsPublisherSearchByNameMeta</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameMeta(); | ||
if (data.hasOwnProperty('attributes')) { | ||
obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], ['String']); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new NewsPublisherSearchByNameMeta(); | ||
if (data.hasOwnProperty('sort')) { | ||
obj['sort'] = _ApiClient["default"].convertToType(data['sort'], ['String']); | ||
} | ||
if (data.hasOwnProperty('attributes')) { | ||
obj['attributes'] = _ApiClient.default.convertToType(data['attributes'], ['String']); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('sort')) { | ||
obj['sort'] = _ApiClient.default.convertToType(data['sort'], ['String']); | ||
} | ||
} | ||
}]); | ||
return NewsPublisherSearchByNameMeta; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -130,2 +121,2 @@ * Limit the attributes returned in the response to the specified set. | ||
var _default = NewsPublisherSearchByNameMeta; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/OffsetBasedPaginationOutputObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var OffsetBasedPaginationOutputObject = /*#__PURE__*/function () { | ||
class OffsetBasedPaginationOutputObject { | ||
/** | ||
@@ -43,4 +39,3 @@ * Constructs a new <code>OffsetBasedPaginationOutputObject</code>. | ||
*/ | ||
function OffsetBasedPaginationOutputObject(total, isEstimatedTotal) { | ||
(0, _classCallCheck2["default"])(this, OffsetBasedPaginationOutputObject); | ||
constructor(total, isEstimatedTotal) { | ||
OffsetBasedPaginationOutputObject.initialize(this, total, isEstimatedTotal); | ||
@@ -55,36 +50,32 @@ } | ||
(0, _createClass2["default"])(OffsetBasedPaginationOutputObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, total, isEstimatedTotal) { | ||
obj['total'] = total; | ||
obj['isEstimatedTotal'] = isEstimatedTotal; | ||
} | ||
/** | ||
* Constructs a <code>OffsetBasedPaginationOutputObject</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/OffsetBasedPaginationOutputObject} obj Optional instance to populate. | ||
* @return {module:model/OffsetBasedPaginationOutputObject} The populated <code>OffsetBasedPaginationOutputObject</code> instance. | ||
*/ | ||
static initialize(obj, total, isEstimatedTotal) { | ||
obj['total'] = total; | ||
obj['isEstimatedTotal'] = isEstimatedTotal; | ||
} | ||
/** | ||
* Constructs a <code>OffsetBasedPaginationOutputObject</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/OffsetBasedPaginationOutputObject} obj Optional instance to populate. | ||
* @return {module:model/OffsetBasedPaginationOutputObject} The populated <code>OffsetBasedPaginationOutputObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new OffsetBasedPaginationOutputObject(); | ||
if (data.hasOwnProperty('total')) { | ||
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new OffsetBasedPaginationOutputObject(); | ||
if (data.hasOwnProperty('isEstimatedTotal')) { | ||
obj['isEstimatedTotal'] = _ApiClient["default"].convertToType(data['isEstimatedTotal'], 'Boolean'); | ||
} | ||
if (data.hasOwnProperty('total')) { | ||
obj['total'] = _ApiClient.default.convertToType(data['total'], 'Number'); | ||
} | ||
return obj; | ||
if (data.hasOwnProperty('isEstimatedTotal')) { | ||
obj['isEstimatedTotal'] = _ApiClient.default.convertToType(data['isEstimatedTotal'], 'Boolean'); | ||
} | ||
} | ||
}]); | ||
return OffsetBasedPaginationOutputObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -104,2 +95,2 @@ * Total number of entries in the result set. | ||
var _default = OffsetBasedPaginationOutputObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/OffsetBasedPaginationOutputObjectWithoutTotal | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var OffsetBasedPaginationOutputObjectWithoutTotal = /*#__PURE__*/function () { | ||
class OffsetBasedPaginationOutputObjectWithoutTotal { | ||
/** | ||
@@ -42,4 +38,3 @@ * Constructs a new <code>OffsetBasedPaginationOutputObjectWithoutTotal</code>. | ||
*/ | ||
function OffsetBasedPaginationOutputObjectWithoutTotal(hasNext) { | ||
(0, _classCallCheck2["default"])(this, OffsetBasedPaginationOutputObjectWithoutTotal); | ||
constructor(hasNext) { | ||
OffsetBasedPaginationOutputObjectWithoutTotal.initialize(this, hasNext); | ||
@@ -54,31 +49,27 @@ } | ||
(0, _createClass2["default"])(OffsetBasedPaginationOutputObjectWithoutTotal, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, hasNext) { | ||
obj['hasNext'] = hasNext; | ||
} | ||
/** | ||
* Constructs a <code>OffsetBasedPaginationOutputObjectWithoutTotal</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/OffsetBasedPaginationOutputObjectWithoutTotal} obj Optional instance to populate. | ||
* @return {module:model/OffsetBasedPaginationOutputObjectWithoutTotal} The populated <code>OffsetBasedPaginationOutputObjectWithoutTotal</code> instance. | ||
*/ | ||
static initialize(obj, hasNext) { | ||
obj['hasNext'] = hasNext; | ||
} | ||
/** | ||
* Constructs a <code>OffsetBasedPaginationOutputObjectWithoutTotal</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/OffsetBasedPaginationOutputObjectWithoutTotal} obj Optional instance to populate. | ||
* @return {module:model/OffsetBasedPaginationOutputObjectWithoutTotal} The populated <code>OffsetBasedPaginationOutputObjectWithoutTotal</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new OffsetBasedPaginationOutputObjectWithoutTotal(); | ||
if (data.hasOwnProperty('hasNext')) { | ||
obj['hasNext'] = _ApiClient["default"].convertToType(data['hasNext'], 'Boolean'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new OffsetBasedPaginationOutputObjectWithoutTotal(); | ||
if (data.hasOwnProperty('hasNext')) { | ||
obj['hasNext'] = _ApiClient.default.convertToType(data['hasNext'], 'Boolean'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return OffsetBasedPaginationOutputObjectWithoutTotal; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -92,2 +83,2 @@ * Flag indicating that a subsequent request with the same parameters, except that the parameter `pagination.offset` is incremented by `pagination.limit`, would yield additional results. | ||
var _default = OffsetBasedPaginationOutputObjectWithoutTotal; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/PartialOutputObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var PartialOutputObject = /*#__PURE__*/function () { | ||
class PartialOutputObject { | ||
/** | ||
@@ -42,4 +38,3 @@ * Constructs a new <code>PartialOutputObject</code>. | ||
*/ | ||
function PartialOutputObject(isPartial) { | ||
(0, _classCallCheck2["default"])(this, PartialOutputObject); | ||
constructor(isPartial) { | ||
PartialOutputObject.initialize(this, isPartial); | ||
@@ -54,31 +49,27 @@ } | ||
(0, _createClass2["default"])(PartialOutputObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, isPartial) { | ||
obj['isPartial'] = isPartial; | ||
} | ||
/** | ||
* Constructs a <code>PartialOutputObject</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/PartialOutputObject} obj Optional instance to populate. | ||
* @return {module:model/PartialOutputObject} The populated <code>PartialOutputObject</code> instance. | ||
*/ | ||
static initialize(obj, isPartial) { | ||
obj['isPartial'] = isPartial; | ||
} | ||
/** | ||
* Constructs a <code>PartialOutputObject</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/PartialOutputObject} obj Optional instance to populate. | ||
* @return {module:model/PartialOutputObject} The populated <code>PartialOutputObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new PartialOutputObject(); | ||
if (data.hasOwnProperty('isPartial')) { | ||
obj['isPartial'] = _ApiClient["default"].convertToType(data['isPartial'], 'Boolean'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new PartialOutputObject(); | ||
if (data.hasOwnProperty('isPartial')) { | ||
obj['isPartial'] = _ApiClient.default.convertToType(data['isPartial'], 'Boolean'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return PartialOutputObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -92,2 +83,2 @@ * Flag indicating that the response is a possibly incomplete array or an object containing a possibly incomplete array, due to hitting a processing time limit. If `true`, some matching results might be missing from the array, or elements for matching results might be incorrectly included (for example, when priority sorting would have removed the element). Depending on the use case, such a response may be unsuitable. | ||
var _default = PartialOutputObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
/** | ||
@@ -32,5 +28,5 @@ * Prime Developer Trial | ||
* @module model/StatusObject | ||
* @version 0.9.0 | ||
* @version 0.9.1 | ||
*/ | ||
var StatusObject = /*#__PURE__*/function () { | ||
class StatusObject { | ||
/** | ||
@@ -42,4 +38,3 @@ * Constructs a new <code>StatusObject</code>. | ||
*/ | ||
function StatusObject(code) { | ||
(0, _classCallCheck2["default"])(this, StatusObject); | ||
constructor(code) { | ||
StatusObject.initialize(this, code); | ||
@@ -54,31 +49,27 @@ } | ||
(0, _createClass2["default"])(StatusObject, null, [{ | ||
key: "initialize", | ||
value: function initialize(obj, code) { | ||
obj['code'] = code; | ||
} | ||
/** | ||
* Constructs a <code>StatusObject</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/StatusObject} obj Optional instance to populate. | ||
* @return {module:model/StatusObject} The populated <code>StatusObject</code> instance. | ||
*/ | ||
static initialize(obj, code) { | ||
obj['code'] = code; | ||
} | ||
/** | ||
* Constructs a <code>StatusObject</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/StatusObject} obj Optional instance to populate. | ||
* @return {module:model/StatusObject} The populated <code>StatusObject</code> instance. | ||
*/ | ||
}, { | ||
key: "constructFromObject", | ||
value: function constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new StatusObject(); | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'Number'); | ||
} | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new StatusObject(); | ||
if (data.hasOwnProperty('code')) { | ||
obj['code'] = _ApiClient.default.convertToType(data['code'], 'Number'); | ||
} | ||
} | ||
return obj; | ||
} | ||
}]); | ||
return StatusObject; | ||
}(); | ||
return obj; | ||
} | ||
} | ||
/** | ||
@@ -92,2 +83,2 @@ * The HTTP status code of the response, mirroring the code from the Status-Line of the HTTP response message (see [RFC2616] section 6.1). | ||
var _default = StatusObject; | ||
exports["default"] = _default; | ||
exports.default = _default; |
{ | ||
"name": "@factset/sdk-newsapifordigitalportals", | ||
"version": "0.9.0", | ||
"description": "JS API client generated by OpenAPI Generator", | ||
"version": "0.9.1", | ||
"description": "News API for Digital Portals client library for JavaScript", | ||
"license": "Apache-2.0", | ||
@@ -14,31 +14,13 @@ "author": "FactSet Research Systems", | ||
}, | ||
"browser": { | ||
"fs": false | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"dependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@factset/sdk-utils": "^0.9.0", | ||
"superagent": "^5.3.0" | ||
"@factset/sdk-utils": "^0.10.0", | ||
"superagent": "^7.1.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/plugin-proposal-decorators": "^7.0.0", | ||
"@babel/plugin-proposal-do-expressions": "^7.0.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.0.0", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.0.0", | ||
"@babel/plugin-proposal-function-bind": "^7.0.0", | ||
"@babel/plugin-proposal-function-sent": "^7.0.0", | ||
"@babel/plugin-proposal-json-strings": "^7.0.0", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", | ||
"@babel/plugin-proposal-numeric-separator": "^7.0.0", | ||
"@babel/plugin-proposal-optional-chaining": "^7.0.0", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.0.0", | ||
"@babel/plugin-proposal-throw-expressions": "^7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/plugin-syntax-import-meta": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.16.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"expect.js": "^0.3.1", | ||
@@ -45,0 +27,0 @@ "mocha": "^8.0.1", |
118
README.md
@@ -1,70 +0,49 @@ | ||
# @factset/sdk-newsapifordigitalportals | ||
<img alt="FactSet" src="https://www.factset.com/hubfs/Assets/images/factset-logo.svg" height="56" width="290"> | ||
newsapifordigitalportals - JavaScript client for @factset/sdk-newsapifordigitalportals | ||
# News API for Digital Portals client library for JavaScript | ||
[](https://www.npmjs.com/package/@factset/sdk-newsapifordigitalportals) | ||
[](https://www.apache.org/licenses/LICENSE-2.0) | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: | ||
This TypeScript/JavaScript package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: | ||
- API version: v1 | ||
- Package version: 0.9.0 | ||
- Package version: 0.9.1 | ||
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen | ||
## Installation | ||
## Requirements | ||
### For [Node.js](https://nodejs.org/) | ||
* Node.js >= 12 | ||
#### npm | ||
## Installation | ||
To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). | ||
### npm | ||
Then install it via: | ||
```shell | ||
npm install @factset/sdk-newsapifordigitalportals --save | ||
npm install @factset/sdk-utils @factset/sdk-newsapifordigitalportals | ||
``` | ||
Finally, you need to build the module: | ||
### yarn | ||
```shell | ||
npm run build | ||
yarn add @factset/sdk-utils @factset/sdk-newsapifordigitalportals | ||
``` | ||
##### Local development | ||
## Usage | ||
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: | ||
1. [Generate authentication credentials](../../../../README.md#authentication). | ||
2. Setup Node.js environment | ||
1. Install and activate Node.js >=12. If you're using [nvm](https://github.com/nvm-sh/nvm): | ||
```shell | ||
npm install | ||
``` | ||
```sh | ||
nvm install 16 | ||
nvm use 16 | ||
``` | ||
Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: | ||
2. (optional) [Install yarn](https://yarnpkg.com/getting-started/install). | ||
3. [Install dependencies](#installation). | ||
4. Run the following: | ||
```shell | ||
npm link | ||
``` | ||
To use the link you just defined in your project, switch to the directory you want to use your @factset/sdk-newsapifordigitalportals from, and run: | ||
```shell | ||
npm link /path/to/<JAVASCRIPT_CLIENT_DIR> | ||
``` | ||
Finally, you need to build the module: | ||
```shell | ||
npm run build | ||
``` | ||
#### git | ||
If the library is hosted at a git repository, e.g. <https://github.com/GIT_USER_ID/GIT_REPO_ID> | ||
then install it via: | ||
```shell | ||
npm install GIT_USER_ID/GIT_REPO_ID --save | ||
``` | ||
## Getting Started | ||
Please follow the [installation](#installation) instruction and execute the following JS code: | ||
```javascript | ||
@@ -76,13 +55,18 @@ const { ApiClient, NewsApi } = require('@factset/sdk-newsapifordigitalportals'); | ||
// Configure HTTP basic authorization: FactSetApiKey | ||
const FactSetApiKey = apiClient.authentications['FactSetApiKey']; | ||
FactSetApiKey.username = 'YOUR USERNAME'; | ||
FactSetApiKey.password = 'YOUR PASSWORD'; | ||
// Examples for each supported authentication method are below, | ||
// choose one that satisfies your use case. | ||
// Configure OAuth2 access token for authorization: FactSetOAuth2 | ||
const FactSetOAuth2 = apiClient.authentications['FactSetOAuth2']; | ||
FactSetOAuth2.accessToken = 'YOUR ACCESS TOKEN'; | ||
// (Preferred) OAuth 2.0: FactSetOAuth2 | ||
// See https://github.com/FactSet/enterprise-sdk#oauth-20 | ||
// for information on how to create the app-config.json file | ||
// See https://github.com/FactSet/enterprise-sdk-utils-typescript#authentication | ||
// for more information on using the ConfidentialClient class | ||
apiClient.factsetOauth2Client = new ConfidentialClient('/path/to/app-config.json'); | ||
// Configure OAuth2 access with ConfidentialClient | ||
apiClient.factsetOauth2Client = new ConfidentialClient('./config.json'); | ||
// Basic authentication: FactSetApiKey | ||
// See https://github.com/FactSet/enterprise-sdk#api-key | ||
// for information how to create an API key | ||
// const FactSetApiKey = apiClient.authentications['FactSetApiKey']; | ||
// FactSetApiKey.username = 'USERNAME-SERIAL'; | ||
// FactSetApiKey.password = 'API-KEY'; | ||
@@ -244,1 +228,21 @@ const apiInstance = new NewsApi(); | ||
# Contributing | ||
Please refer to the [contributing guide](../../../../CONTRIBUTING.md). | ||
# Copyright | ||
Copyright 2022 FactSet Research Systems Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
2
6
247
357190
8276
+ Added@factset/sdk-utils@0.10.0(transitive)
+ Addedasap@2.0.6(transitive)
+ Addeddezalgo@1.0.4(transitive)
+ Addedform-data@4.0.2(transitive)
+ Addedformidable@2.1.2(transitive)
+ Addedhexoid@1.0.0(transitive)
+ Addedjose@4.15.9(transitive)
+ Addedopenid-client@5.7.1(transitive)
+ Addedsuperagent@7.1.6(transitive)
- Removed@babel/cli@^7.0.0
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/cli@7.26.4(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.8(transitive)
- Removed@babel/core@7.26.9(transitive)
- Removed@babel/generator@7.26.9(transitive)
- Removed@babel/helper-compilation-targets@7.26.5(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.9(transitive)
- Removed@babel/parser@7.26.9(transitive)
- Removed@babel/template@7.26.9(transitive)
- Removed@babel/traverse@7.26.9(transitive)
- Removed@babel/types@7.26.9(transitive)
- Removed@factset/sdk-utils@0.9.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3(transitive)
- Removed@panva/asn1.js@1.0.0(transitive)
- Removed@sindresorhus/is@4.6.0(transitive)
- Removed@szmarczak/http-timer@4.0.6(transitive)
- Removed@types/cacheable-request@6.0.3(transitive)
- Removed@types/http-cache-semantics@4.0.4(transitive)
- Removed@types/keyv@3.1.4(transitive)
- Removed@types/node@22.13.9(transitive)
- Removed@types/responselike@1.0.3(transitive)
- Removedaggregate-error@3.1.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowserslist@4.24.4(transitive)
- Removedcacheable-lookup@5.0.4(transitive)
- Removedcacheable-request@7.0.4(transitive)
- Removedcaniuse-lite@1.0.30001702(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedclone-response@1.0.3(transitive)
- Removedcommander@6.2.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removeddecompress-response@6.0.0(transitive)
- Removeddefer-to-connect@2.0.1(transitive)
- Removedelectron-to-chromium@1.5.112(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescalade@3.2.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedform-data@3.0.3(transitive)
- Removedformidable@1.2.6(transitive)
- Removedfs-readdir-recursive@1.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedget-stream@5.2.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedgot@11.8.6(transitive)
- Removedhttp-cache-semantics@4.1.1(transitive)
- Removedhttp2-wrapper@1.0.3(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjose@2.0.7(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson-buffer@3.0.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedkeyv@4.5.4(transitive)
- Removedlowercase-keys@2.0.0(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmake-dir@2.1.0(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmimic-response@1.0.13.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednode-releases@2.0.19(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removednormalize-url@6.1.0(transitive)
- Removedopenid-client@4.9.1(transitive)
- Removedp-cancelable@2.1.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedquick-lru@5.1.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedresolve-alpn@1.2.1(transitive)
- Removedresponselike@2.0.1(transitive)
- Removedsemver@5.7.26.3.1(transitive)
- Removedslash@2.0.0(transitive)
- Removedsuperagent@5.3.1(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedupdate-browserslist-db@1.1.3(transitive)
- Removedyallist@3.1.1(transitive)
Updated@factset/sdk-utils@^0.10.0
Updatedsuperagent@^7.1.1