@mediaviz/sdk 1.5.0-dev.84 → 1.5.0-rc.2
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 +4 -4
- package/dist/sdk.d.cts +2 -2
- package/dist/sdk.d.ts +2 -2
- package/dist/sdk.esm.d.ts +2 -2
- package/dist/sdk.esm.js +4 -4
- package/dist/sdk.umd.js +4 -4
- package/package.json +1 -1
package/dist/sdk.cjs
CHANGED
|
@@ -1331,9 +1331,9 @@ class Projects {
|
|
|
1331
1331
|
return data;
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
|
-
async
|
|
1334
|
+
async getProjectDataExportUploadStatus(projectTableName, modelName) {
|
|
1335
1335
|
this._ctx.requireTokens();
|
|
1336
|
-
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/
|
|
1336
|
+
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_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
|
}
|
|
@@ -1393,7 +1393,7 @@ class Photoupload {
|
|
|
1393
1393
|
return handleResponse(resp);
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
-
async uploadPhoto(companyId, userId,
|
|
1396
|
+
async uploadPhoto(projectTableName, companyId, userId, photoIndex, photo) {
|
|
1397
1397
|
this._ctx.requireTokens();
|
|
1398
1398
|
|
|
1399
1399
|
if (!this._caches['_get_template']) this._caches['_get_template'] = new Map();
|
|
@@ -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:
|
|
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
|
}
|
package/dist/sdk.d.cts
CHANGED
|
@@ -417,7 +417,7 @@ export class Person {
|
|
|
417
417
|
|
|
418
418
|
export class Photoupload {
|
|
419
419
|
uploadPhotoToMediaviz(companyId: string, userId: string, projectTableName: string, title: string, body: { fileContent: string, mimetype: string, filePath: string }, headerOptions?: { clientSideId?: string, blur?: string, colors?: string, faceRecognition?: string, imageDescribe?: string, imageClassification?: string, imageComparison?: string, size?: string, sourceResolutionX?: string, sourceResolutionY?: string, dateTaken?: string, latitude?: string, longitude?: string, ocr?: string }): Promise<any>;
|
|
420
|
-
uploadPhoto(companyId: string, userId: string,
|
|
420
|
+
uploadPhoto(projectTableName: string, companyId: string, userId: string, photoIndex: number, photo: Record<string, any>): Promise<any>;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
export class Photos {
|
|
@@ -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
|
-
|
|
451
|
+
getProjectDataExportUploadStatus(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
|
}
|
package/dist/sdk.d.ts
CHANGED
|
@@ -417,7 +417,7 @@ export class Person {
|
|
|
417
417
|
|
|
418
418
|
export class Photoupload {
|
|
419
419
|
uploadPhotoToMediaviz(companyId: string, userId: string, projectTableName: string, title: string, body: { fileContent: string, mimetype: string, filePath: string }, headerOptions?: { clientSideId?: string, blur?: string, colors?: string, faceRecognition?: string, imageDescribe?: string, imageClassification?: string, imageComparison?: string, size?: string, sourceResolutionX?: string, sourceResolutionY?: string, dateTaken?: string, latitude?: string, longitude?: string, ocr?: string }): Promise<any>;
|
|
420
|
-
uploadPhoto(companyId: string, userId: string,
|
|
420
|
+
uploadPhoto(projectTableName: string, companyId: string, userId: string, photoIndex: number, photo: Record<string, any>): Promise<any>;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
export class Photos {
|
|
@@ -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
|
-
|
|
451
|
+
getProjectDataExportUploadStatus(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
|
}
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -417,7 +417,7 @@ export class Person {
|
|
|
417
417
|
|
|
418
418
|
export class Photoupload {
|
|
419
419
|
uploadPhotoToMediaviz(companyId: string, userId: string, projectTableName: string, title: string, body: { fileContent: string, mimetype: string, filePath: string }, headerOptions?: { clientSideId?: string, blur?: string, colors?: string, faceRecognition?: string, imageDescribe?: string, imageClassification?: string, imageComparison?: string, size?: string, sourceResolutionX?: string, sourceResolutionY?: string, dateTaken?: string, latitude?: string, longitude?: string, ocr?: string }): Promise<any>;
|
|
420
|
-
uploadPhoto(companyId: string, userId: string,
|
|
420
|
+
uploadPhoto(projectTableName: string, companyId: string, userId: string, photoIndex: number, photo: Record<string, any>): Promise<any>;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
export class Photos {
|
|
@@ -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
|
-
|
|
451
|
+
getProjectDataExportUploadStatus(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
|
}
|
package/dist/sdk.esm.js
CHANGED
|
@@ -1329,9 +1329,9 @@ class Projects {
|
|
|
1329
1329
|
return data;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
async
|
|
1332
|
+
async getProjectDataExportUploadStatus(projectTableName, modelName) {
|
|
1333
1333
|
this._ctx.requireTokens();
|
|
1334
|
-
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/
|
|
1334
|
+
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_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
|
}
|
|
@@ -1391,7 +1391,7 @@ class Photoupload {
|
|
|
1391
1391
|
return handleResponse(resp);
|
|
1392
1392
|
}
|
|
1393
1393
|
|
|
1394
|
-
async uploadPhoto(companyId, userId,
|
|
1394
|
+
async uploadPhoto(projectTableName, companyId, userId, photoIndex, photo) {
|
|
1395
1395
|
this._ctx.requireTokens();
|
|
1396
1396
|
|
|
1397
1397
|
if (!this._caches['_get_template']) this._caches['_get_template'] = new Map();
|
|
@@ -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:
|
|
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
|
}
|
package/dist/sdk.umd.js
CHANGED
|
@@ -1335,9 +1335,9 @@
|
|
|
1335
1335
|
return data;
|
|
1336
1336
|
}
|
|
1337
1337
|
|
|
1338
|
-
async
|
|
1338
|
+
async getProjectDataExportUploadStatus(projectTableName, modelName) {
|
|
1339
1339
|
this._ctx.requireTokens();
|
|
1340
|
-
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/
|
|
1340
|
+
const path = `/api/v1/projects/${encodeURIComponent(projectTableName)}/upload_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
|
}
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
return handleResponse(resp);
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
|
-
async uploadPhoto(companyId, userId,
|
|
1400
|
+
async uploadPhoto(projectTableName, companyId, userId, photoIndex, photo) {
|
|
1401
1401
|
this._ctx.requireTokens();
|
|
1402
1402
|
|
|
1403
1403
|
if (!this._caches['_get_template']) this._caches['_get_template'] = new Map();
|
|
@@ -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:
|
|
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
|
}
|