dtable-sdk
Advanced tools
Comparing version 0.1.9 to 0.1.10-beta
@@ -143,3 +143,69 @@ "use strict"; | ||
return this.req.get(url); | ||
} // embedding collections | ||
}, { | ||
key: "listEmbeddingCollections", | ||
value: function listEmbeddingCollections(dtableUuid) { | ||
var url = this.server + '/api/v2.1/embedding-collections/?dtable_uuid=' + dtableUuid; | ||
return this.req.get(url); | ||
} | ||
}, { | ||
key: "createEmbeddingCollection", | ||
value: function createEmbeddingCollection(dtableUuid, tableIds) { | ||
var url = this.server + '/api/v2.1/embedding-collections/'; | ||
var data = { | ||
'dtable_uuid': dtableUuid, | ||
'table_ids': tableIds | ||
}; | ||
return this._sendPostRequest(url, data, { | ||
headers: { | ||
'Content-Type': 'application/json' | ||
} | ||
}); | ||
} | ||
}, { | ||
key: "deleteEmbeddingCollection", | ||
value: function deleteEmbeddingCollection(collectionId) { | ||
var url = this.server + '/api/v2.1/embedding-collections/' + collectionId + '/'; | ||
return this.req["delete"](url); | ||
} | ||
}, { | ||
key: "updateEmbeddingCollection", | ||
value: function updateEmbeddingCollection(collectionId) { | ||
var url = this.server + '/api/v2.1/embedding-collections/' + collectionId + '/'; | ||
return this.req.put(url); | ||
} | ||
}, { | ||
key: "queryEmbeddingCollectionStatus", | ||
value: function queryEmbeddingCollectionStatus(taskId) { | ||
var url = this.server + '/api/v2.1/embedding-collections/task-status//?task_id=' + taskId; | ||
return this.req.get(url); | ||
} | ||
}, { | ||
key: "semanticSearch", | ||
value: function semanticSearch(dtableUuid, query) { | ||
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, | ||
tableIds = _ref.tableIds, | ||
count = _ref.count; | ||
var url = this.server + '/api/v2.1/similarity-search/'; | ||
var params = { | ||
'dtable_uuid': dtableUuid, | ||
'query': query | ||
}; | ||
if (tableIds) { | ||
params['table_ids'] = tableIds; | ||
} | ||
if (count) { | ||
params['count'] = count; | ||
} | ||
return this._sendPostRequest(url, params, { | ||
headers: { | ||
'Content-Type': 'application/json' | ||
} | ||
}); | ||
} | ||
}]); | ||
@@ -146,0 +212,0 @@ |
@@ -24,2 +24,20 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "DEFAULT_NUMBER_FORMAT", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.DEFAULT_NUMBER_FORMAT; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FILTER_COLUMN_OPTIONS", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.FILTER_COLUMN_OPTIONS; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FILTER_PREDICATE_TYPE", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.FILTER_PREDICATE_TYPE; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FORMULA_RESULT_TYPE", { | ||
@@ -50,2 +68,8 @@ enumerable: true, | ||
exports["default"] = void 0; | ||
Object.defineProperty(exports, "filterRow", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.filterRow; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatDurationToNumber", { | ||
@@ -57,2 +81,26 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "formatStringToNumber", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.formatStringToNumber; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getNumberDisplayString", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.getNumberDisplayString; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getValidFilters", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.getValidFilters; | ||
} | ||
}); | ||
Object.defineProperty(exports, "replaceNumberNotAllowInput", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dtableStore.replaceNumberNotAllowInput; | ||
} | ||
}); | ||
Object.defineProperty(exports, "sortDate", { | ||
@@ -59,0 +107,0 @@ enumerable: true, |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.1.9", | ||
"version": "0.1.10beta", | ||
"description": "dtable sdk", | ||
@@ -22,3 +22,3 @@ "main": "./dist/index.js", | ||
"axios": "^0.19.2", | ||
"dtable-store": "3.4.8", | ||
"dtable-store": "3.5.6", | ||
"form-data": "^3.0.0" | ||
@@ -25,0 +25,0 @@ }, |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
67183
1434
1
+ Addedaxios@1.2.1(transitive)
+ Addeddtable-store@3.5.6(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removeddtable-store@3.4.8(transitive)
Updateddtable-store@3.5.6