@mediaviz/react-native-sdk 1.12.0-dev.130 → 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 +38 -31
- package/dist/sdk.d.ts +38 -31
- package/dist/sdk.esm.d.ts +38 -31
- 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;
|
|
@@ -503,8 +510,8 @@ export class CustomAlbums {
|
|
|
503
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
504
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
505
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
506
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
507
|
-
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>;
|
|
508
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
509
516
|
}
|
|
510
517
|
|
|
@@ -524,15 +531,15 @@ export class Health {
|
|
|
524
531
|
}
|
|
525
532
|
|
|
526
533
|
export class Keywords {
|
|
527
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
528
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
529
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
530
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
531
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
532
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
533
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
534
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
535
|
-
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>;
|
|
536
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
537
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
538
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -591,7 +598,7 @@ export class Photos {
|
|
|
591
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>;
|
|
592
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>>;
|
|
593
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
594
|
-
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>;
|
|
595
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
596
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
597
604
|
}
|
|
@@ -630,11 +637,11 @@ export class Search {
|
|
|
630
637
|
}
|
|
631
638
|
|
|
632
639
|
export class Subscription {
|
|
633
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
634
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
635
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
636
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
637
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
638
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
639
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
640
647
|
}
|
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;
|
|
@@ -503,8 +510,8 @@ export class CustomAlbums {
|
|
|
503
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
504
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
505
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
506
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
507
|
-
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>;
|
|
508
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
509
516
|
}
|
|
510
517
|
|
|
@@ -524,15 +531,15 @@ export class Health {
|
|
|
524
531
|
}
|
|
525
532
|
|
|
526
533
|
export class Keywords {
|
|
527
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
528
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
529
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
530
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
531
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
532
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
533
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
534
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
535
|
-
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>;
|
|
536
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
537
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
538
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -591,7 +598,7 @@ export class Photos {
|
|
|
591
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>;
|
|
592
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>>;
|
|
593
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
594
|
-
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>;
|
|
595
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
596
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
597
604
|
}
|
|
@@ -630,11 +637,11 @@ export class Search {
|
|
|
630
637
|
}
|
|
631
638
|
|
|
632
639
|
export class Subscription {
|
|
633
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
634
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
635
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
636
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
637
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
638
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
639
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
640
647
|
}
|
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;
|
|
@@ -503,8 +510,8 @@ export class CustomAlbums {
|
|
|
503
510
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
504
511
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
505
512
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
506
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?:
|
|
507
|
-
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>;
|
|
508
515
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
509
516
|
}
|
|
510
517
|
|
|
@@ -524,15 +531,15 @@ export class Health {
|
|
|
524
531
|
}
|
|
525
532
|
|
|
526
533
|
export class Keywords {
|
|
527
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
534
|
+
createKeywordFilteringList(name: string, projectList?: string[]): Promise<KeywordListDisplayWithProjects>;
|
|
528
535
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
529
536
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
530
537
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
531
538
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
532
539
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
533
540
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
534
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
535
|
-
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>;
|
|
536
543
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
537
544
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
538
545
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -591,7 +598,7 @@ export class Photos {
|
|
|
591
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>;
|
|
592
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>>;
|
|
593
600
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
594
|
-
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>;
|
|
595
602
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
596
603
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
597
604
|
}
|
|
@@ -630,11 +637,11 @@ export class Search {
|
|
|
630
637
|
}
|
|
631
638
|
|
|
632
639
|
export class Subscription {
|
|
633
|
-
createSubscription(projectTableName: string, targets:
|
|
640
|
+
createSubscription(projectTableName: string, targets: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
634
641
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
635
642
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
636
643
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
637
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?:
|
|
644
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
|
|
638
645
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
639
646
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
640
647
|
}
|
package/package.json
CHANGED