alepha 0.10.7 → 0.11.0

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/api/jobs.d.ts CHANGED
@@ -5,77 +5,40 @@ import "alepha/server/security";
5
5
  import * as _alepha_postgres0 from "alepha/postgres";
6
6
  import * as _alepha_server0 from "alepha/server";
7
7
  import { DateTimeProvider } from "alepha/datetime";
8
- import * as typebox124 from "typebox";
8
+ import * as typebox198 from "typebox";
9
+ import * as dayjs0 from "dayjs";
9
10
 
10
11
  //#region src/schemas/jobExecutionQuerySchema.d.ts
11
- declare const jobExecutionQuerySchema: typebox124.TObject<{
12
- page: typebox124.TOptional<typebox124.TInteger>;
13
- size: typebox124.TOptional<typebox124.TInteger>;
14
- sort: typebox124.TOptional<typebox124.TString>;
15
- status: typebox124.TOptional<typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
16
- job: typebox124.TOptional<typebox124.TString>;
12
+ declare const jobExecutionQuerySchema: typebox198.TObject<{
13
+ page: typebox198.TOptional<typebox198.TInteger>;
14
+ size: typebox198.TOptional<typebox198.TInteger>;
15
+ sort: typebox198.TOptional<typebox198.TString>;
16
+ status: typebox198.TOptional<typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
17
+ job: typebox198.TOptional<typebox198.TString>;
17
18
  }>;
18
19
  type JobExecutionQuery = Static<typeof jobExecutionQuerySchema>;
19
20
  //#endregion
20
21
  //#region src/services/JobService.d.ts
21
22
  declare class JobService {
22
23
  protected readonly alepha: Alepha;
23
- protected readonly executionRepository: _alepha_postgres0.RepositoryDescriptor<_alepha_postgres0.PgTableConfig<"job_executions", typebox124.TObject<{
24
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
25
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
26
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
27
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
28
- finishedAt: typebox124.TOptional<typebox124.TString>;
29
- job: typebox124.TString;
30
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
31
- error: typebox124.TOptional<typebox124.TString>;
32
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
33
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
34
- message: typebox124.TString;
35
- service: typebox124.TString;
36
- module: typebox124.TString;
37
- context: typebox124.TOptional<typebox124.TString>;
38
- app: typebox124.TOptional<typebox124.TString>;
39
- data: typebox124.TOptional<typebox124.TAny>;
40
- timestamp: typebox124.TString;
41
- }>>>;
42
- }>, _alepha_postgres0.FromSchema<typebox124.TObject<{
43
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
44
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
45
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
46
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
47
- finishedAt: typebox124.TOptional<typebox124.TString>;
48
- job: typebox124.TString;
49
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
50
- error: typebox124.TOptional<typebox124.TString>;
51
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
52
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
53
- message: typebox124.TString;
54
- service: typebox124.TString;
55
- module: typebox124.TString;
56
- context: typebox124.TOptional<typebox124.TString>;
57
- app: typebox124.TOptional<typebox124.TString>;
58
- data: typebox124.TOptional<typebox124.TAny>;
59
- timestamp: typebox124.TString;
60
- }>>>;
61
- }>>>, typebox124.TObject<{
62
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
63
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
64
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
65
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
66
- finishedAt: typebox124.TOptional<typebox124.TString>;
67
- job: typebox124.TString;
68
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
69
- error: typebox124.TOptional<typebox124.TString>;
70
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
71
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
72
- message: typebox124.TString;
73
- service: typebox124.TString;
74
- module: typebox124.TString;
75
- context: typebox124.TOptional<typebox124.TString>;
76
- app: typebox124.TOptional<typebox124.TString>;
77
- data: typebox124.TOptional<typebox124.TAny>;
78
- timestamp: typebox124.TString;
24
+ protected readonly executionRepository: _alepha_postgres0.RepositoryDescriptor<typebox198.TObject<{
25
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
26
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
27
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
28
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
29
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
30
+ job: typebox198.TString;
31
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
32
+ error: typebox198.TOptional<typebox198.TString>;
33
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
34
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
35
+ message: typebox198.TString;
36
+ service: typebox198.TString;
37
+ module: typebox198.TString;
38
+ context: typebox198.TOptional<typebox198.TString>;
39
+ app: typebox198.TOptional<typebox198.TString>;
40
+ data: typebox198.TOptional<typebox198.TAny>;
41
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
79
42
  }>>>;
80
43
  }>>;
81
44
  protected readonly dtp: DateTimeProvider;
@@ -87,7 +50,7 @@ declare class JobService {
87
50
  message: string;
88
51
  service: string;
89
52
  module: string;
90
- timestamp: string;
53
+ timestamp: dayjs0.Dayjs;
91
54
  }[]>;
92
55
  protected readonly onLogs: _alepha_core1.HookDescriptor<"log">;
93
56
  protected readonly onSchedulerBegin: _alepha_core1.HookDescriptor<"scheduler:begin">;
@@ -95,43 +58,43 @@ declare class JobService {
95
58
  readonly onSchedulerSuccess: _alepha_core1.HookDescriptor<"scheduler:success">;
96
59
  readonly onSchedulerEnd: _alepha_core1.HookDescriptor<"scheduler:end">;
97
60
  getJobs(): Promise<string[]>;
98
- getJobExecutions(query?: JobExecutionQuery): Promise<_alepha_postgres0.Page<_alepha_postgres0.PgStatic<typebox124.TObject<{
99
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
100
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
101
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
102
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
103
- finishedAt: typebox124.TOptional<typebox124.TString>;
104
- job: typebox124.TString;
105
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
106
- error: typebox124.TOptional<typebox124.TString>;
107
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
108
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
109
- message: typebox124.TString;
110
- service: typebox124.TString;
111
- module: typebox124.TString;
112
- context: typebox124.TOptional<typebox124.TString>;
113
- app: typebox124.TOptional<typebox124.TString>;
114
- data: typebox124.TOptional<typebox124.TAny>;
115
- timestamp: typebox124.TString;
61
+ getJobExecutions(query?: JobExecutionQuery): Promise<_alepha_postgres0.Page<_alepha_postgres0.PgStatic<typebox198.TObject<{
62
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
63
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
64
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
65
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
66
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
67
+ job: typebox198.TString;
68
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
69
+ error: typebox198.TOptional<typebox198.TString>;
70
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
71
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
72
+ message: typebox198.TString;
73
+ service: typebox198.TString;
74
+ module: typebox198.TString;
75
+ context: typebox198.TOptional<typebox198.TString>;
76
+ app: typebox198.TOptional<typebox198.TString>;
77
+ data: typebox198.TOptional<typebox198.TAny>;
78
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
116
79
  }>>>;
117
- }>, _alepha_postgres0.PgRelationMap<typebox124.TObject<{
118
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
119
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
120
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
121
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
122
- finishedAt: typebox124.TOptional<typebox124.TString>;
123
- job: typebox124.TString;
124
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
125
- error: typebox124.TOptional<typebox124.TString>;
126
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
127
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
128
- message: typebox124.TString;
129
- service: typebox124.TString;
130
- module: typebox124.TString;
131
- context: typebox124.TOptional<typebox124.TString>;
132
- app: typebox124.TOptional<typebox124.TString>;
133
- data: typebox124.TOptional<typebox124.TAny>;
134
- timestamp: typebox124.TString;
80
+ }>, _alepha_postgres0.PgRelationMap<typebox198.TObject<{
81
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
82
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
83
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
84
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
85
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
86
+ job: typebox198.TString;
87
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
88
+ error: typebox198.TOptional<typebox198.TString>;
89
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
90
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
91
+ message: typebox198.TString;
92
+ service: typebox198.TString;
93
+ module: typebox198.TString;
94
+ context: typebox198.TOptional<typebox198.TString>;
95
+ app: typebox198.TOptional<typebox198.TString>;
96
+ data: typebox198.TOptional<typebox198.TAny>;
97
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
135
98
  }>>>;
136
99
  }>>>>>;
137
100
  triggerJob(name: string): Promise<{
@@ -145,136 +108,98 @@ declare class JobController {
145
108
  protected readonly group: string;
146
109
  protected readonly jobService: JobService;
147
110
  readonly getJobs: _alepha_server0.ActionDescriptorFn<{
148
- response: typebox124.TArray<typebox124.TString>;
111
+ response: typebox198.TArray<typebox198.TString>;
149
112
  }>;
150
113
  readonly getJobExecutions: _alepha_server0.ActionDescriptorFn<{
151
- query: typebox124.TObject<{
152
- page: typebox124.TOptional<typebox124.TInteger>;
153
- size: typebox124.TOptional<typebox124.TInteger>;
154
- sort: typebox124.TOptional<typebox124.TString>;
155
- status: typebox124.TOptional<typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
156
- job: typebox124.TOptional<typebox124.TString>;
114
+ query: typebox198.TObject<{
115
+ page: typebox198.TOptional<typebox198.TInteger>;
116
+ size: typebox198.TOptional<typebox198.TInteger>;
117
+ sort: typebox198.TOptional<typebox198.TString>;
118
+ status: typebox198.TOptional<typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">>;
119
+ job: typebox198.TOptional<typebox198.TString>;
157
120
  }>;
158
- response: _alepha_postgres0.TPage<typebox124.TObject<{
159
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
160
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
161
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
162
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
163
- finishedAt: typebox124.TOptional<typebox124.TString>;
164
- job: typebox124.TString;
165
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
166
- error: typebox124.TOptional<typebox124.TString>;
167
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
168
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
169
- message: typebox124.TString;
170
- service: typebox124.TString;
171
- module: typebox124.TString;
172
- context: typebox124.TOptional<typebox124.TString>;
173
- app: typebox124.TOptional<typebox124.TString>;
174
- data: typebox124.TOptional<typebox124.TAny>;
175
- timestamp: typebox124.TString;
121
+ response: _alepha_postgres0.TPage<typebox198.TObject<{
122
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
123
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
124
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
125
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
126
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
127
+ job: typebox198.TString;
128
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
129
+ error: typebox198.TOptional<typebox198.TString>;
130
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
131
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
132
+ message: typebox198.TString;
133
+ service: typebox198.TString;
134
+ module: typebox198.TString;
135
+ context: typebox198.TOptional<typebox198.TString>;
136
+ app: typebox198.TOptional<typebox198.TString>;
137
+ data: typebox198.TOptional<typebox198.TAny>;
138
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
176
139
  }>>>;
177
140
  }>>;
178
141
  }>;
179
142
  readonly triggerJob: _alepha_server0.ActionDescriptorFn<{
180
- body: typebox124.TObject<{
181
- name: typebox124.TString;
143
+ body: typebox198.TObject<{
144
+ name: typebox198.TString;
182
145
  }>;
183
- response: typebox124.TObject<{
184
- ok: typebox124.TBoolean;
185
- id: typebox124.TOptional<typebox124.TUnion<[typebox124.TString, typebox124.TInteger]>>;
186
- count: typebox124.TOptional<typebox124.TNumber>;
146
+ response: typebox198.TObject<{
147
+ ok: typebox198.TBoolean;
148
+ id: typebox198.TOptional<typebox198.TUnion<[typebox198.TString, typebox198.TInteger]>>;
149
+ count: typebox198.TOptional<typebox198.TNumber>;
187
150
  }>;
188
151
  }>;
189
152
  }
190
153
  //#endregion
191
154
  //#region src/entities/jobExecutions.d.ts
192
- declare const jobExecutions: _alepha_postgres0.PgTableWithColumnsAndSchema<_alepha_postgres0.PgTableConfig<"job_executions", typebox124.TObject<{
193
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
194
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
195
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
196
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
197
- finishedAt: typebox124.TOptional<typebox124.TString>;
198
- job: typebox124.TString;
199
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
200
- error: typebox124.TOptional<typebox124.TString>;
201
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
202
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
203
- message: typebox124.TString;
204
- service: typebox124.TString;
205
- module: typebox124.TString;
206
- context: typebox124.TOptional<typebox124.TString>;
207
- app: typebox124.TOptional<typebox124.TString>;
208
- data: typebox124.TOptional<typebox124.TAny>;
209
- timestamp: typebox124.TString;
210
- }>>>;
211
- }>, _alepha_postgres0.FromSchema<typebox124.TObject<{
212
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
213
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
214
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
215
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
216
- finishedAt: typebox124.TOptional<typebox124.TString>;
217
- job: typebox124.TString;
218
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
219
- error: typebox124.TOptional<typebox124.TString>;
220
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
221
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
222
- message: typebox124.TString;
223
- service: typebox124.TString;
224
- module: typebox124.TString;
225
- context: typebox124.TOptional<typebox124.TString>;
226
- app: typebox124.TOptional<typebox124.TString>;
227
- data: typebox124.TOptional<typebox124.TAny>;
228
- timestamp: typebox124.TString;
229
- }>>>;
230
- }>>>, typebox124.TObject<{
231
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
232
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
233
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
234
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
235
- finishedAt: typebox124.TOptional<typebox124.TString>;
236
- job: typebox124.TString;
237
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
238
- error: typebox124.TOptional<typebox124.TString>;
239
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
240
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
241
- message: typebox124.TString;
242
- service: typebox124.TString;
243
- module: typebox124.TString;
244
- context: typebox124.TOptional<typebox124.TString>;
245
- app: typebox124.TOptional<typebox124.TString>;
246
- data: typebox124.TOptional<typebox124.TAny>;
247
- timestamp: typebox124.TString;
155
+ declare const jobExecutions: _alepha_postgres0.EntityDescriptor<typebox198.TObject<{
156
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
157
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
158
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
159
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
160
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
161
+ job: typebox198.TString;
162
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
163
+ error: typebox198.TOptional<typebox198.TString>;
164
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
165
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
166
+ message: typebox198.TString;
167
+ service: typebox198.TString;
168
+ module: typebox198.TString;
169
+ context: typebox198.TOptional<typebox198.TString>;
170
+ app: typebox198.TOptional<typebox198.TString>;
171
+ data: typebox198.TOptional<typebox198.TAny>;
172
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
248
173
  }>>>;
249
174
  }>>;
250
- type JobExecutionEntity = Static<typeof jobExecutions.$schema>;
175
+ type JobExecutionEntity = Static<typeof jobExecutions.schema>;
251
176
  //#endregion
252
177
  //#region src/schemas/jobExecutionResourceSchema.d.ts
253
- declare const jobExecutionResourceSchema: typebox124.TObject<{
254
- id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
255
- version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
256
- createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
257
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox124.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
258
- finishedAt: typebox124.TOptional<typebox124.TString>;
259
- job: typebox124.TString;
260
- status: typebox124.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
261
- error: typebox124.TOptional<typebox124.TString>;
262
- logs: typebox124.TOptional<typebox124.TArray<typebox124.TObject<{
263
- level: typebox124.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
264
- message: typebox124.TString;
265
- service: typebox124.TString;
266
- module: typebox124.TString;
267
- context: typebox124.TOptional<typebox124.TString>;
268
- app: typebox124.TOptional<typebox124.TString>;
269
- data: typebox124.TOptional<typebox124.TAny>;
270
- timestamp: typebox124.TString;
178
+ declare const jobExecutionResourceSchema: typebox198.TObject<{
179
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
180
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
181
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
182
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
183
+ finishedAt: typebox198.TOptional<typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>>;
184
+ job: typebox198.TString;
185
+ status: typebox198.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
186
+ error: typebox198.TOptional<typebox198.TString>;
187
+ logs: typebox198.TOptional<typebox198.TArray<typebox198.TObject<{
188
+ level: typebox198.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
189
+ message: typebox198.TString;
190
+ service: typebox198.TString;
191
+ module: typebox198.TString;
192
+ context: typebox198.TOptional<typebox198.TString>;
193
+ app: typebox198.TOptional<typebox198.TString>;
194
+ data: typebox198.TOptional<typebox198.TAny>;
195
+ timestamp: typebox198.TCodec<typebox198.TString, dayjs0.Dayjs>;
271
196
  }>>>;
272
197
  }>;
273
198
  type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
274
199
  //#endregion
275
200
  //#region src/schemas/triggerJobSchema.d.ts
276
- declare const triggerJobSchema: typebox124.TObject<{
277
- name: typebox124.TString;
201
+ declare const triggerJobSchema: typebox198.TObject<{
202
+ name: typebox198.TString;
278
203
  }>;
279
204
  type TriggerJob = Static<typeof triggerJobSchema>;
280
205
  //#endregion