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.
Files changed (132) hide show
  1. package/README.md +68 -80
  2. package/dist/api/audits/index.d.ts +332 -332
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/files/index.d.ts +170 -170
  5. package/dist/api/files/index.d.ts.map +1 -1
  6. package/dist/api/jobs/index.d.ts +151 -151
  7. package/dist/api/keys/index.d.ts +195 -195
  8. package/dist/api/keys/index.d.ts.map +1 -1
  9. package/dist/api/parameters/index.d.ts +260 -260
  10. package/dist/api/users/index.d.ts +22 -11
  11. package/dist/api/users/index.d.ts.map +1 -1
  12. package/dist/api/users/index.js +7 -2
  13. package/dist/api/users/index.js.map +1 -1
  14. package/dist/api/verifications/index.d.ts +128 -128
  15. package/dist/api/verifications/index.d.ts.map +1 -1
  16. package/dist/bucket/index.d.ts +8 -0
  17. package/dist/bucket/index.d.ts.map +1 -1
  18. package/dist/bucket/index.js +7 -2
  19. package/dist/bucket/index.js.map +1 -1
  20. package/dist/cli/index.d.ts +191 -74
  21. package/dist/cli/index.d.ts.map +1 -1
  22. package/dist/cli/index.js +215 -48
  23. package/dist/cli/index.js.map +1 -1
  24. package/dist/command/index.d.ts +10 -0
  25. package/dist/command/index.d.ts.map +1 -1
  26. package/dist/command/index.js +67 -13
  27. package/dist/command/index.js.map +1 -1
  28. package/dist/core/index.browser.js +28 -21
  29. package/dist/core/index.browser.js.map +1 -1
  30. package/dist/core/index.d.ts.map +1 -1
  31. package/dist/core/index.js +28 -21
  32. package/dist/core/index.js.map +1 -1
  33. package/dist/core/index.native.js +28 -21
  34. package/dist/core/index.native.js.map +1 -1
  35. package/dist/email/index.d.ts +8 -0
  36. package/dist/email/index.d.ts.map +1 -1
  37. package/dist/email/index.js +7 -2
  38. package/dist/email/index.js.map +1 -1
  39. package/dist/mcp/index.d.ts +5 -5
  40. package/dist/orm/index.bun.js +32 -16
  41. package/dist/orm/index.bun.js.map +1 -1
  42. package/dist/orm/index.d.ts +4 -1
  43. package/dist/orm/index.d.ts.map +1 -1
  44. package/dist/orm/index.js +34 -22
  45. package/dist/orm/index.js.map +1 -1
  46. package/dist/react/router/index.browser.js +9 -15
  47. package/dist/react/router/index.browser.js.map +1 -1
  48. package/dist/react/router/index.d.ts +295 -407
  49. package/dist/react/router/index.d.ts.map +1 -1
  50. package/dist/react/router/index.js +566 -776
  51. package/dist/react/router/index.js.map +1 -1
  52. package/dist/redis/index.d.ts +19 -19
  53. package/dist/security/index.d.ts +42 -42
  54. package/dist/security/index.d.ts.map +1 -1
  55. package/dist/security/index.js +8 -7
  56. package/dist/security/index.js.map +1 -1
  57. package/dist/server/auth/index.d.ts +167 -167
  58. package/dist/server/core/index.d.ts +9 -9
  59. package/dist/server/health/index.d.ts +17 -17
  60. package/dist/server/links/index.d.ts +39 -39
  61. package/dist/server/static/index.js +7 -2
  62. package/dist/server/static/index.js.map +1 -1
  63. package/dist/server/swagger/index.d.ts +8 -0
  64. package/dist/server/swagger/index.d.ts.map +1 -1
  65. package/dist/server/swagger/index.js +7 -2
  66. package/dist/server/swagger/index.js.map +1 -1
  67. package/dist/sms/index.d.ts +8 -0
  68. package/dist/sms/index.d.ts.map +1 -1
  69. package/dist/sms/index.js +7 -2
  70. package/dist/sms/index.js.map +1 -1
  71. package/dist/system/index.browser.js +734 -12
  72. package/dist/system/index.browser.js.map +1 -1
  73. package/dist/system/index.d.ts +8 -0
  74. package/dist/system/index.d.ts.map +1 -1
  75. package/dist/system/index.js +7 -2
  76. package/dist/system/index.js.map +1 -1
  77. package/dist/vite/index.d.ts +1 -1
  78. package/dist/vite/index.js +15 -7
  79. package/dist/vite/index.js.map +1 -1
  80. package/package.json +4 -2
  81. package/src/api/logs/TODO.md +13 -10
  82. package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -0
  83. package/src/cli/atoms/buildOptions.ts +99 -9
  84. package/src/cli/commands/build.ts +149 -32
  85. package/src/cli/commands/db.ts +5 -7
  86. package/src/cli/commands/init.spec.ts +50 -6
  87. package/src/cli/commands/init.ts +28 -5
  88. package/src/cli/providers/ViteDevServerProvider.ts +1 -10
  89. package/src/cli/services/AlephaCliUtils.ts +16 -0
  90. package/src/cli/services/PackageManagerUtils.ts +2 -0
  91. package/src/cli/services/ProjectScaffolder.spec.ts +97 -0
  92. package/src/cli/services/ProjectScaffolder.ts +28 -6
  93. package/src/cli/templates/agentMd.ts +6 -1
  94. package/src/cli/templates/apiAppSecurityTs.ts +11 -0
  95. package/src/cli/templates/apiIndexTs.ts +18 -4
  96. package/src/cli/templates/webAppRouterTs.ts +25 -1
  97. package/src/cli/templates/webHelloComponentTsx.ts +15 -5
  98. package/src/command/helpers/Runner.spec.ts +135 -0
  99. package/src/command/helpers/Runner.ts +4 -1
  100. package/src/command/providers/CliProvider.spec.ts +325 -0
  101. package/src/command/providers/CliProvider.ts +117 -7
  102. package/src/core/Alepha.ts +32 -25
  103. package/src/orm/index.bun.ts +1 -1
  104. package/src/orm/index.ts +2 -6
  105. package/src/orm/providers/drivers/BunSqliteProvider.ts +4 -1
  106. package/src/orm/providers/drivers/CloudflareD1Provider.ts +57 -30
  107. package/src/orm/providers/drivers/DatabaseProvider.ts +9 -1
  108. package/src/orm/providers/drivers/NodeSqliteProvider.ts +4 -1
  109. package/src/react/router/hooks/useActive.ts +1 -1
  110. package/src/react/router/hooks/useRouter.ts +1 -1
  111. package/src/react/router/index.ts +4 -0
  112. package/src/react/router/primitives/$page.browser.spec.tsx +24 -24
  113. package/src/react/router/primitives/$page.spec.tsx +0 -32
  114. package/src/react/router/primitives/$page.ts +6 -14
  115. package/src/react/router/providers/ReactBrowserProvider.ts +6 -3
  116. package/src/react/router/providers/ReactPageProvider.ts +1 -1
  117. package/src/react/router/providers/ReactPreloadProvider.spec.ts +142 -0
  118. package/src/react/router/providers/ReactPreloadProvider.ts +85 -0
  119. package/src/react/router/providers/ReactServerProvider.ts +7 -78
  120. package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
  121. package/src/react/router/providers/ReactServerTemplateProvider.ts +228 -665
  122. package/src/react/router/services/ReactRouter.ts +13 -13
  123. package/src/security/__tests__/ServerSecurityProvider.spec.ts +77 -0
  124. package/src/security/providers/ServerSecurityProvider.ts +30 -22
  125. package/src/server/core/providers/NodeHttpServerProvider.spec.ts +9 -3
  126. package/src/system/index.browser.ts +25 -0
  127. package/src/system/index.workerd.ts +1 -0
  128. package/src/system/providers/FileSystemProvider.ts +8 -0
  129. package/src/system/providers/NodeFileSystemProvider.ts +11 -2
  130. package/src/vite/tasks/buildServer.ts +2 -12
  131. package/src/vite/tasks/generateCloudflare.ts +10 -7
  132. package/src/vite/tasks/generateDocker.ts +4 -0
@@ -1,4 +1,4 @@
1
- import * as alepha179 from "alepha";
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: alepha179.TObject<{
233
- page: alepha179.TOptional<alepha179.TInteger>;
234
- size: alepha179.TOptional<alepha179.TInteger>;
235
- sort: alepha179.TOptional<alepha179.TString>;
236
- status: alepha179.TOptional<alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
237
- job: alepha179.TOptional<alepha179.TString>;
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<alepha179.TObject<{
245
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
246
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
247
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
248
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
249
- finishedAt: alepha179.TOptional<alepha179.TString>;
250
- job: alepha179.TString;
251
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
252
- error: alepha179.TOptional<alepha179.TString>;
253
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
254
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
255
- message: alepha179.TString;
256
- service: alepha179.TString;
257
- module: alepha179.TString;
258
- context: alepha179.TOptional<alepha179.TString>;
259
- app: alepha179.TOptional<alepha179.TString>;
260
- data: alepha179.TOptional<alepha179.TAny>;
261
- timestamp: alepha179.TNumber;
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<alepha179.Page<alepha_orm0.PgStatic<alepha179.TObject<{
266
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
267
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
268
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
269
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
270
- finishedAt: alepha179.TOptional<alepha179.TString>;
271
- job: alepha179.TString;
272
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
273
- error: alepha179.TOptional<alepha179.TString>;
274
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
275
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
276
- message: alepha179.TString;
277
- service: alepha179.TString;
278
- module: alepha179.TString;
279
- context: alepha179.TOptional<alepha179.TString>;
280
- app: alepha179.TOptional<alepha179.TString>;
281
- data: alepha179.TOptional<alepha179.TAny>;
282
- timestamp: alepha179.TNumber;
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<alepha179.TObject<{
285
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
286
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
287
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
288
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
289
- finishedAt: alepha179.TOptional<alepha179.TString>;
290
- job: alepha179.TString;
291
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
292
- error: alepha179.TOptional<alepha179.TString>;
293
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
294
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
295
- message: alepha179.TString;
296
- service: alepha179.TString;
297
- module: alepha179.TString;
298
- context: alepha179.TOptional<alepha179.TString>;
299
- app: alepha179.TOptional<alepha179.TString>;
300
- data: alepha179.TOptional<alepha179.TAny>;
301
- timestamp: alepha179.TNumber;
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: alepha179.TArray<alepha179.TString>;
315
+ response: alepha154.TArray<alepha154.TString>;
316
316
  }>;
317
317
  readonly getJobExecutions: alepha_server0.ActionPrimitiveFn<{
318
- query: alepha179.TObject<{
319
- page: alepha179.TOptional<alepha179.TInteger>;
320
- size: alepha179.TOptional<alepha179.TInteger>;
321
- sort: alepha179.TOptional<alepha179.TString>;
322
- status: alepha179.TOptional<alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
323
- job: alepha179.TOptional<alepha179.TString>;
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: alepha179.TPage<alepha179.TObject<{
326
- id: PgAttr<PgAttr<alepha179.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
327
- version: PgAttr<PgAttr<alepha179.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
328
- createdAt: PgAttr<PgAttr<alepha179.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
329
- updatedAt: PgAttr<PgAttr<alepha179.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
330
- finishedAt: alepha179.TOptional<alepha179.TString>;
331
- job: alepha179.TString;
332
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
333
- error: alepha179.TOptional<alepha179.TString>;
334
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
335
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
336
- message: alepha179.TString;
337
- service: alepha179.TString;
338
- module: alepha179.TString;
339
- context: alepha179.TOptional<alepha179.TString>;
340
- app: alepha179.TOptional<alepha179.TString>;
341
- data: alepha179.TOptional<alepha179.TAny>;
342
- timestamp: alepha179.TNumber;
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: alepha179.TObject<{
348
- name: alepha179.TString;
347
+ body: alepha154.TObject<{
348
+ name: alepha154.TString;
349
349
  }>;
350
- response: alepha179.TObject<{
351
- ok: alepha179.TBoolean;
352
- id: alepha179.TOptional<alepha179.TUnion<[alepha179.TString, alepha179.TInteger]>>;
353
- count: alepha179.TOptional<alepha179.TNumber>;
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<alepha179.TObject<{
360
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
361
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
362
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
363
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
364
- finishedAt: alepha179.TOptional<alepha179.TString>;
365
- job: alepha179.TString;
366
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
367
- error: alepha179.TOptional<alepha179.TString>;
368
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
369
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
370
- message: alepha179.TString;
371
- service: alepha179.TString;
372
- module: alepha179.TString;
373
- context: alepha179.TOptional<alepha179.TString>;
374
- app: alepha179.TOptional<alepha179.TString>;
375
- data: alepha179.TOptional<alepha179.TAny>;
376
- timestamp: alepha179.TNumber;
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: alepha179.TObject<{
383
- JOB_PREFIX: alepha179.TOptional<alepha179.TString>;
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<alepha179.TObject<{
397
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
398
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
399
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
400
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha179.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
401
- finishedAt: alepha179.TOptional<alepha179.TString>;
402
- job: alepha179.TString;
403
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
404
- error: alepha179.TOptional<alepha179.TString>;
405
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
406
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
407
- message: alepha179.TString;
408
- service: alepha179.TString;
409
- module: alepha179.TString;
410
- context: alepha179.TOptional<alepha179.TString>;
411
- app: alepha179.TOptional<alepha179.TString>;
412
- data: alepha179.TOptional<alepha179.TAny>;
413
- timestamp: alepha179.TNumber;
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: alepha179.TObject<{
508
- id: PgAttr<PgAttr<alepha179.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
509
- version: PgAttr<PgAttr<alepha179.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
510
- createdAt: PgAttr<PgAttr<alepha179.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
511
- updatedAt: PgAttr<PgAttr<alepha179.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
512
- finishedAt: alepha179.TOptional<alepha179.TString>;
513
- job: alepha179.TString;
514
- status: alepha179.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
515
- error: alepha179.TOptional<alepha179.TString>;
516
- logs: alepha179.TOptional<alepha179.TArray<alepha179.TObject<{
517
- level: alepha179.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
518
- message: alepha179.TString;
519
- service: alepha179.TString;
520
- module: alepha179.TString;
521
- context: alepha179.TOptional<alepha179.TString>;
522
- app: alepha179.TOptional<alepha179.TString>;
523
- data: alepha179.TOptional<alepha179.TAny>;
524
- timestamp: alepha179.TNumber;
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: alepha179.TObject<{
531
- name: alepha179.TString;
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: alepha179.Service<alepha179.Module>;
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