This commit is contained in:
ali-hamud 2017-02-26 17:41:16 +02:00
Родитель 1a6e951230
Коммит b56628de71
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1497,8 +1497,8 @@ Datasets.prototype.setAllConnections = function (collectionName, workspaceId, da
throw new Error('parameters cannot be null or undefined and it must be of type object.');
}
for(var valueElement in parameters) {
if (parameters[valueElement] !== null && parameters[valueElement] !== undefined && typeof parameters[valueElement] !== 'object') {
throw new Error('parameters[valueElement] must be of type object.');
if (parameters[valueElement] !== null && parameters[valueElement] !== undefined && typeof parameters[valueElement].valueOf() !== 'string') {
throw new Error('parameters[valueElement] must be of type string.');
}
}
} catch (error) {
@ -1541,9 +1541,9 @@ Datasets.prototype.setAllConnections = function (collectionName, workspaceId, da
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
serializedName: 'StringElementType',
type: {
name: 'Object'
name: 'String'
}
}
}

4
lib/autorest/operations/index.d.ts поставляемый
Просмотреть файл

@ -257,8 +257,8 @@ export interface Datasets {
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
* doc in ms-rest index.d.ts for details
*/
setAllConnections(collectionName: string, workspaceId: string, datasetKey: string, parameters: { [propertyName: string]: any }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<any>): void;
setAllConnections(collectionName: string, workspaceId: string, datasetKey: string, parameters: { [propertyName: string]: any }, callback: ServiceCallback<any>): void;
setAllConnections(collectionName: string, workspaceId: string, datasetKey: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<any>): void;
setAllConnections(collectionName: string, workspaceId: string, datasetKey: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback<any>): void;
}
/**

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "powerbi-api",
"version": "1.2.2",
"version": "1.2.3",
"description": "Node client library for Power BI API",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",

Просмотреть файл

@ -527,7 +527,7 @@
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Object"
"type": "string"
}
}
}