@gooddata/typings
Advanced tools
Comparing version 0.0.1-vojty-init-2017-10-19T16-07-32-500Z to 0.0.1-vojty-init-2017-10-24T11-48-28-794Z
export declare namespace AFM { | ||
interface IAfmTransformation { | ||
afmTransformation: { | ||
interface IExecution { | ||
execution: { | ||
afm: IAfm; | ||
transformation?: ITransformation; | ||
resultSpec?: IResultSpec; | ||
}; | ||
@@ -14,4 +14,3 @@ } | ||
} | ||
interface ITransformation { | ||
measures?: IMeasureDescription[]; | ||
interface IResultSpec { | ||
dimensions?: IDimension[]; | ||
@@ -21,9 +20,11 @@ sorts?: SortItem[]; | ||
interface IAttribute { | ||
localIdentifier?: Identifier; | ||
localIdentifier: Identifier; | ||
displayForm: ObjQualifier; | ||
alias?: string; | ||
} | ||
interface IMeasure { | ||
localIdentifier?: Identifier; | ||
localIdentifier: Identifier; | ||
definition: ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
alias?: string; | ||
format?: string; | ||
} | ||
@@ -38,5 +39,5 @@ interface ISimpleMeasureDefinition { | ||
item: ObjQualifier; | ||
aggregation?: MeasureAggregation; | ||
aggregation?: 'sum' | 'count' | 'avg' | 'min' | 'max' | 'median' | 'runsum'; | ||
filters?: FilterItem[]; | ||
showInPercent?: boolean; | ||
computeRatio?: boolean; | ||
} | ||
@@ -47,11 +48,2 @@ interface IPopMeasure { | ||
} | ||
enum MeasureAggregation { | ||
Sum = "sum", | ||
Count = "count", | ||
Avg = "avg", | ||
Min = "min", | ||
Max = "max", | ||
Median = "median", | ||
Runsum = "runsum", | ||
} | ||
type Identifier = string; | ||
@@ -109,9 +101,4 @@ type ObjQualifier = IObjUriQualifier | IObjIdentifierQualifier; | ||
} | ||
interface IMeasureDescription { | ||
measureIdentifier: Identifier; | ||
alias?: string; | ||
format?: string; | ||
} | ||
interface IDimension { | ||
identifier: Identifier; | ||
name: string; | ||
itemIdentifiers: Identifier[]; | ||
@@ -148,36 +135,65 @@ totals?: ITotalItem[]; | ||
export declare namespace Execution { | ||
enum HeaderType { | ||
METRIC = "metric", | ||
ATTRIBUTE = "attribute", | ||
interface IMeasureHeaderItem { | ||
measureHeaderItem: { | ||
uri?: string; | ||
identifier?: string; | ||
localIdentifier: string; | ||
name: string; | ||
format: string; | ||
}; | ||
} | ||
enum LabelType { | ||
METRIC = "metric", | ||
ELEMENT = "element", | ||
interface IMeasureGroupHeader { | ||
measureGroupHeader: { | ||
items: IMeasureHeaderItem[]; | ||
totalItems?: ITotalHeaderItem[]; | ||
}; | ||
} | ||
interface ILabel { | ||
id: string; | ||
value: string; | ||
type: LabelType; | ||
interface ITotalHeaderItem { | ||
totalHeaderItem: { | ||
name: string; | ||
}; | ||
} | ||
const METRIC_HEADER_URI = "metricGroup"; | ||
const METRIC_HEADER_NAME = "metric"; | ||
interface IHeader { | ||
type: HeaderType; | ||
uri: string; | ||
name: string; | ||
labels: ILabel[]; | ||
interface IAttributeHeaderItem { | ||
attributeHeaderItem: { | ||
uri: string; | ||
identifier: string; | ||
name: string; | ||
}; | ||
} | ||
interface IDimension { | ||
interface IAttributeHeader { | ||
attributeHeader: { | ||
uri: string; | ||
identifier: string; | ||
localIdentifier: string; | ||
name: string; | ||
items: IAttributeHeaderItem[]; | ||
totalItems?: ITotalHeaderItem[]; | ||
}; | ||
} | ||
type Header = IMeasureGroupHeader | IAttributeHeader; | ||
interface IResultDimension { | ||
name: string; | ||
headers: IHeader[]; | ||
headers: Header[]; | ||
totalData?: any; | ||
} | ||
interface ITransformationResponse { | ||
transformationResponse: { | ||
dimensions: IDimension[]; | ||
interface IExecutionResponse { | ||
executionResponse: { | ||
dimensions: IResultDimension[]; | ||
}; | ||
} | ||
interface IExecutionResult { | ||
executionResult: { | ||
data: string[][] | string[]; | ||
size: number[]; | ||
offset: number[]; | ||
overallSize: number[]; | ||
totals: any; | ||
paging: { | ||
count: number[]; | ||
offset: number[]; | ||
total: number[]; | ||
}; | ||
}; | ||
} | ||
interface IExecution { | ||
executionResponse: IExecutionResponse; | ||
executionResult: IExecutionResult; | ||
} | ||
} |
"use strict"; | ||
exports.__esModule = true; | ||
var AFM; | ||
(function (AFM) { | ||
var MeasureAggregation; | ||
(function (MeasureAggregation) { | ||
MeasureAggregation["Sum"] = "sum"; | ||
MeasureAggregation["Count"] = "count"; | ||
MeasureAggregation["Avg"] = "avg"; | ||
MeasureAggregation["Min"] = "min"; | ||
MeasureAggregation["Max"] = "max"; | ||
MeasureAggregation["Median"] = "median"; | ||
MeasureAggregation["Runsum"] = "runsum"; | ||
})(MeasureAggregation = AFM.MeasureAggregation || (AFM.MeasureAggregation = {})); | ||
})(AFM = exports.AFM || (exports.AFM = {})); | ||
var Execution; | ||
(function (Execution) { | ||
var HeaderType; | ||
(function (HeaderType) { | ||
HeaderType["METRIC"] = "metric"; | ||
HeaderType["ATTRIBUTE"] = "attribute"; | ||
})(HeaderType = Execution.HeaderType || (Execution.HeaderType = {})); | ||
var LabelType; | ||
(function (LabelType) { | ||
LabelType["METRIC"] = "metric"; | ||
LabelType["ELEMENT"] = "element"; | ||
})(LabelType = Execution.LabelType || (Execution.LabelType = {})); | ||
Execution.METRIC_HEADER_URI = 'metricGroup'; | ||
Execution.METRIC_HEADER_NAME = 'metric'; | ||
})(Execution = exports.Execution || (exports.Execution = {})); | ||
//# sourceMappingURL=index.js.map |
121
index.ts
export namespace AFM { | ||
export interface IAfmTransformation { | ||
afmTransformation: { | ||
export interface IExecution { | ||
execution: { | ||
afm: IAfm; | ||
transformation?: ITransformation; | ||
resultSpec?: IResultSpec; | ||
}; | ||
@@ -16,4 +16,3 @@ } | ||
export interface ITransformation { | ||
measures?: IMeasureDescription[]; | ||
export interface IResultSpec { | ||
dimensions?: IDimension[]; | ||
@@ -23,12 +22,13 @@ sorts?: SortItem[]; | ||
// AFM objects | ||
export interface IAttribute { | ||
localIdentifier?: Identifier; | ||
localIdentifier: Identifier; | ||
displayForm: ObjQualifier; | ||
alias?: string; | ||
} | ||
export interface IMeasure { | ||
localIdentifier?: Identifier; | ||
localIdentifier: Identifier; | ||
definition: ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
alias?: string; | ||
format?: string; | ||
} | ||
@@ -46,5 +46,5 @@ | ||
item: ObjQualifier; | ||
aggregation?: MeasureAggregation; | ||
aggregation?: 'sum' | 'count' | 'avg' | 'min' | 'max' | 'median' | 'runsum'; | ||
filters?: FilterItem[]; | ||
showInPercent?: boolean; | ||
computeRatio?: boolean; | ||
} | ||
@@ -57,12 +57,2 @@ | ||
export enum MeasureAggregation { | ||
Sum = 'sum', | ||
Count = 'count', | ||
Avg = 'avg', | ||
Min = 'min', | ||
Max = 'max', | ||
Median = 'median', | ||
Runsum = 'runsum' | ||
} | ||
// ObjQualifier type | ||
@@ -135,11 +125,4 @@ export type Identifier = string; | ||
// TRANSFORMATION definition | ||
export interface IMeasureDescription { | ||
measureIdentifier: Identifier; | ||
alias?: string; | ||
format?: string; | ||
} | ||
export interface IDimension { | ||
identifier: Identifier; | ||
name: string; | ||
itemIdentifiers: Identifier[]; | ||
@@ -183,42 +166,74 @@ totals?: ITotalItem[]; | ||
export namespace Execution { | ||
export enum HeaderType { | ||
METRIC = 'metric', | ||
ATTRIBUTE = 'attribute' | ||
export interface IMeasureHeaderItem { | ||
measureHeaderItem: { | ||
uri?: string; | ||
identifier?: string; | ||
localIdentifier: string; | ||
name: string; | ||
format: string; | ||
} | ||
} | ||
export enum LabelType { | ||
METRIC = 'metric', | ||
ELEMENT = 'element' | ||
export interface IMeasureGroupHeader { | ||
measureGroupHeader: { | ||
items: IMeasureHeaderItem[]; | ||
totalItems?: ITotalHeaderItem[]; | ||
} | ||
} | ||
export interface ILabel { | ||
id: string; | ||
value: string; | ||
type: LabelType; | ||
export interface ITotalHeaderItem { | ||
totalHeaderItem: { | ||
name: string; | ||
} | ||
} | ||
export const METRIC_HEADER_URI = 'metricGroup'; | ||
export const METRIC_HEADER_NAME = 'metric'; | ||
export interface IAttributeHeaderItem { | ||
attributeHeaderItem: { | ||
uri: string; | ||
identifier: string; | ||
name: string; | ||
} | ||
} | ||
export interface IHeader { | ||
type: HeaderType; | ||
uri: string; | ||
name: string; | ||
labels: ILabel[]; | ||
export interface IAttributeHeader { | ||
attributeHeader: { | ||
uri: string; | ||
identifier: string; | ||
localIdentifier: string; | ||
name: string; | ||
items: IAttributeHeaderItem[]; | ||
totalItems?: ITotalHeaderItem[]; | ||
} | ||
} | ||
export interface IDimension { | ||
export type Header = IMeasureGroupHeader | IAttributeHeader; | ||
export interface IResultDimension { | ||
name: string; | ||
headers: IHeader[]; | ||
headers: Header[]; | ||
totalData?: any; | ||
} | ||
export interface ITransformationResponse { | ||
transformationResponse: { | ||
dimensions: IDimension[]; | ||
export interface IExecutionResponse { | ||
executionResponse: { | ||
dimensions: IResultDimension[]; | ||
} | ||
} | ||
export interface IExecutionResult { | ||
executionResult: { | ||
data: string[][] | string[], | ||
size: number[] | ||
offset: number[], | ||
overallSize: number[] | ||
totals: any; | ||
paging: { | ||
count: number[] | ||
offset: number[], | ||
total: number[] | ||
} | ||
} | ||
} | ||
export interface IExecution { | ||
executionResponse: IExecutionResponse; | ||
executionResult: IExecutionResult; | ||
} | ||
} |
{ | ||
"name": "@gooddata/typings", | ||
"version": "0.0.1-vojty-init-2017-10-19T16-07-32-500Z", | ||
"version": "0.0.1-vojty-init-2017-10-24T11-48-28-794Z", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
391
0
12281