@shivaedev/admin 0.12.2 → 0.12.3
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/CHANGELOG.md +9 -0
- package/dist/jobs/page.d.ts +41 -41
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.3 - 2026-10-31
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Update `@shivaedev/contract` from 0.26.0 to 0.27.0.
|
|
8
|
+
- Update `@shivaedev/identity` from 0.10.0 to 0.10.1.
|
|
9
|
+
- Update `@shivaedev/jobs` from 0.24.0 to 0.25.0.
|
|
10
|
+
- Update `@shivaedev/react` from 0.26.0 to 0.27.0.
|
|
11
|
+
|
|
3
12
|
## 0.12.2 - 2026-10-31
|
|
4
13
|
|
|
5
14
|
### Fixed
|
package/dist/jobs/page.d.ts
CHANGED
|
@@ -139,7 +139,25 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
139
139
|
readonly id: string;
|
|
140
140
|
readonly queue: string;
|
|
141
141
|
}, import("@shivaedev/errors/taxonomy.ts").BadRequest | import("#jobs/schemas.ts").JobsPayloadInvalid | import("#jobs/schemas.ts").JobsQueueUnregistered | import("#jobs/schemas.ts").JobsUnavailable, import("@shivaedev/identity/identity.ts").SessionUser>;
|
|
142
|
-
}], readonly [], import("effect/rpc/Rpc").Rpc<"admin.jobs
|
|
142
|
+
}], readonly [], import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
143
|
+
id: Schema.String;
|
|
144
|
+
queue: Schema.String;
|
|
145
|
+
}>, Schema.OptionFromNullOr<Schema.Union<Schema.Struct<{
|
|
146
|
+
readonly attempt: Schema.Number;
|
|
147
|
+
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
148
|
+
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
149
|
+
readonly id: Schema.String;
|
|
150
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
151
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
152
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
153
|
+
}>>;
|
|
154
|
+
readonly retryCount: Schema.Number;
|
|
155
|
+
readonly retryLimit: Schema.Number;
|
|
156
|
+
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
157
|
+
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
158
|
+
readonly data: JobsPayload<TQueues[number]>["Rebuild"];
|
|
159
|
+
readonly queue: Schema.Literal<string>;
|
|
160
|
+
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.$changes", Schema.Struct<{
|
|
143
161
|
queries: Schema.$Array<Schema.Union<readonly (Schema.Struct<{
|
|
144
162
|
query: Schema.Literal<"counts">;
|
|
145
163
|
payload: Schema.Struct<{
|
|
@@ -194,7 +212,21 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
194
212
|
readonly failedCount: Schema.Number;
|
|
195
213
|
readonly queuedCount: Schema.Number;
|
|
196
214
|
readonly totalCount: Schema.Number;
|
|
197
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
215
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/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<{
|
|
216
|
+
readonly activeTotal: Schema.Number;
|
|
217
|
+
readonly deadLetteredTotal: Schema.Number;
|
|
218
|
+
readonly failedTotal: Schema.Number;
|
|
219
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
220
|
+
readonly activeCount: Schema.Number;
|
|
221
|
+
readonly deadLetteredCount: Schema.Number;
|
|
222
|
+
readonly failedCount: Schema.Number;
|
|
223
|
+
readonly name: Schema.String;
|
|
224
|
+
readonly queuedCount: Schema.Number;
|
|
225
|
+
readonly readyCount: Schema.Number;
|
|
226
|
+
}>>;
|
|
227
|
+
readonly queuedTotal: Schema.Number;
|
|
228
|
+
readonly readyTotal: Schema.Number;
|
|
229
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", Schema.Struct<{
|
|
198
230
|
cursor: Schema.optionalKey<Schema.String>;
|
|
199
231
|
limit: Schema.Number;
|
|
200
232
|
queue: Schema.String;
|
|
@@ -214,14 +246,9 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
214
246
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
215
247
|
readonly data: JobsPayload<TQueues[number]>["Rebuild"];
|
|
216
248
|
readonly queue: Schema.Literal<string>;
|
|
217
|
-
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
218
|
-
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
219
|
-
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
220
|
-
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
221
|
-
}>>;
|
|
222
249
|
}>[]>>;
|
|
223
250
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
224
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
251
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", Schema.Struct<{
|
|
225
252
|
cursor: Schema.optionalKey<Schema.String>;
|
|
226
253
|
limit: Schema.Number;
|
|
227
254
|
queue: Schema.String;
|
|
@@ -241,41 +268,14 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
241
268
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
242
269
|
readonly data: JobsPayload<TQueues[number]>["Rebuild"];
|
|
243
270
|
readonly queue: Schema.Literal<string>;
|
|
271
|
+
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
272
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
273
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
274
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
275
|
+
}>>;
|
|
244
276
|
}>[]>>;
|
|
245
277
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
246
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never
|
|
247
|
-
readonly activeTotal: Schema.Number;
|
|
248
|
-
readonly deadLetteredTotal: Schema.Number;
|
|
249
|
-
readonly failedTotal: Schema.Number;
|
|
250
|
-
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
251
|
-
readonly activeCount: Schema.Number;
|
|
252
|
-
readonly deadLetteredCount: Schema.Number;
|
|
253
|
-
readonly failedCount: Schema.Number;
|
|
254
|
-
readonly name: Schema.String;
|
|
255
|
-
readonly queuedCount: Schema.Number;
|
|
256
|
-
readonly readyCount: Schema.Number;
|
|
257
|
-
}>>;
|
|
258
|
-
readonly queuedTotal: Schema.Number;
|
|
259
|
-
readonly readyTotal: Schema.Number;
|
|
260
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
261
|
-
id: Schema.String;
|
|
262
|
-
queue: Schema.String;
|
|
263
|
-
}>, Schema.OptionFromNullOr<Schema.Union<Schema.Struct<{
|
|
264
|
-
readonly attempt: Schema.Number;
|
|
265
|
-
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
266
|
-
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
267
|
-
readonly id: Schema.String;
|
|
268
|
-
readonly output: Schema.NullOr<Schema.Struct<{
|
|
269
|
-
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
270
|
-
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
271
|
-
}>>;
|
|
272
|
-
readonly retryCount: Schema.Number;
|
|
273
|
-
readonly retryLimit: Schema.Number;
|
|
274
|
-
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
275
|
-
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
276
|
-
readonly data: JobsPayload<TQueues[number]>["Rebuild"];
|
|
277
|
-
readonly queue: Schema.Literal<string>;
|
|
278
|
-
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
278
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
279
279
|
} & {
|
|
280
280
|
queues: TQueues;
|
|
281
281
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/admin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Explicit admin page contracts and a protected native Effect RPC registry",
|
|
5
5
|
"homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/admin#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@shivaedev/access": "0.3.1",
|
|
46
46
|
"@shivaedev/changes": "0.6.0",
|
|
47
|
-
"@shivaedev/contract": "0.
|
|
47
|
+
"@shivaedev/contract": "0.27.0",
|
|
48
48
|
"@shivaedev/errors": "0.1.3",
|
|
49
|
-
"@shivaedev/identity": "0.10.
|
|
50
|
-
"@shivaedev/jobs": "0.
|
|
51
|
-
"@shivaedev/react": "0.
|
|
49
|
+
"@shivaedev/identity": "0.10.1",
|
|
50
|
+
"@shivaedev/jobs": "0.25.0",
|
|
51
|
+
"@shivaedev/react": "0.27.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@effect/atom-react": "4.0.6",
|
|
55
|
-
"@shivaedev/quality": "0.48.
|
|
56
|
-
"@shivaedev/server": "0.
|
|
55
|
+
"@shivaedev/quality": "0.48.2",
|
|
56
|
+
"@shivaedev/server": "0.10.0",
|
|
57
57
|
"@shivaedev/test-sql": "0.15.0",
|
|
58
|
-
"@shivaedev/test-story": "0.
|
|
58
|
+
"@shivaedev/test-story": "0.28.0",
|
|
59
59
|
"@types/node": "24.19.2",
|
|
60
60
|
"@types/react": "19.3.0",
|
|
61
61
|
"@types/react-dom": "19.3.0",
|