@aurabase/aurabase-js 0.7.4 → 0.7.5

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.
@@ -1,7 +1,7 @@
1
1
  import { AiService } from '@aurabase/ai';
2
2
  import { AuthService, AuthAdminService } from '@aurabase/auth';
3
3
  import { AuraClientLike, BaseAuthStore, AuraObservabilityEvent, AuraClientOptions, ChannelConfig } from '@aurabase/core';
4
- import { GenericSchema, DatabaseService, AuraQueryBuilder, AuraClientOptionsT } from '@aurabase/db';
4
+ import { GenericSchema, DatabaseService, NoSqlService, AuraQueryBuilder, AuraClientOptionsT } from '@aurabase/db';
5
5
  import { FunctionsService } from '@aurabase/functions';
6
6
  import { NotificationsService } from '@aurabase/notifications';
7
7
  import { RealtimeService, AuraChannel } from '@aurabase/realtime';
@@ -56,9 +56,11 @@ declare class AuraClient<Database = any, Schema extends GenericSchema = Database
56
56
  readonly onEvent?: (event: AuraObservabilityEvent) => void;
57
57
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
58
58
  readonly debug?: boolean;
59
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
59
60
  readonly parseBigIntAsString?: boolean;
60
61
  private _auth;
61
62
  private _db;
63
+ private _nosql;
62
64
  private _storage;
63
65
  private _realtime;
64
66
  private _functions;
@@ -94,6 +96,10 @@ declare class AuraClient<Database = any, Schema extends GenericSchema = Database
94
96
  * Service de base de données : requêtes sur les tables et vues, appels de fonctions SQL (`rpc`), SQL brut.
95
97
  */
96
98
  get db(): DatabaseService<Database, Schema>;
99
+ /**
100
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
101
+ */
102
+ get nosql(): NoSqlService;
97
103
  /**
98
104
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
99
105
  */
@@ -1,7 +1,7 @@
1
1
  import { AiService } from '@aurabase/ai';
2
2
  import { AuthService, AuthAdminService } from '@aurabase/auth';
3
3
  import { AuraClientLike, BaseAuthStore, AuraObservabilityEvent, AuraClientOptions, ChannelConfig } from '@aurabase/core';
4
- import { GenericSchema, DatabaseService, AuraQueryBuilder, AuraClientOptionsT } from '@aurabase/db';
4
+ import { GenericSchema, DatabaseService, NoSqlService, AuraQueryBuilder, AuraClientOptionsT } from '@aurabase/db';
5
5
  import { FunctionsService } from '@aurabase/functions';
6
6
  import { NotificationsService } from '@aurabase/notifications';
7
7
  import { RealtimeService, AuraChannel } from '@aurabase/realtime';
@@ -56,9 +56,11 @@ declare class AuraClient<Database = any, Schema extends GenericSchema = Database
56
56
  readonly onEvent?: (event: AuraObservabilityEvent) => void;
57
57
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
58
58
  readonly debug?: boolean;
59
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
59
60
  readonly parseBigIntAsString?: boolean;
60
61
  private _auth;
61
62
  private _db;
63
+ private _nosql;
62
64
  private _storage;
63
65
  private _realtime;
64
66
  private _functions;
@@ -94,6 +96,10 @@ declare class AuraClient<Database = any, Schema extends GenericSchema = Database
94
96
  * Service de base de données : requêtes sur les tables et vues, appels de fonctions SQL (`rpc`), SQL brut.
95
97
  */
96
98
  get db(): DatabaseService<Database, Schema>;
99
+ /**
100
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
101
+ */
102
+ get nosql(): NoSqlService;
97
103
  /**
98
104
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
99
105
  */
package/dist/index.cjs CHANGED
@@ -43,10 +43,12 @@ var AuraClient = class {
43
43
  onEvent;
44
44
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
45
45
  debug;
46
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
46
47
  parseBigIntAsString;
47
48
  // Lazy-initialised service instances
48
49
  _auth = null;
49
50
  _db = null;
51
+ _nosql = null;
50
52
  _storage = null;
51
53
  _realtime = null;
52
54
  _functions = null;
@@ -186,6 +188,13 @@ var AuraClient = class {
186
188
  if (!this._db) this._db = new db.DatabaseService(this);
187
189
  return this._db;
188
190
  }
191
+ /**
192
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
193
+ */
194
+ get nosql() {
195
+ if (!this._nosql) this._nosql = new db.NoSqlService(this);
196
+ return this._nosql;
197
+ }
189
198
  /**
190
199
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
191
200
  */
@@ -251,14 +260,14 @@ var AuraClient = class {
251
260
  * Equivalent to `aura.realtime.removeChannel(channel)`.
252
261
  */
253
262
  removeChannel(channel) {
254
- return this.realtime.removeChannel(channel);
263
+ this.realtime.removeChannel(channel);
255
264
  }
256
265
  /**
257
266
  * Shortcut: remove all realtime channels and unsubscribe.
258
267
  * Equivalent to `aura.realtime.removeAllChannels()`.
259
268
  */
260
269
  removeAllChannels() {
261
- return this.realtime.removeAllChannels();
270
+ this.realtime.removeAllChannels();
262
271
  }
263
272
  /**
264
273
  * Shortcut: list all active realtime channels.
@@ -279,7 +288,14 @@ function createAdminClient(baseUrl, serviceRoleKey, options) {
279
288
  "[aurabase] createAdminClient() must never be called in a browser: the service_role key would be exposed in the bundle. Use it on the server only."
280
289
  );
281
290
  }
282
- return new AuraClient(baseUrl, serviceRoleKey, options);
291
+ return new AuraClient(baseUrl, serviceRoleKey, {
292
+ ...options,
293
+ auth: {
294
+ autoRefresh: false,
295
+ persistSession: false,
296
+ ...options?.auth
297
+ }
298
+ });
283
299
  }
284
300
 
285
301
  Object.defineProperty(exports, "AiService", {
@@ -302,6 +318,10 @@ Object.defineProperty(exports, "AuraError", {
302
318
  enumerable: true,
303
319
  get: function () { return core.AuraError; }
304
320
  });
321
+ Object.defineProperty(exports, "AurabaseError", {
322
+ enumerable: true,
323
+ get: function () { return core.AurabaseError; }
324
+ });
305
325
  Object.defineProperty(exports, "BaseAuthStore", {
306
326
  enumerable: true,
307
327
  get: function () { return core.BaseAuthStore; }
@@ -318,6 +338,18 @@ Object.defineProperty(exports, "DatabaseService", {
318
338
  enumerable: true,
319
339
  get: function () { return db.DatabaseService; }
320
340
  });
341
+ Object.defineProperty(exports, "NoSqlCollectionClient", {
342
+ enumerable: true,
343
+ get: function () { return db.NoSqlCollectionClient; }
344
+ });
345
+ Object.defineProperty(exports, "NoSqlQuery", {
346
+ enumerable: true,
347
+ get: function () { return db.NoSqlQuery; }
348
+ });
349
+ Object.defineProperty(exports, "NoSqlService", {
350
+ enumerable: true,
351
+ get: function () { return db.NoSqlService; }
352
+ });
321
353
  Object.defineProperty(exports, "QueryBuilder", {
322
354
  enumerable: true,
323
355
  get: function () { return db.QueryBuilder; }
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { AiService } from '@aurabase/ai';
2
2
  export { AuthAdminService, AuthService, isMfaChallenge } from '@aurabase/auth';
3
3
  import { AuraClientOptions } from '@aurabase/core';
4
- export { AdminCreateUserRequest, AdminUpdateUserRequest, AdminUser, AuditLogEntry, AuraClientOptions, AuraError, AuraErrorCode, AuraObservabilityEvent, AuraResponse, AuthChangePayload, AuthEvent, AuthSettings, AuthSettingsUpdate, BaseAuthStore, BatchSendResponse, BroadcastFilter, BroadcastPayload, BroadcastSendStatus, ChannelConfig, ChatMessage, ChatResponse, CountMode, CreatePgFunctionRequest, CreatePgTriggerRequest, CronJob, EmailTemplateUpdate, EmbedRequest, EmbedResponse, FileEntry, FilterOp, FunctionDef, FunctionPermissions, IdentityInfo, Job, LocalAuthStore, LoginResponse, MagicLinkRequest, Meta, MfaChallenge, MfaEnrollResponse, MfaVerifyRequest, Notification, NotificationAttempt, NotificationDeadLetter, NotificationEvent, NotificationProviderLog, NotificationQueueStats, NotificationRule, NotificationSettings, NotificationStats, NotificationTemplate, NotificationTemplatePreview, OAuthProviderSetting, OAuthSignInOptions, PasswordResetRequest, PgExecutableRole, PgFunctionInfo, PgTriggerInfo, PostgresChangesFilter, PresenceFilter, PresenceInfo, PresenceState, QueryFilter, QueryOptions, RagIngestRequest, RagIngestResponse, RagRequest, RagResponse, RealtimeEvent, RealtimeListenType, RealtimeSubscribeStatus, SchemaColumn, SchemaEnum, SchemaFunction, SchemaFunctionArg, SchemaTable, SemanticSearchResult, SendNotificationRequest, SessionInfo, SignInRequest, SignUpRequest, StorageBucket, TokenPair, UpdateUserRequest, UploadResult, User, isAuraError } from '@aurabase/core';
5
- export { DatabaseService, QueryBuilder } from '@aurabase/db';
4
+ export { AdminCreateUserRequest, AdminUpdateUserRequest, AdminUser, AuditLogEntry, AuraClientOptions, AuraError, AuraErrorCode, AuraObservabilityEvent, AuraResponse, AurabaseError, AuthChangePayload, AuthEvent, AuthSettings, AuthSettingsUpdate, BaseAuthStore, BatchSendResponse, BroadcastFilter, BroadcastPayload, BroadcastSendStatus, ChannelConfig, ChatMessage, ChatResponse, CountMode, CreatePgFunctionRequest, CreatePgTriggerRequest, CronJob, EmailTemplateUpdate, EmbedRequest, EmbedResponse, FileEntry, FilterOp, FunctionDef, FunctionPermissions, IdentityInfo, Job, LocalAuthStore, LoginResponse, MagicLinkRequest, Meta, MfaChallenge, MfaEnrollResponse, MfaVerifyRequest, Notification, NotificationAttempt, NotificationDeadLetter, NotificationEvent, NotificationProviderLog, NotificationQueueStats, NotificationRule, NotificationSettings, NotificationStats, NotificationTemplate, NotificationTemplatePreview, OAuthProviderSetting, OAuthSignInOptions, PasswordResetRequest, PgExecutableRole, PgFunctionInfo, PgTriggerInfo, PostgresChangesFilter, PresenceFilter, PresenceInfo, PresenceState, QueryFilter, QueryOptions, RagIngestRequest, RagIngestResponse, RagRequest, RagResponse, RealtimeEvent, RealtimeListenType, RealtimeSubscribeStatus, SchemaColumn, SchemaEnum, SchemaFunction, SchemaFunctionArg, SchemaTable, SemanticSearchResult, SendNotificationRequest, SessionInfo, SignInRequest, SignUpRequest, StorageBucket, TokenPair, UpdateUserRequest, UploadResult, User, isAuraError } from '@aurabase/core';
5
+ export { DatabaseService, NoSqlCollectionClient, NoSqlFilter, NoSqlOperators, NoSqlQuery, NoSqlScalar, NoSqlService, QueryBuilder } from '@aurabase/db';
6
6
  export { FunctionsHttpError, FunctionsRelayError, FunctionsResponseType, FunctionsService, isRelayStatus } from '@aurabase/functions';
7
7
  export { NotificationsAdminService, NotificationsService } from '@aurabase/notifications';
8
8
  export { AuraChannel, RealtimeService } from '@aurabase/realtime';
9
9
  export { StorageBucketClient, StorageService } from '@aurabase/storage';
10
- import { A as AuraClient } from './AuraClient-CO_pbnEM.cjs';
10
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.cjs';
11
11
 
12
12
  /**
13
13
  * Create a new Aurabase client instance.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { AiService } from '@aurabase/ai';
2
2
  export { AuthAdminService, AuthService, isMfaChallenge } from '@aurabase/auth';
3
3
  import { AuraClientOptions } from '@aurabase/core';
4
- export { AdminCreateUserRequest, AdminUpdateUserRequest, AdminUser, AuditLogEntry, AuraClientOptions, AuraError, AuraErrorCode, AuraObservabilityEvent, AuraResponse, AuthChangePayload, AuthEvent, AuthSettings, AuthSettingsUpdate, BaseAuthStore, BatchSendResponse, BroadcastFilter, BroadcastPayload, BroadcastSendStatus, ChannelConfig, ChatMessage, ChatResponse, CountMode, CreatePgFunctionRequest, CreatePgTriggerRequest, CronJob, EmailTemplateUpdate, EmbedRequest, EmbedResponse, FileEntry, FilterOp, FunctionDef, FunctionPermissions, IdentityInfo, Job, LocalAuthStore, LoginResponse, MagicLinkRequest, Meta, MfaChallenge, MfaEnrollResponse, MfaVerifyRequest, Notification, NotificationAttempt, NotificationDeadLetter, NotificationEvent, NotificationProviderLog, NotificationQueueStats, NotificationRule, NotificationSettings, NotificationStats, NotificationTemplate, NotificationTemplatePreview, OAuthProviderSetting, OAuthSignInOptions, PasswordResetRequest, PgExecutableRole, PgFunctionInfo, PgTriggerInfo, PostgresChangesFilter, PresenceFilter, PresenceInfo, PresenceState, QueryFilter, QueryOptions, RagIngestRequest, RagIngestResponse, RagRequest, RagResponse, RealtimeEvent, RealtimeListenType, RealtimeSubscribeStatus, SchemaColumn, SchemaEnum, SchemaFunction, SchemaFunctionArg, SchemaTable, SemanticSearchResult, SendNotificationRequest, SessionInfo, SignInRequest, SignUpRequest, StorageBucket, TokenPair, UpdateUserRequest, UploadResult, User, isAuraError } from '@aurabase/core';
5
- export { DatabaseService, QueryBuilder } from '@aurabase/db';
4
+ export { AdminCreateUserRequest, AdminUpdateUserRequest, AdminUser, AuditLogEntry, AuraClientOptions, AuraError, AuraErrorCode, AuraObservabilityEvent, AuraResponse, AurabaseError, AuthChangePayload, AuthEvent, AuthSettings, AuthSettingsUpdate, BaseAuthStore, BatchSendResponse, BroadcastFilter, BroadcastPayload, BroadcastSendStatus, ChannelConfig, ChatMessage, ChatResponse, CountMode, CreatePgFunctionRequest, CreatePgTriggerRequest, CronJob, EmailTemplateUpdate, EmbedRequest, EmbedResponse, FileEntry, FilterOp, FunctionDef, FunctionPermissions, IdentityInfo, Job, LocalAuthStore, LoginResponse, MagicLinkRequest, Meta, MfaChallenge, MfaEnrollResponse, MfaVerifyRequest, Notification, NotificationAttempt, NotificationDeadLetter, NotificationEvent, NotificationProviderLog, NotificationQueueStats, NotificationRule, NotificationSettings, NotificationStats, NotificationTemplate, NotificationTemplatePreview, OAuthProviderSetting, OAuthSignInOptions, PasswordResetRequest, PgExecutableRole, PgFunctionInfo, PgTriggerInfo, PostgresChangesFilter, PresenceFilter, PresenceInfo, PresenceState, QueryFilter, QueryOptions, RagIngestRequest, RagIngestResponse, RagRequest, RagResponse, RealtimeEvent, RealtimeListenType, RealtimeSubscribeStatus, SchemaColumn, SchemaEnum, SchemaFunction, SchemaFunctionArg, SchemaTable, SemanticSearchResult, SendNotificationRequest, SessionInfo, SignInRequest, SignUpRequest, StorageBucket, TokenPair, UpdateUserRequest, UploadResult, User, isAuraError } from '@aurabase/core';
5
+ export { DatabaseService, NoSqlCollectionClient, NoSqlFilter, NoSqlOperators, NoSqlQuery, NoSqlScalar, NoSqlService, QueryBuilder } from '@aurabase/db';
6
6
  export { FunctionsHttpError, FunctionsRelayError, FunctionsResponseType, FunctionsService, isRelayStatus } from '@aurabase/functions';
7
7
  export { NotificationsAdminService, NotificationsService } from '@aurabase/notifications';
8
8
  export { AuraChannel, RealtimeService } from '@aurabase/realtime';
9
9
  export { StorageBucketClient, StorageService } from '@aurabase/storage';
10
- import { A as AuraClient } from './AuraClient-CO_pbnEM.js';
10
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.js';
11
11
 
12
12
  /**
13
13
  * Create a new Aurabase client instance.
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ export { AiService } from '@aurabase/ai';
3
3
  import { AuthService, AuthAdminService } from '@aurabase/auth';
4
4
  export { AuthAdminService, AuthService, isMfaChallenge } from '@aurabase/auth';
5
5
  import { DEFAULT_MAX_RETRIES, BaseAuthStore, LocalAuthStore, clientScope } from '@aurabase/core';
6
- export { AuraError, BaseAuthStore, LocalAuthStore, isAuraError } from '@aurabase/core';
7
- import { DatabaseService } from '@aurabase/db';
8
- export { DatabaseService, QueryBuilder } from '@aurabase/db';
6
+ export { AuraError, AurabaseError, BaseAuthStore, LocalAuthStore, isAuraError } from '@aurabase/core';
7
+ import { DatabaseService, NoSqlService } from '@aurabase/db';
8
+ export { DatabaseService, NoSqlCollectionClient, NoSqlQuery, NoSqlService, QueryBuilder } from '@aurabase/db';
9
9
  import { FunctionsService } from '@aurabase/functions';
10
10
  export { FunctionsHttpError, FunctionsRelayError, FunctionsService, isRelayStatus } from '@aurabase/functions';
11
11
  import { NotificationsService } from '@aurabase/notifications';
@@ -49,10 +49,12 @@ var AuraClient = class {
49
49
  onEvent;
50
50
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
51
51
  debug;
52
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
52
53
  parseBigIntAsString;
53
54
  // Lazy-initialised service instances
54
55
  _auth = null;
55
56
  _db = null;
57
+ _nosql = null;
56
58
  _storage = null;
57
59
  _realtime = null;
58
60
  _functions = null;
@@ -192,6 +194,13 @@ var AuraClient = class {
192
194
  if (!this._db) this._db = new DatabaseService(this);
193
195
  return this._db;
194
196
  }
197
+ /**
198
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
199
+ */
200
+ get nosql() {
201
+ if (!this._nosql) this._nosql = new NoSqlService(this);
202
+ return this._nosql;
203
+ }
195
204
  /**
196
205
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
197
206
  */
@@ -257,14 +266,14 @@ var AuraClient = class {
257
266
  * Equivalent to `aura.realtime.removeChannel(channel)`.
258
267
  */
259
268
  removeChannel(channel) {
260
- return this.realtime.removeChannel(channel);
269
+ this.realtime.removeChannel(channel);
261
270
  }
262
271
  /**
263
272
  * Shortcut: remove all realtime channels and unsubscribe.
264
273
  * Equivalent to `aura.realtime.removeAllChannels()`.
265
274
  */
266
275
  removeAllChannels() {
267
- return this.realtime.removeAllChannels();
276
+ this.realtime.removeAllChannels();
268
277
  }
269
278
  /**
270
279
  * Shortcut: list all active realtime channels.
@@ -285,7 +294,14 @@ function createAdminClient(baseUrl, serviceRoleKey, options) {
285
294
  "[aurabase] createAdminClient() must never be called in a browser: the service_role key would be exposed in the bundle. Use it on the server only."
286
295
  );
287
296
  }
288
- return new AuraClient(baseUrl, serviceRoleKey, options);
297
+ return new AuraClient(baseUrl, serviceRoleKey, {
298
+ ...options,
299
+ auth: {
300
+ autoRefresh: false,
301
+ persistSession: false,
302
+ ...options?.auth
303
+ }
304
+ });
289
305
  }
290
306
 
291
307
  export { AuraClient, createAdminClient, createClient };
package/dist/nextjs.cjs CHANGED
@@ -43,10 +43,12 @@ var AuraClient = class {
43
43
  onEvent;
44
44
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
45
45
  debug;
46
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
46
47
  parseBigIntAsString;
47
48
  // Lazy-initialised service instances
48
49
  _auth = null;
49
50
  _db = null;
51
+ _nosql = null;
50
52
  _storage = null;
51
53
  _realtime = null;
52
54
  _functions = null;
@@ -186,6 +188,13 @@ var AuraClient = class {
186
188
  if (!this._db) this._db = new db.DatabaseService(this);
187
189
  return this._db;
188
190
  }
191
+ /**
192
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
193
+ */
194
+ get nosql() {
195
+ if (!this._nosql) this._nosql = new db.NoSqlService(this);
196
+ return this._nosql;
197
+ }
189
198
  /**
190
199
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
191
200
  */
@@ -251,14 +260,14 @@ var AuraClient = class {
251
260
  * Equivalent to `aura.realtime.removeChannel(channel)`.
252
261
  */
253
262
  removeChannel(channel) {
254
- return this.realtime.removeChannel(channel);
263
+ this.realtime.removeChannel(channel);
255
264
  }
256
265
  /**
257
266
  * Shortcut: remove all realtime channels and unsubscribe.
258
267
  * Equivalent to `aura.realtime.removeAllChannels()`.
259
268
  */
260
269
  removeAllChannels() {
261
- return this.realtime.removeAllChannels();
270
+ this.realtime.removeAllChannels();
262
271
  }
263
272
  /**
264
273
  * Shortcut: list all active realtime channels.
package/dist/nextjs.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AuraClient } from './AuraClient-CO_pbnEM.cjs';
1
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.cjs';
2
2
  import { User, Session } from '@aurabase/core';
3
3
  import '@aurabase/ai';
4
4
  import '@aurabase/auth';
package/dist/nextjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AuraClient } from './AuraClient-CO_pbnEM.js';
1
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.js';
2
2
  import { User, Session } from '@aurabase/core';
3
3
  import '@aurabase/ai';
4
4
  import '@aurabase/auth';
package/dist/nextjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { clientScope, LocalAuthStore, DEFAULT_MAX_RETRIES, BaseAuthStore } from '@aurabase/core';
2
2
  import { AiService } from '@aurabase/ai';
3
3
  import { AuthService, AuthAdminService } from '@aurabase/auth';
4
- import { DatabaseService } from '@aurabase/db';
4
+ import { DatabaseService, NoSqlService } from '@aurabase/db';
5
5
  import { FunctionsService } from '@aurabase/functions';
6
6
  import { NotificationsService } from '@aurabase/notifications';
7
7
  import { RealtimeService } from '@aurabase/realtime';
@@ -41,10 +41,12 @@ var AuraClient = class {
41
41
  onEvent;
42
42
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
43
43
  debug;
44
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
44
45
  parseBigIntAsString;
45
46
  // Lazy-initialised service instances
46
47
  _auth = null;
47
48
  _db = null;
49
+ _nosql = null;
48
50
  _storage = null;
49
51
  _realtime = null;
50
52
  _functions = null;
@@ -184,6 +186,13 @@ var AuraClient = class {
184
186
  if (!this._db) this._db = new DatabaseService(this);
185
187
  return this._db;
186
188
  }
189
+ /**
190
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
191
+ */
192
+ get nosql() {
193
+ if (!this._nosql) this._nosql = new NoSqlService(this);
194
+ return this._nosql;
195
+ }
187
196
  /**
188
197
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
189
198
  */
@@ -249,14 +258,14 @@ var AuraClient = class {
249
258
  * Equivalent to `aura.realtime.removeChannel(channel)`.
250
259
  */
251
260
  removeChannel(channel) {
252
- return this.realtime.removeChannel(channel);
261
+ this.realtime.removeChannel(channel);
253
262
  }
254
263
  /**
255
264
  * Shortcut: remove all realtime channels and unsubscribe.
256
265
  * Equivalent to `aura.realtime.removeAllChannels()`.
257
266
  */
258
267
  removeAllChannels() {
259
- return this.realtime.removeAllChannels();
268
+ this.realtime.removeAllChannels();
260
269
  }
261
270
  /**
262
271
  * Shortcut: list all active realtime channels.
package/dist/react.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { User, Session } from '@aurabase/core';
2
- import { A as AuraClient } from './AuraClient-CO_pbnEM.cjs';
2
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.cjs';
3
3
  import '@aurabase/ai';
4
4
  import '@aurabase/auth';
5
5
  import '@aurabase/db';
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { User, Session } from '@aurabase/core';
2
- import { A as AuraClient } from './AuraClient-CO_pbnEM.js';
2
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.js';
3
3
  import '@aurabase/ai';
4
4
  import '@aurabase/auth';
5
5
  import '@aurabase/db';
package/dist/ssr.cjs CHANGED
@@ -43,10 +43,12 @@ var AuraClient = class {
43
43
  onEvent;
44
44
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
45
45
  debug;
46
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
46
47
  parseBigIntAsString;
47
48
  // Lazy-initialised service instances
48
49
  _auth = null;
49
50
  _db = null;
51
+ _nosql = null;
50
52
  _storage = null;
51
53
  _realtime = null;
52
54
  _functions = null;
@@ -186,6 +188,13 @@ var AuraClient = class {
186
188
  if (!this._db) this._db = new db.DatabaseService(this);
187
189
  return this._db;
188
190
  }
191
+ /**
192
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
193
+ */
194
+ get nosql() {
195
+ if (!this._nosql) this._nosql = new db.NoSqlService(this);
196
+ return this._nosql;
197
+ }
189
198
  /**
190
199
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
191
200
  */
@@ -251,14 +260,14 @@ var AuraClient = class {
251
260
  * Equivalent to `aura.realtime.removeChannel(channel)`.
252
261
  */
253
262
  removeChannel(channel) {
254
- return this.realtime.removeChannel(channel);
263
+ this.realtime.removeChannel(channel);
255
264
  }
256
265
  /**
257
266
  * Shortcut: remove all realtime channels and unsubscribe.
258
267
  * Equivalent to `aura.realtime.removeAllChannels()`.
259
268
  */
260
269
  removeAllChannels() {
261
- return this.realtime.removeAllChannels();
270
+ this.realtime.removeAllChannels();
262
271
  }
263
272
  /**
264
273
  * Shortcut: list all active realtime channels.
package/dist/ssr.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SerializeCookieOptions, AuraClientOptions } from '@aurabase/core';
2
2
  export { SerializeCookieOptions, parseCookieHeader, serializeCookieHeader } from '@aurabase/core';
3
- import { A as AuraClient } from './AuraClient-CO_pbnEM.cjs';
3
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.cjs';
4
4
  import '@aurabase/ai';
5
5
  import '@aurabase/auth';
6
6
  import '@aurabase/db';
package/dist/ssr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SerializeCookieOptions, AuraClientOptions } from '@aurabase/core';
2
2
  export { SerializeCookieOptions, parseCookieHeader, serializeCookieHeader } from '@aurabase/core';
3
- import { A as AuraClient } from './AuraClient-CO_pbnEM.js';
3
+ import { A as AuraClient } from './AuraClient-BvpdNWMY.js';
4
4
  import '@aurabase/ai';
5
5
  import '@aurabase/auth';
6
6
  import '@aurabase/db';
package/dist/ssr.js CHANGED
@@ -2,7 +2,7 @@ import { clientScope, LocalAuthStore, DEFAULT_MAX_RETRIES, BaseAuthStore } from
2
2
  export { parseCookieHeader, serializeCookieHeader } from '@aurabase/core';
3
3
  import { AiService } from '@aurabase/ai';
4
4
  import { AuthService, AuthAdminService } from '@aurabase/auth';
5
- import { DatabaseService } from '@aurabase/db';
5
+ import { DatabaseService, NoSqlService } from '@aurabase/db';
6
6
  import { FunctionsService } from '@aurabase/functions';
7
7
  import { NotificationsService } from '@aurabase/notifications';
8
8
  import { RealtimeService } from '@aurabase/realtime';
@@ -42,10 +42,12 @@ var AuraClient = class {
42
42
  onEvent;
43
43
  /** Journalise chaque `AuraObservabilityEvent` via `console.debug` — voir `AuraClientOptions.debug`. */
44
44
  debug;
45
+ /** Preserves PostgreSQL 64-bit `bigint` values as strings instead of JSON numbers when enabled. */
45
46
  parseBigIntAsString;
46
47
  // Lazy-initialised service instances
47
48
  _auth = null;
48
49
  _db = null;
50
+ _nosql = null;
49
51
  _storage = null;
50
52
  _realtime = null;
51
53
  _functions = null;
@@ -185,6 +187,13 @@ var AuraClient = class {
185
187
  if (!this._db) this._db = new DatabaseService(this);
186
188
  return this._db;
187
189
  }
190
+ /**
191
+ * Service NoSQL (MongoDB) : collections, requêtes documentaires et pipelines d'agrégation (`aggregate`).
192
+ */
193
+ get nosql() {
194
+ if (!this._nosql) this._nosql = new NoSqlService(this);
195
+ return this._nosql;
196
+ }
188
197
  /**
189
198
  * Service de stockage : buckets, envoi, téléchargement, URL signées et publiques, transformations d'image.
190
199
  */
@@ -250,14 +259,14 @@ var AuraClient = class {
250
259
  * Equivalent to `aura.realtime.removeChannel(channel)`.
251
260
  */
252
261
  removeChannel(channel) {
253
- return this.realtime.removeChannel(channel);
262
+ this.realtime.removeChannel(channel);
254
263
  }
255
264
  /**
256
265
  * Shortcut: remove all realtime channels and unsubscribe.
257
266
  * Equivalent to `aura.realtime.removeAllChannels()`.
258
267
  */
259
268
  removeAllChannels() {
260
- return this.realtime.removeAllChannels();
269
+ this.realtime.removeAllChannels();
261
270
  }
262
271
  /**
263
272
  * Shortcut: list all active realtime channels.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurabase/aurabase-js",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Official JavaScript/TypeScript client for Aurabase BaaS",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -77,20 +77,20 @@
77
77
  "client"
78
78
  ],
79
79
  "dependencies": {
80
- "@aurabase/core": "0.7.4",
81
- "@aurabase/auth": "0.7.4",
82
- "@aurabase/functions": "0.7.4",
83
- "@aurabase/storage": "0.7.4",
84
- "@aurabase/db": "0.7.4",
85
- "@aurabase/ai": "0.7.4",
86
- "@aurabase/realtime": "0.7.4",
87
- "@aurabase/notifications": "0.7.4"
80
+ "@aurabase/core": "0.7.5",
81
+ "@aurabase/auth": "0.7.5",
82
+ "@aurabase/db": "0.7.5",
83
+ "@aurabase/realtime": "0.7.5",
84
+ "@aurabase/functions": "0.7.5",
85
+ "@aurabase/ai": "0.7.5",
86
+ "@aurabase/notifications": "0.7.5",
87
+ "@aurabase/storage": "0.7.5"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@types/node": "20.14.15",
91
91
  "tsup": "^8.0.0",
92
92
  "typescript": "^5.5.0",
93
- "vitest": "^4.1.6"
93
+ "vitest": "^4.1.12"
94
94
  },
95
95
  "scripts": {
96
96
  "build": "tsup",