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