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

@gooddata/typings

Package Overview
Dependencies
Maintainers
36
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gooddata/typings - npm Package Compare versions

Comparing version 0.0.1-vojty-init-2017-11-08T11-33-40-593Z to 0.0.1

LICENSE

53

dist/index.d.ts

@@ -131,2 +131,3 @@ export declare namespace AFM {

function isMeasureSortItem(sortItem: AFM.SortItem): sortItem is AFM.IMeasureSortItem;
function isMeasureLocatorItem(locator: AFM.LocatorItem): locator is AFM.IMeasureLocatorItem;
}

@@ -143,2 +144,7 @@ export declare namespace Execution {

}
interface ITotalHeaderItem {
totalHeaderItem: {
name: string;
};
}
interface IMeasureGroupHeader {

@@ -150,8 +156,13 @@ measureGroupHeader: {

}
interface ITotalHeaderItem {
totalHeaderItem: {
interface IAttributeHeader {
attributeHeader: {
uri: string;
identifier: string;
localIdentifier: string;
name: string;
totalItems?: ITotalHeaderItem[];
};
}
interface IAttributeHeaderItem {
type IHeader = IMeasureGroupHeader | IAttributeHeader;
interface IResultAttributeHeaderItem {
attributeHeaderItem: {

@@ -162,14 +173,17 @@ uri: string;

}
interface IAttributeHeader {
attributeHeader: {
uri: string;
identifier: string;
localIdentifier: string;
interface IResultMeasureHeaderItem {
measureHeaderItem: {
name: string;
totalItems?: ITotalHeaderItem[];
order: number;
};
}
type Header = IMeasureGroupHeader | IAttributeHeader;
interface IResultTotalHeaderItem {
totalHeaderItem: {
name: string;
type: string;
};
}
type IResultHeaderItem = IResultAttributeHeaderItem | IResultMeasureHeaderItem | IResultTotalHeaderItem;
interface IResultDimension {
headers: Header[];
headers: IHeader[];
}

@@ -187,3 +201,3 @@ interface IExecutionResponse {

executionResult: {
attributeHeaderItems?: IAttributeHeaderItem[][][];
headerItems?: IResultHeaderItem[][][];
data: DataValue[][] | DataValue[];

@@ -198,11 +212,16 @@ totals?: DataValue[][][];

}
interface IError {
code: number;
message?: string;
interface IError extends Error {
response: {
status: number;
};
}
/**
* Combination of both AFM executions responses
*
* `null` value as executionResult means empty response (HTTP 204)
*/
interface IExecutionResponses {
executionResponse: IExecutionResponse;
executionResult: IExecutionResult;
executionResult: IExecutionResult | null;
}
type AfmExecutionResponse = IExecutionResponses | IError;
}

@@ -21,3 +21,7 @@ "use strict";

AFM.isMeasureSortItem = isMeasureSortItem;
function isMeasureLocatorItem(locator) {
return !!locator.measureLocatorItem;
}
AFM.isMeasureLocatorItem = isMeasureLocatorItem;
})(AFM = exports.AFM || (exports.AFM = {}));
//# sourceMappingURL=index.js.map

@@ -175,2 +175,6 @@ export namespace AFM {

}
export function isMeasureLocatorItem(locator: AFM.LocatorItem): locator is AFM.IMeasureLocatorItem {
return !!(locator as AFM.IMeasureLocatorItem).measureLocatorItem;
}
}

@@ -189,2 +193,8 @@

export interface ITotalHeaderItem {
totalHeaderItem: {
name: string;
}
}
export interface IMeasureGroupHeader {

@@ -197,9 +207,15 @@ measureGroupHeader: {

export interface ITotalHeaderItem {
totalHeaderItem: {
export interface IAttributeHeader {
attributeHeader: {
uri: string;
identifier: string;
localIdentifier: string;
name: string;
totalItems?: ITotalHeaderItem[];
}
}
export interface IAttributeHeaderItem {
export type IHeader = IMeasureGroupHeader | IAttributeHeader;
export interface IResultAttributeHeaderItem {
attributeHeaderItem: {

@@ -211,16 +227,20 @@ uri: string;

export interface IAttributeHeader {
attributeHeader: {
uri: string;
identifier: string;
localIdentifier: string;
name: string;
totalItems?: ITotalHeaderItem[];
export interface IResultMeasureHeaderItem {
measureHeaderItem: {
name: string,
order: number
}
}
export type Header = IMeasureGroupHeader | IAttributeHeader;
export interface IResultTotalHeaderItem {
totalHeaderItem: {
name: string,
type: string
}
}
export type IResultHeaderItem = IResultAttributeHeaderItem | IResultMeasureHeaderItem | IResultTotalHeaderItem;
export interface IResultDimension {
headers: Header[];
headers: IHeader[];
}

@@ -241,3 +261,3 @@

executionResult: {
attributeHeaderItems?: IAttributeHeaderItem[][][];
headerItems?: IResultHeaderItem[][][];
data: DataValue[][] | DataValue[];

@@ -253,13 +273,17 @@ totals?: DataValue[][][];

export interface IError {
code: number;
message?: string;
export interface IError extends Error {
response: {
status: number;
};
}
/**
* Combination of both AFM executions responses
*
* `null` value as executionResult means empty response (HTTP 204)
*/
export interface IExecutionResponses {
executionResponse: IExecutionResponse;
executionResult: IExecutionResult;
executionResult: IExecutionResult | null;
}
export type AfmExecutionResponse = IExecutionResponses | IError;
}
{
"name": "@gooddata/typings",
"version": "0.0.1-vojty-init-2017-11-08T11-33-40-593Z",
"version": "0.0.1",
"description": "TypeScript definition files for GoodData platform",

@@ -8,3 +8,4 @@ "typings": "dist/index.d.ts",

"scripts": {
"prepublish": "rm -rf dist && tsc"
"prepublish": "rm -rf dist && tsc",
"dev": "tsc --watch --noEmit"
},

@@ -11,0 +12,0 @@ "files": [

@@ -1,2 +0,46 @@

# gooddata-typings
TypeScript definition files for GoodData platform
# GoodData Typings
> TypeScript interfaces used in UI SDK describing executeAfm API
## Getting started
### Usage
With [yarn](https://yarnpkg.com) installed, go to your project directory and run
```
$ yarn add -D @gooddata/typings
```
If you prefer [npm](npmjs.com) run
```
$ npm install --save-dev @gooddata/typings
```
## Documentation
[Documentation](https://help.gooddata.com/display/bHsp5IhQjuz0e6HS0s76/React+Components)
## Develop
### Running the development
To develop, you need to run the typescript compiler. By running `yarn dev`, the typescript compiler will be run in watch mode.
```sh
$ cd gooddata-typings
$ yarn dev
```
### Deployment
```
git checkout master && git pull upstream master --tags
npm version [major|minor|patch] -m "Release v%s"
npm publish
git push upstream master --tags
```
## Contributing
Report bugs and features on our [issues page](https://github.com/gooddata/gooddata-typings/issues).
## License
Copyright (C) 2007-2017, GoodData(R) Corporation. All rights reserved.
For more information, please see [LICENSE](https://github.com/gooddata/gooddata-typings/blob/master/LICENSE)

Sorry, the diff of this file is not supported yet

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