@mediaviz/sdk 1.5.0-dev.83 → 1.5.0-rc.1
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 +3 -3
- package/dist/sdk.d.cts +1 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.esm.d.ts +1 -1
- package/dist/sdk.esm.js +3 -3
- package/dist/sdk.umd.js +3 -3
- package/package.json +1 -1
package/dist/sdk.cjs
CHANGED
|
@@ -1365,7 +1365,7 @@ class Photoupload {
|
|
|
1365
1365
|
const baseUrl = this._ctx.requireHost('photoUpload');
|
|
1366
1366
|
const headers = {
|
|
1367
1367
|
'Content-Type': 'application/json',
|
|
1368
|
-
'Authorization':
|
|
1368
|
+
'Authorization': this._ctx.accessToken,
|
|
1369
1369
|
'x-company-id': companyId,
|
|
1370
1370
|
'x-user-id': userId,
|
|
1371
1371
|
'x-project-table-name': projectTableName,
|
|
@@ -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 {
|
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 {
|
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 {
|
package/dist/sdk.esm.js
CHANGED
|
@@ -1363,7 +1363,7 @@ class Photoupload {
|
|
|
1363
1363
|
const baseUrl = this._ctx.requireHost('photoUpload');
|
|
1364
1364
|
const headers = {
|
|
1365
1365
|
'Content-Type': 'application/json',
|
|
1366
|
-
'Authorization':
|
|
1366
|
+
'Authorization': this._ctx.accessToken,
|
|
1367
1367
|
'x-company-id': companyId,
|
|
1368
1368
|
'x-user-id': userId,
|
|
1369
1369
|
'x-project-table-name': projectTableName,
|
|
@@ -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
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
const baseUrl = this._ctx.requireHost('photoUpload');
|
|
1370
1370
|
const headers = {
|
|
1371
1371
|
'Content-Type': 'application/json',
|
|
1372
|
-
'Authorization':
|
|
1372
|
+
'Authorization': this._ctx.accessToken,
|
|
1373
1373
|
'x-company-id': companyId,
|
|
1374
1374
|
'x-user-id': userId,
|
|
1375
1375
|
'x-project-table-name': projectTableName,
|
|
@@ -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
|
}
|