@cubejs-client/dx 0.29.5
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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/generated.d.ts +6 -0
- package/index.d.ts +44 -0
- package/package.json +43 -0
- package/src/index.js +1 -0
- package/src/index.mjs +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.29.5](https://github.com/cube-js/cube.js/compare/v0.29.4...v0.29.5) (2021-12-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **@cubejs-client/dx:** introduce new dependency for Cube.js Client ([5bfaf1c](https://github.com/cube-js/cube.js/commit/5bfaf1cf99d68dfcdddb04f2b3151ad451657ff9))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Cube Dev, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<p align="center"><a href="https://cube.dev"><img src="https://i.imgur.com/zYHXm4o.png" alt="Cube.js" width="300px"></a></p>
|
|
2
|
+
|
|
3
|
+
[Website](https://cube.dev) • [Docs](https://cube.dev/docs) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Discourse](https://forum.cube.dev/) • [Twitter](https://twitter.com/thecubejs)
|
|
4
|
+
|
|
5
|
+
[](https://badge.fury.io/js/%40cubejs-backend%2Fserver)
|
|
6
|
+
[](https://github.com/cube-js/cube.js/actions?query=workflow%3ABuild+branch%3Amaster)
|
|
7
|
+
|
|
8
|
+
# Cube.js Client Developer eXperience
|
|
9
|
+
|
|
10
|
+
Cube.js Client DX used by Cube.js Client Core.
|
|
11
|
+
|
|
12
|
+
[Learn more](https://github.com/cube-js/cube.js#getting-started)
|
|
13
|
+
|
|
14
|
+
### License
|
|
15
|
+
|
|
16
|
+
Cube.js Client DX is [MIT licensed](./LICENSE).
|
package/generated.d.ts
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare module "@cubejs-client/core" {
|
|
2
|
+
|
|
3
|
+
export type IntrospectedMeasureName = import('./generated').IntrospectedMeasureName;
|
|
4
|
+
export type IntrospectedDimensionName = import('./generated').IntrospectedDimensionName;
|
|
5
|
+
export type IntrospectedTimeDimensionName = import('./generated').IntrospectedTimeDimensionName;
|
|
6
|
+
export type IntrospectedSegmentName = import('./generated').IntrospectedSegmentName;
|
|
7
|
+
export type IntrospectedMemberName = IntrospectedMeasureName | IntrospectedDimensionName;
|
|
8
|
+
|
|
9
|
+
export type IntrospectedTQueryOrderObject = { [key in IntrospectedMemberName]?: QueryOrder };
|
|
10
|
+
export type IntrospectedTQueryOrderArray = Array<[IntrospectedMemberName, QueryOrder]>;
|
|
11
|
+
|
|
12
|
+
export interface Query {
|
|
13
|
+
measures?: IntrospectedMeasureName[];
|
|
14
|
+
dimensions?: IntrospectedDimensionName[];
|
|
15
|
+
filters?: Filter[];
|
|
16
|
+
timeDimensions?: TimeDimension[];
|
|
17
|
+
segments?: IntrospectedSegmentName[];
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
order?: IntrospectedTQueryOrderObject | IntrospectedTQueryOrderArray;
|
|
21
|
+
timezone?: string;
|
|
22
|
+
renewQuery?: boolean;
|
|
23
|
+
ungrouped?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface TimeDimensionBase {
|
|
27
|
+
dimension: IntrospectedTimeDimensionName;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface BinaryFilter {
|
|
31
|
+
dimension?: IntrospectedMemberName;
|
|
32
|
+
member?: IntrospectedMemberName;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface UnaryFilter {
|
|
36
|
+
dimension?: IntrospectedMemberName;
|
|
37
|
+
member?: IntrospectedMemberName;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface TFlatFilter {
|
|
41
|
+
dimension?: IntrospectedMemberName;
|
|
42
|
+
member?: IntrospectedMemberName;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cubejs-client/dx",
|
|
3
|
+
"version": "0.29.5",
|
|
4
|
+
"engines": {},
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/cube-js/cube.js.git",
|
|
8
|
+
"directory": "packages/cubejs-client-dx"
|
|
9
|
+
},
|
|
10
|
+
"description": "Cube.js Client Developer eXperience",
|
|
11
|
+
"main": "src/index.js",
|
|
12
|
+
"module": "src/index.mjs",
|
|
13
|
+
"types": "index.d.ts",
|
|
14
|
+
"author": "Cube Dev, Inc.",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "npm run unit",
|
|
17
|
+
"unit": "jest --passWithNoTests",
|
|
18
|
+
"lint": "eslint src/*.js",
|
|
19
|
+
"lint:fix": "eslint --fix src/*.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"src",
|
|
23
|
+
"dist",
|
|
24
|
+
"index.d.ts",
|
|
25
|
+
"generated.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@babel/core": "^7.3.3",
|
|
30
|
+
"@babel/preset-env": "^7.3.1",
|
|
31
|
+
"@types/jest": "^26.0.9",
|
|
32
|
+
"babel-jest": "^26.0.1",
|
|
33
|
+
"eslint": "^7.21.0",
|
|
34
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
35
|
+
"eslint-plugin-import": "^2.16.0",
|
|
36
|
+
"eslint-plugin-node": "^5.2.1",
|
|
37
|
+
"jest": "^26.0.1"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "518281dea6e0c511813df4502f3aa97038f9be23"
|
|
43
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {};
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|