alepha 0.15.2 → 0.15.4
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 +68 -80
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +8 -0
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.d.ts +170 -170
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +1 -0
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +3 -0
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +1 -0
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.js +1 -0
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +260 -260
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +10 -0
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.d.ts +12 -1
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +18 -2
- package/dist/api/users/index.js.map +1 -1
- package/dist/batch/index.d.ts +4 -4
- package/dist/bucket/index.d.ts +8 -0
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +7 -2
- package/dist/bucket/index.js.map +1 -1
- package/dist/cli/index.d.ts +196 -74
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +234 -50
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +10 -0
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +67 -13
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +28 -21
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +28 -21
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +28 -21
- package/dist/core/index.native.js.map +1 -1
- package/dist/email/index.d.ts +21 -13
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +10561 -4
- package/dist/email/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +6 -1
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +9 -1
- package/dist/lock/core/index.js.map +1 -1
- package/dist/mcp/index.d.ts +5 -5
- package/dist/orm/index.bun.js +32 -16
- package/dist/orm/index.bun.js.map +1 -1
- package/dist/orm/index.d.ts +4 -1
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +34 -22
- package/dist/orm/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +2 -1
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.js +2 -1
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +3 -3
- package/dist/react/router/index.browser.js +9 -15
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +305 -407
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +581 -781
- package/dist/react/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +13 -1
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +42 -4
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.d.ts +42 -42
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +8 -7
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -167
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +1 -0
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/health/index.d.ts +17 -17
- package/dist/server/links/index.d.ts +39 -39
- package/dist/server/links/index.js +1 -1
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/static/index.js +7 -2
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +8 -0
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +7 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +8 -0
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +7 -2
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js +734 -12
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +8 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +7 -2
- package/dist/system/index.js.map +1 -1
- package/dist/vite/index.d.ts +3 -2
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +42 -8
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +34 -34
- package/dist/websocket/index.d.ts.map +1 -1
- package/package.json +9 -4
- package/src/api/audits/controllers/AdminAuditController.ts +8 -0
- package/src/api/files/controllers/AdminFileStatsController.ts +1 -0
- package/src/api/jobs/controllers/AdminJobController.ts +3 -0
- package/src/api/logs/TODO.md +13 -10
- package/src/api/notifications/controllers/AdminNotificationController.ts +1 -0
- package/src/api/parameters/controllers/AdminConfigController.ts +10 -0
- package/src/api/users/controllers/AdminIdentityController.ts +3 -0
- package/src/api/users/controllers/AdminSessionController.ts +3 -0
- package/src/api/users/controllers/AdminUserController.ts +5 -0
- package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -0
- package/src/cli/atoms/buildOptions.ts +99 -9
- package/src/cli/commands/build.ts +150 -32
- package/src/cli/commands/db.ts +5 -7
- package/src/cli/commands/init.spec.ts +50 -6
- package/src/cli/commands/init.ts +28 -5
- package/src/cli/providers/ViteDevServerProvider.ts +31 -9
- package/src/cli/services/AlephaCliUtils.ts +16 -0
- package/src/cli/services/PackageManagerUtils.ts +2 -0
- package/src/cli/services/ProjectScaffolder.spec.ts +97 -0
- package/src/cli/services/ProjectScaffolder.ts +28 -6
- package/src/cli/templates/agentMd.ts +6 -1
- package/src/cli/templates/apiAppSecurityTs.ts +11 -0
- package/src/cli/templates/apiIndexTs.ts +18 -4
- package/src/cli/templates/webAppRouterTs.ts +25 -1
- package/src/cli/templates/webHelloComponentTsx.ts +15 -5
- package/src/command/helpers/Runner.spec.ts +135 -0
- package/src/command/helpers/Runner.ts +4 -1
- package/src/command/providers/CliProvider.spec.ts +325 -0
- package/src/command/providers/CliProvider.ts +117 -7
- package/src/core/Alepha.ts +32 -25
- package/src/email/index.workerd.ts +36 -0
- package/src/email/providers/WorkermailerEmailProvider.ts +221 -0
- package/src/lock/core/primitives/$lock.ts +13 -1
- package/src/orm/index.bun.ts +1 -1
- package/src/orm/index.ts +2 -6
- package/src/orm/providers/drivers/BunSqliteProvider.ts +4 -1
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +57 -30
- package/src/orm/providers/drivers/DatabaseProvider.ts +9 -1
- package/src/orm/providers/drivers/NodeSqliteProvider.ts +4 -1
- package/src/react/auth/services/ReactAuth.ts +3 -1
- package/src/react/router/atoms/ssrManifestAtom.ts +7 -0
- package/src/react/router/hooks/useActive.ts +1 -1
- package/src/react/router/hooks/useRouter.ts +1 -1
- package/src/react/router/index.ts +4 -0
- package/src/react/router/primitives/$page.browser.spec.tsx +24 -24
- package/src/react/router/primitives/$page.spec.tsx +0 -32
- package/src/react/router/primitives/$page.ts +6 -14
- package/src/react/router/providers/ReactBrowserProvider.ts +6 -3
- package/src/react/router/providers/ReactPageProvider.ts +1 -1
- package/src/react/router/providers/ReactPreloadProvider.spec.ts +142 -0
- package/src/react/router/providers/ReactPreloadProvider.ts +85 -0
- package/src/react/router/providers/ReactServerProvider.ts +21 -82
- package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
- package/src/react/router/providers/ReactServerTemplateProvider.ts +228 -665
- package/src/react/router/providers/SSRManifestProvider.ts +7 -0
- package/src/react/router/services/ReactRouter.ts +13 -13
- package/src/scheduler/index.workerd.ts +43 -0
- package/src/scheduler/providers/CronProvider.ts +53 -6
- package/src/scheduler/providers/WorkerdCronProvider.ts +102 -0
- package/src/security/__tests__/ServerSecurityProvider.spec.ts +77 -0
- package/src/security/providers/ServerSecurityProvider.ts +30 -22
- package/src/server/compress/providers/ServerCompressProvider.ts +6 -0
- package/src/server/core/providers/NodeHttpServerProvider.spec.ts +9 -3
- package/src/server/links/providers/ServerLinksProvider.spec.ts +332 -0
- package/src/server/links/providers/ServerLinksProvider.ts +1 -1
- package/src/system/index.browser.ts +25 -0
- package/src/system/index.workerd.ts +1 -0
- package/src/system/providers/FileSystemProvider.ts +8 -0
- package/src/system/providers/NodeFileSystemProvider.ts +11 -2
- package/src/vite/tasks/buildServer.ts +2 -12
- package/src/vite/tasks/generateCloudflare.ts +47 -8
- package/src/vite/tasks/generateDocker.ts +4 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha160 from "alepha";
|
|
2
2
|
import { Alepha, FileLike, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import { BucketPrimitive } from "alepha/bucket";
|
|
4
4
|
import * as alepha_server0 from "alepha/server";
|
|
5
5
|
import { Ok } from "alepha/server";
|
|
6
6
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
7
7
|
import * as alepha_logger0 from "alepha/logger";
|
|
8
|
-
import * as
|
|
8
|
+
import * as alepha_orm16 from "alepha/orm";
|
|
9
9
|
import { Page } from "alepha/orm";
|
|
10
10
|
import * as alepha_scheduler0 from "alepha/scheduler";
|
|
11
11
|
import "drizzle-orm/d1";
|
|
@@ -16,37 +16,37 @@ import "alepha/retry";
|
|
|
16
16
|
import "drizzle-orm/sqlite-core";
|
|
17
17
|
|
|
18
18
|
//#region ../../src/api/files/entities/files.d.ts
|
|
19
|
-
declare const files:
|
|
20
|
-
id:
|
|
21
|
-
version:
|
|
22
|
-
createdAt:
|
|
23
|
-
updatedAt:
|
|
24
|
-
blobId:
|
|
25
|
-
creator:
|
|
26
|
-
creatorRealm:
|
|
27
|
-
creatorName:
|
|
28
|
-
bucket:
|
|
29
|
-
expirationDate:
|
|
30
|
-
name:
|
|
31
|
-
size:
|
|
32
|
-
mimeType:
|
|
33
|
-
tags:
|
|
34
|
-
checksum:
|
|
19
|
+
declare const files: alepha_orm16.EntityPrimitive<alepha160.TObject<{
|
|
20
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
21
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
22
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
23
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
24
|
+
blobId: alepha160.TString;
|
|
25
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
26
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
27
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
28
|
+
bucket: alepha160.TString;
|
|
29
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
30
|
+
name: alepha160.TString;
|
|
31
|
+
size: alepha160.TNumber;
|
|
32
|
+
mimeType: alepha160.TString;
|
|
33
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
34
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
35
35
|
}>>;
|
|
36
36
|
type FileEntity = Static<typeof files.schema>;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region ../../src/api/files/schemas/fileQuerySchema.d.ts
|
|
39
|
-
declare const fileQuerySchema:
|
|
40
|
-
page:
|
|
41
|
-
size:
|
|
42
|
-
sort:
|
|
43
|
-
bucket:
|
|
44
|
-
tags:
|
|
45
|
-
name:
|
|
46
|
-
mimeType:
|
|
47
|
-
creator:
|
|
48
|
-
createdAfter:
|
|
49
|
-
createdBefore:
|
|
39
|
+
declare const fileQuerySchema: alepha160.TObject<{
|
|
40
|
+
page: alepha160.TOptional<alepha160.TInteger>;
|
|
41
|
+
size: alepha160.TOptional<alepha160.TInteger>;
|
|
42
|
+
sort: alepha160.TOptional<alepha160.TString>;
|
|
43
|
+
bucket: alepha160.TOptional<alepha160.TString>;
|
|
44
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
45
|
+
name: alepha160.TOptional<alepha160.TString>;
|
|
46
|
+
mimeType: alepha160.TOptional<alepha160.TString>;
|
|
47
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
48
|
+
createdAfter: alepha160.TOptional<alepha160.TString>;
|
|
49
|
+
createdBefore: alepha160.TOptional<alepha160.TString>;
|
|
50
50
|
}>;
|
|
51
51
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
52
52
|
//#endregion
|
|
@@ -267,46 +267,46 @@ interface PgRefOptions {
|
|
|
267
267
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
268
268
|
//#endregion
|
|
269
269
|
//#region ../../src/api/files/schemas/fileResourceSchema.d.ts
|
|
270
|
-
declare const fileResourceSchema:
|
|
271
|
-
id: PgAttr<PgAttr<
|
|
272
|
-
version: PgAttr<PgAttr<
|
|
273
|
-
createdAt: PgAttr<PgAttr<
|
|
274
|
-
updatedAt: PgAttr<PgAttr<
|
|
275
|
-
blobId:
|
|
276
|
-
creator:
|
|
277
|
-
creatorRealm:
|
|
278
|
-
creatorName:
|
|
279
|
-
bucket:
|
|
280
|
-
expirationDate:
|
|
281
|
-
name:
|
|
282
|
-
size:
|
|
283
|
-
mimeType:
|
|
284
|
-
tags:
|
|
285
|
-
checksum:
|
|
270
|
+
declare const fileResourceSchema: alepha160.TObject<{
|
|
271
|
+
id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
272
|
+
version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
273
|
+
createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
274
|
+
updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
275
|
+
blobId: alepha160.TString;
|
|
276
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
277
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
278
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
279
|
+
bucket: alepha160.TString;
|
|
280
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
281
|
+
name: alepha160.TString;
|
|
282
|
+
size: alepha160.TNumber;
|
|
283
|
+
mimeType: alepha160.TString;
|
|
284
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
285
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
286
286
|
}>;
|
|
287
287
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region ../../src/api/files/schemas/storageStatsSchema.d.ts
|
|
290
|
-
declare const bucketStatsSchema:
|
|
291
|
-
bucket:
|
|
292
|
-
totalSize:
|
|
293
|
-
fileCount:
|
|
290
|
+
declare const bucketStatsSchema: alepha160.TObject<{
|
|
291
|
+
bucket: alepha160.TString;
|
|
292
|
+
totalSize: alepha160.TNumber;
|
|
293
|
+
fileCount: alepha160.TNumber;
|
|
294
294
|
}>;
|
|
295
|
-
declare const mimeTypeStatsSchema:
|
|
296
|
-
mimeType:
|
|
297
|
-
fileCount:
|
|
295
|
+
declare const mimeTypeStatsSchema: alepha160.TObject<{
|
|
296
|
+
mimeType: alepha160.TString;
|
|
297
|
+
fileCount: alepha160.TNumber;
|
|
298
298
|
}>;
|
|
299
|
-
declare const storageStatsSchema:
|
|
300
|
-
totalSize:
|
|
301
|
-
totalFiles:
|
|
302
|
-
byBucket:
|
|
303
|
-
bucket:
|
|
304
|
-
totalSize:
|
|
305
|
-
fileCount:
|
|
299
|
+
declare const storageStatsSchema: alepha160.TObject<{
|
|
300
|
+
totalSize: alepha160.TNumber;
|
|
301
|
+
totalFiles: alepha160.TNumber;
|
|
302
|
+
byBucket: alepha160.TArray<alepha160.TObject<{
|
|
303
|
+
bucket: alepha160.TString;
|
|
304
|
+
totalSize: alepha160.TNumber;
|
|
305
|
+
fileCount: alepha160.TNumber;
|
|
306
306
|
}>>;
|
|
307
|
-
byMimeType:
|
|
308
|
-
mimeType:
|
|
309
|
-
fileCount:
|
|
307
|
+
byMimeType: alepha160.TArray<alepha160.TObject<{
|
|
308
|
+
mimeType: alepha160.TString;
|
|
309
|
+
fileCount: alepha160.TNumber;
|
|
310
310
|
}>>;
|
|
311
311
|
}>;
|
|
312
312
|
type BucketStats = Static<typeof bucketStatsSchema>;
|
|
@@ -317,27 +317,27 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
317
317
|
declare class FileService {
|
|
318
318
|
protected readonly alepha: Alepha;
|
|
319
319
|
protected readonly log: alepha_logger0.Logger;
|
|
320
|
-
protected readonly fileRepository:
|
|
321
|
-
id:
|
|
322
|
-
version:
|
|
323
|
-
createdAt:
|
|
324
|
-
updatedAt:
|
|
325
|
-
blobId:
|
|
326
|
-
creator:
|
|
327
|
-
creatorRealm:
|
|
328
|
-
creatorName:
|
|
329
|
-
bucket:
|
|
330
|
-
expirationDate:
|
|
331
|
-
name:
|
|
332
|
-
size:
|
|
333
|
-
mimeType:
|
|
334
|
-
tags:
|
|
335
|
-
checksum:
|
|
320
|
+
protected readonly fileRepository: alepha_orm16.Repository<alepha160.TObject<{
|
|
321
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
322
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
323
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
324
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
325
|
+
blobId: alepha160.TString;
|
|
326
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
327
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
328
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
329
|
+
bucket: alepha160.TString;
|
|
330
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
331
|
+
name: alepha160.TString;
|
|
332
|
+
size: alepha160.TNumber;
|
|
333
|
+
mimeType: alepha160.TString;
|
|
334
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
335
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
336
336
|
}>>;
|
|
337
337
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
338
338
|
protected readonly defaultBucket: BucketPrimitive;
|
|
339
|
-
protected onUploadFile:
|
|
340
|
-
protected onDeleteBucketFile:
|
|
339
|
+
protected onUploadFile: alepha160.HookPrimitive<"bucket:file:uploaded">;
|
|
340
|
+
protected onDeleteBucketFile: alepha160.HookPrimitive<"bucket:file:deleted">;
|
|
341
341
|
/**
|
|
342
342
|
* Calculates SHA-256 checksum of a file.
|
|
343
343
|
*
|
|
@@ -472,17 +472,17 @@ declare class AdminFileStatsController {
|
|
|
472
472
|
* and breakdowns by bucket and MIME type.
|
|
473
473
|
*/
|
|
474
474
|
readonly getStats: alepha_server0.ActionPrimitiveFn<{
|
|
475
|
-
response:
|
|
476
|
-
totalSize:
|
|
477
|
-
totalFiles:
|
|
478
|
-
byBucket:
|
|
479
|
-
bucket:
|
|
480
|
-
totalSize:
|
|
481
|
-
fileCount:
|
|
475
|
+
response: alepha160.TObject<{
|
|
476
|
+
totalSize: alepha160.TNumber;
|
|
477
|
+
totalFiles: alepha160.TNumber;
|
|
478
|
+
byBucket: alepha160.TArray<alepha160.TObject<{
|
|
479
|
+
bucket: alepha160.TString;
|
|
480
|
+
totalSize: alepha160.TNumber;
|
|
481
|
+
fileCount: alepha160.TNumber;
|
|
482
482
|
}>>;
|
|
483
|
-
byMimeType:
|
|
484
|
-
mimeType:
|
|
485
|
-
fileCount:
|
|
483
|
+
byMimeType: alepha160.TArray<alepha160.TObject<{
|
|
484
|
+
mimeType: alepha160.TString;
|
|
485
|
+
fileCount: alepha160.TNumber;
|
|
486
486
|
}>>;
|
|
487
487
|
}>;
|
|
488
488
|
}>;
|
|
@@ -502,34 +502,34 @@ declare class FileController {
|
|
|
502
502
|
* Supports filtering by bucket and tags.
|
|
503
503
|
*/
|
|
504
504
|
readonly findFiles: alepha_server0.ActionPrimitiveFn<{
|
|
505
|
-
query:
|
|
506
|
-
page:
|
|
507
|
-
size:
|
|
508
|
-
sort:
|
|
509
|
-
bucket:
|
|
510
|
-
tags:
|
|
511
|
-
name:
|
|
512
|
-
mimeType:
|
|
513
|
-
creator:
|
|
514
|
-
createdAfter:
|
|
515
|
-
createdBefore:
|
|
505
|
+
query: alepha160.TObject<{
|
|
506
|
+
page: alepha160.TOptional<alepha160.TInteger>;
|
|
507
|
+
size: alepha160.TOptional<alepha160.TInteger>;
|
|
508
|
+
sort: alepha160.TOptional<alepha160.TString>;
|
|
509
|
+
bucket: alepha160.TOptional<alepha160.TString>;
|
|
510
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
511
|
+
name: alepha160.TOptional<alepha160.TString>;
|
|
512
|
+
mimeType: alepha160.TOptional<alepha160.TString>;
|
|
513
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
514
|
+
createdAfter: alepha160.TOptional<alepha160.TString>;
|
|
515
|
+
createdBefore: alepha160.TOptional<alepha160.TString>;
|
|
516
516
|
}>;
|
|
517
|
-
response:
|
|
518
|
-
id: PgAttr<PgAttr<
|
|
519
|
-
version: PgAttr<PgAttr<
|
|
520
|
-
createdAt: PgAttr<PgAttr<
|
|
521
|
-
updatedAt: PgAttr<PgAttr<
|
|
522
|
-
blobId:
|
|
523
|
-
creator:
|
|
524
|
-
creatorRealm:
|
|
525
|
-
creatorName:
|
|
526
|
-
bucket:
|
|
527
|
-
expirationDate:
|
|
528
|
-
name:
|
|
529
|
-
size:
|
|
530
|
-
mimeType:
|
|
531
|
-
tags:
|
|
532
|
-
checksum:
|
|
517
|
+
response: alepha160.TPage<alepha160.TObject<{
|
|
518
|
+
id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
519
|
+
version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
520
|
+
createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
521
|
+
updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
522
|
+
blobId: alepha160.TString;
|
|
523
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
524
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
525
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
526
|
+
bucket: alepha160.TString;
|
|
527
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
528
|
+
name: alepha160.TString;
|
|
529
|
+
size: alepha160.TNumber;
|
|
530
|
+
mimeType: alepha160.TString;
|
|
531
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
532
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
533
533
|
}>>;
|
|
534
534
|
}>;
|
|
535
535
|
/**
|
|
@@ -537,13 +537,13 @@ declare class FileController {
|
|
|
537
537
|
* Removes the file from the bucket and cleans up the database record.
|
|
538
538
|
*/
|
|
539
539
|
readonly deleteFile: alepha_server0.ActionPrimitiveFn<{
|
|
540
|
-
params:
|
|
541
|
-
id:
|
|
540
|
+
params: alepha160.TObject<{
|
|
541
|
+
id: alepha160.TString;
|
|
542
542
|
}>;
|
|
543
|
-
response:
|
|
544
|
-
ok:
|
|
545
|
-
id:
|
|
546
|
-
count:
|
|
543
|
+
response: alepha160.TObject<{
|
|
544
|
+
ok: alepha160.TBoolean;
|
|
545
|
+
id: alepha160.TOptional<alepha160.TUnion<[alepha160.TString, alepha160.TInteger]>>;
|
|
546
|
+
count: alepha160.TOptional<alepha160.TNumber>;
|
|
547
547
|
}>;
|
|
548
548
|
}>;
|
|
549
549
|
/**
|
|
@@ -552,29 +552,29 @@ declare class FileController {
|
|
|
552
552
|
* Optionally specify bucket and expiration date.
|
|
553
553
|
*/
|
|
554
554
|
readonly uploadFile: alepha_server0.ActionPrimitiveFn<{
|
|
555
|
-
body:
|
|
556
|
-
file:
|
|
555
|
+
body: alepha160.TObject<{
|
|
556
|
+
file: alepha160.TFile;
|
|
557
557
|
}>;
|
|
558
|
-
query:
|
|
559
|
-
expirationDate:
|
|
560
|
-
bucket:
|
|
558
|
+
query: alepha160.TObject<{
|
|
559
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
560
|
+
bucket: alepha160.TOptional<alepha160.TString>;
|
|
561
561
|
}>;
|
|
562
|
-
response:
|
|
563
|
-
id: PgAttr<PgAttr<
|
|
564
|
-
version: PgAttr<PgAttr<
|
|
565
|
-
createdAt: PgAttr<PgAttr<
|
|
566
|
-
updatedAt: PgAttr<PgAttr<
|
|
567
|
-
blobId:
|
|
568
|
-
creator:
|
|
569
|
-
creatorRealm:
|
|
570
|
-
creatorName:
|
|
571
|
-
bucket:
|
|
572
|
-
expirationDate:
|
|
573
|
-
name:
|
|
574
|
-
size:
|
|
575
|
-
mimeType:
|
|
576
|
-
tags:
|
|
577
|
-
checksum:
|
|
562
|
+
response: alepha160.TObject<{
|
|
563
|
+
id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
564
|
+
version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
565
|
+
createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
566
|
+
updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
567
|
+
blobId: alepha160.TString;
|
|
568
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
569
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
570
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
571
|
+
bucket: alepha160.TString;
|
|
572
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
573
|
+
name: alepha160.TString;
|
|
574
|
+
size: alepha160.TNumber;
|
|
575
|
+
mimeType: alepha160.TString;
|
|
576
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
577
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
578
578
|
}>;
|
|
579
579
|
}>;
|
|
580
580
|
/**
|
|
@@ -582,30 +582,30 @@ declare class FileController {
|
|
|
582
582
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
583
583
|
*/
|
|
584
584
|
readonly updateFile: alepha_server0.ActionPrimitiveFn<{
|
|
585
|
-
params:
|
|
586
|
-
id:
|
|
585
|
+
params: alepha160.TObject<{
|
|
586
|
+
id: alepha160.TString;
|
|
587
587
|
}>;
|
|
588
|
-
body:
|
|
589
|
-
name:
|
|
590
|
-
tags:
|
|
591
|
-
expirationDate:
|
|
588
|
+
body: alepha160.TObject<{
|
|
589
|
+
name: alepha160.TOptional<alepha160.TString>;
|
|
590
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
591
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
592
592
|
}>;
|
|
593
|
-
response:
|
|
594
|
-
id: PgAttr<PgAttr<
|
|
595
|
-
version: PgAttr<PgAttr<
|
|
596
|
-
createdAt: PgAttr<PgAttr<
|
|
597
|
-
updatedAt: PgAttr<PgAttr<
|
|
598
|
-
blobId:
|
|
599
|
-
creator:
|
|
600
|
-
creatorRealm:
|
|
601
|
-
creatorName:
|
|
602
|
-
bucket:
|
|
603
|
-
expirationDate:
|
|
604
|
-
name:
|
|
605
|
-
size:
|
|
606
|
-
mimeType:
|
|
607
|
-
tags:
|
|
608
|
-
checksum:
|
|
593
|
+
response: alepha160.TObject<{
|
|
594
|
+
id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
595
|
+
version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
596
|
+
createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
597
|
+
updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
598
|
+
blobId: alepha160.TString;
|
|
599
|
+
creator: alepha160.TOptional<alepha160.TString>;
|
|
600
|
+
creatorRealm: alepha160.TOptional<alepha160.TString>;
|
|
601
|
+
creatorName: alepha160.TOptional<alepha160.TString>;
|
|
602
|
+
bucket: alepha160.TString;
|
|
603
|
+
expirationDate: alepha160.TOptional<alepha160.TString>;
|
|
604
|
+
name: alepha160.TString;
|
|
605
|
+
size: alepha160.TNumber;
|
|
606
|
+
mimeType: alepha160.TString;
|
|
607
|
+
tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
|
|
608
|
+
checksum: alepha160.TOptional<alepha160.TString>;
|
|
609
609
|
}>;
|
|
610
610
|
}>;
|
|
611
611
|
/**
|
|
@@ -614,10 +614,10 @@ declare class FileController {
|
|
|
614
614
|
* Cached with ETag support for 1 year (immutable).
|
|
615
615
|
*/
|
|
616
616
|
readonly streamFile: alepha_server0.ActionPrimitiveFn<{
|
|
617
|
-
params:
|
|
618
|
-
id:
|
|
617
|
+
params: alepha160.TObject<{
|
|
618
|
+
id: alepha160.TString;
|
|
619
619
|
}>;
|
|
620
|
-
response:
|
|
620
|
+
response: alepha160.TFile;
|
|
621
621
|
}>;
|
|
622
622
|
}
|
|
623
623
|
//#endregion
|
|
@@ -665,7 +665,7 @@ declare module "alepha/bucket" {
|
|
|
665
665
|
*
|
|
666
666
|
* @module alepha.api.files
|
|
667
667
|
*/
|
|
668
|
-
declare const AlephaApiFiles:
|
|
668
|
+
declare const AlephaApiFiles: alepha160.Service<alepha160.Module>;
|
|
669
669
|
//#endregion
|
|
670
670
|
export { AdminFileStatsController, AlephaApiFiles, BucketStats, FileController, FileEntity, FileJobs, FileService, MimeTypeStats, StorageStats, bucketStatsSchema, files, mimeTypeStatsSchema, storageStatsSchema };
|
|
671
671
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/schemas/insertSchema.ts","../../../src/orm/schemas/updateSchema.ts","../../../src/orm/primitives/$entity.ts","../../../src/orm/constants/PG_SYMBOLS.ts","../../../src/orm/helpers/pgAttr.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAGa,KAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/schemas/insertSchema.ts","../../../src/orm/schemas/updateSchema.ts","../../../src/orm/primitives/$entity.ts","../../../src/orm/constants/PG_SYMBOLS.ts","../../../src/orm/helpers/pgAttr.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAGa,KAAA,EAAK,YAAA,CAAA,eAAA,WAAA,OAAA;8CA6BhB,SAAA,CAAA,OAAA;;;;;;;;;;;;;;;;KAEU,UAAA,GAAa,MAAA,QAAc,KAAA,CAAM,MAAA;;;cC9BhC,eAAA,YAAe,OAAA;4BAQ1B,SAAA,CAAA,QAAA;;;;;;;;;;;KAEU,SAAA,GAAY,MAAA,QAAc,eAAA;;;;;;;;;;;KCD1B,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,iBAAkB,CAAA,eAAgB,CAAA;EAAA,CACvC,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCDV,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,iBAAkB,CAAA,eAAgB,CAAA,UAAW,SAAA,YACrD,SAAA,CAAU,MAAA,EAAQ,CAAA,EAAG,KAAA,MACrB,CAAA,eAAgB,CAAA;;;UCgBL,sBAAA,WACL,OAAA,eACG,MAAA,CAAO,CAAA;;;;;EAMpB,IAAA;;;;EAKA,MAAA,EAAQ,CAAA;;;;EAKR,OAAA,IACI,IAAA;;;;IAKE,MAAA,EAAQ,IAAA;;;;IAIR,MAAA;;;;IAIA,IAAA;EAAA;;;;IAMA,OAAA,EAAS,IAAA;;;;IAIT,MAAA;IJ3EU;;;II+EV,IAAA;EAAA;;;;EAON,WAAA,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A,WAAA,EAAW,WAAA;;;;;WAMd,SAAA,iBAAS,iBAAA;;gCANK,SAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAqBd,UAAA,iBAAU,iBAAA;;UAfD,SAAA,CAAA,OAAA;IAAA;;;;;;;;;;;;WAkCT,UAAA,iBAAU,iBAAA;;YAnBA,SAAA,CAAA,KAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4CV,UAAA,iBAAU,iBAAA;;UAzBA,SAAA,CAAA,OAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;EXnBhB;;;;;EAAA,SWoEM,UAAA,iBAAU,iBAAA;;UAxBA,SAAA,CAAA,OAAA;IAAA;;;;;;cC1Ef,QAAA;EAAA,mBACQ,WAAA,EAAW,WAAA;EAAA,SAEd,UAAA,EAFc,iBAAA,CAEJ,kBAAA;AAAA;;;;YCgBhB,iBAAA;;;;IAIR,GAAA,GAAM,YAAA;;;;IAKN,IAAA;Ib7BS;;;IakCT,IAAA,GAAO,gBAAA;;;;;;IAOP,OAAA;EAAA;AAAA;;;;;;;;;;;;;;;;cAqBS,cAAA,EAAc,SAAA,CAAA,OAAA,CAYzB,SAAA,CAZyB,MAAA"}
|
package/dist/api/files/index.js
CHANGED
|
@@ -337,6 +337,7 @@ var AdminFileStatsController = class {
|
|
|
337
337
|
getStats = $action({
|
|
338
338
|
path: this.url,
|
|
339
339
|
group: this.group,
|
|
340
|
+
secure: true,
|
|
340
341
|
description: "Get storage statistics",
|
|
341
342
|
schema: { response: storageStatsSchema },
|
|
342
343
|
handler: () => this.fileService.getStorageStats()
|