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-10-24T12-18-07-277Z to 0.0.1-vojty-init-2017-11-08T11-33-40-593Z

32

dist/index.d.ts

@@ -88,5 +88,5 @@ export declare namespace AFM {

interface ITotalItem {
measureIdentifiler: Identifier;
measureIdentifier: Identifier;
type: TotalType;
attributeIdentifiers: Identifier[];
attributeIdentifier: Identifier;
}

@@ -99,3 +99,2 @@ type TotalType = 'sum' | 'avg' | 'max' | 'min' | 'nat' | 'med';

interface IDimension {
name: string;
itemIdentifiers: Identifier[];

@@ -130,2 +129,6 @@ totals?: ITotalItem[];

}
function isObjectUriQualifier(qualifier: AFM.ObjQualifier): qualifier is AFM.IObjUriQualifier;
function isSimpleMeasureDefinition(definition: AFM.ISimpleMeasureDefinition | AFM.IPopMeasureDefinition): definition is AFM.ISimpleMeasureDefinition;
function isAttributeSortItem(sortItem: AFM.SortItem): sortItem is AFM.IAttributeSortItem;
function isMeasureSortItem(sortItem: AFM.SortItem): sortItem is AFM.IMeasureSortItem;
}

@@ -156,3 +159,2 @@ export declare namespace Execution {

uri: string;
identifier: string;
name: string;

@@ -167,3 +169,2 @@ };

name: string;
items: IAttributeHeaderItem[];
totalItems?: ITotalHeaderItem[];

@@ -174,5 +175,3 @@ };

interface IResultDimension {
name: string;
headers: Header[];
totalData?: any;
}

@@ -182,3 +181,3 @@ interface IExecutionResponse {

links: {
uri: string;
executionResult: string;
};

@@ -188,11 +187,24 @@ dimensions: IResultDimension[];

}
type DataValue = null | string | number;
interface IExecutionResult {
executionResult: {
data: string[][] | string[];
attributeHeaderItems?: IAttributeHeaderItem[][][];
data: DataValue[][] | DataValue[];
totals?: DataValue[][][];
paging: {
count: number[];
offset: number[];
total: number[];
};
};
}
interface IExecution {
interface IError {
code: number;
message?: string;
}
interface IExecutionResponses {
executionResponse: IExecutionResponse;
executionResult: IExecutionResult;
}
type AfmExecutionResponse = IExecutionResponses | IError;
}
"use strict";
exports.__esModule = true;
var AFM;
(function (AFM) {
function isObjectUriQualifier(qualifier) {
return !!qualifier.uri;
}
AFM.isObjectUriQualifier = isObjectUriQualifier;
function isSimpleMeasureDefinition(definition) {
return !!definition.measure;
}
AFM.isSimpleMeasureDefinition = isSimpleMeasureDefinition;
function isAttributeSortItem(sortItem) {
return !!sortItem.attributeSortItem;
}
AFM.isAttributeSortItem = isAttributeSortItem;
function isMeasureSortItem(sortItem) {
return !!sortItem.measureSortItem;
}
AFM.isMeasureSortItem = isMeasureSortItem;
})(AFM = exports.AFM || (exports.AFM = {}));
//# sourceMappingURL=index.js.map

@@ -109,5 +109,5 @@ export namespace AFM {

export interface ITotalItem {
measureIdentifiler: Identifier;
measureIdentifier: Identifier;
type: TotalType;
attributeIdentifiers: Identifier[];
attributeIdentifier: Identifier;
}

@@ -123,3 +123,2 @@

export interface IDimension {
name: string;
itemIdentifiers: Identifier[];

@@ -160,2 +159,20 @@ totals?: ITotalItem[];

}
export function isObjectUriQualifier(qualifier: AFM.ObjQualifier): qualifier is AFM.IObjUriQualifier {
return !!(qualifier as AFM.IObjUriQualifier).uri;
}
export function isSimpleMeasureDefinition(
definition: AFM.ISimpleMeasureDefinition | AFM.IPopMeasureDefinition
): definition is AFM.ISimpleMeasureDefinition {
return !!(definition as AFM.ISimpleMeasureDefinition).measure;
}
export function isAttributeSortItem(sortItem: AFM.SortItem): sortItem is AFM.IAttributeSortItem {
return !!(sortItem as AFM.IAttributeSortItem).attributeSortItem;
}
export function isMeasureSortItem(sortItem: AFM.SortItem): sortItem is AFM.IMeasureSortItem {
return !!(sortItem as AFM.IMeasureSortItem).measureSortItem;
}
}

@@ -190,3 +207,2 @@

uri: string;
identifier: string;
name: string;

@@ -202,3 +218,2 @@ }

name: string;
items: IAttributeHeaderItem[];
totalItems?: ITotalHeaderItem[];

@@ -211,5 +226,3 @@ }

export interface IResultDimension {
name: string;
headers: Header[];
totalData?: any;
}

@@ -220,3 +233,3 @@

links: {
uri: string;
executionResult: string;
};

@@ -227,12 +240,28 @@ dimensions: IResultDimension[];

export type DataValue = null | string | number;
export interface IExecutionResult {
executionResult: {
data: string[][] | string[];
attributeHeaderItems?: IAttributeHeaderItem[][][];
data: DataValue[][] | DataValue[];
totals?: DataValue[][][];
paging: {
count: number[];
offset: number[];
total: number[];
};
}
}
export interface IExecution {
export interface IError {
code: number;
message?: string;
}
export interface IExecutionResponses {
executionResponse: IExecutionResponse;
executionResult: IExecutionResult;
}
export type AfmExecutionResponse = IExecutionResponses | IError;
}
{
"name": "@gooddata/typings",
"version": "0.0.1-vojty-init-2017-10-24T12-18-07-277Z",
"version": "0.0.1-vojty-init-2017-11-08T11-33-40-593Z",
"description": "TypeScript definition files for GoodData platform",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",

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