@shivaedev/admin 0.8.2 → 0.10.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/README.md +17 -3
- package/dist/jobs/page.d.ts +42 -13
- package/dist/jobs/page.d.ts.map +1 -1
- package/dist/jobs/retryPage.d.ts +60 -28
- package/dist/jobs/retryPage.d.ts.map +1 -1
- package/dist/jobs/retryPage.js +2 -1
- package/dist/jobs/retryPage.js.map +1 -1
- package/dist/jobs/schemas.d.ts +18 -4
- package/dist/jobs/schemas.d.ts.map +1 -1
- package/dist/jobs/schemas.js +5 -3
- package/dist/jobs/schemas.js.map +1 -1
- package/dist/permissions.d.ts +16 -2
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +1 -0
- package/dist/permissions.js.map +1 -1
- package/dist/registry.d.ts +14 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +3 -0
- package/dist/registry.js.map +1 -1
- package/dist/server/jobsHandlers.d.ts +28 -9
- package/dist/server/jobsHandlers.d.ts.map +1 -1
- package/dist/server/jobsHandlers.js +23 -6
- package/dist/server/jobsHandlers.js.map +1 -1
- package/dist/server/jobsHandlersWithRetry.d.ts +2 -1
- package/dist/server/jobsHandlersWithRetry.d.ts.map +1 -1
- package/dist/server/jobsHandlersWithRetry.js +4 -0
- package/dist/server/jobsHandlersWithRetry.js.map +1 -1
- package/dist/server/mergeAdminRegistrations.d.ts +16 -0
- package/dist/server/mergeAdminRegistrations.d.ts.map +1 -0
- package/dist/server/mergeAdminRegistrations.js +9 -0
- package/dist/server/mergeAdminRegistrations.js.map +1 -0
- package/dist/server/registerAdmin.d.ts +1 -0
- package/dist/server/registerAdmin.d.ts.map +1 -1
- package/dist/server/registerAdmin.js +1 -1
- package/dist/server/registerAdmin.js.map +1 -1
- package/dist/server/users.d.ts +9 -34
- package/dist/server/users.d.ts.map +1 -1
- package/dist/server/users.js +24 -27
- package/dist/server/users.js.map +1 -1
- package/dist/server/usersHandlers.d.ts +2 -2
- package/dist/server/usersHandlers.d.ts.map +1 -1
- package/dist/server/usersHandlers.js.map +1 -1
- package/dist/users/page.d.ts +10 -10
- package/dist/users/page.d.ts.map +1 -1
- package/dist/users/page.js.map +1 -1
- package/dist/users/roles.d.ts +2 -2
- package/dist/users/roles.js +1 -1
- package/dist/users/roles.js.map +1 -1
- package/package.json +17 -17
- package/src/jobs/retryPage.ts +2 -1
- package/src/jobs/schemas.ts +5 -3
- package/src/permissions.ts +1 -0
- package/src/registry.ts +31 -1
- package/src/server/jobsHandlers.ts +26 -9
- package/src/server/jobsHandlersWithRetry.ts +4 -0
- package/src/server/mergeAdminRegistrations.ts +27 -0
- package/src/server/registerAdmin.ts +2 -1
- package/src/server/users.ts +27 -30
- package/src/server/usersHandlers.ts +2 -2
- package/src/users/page.ts +2 -2
- package/src/users/roles.ts +1 -1
package/README.md
CHANGED
|
@@ -71,6 +71,20 @@ Declare application roles with `@shivaedev/access`, grant the relevant domain pe
|
|
|
71
71
|
|
|
72
72
|
Pass `registration.group` and `handlers` to the existing application's RPC host on `/rpc`, merging them with its other groups and Layers as needed. The Platform host supplies generated change handlers; registration requires the page's application handlers. Handler Layer errors and service requirements remain inferred. Missing or extra page ids fail at registration; TypeScript also checks each Layer provides the handlers for its page.
|
|
73
73
|
|
|
74
|
+
### Pages owned by modules
|
|
75
|
+
|
|
76
|
+
Each module declares its own registry and calls `registerAdmin` with its own page handlers. The application host combines those registrations:
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { mergeAdminRegistrations } from "@shivaedev/admin/server/mergeAdminRegistrations.ts";
|
|
80
|
+
|
|
81
|
+
const admin = mergeAdminRegistrations(foundation.admin, catalog.admin);
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Pass `admin.group` and `admin.handlers` to the application's RPC host. The combined registration exposes `pages` for navigation and preserves the handler Layers' errors and service requirements. Duplicate page ids across modules fail at the type level; duplicate paths and RPC tags fail at composition. A module cannot register a page without its handlers.
|
|
85
|
+
|
|
86
|
+
Browser composition uses `mergeAdminRegistries` from `@shivaedev/admin/registry.ts` with the modules' browser-safe registries. A client module can also contribute its registry's `pages` directly to the application's navigation. A feature module adds pages to its own registry and handlers to its own registration; the foundation does not import feature pages.
|
|
87
|
+
|
|
74
88
|
### Built-in Jobs page
|
|
75
89
|
|
|
76
90
|
Share each queue's name and payload Schema with the browser declaration. The page exposes only the queues passed to `jobsPage`; a queue registered with the jobs runtime is not automatically available to operators.
|
|
@@ -96,7 +110,7 @@ const registration = registerAdmin(Admin, {
|
|
|
96
110
|
});
|
|
97
111
|
```
|
|
98
112
|
|
|
99
|
-
The queries are `admin.jobs.health`, `admin.jobs.counts`, `admin.jobs.failed`, `admin.jobs.deadLettered` and `admin.jobs.job`. Counts take `{ queue }`; listings take `{ queue, limit, cursor? }` and return `{ jobs, next }`, where `next` is an `Option<string>`. Job lookup takes `{ queue, id }` and returns `Option<Job>`. Each job carries its queue, decoded payload, state, attempt and retry counts, output and timestamps. Dead-letter listings also carry `sourceId` and `sourceOutput`. Timestamps use UTC `DateTime` values; the RPC encodes timestamps as strings and Options as nullable values. The queue's original codec encodes and decodes its payload across RPC, preserving its service requirements.
|
|
113
|
+
The queries are `admin.jobs.health`, `admin.jobs.counts`, `admin.jobs.failed`, `admin.jobs.deadLettered` and `admin.jobs.job`. Counts take `{ queue }`; listings take `{ queue, limit, cursor? }` and return `{ jobs, next }`, where `next` is an `Option<string>`. Job lookup takes `{ queue, id }` and returns `Option<Job>`. Each job carries its queue, decoded payload, state, attempt and retry counts, output and timestamps. Dead-letter listings also carry `sourceId` and `sourceOutput`. Output and source output use the jobs package's `JobFailure | null` shape (`_tag` and redacted `message`). A zero page limit or malformed listing cursor is rejected as `BadRequest`. Timestamps use UTC `DateTime` values; the RPC encodes timestamps as strings and Options as nullable values. The queue's original codec encodes and decodes its payload across RPC, preserving its service requirements.
|
|
100
114
|
|
|
101
115
|
Schedule definitions from `defineSchedule` can be passed beside queues. A browser declaration can share just `{ _tag: "ScheduleDefinition", name }`; scheduled runs use a null payload schema for failed and dead-letter listings and job lookup. Calling `jobsPage()` with no arguments registers the same read-only page and serves health with no jobs and zero totals.
|
|
102
116
|
|
|
@@ -119,7 +133,7 @@ const registration = registerAdmin(Admin, {
|
|
|
119
133
|
});
|
|
120
134
|
```
|
|
121
135
|
|
|
122
|
-
This variant adds only `admin.jobs.retry`, taking `{ queue, id }` and returning void. It requires `ReadJobs
|
|
136
|
+
This variant adds only `admin.jobs.retry`, taking `{ queue, id }` and returning void. It requires `ReadJobs` (`jobs.read`) through the page middleware and `RetryJobs` (`jobs.retry`) from `@shivaedev/admin/permissions.ts` in the handler. A caller with only `jobs.read` receives `Forbidden` and the job stays failed. The handler uses the jobs package's existing retry for a failed job in a declared queue. Missing jobs and jobs in other states fail with `JobsNotFailed`; unregistered queue names, including dead-letter queues, fail with `JobsQueueUnregistered`. A dead-letter copy's id cannot retry its original.
|
|
123
137
|
|
|
124
138
|
A successful bound retry invalidates health, the affected queue's counts and both listings, and the original job's detail. Health retains the runtime monitor's refresh timing.
|
|
125
139
|
|
|
@@ -144,7 +158,7 @@ const changeRole = Client.runtime.fn(users.changeRole.run);
|
|
|
144
158
|
|
|
145
159
|
`admin.users.changeRole` takes `{ userId, role }`; its role Schema is the application's declared role union. The handler also requires `AssignRoles` (`roles.assign`). The view shows a role select only to callers with that permission. Role writes serialize in a transaction and return `LastRoleAssigner` if replacing the final holder's role would remove `roles.assign`, regardless of the role's name. A missing user returns `NotFound`. Changes invalidate the list after commit and emit an Effect log with actor id, target id, role and timestamp.
|
|
146
160
|
|
|
147
|
-
Applications can call `listUsers(AppAccess, input)` and `changeUserRole(AppAccess, input)` from `@shivaedev/admin/server/users.ts` on the server. These enforce their respective domain permissions using `SessionUser`.
|
|
161
|
+
Applications can call `listUsers(AppAccess, input)` and `changeUserRole(AppAccess, input)` from `@shivaedev/admin/server/users.ts` on the server. These enforce their respective domain permissions using `SessionUser`. Decode untrusted role input with `AppAccess.Role` before calling `changeUserRole` directly; native RPC performs that decode at the contract boundary. Identity resolves the caller's stored role through the session policy.
|
|
148
162
|
|
|
149
163
|
Keep Better Auth cookie caching disabled so requests see current permissions. Route role writes through this operation to retain the final-assigner policy: the policy covers only `admin.users.changeRole`, so disable Better Auth's `/admin/set-role`, `/admin/update-user` and `/admin/create-user` browser endpoints, which write roles outside it. Better Auth's server-side APIs stay available for trusted code such as a bootstrap command.
|
|
150
164
|
|
package/dist/jobs/page.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
18
18
|
readonly queuedTotal: Schema.Number;
|
|
19
19
|
readonly readyTotal: Schema.Number;
|
|
20
20
|
}>, {
|
|
21
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
21
22
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
22
23
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
23
24
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -29,6 +30,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
29
30
|
readonly queuedCount: Schema.Number;
|
|
30
31
|
readonly totalCount: Schema.Number;
|
|
31
32
|
}>, {
|
|
33
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
32
34
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
33
35
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
34
36
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -42,7 +44,10 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
42
44
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
43
45
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
44
46
|
readonly id: Schema.String;
|
|
45
|
-
readonly output: Schema.
|
|
47
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
48
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
49
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
50
|
+
}>>;
|
|
46
51
|
readonly retryCount: Schema.Number;
|
|
47
52
|
readonly retryLimit: Schema.Number;
|
|
48
53
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -52,6 +57,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
52
57
|
}>[]>>;
|
|
53
58
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
54
59
|
}>, {
|
|
60
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
55
61
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
56
62
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
57
63
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -65,7 +71,10 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
65
71
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
66
72
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
67
73
|
readonly id: Schema.String;
|
|
68
|
-
readonly output: Schema.
|
|
74
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
75
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
76
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
77
|
+
}>>;
|
|
69
78
|
readonly retryCount: Schema.Number;
|
|
70
79
|
readonly retryLimit: Schema.Number;
|
|
71
80
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -73,10 +82,14 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
73
82
|
readonly data: JobsPayload<TQueues[number]>;
|
|
74
83
|
readonly queue: Schema.Literal<string>;
|
|
75
84
|
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
76
|
-
readonly sourceOutput: Schema.
|
|
85
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
86
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
87
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
88
|
+
}>>;
|
|
77
89
|
}>[]>>;
|
|
78
90
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
79
91
|
}>, {
|
|
92
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
80
93
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
81
94
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
82
95
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -88,7 +101,10 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
88
101
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
89
102
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
90
103
|
readonly id: Schema.String;
|
|
91
|
-
readonly output: Schema.
|
|
104
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
105
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
106
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
107
|
+
}>>;
|
|
92
108
|
readonly retryCount: Schema.Number;
|
|
93
109
|
readonly retryLimit: Schema.Number;
|
|
94
110
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -96,6 +112,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
96
112
|
readonly data: JobsPayload<TQueues[number]>;
|
|
97
113
|
readonly queue: Schema.Literal<string>;
|
|
98
114
|
}>[]>>, {
|
|
115
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
99
116
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
100
117
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
101
118
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -154,7 +171,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
154
171
|
readonly failedCount: Schema.Number;
|
|
155
172
|
readonly queuedCount: Schema.Number;
|
|
156
173
|
readonly totalCount: Schema.Number;
|
|
157
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", Schema.Struct<{
|
|
174
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", Schema.Struct<{
|
|
158
175
|
cursor: Schema.optionalKey<Schema.String>;
|
|
159
176
|
limit: Schema.Number;
|
|
160
177
|
queue: Schema.String;
|
|
@@ -164,7 +181,10 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
164
181
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
165
182
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
166
183
|
readonly id: Schema.String;
|
|
167
|
-
readonly output: Schema.
|
|
184
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
185
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
186
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
187
|
+
}>>;
|
|
168
188
|
readonly retryCount: Schema.Number;
|
|
169
189
|
readonly retryLimit: Schema.Number;
|
|
170
190
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -172,10 +192,13 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
172
192
|
readonly data: JobsPayload<TQueues[number]>;
|
|
173
193
|
readonly queue: Schema.Literal<string>;
|
|
174
194
|
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
175
|
-
readonly sourceOutput: Schema.
|
|
195
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
196
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
197
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
198
|
+
}>>;
|
|
176
199
|
}>[]>>;
|
|
177
200
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
178
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", Schema.Struct<{
|
|
201
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", Schema.Struct<{
|
|
179
202
|
cursor: Schema.optionalKey<Schema.String>;
|
|
180
203
|
limit: Schema.Number;
|
|
181
204
|
queue: Schema.String;
|
|
@@ -185,7 +208,10 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
185
208
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
186
209
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
187
210
|
readonly id: Schema.String;
|
|
188
|
-
readonly output: Schema.
|
|
211
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
212
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
213
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
214
|
+
}>>;
|
|
189
215
|
readonly retryCount: Schema.Number;
|
|
190
216
|
readonly retryLimit: Schema.Number;
|
|
191
217
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -194,7 +220,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
194
220
|
readonly queue: Schema.Literal<string>;
|
|
195
221
|
}>[]>>;
|
|
196
222
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
197
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.health", Schema.Void, Schema.Struct<{
|
|
223
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.health", Schema.Void, Schema.Struct<{
|
|
198
224
|
readonly activeTotal: Schema.Number;
|
|
199
225
|
readonly deadLetteredTotal: Schema.Number;
|
|
200
226
|
readonly failedTotal: Schema.Number;
|
|
@@ -208,7 +234,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
208
234
|
}>>;
|
|
209
235
|
readonly queuedTotal: Schema.Number;
|
|
210
236
|
readonly readyTotal: Schema.Number;
|
|
211
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
237
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
212
238
|
id: Schema.String;
|
|
213
239
|
queue: Schema.String;
|
|
214
240
|
}>, Schema.OptionFromNullOr<Schema.Union<Schema.Struct<{
|
|
@@ -216,14 +242,17 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
216
242
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
217
243
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
218
244
|
readonly id: Schema.String;
|
|
219
|
-
readonly output: Schema.
|
|
245
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
246
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
247
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
248
|
+
}>>;
|
|
220
249
|
readonly retryCount: Schema.Number;
|
|
221
250
|
readonly retryLimit: Schema.Number;
|
|
222
251
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
223
252
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
224
253
|
readonly data: JobsPayload<TQueues[number]>;
|
|
225
254
|
readonly queue: Schema.Literal<string>;
|
|
226
|
-
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
255
|
+
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
227
256
|
} & {
|
|
228
257
|
queues: TQueues;
|
|
229
258
|
};
|
package/dist/jobs/page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/jobs/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAa,MAAM,YAAY,CAAC;AAIzE,wBAAgB,QAAQ,CAAC,KAAK,CAAC,OAAO,SAAS,SAAS,SAAS,EAAE,EAAE,GAAG,MAAM,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/jobs/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAa,MAAM,YAAY,CAAC;AAIzE,wBAAgB,QAAQ,CAAC,KAAK,CAAC,OAAO,SAAS,SAAS,SAAS,EAAE,EAAE,GAAG,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtF"}
|
package/dist/jobs/retryPage.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { Forbidden } from "@shivaedev/errors/taxonomy.ts";
|
|
2
3
|
import { JobsPermission } from "#permissions.ts";
|
|
3
4
|
import type { JobsEntry } from "./entry.ts";
|
|
4
5
|
declare const JobsNotFailed_base: Schema.Class<JobsNotFailed, Schema.TaggedStruct<"JobsNotFailed", {
|
|
@@ -24,6 +25,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
24
25
|
readonly queuedTotal: Schema.Number;
|
|
25
26
|
readonly readyTotal: Schema.Number;
|
|
26
27
|
}>, {
|
|
28
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
27
29
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
28
30
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
29
31
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -35,6 +37,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
35
37
|
readonly queuedCount: Schema.Number;
|
|
36
38
|
readonly totalCount: Schema.Number;
|
|
37
39
|
}>, {
|
|
40
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
38
41
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
39
42
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
40
43
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -48,7 +51,10 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
48
51
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
49
52
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
50
53
|
readonly id: Schema.String;
|
|
51
|
-
readonly output: Schema.
|
|
54
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
55
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
56
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
57
|
+
}>>;
|
|
52
58
|
readonly retryCount: Schema.Number;
|
|
53
59
|
readonly retryLimit: Schema.Number;
|
|
54
60
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -58,6 +64,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
58
64
|
}>[]>>;
|
|
59
65
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
60
66
|
}>, {
|
|
67
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
61
68
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
62
69
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
63
70
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -71,7 +78,10 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
71
78
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
72
79
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
73
80
|
readonly id: Schema.String;
|
|
74
|
-
readonly output: Schema.
|
|
81
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
82
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
83
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
84
|
+
}>>;
|
|
75
85
|
readonly retryCount: Schema.Number;
|
|
76
86
|
readonly retryLimit: Schema.Number;
|
|
77
87
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -79,10 +89,14 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
79
89
|
readonly data: import("./entry.ts").JobsPayload<[...TQueues][number]>;
|
|
80
90
|
readonly queue: Schema.Literal<string>;
|
|
81
91
|
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
82
|
-
readonly sourceOutput: Schema.
|
|
92
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
93
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
94
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
95
|
+
}>>;
|
|
83
96
|
}>[]>>;
|
|
84
97
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
85
98
|
}>, {
|
|
99
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
86
100
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
87
101
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
88
102
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -94,7 +108,10 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
94
108
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
95
109
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
96
110
|
readonly id: Schema.String;
|
|
97
|
-
readonly output: Schema.
|
|
111
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
112
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
113
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
114
|
+
}>>;
|
|
98
115
|
readonly retryCount: Schema.Number;
|
|
99
116
|
readonly retryLimit: Schema.Number;
|
|
100
117
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -102,6 +119,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
102
119
|
readonly data: import("./entry.ts").JobsPayload<[...TQueues][number]>;
|
|
103
120
|
readonly queue: Schema.Literal<string>;
|
|
104
121
|
}>[]>>, {
|
|
122
|
+
BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
105
123
|
JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
106
124
|
JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
107
125
|
JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
@@ -109,9 +127,11 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
109
127
|
id: Schema.String;
|
|
110
128
|
queue: Schema.String;
|
|
111
129
|
}>, Schema.Void, {
|
|
130
|
+
readonly BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
|
|
112
131
|
readonly JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
|
|
113
132
|
readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
|
|
114
133
|
readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
134
|
+
readonly Forbidden: typeof Forbidden;
|
|
115
135
|
readonly JobsNotFailed: typeof JobsNotFailed;
|
|
116
136
|
}>>], import("effect/rpc/Rpc").Rpc<"admin.jobs.$changes", Schema.Struct<{
|
|
117
137
|
queries: Schema.$Array<Schema.Union<readonly (Schema.Struct<{
|
|
@@ -168,7 +188,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
168
188
|
readonly failedCount: Schema.Number;
|
|
169
189
|
readonly queuedCount: Schema.Number;
|
|
170
190
|
readonly totalCount: Schema.Number;
|
|
171
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
191
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", Schema.Struct<{
|
|
172
192
|
cursor: Schema.optionalKey<Schema.String>;
|
|
173
193
|
limit: Schema.Number;
|
|
174
194
|
queue: Schema.String;
|
|
@@ -178,16 +198,24 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
178
198
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
179
199
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
180
200
|
readonly id: Schema.String;
|
|
181
|
-
readonly output: Schema.
|
|
201
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
202
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
203
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
204
|
+
}>>;
|
|
182
205
|
readonly retryCount: Schema.Number;
|
|
183
206
|
readonly retryLimit: Schema.Number;
|
|
184
207
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
185
208
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
186
209
|
readonly data: import("./entry.ts").JobsPayload<[...TQueues][number]>;
|
|
187
210
|
readonly queue: Schema.Literal<string>;
|
|
211
|
+
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
212
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
213
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
214
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
215
|
+
}>>;
|
|
188
216
|
}>[]>>;
|
|
189
217
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
190
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
218
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", Schema.Struct<{
|
|
191
219
|
cursor: Schema.optionalKey<Schema.String>;
|
|
192
220
|
limit: Schema.Number;
|
|
193
221
|
queue: Schema.String;
|
|
@@ -197,18 +225,33 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
197
225
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
198
226
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
199
227
|
readonly id: Schema.String;
|
|
200
|
-
readonly output: Schema.
|
|
228
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
229
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
230
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
231
|
+
}>>;
|
|
201
232
|
readonly retryCount: Schema.Number;
|
|
202
233
|
readonly retryLimit: Schema.Number;
|
|
203
234
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
204
235
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
205
236
|
readonly data: import("./entry.ts").JobsPayload<[...TQueues][number]>;
|
|
206
237
|
readonly queue: Schema.Literal<string>;
|
|
207
|
-
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
208
|
-
readonly sourceOutput: Schema.Unknown;
|
|
209
238
|
}>[]>>;
|
|
210
239
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
211
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
240
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.health", Schema.Void, Schema.Struct<{
|
|
241
|
+
readonly activeTotal: Schema.Number;
|
|
242
|
+
readonly deadLetteredTotal: Schema.Number;
|
|
243
|
+
readonly failedTotal: Schema.Number;
|
|
244
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
245
|
+
readonly activeCount: Schema.Number;
|
|
246
|
+
readonly deadLetteredCount: Schema.Number;
|
|
247
|
+
readonly failedCount: Schema.Number;
|
|
248
|
+
readonly name: Schema.String;
|
|
249
|
+
readonly queuedCount: Schema.Number;
|
|
250
|
+
readonly readyCount: Schema.Number;
|
|
251
|
+
}>>;
|
|
252
|
+
readonly queuedTotal: Schema.Number;
|
|
253
|
+
readonly readyTotal: Schema.Number;
|
|
254
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
212
255
|
id: Schema.String;
|
|
213
256
|
queue: Schema.String;
|
|
214
257
|
}>, Schema.OptionFromNullOr<Schema.Union<Schema.Struct<{
|
|
@@ -216,31 +259,20 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
216
259
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
217
260
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
218
261
|
readonly id: Schema.String;
|
|
219
|
-
readonly output: Schema.
|
|
262
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
263
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
264
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
265
|
+
}>>;
|
|
220
266
|
readonly retryCount: Schema.Number;
|
|
221
267
|
readonly retryLimit: Schema.Number;
|
|
222
268
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
223
269
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
224
270
|
readonly data: import("./entry.ts").JobsPayload<[...TQueues][number]>;
|
|
225
271
|
readonly queue: Schema.Literal<string>;
|
|
226
|
-
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.retry", Schema.Struct<{
|
|
272
|
+
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.retry", Schema.Struct<{
|
|
227
273
|
id: Schema.String;
|
|
228
274
|
queue: Schema.String;
|
|
229
|
-
}>, Schema.Void, Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered | typeof JobsNotFailed)[]>, typeof JobsPermission, never
|
|
230
|
-
readonly activeTotal: Schema.Number;
|
|
231
|
-
readonly deadLetteredTotal: Schema.Number;
|
|
232
|
-
readonly failedTotal: Schema.Number;
|
|
233
|
-
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
234
|
-
readonly activeCount: Schema.Number;
|
|
235
|
-
readonly deadLetteredCount: Schema.Number;
|
|
236
|
-
readonly failedCount: Schema.Number;
|
|
237
|
-
readonly name: Schema.String;
|
|
238
|
-
readonly queuedCount: Schema.Number;
|
|
239
|
-
readonly readyCount: Schema.Number;
|
|
240
|
-
}>>;
|
|
241
|
-
readonly queuedTotal: Schema.Number;
|
|
242
|
-
readonly readyTotal: Schema.Number;
|
|
243
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
275
|
+
}>, Schema.Void, Schema.Union<readonly (typeof Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered | typeof JobsNotFailed)[]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
244
276
|
} & {
|
|
245
277
|
queues: TQueues;
|
|
246
278
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retryPage.d.ts","sourceRoot":"","sources":["../../src/jobs/retryPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"retryPage.d.ts","sourceRoot":"","sources":["../../src/jobs/retryPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;;;;;AAK5C,qBAAa,aAAc,SAAQ,kBAGjC;CAAG;AAEL,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,OAAO,SAAS,SAAS,SAAS,EAAE,EAAE,GAAG,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B/F"}
|
package/dist/jobs/retryPage.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { contract } from "@shivaedev/contract/contract.ts";
|
|
3
3
|
import { command } from "@shivaedev/contract/operation.ts";
|
|
4
|
+
import { Forbidden } from "@shivaedev/errors/taxonomy.ts";
|
|
4
5
|
import { adminPage } from "#page.ts";
|
|
5
6
|
import { JobsPermission } from "#permissions.ts";
|
|
6
7
|
import { jobsKeys } from "./keys.js";
|
|
@@ -25,7 +26,7 @@ export function jobsPageWithRetry(...queues) {
|
|
|
25
26
|
jobsKeys.job(queue).item(id),
|
|
26
27
|
],
|
|
27
28
|
payload: { id: Schema.String, queue: Schema.String },
|
|
28
|
-
rejections: { ...JobsFailures, JobsNotFailed },
|
|
29
|
+
rejections: { ...JobsFailures, Forbidden, JobsNotFailed },
|
|
29
30
|
}),
|
|
30
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,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;wBAC/B,QAAQ,CAAC,MAAM,CAAC,IAAI;wBACpB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;wBAC3B,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;wBAC3B,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;wBACjC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;qBAC5B;oBACD,OAAO,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;oBACpD,UAAU,EAAE,EAAE,GAAG,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE;iBACzD,CAAC;aACF;YACD,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;SAC1C,CAAC;QACF,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,UAAU,EAAE,cAAc;QAC1B,KAAK,EAAE,IAAI,CAAC,KAAK;KACjB,CAAC,EACF,EAAE,MAAM,EAAE,CACV,CAAC;AACH,CAAC"}
|
package/dist/jobs/schemas.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { BadRequest } from "@shivaedev/errors/taxonomy.ts";
|
|
2
3
|
export interface JobsQueue {
|
|
3
4
|
readonly name: string;
|
|
4
5
|
readonly schema: Schema.Top & {
|
|
@@ -22,6 +23,7 @@ declare const JobsQueueUnregistered_base: Schema.Class<JobsQueueUnregistered, Sc
|
|
|
22
23
|
export declare class JobsQueueUnregistered extends JobsQueueUnregistered_base {
|
|
23
24
|
}
|
|
24
25
|
export declare const JobsFailures: {
|
|
26
|
+
BadRequest: typeof BadRequest;
|
|
25
27
|
JobsPayloadInvalid: typeof JobsPayloadInvalid;
|
|
26
28
|
JobsQueueUnregistered: typeof JobsQueueUnregistered;
|
|
27
29
|
JobsUnavailable: typeof JobsUnavailable;
|
|
@@ -60,7 +62,10 @@ export declare const JobFields: {
|
|
|
60
62
|
completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
61
63
|
createdOn: Schema.DateTimeUtcFromString;
|
|
62
64
|
id: Schema.String;
|
|
63
|
-
output: Schema.
|
|
65
|
+
output: Schema.NullOr<Schema.Struct<{
|
|
66
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
67
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
68
|
+
}>>;
|
|
64
69
|
retryCount: Schema.Number;
|
|
65
70
|
retryLimit: Schema.Number;
|
|
66
71
|
startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -78,7 +83,10 @@ export declare function jobSchema<TPayload extends Schema.Top>(queue: {
|
|
|
78
83
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
79
84
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
80
85
|
readonly id: Schema.String;
|
|
81
|
-
readonly output: Schema.
|
|
86
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
87
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
88
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
89
|
+
}>>;
|
|
82
90
|
readonly retryCount: Schema.Number;
|
|
83
91
|
readonly retryLimit: Schema.Number;
|
|
84
92
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -94,7 +102,10 @@ export declare function deadLetteredSchema<TPayload extends Schema.Top>(queue: {
|
|
|
94
102
|
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
95
103
|
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
96
104
|
readonly id: Schema.String;
|
|
97
|
-
readonly output: Schema.
|
|
105
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
106
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
107
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
108
|
+
}>>;
|
|
98
109
|
readonly retryCount: Schema.Number;
|
|
99
110
|
readonly retryLimit: Schema.Number;
|
|
100
111
|
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
@@ -102,7 +113,10 @@ export declare function deadLetteredSchema<TPayload extends Schema.Top>(queue: {
|
|
|
102
113
|
readonly data: TPayload;
|
|
103
114
|
readonly queue: Schema.Literal<string>;
|
|
104
115
|
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
105
|
-
readonly sourceOutput: Schema.
|
|
116
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
117
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
118
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
119
|
+
}>>;
|
|
106
120
|
}>;
|
|
107
121
|
export declare function jobPage<TJob extends Schema.Top>(job: TJob): Schema.Struct<{
|
|
108
122
|
readonly jobs: Schema.$Array<TJob>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/jobs/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/jobs/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,GAAG;QAAE,QAAQ,CAAC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
import { JobFailure } from "@shivaedev/jobs/JobFailure.ts";
|
|
2
4
|
export class JobsUnavailable extends Schema.TaggedError()("JobsUnavailable", {
|
|
3
5
|
operation: Schema.String,
|
|
4
6
|
}) {
|
|
@@ -11,7 +13,7 @@ export class JobsQueueUnregistered extends Schema.TaggedError()("JobsQueueUnregi
|
|
|
11
13
|
queue: Schema.String,
|
|
12
14
|
}) {
|
|
13
15
|
}
|
|
14
|
-
export const JobsFailures = { JobsPayloadInvalid, JobsQueueUnregistered, JobsUnavailable };
|
|
16
|
+
export const JobsFailures = { BadRequest, JobsPayloadInvalid, JobsQueueUnregistered, JobsUnavailable };
|
|
15
17
|
export const QueueCounts = Schema.Struct({
|
|
16
18
|
activeCount: Schema.Number,
|
|
17
19
|
failedCount: Schema.Number,
|
|
@@ -39,7 +41,7 @@ export const JobFields = {
|
|
|
39
41
|
completedOn: Schema.OptionFromNullOr(Schema.DateTimeUtcFromString),
|
|
40
42
|
createdOn: Schema.DateTimeUtcFromString,
|
|
41
43
|
id: Schema.String,
|
|
42
|
-
output: Schema.
|
|
44
|
+
output: Schema.NullOr(JobFailure),
|
|
43
45
|
retryCount: Schema.Number,
|
|
44
46
|
retryLimit: Schema.Number,
|
|
45
47
|
startedOn: Schema.OptionFromNullOr(Schema.DateTimeUtcFromString),
|
|
@@ -56,7 +58,7 @@ export function deadLetteredSchema(queue) {
|
|
|
56
58
|
data: queue.schema,
|
|
57
59
|
queue: Schema.Literal(name),
|
|
58
60
|
sourceId: Schema.OptionFromNullOr(Schema.String),
|
|
59
|
-
sourceOutput: Schema.
|
|
61
|
+
sourceOutput: Schema.NullOr(JobFailure),
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
export function jobPage(job) {
|
package/dist/jobs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/jobs/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,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