speexjs 0.2.3 → 0.4.0

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,8 +1,9 @@
1
- import { M as Middleware } from '../../index-CMkhSDh7.js';
1
+ import { M as Middleware } from '../../index-C4xilc_E.js';
2
2
  import '../container/index.js';
3
3
  import '../../response-Ca8KWK5_.js';
4
4
  import 'node:http';
5
5
  import 'node:stream';
6
+ import '../../types-aW38f63o.js';
6
7
 
7
8
  interface CacheConfig {
8
9
  store?: "memory" | "file";
@@ -1,6 +1,7 @@
1
- import { R as RouteContext } from '../../index-CMkhSDh7.js';
1
+ import { R as RouteContext } from '../../index-C4xilc_E.js';
2
2
  import { Container } from '../container/index.js';
3
3
  import { S as SuperRequest, a as SuperResponse, b as Schema } from '../../response-Ca8KWK5_.js';
4
+ import '../../types-aW38f63o.js';
4
5
  import 'node:http';
5
6
  import 'node:stream';
6
7
 
@@ -224,7 +224,7 @@ declare class QueryBuilder {
224
224
  sql: string;
225
225
  bindings: any[];
226
226
  };
227
- dd(): never;
227
+ dd(): string;
228
228
  private compileJoins;
229
229
  private compileWheres;
230
230
  private compileWhereArray;
@@ -458,4 +458,36 @@ declare class Seeder {
458
458
  run(): Promise<void>;
459
459
  }
460
460
 
461
- export { type ColumnCompileOptions, ColumnDefinition, type ConnectionConfig, DatabaseConnection, type DatabaseDriver, type Dialect, type Driver, ForeignKeyDefinition, type MigrationDefinition, type MigrationStatusRow, Migrator, MysqlDialect, type PaginatedResult$1 as PaginatedResult, Pagination, type PaginationUrl, PostgresqlDialect, QueryBuilder, type QueryResult, SchemaBuilder, Seeder, type SeederClass, SqliteDialect, TableBlueprint, createDialect, createDriver };
461
+ declare class Model {
462
+ /** Primary key */
463
+ id?: number | string;
464
+ /** Dynamic properties from database */
465
+ [key: string]: unknown;
466
+ static table: string;
467
+ static connection: QueryRunner | null;
468
+ protected static queryRunner: QueryRunner | null;
469
+ private static relationDefs;
470
+ private static eagerLoads;
471
+ /** @internal cache for loaded relations on instances */
472
+ _relations: Record<string, unknown>;
473
+ static setConnection(conn: QueryRunner): void;
474
+ static query<T extends typeof Model>(this: T): QueryBuilder;
475
+ static hasOne(relatedModel: typeof Model, foreignKey?: string, localKey?: string): void;
476
+ static hasMany(relatedModel: typeof Model, foreignKey?: string, localKey?: string): void;
477
+ static belongsTo(relatedModel: typeof Model, foreignKey?: string, ownerKey?: string): void;
478
+ static belongsToMany(relatedModel: typeof Model, pivotTable?: string, foreignPivotKey?: string, relatedPivotKey?: string): void;
479
+ static morphMany(relatedModel: typeof Model, morphName: string): void;
480
+ static with(...relations: string[]): void;
481
+ static all<T extends typeof Model>(this: T): Promise<InstanceType<T>[]>;
482
+ static find<T extends typeof Model>(this: T, id: number | string): Promise<InstanceType<T> | null>;
483
+ static where<T extends typeof Model>(this: T, column: string, value: any): Promise<QueryBuilder>;
484
+ static create<T extends typeof Model>(this: T, data: Record<string, any>): Promise<InstanceType<T>>;
485
+ static updateOrCreate<T extends typeof Model>(this: T, attributes: Record<string, any>, values?: Record<string, any>): Promise<InstanceType<T>>;
486
+ save(): Promise<void>;
487
+ delete(): Promise<void>;
488
+ private static loadRelations;
489
+ private static hydrate;
490
+ private getData;
491
+ }
492
+
493
+ export { type ColumnCompileOptions, ColumnDefinition, type ConnectionConfig, DatabaseConnection, type DatabaseDriver, type Dialect, type Driver, ForeignKeyDefinition, type MigrationDefinition, type MigrationStatusRow, Migrator, Model, MysqlDialect, type PaginatedResult$1 as PaginatedResult, Pagination, type PaginationUrl, PostgresqlDialect, QueryBuilder, type QueryResult, SchemaBuilder, Seeder, type SeederClass, SqliteDialect, TableBlueprint, createDialect, createDriver };