@narrative.io/data-collaboration-sdk-ts 0.0.25 → 0.0.27
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/build/datasets/index.js +1 -1
- package/build/datasets/types.d.ts +1 -0
- package/package.json +11 -6
package/build/datasets/index.js
CHANGED
|
@@ -47,6 +47,6 @@ export class DatasetApi extends BaseApi {
|
|
|
47
47
|
const records = await getDatasetSample(datasetId, size);
|
|
48
48
|
*/
|
|
49
49
|
async getDatasetSample(datasetId, size = 1000) {
|
|
50
|
-
return await this.get(`${resourceName}/${datasetId}/
|
|
50
|
+
return await this.get(`${resourceName}/${datasetId}/sample?size=${size}`);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -24,6 +24,7 @@ export interface DatasetColumnSummary {
|
|
|
24
24
|
}
|
|
25
25
|
export interface DatasetTableSummary {
|
|
26
26
|
snapshot_id: number;
|
|
27
|
+
snapshot_created_at: string;
|
|
27
28
|
est_total_dataset_stored_files: number;
|
|
28
29
|
est_total_dataset_stored_records: number;
|
|
29
30
|
est_total_dataset_stored_bytes: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -14,24 +14,29 @@
|
|
|
14
14
|
"preversion": "npm run lint",
|
|
15
15
|
"version": "npm run && git add -A src",
|
|
16
16
|
"postversion": "git push && git push --tags",
|
|
17
|
-
"test": "
|
|
17
|
+
"test": "jest",
|
|
18
|
+
"coverage": "jest --coverage"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [],
|
|
20
21
|
"author": "",
|
|
21
22
|
"license": "ISC",
|
|
22
23
|
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.20.12",
|
|
25
|
+
"@babel/preset-env": "^7.20.2",
|
|
26
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
23
27
|
"@commitlint/cli": "^17.4.2",
|
|
24
28
|
"@commitlint/config-conventional": "^17.4.2",
|
|
29
|
+
"@types/jest": "^29.4.0",
|
|
25
30
|
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
26
|
-
"
|
|
31
|
+
"babel-jest": "^29.4.3",
|
|
27
32
|
"eslint": "^8.33.0",
|
|
28
33
|
"eslint-config-standard-with-typescript": "^34.0.0",
|
|
29
34
|
"eslint-plugin-import": "^2.27.5",
|
|
30
35
|
"eslint-plugin-n": "^15.6.1",
|
|
31
36
|
"eslint-plugin-promise": "^6.1.1",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
37
|
+
"jest": "^29.4.3",
|
|
38
|
+
"ts-jest": "^29.0.5",
|
|
39
|
+
"typescript": "^4.9.5"
|
|
35
40
|
},
|
|
36
41
|
"dependencies": {
|
|
37
42
|
"mande": "^2.0.3"
|