alepha 0.10.6 → 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/files.d.ts +336 -175
- package/api/jobs.d.ts +139 -195
- package/api/notifications.cjs +8 -0
- package/api/notifications.d.ts +264 -0
- package/api/notifications.js +1 -0
- package/api/users.d.ts +790 -261
- package/api/verifications.cjs +8 -0
- package/api/verifications.d.ts +1 -0
- package/api/verifications.js +1 -0
- package/batch.d.ts +1 -1
- package/bucket.d.ts +1 -195
- package/cache.d.ts +1 -1
- package/core.d.ts +301 -189
- package/datetime.d.ts +41 -10
- package/email.d.ts +41 -225
- package/logger.d.ts +19 -10
- package/package.json +70 -62
- package/postgres.d.ts +624 -1284
- package/react/auth.d.ts +1 -1
- package/react/form.d.ts +19 -8
- package/react/i18n.d.ts +8 -5
- package/react.d.ts +30 -10
- package/scheduler.d.ts +12 -2
- package/server/cache.d.ts +86 -11
- package/server/health.d.ts +31 -8
- package/server/multipart.d.ts +2 -2
- package/server/swagger.d.ts +6 -1
- package/server.d.ts +43 -29
- package/ui.cjs +8 -0
- package/ui.d.ts +619 -0
- package/ui.js +1 -0
- package/vite.d.ts +12 -5
package/api/jobs.d.ts
CHANGED
|
@@ -2,80 +2,43 @@ 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_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 typebox198 from "typebox";
|
|
9
|
+
import * as dayjs0 from "dayjs";
|
|
9
10
|
|
|
10
11
|
//#region src/schemas/jobExecutionQuerySchema.d.ts
|
|
11
|
-
declare const jobExecutionQuerySchema:
|
|
12
|
-
page:
|
|
13
|
-
size:
|
|
14
|
-
sort:
|
|
15
|
-
status:
|
|
16
|
-
job:
|
|
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:
|
|
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:
|
|
41
|
-
}>>>;
|
|
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
|
-
}>>>;
|
|
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;
|
|
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:
|
|
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,26 +58,45 @@ 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<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
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>;
|
|
79
|
+
}>>>;
|
|
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>;
|
|
98
|
+
}>>>;
|
|
99
|
+
}>>>>>;
|
|
118
100
|
triggerJob(name: string): Promise<{
|
|
119
101
|
ok: boolean;
|
|
120
102
|
}>;
|
|
@@ -122,140 +104,102 @@ declare class JobService {
|
|
|
122
104
|
//#endregion
|
|
123
105
|
//#region src/controllers/JobController.d.ts
|
|
124
106
|
declare class JobController {
|
|
125
|
-
protected readonly url
|
|
126
|
-
protected readonly group
|
|
107
|
+
protected readonly url: string;
|
|
108
|
+
protected readonly group: string;
|
|
127
109
|
protected readonly jobService: JobService;
|
|
128
110
|
readonly getJobs: _alepha_server0.ActionDescriptorFn<{
|
|
129
|
-
response:
|
|
111
|
+
response: typebox198.TArray<typebox198.TString>;
|
|
130
112
|
}>;
|
|
131
113
|
readonly getJobExecutions: _alepha_server0.ActionDescriptorFn<{
|
|
132
|
-
query:
|
|
133
|
-
page:
|
|
134
|
-
size:
|
|
135
|
-
sort:
|
|
136
|
-
status:
|
|
137
|
-
job:
|
|
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>;
|
|
138
120
|
}>;
|
|
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:
|
|
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>;
|
|
157
139
|
}>>>;
|
|
158
140
|
}>>;
|
|
159
141
|
}>;
|
|
160
142
|
readonly triggerJob: _alepha_server0.ActionDescriptorFn<{
|
|
161
|
-
body:
|
|
162
|
-
name:
|
|
143
|
+
body: typebox198.TObject<{
|
|
144
|
+
name: typebox198.TString;
|
|
163
145
|
}>;
|
|
164
|
-
response:
|
|
165
|
-
ok:
|
|
166
|
-
id:
|
|
167
|
-
count:
|
|
146
|
+
response: typebox198.TObject<{
|
|
147
|
+
ok: typebox198.TBoolean;
|
|
148
|
+
id: typebox198.TOptional<typebox198.TUnion<[typebox198.TString, typebox198.TInteger]>>;
|
|
149
|
+
count: typebox198.TOptional<typebox198.TNumber>;
|
|
168
150
|
}>;
|
|
169
151
|
}>;
|
|
170
152
|
}
|
|
171
153
|
//#endregion
|
|
172
154
|
//#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:
|
|
191
|
-
}>>>;
|
|
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
|
-
}>>>;
|
|
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;
|
|
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>;
|
|
229
173
|
}>>>;
|
|
230
174
|
}>>;
|
|
231
|
-
type JobExecutionEntity = Static<typeof jobExecutions
|
|
175
|
+
type JobExecutionEntity = Static<typeof jobExecutions.schema>;
|
|
232
176
|
//#endregion
|
|
233
177
|
//#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:
|
|
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>;
|
|
252
196
|
}>>>;
|
|
253
197
|
}>;
|
|
254
198
|
type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
|
|
255
199
|
//#endregion
|
|
256
200
|
//#region src/schemas/triggerJobSchema.d.ts
|
|
257
|
-
declare const triggerJobSchema:
|
|
258
|
-
name:
|
|
201
|
+
declare const triggerJobSchema: typebox198.TObject<{
|
|
202
|
+
name: typebox198.TString;
|
|
259
203
|
}>;
|
|
260
204
|
type TriggerJob = Static<typeof triggerJobSchema>;
|
|
261
205
|
//#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
|
+
});
|