@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 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;
@@ -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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
507
- 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>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
535
- 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>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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?: 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;
@@ -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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
507
- 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>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
535
- 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>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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?: 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;
@@ -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?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
507
- 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>;
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?: any): Promise<KeywordListDisplayWithProjects>;
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: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
535
- 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>;
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?: any }): Promise<PhotoDisplay>;
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: any, callbackUrl?: string): Promise<SubscriptionActivated>;
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?: any }): Promise<SubscriptionDisplay>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/react-native-sdk",
3
- "version": "1.12.0-dev.130",
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": {