alepha 0.13.3 → 0.13.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 +7 -7
- package/dist/api-files/index.d.ts +175 -175
- package/dist/api-jobs/index.d.ts +156 -156
- package/dist/api-notifications/index.d.ts +147 -147
- package/dist/api-verifications/index.d.ts +12 -12
- package/dist/core/index.browser.js +5 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +221 -219
- package/dist/core/index.js +5 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +5 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/email/index.d.ts +4 -4
- package/dist/orm/index.d.ts +19 -19
- package/dist/server-auth/index.d.ts +152 -152
- package/dist/server-security/index.d.ts +9 -9
- package/package.json +1 -1
- package/src/core/Alepha.ts +14 -0
- package/src/core/primitives/$module.ts +1 -1
package/dist/api-jobs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha225 from "alepha";
|
|
2
2
|
import { Alepha, Async, KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_server0 from "alepha/server";
|
|
4
4
|
import * as alepha_orm0 from "alepha/orm";
|
|
@@ -233,7 +233,7 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
|
|
|
233
233
|
declare module "alepha" {
|
|
234
234
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
235
235
|
}
|
|
236
|
-
declare const envSchema$1:
|
|
236
|
+
declare const envSchema$1: alepha225.TObject<{
|
|
237
237
|
/**
|
|
238
238
|
* Main configuration for database connection.
|
|
239
239
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -241,21 +241,21 @@ declare const envSchema$1: alepha224.TObject<{
|
|
|
241
241
|
* or
|
|
242
242
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
243
243
|
*/
|
|
244
|
-
DATABASE_URL:
|
|
244
|
+
DATABASE_URL: alepha225.TOptional<alepha225.TString>;
|
|
245
245
|
/**
|
|
246
246
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
247
247
|
*
|
|
248
248
|
* It will monkey patch drizzle tables.
|
|
249
249
|
*/
|
|
250
|
-
POSTGRES_SCHEMA:
|
|
250
|
+
POSTGRES_SCHEMA: alepha225.TOptional<alepha225.TString>;
|
|
251
251
|
}>;
|
|
252
252
|
//#endregion
|
|
253
253
|
//#region src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
254
254
|
/**
|
|
255
255
|
* Configuration options for the Node.js SQLite database provider.
|
|
256
256
|
*/
|
|
257
|
-
declare const nodeSqliteOptions:
|
|
258
|
-
path:
|
|
257
|
+
declare const nodeSqliteOptions: alepha225.Atom<alepha225.TObject<{
|
|
258
|
+
path: alepha225.TOptional<alepha225.TString>;
|
|
259
259
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
260
260
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
261
261
|
declare module "alepha" {
|
|
@@ -339,76 +339,76 @@ declare module "alepha" {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/api-jobs/schemas/jobExecutionQuerySchema.d.ts
|
|
342
|
-
declare const jobExecutionQuerySchema:
|
|
343
|
-
page:
|
|
344
|
-
size:
|
|
345
|
-
sort:
|
|
346
|
-
status:
|
|
347
|
-
job:
|
|
342
|
+
declare const jobExecutionQuerySchema: alepha225.TObject<{
|
|
343
|
+
page: alepha225.TOptional<alepha225.TInteger>;
|
|
344
|
+
size: alepha225.TOptional<alepha225.TInteger>;
|
|
345
|
+
sort: alepha225.TOptional<alepha225.TString>;
|
|
346
|
+
status: alepha225.TOptional<alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
|
|
347
|
+
job: alepha225.TOptional<alepha225.TString>;
|
|
348
348
|
}>;
|
|
349
349
|
type JobExecutionQuery = Static<typeof jobExecutionQuerySchema>;
|
|
350
350
|
//#endregion
|
|
351
351
|
//#region src/api-jobs/services/JobService.d.ts
|
|
352
352
|
declare class JobService {
|
|
353
353
|
protected readonly alepha: Alepha;
|
|
354
|
-
protected readonly executionRepository: alepha_orm0.Repository<
|
|
355
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
356
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
357
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
358
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
359
|
-
finishedAt:
|
|
360
|
-
job:
|
|
361
|
-
status:
|
|
362
|
-
error:
|
|
363
|
-
logs:
|
|
364
|
-
level:
|
|
365
|
-
message:
|
|
366
|
-
service:
|
|
367
|
-
module:
|
|
368
|
-
context:
|
|
369
|
-
app:
|
|
370
|
-
data:
|
|
371
|
-
timestamp:
|
|
354
|
+
protected readonly executionRepository: alepha_orm0.Repository<alepha225.TObject<{
|
|
355
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
356
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
357
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
358
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
359
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
360
|
+
job: alepha225.TString;
|
|
361
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
362
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
363
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
364
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
365
|
+
message: alepha225.TString;
|
|
366
|
+
service: alepha225.TString;
|
|
367
|
+
module: alepha225.TString;
|
|
368
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
369
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
370
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
371
|
+
timestamp: alepha225.TNumber;
|
|
372
372
|
}>>>;
|
|
373
373
|
}>>;
|
|
374
374
|
getJobs(): Promise<string[]>;
|
|
375
|
-
getJobExecutions(query?: JobExecutionQuery): Promise<
|
|
376
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
377
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
378
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
379
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
380
|
-
finishedAt:
|
|
381
|
-
job:
|
|
382
|
-
status:
|
|
383
|
-
error:
|
|
384
|
-
logs:
|
|
385
|
-
level:
|
|
386
|
-
message:
|
|
387
|
-
service:
|
|
388
|
-
module:
|
|
389
|
-
context:
|
|
390
|
-
app:
|
|
391
|
-
data:
|
|
392
|
-
timestamp:
|
|
375
|
+
getJobExecutions(query?: JobExecutionQuery): Promise<alepha225.Page<alepha_orm0.PgStatic<alepha225.TObject<{
|
|
376
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
377
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
378
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
379
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
380
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
381
|
+
job: alepha225.TString;
|
|
382
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
383
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
384
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
385
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
386
|
+
message: alepha225.TString;
|
|
387
|
+
service: alepha225.TString;
|
|
388
|
+
module: alepha225.TString;
|
|
389
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
390
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
391
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
392
|
+
timestamp: alepha225.TNumber;
|
|
393
393
|
}>>>;
|
|
394
|
-
}>, alepha_orm0.PgRelationMap<
|
|
395
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
396
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
397
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
398
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
399
|
-
finishedAt:
|
|
400
|
-
job:
|
|
401
|
-
status:
|
|
402
|
-
error:
|
|
403
|
-
logs:
|
|
404
|
-
level:
|
|
405
|
-
message:
|
|
406
|
-
service:
|
|
407
|
-
module:
|
|
408
|
-
context:
|
|
409
|
-
app:
|
|
410
|
-
data:
|
|
411
|
-
timestamp:
|
|
394
|
+
}>, alepha_orm0.PgRelationMap<alepha225.TObject<{
|
|
395
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
396
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
397
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
398
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
399
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
400
|
+
job: alepha225.TString;
|
|
401
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
402
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
403
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
404
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
405
|
+
message: alepha225.TString;
|
|
406
|
+
service: alepha225.TString;
|
|
407
|
+
module: alepha225.TString;
|
|
408
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
409
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
410
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
411
|
+
timestamp: alepha225.TNumber;
|
|
412
412
|
}>>>;
|
|
413
413
|
}>>>>>;
|
|
414
414
|
triggerJob(name: string): Promise<{
|
|
@@ -422,75 +422,75 @@ declare class JobController {
|
|
|
422
422
|
protected readonly group: string;
|
|
423
423
|
protected readonly jobService: JobService;
|
|
424
424
|
readonly getJobs: alepha_server0.ActionPrimitiveFn<{
|
|
425
|
-
response:
|
|
425
|
+
response: alepha225.TArray<alepha225.TString>;
|
|
426
426
|
}>;
|
|
427
427
|
readonly getJobExecutions: alepha_server0.ActionPrimitiveFn<{
|
|
428
|
-
query:
|
|
429
|
-
page:
|
|
430
|
-
size:
|
|
431
|
-
sort:
|
|
432
|
-
status:
|
|
433
|
-
job:
|
|
428
|
+
query: alepha225.TObject<{
|
|
429
|
+
page: alepha225.TOptional<alepha225.TInteger>;
|
|
430
|
+
size: alepha225.TOptional<alepha225.TInteger>;
|
|
431
|
+
sort: alepha225.TOptional<alepha225.TString>;
|
|
432
|
+
status: alepha225.TOptional<alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
|
|
433
|
+
job: alepha225.TOptional<alepha225.TString>;
|
|
434
434
|
}>;
|
|
435
|
-
response:
|
|
436
|
-
id: PgAttr<PgAttr<
|
|
437
|
-
version: PgAttr<PgAttr<
|
|
438
|
-
createdAt: PgAttr<PgAttr<
|
|
439
|
-
updatedAt: PgAttr<PgAttr<
|
|
440
|
-
finishedAt:
|
|
441
|
-
job:
|
|
442
|
-
status:
|
|
443
|
-
error:
|
|
444
|
-
logs:
|
|
445
|
-
level:
|
|
446
|
-
message:
|
|
447
|
-
service:
|
|
448
|
-
module:
|
|
449
|
-
context:
|
|
450
|
-
app:
|
|
451
|
-
data:
|
|
452
|
-
timestamp:
|
|
435
|
+
response: alepha225.TPage<alepha225.TObject<{
|
|
436
|
+
id: PgAttr<PgAttr<alepha225.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
437
|
+
version: PgAttr<PgAttr<alepha225.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
438
|
+
createdAt: PgAttr<PgAttr<alepha225.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
439
|
+
updatedAt: PgAttr<PgAttr<alepha225.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
440
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
441
|
+
job: alepha225.TString;
|
|
442
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
443
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
444
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
445
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
446
|
+
message: alepha225.TString;
|
|
447
|
+
service: alepha225.TString;
|
|
448
|
+
module: alepha225.TString;
|
|
449
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
450
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
451
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
452
|
+
timestamp: alepha225.TNumber;
|
|
453
453
|
}>>>;
|
|
454
454
|
}>>;
|
|
455
455
|
}>;
|
|
456
456
|
readonly triggerJob: alepha_server0.ActionPrimitiveFn<{
|
|
457
|
-
body:
|
|
458
|
-
name:
|
|
457
|
+
body: alepha225.TObject<{
|
|
458
|
+
name: alepha225.TString;
|
|
459
459
|
}>;
|
|
460
|
-
response:
|
|
461
|
-
ok:
|
|
462
|
-
id:
|
|
463
|
-
count:
|
|
460
|
+
response: alepha225.TObject<{
|
|
461
|
+
ok: alepha225.TBoolean;
|
|
462
|
+
id: alepha225.TOptional<alepha225.TUnion<[alepha225.TString, alepha225.TInteger]>>;
|
|
463
|
+
count: alepha225.TOptional<alepha225.TNumber>;
|
|
464
464
|
}>;
|
|
465
465
|
}>;
|
|
466
466
|
}
|
|
467
467
|
//#endregion
|
|
468
468
|
//#region src/api-jobs/entities/jobExecutions.d.ts
|
|
469
|
-
declare const jobExecutions: alepha_orm0.EntityPrimitive<
|
|
470
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
471
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
472
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
473
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
474
|
-
finishedAt:
|
|
475
|
-
job:
|
|
476
|
-
status:
|
|
477
|
-
error:
|
|
478
|
-
logs:
|
|
479
|
-
level:
|
|
480
|
-
message:
|
|
481
|
-
service:
|
|
482
|
-
module:
|
|
483
|
-
context:
|
|
484
|
-
app:
|
|
485
|
-
data:
|
|
486
|
-
timestamp:
|
|
469
|
+
declare const jobExecutions: alepha_orm0.EntityPrimitive<alepha225.TObject<{
|
|
470
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
471
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
472
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
473
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
474
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
475
|
+
job: alepha225.TString;
|
|
476
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
477
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
478
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
479
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
480
|
+
message: alepha225.TString;
|
|
481
|
+
service: alepha225.TString;
|
|
482
|
+
module: alepha225.TString;
|
|
483
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
484
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
485
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
486
|
+
timestamp: alepha225.TNumber;
|
|
487
487
|
}>>>;
|
|
488
488
|
}>>;
|
|
489
489
|
type JobExecutionEntity = Static<typeof jobExecutions.schema>;
|
|
490
490
|
//#endregion
|
|
491
491
|
//#region src/api-jobs/providers/JobProvider.d.ts
|
|
492
|
-
declare const envSchema:
|
|
493
|
-
JOB_PREFIX:
|
|
492
|
+
declare const envSchema: alepha225.TObject<{
|
|
493
|
+
JOB_PREFIX: alepha225.TOptional<alepha225.TString>;
|
|
494
494
|
}>;
|
|
495
495
|
declare module "alepha" {
|
|
496
496
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -503,24 +503,24 @@ declare class JobProvider {
|
|
|
503
503
|
protected readonly alepha: Alepha;
|
|
504
504
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
505
505
|
protected readonly cronProvider: CronProvider;
|
|
506
|
-
protected readonly executionRepository: alepha_orm0.Repository<
|
|
507
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
508
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
509
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
510
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
511
|
-
finishedAt:
|
|
512
|
-
job:
|
|
513
|
-
status:
|
|
514
|
-
error:
|
|
515
|
-
logs:
|
|
516
|
-
level:
|
|
517
|
-
message:
|
|
518
|
-
service:
|
|
519
|
-
module:
|
|
520
|
-
context:
|
|
521
|
-
app:
|
|
522
|
-
data:
|
|
523
|
-
timestamp:
|
|
506
|
+
protected readonly executionRepository: alepha_orm0.Repository<alepha225.TObject<{
|
|
507
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
508
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
509
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
510
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha225.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
511
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
512
|
+
job: alepha225.TString;
|
|
513
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
514
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
515
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
516
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
517
|
+
message: alepha225.TString;
|
|
518
|
+
service: alepha225.TString;
|
|
519
|
+
module: alepha225.TString;
|
|
520
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
521
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
522
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
523
|
+
timestamp: alepha225.TNumber;
|
|
524
524
|
}>>>;
|
|
525
525
|
}>>;
|
|
526
526
|
protected readonly env: {
|
|
@@ -614,31 +614,31 @@ interface JobHandlerArguments {
|
|
|
614
614
|
}
|
|
615
615
|
//#endregion
|
|
616
616
|
//#region src/api-jobs/schemas/jobExecutionResourceSchema.d.ts
|
|
617
|
-
declare const jobExecutionResourceSchema:
|
|
618
|
-
id: PgAttr<PgAttr<
|
|
619
|
-
version: PgAttr<PgAttr<
|
|
620
|
-
createdAt: PgAttr<PgAttr<
|
|
621
|
-
updatedAt: PgAttr<PgAttr<
|
|
622
|
-
finishedAt:
|
|
623
|
-
job:
|
|
624
|
-
status:
|
|
625
|
-
error:
|
|
626
|
-
logs:
|
|
627
|
-
level:
|
|
628
|
-
message:
|
|
629
|
-
service:
|
|
630
|
-
module:
|
|
631
|
-
context:
|
|
632
|
-
app:
|
|
633
|
-
data:
|
|
634
|
-
timestamp:
|
|
617
|
+
declare const jobExecutionResourceSchema: alepha225.TObject<{
|
|
618
|
+
id: PgAttr<PgAttr<alepha225.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
619
|
+
version: PgAttr<PgAttr<alepha225.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
620
|
+
createdAt: PgAttr<PgAttr<alepha225.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
621
|
+
updatedAt: PgAttr<PgAttr<alepha225.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
622
|
+
finishedAt: alepha225.TOptional<alepha225.TString>;
|
|
623
|
+
job: alepha225.TString;
|
|
624
|
+
status: alepha225.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
625
|
+
error: alepha225.TOptional<alepha225.TString>;
|
|
626
|
+
logs: alepha225.TOptional<alepha225.TArray<alepha225.TObject<{
|
|
627
|
+
level: alepha225.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
628
|
+
message: alepha225.TString;
|
|
629
|
+
service: alepha225.TString;
|
|
630
|
+
module: alepha225.TString;
|
|
631
|
+
context: alepha225.TOptional<alepha225.TString>;
|
|
632
|
+
app: alepha225.TOptional<alepha225.TString>;
|
|
633
|
+
data: alepha225.TOptional<alepha225.TAny>;
|
|
634
|
+
timestamp: alepha225.TNumber;
|
|
635
635
|
}>>>;
|
|
636
636
|
}>;
|
|
637
637
|
type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
|
|
638
638
|
//#endregion
|
|
639
639
|
//#region src/api-jobs/schemas/triggerJobSchema.d.ts
|
|
640
|
-
declare const triggerJobSchema:
|
|
641
|
-
name:
|
|
640
|
+
declare const triggerJobSchema: alepha225.TObject<{
|
|
641
|
+
name: alepha225.TString;
|
|
642
642
|
}>;
|
|
643
643
|
type TriggerJob = Static<typeof triggerJobSchema>;
|
|
644
644
|
//#endregion
|
|
@@ -651,7 +651,7 @@ type TriggerJob = Static<typeof triggerJobSchema>;
|
|
|
651
651
|
*
|
|
652
652
|
* @module alepha.api.jobs
|
|
653
653
|
*/
|
|
654
|
-
declare const AlephaApiJobs:
|
|
654
|
+
declare const AlephaApiJobs: alepha225.Service<alepha225.Module>;
|
|
655
655
|
//#endregion
|
|
656
656
|
export { $job, AlephaApiJobs, Job, JobController, JobExecutionEntity, JobExecutionQuery, JobExecutionResource, JobHandlerArguments, JobPrimitive, JobPrimitiveOptions, JobProvider, JobRegistration, JobService, TriggerJob, jobExecutionQuerySchema, jobExecutionResourceSchema, jobExecutions, triggerJobSchema };
|
|
657
657
|
//# sourceMappingURL=index.d.ts.map
|