@mediaviz/sdk 1.8.0 → 1.9.0-dev.107
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 +246 -63
- package/dist/sdk.d.cts +14 -4
- package/dist/sdk.d.ts +14 -4
- package/dist/sdk.esm.d.ts +14 -4
- package/dist/sdk.esm.js +246 -64
- package/dist/sdk.umd.js +246 -63
- package/package.json +1 -1
package/dist/sdk.d.ts
CHANGED
|
@@ -268,6 +268,15 @@ export interface PhotoDisplay {
|
|
|
268
268
|
hue_values?: number[];
|
|
269
269
|
light_values?: number[];
|
|
270
270
|
saturation_values?: number[];
|
|
271
|
+
aesthetic_appeal?: number;
|
|
272
|
+
lighting?: number;
|
|
273
|
+
subject_significance?: number;
|
|
274
|
+
emotional_intensity?: number;
|
|
275
|
+
positive_emotion?: number;
|
|
276
|
+
universal_relatability?: number;
|
|
277
|
+
memorability?: number;
|
|
278
|
+
composition?: number;
|
|
279
|
+
judgment_overall_score?: number;
|
|
271
280
|
user_id: number;
|
|
272
281
|
company_id: number;
|
|
273
282
|
id: number;
|
|
@@ -356,6 +365,7 @@ export interface ProjectRunDisplay {
|
|
|
356
365
|
image_comparison_model?: boolean;
|
|
357
366
|
image_describe_model?: boolean;
|
|
358
367
|
ocr_model?: boolean;
|
|
368
|
+
judgment_model?: boolean;
|
|
359
369
|
similarity_model?: boolean;
|
|
360
370
|
personhood_model?: boolean;
|
|
361
371
|
evidence_model?: boolean;
|
|
@@ -431,7 +441,7 @@ export class Admin {
|
|
|
431
441
|
|
|
432
442
|
export class Company {
|
|
433
443
|
getCompanyById(companyId: number): Promise<CompanyDisplay>;
|
|
434
|
-
confirmCompanyCreditBalance(companyId: number, options?: { photoCount?: number | number[], modelsList?:
|
|
444
|
+
confirmCompanyCreditBalance(companyId: number, options?: { photoCount?: number | number[], modelsList?: any }): Promise<CreditBalanceOutput>;
|
|
435
445
|
}
|
|
436
446
|
|
|
437
447
|
export class CuratedAlbums {
|
|
@@ -522,7 +532,7 @@ export class Person {
|
|
|
522
532
|
}
|
|
523
533
|
|
|
524
534
|
export class Photoupload {
|
|
525
|
-
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
535
|
+
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, judgment: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
526
536
|
uploadPhoto(companyId: string, userId: string, projectTableName: string, photo: Record<string, any>): Promise<any>;
|
|
527
537
|
}
|
|
528
538
|
|
|
@@ -532,7 +542,7 @@ export class Photos {
|
|
|
532
542
|
getProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], includeAll?: boolean | boolean[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<any>;
|
|
533
543
|
getRankedProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
534
544
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
535
|
-
updatePhotoInProject(
|
|
545
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
|
|
536
546
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
537
547
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
538
548
|
}
|
|
@@ -547,7 +557,7 @@ export class Projects {
|
|
|
547
557
|
getProjectById(projectId: string): Promise<ProjectRunDisplay>;
|
|
548
558
|
getProjectByDirectory(directory: string): Promise<ProjectRunDisplay>;
|
|
549
559
|
updateProject(projectId: string, body?: { private?: boolean, type?: number, description?: string, directory?: string, name?: string, thumbnail?: string }): Promise<ProjectRunDisplay>;
|
|
550
|
-
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any
|
|
560
|
+
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<Record<string, any>>;
|
|
551
561
|
updateProjectCreateUploadReport(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any>;
|
|
552
562
|
requestProjectSimilarityQueue(projectTableName: string, level: string): Promise<Record<string, any>>;
|
|
553
563
|
requestProjectEvidenceQueue(projectTableName: string): Promise<Record<string, any>>;
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -268,6 +268,15 @@ export interface PhotoDisplay {
|
|
|
268
268
|
hue_values?: number[];
|
|
269
269
|
light_values?: number[];
|
|
270
270
|
saturation_values?: number[];
|
|
271
|
+
aesthetic_appeal?: number;
|
|
272
|
+
lighting?: number;
|
|
273
|
+
subject_significance?: number;
|
|
274
|
+
emotional_intensity?: number;
|
|
275
|
+
positive_emotion?: number;
|
|
276
|
+
universal_relatability?: number;
|
|
277
|
+
memorability?: number;
|
|
278
|
+
composition?: number;
|
|
279
|
+
judgment_overall_score?: number;
|
|
271
280
|
user_id: number;
|
|
272
281
|
company_id: number;
|
|
273
282
|
id: number;
|
|
@@ -356,6 +365,7 @@ export interface ProjectRunDisplay {
|
|
|
356
365
|
image_comparison_model?: boolean;
|
|
357
366
|
image_describe_model?: boolean;
|
|
358
367
|
ocr_model?: boolean;
|
|
368
|
+
judgment_model?: boolean;
|
|
359
369
|
similarity_model?: boolean;
|
|
360
370
|
personhood_model?: boolean;
|
|
361
371
|
evidence_model?: boolean;
|
|
@@ -431,7 +441,7 @@ export class Admin {
|
|
|
431
441
|
|
|
432
442
|
export class Company {
|
|
433
443
|
getCompanyById(companyId: number): Promise<CompanyDisplay>;
|
|
434
|
-
confirmCompanyCreditBalance(companyId: number, options?: { photoCount?: number | number[], modelsList?:
|
|
444
|
+
confirmCompanyCreditBalance(companyId: number, options?: { photoCount?: number | number[], modelsList?: any }): Promise<CreditBalanceOutput>;
|
|
435
445
|
}
|
|
436
446
|
|
|
437
447
|
export class CuratedAlbums {
|
|
@@ -522,7 +532,7 @@ export class Person {
|
|
|
522
532
|
}
|
|
523
533
|
|
|
524
534
|
export class Photoupload {
|
|
525
|
-
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
535
|
+
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, judgment: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
526
536
|
uploadPhoto(companyId: string, userId: string, projectTableName: string, photo: Record<string, any>): Promise<any>;
|
|
527
537
|
}
|
|
528
538
|
|
|
@@ -532,7 +542,7 @@ export class Photos {
|
|
|
532
542
|
getProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], includeAll?: boolean | boolean[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<any>;
|
|
533
543
|
getRankedProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
534
544
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
535
|
-
updatePhotoInProject(
|
|
545
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
|
|
536
546
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
537
547
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
538
548
|
}
|
|
@@ -547,7 +557,7 @@ export class Projects {
|
|
|
547
557
|
getProjectById(projectId: string): Promise<ProjectRunDisplay>;
|
|
548
558
|
getProjectByDirectory(directory: string): Promise<ProjectRunDisplay>;
|
|
549
559
|
updateProject(projectId: string, body?: { private?: boolean, type?: number, description?: string, directory?: string, name?: string, thumbnail?: string }): Promise<ProjectRunDisplay>;
|
|
550
|
-
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any
|
|
560
|
+
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<Record<string, any>>;
|
|
551
561
|
updateProjectCreateUploadReport(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any>;
|
|
552
562
|
requestProjectSimilarityQueue(projectTableName: string, level: string): Promise<Record<string, any>>;
|
|
553
563
|
requestProjectEvidenceQueue(projectTableName: string): Promise<Record<string, any>>;
|