@mediaviz/react-native-sdk 1.12.0-dev.129 → 1.12.0-rc.10
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.d.cts +50 -35
- package/dist/sdk.d.ts +50 -35
- package/dist/sdk.esm.d.ts +50 -35
- package/package.json +1 -1
package/dist/sdk.d.cts
CHANGED
|
@@ -152,7 +152,7 @@ export interface CompanyDisplay {
|
|
|
152
152
|
name: string;
|
|
153
153
|
id: number;
|
|
154
154
|
owner_id: number;
|
|
155
|
-
users?:
|
|
155
|
+
users?: number[];
|
|
156
156
|
active: boolean;
|
|
157
157
|
payment_plan_type: string;
|
|
158
158
|
}
|
|
@@ -162,7 +162,7 @@ export interface CompanyKeywordListOverview {
|
|
|
162
162
|
name: string;
|
|
163
163
|
active_keywords: number;
|
|
164
164
|
excluded_keywords: number;
|
|
165
|
-
project_ids?:
|
|
165
|
+
project_ids?: string[];
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export interface CredentialSelfServiceEnablementDisplay {
|
|
@@ -186,7 +186,7 @@ export interface CuratedAlbumDisplay {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export interface EventPage {
|
|
189
|
-
events:
|
|
189
|
+
events: PullEvent[];
|
|
190
190
|
next_cursor?: string;
|
|
191
191
|
}
|
|
192
192
|
|
|
@@ -207,7 +207,7 @@ export interface KeywordListDisplayWithList {
|
|
|
207
207
|
gsheet_view_link?: string;
|
|
208
208
|
gsheet_csv_link?: string;
|
|
209
209
|
gsheet_xlsx_link?: string;
|
|
210
|
-
list_keywords_included_or_excluded?:
|
|
210
|
+
list_keywords_included_or_excluded?: number[];
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export interface KeywordListDisplayWithProjects {
|
|
@@ -218,7 +218,7 @@ export interface KeywordListDisplayWithProjects {
|
|
|
218
218
|
date_created: string;
|
|
219
219
|
date_last_updated: string;
|
|
220
220
|
is_inclusion?: boolean;
|
|
221
|
-
list_projects_associated?:
|
|
221
|
+
list_projects_associated?: string[];
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export interface OrganizationCredentialCreated {
|
|
@@ -239,7 +239,7 @@ export interface PhotoDisplay {
|
|
|
239
239
|
moment_id?: number;
|
|
240
240
|
file_path?: string;
|
|
241
241
|
image_metadata?: Record<string, any>;
|
|
242
|
-
tags?:
|
|
242
|
+
tags?: string[];
|
|
243
243
|
title?: string;
|
|
244
244
|
description?: string;
|
|
245
245
|
format?: string;
|
|
@@ -264,17 +264,17 @@ export interface PhotoDisplay {
|
|
|
264
264
|
reference_1_average_distance?: number;
|
|
265
265
|
reference_2_average_distance?: number;
|
|
266
266
|
reference_3_average_distance?: number;
|
|
267
|
-
main_color_palette?:
|
|
268
|
-
color_averages?:
|
|
267
|
+
main_color_palette?: string[];
|
|
268
|
+
color_averages?: string[];
|
|
269
269
|
labels_from_classifications_model?: Record<string, any>;
|
|
270
270
|
ocr_output?: Record<string, any>;
|
|
271
|
-
bounding_boxes_from_faces_model?: any;
|
|
271
|
+
bounding_boxes_from_faces_model?: Record<string, any>[];
|
|
272
272
|
number_of_faces?: number;
|
|
273
273
|
blur_value?: number;
|
|
274
|
-
feature_extraction_output?:
|
|
275
|
-
similar_photo_ids_high?:
|
|
276
|
-
similar_photo_ids_medium?:
|
|
277
|
-
similar_photo_ids_low?:
|
|
274
|
+
feature_extraction_output?: number[];
|
|
275
|
+
similar_photo_ids_high?: number[];
|
|
276
|
+
similar_photo_ids_medium?: number[];
|
|
277
|
+
similar_photo_ids_low?: number[];
|
|
278
278
|
evidence_score?: number;
|
|
279
279
|
face_score?: number;
|
|
280
280
|
content_score?: number;
|
|
@@ -282,9 +282,9 @@ export interface PhotoDisplay {
|
|
|
282
282
|
similarity_set_ranking?: number;
|
|
283
283
|
topic?: string;
|
|
284
284
|
rank?: number;
|
|
285
|
-
hue_values?:
|
|
286
|
-
light_values?:
|
|
287
|
-
saturation_values?:
|
|
285
|
+
hue_values?: number[];
|
|
286
|
+
light_values?: number[];
|
|
287
|
+
saturation_values?: number[];
|
|
288
288
|
aesthetic_appeal?: number;
|
|
289
289
|
lighting?: number;
|
|
290
290
|
subject_significance?: number;
|
|
@@ -401,16 +401,23 @@ export interface ProjectRunDisplay {
|
|
|
401
401
|
is_continuous_upload?: boolean;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
export interface PullEvent {
|
|
405
|
+
event_id: string;
|
|
406
|
+
photo_id: number;
|
|
407
|
+
target: string;
|
|
408
|
+
completed_at: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
404
411
|
export interface SearchDisplay {
|
|
405
412
|
id: number;
|
|
406
413
|
project_table_name: string;
|
|
407
414
|
search_name: string;
|
|
408
|
-
and_params?:
|
|
409
|
-
and_string_params?:
|
|
410
|
-
or_params?:
|
|
411
|
-
or_string_params?:
|
|
412
|
-
not_params?:
|
|
413
|
-
not_string_params?:
|
|
415
|
+
and_params?: string[];
|
|
416
|
+
and_string_params?: string[];
|
|
417
|
+
or_params?: string[];
|
|
418
|
+
or_string_params?: string[];
|
|
419
|
+
not_params?: string[];
|
|
420
|
+
not_string_params?: string[];
|
|
414
421
|
date_min?: string;
|
|
415
422
|
date_max?: string;
|
|
416
423
|
date_null_and?: boolean;
|
|
@@ -432,7 +439,7 @@ export interface SubscriptionDisplay {
|
|
|
432
439
|
id: string;
|
|
433
440
|
project_table_name: string;
|
|
434
441
|
callback_url?: string;
|
|
435
|
-
targets:
|
|
442
|
+
targets: string[];
|
|
436
443
|
status: string;
|
|
437
444
|
consecutive_failures: number;
|
|
438
445
|
last_delivery_at?: string;
|
|
@@ -440,6 +447,14 @@ export interface SubscriptionDisplay {
|
|
|
440
447
|
created_at: string;
|
|
441
448
|
}
|
|
442
449
|
|
|
450
|
+
export interface ThemedAlbumDisplay {
|
|
451
|
+
id: number;
|
|
452
|
+
project_table_name: string;
|
|
453
|
+
name: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
confidence_value?: number;
|
|
456
|
+
}
|
|
457
|
+
|
|
443
458
|
export interface UserDisplay {
|
|
444
459
|
id: number;
|
|
445
460
|
company_id: number;
|
|
@@ -495,8 +510,8 @@ export class CustomAlbums {
|
|
|
495
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
496
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
497
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
498
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
499
|
-
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
513
|
+
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
514
|
+
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
500
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
501
516
|
}
|
|
502
517
|
|
|
@@ -516,15 +531,15 @@ export class Health {
|
|
|
516
531
|
}
|
|
517
532
|
|
|
518
533
|
export class Keywords {
|
|
519
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
520
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
521
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
522
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
523
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
524
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
525
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
526
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
527
|
-
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?:
|
|
541
|
+
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
|
|
542
|
+
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
|
|
528
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
529
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
530
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -583,7 +598,7 @@ export class Photos {
|
|
|
583
598
|
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>;
|
|
584
599
|
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>>;
|
|
585
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
586
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?:
|
|
601
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
|
|
587
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
588
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
589
604
|
}
|
|
@@ -622,22 +637,22 @@ export class Search {
|
|
|
622
637
|
}
|
|
623
638
|
|
|
624
639
|
export class Subscription {
|
|
625
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
626
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
627
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
628
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
629
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
630
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
631
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
632
647
|
}
|
|
633
648
|
|
|
634
649
|
export class ThemedAlbums {
|
|
635
|
-
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<
|
|
636
|
-
getAllProjectThemedAlbums(projectTableName: string): Promise<
|
|
650
|
+
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
|
|
651
|
+
getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
|
|
637
652
|
getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
638
653
|
getThemedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
639
|
-
getThemedAlbumById(albumId: number): Promise<
|
|
640
|
-
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<
|
|
654
|
+
getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
|
|
655
|
+
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
|
|
641
656
|
deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
642
657
|
convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
643
658
|
}
|
package/dist/sdk.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export interface CompanyDisplay {
|
|
|
152
152
|
name: string;
|
|
153
153
|
id: number;
|
|
154
154
|
owner_id: number;
|
|
155
|
-
users?:
|
|
155
|
+
users?: number[];
|
|
156
156
|
active: boolean;
|
|
157
157
|
payment_plan_type: string;
|
|
158
158
|
}
|
|
@@ -162,7 +162,7 @@ export interface CompanyKeywordListOverview {
|
|
|
162
162
|
name: string;
|
|
163
163
|
active_keywords: number;
|
|
164
164
|
excluded_keywords: number;
|
|
165
|
-
project_ids?:
|
|
165
|
+
project_ids?: string[];
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export interface CredentialSelfServiceEnablementDisplay {
|
|
@@ -186,7 +186,7 @@ export interface CuratedAlbumDisplay {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export interface EventPage {
|
|
189
|
-
events:
|
|
189
|
+
events: PullEvent[];
|
|
190
190
|
next_cursor?: string;
|
|
191
191
|
}
|
|
192
192
|
|
|
@@ -207,7 +207,7 @@ export interface KeywordListDisplayWithList {
|
|
|
207
207
|
gsheet_view_link?: string;
|
|
208
208
|
gsheet_csv_link?: string;
|
|
209
209
|
gsheet_xlsx_link?: string;
|
|
210
|
-
list_keywords_included_or_excluded?:
|
|
210
|
+
list_keywords_included_or_excluded?: number[];
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export interface KeywordListDisplayWithProjects {
|
|
@@ -218,7 +218,7 @@ export interface KeywordListDisplayWithProjects {
|
|
|
218
218
|
date_created: string;
|
|
219
219
|
date_last_updated: string;
|
|
220
220
|
is_inclusion?: boolean;
|
|
221
|
-
list_projects_associated?:
|
|
221
|
+
list_projects_associated?: string[];
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export interface OrganizationCredentialCreated {
|
|
@@ -239,7 +239,7 @@ export interface PhotoDisplay {
|
|
|
239
239
|
moment_id?: number;
|
|
240
240
|
file_path?: string;
|
|
241
241
|
image_metadata?: Record<string, any>;
|
|
242
|
-
tags?:
|
|
242
|
+
tags?: string[];
|
|
243
243
|
title?: string;
|
|
244
244
|
description?: string;
|
|
245
245
|
format?: string;
|
|
@@ -264,17 +264,17 @@ export interface PhotoDisplay {
|
|
|
264
264
|
reference_1_average_distance?: number;
|
|
265
265
|
reference_2_average_distance?: number;
|
|
266
266
|
reference_3_average_distance?: number;
|
|
267
|
-
main_color_palette?:
|
|
268
|
-
color_averages?:
|
|
267
|
+
main_color_palette?: string[];
|
|
268
|
+
color_averages?: string[];
|
|
269
269
|
labels_from_classifications_model?: Record<string, any>;
|
|
270
270
|
ocr_output?: Record<string, any>;
|
|
271
|
-
bounding_boxes_from_faces_model?: any;
|
|
271
|
+
bounding_boxes_from_faces_model?: Record<string, any>[];
|
|
272
272
|
number_of_faces?: number;
|
|
273
273
|
blur_value?: number;
|
|
274
|
-
feature_extraction_output?:
|
|
275
|
-
similar_photo_ids_high?:
|
|
276
|
-
similar_photo_ids_medium?:
|
|
277
|
-
similar_photo_ids_low?:
|
|
274
|
+
feature_extraction_output?: number[];
|
|
275
|
+
similar_photo_ids_high?: number[];
|
|
276
|
+
similar_photo_ids_medium?: number[];
|
|
277
|
+
similar_photo_ids_low?: number[];
|
|
278
278
|
evidence_score?: number;
|
|
279
279
|
face_score?: number;
|
|
280
280
|
content_score?: number;
|
|
@@ -282,9 +282,9 @@ export interface PhotoDisplay {
|
|
|
282
282
|
similarity_set_ranking?: number;
|
|
283
283
|
topic?: string;
|
|
284
284
|
rank?: number;
|
|
285
|
-
hue_values?:
|
|
286
|
-
light_values?:
|
|
287
|
-
saturation_values?:
|
|
285
|
+
hue_values?: number[];
|
|
286
|
+
light_values?: number[];
|
|
287
|
+
saturation_values?: number[];
|
|
288
288
|
aesthetic_appeal?: number;
|
|
289
289
|
lighting?: number;
|
|
290
290
|
subject_significance?: number;
|
|
@@ -401,16 +401,23 @@ export interface ProjectRunDisplay {
|
|
|
401
401
|
is_continuous_upload?: boolean;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
export interface PullEvent {
|
|
405
|
+
event_id: string;
|
|
406
|
+
photo_id: number;
|
|
407
|
+
target: string;
|
|
408
|
+
completed_at: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
404
411
|
export interface SearchDisplay {
|
|
405
412
|
id: number;
|
|
406
413
|
project_table_name: string;
|
|
407
414
|
search_name: string;
|
|
408
|
-
and_params?:
|
|
409
|
-
and_string_params?:
|
|
410
|
-
or_params?:
|
|
411
|
-
or_string_params?:
|
|
412
|
-
not_params?:
|
|
413
|
-
not_string_params?:
|
|
415
|
+
and_params?: string[];
|
|
416
|
+
and_string_params?: string[];
|
|
417
|
+
or_params?: string[];
|
|
418
|
+
or_string_params?: string[];
|
|
419
|
+
not_params?: string[];
|
|
420
|
+
not_string_params?: string[];
|
|
414
421
|
date_min?: string;
|
|
415
422
|
date_max?: string;
|
|
416
423
|
date_null_and?: boolean;
|
|
@@ -432,7 +439,7 @@ export interface SubscriptionDisplay {
|
|
|
432
439
|
id: string;
|
|
433
440
|
project_table_name: string;
|
|
434
441
|
callback_url?: string;
|
|
435
|
-
targets:
|
|
442
|
+
targets: string[];
|
|
436
443
|
status: string;
|
|
437
444
|
consecutive_failures: number;
|
|
438
445
|
last_delivery_at?: string;
|
|
@@ -440,6 +447,14 @@ export interface SubscriptionDisplay {
|
|
|
440
447
|
created_at: string;
|
|
441
448
|
}
|
|
442
449
|
|
|
450
|
+
export interface ThemedAlbumDisplay {
|
|
451
|
+
id: number;
|
|
452
|
+
project_table_name: string;
|
|
453
|
+
name: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
confidence_value?: number;
|
|
456
|
+
}
|
|
457
|
+
|
|
443
458
|
export interface UserDisplay {
|
|
444
459
|
id: number;
|
|
445
460
|
company_id: number;
|
|
@@ -495,8 +510,8 @@ export class CustomAlbums {
|
|
|
495
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
496
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
497
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
498
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
499
|
-
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
513
|
+
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
514
|
+
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
500
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
501
516
|
}
|
|
502
517
|
|
|
@@ -516,15 +531,15 @@ export class Health {
|
|
|
516
531
|
}
|
|
517
532
|
|
|
518
533
|
export class Keywords {
|
|
519
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
520
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
521
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
522
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
523
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
524
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
525
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
526
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
527
|
-
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?:
|
|
541
|
+
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
|
|
542
|
+
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
|
|
528
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
529
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
530
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -583,7 +598,7 @@ export class Photos {
|
|
|
583
598
|
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>;
|
|
584
599
|
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>>;
|
|
585
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
586
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?:
|
|
601
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
|
|
587
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
588
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
589
604
|
}
|
|
@@ -622,22 +637,22 @@ export class Search {
|
|
|
622
637
|
}
|
|
623
638
|
|
|
624
639
|
export class Subscription {
|
|
625
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
626
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
627
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
628
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
629
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
630
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
631
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
632
647
|
}
|
|
633
648
|
|
|
634
649
|
export class ThemedAlbums {
|
|
635
|
-
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<
|
|
636
|
-
getAllProjectThemedAlbums(projectTableName: string): Promise<
|
|
650
|
+
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
|
|
651
|
+
getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
|
|
637
652
|
getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
638
653
|
getThemedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
639
|
-
getThemedAlbumById(albumId: number): Promise<
|
|
640
|
-
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<
|
|
654
|
+
getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
|
|
655
|
+
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
|
|
641
656
|
deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
642
657
|
convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
643
658
|
}
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export interface CompanyDisplay {
|
|
|
152
152
|
name: string;
|
|
153
153
|
id: number;
|
|
154
154
|
owner_id: number;
|
|
155
|
-
users?:
|
|
155
|
+
users?: number[];
|
|
156
156
|
active: boolean;
|
|
157
157
|
payment_plan_type: string;
|
|
158
158
|
}
|
|
@@ -162,7 +162,7 @@ export interface CompanyKeywordListOverview {
|
|
|
162
162
|
name: string;
|
|
163
163
|
active_keywords: number;
|
|
164
164
|
excluded_keywords: number;
|
|
165
|
-
project_ids?:
|
|
165
|
+
project_ids?: string[];
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export interface CredentialSelfServiceEnablementDisplay {
|
|
@@ -186,7 +186,7 @@ export interface CuratedAlbumDisplay {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export interface EventPage {
|
|
189
|
-
events:
|
|
189
|
+
events: PullEvent[];
|
|
190
190
|
next_cursor?: string;
|
|
191
191
|
}
|
|
192
192
|
|
|
@@ -207,7 +207,7 @@ export interface KeywordListDisplayWithList {
|
|
|
207
207
|
gsheet_view_link?: string;
|
|
208
208
|
gsheet_csv_link?: string;
|
|
209
209
|
gsheet_xlsx_link?: string;
|
|
210
|
-
list_keywords_included_or_excluded?:
|
|
210
|
+
list_keywords_included_or_excluded?: number[];
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export interface KeywordListDisplayWithProjects {
|
|
@@ -218,7 +218,7 @@ export interface KeywordListDisplayWithProjects {
|
|
|
218
218
|
date_created: string;
|
|
219
219
|
date_last_updated: string;
|
|
220
220
|
is_inclusion?: boolean;
|
|
221
|
-
list_projects_associated?:
|
|
221
|
+
list_projects_associated?: string[];
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export interface OrganizationCredentialCreated {
|
|
@@ -239,7 +239,7 @@ export interface PhotoDisplay {
|
|
|
239
239
|
moment_id?: number;
|
|
240
240
|
file_path?: string;
|
|
241
241
|
image_metadata?: Record<string, any>;
|
|
242
|
-
tags?:
|
|
242
|
+
tags?: string[];
|
|
243
243
|
title?: string;
|
|
244
244
|
description?: string;
|
|
245
245
|
format?: string;
|
|
@@ -264,17 +264,17 @@ export interface PhotoDisplay {
|
|
|
264
264
|
reference_1_average_distance?: number;
|
|
265
265
|
reference_2_average_distance?: number;
|
|
266
266
|
reference_3_average_distance?: number;
|
|
267
|
-
main_color_palette?:
|
|
268
|
-
color_averages?:
|
|
267
|
+
main_color_palette?: string[];
|
|
268
|
+
color_averages?: string[];
|
|
269
269
|
labels_from_classifications_model?: Record<string, any>;
|
|
270
270
|
ocr_output?: Record<string, any>;
|
|
271
|
-
bounding_boxes_from_faces_model?: any;
|
|
271
|
+
bounding_boxes_from_faces_model?: Record<string, any>[];
|
|
272
272
|
number_of_faces?: number;
|
|
273
273
|
blur_value?: number;
|
|
274
|
-
feature_extraction_output?:
|
|
275
|
-
similar_photo_ids_high?:
|
|
276
|
-
similar_photo_ids_medium?:
|
|
277
|
-
similar_photo_ids_low?:
|
|
274
|
+
feature_extraction_output?: number[];
|
|
275
|
+
similar_photo_ids_high?: number[];
|
|
276
|
+
similar_photo_ids_medium?: number[];
|
|
277
|
+
similar_photo_ids_low?: number[];
|
|
278
278
|
evidence_score?: number;
|
|
279
279
|
face_score?: number;
|
|
280
280
|
content_score?: number;
|
|
@@ -282,9 +282,9 @@ export interface PhotoDisplay {
|
|
|
282
282
|
similarity_set_ranking?: number;
|
|
283
283
|
topic?: string;
|
|
284
284
|
rank?: number;
|
|
285
|
-
hue_values?:
|
|
286
|
-
light_values?:
|
|
287
|
-
saturation_values?:
|
|
285
|
+
hue_values?: number[];
|
|
286
|
+
light_values?: number[];
|
|
287
|
+
saturation_values?: number[];
|
|
288
288
|
aesthetic_appeal?: number;
|
|
289
289
|
lighting?: number;
|
|
290
290
|
subject_significance?: number;
|
|
@@ -401,16 +401,23 @@ export interface ProjectRunDisplay {
|
|
|
401
401
|
is_continuous_upload?: boolean;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
export interface PullEvent {
|
|
405
|
+
event_id: string;
|
|
406
|
+
photo_id: number;
|
|
407
|
+
target: string;
|
|
408
|
+
completed_at: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
404
411
|
export interface SearchDisplay {
|
|
405
412
|
id: number;
|
|
406
413
|
project_table_name: string;
|
|
407
414
|
search_name: string;
|
|
408
|
-
and_params?:
|
|
409
|
-
and_string_params?:
|
|
410
|
-
or_params?:
|
|
411
|
-
or_string_params?:
|
|
412
|
-
not_params?:
|
|
413
|
-
not_string_params?:
|
|
415
|
+
and_params?: string[];
|
|
416
|
+
and_string_params?: string[];
|
|
417
|
+
or_params?: string[];
|
|
418
|
+
or_string_params?: string[];
|
|
419
|
+
not_params?: string[];
|
|
420
|
+
not_string_params?: string[];
|
|
414
421
|
date_min?: string;
|
|
415
422
|
date_max?: string;
|
|
416
423
|
date_null_and?: boolean;
|
|
@@ -432,7 +439,7 @@ export interface SubscriptionDisplay {
|
|
|
432
439
|
id: string;
|
|
433
440
|
project_table_name: string;
|
|
434
441
|
callback_url?: string;
|
|
435
|
-
targets:
|
|
442
|
+
targets: string[];
|
|
436
443
|
status: string;
|
|
437
444
|
consecutive_failures: number;
|
|
438
445
|
last_delivery_at?: string;
|
|
@@ -440,6 +447,14 @@ export interface SubscriptionDisplay {
|
|
|
440
447
|
created_at: string;
|
|
441
448
|
}
|
|
442
449
|
|
|
450
|
+
export interface ThemedAlbumDisplay {
|
|
451
|
+
id: number;
|
|
452
|
+
project_table_name: string;
|
|
453
|
+
name: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
confidence_value?: number;
|
|
456
|
+
}
|
|
457
|
+
|
|
443
458
|
export interface UserDisplay {
|
|
444
459
|
id: number;
|
|
445
460
|
company_id: number;
|
|
@@ -495,8 +510,8 @@ export class CustomAlbums {
|
|
|
495
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
496
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
497
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
498
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
499
|
-
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
513
|
+
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
514
|
+
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
|
|
500
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
501
516
|
}
|
|
502
517
|
|
|
@@ -516,15 +531,15 @@ export class Health {
|
|
|
516
531
|
}
|
|
517
532
|
|
|
518
533
|
export class Keywords {
|
|
519
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
520
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
521
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
522
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
523
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
524
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
525
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
526
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
527
|
-
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?:
|
|
541
|
+
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
|
|
542
|
+
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
|
|
528
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
529
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
530
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -583,7 +598,7 @@ export class Photos {
|
|
|
583
598
|
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>;
|
|
584
599
|
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>>;
|
|
585
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
586
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?:
|
|
601
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
|
|
587
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
588
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
589
604
|
}
|
|
@@ -622,22 +637,22 @@ export class Search {
|
|
|
622
637
|
}
|
|
623
638
|
|
|
624
639
|
export class Subscription {
|
|
625
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
626
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
627
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
628
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
629
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
630
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
631
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
632
647
|
}
|
|
633
648
|
|
|
634
649
|
export class ThemedAlbums {
|
|
635
|
-
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<
|
|
636
|
-
getAllProjectThemedAlbums(projectTableName: string): Promise<
|
|
650
|
+
createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
|
|
651
|
+
getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
|
|
637
652
|
getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
638
653
|
getThemedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
639
|
-
getThemedAlbumById(albumId: number): Promise<
|
|
640
|
-
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<
|
|
654
|
+
getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
|
|
655
|
+
updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
|
|
641
656
|
deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
642
657
|
convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
643
658
|
}
|
package/package.json
CHANGED