@mediaviz/sdk 1.4.0 → 1.5.0-dev.82

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
@@ -1331,9 +1331,9 @@ class Projects {
1331
1331
  return data;
1332
1332
  }
1333
1333
 
1334
- async getProjectDataExportUploadStatus(projectTableName, modelName) {
1334
+ async getProjectProcessStatus(projectTableName, modelName) {
1335
1335
  this._ctx.requireTokens();
1336
- const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_status/${encodeURIComponent(modelName)}`;
1336
+ const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/process_status/${encodeURIComponent(modelName)}`;
1337
1337
  const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
1338
1338
  return data;
1339
1339
  }
@@ -1404,7 +1404,7 @@ class Photoupload {
1404
1404
  this._caches['_get_template'].set(_cacheKey_get_template, template);
1405
1405
  }
1406
1406
 
1407
- const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: photo.blur, colors: photo.colors, faceRecognition: photo.faceRecognition, imageDescribe: photo.imageDescribe, imageClassification: photo.imageClassification, imageComparison: photo.imageComparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude });
1407
+ const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: template?.blur, colors: template?.colors, faceRecognition: template?.face_recognition, imageDescribe: template?.image_describe, imageClassification: template?.image_classification, imageComparison: template?.image_comparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude, ocr: template?.ocr });
1408
1408
 
1409
1409
  return upload_result;
1410
1410
  }
@@ -1559,7 +1559,7 @@ class Search {
1559
1559
  return data;
1560
1560
  }
1561
1561
 
1562
- async recallProjectPhotoIds(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1562
+ async recallProjectPhotos(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1563
1563
  this._ctx.requireTokens();
1564
1564
  let path = `/api/v1/search/recall/${encodeURIComponent(projectTableName)}/`;
1565
1565
  const query = new URLSearchParams();
package/dist/sdk.d.cts CHANGED
@@ -448,7 +448,7 @@ export class Projects {
448
448
  requestProjectPersonhoodQueue(projectTableName: string): Promise<Record<string, any>>;
449
449
  requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
450
450
  requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
451
- getProjectDataExportUploadStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
451
+ getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
452
452
  addProjectEvent(projectTableName: string, event: string, detail?: string): Promise<Record<string, any>>;
453
453
  deleteProject(projectId: string): Promise<Record<string, any>>;
454
454
  }
@@ -456,7 +456,7 @@ export class Projects {
456
456
  export class Search {
457
457
  searchProjectPhotos(projectTableName: string, options?: { andParams?: any, andStringParams?: any, orParams?: any, orStringParams?: any, notParams?: any, notStringParams?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], dateOrder?: string | string[], customAlbumId?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], curatedAlbumId?: number | number[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
458
458
  searchProjectPhotosParametrized(projectTableName: string, options?: { andSearchText?: any, orSearchText?: any, notSearchText?: any, city?: any, country?: any, state?: any, albums?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
459
- recallProjectPhotoIds(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
459
+ recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
460
460
  searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?: number, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
461
461
  getProjectSavedSearches(projectTableName: string): Promise<any>;
462
462
  getSavedSearchById(searchId: number): Promise<SearchDisplay>;
package/dist/sdk.d.ts CHANGED
@@ -448,7 +448,7 @@ export class Projects {
448
448
  requestProjectPersonhoodQueue(projectTableName: string): Promise<Record<string, any>>;
449
449
  requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
450
450
  requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
451
- getProjectDataExportUploadStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
451
+ getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
452
452
  addProjectEvent(projectTableName: string, event: string, detail?: string): Promise<Record<string, any>>;
453
453
  deleteProject(projectId: string): Promise<Record<string, any>>;
454
454
  }
@@ -456,7 +456,7 @@ export class Projects {
456
456
  export class Search {
457
457
  searchProjectPhotos(projectTableName: string, options?: { andParams?: any, andStringParams?: any, orParams?: any, orStringParams?: any, notParams?: any, notStringParams?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], dateOrder?: string | string[], customAlbumId?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], curatedAlbumId?: number | number[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
458
458
  searchProjectPhotosParametrized(projectTableName: string, options?: { andSearchText?: any, orSearchText?: any, notSearchText?: any, city?: any, country?: any, state?: any, albums?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
459
- recallProjectPhotoIds(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
459
+ recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
460
460
  searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?: number, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
461
461
  getProjectSavedSearches(projectTableName: string): Promise<any>;
462
462
  getSavedSearchById(searchId: number): Promise<SearchDisplay>;
package/dist/sdk.esm.d.ts CHANGED
@@ -448,7 +448,7 @@ export class Projects {
448
448
  requestProjectPersonhoodQueue(projectTableName: string): Promise<Record<string, any>>;
449
449
  requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
450
450
  requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
451
- getProjectDataExportUploadStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
451
+ getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
452
452
  addProjectEvent(projectTableName: string, event: string, detail?: string): Promise<Record<string, any>>;
453
453
  deleteProject(projectId: string): Promise<Record<string, any>>;
454
454
  }
@@ -456,7 +456,7 @@ export class Projects {
456
456
  export class Search {
457
457
  searchProjectPhotos(projectTableName: string, options?: { andParams?: any, andStringParams?: any, orParams?: any, orStringParams?: any, notParams?: any, notStringParams?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], dateOrder?: string | string[], customAlbumId?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], curatedAlbumId?: number | number[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
458
458
  searchProjectPhotosParametrized(projectTableName: string, options?: { andSearchText?: any, orSearchText?: any, notSearchText?: any, city?: any, country?: any, state?: any, albums?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
459
- recallProjectPhotoIds(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
459
+ recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
460
460
  searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?: number, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
461
461
  getProjectSavedSearches(projectTableName: string): Promise<any>;
462
462
  getSavedSearchById(searchId: number): Promise<SearchDisplay>;
package/dist/sdk.esm.js CHANGED
@@ -1329,9 +1329,9 @@ class Projects {
1329
1329
  return data;
1330
1330
  }
1331
1331
 
1332
- async getProjectDataExportUploadStatus(projectTableName, modelName) {
1332
+ async getProjectProcessStatus(projectTableName, modelName) {
1333
1333
  this._ctx.requireTokens();
1334
- const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_status/${encodeURIComponent(modelName)}`;
1334
+ const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/process_status/${encodeURIComponent(modelName)}`;
1335
1335
  const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
1336
1336
  return data;
1337
1337
  }
@@ -1402,7 +1402,7 @@ class Photoupload {
1402
1402
  this._caches['_get_template'].set(_cacheKey_get_template, template);
1403
1403
  }
1404
1404
 
1405
- const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: photo.blur, colors: photo.colors, faceRecognition: photo.faceRecognition, imageDescribe: photo.imageDescribe, imageClassification: photo.imageClassification, imageComparison: photo.imageComparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude });
1405
+ const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: template?.blur, colors: template?.colors, faceRecognition: template?.face_recognition, imageDescribe: template?.image_describe, imageClassification: template?.image_classification, imageComparison: template?.image_comparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude, ocr: template?.ocr });
1406
1406
 
1407
1407
  return upload_result;
1408
1408
  }
@@ -1557,7 +1557,7 @@ class Search {
1557
1557
  return data;
1558
1558
  }
1559
1559
 
1560
- async recallProjectPhotoIds(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1560
+ async recallProjectPhotos(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1561
1561
  this._ctx.requireTokens();
1562
1562
  let path = `/api/v1/search/recall/${encodeURIComponent(projectTableName)}/`;
1563
1563
  const query = new URLSearchParams();
package/dist/sdk.umd.js CHANGED
@@ -1335,9 +1335,9 @@
1335
1335
  return data;
1336
1336
  }
1337
1337
 
1338
- async getProjectDataExportUploadStatus(projectTableName, modelName) {
1338
+ async getProjectProcessStatus(projectTableName, modelName) {
1339
1339
  this._ctx.requireTokens();
1340
- const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_status/${encodeURIComponent(modelName)}`;
1340
+ const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/process_status/${encodeURIComponent(modelName)}`;
1341
1341
  const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
1342
1342
  return data;
1343
1343
  }
@@ -1408,7 +1408,7 @@
1408
1408
  this._caches['_get_template'].set(_cacheKey_get_template, template);
1409
1409
  }
1410
1410
 
1411
- const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: photo.blur, colors: photo.colors, faceRecognition: photo.faceRecognition, imageDescribe: photo.imageDescribe, imageClassification: photo.imageClassification, imageComparison: photo.imageComparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude });
1411
+ const upload_result = await this.uploadPhotoToMediaviz(companyId, userId, projectTableName, photo.title, { fileContent: photo.fileContent, mimetype: photo.mimetype, filePath: photo.filePath }, { clientSideId: photo.clientSideId, blur: template?.blur, colors: template?.colors, faceRecognition: template?.face_recognition, imageDescribe: template?.image_describe, imageClassification: template?.image_classification, imageComparison: template?.image_comparison, size: photo.size, sourceResolutionX: photo.sourceResolutionX, sourceResolutionY: photo.sourceResolutionY, dateTaken: photo.dateTaken, latitude: photo.latitude, longitude: photo.longitude, ocr: template?.ocr });
1412
1412
 
1413
1413
  return upload_result;
1414
1414
  }
@@ -1563,7 +1563,7 @@
1563
1563
  return data;
1564
1564
  }
1565
1565
 
1566
- async recallProjectPhotoIds(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1566
+ async recallProjectPhotos(projectTableName, { ascOrDesc, bestOfSimilarSetsOnly, lastId, limit } = {}) {
1567
1567
  this._ctx.requireTokens();
1568
1568
  let path = `/api/v1/search/recall/${encodeURIComponent(projectTableName)}/`;
1569
1569
  const query = new URLSearchParams();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.5.0-dev.82",
4
4
  "description": "MediaViz JavaScript SDK \u2014 auto-generated public endpoint client.",
5
5
  "license": "MIT",
6
6
  "repository": {