@bfwk/data-service
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -6,10 +6,13 @@ # Change Log | ||
## [0.7.6](https://github.com/salesforce/builder-framework/compare/v0.7.5...v0.7.6) (2021-08-20) | ||
## [0.7.7](https://github.com/salesforce/builder-framework/compare/v0.7.6...v0.7.7) (2021-08-23) | ||
**Note:** Version bump only for package @bfwk/data-service | ||
### Features | ||
* drive the DP Config Editor from a JavaScript object ([#212](https://github.com/salesforce/builder-framework/issues/212)) ([853ae77](https://github.com/salesforce/builder-framework/commit/853ae779255bb80f44ae98738833421df81a3e97)) | ||
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) | ||
@@ -16,0 +19,0 @@ |
import { JsonSchema, JsonValue } from '@lcem/unified-view-model'; | ||
export interface DataSource { | ||
export interface DataSourceConnection { | ||
name: string; | ||
label: string; | ||
label?: string; | ||
id?: string; | ||
} | ||
export interface ConfiguredDataSourceConnector { | ||
dataSource: DataSource; | ||
export interface DataProviderGroup { | ||
dataSource: DataSourceConnection; | ||
name: string; | ||
label: string; | ||
label?: string; | ||
id?: string; | ||
} | ||
export interface PotentialPropertyValues { | ||
name: string; | ||
label: string; | ||
label?: string; | ||
} | ||
export interface DataProviderDefinition { | ||
providerSchema: JsonSchema; | ||
dataProviderGroup: DataProviderGroup; | ||
id?: string; | ||
name: string; | ||
} | ||
declare type DataSourceFilterFunction = (dp: DataSource) => DataSource | undefined; | ||
export interface DataProviderDescribe { | ||
inputSchema: JsonSchema | undefined; | ||
outputSchema: JsonSchema | undefined; | ||
} | ||
export declare type DataSourceFilterFunction = (dp: DataSourceConnection) => DataSourceConnection | undefined; | ||
export declare type DataProviderGroupFilter = (dp: DataProviderGroup) => DataProviderGroup | undefined; | ||
export interface DataProviderService { | ||
getAvailableDataSources(filter?: DataSourceFilterFunction): DataSource[]; | ||
getConfiguredDataSourceConnector(dataSource: DataSource): ConfiguredDataSourceConnector; | ||
getDataSourceSchema(dataSource: DataSource): JsonSchema; | ||
getDataSourcePropertyValues(connector: ConfiguredDataSourceConnector, propertyName: string): PotentialPropertyValues[]; | ||
getDataProviderDefinition(connector: ConfiguredDataSourceConnector, properties: Record<string, JsonValue>): DataProviderDefinition; | ||
getOutputSchema(connector: ConfiguredDataSourceConnector, properties: Record<string, JsonValue>): JsonSchema; | ||
getAvailableDataSourcesConnections(filter?: DataSourceFilterFunction): DataSourceConnection[]; | ||
getDataProviderGroups(dataSourceConnection: DataSourceConnection, filter?: DataProviderGroupFilter): DataProviderGroup[]; | ||
getDataProviderGroupSelectorSchema(group: DataProviderGroup): JsonSchema; | ||
getDataProviderGroupPicklistPropertyValues(group: DataProviderGroup, propertyName: string): PotentialPropertyValues[]; | ||
getDataProvider(group: DataProviderGroup, properties: Record<string, JsonValue>): DataProviderDefinition | undefined; | ||
getDataProviderSchema(dataProvider: DataProviderDefinition): DataProviderDescribe; | ||
} | ||
export {}; |
@@ -11,2 +11,2 @@ export { PaletteItems, PaletteItem, PaletteItemsSection, PaletteService, PaletteServiceParams, IconHandle, IconHandleName, IconHandleUrl, } from './palette-service'; | ||
export { DesignTimeComponentPropertyInfoServiceImpl } from './design-time-component-property-info-service-impl'; | ||
export { DataSource, ConfiguredDataSourceConnector, PotentialPropertyValues, DataProviderService, DataProviderDefinition, } from './dataprovider-service'; | ||
export { DataSourceConnection, DataProviderGroup, PotentialPropertyValues, DataProviderService, DataProviderDefinition, DataProviderDescribe, DataSourceFilterFunction, DataProviderGroupFilter, } from './dataprovider-service'; |
{ | ||
"name": "@bfwk/data-service", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "LBF Data Services", | ||
@@ -31,3 +31,3 @@ "type": "module", | ||
"dependencies": { | ||
"@bfwk/utils": "0.7.6", | ||
"@bfwk/utils": "0.7.7", | ||
"@lcem/declarative-type": "0.7.1", | ||
@@ -34,0 +34,0 @@ "@lcem/meta-schemas": "0.7.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43852
533
+ Added@bfwk/utils@0.7.7(transitive)
- Removed@bfwk/utils@0.7.6(transitive)
Updated@bfwk/utils@0.7.7