Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gooddata

Package Overview
Dependencies
Maintainers
8
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gooddata - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

2

index.d.ts

@@ -78,2 +78,4 @@ // Copyright (C) 2007-2017, GoodData(R) Corporation. All rights reserved.

export function getVisualizations(projectId: string): Promise<any>;
export function getDimensions(projectId: string): Promise<any>;

@@ -80,0 +82,0 @@

28

lib/metadata.js

@@ -13,2 +13,3 @@ 'use strict';

exports.getObjectUsingMany = getObjectUsingMany;
exports.getVisualizations = getVisualizations;
exports.getAttributes = getAttributes;

@@ -179,6 +180,19 @@ exports.getDimensions = getDimensions;

/**
* Reutrns all attributes in a project specified by projectId param
* Returns all visualizations metadata in a project specified by projectId param
*
* @method getVisualizations
* @param {string} projectId Project identifier
* @return {Array} An array of visualization objects
*/
function getVisualizations(projectId) {
return (0, _xhr.get)('/gdc/md/' + projectId + '/query/visualizations').then(function (r) {
return r.ok ? r.json() : r;
}).then((0, _util.getIn)('query.entries'));
}
/**
* Returns all attributes in a project specified by projectId param
*
* @method getAttributes
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of attribute objects

@@ -196,3 +210,3 @@ */

* @method getDimensions
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of dimension objects

@@ -245,3 +259,3 @@ * @see getFolders

* @method getFacts
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of fact objects

@@ -259,3 +273,3 @@ */

* @method getMetrics
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of metric objects

@@ -531,3 +545,3 @@ */

* @method getObjectUri
* @param projectId id of the project
* @param {string} projectId id of the project
* @param identifier identifier of the metadata object

@@ -622,3 +636,3 @@ * @return {String} uri of the metadata object

* @method getValidElements
* @param projectId id of the project
* @param {string} projectId id of the project
* @param id display form identifier of the metadata object

@@ -625,0 +639,0 @@ * @param {Object} options objects with options:

{
"name": "gooddata",
"version": "4.1.0",
"version": "4.2.0",
"author": "GoodData",

@@ -5,0 +5,0 @@ "description": "GoodData JavaScript SDK",

@@ -134,6 +134,17 @@ // Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.

/**
* Reutrns all attributes in a project specified by projectId param
* Returns all visualizations metadata in a project specified by projectId param
*
* @method getVisualizations
* @param {string} projectId Project identifier
* @return {Array} An array of visualization objects
*/
export function getVisualizations(projectId) {
return get(`/gdc/md/${projectId}/query/visualizations`).then(r => (r.ok ? r.json() : r)).then(getIn('query.entries'));
}
/**
* Returns all attributes in a project specified by projectId param
*
* @method getAttributes
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of attribute objects

@@ -149,3 +160,3 @@ */

* @method getDimensions
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of dimension objects

@@ -196,3 +207,3 @@ * @see getFolders

* @method getFacts
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of fact objects

@@ -208,3 +219,3 @@ */

* @method getMetrics
* @param projectId Project identifier
* @param {string} projectId Project identifier
* @return {Array} An array of metric objects

@@ -454,3 +465,3 @@ */

* @method getObjectUri
* @param projectId id of the project
* @param {string} projectId id of the project
* @param identifier identifier of the metadata object

@@ -539,3 +550,3 @@ * @return {String} uri of the metadata object

* @method getValidElements
* @param projectId id of the project
* @param {string} projectId id of the project
* @param id display form identifier of the metadata object

@@ -542,0 +553,0 @@ * @param {Object} options objects with options:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc