alepha 0.10.5 → 0.10.7
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 +302 -1
- package/api/jobs.d.ts +207 -188
- package/api/notifications.cjs +8 -0
- package/api/notifications.d.ts +377 -0
- package/api/notifications.js +1 -0
- package/api/users.d.ts +1074 -258
- package/api/verifications.cjs +8 -0
- package/api/verifications.d.ts +1 -0
- package/api/verifications.js +1 -0
- package/batch.d.ts +8 -8
- package/bucket.d.ts +0 -194
- package/cache.d.ts +12 -12
- package/command.d.ts +11 -11
- package/core.d.ts +63 -42
- package/devtools.d.ts +247 -247
- package/email.d.ts +44 -228
- package/lock.d.ts +8 -8
- package/logger.d.ts +0 -1
- package/package.json +69 -48
- package/postgres.d.ts +437 -390
- package/queue.d.ts +14 -14
- package/react/form.d.ts +17 -17
- package/react/i18n.d.ts +10 -7
- package/react.d.ts +39 -39
- package/retry.d.ts +8 -8
- package/scheduler.d.ts +11 -1
- package/security.d.ts +0 -3
- package/server/cache.d.ts +92 -8
- package/server/cookies.d.ts +10 -10
- package/server/links.d.ts +34 -34
- package/server/security.d.ts +4 -6
- package/server/swagger.d.ts +2 -1
- package/server.d.ts +50 -37
- package/topic.d.ts +17 -17
- package/ui.cjs +8 -0
- package/ui.d.ts +300 -0
- package/ui.js +1 -0
- package/vite.d.ts +5 -3
package/api/jobs.d.ts
CHANGED
|
@@ -5,77 +5,77 @@ 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
|
|
8
|
+
import * as typebox124 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: 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>;
|
|
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: _alepha_postgres0.RepositoryDescriptor<_alepha_postgres0.PgTableConfig<"job_executions",
|
|
24
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
25
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
26
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
27
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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_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
41
|
}>>>;
|
|
42
|
-
}>, _alepha_postgres0.FromSchema<
|
|
43
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
44
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
45
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
46
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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_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
60
|
}>>>;
|
|
61
|
-
}>>>,
|
|
62
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
63
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
64
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
65
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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
|
+
}>>>, 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;
|
|
79
79
|
}>>>;
|
|
80
80
|
}>>;
|
|
81
81
|
protected readonly dtp: DateTimeProvider;
|
|
@@ -95,26 +95,45 @@ 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<_alepha_postgres0.Page<{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
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;
|
|
116
|
+
}>>>;
|
|
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;
|
|
135
|
+
}>>>;
|
|
136
|
+
}>>>>>;
|
|
118
137
|
triggerJob(name: string): Promise<{
|
|
119
138
|
ok: boolean;
|
|
120
139
|
}>;
|
|
@@ -122,140 +141,140 @@ declare class JobService {
|
|
|
122
141
|
//#endregion
|
|
123
142
|
//#region src/controllers/JobController.d.ts
|
|
124
143
|
declare class JobController {
|
|
125
|
-
protected readonly url
|
|
126
|
-
protected readonly group
|
|
144
|
+
protected readonly url: string;
|
|
145
|
+
protected readonly group: string;
|
|
127
146
|
protected readonly jobService: JobService;
|
|
128
147
|
readonly getJobs: _alepha_server0.ActionDescriptorFn<{
|
|
129
|
-
response:
|
|
148
|
+
response: typebox124.TArray<typebox124.TString>;
|
|
130
149
|
}>;
|
|
131
150
|
readonly getJobExecutions: _alepha_server0.ActionDescriptorFn<{
|
|
132
|
-
query:
|
|
133
|
-
page:
|
|
134
|
-
size:
|
|
135
|
-
sort:
|
|
136
|
-
status:
|
|
137
|
-
job:
|
|
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>;
|
|
138
157
|
}>;
|
|
139
|
-
response: _alepha_postgres0.TPage<
|
|
140
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
141
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
142
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
143
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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:
|
|
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;
|
|
157
176
|
}>>>;
|
|
158
177
|
}>>;
|
|
159
178
|
}>;
|
|
160
179
|
readonly triggerJob: _alepha_server0.ActionDescriptorFn<{
|
|
161
|
-
body:
|
|
162
|
-
name:
|
|
180
|
+
body: typebox124.TObject<{
|
|
181
|
+
name: typebox124.TString;
|
|
163
182
|
}>;
|
|
164
|
-
response:
|
|
165
|
-
ok:
|
|
166
|
-
id:
|
|
167
|
-
count:
|
|
183
|
+
response: typebox124.TObject<{
|
|
184
|
+
ok: typebox124.TBoolean;
|
|
185
|
+
id: typebox124.TOptional<typebox124.TUnion<[typebox124.TString, typebox124.TInteger]>>;
|
|
186
|
+
count: typebox124.TOptional<typebox124.TNumber>;
|
|
168
187
|
}>;
|
|
169
188
|
}>;
|
|
170
189
|
}
|
|
171
190
|
//#endregion
|
|
172
191
|
//#region src/entities/jobExecutions.d.ts
|
|
173
|
-
declare const jobExecutions: _alepha_postgres0.PgTableWithColumnsAndSchema<_alepha_postgres0.PgTableConfig<"job_executions",
|
|
174
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
175
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
176
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
177
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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:
|
|
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;
|
|
191
210
|
}>>>;
|
|
192
|
-
}>, _alepha_postgres0.FromSchema<
|
|
193
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
194
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
195
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
196
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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:
|
|
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;
|
|
210
229
|
}>>>;
|
|
211
|
-
}>>>,
|
|
212
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
213
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
214
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
215
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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:
|
|
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;
|
|
229
248
|
}>>>;
|
|
230
249
|
}>>;
|
|
231
250
|
type JobExecutionEntity = Static<typeof jobExecutions.$schema>;
|
|
232
251
|
//#endregion
|
|
233
252
|
//#region src/schemas/jobExecutionResourceSchema.d.ts
|
|
234
|
-
declare const jobExecutionResourceSchema:
|
|
235
|
-
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
236
|
-
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
237
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
238
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<
|
|
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:
|
|
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;
|
|
252
271
|
}>>>;
|
|
253
272
|
}>;
|
|
254
273
|
type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
|
|
255
274
|
//#endregion
|
|
256
275
|
//#region src/schemas/triggerJobSchema.d.ts
|
|
257
|
-
declare const triggerJobSchema:
|
|
258
|
-
name:
|
|
276
|
+
declare const triggerJobSchema: typebox124.TObject<{
|
|
277
|
+
name: typebox124.TString;
|
|
259
278
|
}>;
|
|
260
279
|
type TriggerJob = Static<typeof triggerJobSchema>;
|
|
261
280
|
//#endregion
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var m = require('@alepha/api-notifications');
|
|
3
|
+
Object.keys(m).forEach(function (k) {
|
|
4
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function () { return m[k]; }
|
|
7
|
+
});
|
|
8
|
+
});
|