Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dtable-sdk

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtable-sdk - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10-beta

66

dist/dtable-web-api.js

@@ -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,

4

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc