alepha 0.15.0 → 0.15.1

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 (222) hide show
  1. package/README.md +43 -98
  2. package/dist/api/audits/index.d.ts +240 -240
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/audits/index.js +2 -2
  5. package/dist/api/audits/index.js.map +1 -1
  6. package/dist/api/files/index.d.ts +185 -185
  7. package/dist/api/files/index.d.ts.map +1 -1
  8. package/dist/api/files/index.js +2 -2
  9. package/dist/api/files/index.js.map +1 -1
  10. package/dist/api/jobs/index.d.ts +245 -245
  11. package/dist/api/jobs/index.d.ts.map +1 -1
  12. package/dist/api/notifications/index.browser.js +4 -4
  13. package/dist/api/notifications/index.browser.js.map +1 -1
  14. package/dist/api/notifications/index.d.ts +74 -74
  15. package/dist/api/notifications/index.d.ts.map +1 -1
  16. package/dist/api/notifications/index.js +4 -4
  17. package/dist/api/notifications/index.js.map +1 -1
  18. package/dist/api/parameters/index.d.ts +221 -221
  19. package/dist/api/parameters/index.d.ts.map +1 -1
  20. package/dist/api/users/index.d.ts +1632 -1631
  21. package/dist/api/users/index.d.ts.map +1 -1
  22. package/dist/api/users/index.js +26 -34
  23. package/dist/api/users/index.js.map +1 -1
  24. package/dist/api/verifications/index.d.ts +132 -132
  25. package/dist/api/verifications/index.d.ts.map +1 -1
  26. package/dist/batch/index.d.ts +122 -122
  27. package/dist/batch/index.d.ts.map +1 -1
  28. package/dist/bucket/index.d.ts +163 -163
  29. package/dist/bucket/index.d.ts.map +1 -1
  30. package/dist/cache/core/index.d.ts +46 -46
  31. package/dist/cache/core/index.d.ts.map +1 -1
  32. package/dist/cache/redis/index.d.ts.map +1 -1
  33. package/dist/cache/redis/index.js +2 -2
  34. package/dist/cache/redis/index.js.map +1 -1
  35. package/dist/cli/index.d.ts +5933 -201
  36. package/dist/cli/index.d.ts.map +1 -1
  37. package/dist/cli/index.js +609 -169
  38. package/dist/cli/index.js.map +1 -1
  39. package/dist/command/index.d.ts +296 -296
  40. package/dist/command/index.d.ts.map +1 -1
  41. package/dist/command/index.js +19 -19
  42. package/dist/command/index.js.map +1 -1
  43. package/dist/core/index.browser.js +268 -79
  44. package/dist/core/index.browser.js.map +1 -1
  45. package/dist/core/index.d.ts +768 -694
  46. package/dist/core/index.d.ts.map +1 -1
  47. package/dist/core/index.js +268 -79
  48. package/dist/core/index.js.map +1 -1
  49. package/dist/core/index.native.js +268 -79
  50. package/dist/core/index.native.js.map +1 -1
  51. package/dist/datetime/index.d.ts +44 -44
  52. package/dist/datetime/index.d.ts.map +1 -1
  53. package/dist/email/index.d.ts +25 -25
  54. package/dist/email/index.d.ts.map +1 -1
  55. package/dist/fake/index.d.ts +5409 -5409
  56. package/dist/fake/index.d.ts.map +1 -1
  57. package/dist/fake/index.js +22 -22
  58. package/dist/fake/index.js.map +1 -1
  59. package/dist/file/index.d.ts +435 -435
  60. package/dist/file/index.d.ts.map +1 -1
  61. package/dist/lock/core/index.d.ts +208 -208
  62. package/dist/lock/core/index.d.ts.map +1 -1
  63. package/dist/lock/redis/index.d.ts.map +1 -1
  64. package/dist/logger/index.d.ts +24 -24
  65. package/dist/logger/index.d.ts.map +1 -1
  66. package/dist/logger/index.js +1 -5
  67. package/dist/logger/index.js.map +1 -1
  68. package/dist/mcp/index.d.ts +216 -198
  69. package/dist/mcp/index.d.ts.map +1 -1
  70. package/dist/mcp/index.js +28 -4
  71. package/dist/mcp/index.js.map +1 -1
  72. package/dist/orm/index.browser.js +9 -9
  73. package/dist/orm/index.browser.js.map +1 -1
  74. package/dist/orm/index.bun.js +83 -76
  75. package/dist/orm/index.bun.js.map +1 -1
  76. package/dist/orm/index.d.ts +961 -960
  77. package/dist/orm/index.d.ts.map +1 -1
  78. package/dist/orm/index.js +88 -81
  79. package/dist/orm/index.js.map +1 -1
  80. package/dist/queue/core/index.d.ts +244 -244
  81. package/dist/queue/core/index.d.ts.map +1 -1
  82. package/dist/queue/redis/index.d.ts.map +1 -1
  83. package/dist/redis/index.d.ts +105 -105
  84. package/dist/redis/index.d.ts.map +1 -1
  85. package/dist/retry/index.d.ts +69 -69
  86. package/dist/retry/index.d.ts.map +1 -1
  87. package/dist/router/index.d.ts +6 -6
  88. package/dist/router/index.d.ts.map +1 -1
  89. package/dist/scheduler/index.d.ts +108 -26
  90. package/dist/scheduler/index.d.ts.map +1 -1
  91. package/dist/scheduler/index.js +393 -1
  92. package/dist/scheduler/index.js.map +1 -1
  93. package/dist/security/index.d.ts +532 -209
  94. package/dist/security/index.d.ts.map +1 -1
  95. package/dist/security/index.js +1422 -11
  96. package/dist/security/index.js.map +1 -1
  97. package/dist/server/auth/index.d.ts +1296 -271
  98. package/dist/server/auth/index.d.ts.map +1 -1
  99. package/dist/server/auth/index.js +1249 -18
  100. package/dist/server/auth/index.js.map +1 -1
  101. package/dist/server/cache/index.d.ts +56 -56
  102. package/dist/server/cache/index.d.ts.map +1 -1
  103. package/dist/server/compress/index.d.ts +3 -3
  104. package/dist/server/compress/index.d.ts.map +1 -1
  105. package/dist/server/cookies/index.d.ts +6 -6
  106. package/dist/server/cookies/index.d.ts.map +1 -1
  107. package/dist/server/core/index.d.ts +196 -186
  108. package/dist/server/core/index.d.ts.map +1 -1
  109. package/dist/server/core/index.js +43 -27
  110. package/dist/server/core/index.js.map +1 -1
  111. package/dist/server/cors/index.d.ts +11 -11
  112. package/dist/server/cors/index.d.ts.map +1 -1
  113. package/dist/server/health/index.d.ts.map +1 -1
  114. package/dist/server/helmet/index.d.ts +2 -2
  115. package/dist/server/helmet/index.d.ts.map +1 -1
  116. package/dist/server/links/index.browser.js +9 -1
  117. package/dist/server/links/index.browser.js.map +1 -1
  118. package/dist/server/links/index.d.ts +83 -83
  119. package/dist/server/links/index.d.ts.map +1 -1
  120. package/dist/server/links/index.js +13 -5
  121. package/dist/server/links/index.js.map +1 -1
  122. package/dist/server/metrics/index.d.ts +514 -1
  123. package/dist/server/metrics/index.d.ts.map +1 -1
  124. package/dist/server/metrics/index.js +4462 -4
  125. package/dist/server/metrics/index.js.map +1 -1
  126. package/dist/server/multipart/index.d.ts +6 -6
  127. package/dist/server/multipart/index.d.ts.map +1 -1
  128. package/dist/server/proxy/index.d.ts +102 -102
  129. package/dist/server/proxy/index.d.ts.map +1 -1
  130. package/dist/server/rate-limit/index.d.ts +16 -16
  131. package/dist/server/rate-limit/index.d.ts.map +1 -1
  132. package/dist/server/static/index.d.ts +44 -44
  133. package/dist/server/static/index.d.ts.map +1 -1
  134. package/dist/server/swagger/index.d.ts +47 -47
  135. package/dist/server/swagger/index.d.ts.map +1 -1
  136. package/dist/sms/index.d.ts +11 -11
  137. package/dist/sms/index.d.ts.map +1 -1
  138. package/dist/sms/index.js +3 -3
  139. package/dist/sms/index.js.map +1 -1
  140. package/dist/thread/index.d.ts +71 -71
  141. package/dist/thread/index.d.ts.map +1 -1
  142. package/dist/thread/index.js +2 -2
  143. package/dist/thread/index.js.map +1 -1
  144. package/dist/topic/core/index.d.ts +318 -318
  145. package/dist/topic/core/index.d.ts.map +1 -1
  146. package/dist/topic/redis/index.d.ts +6 -6
  147. package/dist/topic/redis/index.d.ts.map +1 -1
  148. package/dist/vite/index.d.ts +2324 -1719
  149. package/dist/vite/index.d.ts.map +1 -1
  150. package/dist/vite/index.js +123 -475
  151. package/dist/vite/index.js.map +1 -1
  152. package/dist/websocket/index.browser.js +3 -3
  153. package/dist/websocket/index.browser.js.map +1 -1
  154. package/dist/websocket/index.d.ts +275 -275
  155. package/dist/websocket/index.d.ts.map +1 -1
  156. package/dist/websocket/index.js +3 -3
  157. package/dist/websocket/index.js.map +1 -1
  158. package/package.json +9 -9
  159. package/src/api/users/services/SessionService.ts +0 -10
  160. package/src/cli/apps/AlephaCli.ts +2 -2
  161. package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -1
  162. package/src/cli/assets/apiHelloControllerTs.ts +2 -1
  163. package/src/cli/assets/biomeJson.ts +2 -1
  164. package/src/cli/assets/claudeMd.ts +9 -4
  165. package/src/cli/assets/dummySpecTs.ts +2 -1
  166. package/src/cli/assets/editorconfig.ts +2 -1
  167. package/src/cli/assets/mainBrowserTs.ts +2 -1
  168. package/src/cli/assets/mainCss.ts +24 -0
  169. package/src/cli/assets/tsconfigJson.ts +2 -1
  170. package/src/cli/assets/webAppRouterTs.ts +2 -1
  171. package/src/cli/assets/webHelloComponentTsx.ts +6 -2
  172. package/src/cli/atoms/appEntryOptions.ts +13 -0
  173. package/src/cli/atoms/buildOptions.ts +1 -1
  174. package/src/cli/atoms/changelogOptions.ts +1 -1
  175. package/src/cli/commands/build.ts +63 -47
  176. package/src/cli/commands/dev.ts +16 -33
  177. package/src/cli/commands/gen/env.ts +1 -1
  178. package/src/cli/commands/init.ts +17 -8
  179. package/src/cli/commands/lint.ts +1 -1
  180. package/src/cli/defineConfig.ts +9 -0
  181. package/src/cli/index.ts +2 -1
  182. package/src/cli/providers/AppEntryProvider.ts +131 -0
  183. package/src/cli/providers/ViteBuildProvider.ts +82 -0
  184. package/src/cli/providers/ViteDevServerProvider.ts +350 -0
  185. package/src/cli/providers/ViteTemplateProvider.ts +27 -0
  186. package/src/cli/services/AlephaCliUtils.ts +33 -2
  187. package/src/cli/services/PackageManagerUtils.ts +13 -6
  188. package/src/cli/services/ProjectScaffolder.ts +72 -49
  189. package/src/core/Alepha.ts +2 -8
  190. package/src/core/primitives/$module.ts +12 -0
  191. package/src/core/providers/KeylessJsonSchemaCodec.spec.ts +257 -0
  192. package/src/core/providers/KeylessJsonSchemaCodec.ts +396 -14
  193. package/src/core/providers/SchemaValidator.spec.ts +236 -0
  194. package/src/logger/providers/PrettyFormatterProvider.ts +0 -9
  195. package/src/mcp/errors/McpError.ts +30 -0
  196. package/src/mcp/index.ts +3 -0
  197. package/src/mcp/transports/SseMcpTransport.ts +16 -6
  198. package/src/orm/providers/DrizzleKitProvider.ts +3 -5
  199. package/src/orm/services/Repository.ts +11 -0
  200. package/src/server/core/index.ts +1 -1
  201. package/src/server/core/providers/BunHttpServerProvider.ts +1 -1
  202. package/src/server/core/providers/NodeHttpServerProvider.spec.ts +125 -0
  203. package/src/server/core/providers/NodeHttpServerProvider.ts +71 -22
  204. package/src/server/core/providers/ServerLoggerProvider.ts +2 -2
  205. package/src/server/core/providers/ServerProvider.ts +9 -12
  206. package/src/server/links/atoms/apiLinksAtom.ts +7 -0
  207. package/src/server/links/index.browser.ts +2 -0
  208. package/src/server/links/index.ts +2 -0
  209. package/src/vite/index.ts +3 -2
  210. package/src/vite/tasks/buildClient.ts +0 -1
  211. package/src/vite/tasks/buildServer.ts +68 -21
  212. package/src/vite/tasks/copyAssets.ts +5 -4
  213. package/src/vite/tasks/generateSitemap.ts +64 -23
  214. package/src/vite/tasks/index.ts +0 -2
  215. package/src/vite/tasks/prerenderPages.ts +49 -24
  216. package/src/cli/assets/indexHtml.ts +0 -15
  217. package/src/cli/commands/format.ts +0 -23
  218. package/src/vite/helpers/boot.ts +0 -117
  219. package/src/vite/plugins/viteAlephaDev.ts +0 -177
  220. package/src/vite/tasks/devServer.ts +0 -71
  221. package/src/vite/tasks/runAlepha.ts +0 -270
  222. /package/dist/orm/{chunk-DtkW-qnP.js → chunk-DH6iiROE.js} +0 -0
@@ -1,7 +1,7 @@
1
- import * as alepha151 from "alepha";
1
+ import * as alepha103 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
- import * as alepha_orm16 from "alepha/orm";
4
+ import * as alepha_orm33 from "alepha/orm";
5
5
  import "alepha/logger";
6
6
  import { DateTime, DateTimeProvider } from "alepha/datetime";
7
7
  import { LockPrimitive } from "alepha/lock";
@@ -42,114 +42,114 @@ type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["properties"]]:
42
42
  //#region ../../src/orm/primitives/$entity.d.ts
43
43
  interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
44
44
  /**
45
- * The database table name that will be created for this entity.
46
- * If not provided, name will be inferred from the $repository variable name.
47
- */
45
+ * The database table name that will be created for this entity.
46
+ * If not provided, name will be inferred from the $repository variable name.
47
+ */
48
48
  name: string;
49
49
  /**
50
- * TypeBox schema defining the table structure and column types.
51
- */
50
+ * TypeBox schema defining the table structure and column types.
51
+ */
52
52
  schema: T;
53
53
  /**
54
- * Database indexes to create for query optimization.
55
- */
54
+ * Database indexes to create for query optimization.
55
+ */
56
56
  indexes?: (Keys | {
57
57
  /**
58
- * Single column to index.
59
- */
58
+ * Single column to index.
59
+ */
60
60
  column: Keys;
61
61
  /**
62
- * Whether this should be a unique index (enforces uniqueness constraint).
63
- */
62
+ * Whether this should be a unique index (enforces uniqueness constraint).
63
+ */
64
64
  unique?: boolean;
65
65
  /**
66
- * Custom name for the index. If not provided, generates name automatically.
67
- */
66
+ * Custom name for the index. If not provided, generates name automatically.
67
+ */
68
68
  name?: string;
69
69
  } | {
70
70
  /**
71
- * Multiple columns for composite index (order matters for query optimization).
72
- */
71
+ * Multiple columns for composite index (order matters for query optimization).
72
+ */
73
73
  columns: Keys[];
74
74
  /**
75
- * Whether this should be a unique index (enforces uniqueness constraint).
76
- */
75
+ * Whether this should be a unique index (enforces uniqueness constraint).
76
+ */
77
77
  unique?: boolean;
78
78
  /**
79
- * Custom name for the index. If not provided, generates name automatically.
80
- */
79
+ * Custom name for the index. If not provided, generates name automatically.
80
+ */
81
81
  name?: string;
82
82
  })[];
83
83
  /**
84
- * Foreign key constraints to maintain referential integrity.
85
- */
84
+ * Foreign key constraints to maintain referential integrity.
85
+ */
86
86
  foreignKeys?: Array<{
87
87
  /**
88
- * Optional name for the foreign key constraint.
89
- */
88
+ * Optional name for the foreign key constraint.
89
+ */
90
90
  name?: string;
91
91
  /**
92
- * Local columns that reference the foreign table.
93
- */
92
+ * Local columns that reference the foreign table.
93
+ */
94
94
  columns: Array<keyof Static<T>>;
95
95
  /**
96
- * Referenced columns in the foreign table.
97
- * Must be EntityColumn references from other entities.
98
- */
96
+ * Referenced columns in the foreign table.
97
+ * Must be EntityColumn references from other entities.
98
+ */
99
99
  foreignColumns: Array<() => EntityColumn<any>>;
100
100
  }>;
101
101
  /**
102
- * Additional table constraints for data validation.
103
- *
104
- * Constraints enforce business rules at the database level, providing
105
- * an additional layer of data integrity beyond application validation.
106
- *
107
- * **Constraint Types**:
108
- * - **Unique constraints**: Prevent duplicate values across columns
109
- * - **Check constraints**: Enforce custom validation rules with SQL expressions
110
- *
111
- * @example
112
- * ```ts
113
- * constraints: [
114
- * {
115
- * name: "unique_user_email",
116
- * columns: ["email"],
117
- * unique: true
118
- * },
119
- * {
120
- * name: "valid_age_range",
121
- * columns: ["age"],
122
- * check: sql`age >= 0 AND age <= 150`
123
- * },
124
- * {
125
- * name: "unique_user_username_per_tenant",
126
- * columns: ["tenantId", "username"],
127
- * unique: true
128
- * }
129
- * ]
130
- * ```
131
- */
102
+ * Additional table constraints for data validation.
103
+ *
104
+ * Constraints enforce business rules at the database level, providing
105
+ * an additional layer of data integrity beyond application validation.
106
+ *
107
+ * **Constraint Types**:
108
+ * - **Unique constraints**: Prevent duplicate values across columns
109
+ * - **Check constraints**: Enforce custom validation rules with SQL expressions
110
+ *
111
+ * @example
112
+ * ```ts
113
+ * constraints: [
114
+ * {
115
+ * name: "unique_user_email",
116
+ * columns: ["email"],
117
+ * unique: true
118
+ * },
119
+ * {
120
+ * name: "valid_age_range",
121
+ * columns: ["age"],
122
+ * check: sql`age >= 0 AND age <= 150`
123
+ * },
124
+ * {
125
+ * name: "unique_user_username_per_tenant",
126
+ * columns: ["tenantId", "username"],
127
+ * unique: true
128
+ * }
129
+ * ]
130
+ * ```
131
+ */
132
132
  constraints?: Array<{
133
133
  /**
134
- * Columns involved in this constraint.
135
- */
134
+ * Columns involved in this constraint.
135
+ */
136
136
  columns: Array<keyof Static<T>>;
137
137
  /**
138
- * Optional name for the constraint.
139
- */
138
+ * Optional name for the constraint.
139
+ */
140
140
  name?: string;
141
141
  /**
142
- * Whether this is a unique constraint.
143
- */
142
+ * Whether this is a unique constraint.
143
+ */
144
144
  unique?: boolean | {};
145
145
  /**
146
- * SQL expression for check constraint validation.
147
- */
146
+ * SQL expression for check constraint validation.
147
+ */
148
148
  check?: SQL;
149
149
  }>;
150
150
  /**
151
- * Advanced Drizzle ORM configuration for complex table setups.
152
- */
151
+ * Advanced Drizzle ORM configuration for complex table setups.
152
+ */
153
153
  config?: (self: BuildExtraConfigColumns<string, FromSchema<T>, "pg">) => PgTableExtraConfigValue[];
154
154
  }
155
155
  declare class EntityPrimitive<T extends TObject = TObject> {
@@ -197,8 +197,8 @@ type PgSymbols = {
197
197
  [PG_REF]: PgRefOptions;
198
198
  [PG_ENUM]: PgEnumOptions;
199
199
  /**
200
- * @deprecated Use `PG_IDENTITY` instead.
201
- */
200
+ * @deprecated Use `PG_IDENTITY` instead.
201
+ */
202
202
  [PG_SERIAL]: {};
203
203
  };
204
204
  type PgSymbolKeys = keyof PgSymbols;
@@ -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: alepha151.TObject<{
233
- page: alepha151.TOptional<alepha151.TInteger>;
234
- size: alepha151.TOptional<alepha151.TInteger>;
235
- sort: alepha151.TOptional<alepha151.TString>;
236
- status: alepha151.TOptional<alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
237
- job: alepha151.TOptional<alepha151.TString>;
232
+ declare const jobExecutionQuerySchema: alepha103.TObject<{
233
+ page: alepha103.TOptional<alepha103.TInteger>;
234
+ size: alepha103.TOptional<alepha103.TInteger>;
235
+ sort: alepha103.TOptional<alepha103.TString>;
236
+ status: alepha103.TOptional<alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
237
+ job: alepha103.TOptional<alepha103.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_orm16.Repository<alepha151.TObject<{
245
- id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
246
- version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
247
- createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
248
- updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
249
- finishedAt: alepha151.TOptional<alepha151.TString>;
250
- job: alepha151.TString;
251
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
252
- error: alepha151.TOptional<alepha151.TString>;
253
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
254
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
255
- message: alepha151.TString;
256
- service: alepha151.TString;
257
- module: alepha151.TString;
258
- context: alepha151.TOptional<alepha151.TString>;
259
- app: alepha151.TOptional<alepha151.TString>;
260
- data: alepha151.TOptional<alepha151.TAny>;
261
- timestamp: alepha151.TNumber;
244
+ protected readonly executionRepository: alepha_orm33.Repository<alepha103.TObject<{
245
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
246
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
247
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
248
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
249
+ finishedAt: alepha103.TOptional<alepha103.TString>;
250
+ job: alepha103.TString;
251
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
252
+ error: alepha103.TOptional<alepha103.TString>;
253
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
254
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
255
+ message: alepha103.TString;
256
+ service: alepha103.TString;
257
+ module: alepha103.TString;
258
+ context: alepha103.TOptional<alepha103.TString>;
259
+ app: alepha103.TOptional<alepha103.TString>;
260
+ data: alepha103.TOptional<alepha103.TAny>;
261
+ timestamp: alepha103.TNumber;
262
262
  }>>>;
263
263
  }>>;
264
264
  getJobs(): Promise<string[]>;
265
- getJobExecutions(query?: JobExecutionQuery): Promise<alepha151.Page<alepha_orm16.PgStatic<alepha151.TObject<{
266
- id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
267
- version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
268
- createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
269
- updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
270
- finishedAt: alepha151.TOptional<alepha151.TString>;
271
- job: alepha151.TString;
272
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
273
- error: alepha151.TOptional<alepha151.TString>;
274
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
275
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
276
- message: alepha151.TString;
277
- service: alepha151.TString;
278
- module: alepha151.TString;
279
- context: alepha151.TOptional<alepha151.TString>;
280
- app: alepha151.TOptional<alepha151.TString>;
281
- data: alepha151.TOptional<alepha151.TAny>;
282
- timestamp: alepha151.TNumber;
265
+ getJobExecutions(query?: JobExecutionQuery): Promise<alepha103.Page<alepha_orm33.PgStatic<alepha103.TObject<{
266
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
267
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
268
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
269
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
270
+ finishedAt: alepha103.TOptional<alepha103.TString>;
271
+ job: alepha103.TString;
272
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
273
+ error: alepha103.TOptional<alepha103.TString>;
274
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
275
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
276
+ message: alepha103.TString;
277
+ service: alepha103.TString;
278
+ module: alepha103.TString;
279
+ context: alepha103.TOptional<alepha103.TString>;
280
+ app: alepha103.TOptional<alepha103.TString>;
281
+ data: alepha103.TOptional<alepha103.TAny>;
282
+ timestamp: alepha103.TNumber;
283
283
  }>>>;
284
- }>, alepha_orm16.PgRelationMap<alepha151.TObject<{
285
- id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
286
- version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
287
- createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
288
- updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
289
- finishedAt: alepha151.TOptional<alepha151.TString>;
290
- job: alepha151.TString;
291
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
292
- error: alepha151.TOptional<alepha151.TString>;
293
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
294
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
295
- message: alepha151.TString;
296
- service: alepha151.TString;
297
- module: alepha151.TString;
298
- context: alepha151.TOptional<alepha151.TString>;
299
- app: alepha151.TOptional<alepha151.TString>;
300
- data: alepha151.TOptional<alepha151.TAny>;
301
- timestamp: alepha151.TNumber;
284
+ }>, alepha_orm33.PgRelationMap<alepha103.TObject<{
285
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
286
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
287
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
288
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
289
+ finishedAt: alepha103.TOptional<alepha103.TString>;
290
+ job: alepha103.TString;
291
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
292
+ error: alepha103.TOptional<alepha103.TString>;
293
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
294
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
295
+ message: alepha103.TString;
296
+ service: alepha103.TString;
297
+ module: alepha103.TString;
298
+ context: alepha103.TOptional<alepha103.TString>;
299
+ app: alepha103.TOptional<alepha103.TString>;
300
+ data: alepha103.TOptional<alepha103.TAny>;
301
+ timestamp: alepha103.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: alepha151.TArray<alepha151.TString>;
315
+ response: alepha103.TArray<alepha103.TString>;
316
316
  }>;
317
317
  readonly getJobExecutions: alepha_server0.ActionPrimitiveFn<{
318
- query: alepha151.TObject<{
319
- page: alepha151.TOptional<alepha151.TInteger>;
320
- size: alepha151.TOptional<alepha151.TInteger>;
321
- sort: alepha151.TOptional<alepha151.TString>;
322
- status: alepha151.TOptional<alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
323
- job: alepha151.TOptional<alepha151.TString>;
318
+ query: alepha103.TObject<{
319
+ page: alepha103.TOptional<alepha103.TInteger>;
320
+ size: alepha103.TOptional<alepha103.TInteger>;
321
+ sort: alepha103.TOptional<alepha103.TString>;
322
+ status: alepha103.TOptional<alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
323
+ job: alepha103.TOptional<alepha103.TString>;
324
324
  }>;
325
- response: alepha151.TPage<alepha151.TObject<{
326
- id: PgAttr<PgAttr<alepha151.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
327
- version: PgAttr<PgAttr<alepha151.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
328
- createdAt: PgAttr<PgAttr<alepha151.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
329
- updatedAt: PgAttr<PgAttr<alepha151.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
330
- finishedAt: alepha151.TOptional<alepha151.TString>;
331
- job: alepha151.TString;
332
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
333
- error: alepha151.TOptional<alepha151.TString>;
334
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
335
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
336
- message: alepha151.TString;
337
- service: alepha151.TString;
338
- module: alepha151.TString;
339
- context: alepha151.TOptional<alepha151.TString>;
340
- app: alepha151.TOptional<alepha151.TString>;
341
- data: alepha151.TOptional<alepha151.TAny>;
342
- timestamp: alepha151.TNumber;
325
+ response: alepha103.TPage<alepha103.TObject<{
326
+ id: PgAttr<PgAttr<alepha103.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
327
+ version: PgAttr<PgAttr<alepha103.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
328
+ createdAt: PgAttr<PgAttr<alepha103.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
329
+ updatedAt: PgAttr<PgAttr<alepha103.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
330
+ finishedAt: alepha103.TOptional<alepha103.TString>;
331
+ job: alepha103.TString;
332
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
333
+ error: alepha103.TOptional<alepha103.TString>;
334
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
335
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
336
+ message: alepha103.TString;
337
+ service: alepha103.TString;
338
+ module: alepha103.TString;
339
+ context: alepha103.TOptional<alepha103.TString>;
340
+ app: alepha103.TOptional<alepha103.TString>;
341
+ data: alepha103.TOptional<alepha103.TAny>;
342
+ timestamp: alepha103.TNumber;
343
343
  }>>>;
344
344
  }>>;
345
345
  }>;
346
346
  readonly triggerJob: alepha_server0.ActionPrimitiveFn<{
347
- body: alepha151.TObject<{
348
- name: alepha151.TString;
347
+ body: alepha103.TObject<{
348
+ name: alepha103.TString;
349
349
  }>;
350
- response: alepha151.TObject<{
351
- ok: alepha151.TBoolean;
352
- id: alepha151.TOptional<alepha151.TUnion<[alepha151.TString, alepha151.TInteger]>>;
353
- count: alepha151.TOptional<alepha151.TNumber>;
350
+ response: alepha103.TObject<{
351
+ ok: alepha103.TBoolean;
352
+ id: alepha103.TOptional<alepha103.TUnion<[alepha103.TString, alepha103.TInteger]>>;
353
+ count: alepha103.TOptional<alepha103.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_orm16.EntityPrimitive<alepha151.TObject<{
360
- id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
361
- version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
362
- createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
363
- updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
364
- finishedAt: alepha151.TOptional<alepha151.TString>;
365
- job: alepha151.TString;
366
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
367
- error: alepha151.TOptional<alepha151.TString>;
368
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
369
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
370
- message: alepha151.TString;
371
- service: alepha151.TString;
372
- module: alepha151.TString;
373
- context: alepha151.TOptional<alepha151.TString>;
374
- app: alepha151.TOptional<alepha151.TString>;
375
- data: alepha151.TOptional<alepha151.TAny>;
376
- timestamp: alepha151.TNumber;
359
+ declare const jobExecutions: alepha_orm33.EntityPrimitive<alepha103.TObject<{
360
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
361
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
362
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
363
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
364
+ finishedAt: alepha103.TOptional<alepha103.TString>;
365
+ job: alepha103.TString;
366
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
367
+ error: alepha103.TOptional<alepha103.TString>;
368
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
369
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
370
+ message: alepha103.TString;
371
+ service: alepha103.TString;
372
+ module: alepha103.TString;
373
+ context: alepha103.TOptional<alepha103.TString>;
374
+ app: alepha103.TOptional<alepha103.TString>;
375
+ data: alepha103.TOptional<alepha103.TAny>;
376
+ timestamp: alepha103.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: alepha151.TObject<{
383
- JOB_PREFIX: alepha151.TOptional<alepha151.TString>;
382
+ declare const envSchema: alepha103.TObject<{
383
+ JOB_PREFIX: alepha103.TOptional<alepha103.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_orm16.Repository<alepha151.TObject<{
397
- id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
398
- version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
399
- createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
400
- updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha151.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
401
- finishedAt: alepha151.TOptional<alepha151.TString>;
402
- job: alepha151.TString;
403
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
404
- error: alepha151.TOptional<alepha151.TString>;
405
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
406
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
407
- message: alepha151.TString;
408
- service: alepha151.TString;
409
- module: alepha151.TString;
410
- context: alepha151.TOptional<alepha151.TString>;
411
- app: alepha151.TOptional<alepha151.TString>;
412
- data: alepha151.TOptional<alepha151.TAny>;
413
- timestamp: alepha151.TNumber;
396
+ protected readonly executionRepository: alepha_orm33.Repository<alepha103.TObject<{
397
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
398
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
399
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
400
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha103.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
401
+ finishedAt: alepha103.TOptional<alepha103.TString>;
402
+ job: alepha103.TString;
403
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
404
+ error: alepha103.TOptional<alepha103.TString>;
405
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
406
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
407
+ message: alepha103.TString;
408
+ service: alepha103.TString;
409
+ module: alepha103.TString;
410
+ context: alepha103.TOptional<alepha103.TString>;
411
+ app: alepha103.TOptional<alepha103.TString>;
412
+ data: alepha103.TOptional<alepha103.TAny>;
413
+ timestamp: alepha103.TNumber;
414
414
  }>>>;
415
415
  }>>;
416
416
  protected readonly env: {
@@ -428,49 +428,49 @@ declare class JobProvider {
428
428
  }[]>;
429
429
  protected readonly jobs: Map<string, JobRegistration>;
430
430
  /**
431
- * Register and set up a job for execution (called during primitive initialization).
432
- */
431
+ * Register and set up a job for execution (called during primitive initialization).
432
+ */
433
433
  registerJob(options: Job): JobRegistration;
434
434
  /**
435
- * Trigger a job by name.
436
- */
435
+ * Trigger a job by name.
436
+ */
437
437
  triggerJob(jobName: string): Promise<void>;
438
438
  /**
439
- * Execute a job handler (called by the job primitive).
440
- */
439
+ * Execute a job handler (called by the job primitive).
440
+ */
441
441
  executeJob(jobName: string, handler: (args: {
442
442
  now: DateTime;
443
443
  }) => Async<void>): Promise<void>;
444
444
  }
445
445
  interface Job {
446
446
  /**
447
- * Name of the job.
448
- */
447
+ * Name of the job.
448
+ */
449
449
  name: string;
450
450
  /**
451
- * Optional description of the job.
452
- */
451
+ * Optional description of the job.
452
+ */
453
453
  description?: string;
454
454
  /**
455
- * Function to run on schedule.
456
- */
455
+ * Function to run on schedule.
456
+ */
457
457
  handler: (args: {
458
458
  now: DateTime;
459
459
  }) => Async<void>;
460
460
  /**
461
- * Cron expression to run the job.
462
- */
461
+ * Cron expression to run the job.
462
+ */
463
463
  cron?: string;
464
464
  /**
465
- * If true, the job will be locked and only one instance will run at a time.
466
- * You probably need to import {@link AlephaLockRedis} for distributed locking.
467
- *
468
- * @default true
469
- */
465
+ * If true, the job will be locked and only one instance will run at a time.
466
+ * You probably need to import {@link AlephaLockRedis} for distributed locking.
467
+ *
468
+ * @default true
469
+ */
470
470
  lock?: boolean;
471
471
  /**
472
- * Optional prefix for job lock keys.
473
- */
472
+ * Optional prefix for job lock keys.
473
+ */
474
474
  lockPrefix?: string;
475
475
  }
476
476
  interface JobRegistration {
@@ -489,8 +489,8 @@ declare const $job: {
489
489
  };
490
490
  type JobPrimitiveOptions = Omit<Job, "name"> & {
491
491
  /**
492
- * Name of the job. Defaults to the primitive property name.
493
- */
492
+ * Name of the job. Defaults to the primitive property name.
493
+ */
494
494
  name?: string;
495
495
  };
496
496
  declare class JobPrimitive extends Primitive<JobPrimitiveOptions> {
@@ -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: alepha151.TObject<{
508
- id: PgAttr<PgAttr<alepha151.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
509
- version: PgAttr<PgAttr<alepha151.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
510
- createdAt: PgAttr<PgAttr<alepha151.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
511
- updatedAt: PgAttr<PgAttr<alepha151.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
512
- finishedAt: alepha151.TOptional<alepha151.TString>;
513
- job: alepha151.TString;
514
- status: alepha151.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
515
- error: alepha151.TOptional<alepha151.TString>;
516
- logs: alepha151.TOptional<alepha151.TArray<alepha151.TObject<{
517
- level: alepha151.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
518
- message: alepha151.TString;
519
- service: alepha151.TString;
520
- module: alepha151.TString;
521
- context: alepha151.TOptional<alepha151.TString>;
522
- app: alepha151.TOptional<alepha151.TString>;
523
- data: alepha151.TOptional<alepha151.TAny>;
524
- timestamp: alepha151.TNumber;
507
+ declare const jobExecutionResourceSchema: alepha103.TObject<{
508
+ id: PgAttr<PgAttr<alepha103.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
509
+ version: PgAttr<PgAttr<alepha103.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
510
+ createdAt: PgAttr<PgAttr<alepha103.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
511
+ updatedAt: PgAttr<PgAttr<alepha103.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
512
+ finishedAt: alepha103.TOptional<alepha103.TString>;
513
+ job: alepha103.TString;
514
+ status: alepha103.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
515
+ error: alepha103.TOptional<alepha103.TString>;
516
+ logs: alepha103.TOptional<alepha103.TArray<alepha103.TObject<{
517
+ level: alepha103.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
518
+ message: alepha103.TString;
519
+ service: alepha103.TString;
520
+ module: alepha103.TString;
521
+ context: alepha103.TOptional<alepha103.TString>;
522
+ app: alepha103.TOptional<alepha103.TString>;
523
+ data: alepha103.TOptional<alepha103.TAny>;
524
+ timestamp: alepha103.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: alepha151.TObject<{
531
- name: alepha151.TString;
530
+ declare const triggerJobSchema: alepha103.TObject<{
531
+ name: alepha103.TString;
532
532
  }>;
533
533
  type TriggerJob = Static<typeof triggerJobSchema>;
534
534
  //#endregion
@@ -541,7 +541,7 @@ type TriggerJob = Static<typeof triggerJobSchema>;
541
541
  *
542
542
  * @module alepha.api.jobs
543
543
  */
544
- declare const AlephaApiJobs: alepha151.Service<alepha151.Module>;
544
+ declare const AlephaApiJobs: alepha103.Service<alepha103.Module>;
545
545
  //#endregion
546
546
  export { $job, AdminJobController, AlephaApiJobs, Job, JobExecutionEntity, JobExecutionQuery, JobExecutionResource, JobHandlerArguments, JobPrimitive, JobPrimitiveOptions, JobProvider, JobRegistration, JobService, TriggerJob, jobExecutionQuerySchema, jobExecutionResourceSchema, jobExecutions, triggerJobSchema };
547
547
  //# sourceMappingURL=index.d.ts.map