@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 CHANGED
@@ -152,7 +152,7 @@ export interface CompanyDisplay {
152
152
  name: string;
153
153
  id: number;
154
154
  owner_id: number;
155
- users?: any;
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?: any;
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: any;
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?: any;
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?: any;
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?: any;
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?: any;
268
- color_averages?: any;
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?: any;
275
- similar_photo_ids_high?: any;
276
- similar_photo_ids_medium?: any;
277
- similar_photo_ids_low?: any;
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?: any;
286
- light_values?: any;
287
- saturation_values?: any;
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?: any;
409
- and_string_params?: any;
410
- or_params?: any;
411
- or_string_params?: any;
412
- not_params?: any;
413
- not_string_params?: any;
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: any;
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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
499
- updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
527
- updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: any }): Promise<KeywordListDisplayWithProjects>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
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<CuratedAlbumDisplay>;
640
- updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
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?: any;
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?: any;
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: any;
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?: any;
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?: any;
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?: any;
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?: any;
268
- color_averages?: any;
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?: any;
275
- similar_photo_ids_high?: any;
276
- similar_photo_ids_medium?: any;
277
- similar_photo_ids_low?: any;
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?: any;
286
- light_values?: any;
287
- saturation_values?: any;
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?: any;
409
- and_string_params?: any;
410
- or_params?: any;
411
- or_string_params?: any;
412
- not_params?: any;
413
- not_string_params?: any;
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: any;
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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
499
- updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
527
- updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: any }): Promise<KeywordListDisplayWithProjects>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
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<CuratedAlbumDisplay>;
640
- updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
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?: any;
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?: any;
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: any;
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?: any;
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?: any;
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?: any;
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?: any;
268
- color_averages?: any;
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?: any;
275
- similar_photo_ids_high?: any;
276
- similar_photo_ids_medium?: any;
277
- similar_photo_ids_low?: any;
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?: any;
286
- light_values?: any;
287
- saturation_values?: any;
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?: any;
409
- and_string_params?: any;
410
- or_params?: any;
411
- or_string_params?: any;
412
- not_params?: any;
413
- not_string_params?: any;
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: any;
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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
499
- updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
527
- updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: any }): Promise<KeywordListDisplayWithProjects>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
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<CuratedAlbumDisplay>;
640
- updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/react-native-sdk",
3
- "version": "1.12.0-dev.129",
3
+ "version": "1.12.0-rc.10",
4
4
  "description": "MediaViz React Native SDK \u2014 auto-generated endpoint client for React Native and Expo.",
5
5
  "license": "MIT",
6
6
  "repository": {