[]
The following sections describe the module: dataset/types.
• cacheMode = "cacheMode"
• directQuery = "directQuery"
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: AnalysisDesignerInitOptionFull) => Element
• token: string
The token needed to access the Wyn API.
Example
token: 'DA3CF35403BF9B0823A63CB2663D58E88B0B85FB588A1068753E0BDEF935B7C2'• url: string
Wyn Server URL.
Example
url: 'http://localhost:51980/'• Optional useTokenInHeader: boolean
Set if the token is required to be sent in the request header instead of the query parameter. The default value is false.
Example
useTokenInHeader: true,• dataType: ColumnDataType
• newColumnName: string
• originColumnName: string
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• Optional preview: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• connectionString: string
• fileName: string
• filter: FilterExpression[]
• id: string
• isExtracted: boolean
• name: string
• provider: string
• useAdvancedConfig: boolean
• useMultiTenant: boolean
• useUserContext: boolean
• Optional ConnectionString: string
• Optional Name: string
• Optional Provider: string
• Optional SourceType: string
• Optional UseAdvancedConfig: boolean
• Optional hasPaddingChanges: () => boolean | PromiseLike<any>
▸ (): boolean | PromiseLike<any>
boolean | PromiseLike<any>
Name |
|---|
|
▪ [key: string]: T
• Optional afterDocumentSave: (success: boolean, documentId?: string) => void
▸ (success, documentId?): void
The callback after save.
Name | Type |
|---|---|
|
|
|
|
void
Example
afterDocumentSave: () => {}• aggregation: string
• alias: string
• column: string
• dataType: string
• description: string
• fieldType: string
• format: string
• table: string
↳ FilterCondition
• column: string
FilterExpression.column
• conditionType: ConditionType
• Optional dataSourceId: string
FilterExpression.dataSourceId
• expression: string
FilterExpression.expression
• Optional index: number
FilterExpression.index
• multivalue: boolean
FilterExpression.multivalue
• operator: string
FilterExpression.operator
• table: string
FilterExpression.table
• type: "Datasource" | "Dataset" | "Table"
FilterExpression.type
• value: string | string[]
FilterExpression.value
• valueType: "Constant" | "Parameter"
FilterExpression.valueType
FilterExpression
• column: string
• Optional dataSourceId: string
• expression: string
• Optional index: number
• multivalue: boolean
• operator: string
• table: string
• type: "Datasource" | "Dataset" | "Table"
• value: string | string[]
• valueType: "Constant" | "Parameter"
↳ InitOption
• backendServer: BackendServer
• language: string
The designer or viewer language
Example
language: 'zh'InitOptionBase.language
• parentSelector: () => HTMLElement
▸ (): HTMLElement
The dom contain designer or viewer.
HTMLElement
Example
parentSelector: () => document.querySelector('#root')• Optional siteTitle: string
The web tab title
Example
siteTitle: 'dataset'InitOptionBase.siteTitle
• Optional theme: string
The designer or viewer theme
Example
theme: 'red'InitOptionBase.theme
• Optional version: string
The designer or viewer version
Example
version: '1.0.0'InitOptionBase.version
InitOptionBase
• language: string
The designer or viewer language
Example
language: 'zh'• Optional siteTitle: string
The web tab title
Example
siteTitle: 'dataset'• Optional theme: string
The designer or viewer theme
Example
theme: 'red'• Optional version: string
The designer or viewer version
Example
version: '1.0.0'• dequeue: () => SemanticMessage
▸ (): SemanticMessage
• enqueue: (message: SemanticMessage) => void
▸ (message): void
Name | Type |
|---|---|
|
void
• isEmpty: () => boolean
▸ (): boolean
boolean
• peek: (predicate: (message: SemanticMessage) => boolean) => SemanticMessage
▸ (predicate): SemanticMessage
Name | Type |
|---|---|
| ( |
• columnName: string
• tableName: string
• leftColumn: JoinColumn
• operator: string
• rightColumn: JoinColumn
• conditions: JoinCondition[]
• joinType: string
• table: Table
• column: string
• defaultValue: string
• type: string
• column: string
• path: string
• tableName: string
• type: string
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• Optional preview: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetPreviewInitOptionFull) => Element
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• Optional preview: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• commandModel: TableJoinQuery
• commandText: string
• commandType: string
• dataSources: DataSource[]
• parameters: QueryParameter[]
• dataType: string
• multivalue: boolean
• name: string
• parameterType: string
• parameterValue: string
• data: string[]
• tables: TableDefinition[]
• content: string
• name: string
• process: () => IterableIterator<any>
▸ (): IterableIterator<any>
IterableIterator<any>
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: SemanticModelDesignerInitOptionFull) => Element
• Optional selector: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: ModelTypeSelectorOption) => Element
• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• Optional preview: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DatasetDesignerInitOptionFull) => Element
• dataSourceId: string
• filters: FilterExpression[]
• id: string
• sql: string
• tableName: string
• tableType: "NativeTable" | "CustomSqlTable" | "UnionTable"
• tables: Table[]
• unionMap: Dictionary<string>[]
• unionType: "None" | "unionAll" | "union"
• Optional checked: boolean
• columns: ColumnDefinition[]
• newTableName: string
• originTableName: string
• Optional rows: RowData[]
• firstTable: Table
• joinRelations: JoinRelation[]
• key: string
• value: any
• Optional PathBase: string
• SemanticMessageQueue: ISemanticMessageQueue
• SemanticModelId: string
• WynView: WynView
• datasetDesigner: any
• hasDashboardLicense: boolean
• hasReportLicense: boolean
• inverted: boolean
• isDevMode: boolean
• token: string
• Optional PathBase: string
• SemanticMessageQueue: ISemanticMessageQueue
• SemanticModelId: string
• WynView: WynView
• datasetDesigner: any
• hasDashboardLicense: boolean
• hasReportLicense: boolean
• inverted: boolean
• isDevMode: boolean
• token: string
• createDataSourceConnection: () => DataSourceConnectionString | PromiseLike<DataSourceConnectionString>
▸ (): DataSourceConnectionString | PromiseLike<DataSourceConnectionString>
DataSourceConnectionString | PromiseLike<DataSourceConnectionString>
• onBack: () => void
▸ (): void
void
• onNext: () => void
▸ (): void
void
• create: (option: WynViewOption) => void
▸ (option): void
Name | Type |
|---|---|
|
void
• destroy: (domId: string) => void
▸ (domId): void
Name | Type |
|---|---|
|
|
void
• loader: Object
Name | Type |
|---|---|
| () => |
| ( |
hide: () => void
show: (type: WynViewLoaderType) => void
• Optional afterCreating: (option: WynViewOption, attachedDom: HTMLDivElement) => void
▸ (option, attachedDom): void
Name | Type |
|---|---|
| |
|
|
void
• document: Object
Name | Type |
|---|---|
|
|
|
|
title?: string
type: string
• domId: string
• Optional manuallyOperateLoader: boolean
• Optional onDestroy: (option: WynViewOption, attachedDom: HTMLDivElement) => void
▸ (option, attachedDom): void
Name | Type |
|---|---|
| |
|
|
void
• scripts: (string | ScriptOption)[]
• styles: string[]
• Optional transparent: boolean
• type: WynViewType
Ƭ AnalysisDesignerInitOptionCore: Object
Name | Type |
|---|---|
|
|
| |
|
|
documentId?: string
The data model id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'events?: EventsOptionBase
showCloseButton?: boolean
A flag specifying whether to show the showCloseButton.
Example
showCloseButton: trueƬ AnalysisDesignerInitOptionFull: InitOption & AnalysisDesignerInitOptionCore & { mode: AnalysisMode ; name?: string }
Ƭ CacheAnalysisDesignerInitOption: InitOptionBase & AnalysisDesignerInitOptionCore & { name?: string }
Ƭ ColumnDataType: "String" | "Boolean" | "Double" | "DateTime"
Ƭ ConditionType: ConditionType_And | ConditionType_Or | ConditionType_Rule
Ƭ ConditionType_And: 0
Ƭ ConditionType_Or: 1
Ƭ ConditionType_Rule: 2
Ƭ DataSourceProviderType: "Csv" | "Excel" | "Json" | "MongoDB" | "MySql" | "OData" | "ODBC" | "Oracle" | "Postgres" | "Salesforce" | "SQLite" | "SqlServer" | "WebData" | "Xml"
Ƭ DatasetDesignerInitOption: InitOptionBase & DatasetDesignerInitOptionCore
Ƭ DatasetDesignerInitOptionCore: Object
Name | Type |
|---|---|
|
|
| |
|
|
|
|
documentId?: string
The dataset id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'events?: EventsOptionBase
showCloseButton?: boolean
A flag specifying whether to show the showCloseButton.
Example
showCloseButton: truetype?: "report" | "dashboard"
The dataset usage type.
Example
type: 'dashboard'Ƭ DatasetDesignerInitOptionFull: InitOption & DatasetDesignerInitOptionCore
Ƭ DatasetPreviewInitOption: InitOptionBase & DatasetPreviewInitOptionCore
Ƭ DatasetPreviewInitOptionCore: Object
Name | Type |
|---|---|
|
|
documentId: string
The dataset id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'Ƭ DatasetPreviewInitOptionFull: InitOption & DatasetPreviewInitOptionCore
Ƭ DatasourceDesignerInitOption: InitOptionBase & DatasourceDesignerInitOptionCore
Ƭ DatasourceDesignerInitOptionCore: Object
Name | Type |
|---|---|
| ( |
|
|
| |
|
|
|
|
afterClose?: (document: any) => void
The callback after close designer.
Example
afterDocumentSave: () => {}documentId?: string
The datasource id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'events?: EventsOptionBase
inDataset?: boolean
A flag specifying whether to open datasource designer in dataset designer.
Example
inDataset: falseshowCloseButton?: boolean
A flag specifying whether to show the showCloseButton.
Example
showCloseButton: trueƬ DatasourceDesignerInitOptionFull: InitOption & DatasourceDesignerInitOptionCore
Ƭ DatasourcePreviewInitOption: InitOption & { documentId: string }
Ƭ DirectAnalysisDesignerInitOption: InitOptionBase & AnalysisDesignerInitOptionCore
Ƭ DocumentMeta: Object
Name | Type |
|---|---|
|
|
|
DSC_ALLOW_APPEND_DATA?: "True" | "False"
DSC_PROVIDER?: DataSourceProviderType
Ƭ ModelTypeSelectorOption: InitOption & { initAnalysis: () => void ; initSemantic: () => void ; showCloseButton?: boolean }
Ƭ SemanticModelDesignerInitOption: InitOptionBase & SemanticModelDesignerInitOptionCore
Ƭ SemanticModelDesignerInitOptionCore: Object
Name | Type |
|---|---|
|
|
| |
|
|
documentId?: string
The data model id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'events?: EventsOptionBase
showCloseButton?: boolean
A flag specifying whether to show the showCloseButton.
Example
showCloseButton: trueƬ SemanticModelDesignerInitOptionFull: InitOption & SemanticModelDesignerInitOptionCore
Ƭ WynViewLoaderType: WynViewType | "none"
Ƭ WynViewType: "designer" | "preview"
Ƭ destroyAble: Object
Name | Type |
|---|---|
| () => |
destroy: () => void