alepha 0.15.2 → 0.15.3
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 +332 -332
- package/dist/api/audits/index.d.ts.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/jobs/index.d.ts +151 -151
- package/dist/api/keys/index.d.ts +195 -195
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +260 -260
- package/dist/api/users/index.d.ts +22 -11
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +7 -2
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +128 -128
- package/dist/api/verifications/index.d.ts.map +1 -1
- 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 +191 -74
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +215 -48
- 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 +8 -0
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +7 -2
- package/dist/email/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/router/index.browser.js +9 -15
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +295 -407
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +566 -776
- package/dist/react/router/index.js.map +1 -1
- package/dist/redis/index.d.ts +19 -19
- 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/core/index.d.ts +9 -9
- package/dist/server/health/index.d.ts +17 -17
- package/dist/server/links/index.d.ts +39 -39
- 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 +1 -1
- package/dist/vite/index.js +15 -7
- package/dist/vite/index.js.map +1 -1
- package/package.json +4 -2
- package/src/api/logs/TODO.md +13 -10
- package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -0
- package/src/cli/atoms/buildOptions.ts +99 -9
- package/src/cli/commands/build.ts +149 -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 +1 -10
- 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/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/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 +7 -78
- package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
- package/src/react/router/providers/ReactServerTemplateProvider.ts +228 -665
- package/src/react/router/services/ReactRouter.ts +13 -13
- package/src/security/__tests__/ServerSecurityProvider.spec.ts +77 -0
- package/src/security/providers/ServerSecurityProvider.ts +30 -22
- package/src/server/core/providers/NodeHttpServerProvider.spec.ts +9 -3
- 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 +10 -7
- package/src/vite/tasks/generateDocker.ts +4 -0
package/dist/api/jobs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha154 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";
|
|
@@ -229,76 +229,76 @@ interface PgRefOptions {
|
|
|
229
229
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region ../../src/api/jobs/schemas/jobExecutionQuerySchema.d.ts
|
|
232
|
-
declare const jobExecutionQuerySchema:
|
|
233
|
-
page:
|
|
234
|
-
size:
|
|
235
|
-
sort:
|
|
236
|
-
status:
|
|
237
|
-
job:
|
|
232
|
+
declare const jobExecutionQuerySchema: alepha154.TObject<{
|
|
233
|
+
page: alepha154.TOptional<alepha154.TInteger>;
|
|
234
|
+
size: alepha154.TOptional<alepha154.TInteger>;
|
|
235
|
+
sort: alepha154.TOptional<alepha154.TString>;
|
|
236
|
+
status: alepha154.TOptional<alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
|
|
237
|
+
job: alepha154.TOptional<alepha154.TString>;
|
|
238
238
|
}>;
|
|
239
239
|
type JobExecutionQuery = Static<typeof jobExecutionQuerySchema>;
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region ../../src/api/jobs/services/JobService.d.ts
|
|
242
242
|
declare class JobService {
|
|
243
243
|
protected readonly alepha: Alepha;
|
|
244
|
-
protected readonly executionRepository: alepha_orm0.Repository<
|
|
245
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
246
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
247
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
248
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
249
|
-
finishedAt:
|
|
250
|
-
job:
|
|
251
|
-
status:
|
|
252
|
-
error:
|
|
253
|
-
logs:
|
|
254
|
-
level:
|
|
255
|
-
message:
|
|
256
|
-
service:
|
|
257
|
-
module:
|
|
258
|
-
context:
|
|
259
|
-
app:
|
|
260
|
-
data:
|
|
261
|
-
timestamp:
|
|
244
|
+
protected readonly executionRepository: alepha_orm0.Repository<alepha154.TObject<{
|
|
245
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
246
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
247
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
248
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
249
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
250
|
+
job: alepha154.TString;
|
|
251
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
252
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
253
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
254
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
255
|
+
message: alepha154.TString;
|
|
256
|
+
service: alepha154.TString;
|
|
257
|
+
module: alepha154.TString;
|
|
258
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
259
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
260
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
261
|
+
timestamp: alepha154.TNumber;
|
|
262
262
|
}>>>;
|
|
263
263
|
}>>;
|
|
264
264
|
getJobs(): Promise<string[]>;
|
|
265
|
-
getJobExecutions(query?: JobExecutionQuery): Promise<
|
|
266
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
267
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
268
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
269
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
270
|
-
finishedAt:
|
|
271
|
-
job:
|
|
272
|
-
status:
|
|
273
|
-
error:
|
|
274
|
-
logs:
|
|
275
|
-
level:
|
|
276
|
-
message:
|
|
277
|
-
service:
|
|
278
|
-
module:
|
|
279
|
-
context:
|
|
280
|
-
app:
|
|
281
|
-
data:
|
|
282
|
-
timestamp:
|
|
265
|
+
getJobExecutions(query?: JobExecutionQuery): Promise<alepha154.Page<alepha_orm0.PgStatic<alepha154.TObject<{
|
|
266
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
267
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
268
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
269
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
270
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
271
|
+
job: alepha154.TString;
|
|
272
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
273
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
274
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
275
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
276
|
+
message: alepha154.TString;
|
|
277
|
+
service: alepha154.TString;
|
|
278
|
+
module: alepha154.TString;
|
|
279
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
280
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
281
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
282
|
+
timestamp: alepha154.TNumber;
|
|
283
283
|
}>>>;
|
|
284
|
-
}>, alepha_orm0.PgRelationMap<
|
|
285
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
286
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
287
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
288
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
289
|
-
finishedAt:
|
|
290
|
-
job:
|
|
291
|
-
status:
|
|
292
|
-
error:
|
|
293
|
-
logs:
|
|
294
|
-
level:
|
|
295
|
-
message:
|
|
296
|
-
service:
|
|
297
|
-
module:
|
|
298
|
-
context:
|
|
299
|
-
app:
|
|
300
|
-
data:
|
|
301
|
-
timestamp:
|
|
284
|
+
}>, alepha_orm0.PgRelationMap<alepha154.TObject<{
|
|
285
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
286
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
287
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
288
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
289
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
290
|
+
job: alepha154.TString;
|
|
291
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
292
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
293
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
294
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
295
|
+
message: alepha154.TString;
|
|
296
|
+
service: alepha154.TString;
|
|
297
|
+
module: alepha154.TString;
|
|
298
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
299
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
300
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
301
|
+
timestamp: alepha154.TNumber;
|
|
302
302
|
}>>>;
|
|
303
303
|
}>>>>>;
|
|
304
304
|
triggerJob(name: string): Promise<{
|
|
@@ -312,75 +312,75 @@ declare class AdminJobController {
|
|
|
312
312
|
protected readonly group: string;
|
|
313
313
|
protected readonly jobService: JobService;
|
|
314
314
|
readonly getJobs: alepha_server0.ActionPrimitiveFn<{
|
|
315
|
-
response:
|
|
315
|
+
response: alepha154.TArray<alepha154.TString>;
|
|
316
316
|
}>;
|
|
317
317
|
readonly getJobExecutions: alepha_server0.ActionPrimitiveFn<{
|
|
318
|
-
query:
|
|
319
|
-
page:
|
|
320
|
-
size:
|
|
321
|
-
sort:
|
|
322
|
-
status:
|
|
323
|
-
job:
|
|
318
|
+
query: alepha154.TObject<{
|
|
319
|
+
page: alepha154.TOptional<alepha154.TInteger>;
|
|
320
|
+
size: alepha154.TOptional<alepha154.TInteger>;
|
|
321
|
+
sort: alepha154.TOptional<alepha154.TString>;
|
|
322
|
+
status: alepha154.TOptional<alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
|
|
323
|
+
job: alepha154.TOptional<alepha154.TString>;
|
|
324
324
|
}>;
|
|
325
|
-
response:
|
|
326
|
-
id: PgAttr<PgAttr<
|
|
327
|
-
version: PgAttr<PgAttr<
|
|
328
|
-
createdAt: PgAttr<PgAttr<
|
|
329
|
-
updatedAt: PgAttr<PgAttr<
|
|
330
|
-
finishedAt:
|
|
331
|
-
job:
|
|
332
|
-
status:
|
|
333
|
-
error:
|
|
334
|
-
logs:
|
|
335
|
-
level:
|
|
336
|
-
message:
|
|
337
|
-
service:
|
|
338
|
-
module:
|
|
339
|
-
context:
|
|
340
|
-
app:
|
|
341
|
-
data:
|
|
342
|
-
timestamp:
|
|
325
|
+
response: alepha154.TPage<alepha154.TObject<{
|
|
326
|
+
id: PgAttr<PgAttr<alepha154.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
327
|
+
version: PgAttr<PgAttr<alepha154.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
328
|
+
createdAt: PgAttr<PgAttr<alepha154.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
329
|
+
updatedAt: PgAttr<PgAttr<alepha154.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
330
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
331
|
+
job: alepha154.TString;
|
|
332
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
333
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
334
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
335
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
336
|
+
message: alepha154.TString;
|
|
337
|
+
service: alepha154.TString;
|
|
338
|
+
module: alepha154.TString;
|
|
339
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
340
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
341
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
342
|
+
timestamp: alepha154.TNumber;
|
|
343
343
|
}>>>;
|
|
344
344
|
}>>;
|
|
345
345
|
}>;
|
|
346
346
|
readonly triggerJob: alepha_server0.ActionPrimitiveFn<{
|
|
347
|
-
body:
|
|
348
|
-
name:
|
|
347
|
+
body: alepha154.TObject<{
|
|
348
|
+
name: alepha154.TString;
|
|
349
349
|
}>;
|
|
350
|
-
response:
|
|
351
|
-
ok:
|
|
352
|
-
id:
|
|
353
|
-
count:
|
|
350
|
+
response: alepha154.TObject<{
|
|
351
|
+
ok: alepha154.TBoolean;
|
|
352
|
+
id: alepha154.TOptional<alepha154.TUnion<[alepha154.TString, alepha154.TInteger]>>;
|
|
353
|
+
count: alepha154.TOptional<alepha154.TNumber>;
|
|
354
354
|
}>;
|
|
355
355
|
}>;
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region ../../src/api/jobs/entities/jobExecutions.d.ts
|
|
359
|
-
declare const jobExecutions: alepha_orm0.EntityPrimitive<
|
|
360
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
361
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
362
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
363
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
364
|
-
finishedAt:
|
|
365
|
-
job:
|
|
366
|
-
status:
|
|
367
|
-
error:
|
|
368
|
-
logs:
|
|
369
|
-
level:
|
|
370
|
-
message:
|
|
371
|
-
service:
|
|
372
|
-
module:
|
|
373
|
-
context:
|
|
374
|
-
app:
|
|
375
|
-
data:
|
|
376
|
-
timestamp:
|
|
359
|
+
declare const jobExecutions: alepha_orm0.EntityPrimitive<alepha154.TObject<{
|
|
360
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
361
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
362
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
363
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
364
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
365
|
+
job: alepha154.TString;
|
|
366
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
367
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
368
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
369
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
370
|
+
message: alepha154.TString;
|
|
371
|
+
service: alepha154.TString;
|
|
372
|
+
module: alepha154.TString;
|
|
373
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
374
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
375
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
376
|
+
timestamp: alepha154.TNumber;
|
|
377
377
|
}>>>;
|
|
378
378
|
}>>;
|
|
379
379
|
type JobExecutionEntity = Static<typeof jobExecutions.schema>;
|
|
380
380
|
//#endregion
|
|
381
381
|
//#region ../../src/api/jobs/providers/JobProvider.d.ts
|
|
382
|
-
declare const envSchema:
|
|
383
|
-
JOB_PREFIX:
|
|
382
|
+
declare const envSchema: alepha154.TObject<{
|
|
383
|
+
JOB_PREFIX: alepha154.TOptional<alepha154.TString>;
|
|
384
384
|
}>;
|
|
385
385
|
declare module "alepha" {
|
|
386
386
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -393,24 +393,24 @@ declare class JobProvider {
|
|
|
393
393
|
protected readonly alepha: Alepha;
|
|
394
394
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
395
395
|
protected readonly cronProvider: CronProvider;
|
|
396
|
-
protected readonly executionRepository: alepha_orm0.Repository<
|
|
397
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
398
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
399
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
400
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<
|
|
401
|
-
finishedAt:
|
|
402
|
-
job:
|
|
403
|
-
status:
|
|
404
|
-
error:
|
|
405
|
-
logs:
|
|
406
|
-
level:
|
|
407
|
-
message:
|
|
408
|
-
service:
|
|
409
|
-
module:
|
|
410
|
-
context:
|
|
411
|
-
app:
|
|
412
|
-
data:
|
|
413
|
-
timestamp:
|
|
396
|
+
protected readonly executionRepository: alepha_orm0.Repository<alepha154.TObject<{
|
|
397
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
398
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
399
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
400
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha154.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
401
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
402
|
+
job: alepha154.TString;
|
|
403
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
404
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
405
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
406
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
407
|
+
message: alepha154.TString;
|
|
408
|
+
service: alepha154.TString;
|
|
409
|
+
module: alepha154.TString;
|
|
410
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
411
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
412
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
413
|
+
timestamp: alepha154.TNumber;
|
|
414
414
|
}>>>;
|
|
415
415
|
}>>;
|
|
416
416
|
protected readonly env: {
|
|
@@ -504,31 +504,31 @@ interface JobHandlerArguments {
|
|
|
504
504
|
}
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region ../../src/api/jobs/schemas/jobExecutionResourceSchema.d.ts
|
|
507
|
-
declare const jobExecutionResourceSchema:
|
|
508
|
-
id: PgAttr<PgAttr<
|
|
509
|
-
version: PgAttr<PgAttr<
|
|
510
|
-
createdAt: PgAttr<PgAttr<
|
|
511
|
-
updatedAt: PgAttr<PgAttr<
|
|
512
|
-
finishedAt:
|
|
513
|
-
job:
|
|
514
|
-
status:
|
|
515
|
-
error:
|
|
516
|
-
logs:
|
|
517
|
-
level:
|
|
518
|
-
message:
|
|
519
|
-
service:
|
|
520
|
-
module:
|
|
521
|
-
context:
|
|
522
|
-
app:
|
|
523
|
-
data:
|
|
524
|
-
timestamp:
|
|
507
|
+
declare const jobExecutionResourceSchema: alepha154.TObject<{
|
|
508
|
+
id: PgAttr<PgAttr<alepha154.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
509
|
+
version: PgAttr<PgAttr<alepha154.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
510
|
+
createdAt: PgAttr<PgAttr<alepha154.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
511
|
+
updatedAt: PgAttr<PgAttr<alepha154.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
512
|
+
finishedAt: alepha154.TOptional<alepha154.TString>;
|
|
513
|
+
job: alepha154.TString;
|
|
514
|
+
status: alepha154.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
|
|
515
|
+
error: alepha154.TOptional<alepha154.TString>;
|
|
516
|
+
logs: alepha154.TOptional<alepha154.TArray<alepha154.TObject<{
|
|
517
|
+
level: alepha154.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
518
|
+
message: alepha154.TString;
|
|
519
|
+
service: alepha154.TString;
|
|
520
|
+
module: alepha154.TString;
|
|
521
|
+
context: alepha154.TOptional<alepha154.TString>;
|
|
522
|
+
app: alepha154.TOptional<alepha154.TString>;
|
|
523
|
+
data: alepha154.TOptional<alepha154.TAny>;
|
|
524
|
+
timestamp: alepha154.TNumber;
|
|
525
525
|
}>>>;
|
|
526
526
|
}>;
|
|
527
527
|
type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region ../../src/api/jobs/schemas/triggerJobSchema.d.ts
|
|
530
|
-
declare const triggerJobSchema:
|
|
531
|
-
name:
|
|
530
|
+
declare const triggerJobSchema: alepha154.TObject<{
|
|
531
|
+
name: alepha154.TString;
|
|
532
532
|
}>;
|
|
533
533
|
type TriggerJob = Static<typeof triggerJobSchema>;
|
|
534
534
|
//#endregion
|
|
@@ -548,7 +548,7 @@ type TriggerJob = Static<typeof triggerJobSchema>;
|
|
|
548
548
|
*
|
|
549
549
|
* @module alepha.api.jobs
|
|
550
550
|
*/
|
|
551
|
-
declare const AlephaApiJobs:
|
|
551
|
+
declare const AlephaApiJobs: alepha154.Service<alepha154.Module>;
|
|
552
552
|
//#endregion
|
|
553
553
|
export { $job, AdminJobController, AlephaApiJobs, Job, JobExecutionEntity, JobExecutionQuery, JobExecutionResource, JobHandlerArguments, JobPrimitive, JobPrimitiveOptions, JobProvider, JobRegistration, JobService, TriggerJob, jobExecutionQuerySchema, jobExecutionResourceSchema, jobExecutions, triggerJobSchema };
|
|
554
554
|
//# sourceMappingURL=index.d.ts.map
|