alepha 0.9.5 → 0.10.1

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/postgres.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _alepha_core1 from "alepha";
2
- import { Alepha, AlephaError, Descriptor, KIND, Service, Static, TNull, TObject, TOptional, TSchema as TSchema$1, TUnion } from "alepha";
3
- import * as drizzle_orm6 from "drizzle-orm";
2
+ import { Alepha, AlephaError, Descriptor, KIND, Service, Static, TArray, TBigInt, TBoolean, TInteger, TKeysToIndexer, TNull, TNumber, TNumberOptions, TObject, TObjectOptions, TOptional, TOptionalAdd, TPick, TRecord, TSchema as TSchema$1, TString, TStringOptions, TUnion } from "alepha";
3
+ import * as drizzle_orm7 from "drizzle-orm";
4
4
  import { BuildColumns, BuildExtraConfigColumns, SQL, SQLWrapper, TableConfig, sql } from "drizzle-orm";
5
5
  import * as pg$1 from "drizzle-orm/pg-core";
6
6
  import { AnyPgColumn, LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, PgInsertValue, PgSequenceOptions, PgTableExtraConfigValue, PgTableWithColumns, PgTransaction, PgTransactionConfig, SelectedFields, TableConfig as TableConfig$1, UpdateDeleteAction } from "drizzle-orm/pg-core";
@@ -10,8 +10,7 @@ import * as _alepha_lock0 from "alepha/lock";
10
10
  import { PostgresJsDatabase } from "drizzle-orm/postgres-js";
11
11
  import postgres from "postgres";
12
12
  import * as _alepha_retry0 from "alepha/retry";
13
- import * as _sinclair_typebox0 from "@sinclair/typebox";
14
- import { Evaluate, IntegerOptions, Kind, NumberOptions, ObjectOptions, OptionalKind, Static as Static$1, StringOptions, TAdditionalProperties, TArray, TBoolean, TInteger, TIntersect, TNumber, TObject as TObject$1, TOptional as TOptional$1, TOptionalWithFlag, TPick, TProperties, TReadonly, TRecord, TSchema as TSchema$2, TString } from "@sinclair/typebox";
13
+ import * as typebox1 from "typebox";
15
14
  import { PgTransactionConfig as PgTransactionConfig$1 } from "drizzle-orm/pg-core/session";
16
15
  import * as DrizzleKit from "drizzle-kit/api";
17
16
  import { MigrationConfig } from "drizzle-orm/migrator";
@@ -67,41 +66,19 @@ interface PgRefOptions {
67
66
  //#endregion
68
67
  //#region src/schemas/insertSchema.d.ts
69
68
  /**
70
- * Fork of the original typebox schema "TObject".
71
- */
72
- interface TObjectInsert<T extends TObject$1> extends TSchema$2, ObjectOptions {
73
- [Kind]: "Object";
74
- static: ObjectStatic<{ [K in keyof T["properties"] as T["properties"][K] extends {
75
- [PG_DEFAULT]: any;
76
- } ? never : K]: T["properties"][K] }, this["params"]>;
77
- additionalProperties?: TAdditionalProperties;
78
- type: "object";
79
- required?: string[];
80
- properties: { [K in keyof T["properties"] as T["properties"][K] extends {
81
- [PG_DEFAULT]: any;
82
- } ? never : K]: T["properties"][K] };
83
- }
84
- type ReadonlyOptionalPropertyKeys<T extends TProperties> = { [K in keyof T]: T[K] extends TReadonly<TSchema$2> ? T[K] extends TOptional$1<T[K]> ? K : never : never }[keyof T];
85
- type ReadonlyPropertyKeys<T extends TProperties> = { [K in keyof T]: T[K] extends TReadonly<TSchema$2> ? T[K] extends TOptional$1<T[K]> ? never : K : never }[keyof T];
86
- type OptionalPropertyKeys<T extends TProperties> = { [K in keyof T]: T[K] extends TOptional$1<TSchema$2> ? T[K] extends TReadonly<T[K]> ? never : K : never }[keyof T];
87
- type RequiredPropertyKeys<T extends TProperties> = keyof Omit<T, ReadonlyOptionalPropertyKeys<T> | ReadonlyPropertyKeys<T> | OptionalPropertyKeys<T>>;
88
- type ObjectStaticProperties<T extends TProperties, R extends Record<keyof any, unknown>> = Evaluate<Readonly<Partial<Pick<R, ReadonlyOptionalPropertyKeys<T>>>> & Readonly<Pick<R, ReadonlyPropertyKeys<T>>> & Partial<Pick<R, OptionalPropertyKeys<T>>> & Required<Pick<R, RequiredPropertyKeys<T>>>>;
89
- type ObjectStatic<T extends TProperties, P extends unknown[]> = ObjectStaticProperties<T, { [K in keyof T]: Static$1<T[K], P> }>;
90
- declare const insertSchema: <T extends TObject$1>(obj: T) => TObjectInsert<T>;
91
- /**
92
- * Enhance Typebox with a support of "Default" (PG_DEFAULT).
69
+ * Transforms a TObject schema for insert operations.
70
+ * All default properties at the root level are made optional.
71
+ *
72
+ * @example
73
+ * Before: { name: string; age: number(default=0); }
74
+ * After: { name: string; age?: number; }
93
75
  */
94
- type StaticInsert<T extends TObject$1> = StaticEntry<T> & StaticDefaultEntry<T>;
95
- type StaticDefaultEntry<T extends TObject$1> = { [K in keyof T["properties"] as T["properties"][K] extends {
96
- [PG_DEFAULT]: any;
97
- } | {
98
- [OptionalKind]: "Optional";
99
- } ? K : never]?: Static$1<T["properties"][K]> };
100
- type StaticEntry<T extends TObject$1> = { [K in keyof T["properties"] as T["properties"][K] extends {
76
+ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"]]: T["properties"][K] extends {
101
77
  [PG_DEFAULT]: any;
102
78
  } | {
103
- [OptionalKind]: "Optional";
104
- } ? never : K]: Static$1<T["properties"][K]> };
79
+ "~optional": true;
80
+ } ? TOptional<T["properties"][K]> : T["properties"][K] }>;
81
+ declare const insertSchema: <T extends TObject>(obj: T) => TObjectInsert<T>;
105
82
  //#endregion
106
83
  //#region src/schemas/updateSchema.d.ts
107
84
  /**
@@ -127,34 +104,36 @@ declare const schemaToPgColumns: <T extends TObject>(schema: T) => FromSchema<T>
127
104
  * @param value The value of the field.
128
105
  * @returns The PG column.
129
106
  */
130
- declare const mapFieldToColumn: (name: string, value: TSchema$1) => pg$1.PgSerialBuilderInitial<string> | pg$1.PgIntegerBuilderInitial<string> | pg$1.PgBigInt53BuilderInitial<string> | pg$1.PgNumericBuilderInitial<string> | pg$1.PgTimestampBuilderInitial<string> | pg$1.PgUUIDBuilderInitial<string> | pg$1.PgCustomColumnBuilder<{
107
+ declare const mapFieldToColumn: (name: string, value: TSchema$1) => pg$1.PgSerialBuilderInitial<string> | pg$1.PgIntegerBuilderInitial<string> | drizzle_orm7.IsIdentity<pg$1.PgBigInt64BuilderInitial<"">, "byDefault"> | drizzle_orm7.IsIdentity<pg$1.PgBigInt64BuilderInitial<"">, "always"> | pg$1.PgBigInt53BuilderInitial<string> | pg$1.PgNumericBuilderInitial<string> | pg$1.PgTimestampBuilderInitial<string> | pg$1.PgUUIDBuilderInitial<string> | pg$1.PgCustomColumnBuilder<{
131
108
  name: string;
132
109
  dataType: "custom";
133
110
  columnType: "PgCustomColumn";
134
111
  data: Buffer<ArrayBufferLike>;
135
112
  driverParam: unknown;
136
113
  enumValues: undefined;
137
- }> | pg$1.PgTimestampStringBuilderInitial<string> | pg$1.PgDateStringBuilderInitial<string> | pg$1.PgTextBuilderInitial<string, [string, ...string[]]> | pg$1.PgBooleanBuilderInitial<string> | drizzle_orm6.$Type<pg$1.PgCustomColumnBuilder<{
114
+ }> | pg$1.PgTimestampStringBuilderInitial<string> | pg$1.PgDateStringBuilderInitial<string> | pg$1.PgTextBuilderInitial<string, [string, ...string[]]> | pg$1.PgBooleanBuilderInitial<string> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
138
115
  name: string;
139
116
  dataType: "custom";
140
117
  columnType: "PgCustomColumn";
141
118
  data: {
142
119
  [x: string]: unknown;
143
120
  [x: number]: unknown;
121
+ [x: symbol]: unknown;
144
122
  };
145
123
  driverParam: string;
146
124
  enumValues: undefined;
147
125
  }>, {
148
126
  [x: string]: unknown;
149
127
  [x: number]: unknown;
150
- }> | drizzle_orm6.$Type<pg$1.PgCustomColumnBuilder<{
128
+ [x: symbol]: unknown;
129
+ }> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
151
130
  name: string;
152
131
  dataType: "custom";
153
132
  columnType: "PgCustomColumn";
154
- data: {};
133
+ data: Record<string, unknown>;
155
134
  driverParam: string;
156
135
  enumValues: undefined;
157
- }>, {}> | drizzle_orm6.$Type<pg$1.PgCustomColumnBuilder<{
136
+ }>, Record<string, unknown>> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
158
137
  name: string;
159
138
  dataType: "custom";
160
139
  columnType: "PgCustomColumn";
@@ -494,10 +473,10 @@ type PgTableWithColumnsAndSchema<T extends TableConfig, R extends TObject> = PgT
494
473
  * @stability 2
495
474
  */
496
475
  declare const $entity: {
497
- <TTableName extends string, TSchema extends TObject$1, TColumnsMap extends FromSchema<TSchema>>(options: EntityDescriptorOptions<TTableName, TSchema>): PgTableWithColumnsAndSchema<PgTableConfig<TTableName, TSchema, TColumnsMap>, TSchema>;
476
+ <TTableName extends string, TSchema extends TObject, TColumnsMap extends FromSchema<TSchema>>(options: EntityDescriptorOptions<TTableName, TSchema>): PgTableWithColumnsAndSchema<PgTableConfig<TTableName, TSchema, TColumnsMap>, TSchema>;
498
477
  [KIND]: string;
499
478
  };
500
- interface EntityDescriptorOptions<TTableName extends string, T extends TObject$1, Keys = keyof Static$1<T>> {
479
+ interface EntityDescriptorOptions<TTableName extends string, T extends TObject, Keys = keyof Static<T>> {
501
480
  /**
502
481
  * The database table name that will be created for this entity.
503
482
  *
@@ -659,7 +638,7 @@ interface EntityDescriptorOptions<TTableName extends string, T extends TObject$1
659
638
  /**
660
639
  * Local columns that reference the foreign table.
661
640
  */
662
- columns: Array<keyof Static$1<T>>;
641
+ columns: Array<keyof Static<T>>;
663
642
  /**
664
643
  * Referenced columns in the foreign table.
665
644
  */
@@ -706,7 +685,7 @@ interface EntityDescriptorOptions<TTableName extends string, T extends TObject$1
706
685
  /**
707
686
  * Columns involved in this constraint.
708
687
  */
709
- columns: Array<keyof Static$1<T>>;
688
+ columns: Array<keyof Static<T>>;
710
689
  /**
711
690
  * Optional name for the constraint.
712
691
  */
@@ -761,8 +740,8 @@ interface EntityDescriptorOptions<TTableName extends string, T extends TObject$1
761
740
  */
762
741
  config?: (self: BuildExtraConfigColumns<string, FromSchema<T>, "pg">) => PgTableExtraConfigValue[];
763
742
  }
764
- type Entity<T extends TObject$1> = PgTableWithColumnsAndSchema<PgTableConfig<string, T, FromSchema<T>>, T>;
765
- type PgTableConfig<TTableName extends string, TSchema extends TObject$1, TColumnsMap extends FromSchema<TSchema>> = {
743
+ type Entity<T extends TObject> = PgTableWithColumnsAndSchema<PgTableConfig<string, T, FromSchema<T>>, T>;
744
+ type PgTableConfig<TTableName extends string, TSchema extends TObject, TColumnsMap extends FromSchema<TSchema>> = {
766
745
  name: TTableName;
767
746
  schema: any;
768
747
  columns: BuildColumns<TTableName, TColumnsMap, "pg">;
@@ -1216,16 +1195,15 @@ type PgQueryWhere<T extends object> = { [Key in keyof T]?: FilterOperators<T[Key
1216
1195
  };
1217
1196
  //#endregion
1218
1197
  //#region src/interfaces/PgQuery.d.ts
1219
- interface PgQuery<T extends TObject$1, Select extends (keyof Static$1<T>)[] = []> {
1220
- columns?: Select;
1198
+ interface PgQuery<T extends TObject> {
1221
1199
  distinct?: boolean;
1222
- where?: PgQueryWhereOrSQL<Static$1<T>>;
1200
+ where?: PgQueryWhereOrSQL<Static<T>>;
1223
1201
  limit?: number;
1224
1202
  offset?: number;
1225
- sort?: { [key in keyof Static$1<T>]?: "asc" | "desc" };
1226
- groupBy?: (keyof Static$1<T>)[];
1203
+ sort?: { [key in keyof Static<T>]?: "asc" | "desc" };
1204
+ groupBy?: (keyof Static<T>)[];
1227
1205
  }
1228
- type PgQueryResult<T extends TObject$1, Select extends (keyof Static$1<T>)[]> = TPick<T, Select>;
1206
+ type PgQueryResult<T extends TObject, Select extends (keyof Static<T>)[]> = TPick<T, TKeysToIndexer<Select>>;
1229
1207
  //#endregion
1230
1208
  //#region src/providers/drivers/PostgresProvider.d.ts
1231
1209
  type SQLLike = SQLWrapper | string;
@@ -1234,35 +1212,38 @@ declare abstract class PostgresProvider {
1234
1212
  abstract get db(): PgDatabase<any>;
1235
1213
  abstract get schema(): string;
1236
1214
  abstract get dialect(): string;
1237
- abstract execute<T extends TObject$1 = any>(query: SQLLike, schema?: T): Promise<Array<T extends TObject$1 ? Static$1<T> : any>>;
1215
+ abstract execute<T extends TObject | undefined = undefined>(query: SQLLike, schema?: T): Promise<Array<T extends TObject ? Static<T> : any>>;
1238
1216
  }
1239
1217
  //#endregion
1240
1218
  //#region src/schemas/pageQuerySchema.d.ts
1241
- declare const pageQuerySchema: _sinclair_typebox0.TObject<{
1242
- page: _sinclair_typebox0.TOptional<_sinclair_typebox0.TNumber>;
1243
- size: _sinclair_typebox0.TOptional<_sinclair_typebox0.TNumber>;
1244
- sort: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
1219
+ declare const pageQuerySchema: typebox1.TObject<{
1220
+ page: typebox1.TOptional<typebox1.TInteger>;
1221
+ size: typebox1.TOptional<typebox1.TInteger>;
1222
+ sort: typebox1.TOptional<typebox1.TString>;
1245
1223
  }>;
1246
1224
  type PageQuery = Static<typeof pageQuerySchema>;
1247
1225
  //#endregion
1248
1226
  //#region src/schemas/pageSchema.d.ts
1249
1227
  /**
1250
- * Page Schema
1228
+ * Create a pagination schema for the given object schema.
1251
1229
  *
1252
- * @param objectSchema
1253
- * @param options
1230
+ * @example
1231
+ * const userSchema = t.object({ id: t.int(), name: t.string() });
1232
+ * const pagedUserSchema = pageSchema(userSchema);
1233
+ *
1234
+ * @see {@link $repository#paginate}
1254
1235
  */
1255
- declare const pageSchema: <T extends TObject$1 | TIntersect | TRecord>(objectSchema: T, options?: ObjectOptions) => TPage<T>;
1256
- type TPage<T extends TObject$1 | TIntersect | TRecord> = TObject$1<{
1236
+ declare const pageSchema: <T extends TObject | TRecord>(objectSchema: T, options?: TObjectOptions) => TPage<T>;
1237
+ type TPage<T extends TObject | TRecord> = TObject<{
1257
1238
  content: TArray<T>;
1258
- can: TObject$1<{
1239
+ can: TObject<{
1259
1240
  next: TBoolean;
1260
1241
  previous: TBoolean;
1261
1242
  }>;
1262
- page: TObject$1<{
1243
+ page: TObject<{
1263
1244
  number: TInteger;
1264
1245
  size: TInteger;
1265
- totalElements: TOptionalWithFlag<TInteger, true>;
1246
+ totalElements: TOptionalAdd<TInteger>;
1266
1247
  }>;
1267
1248
  }>;
1268
1249
  type Page<T> = {
@@ -1593,10 +1574,10 @@ type Page<T> = {
1593
1574
  * @stability 3
1594
1575
  */
1595
1576
  declare const $repository: {
1596
- <EntityTableConfig extends TableConfig, EntitySchema extends TObject$1>(optionsOrTable: RepositoryDescriptorOptions<EntityTableConfig, EntitySchema> | PgTableWithColumnsAndSchema<EntityTableConfig, EntitySchema>): RepositoryDescriptor<EntityTableConfig, EntitySchema>;
1577
+ <EntityTableConfig extends TableConfig, EntitySchema extends TObject>(optionsOrTable: RepositoryDescriptorOptions<EntityTableConfig, EntitySchema> | PgTableWithColumnsAndSchema<EntityTableConfig, EntitySchema>): RepositoryDescriptor<EntityTableConfig, EntitySchema>;
1597
1578
  [KIND]: typeof RepositoryDescriptor;
1598
1579
  };
1599
- interface RepositoryDescriptorOptions<EntityTableConfig extends TableConfig, EntitySchema extends TObject$1> {
1580
+ interface RepositoryDescriptorOptions<EntityTableConfig extends TableConfig, EntitySchema extends TObject> {
1600
1581
  /**
1601
1582
  * The entity table definition created with $entity.
1602
1583
  *
@@ -1656,10 +1637,10 @@ interface RepositoryDescriptorOptions<EntityTableConfig extends TableConfig, Ent
1656
1637
  */
1657
1638
  provider?: Service<PostgresProvider>;
1658
1639
  }
1659
- declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, EntitySchema extends TObject$1> extends Descriptor<RepositoryDescriptorOptions<EntityTableConfig, EntitySchema>> {
1640
+ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, EntitySchema extends TObject> extends Descriptor<RepositoryDescriptorOptions<EntityTableConfig, EntitySchema>> {
1660
1641
  protected readonly dateTimeProvider: DateTimeProvider;
1661
- readonly provider: PostgresProvider;
1662
1642
  protected readonly alepha: Alepha;
1643
+ readonly provider: PostgresProvider;
1663
1644
  readonly schema: EntitySchema;
1664
1645
  readonly schemaInsert: TObjectInsert<EntitySchema>;
1665
1646
  /**
@@ -1670,7 +1651,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1670
1651
  * ID is mandatory. If the table does not have a primary key, it will throw an error.
1671
1652
  */
1672
1653
  readonly id: {
1673
- type: TSchema$2;
1654
+ type: TSchema$1;
1674
1655
  key: keyof EntitySchema["properties"];
1675
1656
  col: PgColumn;
1676
1657
  };
@@ -1685,11 +1666,11 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1685
1666
  /**
1686
1667
  * Getter for the database connection from the database provider.
1687
1668
  */
1688
- protected get db(): PgDatabase<any, Record<string, never>, drizzle_orm6.ExtractTablesWithRelations<Record<string, never>>>;
1669
+ protected get db(): PgDatabase<any, Record<string, never>, drizzle_orm7.ExtractTablesWithRelations<Record<string, never>>>;
1689
1670
  /**
1690
1671
  * Execute a SQL query.
1691
1672
  */
1692
- query<T extends TObject$1 = EntitySchema>(query: SQLLike | ((table: PgTableWithColumns<EntityTableConfig>, db: PgDatabase<any>) => SQLLike), schema?: T): Promise<Static$1<T>[]>;
1673
+ query<T extends TObject = EntitySchema>(query: SQLLike | ((table: PgTableWithColumns<EntityTableConfig>, db: PgDatabase<any>) => SQLLike), schema?: T): Promise<Static<T>[]>;
1693
1674
  protected mapRawFieldsToEntity(row: any[]): any;
1694
1675
  /**
1695
1676
  * Get a Drizzle column from the table by his name.
@@ -1710,10 +1691,10 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1710
1691
  *
1711
1692
  * @returns The SELECT query builder.
1712
1693
  */
1713
- protected select(opts?: StatementOptions): pg$1.PgSelectBase<string, Record<string, PgColumn<drizzle_orm6.ColumnBaseConfig<drizzle_orm6.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
1694
+ protected select(opts?: StatementOptions): pg$1.PgSelectBase<string, Record<string, PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
1714
1695
  [x: string]: unknown;
1715
1696
  }[], {
1716
- [x: string]: PgColumn<drizzle_orm6.ColumnBaseConfig<drizzle_orm6.ColumnDataType, string>, {}, {}>;
1697
+ [x: string]: PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>;
1717
1698
  }>;
1718
1699
  protected selectDistinct(opts: StatementOptions | undefined, fields: SelectedFields): pg$1.PgSelectBase<string, SelectedFields, "partial", Record<string, "not-null">, false, never, {
1719
1700
  [x: string]: unknown;
@@ -1745,7 +1726,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1745
1726
  * @param opts The statement options.
1746
1727
  * @returns The found entities.
1747
1728
  */
1748
- find<Select extends (keyof Static$1<EntitySchema>)[]>(query?: PgQuery<EntitySchema, Select>, opts?: StatementOptions): Promise<Static$1<PgQueryResult<EntitySchema, Select>>[]>;
1729
+ find(query?: PgQuery<EntitySchema>, opts?: StatementOptions): Promise<Static<EntitySchema>[]>;
1749
1730
  /**
1750
1731
  * Find a single entity.
1751
1732
  *
@@ -1753,19 +1734,19 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1753
1734
  * @param opts The statement options.
1754
1735
  * @returns The found entity.
1755
1736
  */
1756
- findOne<T extends Static$1<EntitySchema> = Static$1<EntitySchema>>(where: PgQueryWhere<T>, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1737
+ findOne<T extends Static<EntitySchema> = Static<EntitySchema>>(where: PgQueryWhere<T>, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1757
1738
  /**
1758
1739
  * Find an entity by ID.
1759
1740
  */
1760
- findById(id: string | number, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1741
+ findById(id: string | number, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1761
1742
  /**
1762
1743
  * Paginate entities.
1763
1744
  */
1764
1745
  paginate(pagination?: PageQuery, query?: PgQuery<EntitySchema>, opts?: StatementOptions & {
1765
1746
  count?: boolean;
1766
- }): Promise<Page<Static$1<EntitySchema>>>;
1747
+ }): Promise<Page<Static<EntitySchema>>>;
1767
1748
  createQuery(query?: PgQuery<EntitySchema>): PgQuery<EntitySchema>;
1768
- createQueryWhere(where?: PgQueryWhere<Static$1<EntitySchema>>): PgQueryWhere<Static$1<EntitySchema>>;
1749
+ createQueryWhere(where?: PgQueryWhere<Static<EntitySchema>>): PgQueryWhere<Static<EntitySchema>>;
1769
1750
  /**
1770
1751
  * Create an entity.
1771
1752
  *
@@ -1773,7 +1754,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1773
1754
  * @param opts The options for creating the entity.
1774
1755
  * @returns The ID of the created entity.
1775
1756
  */
1776
- create(data: StaticInsert<EntitySchema>, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1757
+ create(data: Static<TObjectInsert<EntitySchema>>, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1777
1758
  /**
1778
1759
  * Create many entities.
1779
1760
  *
@@ -1781,11 +1762,11 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1781
1762
  * @param opts The statement options.
1782
1763
  * @returns The created entities.
1783
1764
  */
1784
- createMany(values: Array<StaticInsert<EntitySchema>>, opts?: StatementOptions): Promise<Static$1<EntitySchema>[]>;
1765
+ createMany(values: Array<Static<TObjectInsert<EntitySchema>>>, opts?: StatementOptions): Promise<Static<EntitySchema>[]>;
1785
1766
  /**
1786
1767
  * Find an entity and update it.
1787
1768
  */
1788
- updateOne(where: PgQueryWhereOrSQL<Static$1<EntitySchema>>, data: Partial<Static$1<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1769
+ updateOne(where: PgQueryWhereOrSQL<Static<EntitySchema>>, data: Partial<Static<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1789
1770
  /**
1790
1771
  * Save a given entity.
1791
1772
  *
@@ -1807,19 +1788,19 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1807
1788
  * @see {@link PostgresTypeProvider#version}
1808
1789
  * @see {@link PgVersionMismatchError}
1809
1790
  */
1810
- save(entity: Static$1<EntitySchema>, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1791
+ save(entity: Static<EntitySchema>, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1811
1792
  /**
1812
1793
  * Find an entity by ID and update it.
1813
1794
  */
1814
- updateById(id: string | number, data: Partial<Static$1<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<Static$1<EntitySchema>>;
1795
+ updateById(id: string | number, data: Partial<Static<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<Static<EntitySchema>>;
1815
1796
  /**
1816
1797
  * Find many entities and update all of them.
1817
1798
  */
1818
- updateMany(where: PgQueryWhereOrSQL<Static$1<EntitySchema>>, data: Partial<Static$1<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<void>;
1799
+ updateMany(where: PgQueryWhereOrSQL<Static<EntitySchema>>, data: Partial<Static<TObjectUpdate<EntitySchema>>>, opts?: StatementOptions): Promise<void>;
1819
1800
  /**
1820
1801
  * Find many and delete all of them.
1821
1802
  */
1822
- deleteMany(where?: PgQueryWhere<Static$1<EntitySchema>>, opts?: StatementOptions): Promise<void>;
1803
+ deleteMany(where?: PgQueryWhere<Static<EntitySchema>>, opts?: StatementOptions): Promise<void>;
1823
1804
  /**
1824
1805
  * Delete all entities.
1825
1806
  */
@@ -1829,11 +1810,11 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1829
1810
  *
1830
1811
  * You must fetch the entity first in order to delete it.
1831
1812
  */
1832
- destroy(entity: Static$1<EntitySchema>, opts?: StatementOptions): Promise<void>;
1813
+ destroy(entity: Static<EntitySchema>, opts?: StatementOptions): Promise<void>;
1833
1814
  /**
1834
1815
  * Find an entity and delete it.
1835
1816
  */
1836
- deleteOne(where?: PgQueryWhere<Static$1<EntitySchema>>, opts?: StatementOptions): Promise<void>;
1817
+ deleteOne(where?: PgQueryWhere<Static<EntitySchema>>, opts?: StatementOptions): Promise<void>;
1837
1818
  /**
1838
1819
  * Find an entity by ID and delete it.
1839
1820
  */
@@ -1841,14 +1822,12 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1841
1822
  /**
1842
1823
  * Count entities.
1843
1824
  */
1844
- count(where?: PgQueryWhereOrSQL<Static$1<EntitySchema>>, opts?: StatementOptions): Promise<number>;
1825
+ count(where?: PgQueryWhereOrSQL<Static<EntitySchema>>, opts?: StatementOptions): Promise<number>;
1845
1826
  protected conflictMessagePattern: string;
1846
1827
  protected handleError(error: unknown, message: string): PgError;
1847
- protected withDeletedAt(where: PgQueryWhereOrSQL<Static$1<EntitySchema>>, opts?: {
1828
+ protected withDeletedAt(where: PgQueryWhereOrSQL<Static<EntitySchema>>, opts?: {
1848
1829
  force?: boolean;
1849
- }): PgQueryWhereOrSQL<(EntitySchema & {
1850
- params: [];
1851
- })["static"]>;
1830
+ }): PgQueryWhereOrSQL<Static<EntitySchema>>;
1852
1831
  protected get organization(): undefined;
1853
1832
  protected deletedAt(): PgAttrField | undefined;
1854
1833
  /**
@@ -1858,7 +1837,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1858
1837
  * @param schema The schema to use.
1859
1838
  * @param col The column to use.
1860
1839
  */
1861
- protected jsonQueryToSql(query: PgQueryWhereOrSQL<Static$1<EntitySchema>>, schema?: TObject$1, col?: (key: string) => PgColumn): SQL | undefined;
1840
+ protected jsonQueryToSql(query: PgQueryWhereOrSQL<Static<EntitySchema>>, schema?: TObject, col?: (key: string) => PgColumn): SQL | undefined;
1862
1841
  /**
1863
1842
  * Map a filter operator to a SQL query.
1864
1843
  *
@@ -1874,7 +1853,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1874
1853
  * @param limit The limit of the pagination.
1875
1854
  * @param offset The offset of the pagination.
1876
1855
  */
1877
- protected createPagination(entities: Static$1<EntitySchema>[], limit?: number, offset?: number): Page<Static$1<EntitySchema>>;
1856
+ protected createPagination(entities: Static<EntitySchema>[], limit?: number, offset?: number): Page<Static<EntitySchema>>;
1878
1857
  /**
1879
1858
  * Convert something to valid Pg Insert Value.
1880
1859
  */
@@ -1886,24 +1865,24 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
1886
1865
  * @param schema The schema to use.
1887
1866
  * @returns The cleaned row.
1888
1867
  */
1889
- protected clean<T extends TObject$1 = EntitySchema>(row: any, schema?: T): Static$1<T>;
1868
+ protected clean<T extends TObject = EntitySchema>(row: any, schema?: T): Static<T>;
1890
1869
  /**
1891
1870
  * Get the where clause for an ID.
1892
1871
  *
1893
1872
  * @param id The ID to get the where clause for.
1894
1873
  * @returns The where clause for the ID.
1895
1874
  */
1896
- protected getWhereId(id: string | number): PgQueryWhere<Static$1<EntitySchema>>;
1875
+ protected getWhereId(id: string | number): PgQueryWhere<Static<EntitySchema>>;
1897
1876
  /**
1898
1877
  * Find a primary key in the schema.
1899
1878
  *
1900
1879
  * @param schema
1901
1880
  * @protected
1902
1881
  */
1903
- protected getPrimaryKey(schema: TObject$1): {
1882
+ protected getPrimaryKey(schema: TObject): {
1904
1883
  key: string;
1905
- col: PgColumn<drizzle_orm6.ColumnBaseConfig<drizzle_orm6.ColumnDataType, string>, {}, {}>;
1906
- type: TSchema$2;
1884
+ col: PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>;
1885
+ type: TSchema$1;
1907
1886
  };
1908
1887
  }
1909
1888
  /**
@@ -2792,13 +2771,13 @@ declare class PgEntityNotFoundError extends PgError {
2792
2771
  declare class RepositoryProvider {
2793
2772
  protected readonly log: _alepha_logger1.Logger;
2794
2773
  protected readonly alepha: Alepha;
2795
- protected get repositories(): RepositoryDescriptor<TableConfig$1, TObject$1>[];
2774
+ protected get repositories(): RepositoryDescriptor<TableConfig$1, TObject>[];
2796
2775
  /**
2797
2776
  * Get all repositories.
2798
2777
  *
2799
2778
  * @param provider - Filter by provider.
2800
2779
  */
2801
- getRepositories(provider?: PostgresProvider): RepositoryDescriptor<TableConfig$1, TObject$1>[];
2780
+ getRepositories(provider?: PostgresProvider): RepositoryDescriptor<TableConfig$1, TObject>[];
2802
2781
  /**
2803
2782
  * Get all tables from the repositories.
2804
2783
  *
@@ -2851,7 +2830,7 @@ declare class DrizzleKitProvider {
2851
2830
  declare module "alepha" {
2852
2831
  interface Env extends Partial<Static<typeof envSchema>> {}
2853
2832
  }
2854
- declare const envSchema: TObject$1<{
2833
+ declare const envSchema: TObject<{
2855
2834
  /**
2856
2835
  * Main configuration for database connection.
2857
2836
  * Accept a string in the format of a Postgres connection URL.
@@ -2915,7 +2894,7 @@ declare class NodePostgresProvider extends PostgresProvider {
2915
2894
  get db(): PostgresJsDatabase;
2916
2895
  protected readonly configure: _alepha_core1.HookDescriptor<"start">;
2917
2896
  protected readonly stop: _alepha_core1.HookDescriptor<"stop">;
2918
- execute<T extends TObject$1 = any>(query: SQLLike, schema?: T): Promise<Array<T extends TObject$1 ? Static<T> : any>>;
2897
+ execute<T extends TObject | undefined = undefined>(query: SQLLike, schema?: T): Promise<Array<T extends TObject ? Static<T> : any>>;
2919
2898
  connect(): Promise<void>;
2920
2899
  close(): Promise<void>;
2921
2900
  protected migrate: _alepha_lock0.LockDescriptor<() => Promise<void>>;
@@ -2943,25 +2922,20 @@ declare class NodePostgresProvider extends PostgresProvider {
2943
2922
  * TODO: options to skip deletion on failure, in order to inspect the schema?
2944
2923
  */
2945
2924
  protected generateTestSchemaName(): string;
2946
- protected mapResult<T extends TObject$1 = any>(result: Array<any>, schema?: T): Array<T extends TObject$1 ? Static<T> : any>;
2925
+ protected mapResult<T extends TObject = any>(result: Array<any>, schema?: T): Array<T extends TObject ? Static<T> : any>;
2947
2926
  }
2948
2927
  //#endregion
2949
2928
  //#region src/providers/PostgresTypeProvider.d.ts
2950
- declare module "alepha" {
2951
- interface TypeProvider {
2952
- pg: PostgresTypeProvider;
2953
- }
2954
- }
2955
2929
  declare class PostgresTypeProvider {
2956
- readonly attr: <T extends TSchema$2, Attr extends PgSymbolKeys>(type: T, attr: Attr, value?: PgSymbols[Attr]) => PgAttr<T, Attr>;
2930
+ readonly attr: <T extends TSchema$1, Attr extends PgSymbolKeys>(type: T, attr: Attr, value?: PgSymbols[Attr]) => PgAttr<T, Attr>;
2957
2931
  /**
2958
2932
  * Creates a primary key with an identity column.
2959
2933
  */
2960
- readonly identityPrimaryKey: (identity?: PgIdentityOptions, options?: IntegerOptions) => PgAttr<PgAttr<PgAttr<TInteger, typeof PG_PRIMARY_KEY>, typeof PG_IDENTITY>, typeof PG_DEFAULT>;
2934
+ readonly identityPrimaryKey: (identity?: PgIdentityOptions, options?: TNumberOptions) => PgAttr<PgAttr<PgAttr<TInteger, typeof PG_PRIMARY_KEY>, typeof PG_IDENTITY>, typeof PG_DEFAULT>;
2961
2935
  /**
2962
2936
  * Creates a primary key with a big identity column. (default)
2963
2937
  */
2964
- readonly bigIdentityPrimaryKey: (identity?: PgIdentityOptions, options?: NumberOptions) => PgAttr<PgAttr<PgAttr<TNumber, typeof PG_PRIMARY_KEY>, typeof PG_IDENTITY>, typeof PG_DEFAULT>;
2938
+ readonly bigIdentityPrimaryKey: (identity?: PgIdentityOptions, options?: TNumberOptions) => PgAttr<PgAttr<PgAttr<TNumber, typeof PG_PRIMARY_KEY>, typeof PG_IDENTITY>, typeof PG_DEFAULT>;
2965
2939
  /**
2966
2940
  * Creates a primary key with a UUID column.
2967
2941
  */
@@ -2973,14 +2947,15 @@ declare class PostgresTypeProvider {
2973
2947
  * - `t.uuid()` -> PG UUID
2974
2948
  */
2975
2949
  primaryKey(): PgAttr<PgAttr<TInteger, PgPrimaryKey>, PgDefault>;
2976
- primaryKey(type: TString, options?: StringOptions): PgAttr<PgAttr<TString, PgPrimaryKey>, PgDefault>;
2977
- primaryKey(type: TInteger, options?: IntegerOptions, identity?: PgIdentityOptions): PgAttr<PgAttr<TInteger, PgPrimaryKey>, PgDefault>;
2978
- primaryKey(type: TNumber, options?: NumberOptions, identity?: PgIdentityOptions): PgAttr<PgAttr<TNumber, PgPrimaryKey>, PgDefault>;
2950
+ primaryKey(type: TString, options?: TStringOptions): PgAttr<PgAttr<TString, PgPrimaryKey>, PgDefault>;
2951
+ primaryKey(type: TInteger, options?: TNumberOptions, identity?: PgIdentityOptions): PgAttr<PgAttr<TInteger, PgPrimaryKey>, PgDefault>;
2952
+ primaryKey(type: TNumber, options?: TNumberOptions, identity?: PgIdentityOptions): PgAttr<PgAttr<TNumber, PgPrimaryKey>, PgDefault>;
2953
+ primaryKey(type: TBigInt, options?: TNumberOptions, identity?: PgIdentityOptions): PgAttr<PgAttr<TBigInt, PgPrimaryKey>, PgDefault>;
2979
2954
  /**
2980
2955
  * Wrap a schema with "default" attribute.
2981
2956
  * This is used to set a default value for a column in the database.
2982
2957
  */
2983
- readonly default: <T extends TSchema$2>(type: T, value?: Static$1<T>) => PgAttr<T, PgDefault>;
2958
+ readonly default: <T extends TSchema$1>(type: T, value?: Static<T>) => PgAttr<T, PgDefault>;
2984
2959
  /**
2985
2960
  * Creates a column 'version'.
2986
2961
  *
@@ -2991,25 +2966,25 @@ declare class PostgresTypeProvider {
2991
2966
  * @see {@link RepositoryDescriptor#save}
2992
2967
  * @see {@link PgVersionMismatchError}
2993
2968
  */
2994
- readonly version: (options?: IntegerOptions) => PgAttr<PgAttr<TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2969
+ readonly version: (options?: TNumberOptions) => PgAttr<PgAttr<TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2995
2970
  /**
2996
2971
  * Creates a column Created At. So just a datetime column with a default value of the current timestamp.
2997
2972
  */
2998
- readonly createdAt: (options?: StringOptions) => PgAttr<PgAttr<TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2973
+ readonly createdAt: (options?: TStringOptions) => PgAttr<PgAttr<TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2999
2974
  /**
3000
2975
  * Creates a column Updated At. Like createdAt, but it is updated on every update of the row.
3001
2976
  */
3002
- readonly updatedAt: (options?: StringOptions) => PgAttr<PgAttr<TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2977
+ readonly updatedAt: (options?: TStringOptions) => PgAttr<PgAttr<TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
3003
2978
  /**
3004
2979
  * Creates a column Deleted At for soft delete functionality.
3005
2980
  * This is used to mark rows as deleted without actually removing them from the database.
3006
2981
  * The column is nullable - NULL means not deleted, timestamp means deleted.
3007
2982
  */
3008
- readonly deletedAt: (options?: StringOptions) => PgAttr<_sinclair_typebox0.TOptional<TString>, typeof PG_DELETED_AT>;
2983
+ readonly deletedAt: (options?: TStringOptions) => PgAttr<typebox1.TOptional<TString>, typeof PG_DELETED_AT>;
3009
2984
  /**
3010
2985
  * Creates a reference to another table or schema. Basically a foreign key.
3011
2986
  */
3012
- readonly ref: <T extends TSchema$2>(type: T, ref: () => any, actions?: {
2987
+ readonly ref: <T extends TSchema$1>(type: T, ref: () => any, actions?: {
3013
2988
  onUpdate?: UpdateDeleteAction$1;
3014
2989
  onDelete?: UpdateDeleteAction$1;
3015
2990
  }) => PgAttr<T, PgRef>;
@@ -3017,7 +2992,7 @@ declare class PostgresTypeProvider {
3017
2992
  * Creates a page schema for a given object schema.
3018
2993
  * It's used by {@link RepositoryDescriptor#paginate} method.
3019
2994
  */
3020
- readonly page: <T extends TObject$1>(resource: T, options?: ObjectOptions) => TPage<T>;
2995
+ readonly page: <T extends TObject>(resource: T, options?: TObjectOptions) => TPage<T>;
3021
2996
  }
3022
2997
  declare const pg: PostgresTypeProvider;
3023
2998
  //#endregion
@@ -3025,24 +3000,20 @@ declare const pg: PostgresTypeProvider;
3025
3000
  /**
3026
3001
  * @deprecated Use `pg.primaryKey()` instead.
3027
3002
  */
3028
- declare const legacyIdSchema: PgAttr<PgAttr<PgAttr<_sinclair_typebox0.TInteger, typeof PG_PRIMARY_KEY>, typeof PG_SERIAL>, typeof PG_DEFAULT>;
3003
+ declare const legacyIdSchema: PgAttr<PgAttr<PgAttr<typebox1.TInteger, typeof PG_PRIMARY_KEY>, typeof PG_SERIAL>, typeof PG_DEFAULT>;
3029
3004
  //#endregion
3030
3005
  //#region src/types/schema.d.ts
3031
3006
  /**
3032
3007
  * Postgres schema type.
3033
3008
  */
3034
- declare const schema: <TDocument extends TSchema$2>(name: string, document: TDocument) => drizzle_orm6.$Type<pg$1.PgCustomColumnBuilder<{
3009
+ declare const schema: <TDocument extends TSchema$1>(name: string, document: TDocument) => drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
3035
3010
  name: string;
3036
3011
  dataType: "custom";
3037
3012
  columnType: "PgCustomColumn";
3038
- data: (TDocument & {
3039
- params: [];
3040
- })["static"];
3013
+ data: Static<TDocument>;
3041
3014
  driverParam: string;
3042
3015
  enumValues: undefined;
3043
- }>, (TDocument & {
3044
- params: [];
3045
- })["static"]>;
3016
+ }>, Static<TDocument>>;
3046
3017
  //#endregion
3047
3018
  //#region src/index.d.ts
3048
3019
  /**
@@ -3087,5 +3058,5 @@ declare const schema: <TDocument extends TSchema$2>(name: string, document: TDoc
3087
3058
  */
3088
3059
  declare const AlephaPostgres: _alepha_core1.Service<_alepha_core1.Module>;
3089
3060
  //#endregion
3090
- export { $entity, $repository, $sequence, $transaction, AlephaPostgres, DrizzleKitProvider, Entity, EntityDescriptorOptions, FilterOperators, FromSchema, NodePostgresProvider, NodePostgresProviderOptions, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_IDENTITY, PG_PRIMARY_KEY, PG_REF, PG_SCHEMA, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgDefault, PgEntityNotFoundError, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryResult, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgSymbolKeys, PgSymbols, PgTableConfig, PgTableWithColumnsAndSchema, PostgresProvider, PostgresTypeProvider, RepositoryDescriptor, RepositoryDescriptorOptions, RepositoryProvider, SQLLike, SequenceDescriptor, SequenceDescriptorOptions, StatementOptions, StaticDefaultEntry, StaticEntry, StaticInsert, TObjectInsert, TPage, TransactionContext, TransactionDescriptorOptions, camelToSnakeCase, drizzle_orm6 as drizzle, insertSchema, legacyIdSchema, mapFieldToColumn, mapStringToColumn, pageQuerySchema, pageSchema, pg, schema, schemaToPgColumns, sql };
3061
+ export { $entity, $repository, $sequence, $transaction, AlephaPostgres, DrizzleKitProvider, Entity, EntityDescriptorOptions, FilterOperators, FromSchema, NodePostgresProvider, NodePostgresProviderOptions, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_IDENTITY, PG_PRIMARY_KEY, PG_REF, PG_SCHEMA, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgDefault, PgEntityNotFoundError, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryResult, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgSymbolKeys, PgSymbols, PgTableConfig, PgTableWithColumnsAndSchema, PostgresProvider, PostgresTypeProvider, RepositoryDescriptor, RepositoryDescriptorOptions, RepositoryProvider, SQLLike, SequenceDescriptor, SequenceDescriptorOptions, StatementOptions, TObjectInsert, TPage, TransactionContext, TransactionDescriptorOptions, camelToSnakeCase, drizzle_orm7 as drizzle, insertSchema, legacyIdSchema, mapFieldToColumn, mapStringToColumn, pageQuerySchema, pageSchema, pg, schema, schemaToPgColumns, sql };
3091
3062
  //# sourceMappingURL=index.d.ts.map
package/queue/redis.d.ts CHANGED
@@ -2,11 +2,11 @@ import * as _alepha_core0 from "alepha";
2
2
  import { Static } from "alepha";
3
3
  import { QueueProvider } from "alepha/queue";
4
4
  import { RedisProvider } from "alepha/redis";
5
- import * as _sinclair_typebox0 from "@sinclair/typebox";
5
+ import * as typebox0 from "typebox";
6
6
 
7
7
  //#region src/providers/RedisQueueProvider.d.ts
8
- declare const envSchema: _sinclair_typebox0.TObject<{
9
- REDIS_QUEUE_PREFIX: _sinclair_typebox0.TString;
8
+ declare const envSchema: typebox0.TObject<{
9
+ REDIS_QUEUE_PREFIX: typebox0.TString;
10
10
  }>;
11
11
  declare class RedisQueueProvider implements QueueProvider {
12
12
  protected readonly env: Static<typeof envSchema>;