@embeddable.com/sdk-core 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/embeddable +11 -2
- package/lib/index.cjs.js +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +89 -0
- package/lib/index.umd.js +85 -18806
- package/lib/loadData.d.ts +12 -0
- package/package.json +2 -1
- package/src/index.ts +0 -2
- package/src/loadData.ts +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TimeDimensions = {
|
|
2
|
+
dimension: string;
|
|
3
|
+
granularity: string;
|
|
4
|
+
};
|
|
5
|
+
export type LoadDataRequest = {
|
|
6
|
+
from: string;
|
|
7
|
+
measures?: string[];
|
|
8
|
+
dimensions: string[];
|
|
9
|
+
timeDimensions?: TimeDimensions[];
|
|
10
|
+
orderBy?: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare function loadData(request: LoadDataRequest): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "Oleg Kapustin <oleg@trevor.io>",
|
|
23
23
|
"files": [
|
|
24
|
+
"lib/",
|
|
24
25
|
"src/",
|
|
25
26
|
"templates/",
|
|
26
27
|
"configs/"
|
package/src/index.ts
CHANGED
package/src/loadData.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type LoadDataRequest = {
|
|
|
12
12
|
orderBy?: string[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export
|
|
15
|
+
export async function loadData (request: LoadDataRequest) {
|
|
16
16
|
const dimensions = request.dimensions?.filter(Boolean);
|
|
17
17
|
const measures = request.measures?.filter(Boolean);
|
|
18
18
|
const timeDimensions = request.timeDimensions?.filter((d) => d.dimension);
|