@mediaviz/sdk 1.0.64 → 1.2.0

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/dist/sdk.cjs CHANGED
@@ -1499,14 +1499,12 @@ class Search {
1499
1499
  return data;
1500
1500
  }
1501
1501
 
1502
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1502
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1503
1503
  this._ctx.requireTokens();
1504
1504
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1505
1505
  const query = new URLSearchParams();
1506
1506
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1507
1507
  if (minCosine !== undefined) (Array.isArray(minCosine) ? minCosine : [minCosine]).forEach(v => query.append('min_cosine', v));
1508
- if (labelMinCosine !== undefined) (Array.isArray(labelMinCosine) ? labelMinCosine : [labelMinCosine]).forEach(v => query.append('label_min_cosine', v));
1509
- if (labelTopK !== undefined) (Array.isArray(labelTopK) ? labelTopK : [labelTopK]).forEach(v => query.append('label_top_k', v));
1510
1508
  const qs = query.toString();
1511
1509
  if (qs) path += '?' + qs;
1512
1510
  const body = stripUndef$1({
package/dist/sdk.esm.js CHANGED
@@ -1497,14 +1497,12 @@ class Search {
1497
1497
  return data;
1498
1498
  }
1499
1499
 
1500
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1500
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1501
1501
  this._ctx.requireTokens();
1502
1502
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1503
1503
  const query = new URLSearchParams();
1504
1504
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1505
1505
  if (minCosine !== undefined) (Array.isArray(minCosine) ? minCosine : [minCosine]).forEach(v => query.append('min_cosine', v));
1506
- if (labelMinCosine !== undefined) (Array.isArray(labelMinCosine) ? labelMinCosine : [labelMinCosine]).forEach(v => query.append('label_min_cosine', v));
1507
- if (labelTopK !== undefined) (Array.isArray(labelTopK) ? labelTopK : [labelTopK]).forEach(v => query.append('label_top_k', v));
1508
1506
  const qs = query.toString();
1509
1507
  if (qs) path += '?' + qs;
1510
1508
  const body = stripUndef$1({
package/dist/sdk.umd.js CHANGED
@@ -1503,14 +1503,12 @@
1503
1503
  return data;
1504
1504
  }
1505
1505
 
1506
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1506
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1507
1507
  this._ctx.requireTokens();
1508
1508
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1509
1509
  const query = new URLSearchParams();
1510
1510
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1511
1511
  if (minCosine !== undefined) (Array.isArray(minCosine) ? minCosine : [minCosine]).forEach(v => query.append('min_cosine', v));
1512
- if (labelMinCosine !== undefined) (Array.isArray(labelMinCosine) ? labelMinCosine : [labelMinCosine]).forEach(v => query.append('label_min_cosine', v));
1513
- if (labelTopK !== undefined) (Array.isArray(labelTopK) ? labelTopK : [labelTopK]).forEach(v => query.append('label_top_k', v));
1514
1512
  const qs = query.toString();
1515
1513
  if (qs) path += '?' + qs;
1516
1514
  const body = stripUndef$1({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/sdk",
3
- "version": "1.0.64",
3
+ "version": "1.2.0",
4
4
  "description": "MediaViz JavaScript SDK \u2014 auto-generated public endpoint client.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,7 +27,15 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
+ "scripts": {
31
+ "build": "rollup -c"
32
+ },
30
33
  "optionalDependencies": {
31
34
  "sharp": "^0.33.0"
35
+ },
36
+ "devDependencies": {
37
+ "rollup": "^4.0.0",
38
+ "@rollup/plugin-node-resolve": "^16.0.0",
39
+ "@rollup/plugin-commonjs": "^29.0.0"
32
40
  }
33
41
  }