@mediaviz/react-native-sdk 1.12.0-dev.128 → 1.12.0-dev.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.cjs CHANGED
@@ -2376,7 +2376,7 @@ class Subscription {
2376
2376
 
2377
2377
  function stripUndef$1(o) { const r = {}; for (const k in o) if (o[k] !== undefined) r[k] = o[k]; return r; }
2378
2378
 
2379
- class ThemedAlbum {
2379
+ class ThemedAlbums {
2380
2380
  constructor(ctx) { this._ctx = ctx; }
2381
2381
 
2382
2382
  async createThemedAlbum(projectTableName, name, description = undefined, confidenceValue = undefined) {
@@ -2672,7 +2672,7 @@ class MediaViz {
2672
2672
  this.projects = new Projects(_ctx);
2673
2673
  this.search = new Search(_ctx);
2674
2674
  this.subscription = new Subscription(_ctx);
2675
- this.themedAlbum = new ThemedAlbum(_ctx);
2675
+ this.themedAlbums = new ThemedAlbums(_ctx);
2676
2676
  this.users = new Users(_ctx);
2677
2677
  this.webhookReceiver = new Webhookreceiver(_ctx);
2678
2678
  this.webhooks = new WebhookConsumer(_ctx, this.subscription);
@@ -3115,7 +3115,7 @@ exports.RateLimitError = RateLimitError;
3115
3115
  exports.Search = Search;
3116
3116
  exports.ServerError = ServerError;
3117
3117
  exports.Subscription = Subscription;
3118
- exports.ThemedAlbum = ThemedAlbum;
3118
+ exports.ThemedAlbums = ThemedAlbums;
3119
3119
  exports.Users = Users;
3120
3120
  exports.ValidationError = ValidationError;
3121
3121
  exports.WEBHOOK_MODEL_COLUMNS = WEBHOOK_MODEL_COLUMNS;
package/dist/sdk.d.cts CHANGED
@@ -440,6 +440,14 @@ export interface SubscriptionDisplay {
440
440
  created_at: string;
441
441
  }
442
442
 
443
+ export interface ThemedAlbumDisplay {
444
+ id: number;
445
+ project_table_name: string;
446
+ name: string;
447
+ description?: string;
448
+ confidence_value?: number;
449
+ }
450
+
443
451
  export interface UserDisplay {
444
452
  id: number;
445
453
  company_id: number;
@@ -631,13 +639,13 @@ export class Subscription {
631
639
  rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
632
640
  }
633
641
 
634
- export class ThemedAlbum {
635
- createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
642
+ export class ThemedAlbums {
643
+ createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
644
+ getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
637
645
  getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
638
646
  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>;
647
+ getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
648
+ updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
641
649
  deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
642
650
  convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
643
651
  }
@@ -683,7 +691,7 @@ export class MediaViz {
683
691
  readonly projects: Projects;
684
692
  readonly search: Search;
685
693
  readonly subscription: Subscription;
686
- readonly themedAlbum: ThemedAlbum;
694
+ readonly themedAlbums: ThemedAlbums;
687
695
  readonly users: Users;
688
696
  readonly webhookReceiver: Webhookreceiver;
689
697
  readonly webhooks: WebhookConsumer;
package/dist/sdk.d.ts CHANGED
@@ -440,6 +440,14 @@ export interface SubscriptionDisplay {
440
440
  created_at: string;
441
441
  }
442
442
 
443
+ export interface ThemedAlbumDisplay {
444
+ id: number;
445
+ project_table_name: string;
446
+ name: string;
447
+ description?: string;
448
+ confidence_value?: number;
449
+ }
450
+
443
451
  export interface UserDisplay {
444
452
  id: number;
445
453
  company_id: number;
@@ -631,13 +639,13 @@ export class Subscription {
631
639
  rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
632
640
  }
633
641
 
634
- export class ThemedAlbum {
635
- createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
642
+ export class ThemedAlbums {
643
+ createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
644
+ getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
637
645
  getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
638
646
  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>;
647
+ getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
648
+ updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
641
649
  deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
642
650
  convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
643
651
  }
@@ -683,7 +691,7 @@ export class MediaViz {
683
691
  readonly projects: Projects;
684
692
  readonly search: Search;
685
693
  readonly subscription: Subscription;
686
- readonly themedAlbum: ThemedAlbum;
694
+ readonly themedAlbums: ThemedAlbums;
687
695
  readonly users: Users;
688
696
  readonly webhookReceiver: Webhookreceiver;
689
697
  readonly webhooks: WebhookConsumer;
package/dist/sdk.esm.d.ts CHANGED
@@ -440,6 +440,14 @@ export interface SubscriptionDisplay {
440
440
  created_at: string;
441
441
  }
442
442
 
443
+ export interface ThemedAlbumDisplay {
444
+ id: number;
445
+ project_table_name: string;
446
+ name: string;
447
+ description?: string;
448
+ confidence_value?: number;
449
+ }
450
+
443
451
  export interface UserDisplay {
444
452
  id: number;
445
453
  company_id: number;
@@ -631,13 +639,13 @@ export class Subscription {
631
639
  rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
632
640
  }
633
641
 
634
- export class ThemedAlbum {
635
- createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
636
- getAllProjectThemedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
642
+ export class ThemedAlbums {
643
+ createThemedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<ThemedAlbumDisplay>;
644
+ getAllProjectThemedAlbums(projectTableName: string): Promise<ThemedAlbumDisplay[]>;
637
645
  getThemedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
638
646
  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>;
647
+ getThemedAlbumById(albumId: number): Promise<ThemedAlbumDisplay>;
648
+ updateThemedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<ThemedAlbumDisplay>;
641
649
  deleteThemedAlbum(albumId: number): Promise<Record<string, any>>;
642
650
  convertThemedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
643
651
  }
@@ -683,7 +691,7 @@ export class MediaViz {
683
691
  readonly projects: Projects;
684
692
  readonly search: Search;
685
693
  readonly subscription: Subscription;
686
- readonly themedAlbum: ThemedAlbum;
694
+ readonly themedAlbums: ThemedAlbums;
687
695
  readonly users: Users;
688
696
  readonly webhookReceiver: Webhookreceiver;
689
697
  readonly webhooks: WebhookConsumer;
package/dist/sdk.esm.js CHANGED
@@ -2374,7 +2374,7 @@ class Subscription {
2374
2374
 
2375
2375
  function stripUndef$1(o) { const r = {}; for (const k in o) if (o[k] !== undefined) r[k] = o[k]; return r; }
2376
2376
 
2377
- class ThemedAlbum {
2377
+ class ThemedAlbums {
2378
2378
  constructor(ctx) { this._ctx = ctx; }
2379
2379
 
2380
2380
  async createThemedAlbum(projectTableName, name, description = undefined, confidenceValue = undefined) {
@@ -2670,7 +2670,7 @@ class MediaViz {
2670
2670
  this.projects = new Projects(_ctx);
2671
2671
  this.search = new Search(_ctx);
2672
2672
  this.subscription = new Subscription(_ctx);
2673
- this.themedAlbum = new ThemedAlbum(_ctx);
2673
+ this.themedAlbums = new ThemedAlbums(_ctx);
2674
2674
  this.users = new Users(_ctx);
2675
2675
  this.webhookReceiver = new Webhookreceiver(_ctx);
2676
2676
  this.webhooks = new WebhookConsumer(_ctx, this.subscription);
@@ -3084,4 +3084,4 @@ var _react_native = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
3084
3084
  // Auto-generated — do not edit
3085
3085
  const { createCryptoProvider, MemoryTokenStore, createSecureTokenStore, createKeychainTokenStore, startAuthSession, parseRedirectUrl, AuthSessionError, createSession } = _react_native;
3086
3086
 
3087
- export { Admin, AiModelCredits, ApiError, AuthSessionError, Company, CuratedAlbums, CustomAlbums, EmailTokens, Health, InMemoryWebhookStore, Keywords, MediaViz, MemoryTokenStore, NotFoundError, OAuthClient, OAuthError, OAuthErrorCode, OauthAuthorization, OauthClients, OauthLogin, OauthToken, Person, Photos, Photoupload, Projects, RateLimitError, Search, ServerError, Subscription, ThemedAlbum, Users, ValidationError, WEBHOOK_MODEL_COLUMNS, WEBHOOK_OUTCOME_MODELS, WebhookConsumer, Webhookreceiver, configureCrypto, createCryptoProvider, createKeychainTokenStore, createSecureTokenStore, createSession, handleResponse, parseRedirectUrl, selectResultColumns, signWebhookPayload, startAuthSession, verifyWebhookSignature };
3087
+ export { Admin, AiModelCredits, ApiError, AuthSessionError, Company, CuratedAlbums, CustomAlbums, EmailTokens, Health, InMemoryWebhookStore, Keywords, MediaViz, MemoryTokenStore, NotFoundError, OAuthClient, OAuthError, OAuthErrorCode, OauthAuthorization, OauthClients, OauthLogin, OauthToken, Person, Photos, Photoupload, Projects, RateLimitError, Search, ServerError, Subscription, ThemedAlbums, Users, ValidationError, WEBHOOK_MODEL_COLUMNS, WEBHOOK_OUTCOME_MODELS, WebhookConsumer, Webhookreceiver, configureCrypto, createCryptoProvider, createKeychainTokenStore, createSecureTokenStore, createSession, handleResponse, parseRedirectUrl, selectResultColumns, signWebhookPayload, startAuthSession, verifyWebhookSignature };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaviz/react-native-sdk",
3
- "version": "1.12.0-dev.128",
3
+ "version": "1.12.0-dev.130",
4
4
  "description": "MediaViz React Native SDK \u2014 auto-generated endpoint client for React Native and Expo.",
5
5
  "license": "MIT",
6
6
  "repository": {