@mediaviz/sdk 1.0.61 → 1.0.63

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
@@ -833,6 +833,13 @@ class Keywords {
833
833
  return data;
834
834
  }
835
835
 
836
+ async getCompanyKeywordLists(companyId) {
837
+ this._ctx.requireTokens();
838
+ const path = `/api/v1/keyword/company/${encodeURIComponent(companyId)}`;
839
+ const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
840
+ return data;
841
+ }
842
+
836
843
  async getKeywordFilteringListAndProjectsById(keywordListId) {
837
844
  this._ctx.requireTokens();
838
845
  const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
@@ -1492,12 +1499,14 @@ class Search {
1492
1499
  return data;
1493
1500
  }
1494
1501
 
1495
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1502
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1496
1503
  this._ctx.requireTokens();
1497
1504
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1498
1505
  const query = new URLSearchParams();
1499
1506
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1500
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));
1501
1510
  const qs = query.toString();
1502
1511
  if (qs) path += '?' + qs;
1503
1512
  const body = stripUndef$1({
package/dist/sdk.esm.js CHANGED
@@ -831,6 +831,13 @@ class Keywords {
831
831
  return data;
832
832
  }
833
833
 
834
+ async getCompanyKeywordLists(companyId) {
835
+ this._ctx.requireTokens();
836
+ const path = `/api/v1/keyword/company/${encodeURIComponent(companyId)}`;
837
+ const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
838
+ return data;
839
+ }
840
+
834
841
  async getKeywordFilteringListAndProjectsById(keywordListId) {
835
842
  this._ctx.requireTokens();
836
843
  const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
@@ -1490,12 +1497,14 @@ class Search {
1490
1497
  return data;
1491
1498
  }
1492
1499
 
1493
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1500
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1494
1501
  this._ctx.requireTokens();
1495
1502
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1496
1503
  const query = new URLSearchParams();
1497
1504
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1498
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));
1499
1508
  const qs = query.toString();
1500
1509
  if (qs) path += '?' + qs;
1501
1510
  const body = stripUndef$1({
package/dist/sdk.umd.js CHANGED
@@ -837,6 +837,13 @@
837
837
  return data;
838
838
  }
839
839
 
840
+ async getCompanyKeywordLists(companyId) {
841
+ this._ctx.requireTokens();
842
+ const path = `/api/v1/keyword/company/${encodeURIComponent(companyId)}`;
843
+ const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
844
+ return data;
845
+ }
846
+
840
847
  async getKeywordFilteringListAndProjectsById(keywordListId) {
841
848
  this._ctx.requireTokens();
842
849
  const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
@@ -1496,12 +1503,14 @@
1496
1503
  return data;
1497
1504
  }
1498
1505
 
1499
- async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine } = {}) {
1506
+ async searchProjectPhotosNaturalLanguageAuto(projectTableName, searchText, size = undefined, { blend, minCosine, labelMinCosine, labelTopK } = {}) {
1500
1507
  this._ctx.requireTokens();
1501
1508
  let path = `/api/v1/search/auto/${encodeURIComponent(projectTableName)}/`;
1502
1509
  const query = new URLSearchParams();
1503
1510
  if (blend !== undefined) (Array.isArray(blend) ? blend : [blend]).forEach(v => query.append('blend', v));
1504
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));
1505
1514
  const qs = query.toString();
1506
1515
  if (qs) path += '?' + qs;
1507
1516
  const body = stripUndef$1({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/sdk",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "MediaViz JavaScript SDK \u2014 auto-generated public endpoint client.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,15 +27,7 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "scripts": {
31
- "build": "rollup -c"
32
- },
33
30
  "optionalDependencies": {
34
31
  "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"
40
32
  }
41
33
  }