alepha 0.13.3 → 0.13.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.
- package/README.md +7 -7
- package/dist/api-files/index.browser.js +5 -5
- package/dist/api-files/index.d.ts +16 -16
- package/dist/api-files/index.js +9 -9
- package/dist/api-jobs/index.browser.js +5 -5
- package/dist/api-jobs/index.d.ts +17 -17
- package/dist/api-jobs/index.js +9 -9
- package/dist/api-notifications/index.browser.js +11 -11
- package/dist/api-notifications/index.d.ts +158 -158
- package/dist/api-notifications/index.js +11 -11
- package/dist/api-parameters/index.browser.js +2 -2
- package/dist/api-parameters/index.d.ts +3 -3
- package/dist/api-parameters/index.js +3 -3
- package/dist/api-users/index.browser.js +6 -6
- package/dist/api-users/index.d.ts +55 -55
- package/dist/api-users/index.js +36 -36
- package/dist/api-verifications/index.browser.js +5 -5
- package/dist/api-verifications/index.d.ts +9 -9
- package/dist/api-verifications/index.js +10 -10
- package/dist/batch/index.d.ts +3 -3
- package/dist/batch/index.js +3 -3
- package/dist/bin/index.js +1 -1
- package/dist/bucket/index.d.ts +6 -6
- package/dist/bucket/index.js +7 -7
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/index.js +5 -5
- package/dist/cache-redis/index.d.ts +2 -2
- package/dist/cache-redis/index.js +2 -2
- package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
- package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
- package/dist/cli/index.d.ts +31 -75
- package/dist/cli/index.js +94 -171
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -8
- package/dist/command/index.js +11 -10
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +40 -36
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +255 -253
- package/dist/core/index.js +40 -36
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +40 -36
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -3
- package/dist/datetime/index.js +3 -3
- package/dist/email/index.d.ts +7 -7
- package/dist/email/index.js +42 -42
- package/dist/fake/index.d.ts +2 -2
- package/dist/fake/index.js +5 -5
- package/dist/file/index.d.ts +4 -4
- package/dist/file/index.js +4 -4
- package/dist/lock/index.d.ts +5 -5
- package/dist/lock/index.js +5 -5
- package/dist/lock-redis/index.d.ts +2 -2
- package/dist/lock-redis/index.js +2 -2
- package/dist/logger/index.d.ts +11 -11
- package/dist/logger/index.js +12 -12
- package/dist/orm/index.browser.js +12 -12
- package/dist/orm/index.d.ts +33 -33
- package/dist/orm/index.js +32 -32
- package/dist/queue/index.d.ts +7 -7
- package/dist/queue/index.js +6 -6
- package/dist/queue-redis/index.d.ts +2 -2
- package/dist/queue-redis/index.js +2 -2
- package/dist/redis/index.d.ts +13 -13
- package/dist/redis/index.js +3 -3
- package/dist/retry/index.d.ts +5 -5
- package/dist/retry/index.js +5 -5
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/scheduler/index.d.ts +4 -4
- package/dist/scheduler/index.js +7 -7
- package/dist/security/index.browser.js +7 -7
- package/dist/security/index.d.ts +15 -15
- package/dist/security/index.js +46 -46
- package/dist/server/index.browser.js +14 -14
- package/dist/server/index.d.ts +26 -26
- package/dist/server/index.js +26 -26
- package/dist/server-auth/index.browser.js +6 -6
- package/dist/server-auth/index.d.ts +11 -11
- package/dist/server-auth/index.js +13 -13
- package/dist/server-cache/index.d.ts +2 -2
- package/dist/server-cache/index.js +2 -2
- package/dist/server-compress/index.d.ts +2 -2
- package/dist/server-compress/index.js +2 -2
- package/dist/server-cookies/index.browser.js +3 -3
- package/dist/server-cookies/index.d.ts +4 -4
- package/dist/server-cookies/index.js +4 -4
- package/dist/server-cors/index.d.ts +3 -3
- package/dist/server-cors/index.js +3 -3
- package/dist/server-health/index.d.ts +3 -3
- package/dist/server-health/index.js +3 -3
- package/dist/server-helmet/index.d.ts +2 -2
- package/dist/server-helmet/index.js +2 -2
- package/dist/server-links/index.browser.js +5 -5
- package/dist/server-links/index.d.ts +40 -40
- package/dist/server-links/index.js +7 -7
- package/dist/server-metrics/index.d.ts +2 -2
- package/dist/server-metrics/index.js +86 -86
- package/dist/server-multipart/index.d.ts +2 -2
- package/dist/server-multipart/index.js +2 -2
- package/dist/server-proxy/index.d.ts +3 -3
- package/dist/server-proxy/index.js +3 -3
- package/dist/server-rate-limit/index.d.ts +3 -3
- package/dist/server-rate-limit/index.js +3 -3
- package/dist/server-security/index.browser.js +1 -1
- package/dist/server-security/index.d.ts +4 -4
- package/dist/server-security/index.js +4 -4
- package/dist/server-static/index.d.ts +3 -3
- package/dist/server-static/index.js +3 -3
- package/dist/server-swagger/index.d.ts +3 -3
- package/dist/server-swagger/index.js +3 -3
- package/dist/sms/index.d.ts +6 -6
- package/dist/sms/index.js +6 -6
- package/dist/thread/index.d.ts +3 -3
- package/dist/thread/index.js +3 -3
- package/dist/topic/index.d.ts +6 -6
- package/dist/topic/index.js +6 -6
- package/dist/topic-redis/index.d.ts +2 -2
- package/dist/topic-redis/index.js +2 -2
- package/dist/vite/index.d.ts +17 -17
- package/dist/vite/index.js +20 -20
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.d.ts +17 -17
- package/dist/websocket/index.js +10 -10
- package/package.json +5 -4
- package/src/cli/apps/AlephaCli.ts +1 -2
- package/src/cli/commands/BiomeCommands.ts +4 -6
- package/src/cli/commands/CoreCommands.ts +2 -2
- package/src/cli/commands/DrizzleCommands.ts +76 -78
- package/src/cli/commands/VerifyCommands.ts +3 -5
- package/src/cli/commands/ViteCommands.ts +6 -8
- package/src/cli/index.ts +1 -1
- package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
- package/src/command/providers/CliProvider.ts +12 -4
- package/src/core/Alepha.ts +14 -0
- package/src/core/primitives/$module.ts +1 -1
- package/src/cli/services/ProcessRunner.ts +0 -89
|
@@ -27,7 +27,7 @@ import "drizzle-orm/postgres-js";
|
|
|
27
27
|
import "postgres";
|
|
28
28
|
import "drizzle-orm/sqlite-core";
|
|
29
29
|
|
|
30
|
-
//#region src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
30
|
+
//#region ../../src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
31
31
|
declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
|
|
32
32
|
registrationAllowed: alepha23.TBoolean;
|
|
33
33
|
emailEnabled: alepha23.TBoolean;
|
|
@@ -51,7 +51,7 @@ declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
|
|
|
51
51
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
52
52
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region src/api-users/entities/identities.d.ts
|
|
54
|
+
//#region ../../src/api-users/entities/identities.d.ts
|
|
55
55
|
declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
56
56
|
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
57
57
|
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
@@ -65,7 +65,7 @@ declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
|
65
65
|
}>>;
|
|
66
66
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region src/api-users/entities/sessions.d.ts
|
|
68
|
+
//#region ../../src/api-users/entities/sessions.d.ts
|
|
69
69
|
declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
70
70
|
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
71
71
|
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
@@ -83,7 +83,7 @@ declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
|
83
83
|
}>>;
|
|
84
84
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
85
85
|
//#endregion
|
|
86
|
-
//#region src/api-users/entities/users.d.ts
|
|
86
|
+
//#region ../../src/api-users/entities/users.d.ts
|
|
87
87
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
88
88
|
declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
89
89
|
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
@@ -103,7 +103,7 @@ declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
|
103
103
|
}>>;
|
|
104
104
|
type UserEntity = Static<typeof users.schema>;
|
|
105
105
|
//#endregion
|
|
106
|
-
//#region src/api-users/providers/UserRealmProvider.d.ts
|
|
106
|
+
//#region ../../src/api-users/providers/UserRealmProvider.d.ts
|
|
107
107
|
interface UserRealmRepositories {
|
|
108
108
|
identities: Repository<typeof identities.schema>;
|
|
109
109
|
sessions: Repository<typeof sessions.schema>;
|
|
@@ -171,7 +171,7 @@ declare class UserRealmProvider {
|
|
|
171
171
|
userRepository(userRealmName?: string): Repository<typeof users.schema>;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
|
-
//#region src/api-users/schemas/identityQuerySchema.d.ts
|
|
174
|
+
//#region ../../src/api-users/schemas/identityQuerySchema.d.ts
|
|
175
175
|
declare const identityQuerySchema: alepha23.TObject<{
|
|
176
176
|
page: alepha23.TOptional<alepha23.TInteger>;
|
|
177
177
|
size: alepha23.TOptional<alepha23.TInteger>;
|
|
@@ -181,7 +181,7 @@ declare const identityQuerySchema: alepha23.TObject<{
|
|
|
181
181
|
}>;
|
|
182
182
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region src/api-users/services/IdentityService.d.ts
|
|
184
|
+
//#region ../../src/api-users/services/IdentityService.d.ts
|
|
185
185
|
declare class IdentityService {
|
|
186
186
|
protected readonly log: alepha_logger1.Logger;
|
|
187
187
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
@@ -210,7 +210,7 @@ declare class IdentityService {
|
|
|
210
210
|
deleteIdentity(id: string, userRealmName?: string): Promise<void>;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
|
-
//#region src/api-users/controllers/IdentityController.d.ts
|
|
213
|
+
//#region ../../src/api-users/controllers/IdentityController.d.ts
|
|
214
214
|
declare class IdentityController {
|
|
215
215
|
protected readonly url = "/identities";
|
|
216
216
|
protected readonly group = "identities";
|
|
@@ -277,7 +277,7 @@ declare class IdentityController {
|
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
//#endregion
|
|
280
|
-
//#region src/api-users/schemas/sessionQuerySchema.d.ts
|
|
280
|
+
//#region ../../src/api-users/schemas/sessionQuerySchema.d.ts
|
|
281
281
|
declare const sessionQuerySchema: alepha23.TObject<{
|
|
282
282
|
page: alepha23.TOptional<alepha23.TInteger>;
|
|
283
283
|
size: alepha23.TOptional<alepha23.TInteger>;
|
|
@@ -286,7 +286,7 @@ declare const sessionQuerySchema: alepha23.TObject<{
|
|
|
286
286
|
}>;
|
|
287
287
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
288
288
|
//#endregion
|
|
289
|
-
//#region src/api-users/services/SessionCrudService.d.ts
|
|
289
|
+
//#region ../../src/api-users/services/SessionCrudService.d.ts
|
|
290
290
|
declare class SessionCrudService {
|
|
291
291
|
protected readonly log: alepha_logger1.Logger;
|
|
292
292
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
@@ -319,7 +319,7 @@ declare class SessionCrudService {
|
|
|
319
319
|
deleteSession(id: string, userRealmName?: string): Promise<void>;
|
|
320
320
|
}
|
|
321
321
|
//#endregion
|
|
322
|
-
//#region src/api-users/controllers/SessionController.d.ts
|
|
322
|
+
//#region ../../src/api-users/controllers/SessionController.d.ts
|
|
323
323
|
declare class SessionController {
|
|
324
324
|
protected readonly url = "/sessions";
|
|
325
325
|
protected readonly group = "sessions";
|
|
@@ -395,7 +395,7 @@ declare class SessionController {
|
|
|
395
395
|
}>;
|
|
396
396
|
}
|
|
397
397
|
//#endregion
|
|
398
|
-
//#region src/orm/schemas/insertSchema.d.ts
|
|
398
|
+
//#region ../../src/orm/schemas/insertSchema.d.ts
|
|
399
399
|
/**
|
|
400
400
|
* Transforms a TObject schema for insert operations.
|
|
401
401
|
* All default properties at the root level are made optional.
|
|
@@ -410,7 +410,7 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"]]:
|
|
|
410
410
|
"~optional": true;
|
|
411
411
|
} ? TOptional<T["properties"][K]> : T["properties"][K] }>;
|
|
412
412
|
//#endregion
|
|
413
|
-
//#region src/orm/schemas/updateSchema.d.ts
|
|
413
|
+
//#region ../../src/orm/schemas/updateSchema.d.ts
|
|
414
414
|
/**
|
|
415
415
|
* Transforms a TObject schema for update operations.
|
|
416
416
|
* All optional properties at the root level are made nullable (i.e., `T | null`).
|
|
@@ -422,7 +422,7 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"]]:
|
|
|
422
422
|
*/
|
|
423
423
|
type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["properties"]]: T["properties"][K] extends TOptional<infer U> ? TOptional<TUnion<[U, TNull]>> : T["properties"][K] }>;
|
|
424
424
|
//#endregion
|
|
425
|
-
//#region src/orm/primitives/$entity.d.ts
|
|
425
|
+
//#region ../../src/orm/primitives/$entity.d.ts
|
|
426
426
|
interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
|
|
427
427
|
/**
|
|
428
428
|
* The database table name that will be created for this entity.
|
|
@@ -561,7 +561,7 @@ type EntityColumn<T extends TObject> = {
|
|
|
561
561
|
};
|
|
562
562
|
type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T> };
|
|
563
563
|
//#endregion
|
|
564
|
-
//#region src/orm/constants/PG_SYMBOLS.d.ts
|
|
564
|
+
//#region ../../src/orm/constants/PG_SYMBOLS.d.ts
|
|
565
565
|
declare const PG_DEFAULT: unique symbol;
|
|
566
566
|
declare const PG_PRIMARY_KEY: unique symbol;
|
|
567
567
|
declare const PG_CREATED_AT: unique symbol;
|
|
@@ -611,13 +611,13 @@ interface PgRefOptions {
|
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
613
|
//#endregion
|
|
614
|
-
//#region src/orm/errors/DbError.d.ts
|
|
614
|
+
//#region ../../src/orm/errors/DbError.d.ts
|
|
615
615
|
declare class DbError extends AlephaError {
|
|
616
616
|
name: string;
|
|
617
617
|
constructor(message: string, cause?: unknown);
|
|
618
618
|
}
|
|
619
619
|
//#endregion
|
|
620
|
-
//#region src/orm/interfaces/FilterOperators.d.ts
|
|
620
|
+
//#region ../../src/orm/interfaces/FilterOperators.d.ts
|
|
621
621
|
interface FilterOperators<TValue> {
|
|
622
622
|
/**
|
|
623
623
|
* Test that two values are equal.
|
|
@@ -1033,7 +1033,7 @@ interface FilterOperators<TValue> {
|
|
|
1033
1033
|
arrayOverlaps?: TValue;
|
|
1034
1034
|
}
|
|
1035
1035
|
//#endregion
|
|
1036
|
-
//#region src/orm/interfaces/PgQuery.d.ts
|
|
1036
|
+
//#region ../../src/orm/interfaces/PgQuery.d.ts
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Order direction for sorting
|
|
1039
1039
|
*/
|
|
@@ -1082,7 +1082,7 @@ type PgRelation<Base extends TObject> = {
|
|
|
1082
1082
|
with?: PgRelationMap<TObject>;
|
|
1083
1083
|
};
|
|
1084
1084
|
//#endregion
|
|
1085
|
-
//#region src/orm/interfaces/PgQueryWhere.d.ts
|
|
1085
|
+
//#region ../../src/orm/interfaces/PgQueryWhere.d.ts
|
|
1086
1086
|
type PgQueryWhere<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = (PgQueryWhereOperators<T> & PgQueryWhereConditions<T>) | (PgQueryWhereRelations<Relations> & PgQueryWhereOperators<T> & PgQueryWhereConditions<T, Relations>);
|
|
1087
1087
|
type PgQueryWhereOrSQL<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = SQLWrapper | PgQueryWhere<T, Relations>;
|
|
1088
1088
|
type PgQueryWhereOperators<T extends TObject> = { [Key in keyof Static<T>]?: FilterOperators<Static<T>[Key]> | Static<T>[Key] | (Static<T>[Key] extends object ? NestedJsonbQuery<Static<T>[Key]> : never) };
|
|
@@ -1161,7 +1161,7 @@ type PgQueryWhereRelations<Relations extends PgRelationMap<TObject> | undefined
|
|
|
1161
1161
|
*/
|
|
1162
1162
|
type NestedJsonbQuery<T> = T extends object ? T extends Array<infer U> ? U extends object ? { [K in keyof U]?: FilterOperators<U[K]> | U[K] } : FilterOperators<U> | U : { [K in keyof T]?: FilterOperators<T[K]> | T[K] | (T[K] extends object ? NestedJsonbQuery<T[K]> : never) } : FilterOperators<T> | T;
|
|
1163
1163
|
//#endregion
|
|
1164
|
-
//#region src/orm/helpers/pgAttr.d.ts
|
|
1164
|
+
//#region ../../src/orm/helpers/pgAttr.d.ts
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Type representation.
|
|
1167
1167
|
*/
|
|
@@ -1174,7 +1174,7 @@ interface PgAttrField {
|
|
|
1174
1174
|
one?: boolean;
|
|
1175
1175
|
}
|
|
1176
1176
|
//#endregion
|
|
1177
|
-
//#region src/orm/primitives/$sequence.d.ts
|
|
1177
|
+
//#region ../../src/orm/primitives/$sequence.d.ts
|
|
1178
1178
|
interface SequencePrimitiveOptions extends PgSequenceOptions {
|
|
1179
1179
|
/**
|
|
1180
1180
|
* The name of the sequence. If not provided, the property key will be used.
|
|
@@ -1191,7 +1191,7 @@ declare class SequencePrimitive extends Primitive<SequencePrimitiveOptions> {
|
|
|
1191
1191
|
protected $provider(): DatabaseProvider;
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
|
-
//#region src/orm/services/ModelBuilder.d.ts
|
|
1194
|
+
//#region ../../src/orm/services/ModelBuilder.d.ts
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Database-specific table configuration functions
|
|
1197
1197
|
*/
|
|
@@ -1248,7 +1248,7 @@ declare abstract class ModelBuilder {
|
|
|
1248
1248
|
protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
|
|
1249
1249
|
}
|
|
1250
1250
|
//#endregion
|
|
1251
|
-
//#region src/orm/providers/DrizzleKitProvider.d.ts
|
|
1251
|
+
//#region ../../src/orm/providers/DrizzleKitProvider.d.ts
|
|
1252
1252
|
declare class DrizzleKitProvider {
|
|
1253
1253
|
protected readonly log: alepha_logger1.Logger;
|
|
1254
1254
|
protected readonly alepha: Alepha;
|
|
@@ -1294,7 +1294,7 @@ declare const devMigrationsSchema: alepha23.TObject<{
|
|
|
1294
1294
|
}>;
|
|
1295
1295
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1296
1296
|
//#endregion
|
|
1297
|
-
//#region src/orm/providers/drivers/DatabaseProvider.d.ts
|
|
1297
|
+
//#region ../../src/orm/providers/drivers/DatabaseProvider.d.ts
|
|
1298
1298
|
type SQLLike = SQLWrapper | string;
|
|
1299
1299
|
declare abstract class DatabaseProvider {
|
|
1300
1300
|
protected readonly alepha: Alepha;
|
|
@@ -1345,7 +1345,7 @@ declare abstract class DatabaseProvider {
|
|
|
1345
1345
|
protected abstract executeMigrations(migrationsFolder: string): Promise<void>;
|
|
1346
1346
|
}
|
|
1347
1347
|
//#endregion
|
|
1348
|
-
//#region src/orm/services/PgJsonQueryManager.d.ts
|
|
1348
|
+
//#region ../../src/orm/services/PgJsonQueryManager.d.ts
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Manages JSONB query generation for nested object and array queries in PostgreSQL.
|
|
1351
1351
|
* This class handles complex nested queries using PostgreSQL's JSONB operators.
|
|
@@ -1418,7 +1418,7 @@ declare class PgJsonQueryManager {
|
|
|
1418
1418
|
isArrayProperty(schema: TObject, path: string[]): boolean;
|
|
1419
1419
|
}
|
|
1420
1420
|
//#endregion
|
|
1421
|
-
//#region src/orm/services/QueryManager.d.ts
|
|
1421
|
+
//#region ../../src/orm/services/QueryManager.d.ts
|
|
1422
1422
|
declare class QueryManager {
|
|
1423
1423
|
protected readonly jsonQueryManager: PgJsonQueryManager;
|
|
1424
1424
|
protected readonly alepha: Alepha;
|
|
@@ -1497,7 +1497,7 @@ interface PgJoin {
|
|
|
1497
1497
|
parent?: string;
|
|
1498
1498
|
}
|
|
1499
1499
|
//#endregion
|
|
1500
|
-
//#region src/orm/services/PgRelationManager.d.ts
|
|
1500
|
+
//#region ../../src/orm/services/PgRelationManager.d.ts
|
|
1501
1501
|
declare class PgRelationManager {
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Recursively build joins for the query builder based on the relations map
|
|
@@ -1517,7 +1517,7 @@ declare class PgRelationManager {
|
|
|
1517
1517
|
buildSchemaWithJoins(baseSchema: TObject, joins: PgJoin[], parentPath?: string): TObject;
|
|
1518
1518
|
}
|
|
1519
1519
|
//#endregion
|
|
1520
|
-
//#region src/orm/services/Repository.d.ts
|
|
1520
|
+
//#region ../../src/orm/services/Repository.d.ts
|
|
1521
1521
|
declare abstract class Repository$1<T extends TObject> {
|
|
1522
1522
|
readonly entity: EntityPrimitive<T>;
|
|
1523
1523
|
readonly provider: DatabaseProvider;
|
|
@@ -1791,7 +1791,7 @@ interface StatementOptions {
|
|
|
1791
1791
|
now?: DateTime | string;
|
|
1792
1792
|
}
|
|
1793
1793
|
//#endregion
|
|
1794
|
-
//#region src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
1794
|
+
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
1795
1795
|
declare module "alepha" {
|
|
1796
1796
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
1797
1797
|
}
|
|
@@ -1812,7 +1812,7 @@ declare const envSchema: alepha23.TObject<{
|
|
|
1812
1812
|
POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
|
|
1813
1813
|
}>;
|
|
1814
1814
|
//#endregion
|
|
1815
|
-
//#region src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1815
|
+
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Configuration options for the Node.js SQLite database provider.
|
|
1818
1818
|
*/
|
|
@@ -1832,7 +1832,7 @@ declare module "alepha" {
|
|
|
1832
1832
|
* This is NOT recommended for production use.
|
|
1833
1833
|
*/
|
|
1834
1834
|
//#endregion
|
|
1835
|
-
//#region src/orm/index.d.ts
|
|
1835
|
+
//#region ../../src/orm/index.d.ts
|
|
1836
1836
|
declare module "alepha" {
|
|
1837
1837
|
interface Hooks {
|
|
1838
1838
|
/**
|
|
@@ -1900,7 +1900,7 @@ declare module "alepha" {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
//#endregion
|
|
1903
|
-
//#region src/api-users/notifications/UserNotifications.d.ts
|
|
1903
|
+
//#region ../../src/api-users/notifications/UserNotifications.d.ts
|
|
1904
1904
|
declare class UserNotifications {
|
|
1905
1905
|
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1906
1906
|
email: alepha23.TString;
|
|
@@ -1929,7 +1929,7 @@ declare class UserNotifications {
|
|
|
1929
1929
|
}>>;
|
|
1930
1930
|
}
|
|
1931
1931
|
//#endregion
|
|
1932
|
-
//#region src/api-users/schemas/completePasswordResetRequestSchema.d.ts
|
|
1932
|
+
//#region ../../src/api-users/schemas/completePasswordResetRequestSchema.d.ts
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Request schema for completing a password reset.
|
|
1935
1935
|
*
|
|
@@ -1943,7 +1943,7 @@ declare const completePasswordResetRequestSchema: alepha23.TObject<{
|
|
|
1943
1943
|
}>;
|
|
1944
1944
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
1945
1945
|
//#endregion
|
|
1946
|
-
//#region src/api-users/schemas/passwordResetIntentResponseSchema.d.ts
|
|
1946
|
+
//#region ../../src/api-users/schemas/passwordResetIntentResponseSchema.d.ts
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Response schema for password reset intent creation.
|
|
1949
1949
|
*
|
|
@@ -1956,7 +1956,7 @@ declare const passwordResetIntentResponseSchema: alepha23.TObject<{
|
|
|
1956
1956
|
}>;
|
|
1957
1957
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
1958
1958
|
//#endregion
|
|
1959
|
-
//#region src/api-users/services/CredentialService.d.ts
|
|
1959
|
+
//#region ../../src/api-users/services/CredentialService.d.ts
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Intent stored in cache during the password reset flow.
|
|
1962
1962
|
*/
|
|
@@ -2051,7 +2051,7 @@ declare class CredentialService {
|
|
|
2051
2051
|
resetPassword(email: string, token: string, newPassword: string, userRealmName?: string): Promise<void>;
|
|
2052
2052
|
}
|
|
2053
2053
|
//#endregion
|
|
2054
|
-
//#region src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2054
|
+
//#region ../../src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2055
2055
|
declare const completeRegistrationRequestSchema: alepha23.TObject<{
|
|
2056
2056
|
intentId: alepha23.TString;
|
|
2057
2057
|
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
@@ -2060,7 +2060,7 @@ declare const completeRegistrationRequestSchema: alepha23.TObject<{
|
|
|
2060
2060
|
}>;
|
|
2061
2061
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2062
2062
|
//#endregion
|
|
2063
|
-
//#region src/api-users/schemas/registerRequestSchema.d.ts
|
|
2063
|
+
//#region ../../src/api-users/schemas/registerRequestSchema.d.ts
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Schema for user registration request body.
|
|
2066
2066
|
* Password is always required, other fields depend on realm settings.
|
|
@@ -2076,7 +2076,7 @@ declare const registerRequestSchema: alepha23.TObject<{
|
|
|
2076
2076
|
}>;
|
|
2077
2077
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2078
2078
|
//#endregion
|
|
2079
|
-
//#region src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
2079
|
+
//#region ../../src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
2080
2080
|
declare const registrationIntentResponseSchema: alepha23.TObject<{
|
|
2081
2081
|
intentId: alepha23.TString;
|
|
2082
2082
|
expectCaptcha: alepha23.TBoolean;
|
|
@@ -2086,7 +2086,7 @@ declare const registrationIntentResponseSchema: alepha23.TObject<{
|
|
|
2086
2086
|
}>;
|
|
2087
2087
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2088
2088
|
//#endregion
|
|
2089
|
-
//#region src/api-users/services/RegistrationService.d.ts
|
|
2089
|
+
//#region ../../src/api-users/services/RegistrationService.d.ts
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Intent stored in cache during the registration flow.
|
|
2092
2092
|
*/
|
|
@@ -2152,7 +2152,7 @@ declare class RegistrationService {
|
|
|
2152
2152
|
protected verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
2153
2153
|
}
|
|
2154
2154
|
//#endregion
|
|
2155
|
-
//#region src/api-users/schemas/createUserSchema.d.ts
|
|
2155
|
+
//#region ../../src/api-users/schemas/createUserSchema.d.ts
|
|
2156
2156
|
declare const createUserSchema: alepha23.TObject<{
|
|
2157
2157
|
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
2158
2158
|
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
@@ -2170,7 +2170,7 @@ declare const createUserSchema: alepha23.TObject<{
|
|
|
2170
2170
|
}>;
|
|
2171
2171
|
type CreateUser = Static<typeof createUserSchema>;
|
|
2172
2172
|
//#endregion
|
|
2173
|
-
//#region src/api-users/schemas/updateUserSchema.d.ts
|
|
2173
|
+
//#region ../../src/api-users/schemas/updateUserSchema.d.ts
|
|
2174
2174
|
declare const updateUserSchema: alepha23.TObject<{
|
|
2175
2175
|
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2176
2176
|
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
@@ -2183,7 +2183,7 @@ declare const updateUserSchema: alepha23.TObject<{
|
|
|
2183
2183
|
}>;
|
|
2184
2184
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
2185
2185
|
//#endregion
|
|
2186
|
-
//#region src/api-users/schemas/userQuerySchema.d.ts
|
|
2186
|
+
//#region ../../src/api-users/schemas/userQuerySchema.d.ts
|
|
2187
2187
|
declare const userQuerySchema: alepha23.TObject<{
|
|
2188
2188
|
page: alepha23.TOptional<alepha23.TInteger>;
|
|
2189
2189
|
size: alepha23.TOptional<alepha23.TInteger>;
|
|
@@ -2196,7 +2196,7 @@ declare const userQuerySchema: alepha23.TObject<{
|
|
|
2196
2196
|
}>;
|
|
2197
2197
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
2198
2198
|
//#endregion
|
|
2199
|
-
//#region src/api-users/services/UserService.d.ts
|
|
2199
|
+
//#region ../../src/api-users/services/UserService.d.ts
|
|
2200
2200
|
declare class UserService {
|
|
2201
2201
|
protected readonly log: alepha_logger1.Logger;
|
|
2202
2202
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
@@ -2257,7 +2257,7 @@ declare class UserService {
|
|
|
2257
2257
|
deleteUser(id: string, userRealmName?: string): Promise<void>;
|
|
2258
2258
|
}
|
|
2259
2259
|
//#endregion
|
|
2260
|
-
//#region src/api-users/controllers/UserController.d.ts
|
|
2260
|
+
//#region ../../src/api-users/controllers/UserController.d.ts
|
|
2261
2261
|
declare class UserController {
|
|
2262
2262
|
protected readonly url = "/users";
|
|
2263
2263
|
protected readonly group = "users";
|
|
@@ -2597,7 +2597,7 @@ declare class UserController {
|
|
|
2597
2597
|
}>;
|
|
2598
2598
|
}
|
|
2599
2599
|
//#endregion
|
|
2600
|
-
//#region src/api-users/controllers/UserRealmController.d.ts
|
|
2600
|
+
//#region ../../src/api-users/controllers/UserRealmController.d.ts
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Controller for exposing realm configuration.
|
|
2603
2603
|
* Uses $route instead of $action to keep endpoints hidden from API documentation.
|
|
@@ -2657,7 +2657,7 @@ declare class UserRealmController {
|
|
|
2657
2657
|
}>;
|
|
2658
2658
|
}
|
|
2659
2659
|
//#endregion
|
|
2660
|
-
//#region src/api-users/primitives/$userRealm.d.ts
|
|
2660
|
+
//#region ../../src/api-users/primitives/$userRealm.d.ts
|
|
2661
2661
|
type UserRealmPrimitive = RealmPrimitive & WithLinkFn & WithLoginFn;
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Already configured realm for user management.
|
|
@@ -2706,7 +2706,7 @@ interface UserRealmOptions {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
}
|
|
2708
2708
|
//#endregion
|
|
2709
|
-
//#region src/api-users/schemas/identityResourceSchema.d.ts
|
|
2709
|
+
//#region ../../src/api-users/schemas/identityResourceSchema.d.ts
|
|
2710
2710
|
declare const identityResourceSchema: alepha23.TObject<{
|
|
2711
2711
|
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2712
2712
|
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
@@ -2719,14 +2719,14 @@ declare const identityResourceSchema: alepha23.TObject<{
|
|
|
2719
2719
|
}>;
|
|
2720
2720
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2721
2721
|
//#endregion
|
|
2722
|
-
//#region src/api-users/schemas/loginSchema.d.ts
|
|
2722
|
+
//#region ../../src/api-users/schemas/loginSchema.d.ts
|
|
2723
2723
|
declare const loginSchema: alepha23.TObject<{
|
|
2724
2724
|
username: alepha23.TString;
|
|
2725
2725
|
password: alepha23.TString;
|
|
2726
2726
|
}>;
|
|
2727
2727
|
type LoginInput = Static<typeof loginSchema>;
|
|
2728
2728
|
//#endregion
|
|
2729
|
-
//#region src/api-users/schemas/registerSchema.d.ts
|
|
2729
|
+
//#region ../../src/api-users/schemas/registerSchema.d.ts
|
|
2730
2730
|
declare const registerSchema: alepha23.TObject<{
|
|
2731
2731
|
username: alepha23.TString;
|
|
2732
2732
|
email: alepha23.TString;
|
|
@@ -2737,7 +2737,7 @@ declare const registerSchema: alepha23.TObject<{
|
|
|
2737
2737
|
}>;
|
|
2738
2738
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2739
2739
|
//#endregion
|
|
2740
|
-
//#region src/api-users/schemas/resetPasswordSchema.d.ts
|
|
2740
|
+
//#region ../../src/api-users/schemas/resetPasswordSchema.d.ts
|
|
2741
2741
|
declare const resetPasswordRequestSchema: alepha23.TObject<{
|
|
2742
2742
|
email: alepha23.TString;
|
|
2743
2743
|
}>;
|
|
@@ -2749,7 +2749,7 @@ declare const resetPasswordSchema: alepha23.TObject<{
|
|
|
2749
2749
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2750
2750
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2751
2751
|
//#endregion
|
|
2752
|
-
//#region src/api-users/schemas/sessionResourceSchema.d.ts
|
|
2752
|
+
//#region ../../src/api-users/schemas/sessionResourceSchema.d.ts
|
|
2753
2753
|
declare const sessionResourceSchema: alepha23.TObject<{
|
|
2754
2754
|
id: alepha23.TString;
|
|
2755
2755
|
version: alepha23.TNumber;
|
|
@@ -2767,7 +2767,7 @@ declare const sessionResourceSchema: alepha23.TObject<{
|
|
|
2767
2767
|
}>;
|
|
2768
2768
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2769
2769
|
//#endregion
|
|
2770
|
-
//#region src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
2770
|
+
//#region ../../src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
2771
2771
|
declare const userRealmConfigSchema: alepha23.TObject<{
|
|
2772
2772
|
settings: alepha23.TObject<{
|
|
2773
2773
|
registrationAllowed: alepha23.TBoolean;
|
|
@@ -2798,7 +2798,7 @@ declare const userRealmConfigSchema: alepha23.TObject<{
|
|
|
2798
2798
|
}>;
|
|
2799
2799
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
2800
2800
|
//#endregion
|
|
2801
|
-
//#region src/api-users/schemas/userResourceSchema.d.ts
|
|
2801
|
+
//#region ../../src/api-users/schemas/userResourceSchema.d.ts
|
|
2802
2802
|
declare const userResourceSchema: alepha23.TObject<{
|
|
2803
2803
|
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2804
2804
|
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
@@ -2817,7 +2817,7 @@ declare const userResourceSchema: alepha23.TObject<{
|
|
|
2817
2817
|
}>;
|
|
2818
2818
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2819
2819
|
//#endregion
|
|
2820
|
-
//#region src/api-users/services/SessionService.d.ts
|
|
2820
|
+
//#region ../../src/api-users/services/SessionService.d.ts
|
|
2821
2821
|
declare class SessionService {
|
|
2822
2822
|
protected readonly alepha: Alepha;
|
|
2823
2823
|
protected readonly fsp: FileSystemProvider;
|
|
@@ -2964,7 +2964,7 @@ declare class SessionService {
|
|
|
2964
2964
|
}>;
|
|
2965
2965
|
}
|
|
2966
2966
|
//#endregion
|
|
2967
|
-
//#region src/api-users/index.d.ts
|
|
2967
|
+
//#region ../../src/api-users/index.d.ts
|
|
2968
2968
|
/**
|
|
2969
2969
|
* Provides user management API endpoints for Alepha applications.
|
|
2970
2970
|
*
|