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