alepha 0.14.3 → 0.14.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 +1 -1
- package/dist/api/audits/index.d.ts +338 -417
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +1 -80
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +156 -235
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/notifications/index.d.ts +170 -249
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +266 -345
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/users/index.d.ts +755 -834
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/verifications/index.d.ts +125 -125
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/cli/index.d.ts +116 -20
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +212 -124
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +6 -11
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +26 -4
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +16 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +26 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +26 -4
- package/dist/core/index.native.js.map +1 -1
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +12 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.d.ts +37 -173
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +193 -422
- package/dist/orm/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -167
- package/dist/server/cache/index.d.ts +12 -0
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +55 -2
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts +6 -0
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +36 -1
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/core/index.browser.js +2 -2
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +10 -10
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +6 -3
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/links/index.d.ts +39 -39
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/security/index.d.ts +9 -9
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js +4 -0
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +2 -3
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/vite/index.d.ts +101 -106
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +571 -508
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/apps/AlephaCli.ts +0 -2
- package/src/cli/atoms/buildOptions.ts +88 -0
- package/src/cli/commands/build.ts +32 -69
- package/src/cli/commands/db.ts +0 -4
- package/src/cli/commands/dev.ts +16 -4
- package/src/cli/commands/gen/env.ts +53 -0
- package/src/cli/commands/gen/openapi.ts +1 -1
- package/src/cli/commands/gen/resource.ts +15 -0
- package/src/cli/commands/gen.ts +7 -1
- package/src/cli/commands/init.ts +0 -1
- package/src/cli/commands/test.ts +0 -1
- package/src/cli/commands/verify.ts +1 -1
- package/src/cli/defineConfig.ts +49 -7
- package/src/cli/index.ts +0 -1
- package/src/cli/services/AlephaCliUtils.ts +36 -25
- package/src/command/helpers/Runner.spec.ts +2 -2
- package/src/command/helpers/Runner.ts +1 -1
- package/src/command/primitives/$command.ts +0 -6
- package/src/command/providers/CliProvider.ts +1 -3
- package/src/core/Alepha.ts +42 -0
- package/src/logger/index.ts +15 -3
- package/src/mcp/transports/StdioMcpTransport.ts +1 -1
- package/src/orm/index.ts +2 -8
- package/src/queue/core/providers/WorkerProvider.spec.ts +48 -32
- package/src/server/cache/providers/ServerCacheProvider.spec.ts +183 -0
- package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
- package/src/server/compress/providers/ServerCompressProvider.ts +61 -2
- package/src/server/core/helpers/ServerReply.ts +2 -2
- package/src/server/core/providers/ServerProvider.ts +11 -1
- package/src/server/static/providers/ServerStaticProvider.ts +10 -0
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +5 -8
- package/src/vite/helpers/importViteReact.ts +13 -0
- package/src/vite/index.ts +1 -21
- package/src/vite/plugins/viteAlephaDev.ts +16 -1
- package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
- package/src/vite/tasks/buildClient.ts +11 -0
- package/src/vite/tasks/buildServer.ts +47 -3
- package/src/vite/tasks/devServer.ts +69 -0
- package/src/vite/tasks/index.ts +2 -1
- package/src/cli/assets/viteConfigTs.ts +0 -14
- package/src/cli/commands/run.ts +0 -24
- package/src/vite/plugins/viteAlepha.ts +0 -37
- package/src/vite/plugins/viteAlephaBuild.ts +0 -281
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha588 from "alepha";
|
|
2
2
|
import { KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_server0 from "alepha/server";
|
|
4
4
|
import { DateTimeProvider } from "alepha/datetime";
|
|
@@ -6,17 +6,13 @@ import * as alepha_logger0 from "alepha/logger";
|
|
|
6
6
|
import * as alepha_orm14 from "alepha/orm";
|
|
7
7
|
import * as alepha_topic0 from "alepha/topic";
|
|
8
8
|
import * as alepha_scheduler0 from "alepha/scheduler";
|
|
9
|
-
import "bun";
|
|
10
|
-
import "bun:sqlite";
|
|
11
|
-
import "drizzle-orm/bun-sql";
|
|
12
|
-
import "drizzle-orm/bun-sqlite";
|
|
13
9
|
import "drizzle-orm/d1";
|
|
14
10
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
15
11
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
16
12
|
import "alepha/retry";
|
|
17
|
-
import "alepha/lock";
|
|
18
13
|
import * as typebox0 from "typebox";
|
|
19
14
|
import "drizzle-orm/sqlite-core";
|
|
15
|
+
import "alepha/lock";
|
|
20
16
|
import "drizzle-orm/postgres-js";
|
|
21
17
|
import "postgres";
|
|
22
18
|
import { UserAccount } from "alepha/security";
|
|
@@ -25,7 +21,7 @@ import { UserAccount } from "alepha/security";
|
|
|
25
21
|
/**
|
|
26
22
|
* Parameter status enum schema.
|
|
27
23
|
*/
|
|
28
|
-
declare const parameterStatusSchema:
|
|
24
|
+
declare const parameterStatusSchema: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
29
25
|
type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
30
26
|
//#endregion
|
|
31
27
|
//#region ../../src/api/parameters/entities/parameters.d.ts
|
|
@@ -38,67 +34,67 @@ type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
|
38
34
|
* - Activation scheduling
|
|
39
35
|
* - Audit trail (creator info)
|
|
40
36
|
*/
|
|
41
|
-
declare const parameters: alepha_orm14.EntityPrimitive<
|
|
42
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
43
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
44
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
37
|
+
declare const parameters: alepha_orm14.EntityPrimitive<alepha588.TObject<{
|
|
38
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
39
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
40
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
45
41
|
/**
|
|
46
42
|
* Configuration name using dot notation for tree hierarchy.
|
|
47
43
|
* Examples: "app.features", "app.pricing.tiers", "system.limits"
|
|
48
44
|
*/
|
|
49
|
-
name:
|
|
45
|
+
name: alepha588.TString;
|
|
50
46
|
/**
|
|
51
47
|
* The configuration content as JSON.
|
|
52
48
|
*/
|
|
53
|
-
content:
|
|
49
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
54
50
|
/**
|
|
55
51
|
* Schema version hash for detecting schema changes.
|
|
56
52
|
* Used for auto-migration when schema evolves.
|
|
57
53
|
*/
|
|
58
|
-
schemaHash:
|
|
54
|
+
schemaHash: alepha588.TString;
|
|
59
55
|
/**
|
|
60
56
|
* Current status of this parameter version.
|
|
61
57
|
*/
|
|
62
|
-
status: alepha_orm14.PgAttr<
|
|
58
|
+
status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
63
59
|
/**
|
|
64
60
|
* When this version should become active.
|
|
65
61
|
* Default is immediate (now).
|
|
66
62
|
*/
|
|
67
|
-
activationDate:
|
|
63
|
+
activationDate: alepha588.TString;
|
|
68
64
|
/**
|
|
69
65
|
* When this version was deactivated (became expired).
|
|
70
66
|
* Null if still active or scheduled.
|
|
71
67
|
*/
|
|
72
|
-
expiredAt:
|
|
68
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
73
69
|
/**
|
|
74
70
|
* Version number for this configuration.
|
|
75
71
|
* Auto-incremented per config name.
|
|
76
72
|
*/
|
|
77
|
-
version:
|
|
73
|
+
version: alepha588.TInteger;
|
|
78
74
|
/**
|
|
79
75
|
* Optional description of changes in this version.
|
|
80
76
|
*/
|
|
81
|
-
changeDescription:
|
|
77
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
82
78
|
/**
|
|
83
79
|
* Optional tags for filtering/categorization.
|
|
84
80
|
*/
|
|
85
|
-
tags:
|
|
81
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
86
82
|
/**
|
|
87
83
|
* Creator user ID (if available).
|
|
88
84
|
*/
|
|
89
|
-
creatorId:
|
|
85
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
90
86
|
/**
|
|
91
87
|
* Creator display name for audit trail.
|
|
92
88
|
*/
|
|
93
|
-
creatorName:
|
|
89
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
94
90
|
/**
|
|
95
91
|
* Previous content before this change (for rollback reference).
|
|
96
92
|
*/
|
|
97
|
-
previousContent:
|
|
93
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
98
94
|
/**
|
|
99
95
|
* Migration log if schema changed.
|
|
100
96
|
*/
|
|
101
|
-
migrationLog:
|
|
97
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
102
98
|
}>>;
|
|
103
99
|
type Parameter = Static<typeof parameters.schema>;
|
|
104
100
|
type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
|
|
@@ -319,86 +315,11 @@ interface PgRefOptions {
|
|
|
319
315
|
*/
|
|
320
316
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
321
317
|
//#endregion
|
|
322
|
-
//#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
|
|
323
|
-
declare module "alepha" {
|
|
324
|
-
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
325
|
-
}
|
|
326
|
-
declare const envSchema$1: alepha624.TObject<{
|
|
327
|
-
/**
|
|
328
|
-
* Main configuration for database connection.
|
|
329
|
-
* Accept a string in the format of a Postgres connection URL.
|
|
330
|
-
* Example: postgres://user:password@localhost:5432/database
|
|
331
|
-
* or
|
|
332
|
-
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
333
|
-
*/
|
|
334
|
-
DATABASE_URL: alepha624.TOptional<alepha624.TString>;
|
|
335
|
-
/**
|
|
336
|
-
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
337
|
-
*/
|
|
338
|
-
POSTGRES_SCHEMA: alepha624.TOptional<alepha624.TString>;
|
|
339
|
-
}>;
|
|
340
|
-
/**
|
|
341
|
-
* Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
|
|
342
|
-
*
|
|
343
|
-
* This provider uses Bun's built-in SQL class for PostgreSQL connections,
|
|
344
|
-
* which provides excellent performance on the Bun runtime.
|
|
345
|
-
*
|
|
346
|
-
* @example
|
|
347
|
-
* ```ts
|
|
348
|
-
* // Set DATABASE_URL environment variable
|
|
349
|
-
* // DATABASE_URL=postgres://user:password@localhost:5432/database
|
|
350
|
-
*
|
|
351
|
-
* // Or configure programmatically
|
|
352
|
-
* alepha.with({
|
|
353
|
-
* provide: DatabaseProvider,
|
|
354
|
-
* use: BunPostgresProvider,
|
|
355
|
-
* });
|
|
356
|
-
* ```
|
|
357
|
-
*/
|
|
358
|
-
//#endregion
|
|
359
|
-
//#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
|
|
360
|
-
/**
|
|
361
|
-
* Configuration options for the Bun SQLite database provider.
|
|
362
|
-
*/
|
|
363
|
-
declare const bunSqliteOptions: alepha624.Atom<alepha624.TObject<{
|
|
364
|
-
path: alepha624.TOptional<alepha624.TString>;
|
|
365
|
-
}>, "alepha.postgres.bun-sqlite.options">;
|
|
366
|
-
type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
|
|
367
|
-
declare module "alepha" {
|
|
368
|
-
interface State {
|
|
369
|
-
[bunSqliteOptions.key]: BunSqliteProviderOptions;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
|
|
374
|
-
*
|
|
375
|
-
* This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
|
|
376
|
-
* which provides excellent performance on the Bun runtime.
|
|
377
|
-
*
|
|
378
|
-
* @example
|
|
379
|
-
* ```ts
|
|
380
|
-
* // Set DATABASE_URL environment variable
|
|
381
|
-
* // DATABASE_URL=sqlite://./my-database.db
|
|
382
|
-
*
|
|
383
|
-
* // Or configure programmatically
|
|
384
|
-
* alepha.with({
|
|
385
|
-
* provide: DatabaseProvider,
|
|
386
|
-
* use: BunSqliteProvider,
|
|
387
|
-
* });
|
|
388
|
-
*
|
|
389
|
-
* // Or use options atom
|
|
390
|
-
* alepha.store.mut(bunSqliteOptions, (old) => ({
|
|
391
|
-
* ...old,
|
|
392
|
-
* path: ":memory:",
|
|
393
|
-
* }));
|
|
394
|
-
* ```
|
|
395
|
-
*/
|
|
396
|
-
//#endregion
|
|
397
318
|
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
398
319
|
declare module "alepha" {
|
|
399
320
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
400
321
|
}
|
|
401
|
-
declare const envSchema:
|
|
322
|
+
declare const envSchema: alepha588.TObject<{
|
|
402
323
|
/**
|
|
403
324
|
* Main configuration for database connection.
|
|
404
325
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -406,21 +327,21 @@ declare const envSchema: alepha624.TObject<{
|
|
|
406
327
|
* or
|
|
407
328
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
408
329
|
*/
|
|
409
|
-
DATABASE_URL:
|
|
330
|
+
DATABASE_URL: alepha588.TOptional<alepha588.TString>;
|
|
410
331
|
/**
|
|
411
332
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
412
333
|
*
|
|
413
334
|
* It will monkey patch drizzle tables.
|
|
414
335
|
*/
|
|
415
|
-
POSTGRES_SCHEMA:
|
|
336
|
+
POSTGRES_SCHEMA: alepha588.TOptional<alepha588.TString>;
|
|
416
337
|
}>;
|
|
417
338
|
//#endregion
|
|
418
339
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
419
340
|
/**
|
|
420
341
|
* Configuration options for the Node.js SQLite database provider.
|
|
421
342
|
*/
|
|
422
|
-
declare const nodeSqliteOptions:
|
|
423
|
-
path:
|
|
343
|
+
declare const nodeSqliteOptions: alepha588.Atom<alepha588.TObject<{
|
|
344
|
+
path: alepha588.TOptional<alepha588.TString>;
|
|
424
345
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
425
346
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
426
347
|
declare module "alepha" {
|
|
@@ -625,46 +546,46 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
625
546
|
creatorId?: string | undefined;
|
|
626
547
|
creatorName?: string | undefined;
|
|
627
548
|
previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
|
|
628
|
-
id: PgAttr<PgAttr<
|
|
629
|
-
createdAt: PgAttr<PgAttr<
|
|
630
|
-
updatedAt: PgAttr<PgAttr<
|
|
631
|
-
name:
|
|
632
|
-
content:
|
|
633
|
-
schemaHash:
|
|
634
|
-
status: PgAttr<
|
|
635
|
-
activationDate:
|
|
636
|
-
expiredAt:
|
|
637
|
-
version:
|
|
638
|
-
changeDescription:
|
|
639
|
-
tags:
|
|
640
|
-
creatorId:
|
|
641
|
-
creatorName:
|
|
642
|
-
previousContent:
|
|
643
|
-
migrationLog:
|
|
644
|
-
}, string,
|
|
549
|
+
id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
550
|
+
createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
551
|
+
updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
552
|
+
name: alepha588.TString;
|
|
553
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
554
|
+
schemaHash: alepha588.TString;
|
|
555
|
+
status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
556
|
+
activationDate: alepha588.TString;
|
|
557
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
558
|
+
version: alepha588.TInteger;
|
|
559
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
560
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
561
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
562
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
563
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
564
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
565
|
+
}, string, alepha588.TAny> | undefined;
|
|
645
566
|
migrationLog?: string | undefined;
|
|
646
567
|
id: string;
|
|
647
568
|
createdAt: string;
|
|
648
569
|
updatedAt: string;
|
|
649
570
|
name: string;
|
|
650
571
|
content: typebox0.StaticRecord<[], "Decode", {}, {
|
|
651
|
-
id: PgAttr<PgAttr<
|
|
652
|
-
createdAt: PgAttr<PgAttr<
|
|
653
|
-
updatedAt: PgAttr<PgAttr<
|
|
654
|
-
name:
|
|
655
|
-
content:
|
|
656
|
-
schemaHash:
|
|
657
|
-
status: PgAttr<
|
|
658
|
-
activationDate:
|
|
659
|
-
expiredAt:
|
|
660
|
-
version:
|
|
661
|
-
changeDescription:
|
|
662
|
-
tags:
|
|
663
|
-
creatorId:
|
|
664
|
-
creatorName:
|
|
665
|
-
previousContent:
|
|
666
|
-
migrationLog:
|
|
667
|
-
}, string,
|
|
572
|
+
id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
573
|
+
createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
574
|
+
updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
575
|
+
name: alepha588.TString;
|
|
576
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
577
|
+
schemaHash: alepha588.TString;
|
|
578
|
+
status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
579
|
+
activationDate: alepha588.TString;
|
|
580
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
581
|
+
version: alepha588.TInteger;
|
|
582
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
583
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
584
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
585
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
586
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
587
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
588
|
+
}, string, alepha588.TAny>;
|
|
668
589
|
schemaHash: string;
|
|
669
590
|
status: "expired" | "current" | "next" | "future";
|
|
670
591
|
activationDate: string;
|
|
@@ -677,7 +598,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
677
598
|
/**
|
|
678
599
|
* Hook to load initial value from database on start.
|
|
679
600
|
*/
|
|
680
|
-
protected readonly onStart:
|
|
601
|
+
protected readonly onStart: alepha588.HookPrimitive<"start">;
|
|
681
602
|
/**
|
|
682
603
|
* Called after primitive creation to initialize.
|
|
683
604
|
*/
|
|
@@ -740,22 +661,22 @@ declare class ConfigStore {
|
|
|
740
661
|
protected readonly log: alepha_logger0.Logger;
|
|
741
662
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
742
663
|
protected readonly repo: alepha_orm14.Repository<TObject<{
|
|
743
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
744
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
745
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
746
|
-
name:
|
|
747
|
-
content:
|
|
748
|
-
schemaHash:
|
|
749
|
-
status: alepha_orm14.PgAttr<
|
|
750
|
-
activationDate:
|
|
751
|
-
expiredAt:
|
|
752
|
-
version:
|
|
753
|
-
changeDescription:
|
|
754
|
-
tags:
|
|
755
|
-
creatorId:
|
|
756
|
-
creatorName:
|
|
757
|
-
previousContent:
|
|
758
|
-
migrationLog:
|
|
664
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
665
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
666
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
667
|
+
name: alepha588.TString;
|
|
668
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
669
|
+
schemaHash: alepha588.TString;
|
|
670
|
+
status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
671
|
+
activationDate: alepha588.TString;
|
|
672
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
673
|
+
version: alepha588.TInteger;
|
|
674
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
675
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
676
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
677
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
678
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
679
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
759
680
|
}>>;
|
|
760
681
|
/** Unique identifier for this instance (to avoid self-updates) */
|
|
761
682
|
protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -764,11 +685,11 @@ declare class ConfigStore {
|
|
|
764
685
|
/** Topic for cross-instance synchronization */
|
|
765
686
|
readonly syncTopic: alepha_topic0.TopicPrimitive<{
|
|
766
687
|
payload: TObject<{
|
|
767
|
-
name:
|
|
768
|
-
version:
|
|
769
|
-
content:
|
|
770
|
-
status:
|
|
771
|
-
instanceId:
|
|
688
|
+
name: alepha588.TString;
|
|
689
|
+
version: alepha588.TInteger;
|
|
690
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
691
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
692
|
+
instanceId: alepha588.TString;
|
|
772
693
|
}>;
|
|
773
694
|
}>;
|
|
774
695
|
/**
|
|
@@ -893,46 +814,46 @@ declare class AdminConfigController {
|
|
|
893
814
|
* Useful for admin UI navigation.
|
|
894
815
|
*/
|
|
895
816
|
getConfigTree: alepha_server0.ActionPrimitiveFn<{
|
|
896
|
-
response:
|
|
897
|
-
name:
|
|
898
|
-
path:
|
|
899
|
-
isLeaf:
|
|
900
|
-
children:
|
|
817
|
+
response: alepha588.TArray<alepha588.TObject<{
|
|
818
|
+
name: alepha588.TString;
|
|
819
|
+
path: alepha588.TString;
|
|
820
|
+
isLeaf: alepha588.TBoolean;
|
|
821
|
+
children: alepha588.TArray<alepha588.TAny>;
|
|
901
822
|
}>>;
|
|
902
823
|
}>;
|
|
903
824
|
/**
|
|
904
825
|
* List all unique configuration names.
|
|
905
826
|
*/
|
|
906
827
|
listConfigNames: alepha_server0.ActionPrimitiveFn<{
|
|
907
|
-
response:
|
|
908
|
-
names:
|
|
828
|
+
response: alepha588.TObject<{
|
|
829
|
+
names: alepha588.TArray<alepha588.TString>;
|
|
909
830
|
}>;
|
|
910
831
|
}>;
|
|
911
832
|
/**
|
|
912
833
|
* Get configurations by status.
|
|
913
834
|
*/
|
|
914
835
|
getByStatus: alepha_server0.ActionPrimitiveFn<{
|
|
915
|
-
params:
|
|
916
|
-
status:
|
|
836
|
+
params: alepha588.TObject<{
|
|
837
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
917
838
|
}>;
|
|
918
|
-
response:
|
|
919
|
-
configs:
|
|
920
|
-
id:
|
|
921
|
-
createdAt:
|
|
922
|
-
updatedAt:
|
|
923
|
-
name:
|
|
924
|
-
content:
|
|
925
|
-
schemaHash:
|
|
926
|
-
status:
|
|
927
|
-
activationDate:
|
|
928
|
-
expiredAt:
|
|
929
|
-
version:
|
|
930
|
-
changeDescription:
|
|
931
|
-
tags:
|
|
932
|
-
creatorId:
|
|
933
|
-
creatorName:
|
|
934
|
-
previousContent:
|
|
935
|
-
migrationLog:
|
|
839
|
+
response: alepha588.TObject<{
|
|
840
|
+
configs: alepha588.TArray<alepha588.TObject<{
|
|
841
|
+
id: alepha588.TString;
|
|
842
|
+
createdAt: alepha588.TString;
|
|
843
|
+
updatedAt: alepha588.TString;
|
|
844
|
+
name: alepha588.TString;
|
|
845
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
846
|
+
schemaHash: alepha588.TString;
|
|
847
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
848
|
+
activationDate: alepha588.TString;
|
|
849
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
850
|
+
version: alepha588.TInteger;
|
|
851
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
852
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
853
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
854
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
855
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
856
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
936
857
|
}>>;
|
|
937
858
|
}>;
|
|
938
859
|
}>;
|
|
@@ -940,27 +861,27 @@ declare class AdminConfigController {
|
|
|
940
861
|
* Get version history for a specific configuration.
|
|
941
862
|
*/
|
|
942
863
|
getHistory: alepha_server0.ActionPrimitiveFn<{
|
|
943
|
-
params:
|
|
944
|
-
name:
|
|
864
|
+
params: alepha588.TObject<{
|
|
865
|
+
name: alepha588.TString;
|
|
945
866
|
}>;
|
|
946
|
-
response:
|
|
947
|
-
versions:
|
|
948
|
-
id:
|
|
949
|
-
createdAt:
|
|
950
|
-
updatedAt:
|
|
951
|
-
name:
|
|
952
|
-
content:
|
|
953
|
-
schemaHash:
|
|
954
|
-
status:
|
|
955
|
-
activationDate:
|
|
956
|
-
expiredAt:
|
|
957
|
-
version:
|
|
958
|
-
changeDescription:
|
|
959
|
-
tags:
|
|
960
|
-
creatorId:
|
|
961
|
-
creatorName:
|
|
962
|
-
previousContent:
|
|
963
|
-
migrationLog:
|
|
867
|
+
response: alepha588.TObject<{
|
|
868
|
+
versions: alepha588.TArray<alepha588.TObject<{
|
|
869
|
+
id: alepha588.TString;
|
|
870
|
+
createdAt: alepha588.TString;
|
|
871
|
+
updatedAt: alepha588.TString;
|
|
872
|
+
name: alepha588.TString;
|
|
873
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
874
|
+
schemaHash: alepha588.TString;
|
|
875
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
876
|
+
activationDate: alepha588.TString;
|
|
877
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
878
|
+
version: alepha588.TInteger;
|
|
879
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
880
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
881
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
882
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
883
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
884
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
964
885
|
}>>;
|
|
965
886
|
}>;
|
|
966
887
|
}>;
|
|
@@ -970,77 +891,77 @@ declare class AdminConfigController {
|
|
|
970
891
|
* even if no versions exist in the database yet.
|
|
971
892
|
*/
|
|
972
893
|
getCurrent: alepha_server0.ActionPrimitiveFn<{
|
|
973
|
-
params:
|
|
974
|
-
name:
|
|
894
|
+
params: alepha588.TObject<{
|
|
895
|
+
name: alepha588.TString;
|
|
975
896
|
}>;
|
|
976
|
-
response:
|
|
977
|
-
current:
|
|
978
|
-
id:
|
|
979
|
-
createdAt:
|
|
980
|
-
updatedAt:
|
|
981
|
-
name:
|
|
982
|
-
content:
|
|
983
|
-
schemaHash:
|
|
984
|
-
status:
|
|
985
|
-
activationDate:
|
|
986
|
-
expiredAt:
|
|
987
|
-
version:
|
|
988
|
-
changeDescription:
|
|
989
|
-
tags:
|
|
990
|
-
creatorId:
|
|
991
|
-
creatorName:
|
|
992
|
-
previousContent:
|
|
993
|
-
migrationLog:
|
|
897
|
+
response: alepha588.TObject<{
|
|
898
|
+
current: alepha588.TOptional<alepha588.TObject<{
|
|
899
|
+
id: alepha588.TString;
|
|
900
|
+
createdAt: alepha588.TString;
|
|
901
|
+
updatedAt: alepha588.TString;
|
|
902
|
+
name: alepha588.TString;
|
|
903
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
904
|
+
schemaHash: alepha588.TString;
|
|
905
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
906
|
+
activationDate: alepha588.TString;
|
|
907
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
908
|
+
version: alepha588.TInteger;
|
|
909
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
910
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
911
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
912
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
913
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
914
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
994
915
|
}>>;
|
|
995
|
-
next:
|
|
996
|
-
id:
|
|
997
|
-
createdAt:
|
|
998
|
-
updatedAt:
|
|
999
|
-
name:
|
|
1000
|
-
content:
|
|
1001
|
-
schemaHash:
|
|
1002
|
-
status:
|
|
1003
|
-
activationDate:
|
|
1004
|
-
expiredAt:
|
|
1005
|
-
version:
|
|
1006
|
-
changeDescription:
|
|
1007
|
-
tags:
|
|
1008
|
-
creatorId:
|
|
1009
|
-
creatorName:
|
|
1010
|
-
previousContent:
|
|
1011
|
-
migrationLog:
|
|
916
|
+
next: alepha588.TOptional<alepha588.TObject<{
|
|
917
|
+
id: alepha588.TString;
|
|
918
|
+
createdAt: alepha588.TString;
|
|
919
|
+
updatedAt: alepha588.TString;
|
|
920
|
+
name: alepha588.TString;
|
|
921
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
922
|
+
schemaHash: alepha588.TString;
|
|
923
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
924
|
+
activationDate: alepha588.TString;
|
|
925
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
926
|
+
version: alepha588.TInteger;
|
|
927
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
928
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
929
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
930
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
931
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
932
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1012
933
|
}>>;
|
|
1013
|
-
defaultValue:
|
|
1014
|
-
currentValue:
|
|
1015
|
-
schema:
|
|
934
|
+
defaultValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
935
|
+
currentValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
936
|
+
schema: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1016
937
|
}>;
|
|
1017
938
|
}>;
|
|
1018
939
|
/**
|
|
1019
940
|
* Get a specific version of a configuration.
|
|
1020
941
|
*/
|
|
1021
942
|
getVersion: alepha_server0.ActionPrimitiveFn<{
|
|
1022
|
-
params:
|
|
1023
|
-
name:
|
|
1024
|
-
version:
|
|
943
|
+
params: alepha588.TObject<{
|
|
944
|
+
name: alepha588.TString;
|
|
945
|
+
version: alepha588.TInteger;
|
|
1025
946
|
}>;
|
|
1026
|
-
response:
|
|
1027
|
-
config:
|
|
1028
|
-
id:
|
|
1029
|
-
createdAt:
|
|
1030
|
-
updatedAt:
|
|
1031
|
-
name:
|
|
1032
|
-
content:
|
|
1033
|
-
schemaHash:
|
|
1034
|
-
status:
|
|
1035
|
-
activationDate:
|
|
1036
|
-
expiredAt:
|
|
1037
|
-
version:
|
|
1038
|
-
changeDescription:
|
|
1039
|
-
tags:
|
|
1040
|
-
creatorId:
|
|
1041
|
-
creatorName:
|
|
1042
|
-
previousContent:
|
|
1043
|
-
migrationLog:
|
|
947
|
+
response: alepha588.TObject<{
|
|
948
|
+
config: alepha588.TOptional<alepha588.TObject<{
|
|
949
|
+
id: alepha588.TString;
|
|
950
|
+
createdAt: alepha588.TString;
|
|
951
|
+
updatedAt: alepha588.TString;
|
|
952
|
+
name: alepha588.TString;
|
|
953
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
954
|
+
schemaHash: alepha588.TString;
|
|
955
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
956
|
+
activationDate: alepha588.TString;
|
|
957
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
958
|
+
version: alepha588.TInteger;
|
|
959
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
960
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
961
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
962
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
963
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
964
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1044
965
|
}>>;
|
|
1045
966
|
}>;
|
|
1046
967
|
}>;
|
|
@@ -1048,98 +969,98 @@ declare class AdminConfigController {
|
|
|
1048
969
|
* Create a new configuration version.
|
|
1049
970
|
*/
|
|
1050
971
|
createVersion: alepha_server0.ActionPrimitiveFn<{
|
|
1051
|
-
params:
|
|
1052
|
-
name:
|
|
972
|
+
params: alepha588.TObject<{
|
|
973
|
+
name: alepha588.TString;
|
|
1053
974
|
}>;
|
|
1054
|
-
body:
|
|
1055
|
-
content:
|
|
1056
|
-
schemaHash:
|
|
1057
|
-
activationDate:
|
|
1058
|
-
changeDescription:
|
|
1059
|
-
tags:
|
|
1060
|
-
creatorId:
|
|
1061
|
-
creatorName:
|
|
975
|
+
body: alepha588.TObject<{
|
|
976
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
977
|
+
schemaHash: alepha588.TString;
|
|
978
|
+
activationDate: alepha588.TOptional<alepha588.TString>;
|
|
979
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
980
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
981
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
982
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1062
983
|
}>;
|
|
1063
|
-
response:
|
|
1064
|
-
id:
|
|
1065
|
-
createdAt:
|
|
1066
|
-
updatedAt:
|
|
1067
|
-
name:
|
|
1068
|
-
content:
|
|
1069
|
-
schemaHash:
|
|
1070
|
-
status:
|
|
1071
|
-
activationDate:
|
|
1072
|
-
expiredAt:
|
|
1073
|
-
version:
|
|
1074
|
-
changeDescription:
|
|
1075
|
-
tags:
|
|
1076
|
-
creatorId:
|
|
1077
|
-
creatorName:
|
|
1078
|
-
previousContent:
|
|
1079
|
-
migrationLog:
|
|
984
|
+
response: alepha588.TObject<{
|
|
985
|
+
id: alepha588.TString;
|
|
986
|
+
createdAt: alepha588.TString;
|
|
987
|
+
updatedAt: alepha588.TString;
|
|
988
|
+
name: alepha588.TString;
|
|
989
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
990
|
+
schemaHash: alepha588.TString;
|
|
991
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
992
|
+
activationDate: alepha588.TString;
|
|
993
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
994
|
+
version: alepha588.TInteger;
|
|
995
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
996
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
997
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
998
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
999
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1000
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1080
1001
|
}>;
|
|
1081
1002
|
}>;
|
|
1082
1003
|
/**
|
|
1083
1004
|
* Rollback to a previous version.
|
|
1084
1005
|
*/
|
|
1085
1006
|
rollback: alepha_server0.ActionPrimitiveFn<{
|
|
1086
|
-
params:
|
|
1087
|
-
name:
|
|
1007
|
+
params: alepha588.TObject<{
|
|
1008
|
+
name: alepha588.TString;
|
|
1088
1009
|
}>;
|
|
1089
|
-
body:
|
|
1090
|
-
targetVersion:
|
|
1091
|
-
changeDescription:
|
|
1092
|
-
creatorId:
|
|
1093
|
-
creatorName:
|
|
1010
|
+
body: alepha588.TObject<{
|
|
1011
|
+
targetVersion: alepha588.TInteger;
|
|
1012
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1013
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1014
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1094
1015
|
}>;
|
|
1095
|
-
response:
|
|
1096
|
-
id:
|
|
1097
|
-
createdAt:
|
|
1098
|
-
updatedAt:
|
|
1099
|
-
name:
|
|
1100
|
-
content:
|
|
1101
|
-
schemaHash:
|
|
1102
|
-
status:
|
|
1103
|
-
activationDate:
|
|
1104
|
-
expiredAt:
|
|
1105
|
-
version:
|
|
1106
|
-
changeDescription:
|
|
1107
|
-
tags:
|
|
1108
|
-
creatorId:
|
|
1109
|
-
creatorName:
|
|
1110
|
-
previousContent:
|
|
1111
|
-
migrationLog:
|
|
1016
|
+
response: alepha588.TObject<{
|
|
1017
|
+
id: alepha588.TString;
|
|
1018
|
+
createdAt: alepha588.TString;
|
|
1019
|
+
updatedAt: alepha588.TString;
|
|
1020
|
+
name: alepha588.TString;
|
|
1021
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
1022
|
+
schemaHash: alepha588.TString;
|
|
1023
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
1024
|
+
activationDate: alepha588.TString;
|
|
1025
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
1026
|
+
version: alepha588.TInteger;
|
|
1027
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1028
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
1029
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1030
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1031
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1032
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1112
1033
|
}>;
|
|
1113
1034
|
}>;
|
|
1114
1035
|
/**
|
|
1115
1036
|
* Activate a scheduled version immediately.
|
|
1116
1037
|
*/
|
|
1117
1038
|
activateNow: alepha_server0.ActionPrimitiveFn<{
|
|
1118
|
-
params:
|
|
1119
|
-
name:
|
|
1039
|
+
params: alepha588.TObject<{
|
|
1040
|
+
name: alepha588.TString;
|
|
1120
1041
|
}>;
|
|
1121
|
-
body:
|
|
1122
|
-
version:
|
|
1123
|
-
creatorId:
|
|
1124
|
-
creatorName:
|
|
1042
|
+
body: alepha588.TObject<{
|
|
1043
|
+
version: alepha588.TInteger;
|
|
1044
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1045
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1125
1046
|
}>;
|
|
1126
|
-
response:
|
|
1127
|
-
id:
|
|
1128
|
-
createdAt:
|
|
1129
|
-
updatedAt:
|
|
1130
|
-
name:
|
|
1131
|
-
content:
|
|
1132
|
-
schemaHash:
|
|
1133
|
-
status:
|
|
1134
|
-
activationDate:
|
|
1135
|
-
expiredAt:
|
|
1136
|
-
version:
|
|
1137
|
-
changeDescription:
|
|
1138
|
-
tags:
|
|
1139
|
-
creatorId:
|
|
1140
|
-
creatorName:
|
|
1141
|
-
previousContent:
|
|
1142
|
-
migrationLog:
|
|
1047
|
+
response: alepha588.TObject<{
|
|
1048
|
+
id: alepha588.TString;
|
|
1049
|
+
createdAt: alepha588.TString;
|
|
1050
|
+
updatedAt: alepha588.TString;
|
|
1051
|
+
name: alepha588.TString;
|
|
1052
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
1053
|
+
schemaHash: alepha588.TString;
|
|
1054
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
1055
|
+
activationDate: alepha588.TString;
|
|
1056
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
1057
|
+
version: alepha588.TInteger;
|
|
1058
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1059
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
1060
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1061
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1062
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1063
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1143
1064
|
}>;
|
|
1144
1065
|
}>;
|
|
1145
1066
|
/**
|
|
@@ -1147,8 +1068,8 @@ declare class AdminConfigController {
|
|
|
1147
1068
|
* Normally called by a scheduler, but exposed for manual triggering.
|
|
1148
1069
|
*/
|
|
1149
1070
|
checkScheduled: alepha_server0.ActionPrimitiveFn<{
|
|
1150
|
-
response:
|
|
1151
|
-
message:
|
|
1071
|
+
response: alepha588.TObject<{
|
|
1072
|
+
message: alepha588.TString;
|
|
1152
1073
|
}>;
|
|
1153
1074
|
}>;
|
|
1154
1075
|
}
|
|
@@ -1207,7 +1128,7 @@ declare class ConfigActivationScheduler {
|
|
|
1207
1128
|
*
|
|
1208
1129
|
* @module alepha.api.parameters
|
|
1209
1130
|
*/
|
|
1210
|
-
declare const AlephaApiParameters:
|
|
1131
|
+
declare const AlephaApiParameters: alepha588.Service<alepha588.Module>;
|
|
1211
1132
|
//#endregion
|
|
1212
1133
|
export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
|
|
1213
1134
|
//# sourceMappingURL=index.d.ts.map
|