Fix update connection bug
This commit is contained in:
Родитель
1a6e951230
Коммит
b56628de71
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче