@shivaedev/admin 0.24.3 → 0.25.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +88 -76
  3. package/dist/Jobs.d.ts +71 -0
  4. package/dist/Jobs.d.ts.map +1 -0
  5. package/dist/Jobs.js +13 -0
  6. package/dist/Jobs.js.map +1 -0
  7. package/dist/JobsWithRetry.d.ts +92 -0
  8. package/dist/JobsWithRetry.d.ts.map +1 -0
  9. package/dist/JobsWithRetry.js +40 -0
  10. package/dist/JobsWithRetry.js.map +1 -0
  11. package/dist/Users.d.ts +35 -0
  12. package/dist/Users.d.ts.map +1 -0
  13. package/dist/Users.js +35 -0
  14. package/dist/Users.js.map +1 -0
  15. package/dist/client/adapters/SessionConfirmation.d.ts +1 -1
  16. package/dist/client/adapters/SessionConfirmation.d.ts.map +1 -1
  17. package/dist/client/adapters/SessionListView.d.ts +1 -1
  18. package/dist/client/adapters/SessionListView.d.ts.map +1 -1
  19. package/dist/client/adapters/SessionPagination.d.ts +2 -2
  20. package/dist/client/adapters/SessionPagination.d.ts.map +1 -1
  21. package/dist/client/adapters/SessionsView.d.ts +2 -2
  22. package/dist/client/adapters/SessionsView.d.ts.map +1 -1
  23. package/dist/client/adapters/UsersTable.d.ts +2 -2
  24. package/dist/client/adapters/UsersTable.d.ts.map +1 -1
  25. package/dist/client/adapters/UsersTable.js.map +1 -1
  26. package/dist/client/adapters/UsersView.d.ts +2 -2
  27. package/dist/client/adapters/UsersView.d.ts.map +1 -1
  28. package/dist/client/adapters/jobsTypes.d.ts +8 -8
  29. package/dist/client/adapters/jobsTypes.d.ts.map +1 -1
  30. package/dist/generated/Jobs.d.ts +144 -0
  31. package/dist/generated/Jobs.d.ts.map +1 -0
  32. package/dist/generated/Jobs.js +35 -0
  33. package/dist/generated/Jobs.js.map +1 -0
  34. package/dist/generated/JobsWithRetry.d.ts +182 -0
  35. package/dist/generated/JobsWithRetry.d.ts.map +1 -0
  36. package/dist/generated/JobsWithRetry.js +50 -0
  37. package/dist/generated/JobsWithRetry.js.map +1 -0
  38. package/dist/generated/Users.d.ts +65 -0
  39. package/dist/generated/Users.d.ts.map +1 -0
  40. package/dist/generated/Users.js +27 -0
  41. package/dist/generated/Users.js.map +1 -0
  42. package/dist/jobs/DeadLetter.d.ts +27 -0
  43. package/dist/jobs/DeadLetter.d.ts.map +1 -0
  44. package/dist/jobs/DeadLetter.js +11 -0
  45. package/dist/jobs/DeadLetter.js.map +1 -0
  46. package/dist/jobs/NotFailed.d.ts +9 -0
  47. package/dist/jobs/NotFailed.d.ts.map +1 -0
  48. package/dist/jobs/NotFailed.js +7 -0
  49. package/dist/jobs/NotFailed.js.map +1 -0
  50. package/dist/jobs/Page.d.ts +272 -0
  51. package/dist/jobs/Page.d.ts.map +1 -0
  52. package/dist/jobs/Page.js +10 -0
  53. package/dist/jobs/Page.js.map +1 -0
  54. package/dist/jobs/PageWithRetry.d.ts +296 -0
  55. package/dist/jobs/PageWithRetry.d.ts.map +1 -0
  56. package/dist/jobs/PageWithRetry.js +10 -0
  57. package/dist/jobs/PageWithRetry.js.map +1 -0
  58. package/dist/jobs/Row.d.ts +21 -0
  59. package/dist/jobs/Row.d.ts.map +1 -0
  60. package/dist/jobs/Row.js +5 -0
  61. package/dist/jobs/Row.js.map +1 -0
  62. package/dist/jobs/schemas.d.ts +2 -55
  63. package/dist/jobs/schemas.d.ts.map +1 -1
  64. package/dist/jobs/schemas.js +2 -19
  65. package/dist/jobs/schemas.js.map +1 -1
  66. package/dist/page.d.ts +4 -3
  67. package/dist/page.d.ts.map +1 -1
  68. package/dist/page.js.map +1 -1
  69. package/dist/server/RegisteredQueues.d.ts +21 -0
  70. package/dist/server/RegisteredQueues.d.ts.map +1 -0
  71. package/dist/server/RegisteredQueues.js +4 -0
  72. package/dist/server/RegisteredQueues.js.map +1 -0
  73. package/dist/server/adapters/pgBossQueues.d.ts +6 -0
  74. package/dist/server/adapters/pgBossQueues.d.ts.map +1 -0
  75. package/dist/server/adapters/pgBossQueues.js +57 -0
  76. package/dist/server/adapters/pgBossQueues.js.map +1 -0
  77. package/dist/server/jobsReads.d.ts +40 -0
  78. package/dist/server/jobsReads.d.ts.map +1 -0
  79. package/dist/server/jobsReads.js +65 -0
  80. package/dist/server/jobsReads.js.map +1 -0
  81. package/dist/sessions/Page.d.ts +29 -25
  82. package/dist/sessions/Page.d.ts.map +1 -1
  83. package/dist/sessions/Page.js +1 -1
  84. package/dist/sessions/Page.js.map +1 -1
  85. package/dist/users/List.d.ts +5 -0
  86. package/dist/users/List.d.ts.map +1 -0
  87. package/dist/users/List.js +2 -0
  88. package/dist/users/List.js.map +1 -0
  89. package/dist/users/Page.d.ts +104 -0
  90. package/dist/users/Page.d.ts.map +1 -0
  91. package/dist/users/Page.js +10 -0
  92. package/dist/users/Page.js.map +1 -0
  93. package/package.json +13 -11
  94. package/src/Jobs.ts +13 -0
  95. package/src/JobsWithRetry.ts +42 -0
  96. package/src/Users.ts +38 -0
  97. package/src/client/adapters/SessionConfirmation.tsx +1 -1
  98. package/src/client/adapters/SessionListView.tsx +1 -1
  99. package/src/client/adapters/SessionPagination.tsx +2 -2
  100. package/src/client/adapters/SessionsView.ts +2 -2
  101. package/src/client/adapters/UsersTable.tsx +3 -3
  102. package/src/client/adapters/UsersView.ts +2 -2
  103. package/src/client/adapters/jobsTypes.ts +8 -8
  104. package/src/generated/Jobs.ts +40 -0
  105. package/src/generated/JobsWithRetry.ts +55 -0
  106. package/src/generated/README.md +1 -0
  107. package/src/generated/Users.ts +32 -0
  108. package/src/jobs/DeadLetter.ts +10 -0
  109. package/src/jobs/NotFailed.ts +6 -0
  110. package/src/jobs/Page.ts +10 -0
  111. package/src/jobs/PageWithRetry.ts +10 -0
  112. package/src/jobs/Row.ts +4 -0
  113. package/src/jobs/schemas.ts +2 -23
  114. package/src/page.ts +8 -9
  115. package/src/server/RegisteredQueues.ts +22 -0
  116. package/src/server/adapters/pgBossQueues.ts +94 -0
  117. package/src/server/jobsReads.ts +72 -0
  118. package/src/sessions/Page.ts +1 -1
  119. package/src/users/List.ts +3 -0
  120. package/src/users/Page.ts +10 -0
  121. package/dist/jobs/page.d.ts +0 -425
  122. package/dist/jobs/page.d.ts.map +0 -1
  123. package/dist/jobs/page.js +0 -58
  124. package/dist/jobs/page.js.map +0 -1
  125. package/dist/jobs/retryPage.d.ts +0 -480
  126. package/dist/jobs/retryPage.d.ts.map +0 -1
  127. package/dist/jobs/retryPage.js +0 -50
  128. package/dist/jobs/retryPage.js.map +0 -1
  129. package/dist/server/jobsHandlers.d.ts +0 -62
  130. package/dist/server/jobsHandlers.d.ts.map +0 -1
  131. package/dist/server/jobsHandlers.js +0 -73
  132. package/dist/server/jobsHandlers.js.map +0 -1
  133. package/dist/server/jobsHandlersWithRetry.d.ts +0 -7
  134. package/dist/server/jobsHandlersWithRetry.d.ts.map +0 -1
  135. package/dist/server/jobsHandlersWithRetry.js +0 -43
  136. package/dist/server/jobsHandlersWithRetry.js.map +0 -1
  137. package/dist/server/usersHandlers.d.ts +0 -3
  138. package/dist/server/usersHandlers.d.ts.map +0 -1
  139. package/dist/server/usersHandlers.js +0 -15
  140. package/dist/server/usersHandlers.js.map +0 -1
  141. package/dist/users/page.d.ts +0 -115
  142. package/dist/users/page.d.ts.map +0 -1
  143. package/dist/users/page.js +0 -35
  144. package/dist/users/page.js.map +0 -1
  145. package/src/jobs/page.ts +0 -58
  146. package/src/jobs/retryPage.ts +0 -54
  147. package/src/server/jobsHandlers.ts +0 -95
  148. package/src/server/jobsHandlersWithRetry.ts +0 -59
  149. package/src/server/usersHandlers.ts +0 -17
  150. package/src/users/page.ts +0 -36
@@ -0,0 +1,296 @@
1
+ import { JobsPermission } from "#permissions.ts";
2
+ export declare const JobsPageWithRetry: import("#page.ts").AdminPage & {
3
+ readonly route: {
4
+ readonly path: "/admin/jobs";
5
+ readonly title: "Jobs";
6
+ } & {
7
+ readonly permission: import("@shivaedev/access/permission.ts").Permission;
8
+ };
9
+ readonly id: "jobs";
10
+ readonly permissionKey: string;
11
+ readonly contract: import("@shivaedev/contract/contract.ts").Contract<"admin.jobs", readonly ((Omit<import("@shivaedev/contract/clientContract.ts").ClientQuery<"counts", import("effect/Schema").Struct<{
12
+ readonly queue: import("effect/Schema").String;
13
+ }>, import("effect/Schema").Struct<{
14
+ readonly activeCount: import("effect/Schema").Number;
15
+ readonly failedCount: import("effect/Schema").Number;
16
+ readonly queuedCount: import("effect/Schema").Number;
17
+ readonly totalCount: import("effect/Schema").Number;
18
+ }>, {
19
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
20
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
21
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
22
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
23
+ }>, "readPolicy"> & {
24
+ readonly readPolicy: import("@shivaedev/contract/readPolicy.ts").QueryReadPolicy<{
25
+ readonly queue: string;
26
+ }, import("@shivaedev/errors/taxonomy.ts").InternalServerError | import("./schemas.ts").JobsQueueUnregistered | import("./schemas.ts").JobsUnavailable | import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable, unknown>;
27
+ }) | (Omit<import("@shivaedev/contract/clientContract.ts").ClientQuery<"deadLettered", import("effect/Schema").Struct<{
28
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
29
+ readonly limit: import("effect/Schema").Number;
30
+ readonly queue: import("effect/Schema").String;
31
+ }>, import("effect/Schema").Struct<{
32
+ readonly jobs: import("effect/Schema").$Array<typeof import("./DeadLetter.ts").JobsDeadLetter>;
33
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
34
+ }>, {
35
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
36
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
37
+ readonly BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
38
+ readonly JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
39
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
40
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
41
+ }>, "readPolicy"> & {
42
+ readonly readPolicy: import("@shivaedev/contract/readPolicy.ts").QueryReadPolicy<{
43
+ readonly cursor?: string;
44
+ readonly limit: number;
45
+ readonly queue: string;
46
+ }, import("@shivaedev/errors/taxonomy.ts").BadRequest | import("@shivaedev/errors/taxonomy.ts").InternalServerError | import("./schemas.ts").JobsPayloadInvalid | import("./schemas.ts").JobsQueueUnregistered | import("./schemas.ts").JobsUnavailable | import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable, unknown>;
47
+ }) | (Omit<import("@shivaedev/contract/clientContract.ts").ClientQuery<"failed", import("effect/Schema").Struct<{
48
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
49
+ readonly limit: import("effect/Schema").Number;
50
+ readonly queue: import("effect/Schema").String;
51
+ }>, import("effect/Schema").Struct<{
52
+ readonly jobs: import("effect/Schema").$Array<typeof import("./Row.ts").JobsRow>;
53
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
54
+ }>, {
55
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
56
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
57
+ readonly BadRequest: typeof import("@shivaedev/errors/taxonomy.ts").BadRequest;
58
+ readonly JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
59
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
60
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
61
+ }>, "readPolicy"> & {
62
+ readonly readPolicy: import("@shivaedev/contract/readPolicy.ts").QueryReadPolicy<{
63
+ readonly cursor?: string;
64
+ readonly limit: number;
65
+ readonly queue: string;
66
+ }, import("@shivaedev/errors/taxonomy.ts").BadRequest | import("@shivaedev/errors/taxonomy.ts").InternalServerError | import("./schemas.ts").JobsPayloadInvalid | import("./schemas.ts").JobsQueueUnregistered | import("./schemas.ts").JobsUnavailable | import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable, unknown>;
67
+ }) | (Omit<import("@shivaedev/contract/clientContract.ts").ClientQuery<"health", import("effect/Schema").Void, import("effect/Schema").Struct<{
68
+ readonly activeTotal: import("effect/Schema").Number;
69
+ readonly deadLetteredTotal: import("effect/Schema").Number;
70
+ readonly failedTotal: import("effect/Schema").Number;
71
+ readonly jobs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
72
+ readonly activeCount: import("effect/Schema").Number;
73
+ readonly deadLetteredCount: import("effect/Schema").Number;
74
+ readonly failedCount: import("effect/Schema").Number;
75
+ readonly name: import("effect/Schema").String;
76
+ readonly queuedCount: import("effect/Schema").Number;
77
+ readonly readyCount: import("effect/Schema").Number;
78
+ }>>;
79
+ readonly queuedTotal: import("effect/Schema").Number;
80
+ readonly readyTotal: import("effect/Schema").Number;
81
+ }>, {
82
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
83
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
84
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
85
+ }>, "readPolicy"> & {
86
+ readonly readPolicy: import("@shivaedev/contract/readPolicy.ts").QueryReadPolicy<void, import("@shivaedev/errors/taxonomy.ts").InternalServerError | import("./schemas.ts").JobsUnavailable | import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable, unknown>;
87
+ }) | (Omit<import("@shivaedev/contract/clientContract.ts").ClientQuery<"job", import("effect/Schema").Struct<{
88
+ readonly id: import("effect/Schema").String;
89
+ readonly queue: import("effect/Schema").String;
90
+ }>, import("effect/Schema").Option<typeof import("./Row.ts").JobsRow>, {
91
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
92
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
93
+ readonly JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
94
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
95
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
96
+ }>, "readPolicy"> & {
97
+ readonly readPolicy: import("@shivaedev/contract/readPolicy.ts").QueryReadPolicy<{
98
+ readonly id: string;
99
+ readonly queue: string;
100
+ }, import("@shivaedev/errors/taxonomy.ts").InternalServerError | import("./schemas.ts").JobsPayloadInvalid | import("./schemas.ts").JobsQueueUnregistered | import("./schemas.ts").JobsUnavailable | import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable, unknown>;
101
+ }))[], readonly (import("@shivaedev/contract/operation.ts").Command<"retry", import("effect/Schema").Struct<{
102
+ readonly id: import("effect/Schema").String;
103
+ readonly queue: import("effect/Schema").String;
104
+ }>, import("effect/Schema").Void, {
105
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
106
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
107
+ readonly Forbidden: typeof import("@shivaedev/errors/taxonomy.ts").Forbidden;
108
+ readonly JobsNotFailed: typeof import("./NotFailed.ts").JobsNotFailed;
109
+ readonly JobsPayloadInvalid: typeof import("./schemas.ts").JobsPayloadInvalid;
110
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
111
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
112
+ }> | import("@shivaedev/contract/operation.ts").Command<"runScheduleNow", import("effect/Schema").Struct<{
113
+ readonly queue: import("effect/Schema").String;
114
+ }>, import("effect/Schema").Option<import("effect/Schema").String>, {
115
+ readonly InternalServerError: typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError;
116
+ readonly ServiceUnavailable: typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable;
117
+ readonly Forbidden: typeof import("@shivaedev/errors/taxonomy.ts").Forbidden;
118
+ readonly JobsQueueUnregistered: typeof import("./schemas.ts").JobsQueueUnregistered;
119
+ readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
120
+ }>)[], import("effect/rpc/Rpc").Rpc<"admin.jobs.$changes", import("effect/Schema").Struct<{
121
+ queries: import("effect/Schema").$Array<import("effect/Schema").Union<readonly (import("effect/Schema").Struct<{
122
+ query: import("effect/Schema").Literal<"counts">;
123
+ payload: import("effect/Schema").Struct<{
124
+ readonly queue: import("effect/Schema").String;
125
+ }>;
126
+ }> | import("effect/Schema").Struct<{
127
+ query: import("effect/Schema").Literal<"deadLettered">;
128
+ payload: import("effect/Schema").Struct<{
129
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
130
+ readonly limit: import("effect/Schema").Number;
131
+ readonly queue: import("effect/Schema").String;
132
+ }>;
133
+ }> | import("effect/Schema").Struct<{
134
+ query: import("effect/Schema").Literal<"failed">;
135
+ payload: import("effect/Schema").Struct<{
136
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
137
+ readonly limit: import("effect/Schema").Number;
138
+ readonly queue: import("effect/Schema").String;
139
+ }>;
140
+ }> | import("effect/Schema").Struct<{
141
+ query: import("effect/Schema").Literal<"health">;
142
+ payload: import("effect/Schema").Void;
143
+ }> | import("effect/Schema").Struct<{
144
+ query: import("effect/Schema").Literal<"job">;
145
+ payload: import("effect/Schema").Struct<{
146
+ readonly id: import("effect/Schema").String;
147
+ readonly queue: import("effect/Schema").String;
148
+ }>;
149
+ }>)[]>>;
150
+ }>, import("effect/rpc/RpcSchema").Stream<import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, ...(import("effect/Schema").Struct<{
151
+ readonly _tag: import("effect/Schema").Literal<"Unchanged">;
152
+ readonly queryIndex: import("effect/Schema").Number;
153
+ }> | import("effect/Schema").Struct<{
154
+ _tag: import("effect/Schema").Literal<"Result">;
155
+ query: import("effect/Schema").Literal<"counts">;
156
+ queryIndex: import("effect/Schema").Number;
157
+ value: import("effect/Schema").Struct<{
158
+ readonly activeCount: import("effect/Schema").Number;
159
+ readonly failedCount: import("effect/Schema").Number;
160
+ readonly queuedCount: import("effect/Schema").Number;
161
+ readonly totalCount: import("effect/Schema").Number;
162
+ }>;
163
+ }> | import("effect/Schema").Struct<{
164
+ _tag: import("effect/Schema").Literal<"Result">;
165
+ query: import("effect/Schema").Literal<"deadLettered">;
166
+ queryIndex: import("effect/Schema").Number;
167
+ value: import("effect/Schema").Struct<{
168
+ readonly jobs: import("effect/Schema").$Array<typeof import("./DeadLetter.ts").JobsDeadLetter>;
169
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
170
+ }>;
171
+ }> | import("effect/Schema").Struct<{
172
+ _tag: import("effect/Schema").Literal<"Result">;
173
+ query: import("effect/Schema").Literal<"failed">;
174
+ queryIndex: import("effect/Schema").Number;
175
+ value: import("effect/Schema").Struct<{
176
+ readonly jobs: import("effect/Schema").$Array<typeof import("./Row.ts").JobsRow>;
177
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
178
+ }>;
179
+ }> | import("effect/Schema").Struct<{
180
+ _tag: import("effect/Schema").Literal<"Result">;
181
+ query: import("effect/Schema").Literal<"health">;
182
+ queryIndex: import("effect/Schema").Number;
183
+ value: import("effect/Schema").Struct<{
184
+ readonly activeTotal: import("effect/Schema").Number;
185
+ readonly deadLetteredTotal: import("effect/Schema").Number;
186
+ readonly failedTotal: import("effect/Schema").Number;
187
+ readonly jobs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
188
+ readonly activeCount: import("effect/Schema").Number;
189
+ readonly deadLetteredCount: import("effect/Schema").Number;
190
+ readonly failedCount: import("effect/Schema").Number;
191
+ readonly name: import("effect/Schema").String;
192
+ readonly queuedCount: import("effect/Schema").Number;
193
+ readonly readyCount: import("effect/Schema").Number;
194
+ }>>;
195
+ readonly queuedTotal: import("effect/Schema").Number;
196
+ readonly readyTotal: import("effect/Schema").Number;
197
+ }>;
198
+ }> | import("effect/Schema").Struct<{
199
+ _tag: import("effect/Schema").Literal<"Result">;
200
+ query: import("effect/Schema").Literal<"job">;
201
+ queryIndex: import("effect/Schema").Number;
202
+ value: import("effect/Schema").Option<typeof import("./Row.ts").JobsRow>;
203
+ }>)[]]>, import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...(import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsQueueUnregistered)[]> | import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]> | import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]> | import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable)[]> | import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>)[]]>>, import("effect/Schema").Never, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
204
+ readonly rpc: import("effect/rpc/Rpc").Any;
205
+ readonly payload: unknown;
206
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
207
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
208
+ "~ClientError": never;
209
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
210
+ requiredForClient: false;
211
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.counts", import("effect/Schema").Struct<{
212
+ readonly queue: import("effect/Schema").String;
213
+ }>, import("effect/Schema").Struct<{
214
+ readonly activeCount: import("effect/Schema").Number;
215
+ readonly failedCount: import("effect/Schema").Number;
216
+ readonly queuedCount: import("effect/Schema").Number;
217
+ readonly totalCount: import("effect/Schema").Number;
218
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
219
+ readonly rpc: import("effect/rpc/Rpc").Any;
220
+ readonly payload: unknown;
221
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
222
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
223
+ "~ClientError": never;
224
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
225
+ requiredForClient: false;
226
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", import("effect/Schema").Struct<{
227
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
228
+ readonly limit: import("effect/Schema").Number;
229
+ readonly queue: import("effect/Schema").String;
230
+ }>, import("effect/Schema").Struct<{
231
+ readonly jobs: import("effect/Schema").$Array<typeof import("./DeadLetter.ts").JobsDeadLetter>;
232
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
233
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
234
+ readonly rpc: import("effect/rpc/Rpc").Any;
235
+ readonly payload: unknown;
236
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
237
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
238
+ "~ClientError": never;
239
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
240
+ requiredForClient: false;
241
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", import("effect/Schema").Struct<{
242
+ readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
243
+ readonly limit: import("effect/Schema").Number;
244
+ readonly queue: import("effect/Schema").String;
245
+ }>, import("effect/Schema").Struct<{
246
+ readonly jobs: import("effect/Schema").$Array<typeof import("./Row.ts").JobsRow>;
247
+ readonly next: import("effect/Schema").Option<import("effect/Schema").String>;
248
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
249
+ readonly rpc: import("effect/rpc/Rpc").Any;
250
+ readonly payload: unknown;
251
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
252
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
253
+ "~ClientError": never;
254
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
255
+ requiredForClient: false;
256
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.health", import("effect/Schema").Void, import("effect/Schema").Struct<{
257
+ readonly activeTotal: import("effect/Schema").Number;
258
+ readonly deadLetteredTotal: import("effect/Schema").Number;
259
+ readonly failedTotal: import("effect/Schema").Number;
260
+ readonly jobs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
261
+ readonly activeCount: import("effect/Schema").Number;
262
+ readonly deadLetteredCount: import("effect/Schema").Number;
263
+ readonly failedCount: import("effect/Schema").Number;
264
+ readonly name: import("effect/Schema").String;
265
+ readonly queuedCount: import("effect/Schema").Number;
266
+ readonly readyCount: import("effect/Schema").Number;
267
+ }>>;
268
+ readonly queuedTotal: import("effect/Schema").Number;
269
+ readonly readyTotal: import("effect/Schema").Number;
270
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
271
+ readonly rpc: import("effect/rpc/Rpc").Any;
272
+ readonly payload: unknown;
273
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
274
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
275
+ "~ClientError": never;
276
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
277
+ requiredForClient: false;
278
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", import("effect/Schema").Struct<{
279
+ readonly id: import("effect/Schema").String;
280
+ readonly queue: import("effect/Schema").String;
281
+ }>, import("effect/Schema").Option<typeof import("./Row.ts").JobsRow>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission | (import("effect/Context").Reference<<A, E, R>(effect: import("effect/Effect").Effect<A, E, R>, request: {
282
+ readonly rpc: import("effect/rpc/Rpc").Any;
283
+ readonly payload: unknown;
284
+ }) => import("effect/Effect").Effect<A, E | import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy | import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied | import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired | import("effect/Types").unhandled, R>> & {
285
+ "~effect/rpc/RpcMiddleware": "~effect/rpc/RpcMiddleware";
286
+ "~ClientError": never;
287
+ error: import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
288
+ requiredForClient: false;
289
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.retry", import("effect/Schema").Struct<{
290
+ readonly id: import("effect/Schema").String;
291
+ readonly queue: import("effect/Schema").String;
292
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered | typeof import("./NotFailed.ts").JobsNotFailed)[]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.runScheduleNow", import("effect/Schema").Struct<{
293
+ readonly queue: import("effect/Schema").String;
294
+ }>, import("effect/Schema").Option<import("effect/Schema").String>, import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/errors/taxonomy.ts").ServiceUnavailable | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof JobsPermission, never>, readonly [], undefined>;
295
+ };
296
+ //# sourceMappingURL=PageWithRetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageWithRetry.d.ts","sourceRoot":"","sources":["../../src/jobs/PageWithRetry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK5B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { JobsWithRetry } from "#generated/JobsWithRetry.ts";
2
+ import { adminPage } from "#page.ts";
3
+ import { JobsPermission } from "#permissions.ts";
4
+ export const JobsPageWithRetry = adminPage({
5
+ contract: JobsWithRetry,
6
+ id: "jobs",
7
+ permission: JobsPermission,
8
+ route: { path: "/admin/jobs", title: "Jobs" },
9
+ });
10
+ //# sourceMappingURL=PageWithRetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageWithRetry.js","sourceRoot":"","sources":["../../src/jobs/PageWithRetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC;IAC1C,QAAQ,EAAE,aAAa;IACvB,EAAE,EAAE,MAAM;IACV,UAAU,EAAE,cAAc;IAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE;CAC7C,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Schema } from "effect";
2
+ declare const JobsRow_base: Schema.Class<JobsRow, Schema.Struct<{
3
+ attempt: Schema.Number;
4
+ completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
5
+ createdOn: Schema.DateTimeUtcFromString;
6
+ data: Schema.Unknown;
7
+ id: Schema.String;
8
+ output: Schema.NullOr<Schema.Struct<{
9
+ readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
10
+ readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
11
+ }>>;
12
+ queue: Schema.String;
13
+ retryCount: Schema.Number;
14
+ retryLimit: Schema.Number;
15
+ startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
16
+ state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
17
+ }>, {}>;
18
+ export declare class JobsRow extends JobsRow_base {
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=Row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../src/jobs/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;AAGhC,qBAAa,OAAQ,SAAQ,YAA2C;CAAG"}
@@ -0,0 +1,5 @@
1
+ import { Schema } from "effect";
2
+ import { JobFields } from "#jobs/schemas.ts";
3
+ export class JobsRow extends Schema.Class("JobsRow")(JobFields) {
4
+ }
5
+ //# sourceMappingURL=Row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.js","sourceRoot":"","sources":["../../src/jobs/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,MAAM,CAAC,KAAK,CAAU,SAAS,CAAC,CAAC,SAAS,CAAC;CAAG"}
@@ -1,5 +1,4 @@
1
1
  import { Schema } from "effect";
2
- import { BadRequest } from "@shivaedev/errors/taxonomy.ts";
3
2
  export interface JobsQueue {
4
3
  readonly name: string;
5
4
  readonly schema: Schema.Top & {
@@ -22,12 +21,6 @@ declare const JobsQueueUnregistered_base: Schema.Class<JobsQueueUnregistered, Sc
22
21
  }>, import("effect/Cause").YieldableError>;
23
22
  export declare class JobsQueueUnregistered extends JobsQueueUnregistered_base {
24
23
  }
25
- export declare const JobsFailures: {
26
- BadRequest: typeof BadRequest;
27
- JobsPayloadInvalid: typeof JobsPayloadInvalid;
28
- JobsQueueUnregistered: typeof JobsQueueUnregistered;
29
- JobsUnavailable: typeof JobsUnavailable;
30
- };
31
24
  export declare const QueueCounts: Schema.Struct<{
32
25
  readonly activeCount: Schema.Number;
33
26
  readonly failedCount: Schema.Number;
@@ -61,11 +54,13 @@ export declare const JobFields: {
61
54
  attempt: Schema.Number;
62
55
  completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
63
56
  createdOn: Schema.DateTimeUtcFromString;
57
+ data: Schema.Unknown;
64
58
  id: Schema.String;
65
59
  output: Schema.NullOr<Schema.Struct<{
66
60
  readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
67
61
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
68
62
  }>>;
63
+ queue: Schema.String;
69
64
  retryCount: Schema.Number;
70
65
  retryLimit: Schema.Number;
71
66
  startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
@@ -75,53 +70,5 @@ export declare const PageFields: {
75
70
  cursor: Schema.optionalKey<Schema.String>;
76
71
  limit: Schema.Number;
77
72
  };
78
- export declare function jobSchema<TPayload extends Schema.Top>(queue: {
79
- readonly name: string;
80
- readonly schema: TPayload;
81
- }): Schema.Struct<{
82
- readonly attempt: Schema.Number;
83
- readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
84
- readonly createdOn: Schema.DateTimeUtcFromString;
85
- readonly id: Schema.String;
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
- }>>;
90
- readonly retryCount: Schema.Number;
91
- readonly retryLimit: Schema.Number;
92
- readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
93
- readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
94
- readonly data: Schema.Unknown;
95
- readonly queue: Schema.Literal<string>;
96
- }>;
97
- export declare function deadLetteredSchema<TPayload extends Schema.Top>(queue: {
98
- readonly name: string;
99
- readonly schema: TPayload;
100
- }): Schema.Struct<{
101
- readonly attempt: Schema.Number;
102
- readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
103
- readonly createdOn: Schema.DateTimeUtcFromString;
104
- readonly id: Schema.String;
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
- }>>;
109
- readonly retryCount: Schema.Number;
110
- readonly retryLimit: Schema.Number;
111
- readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
112
- readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
113
- readonly data: Schema.Unknown;
114
- readonly queue: Schema.Literal<string>;
115
- readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
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
- }>>;
120
- readonly sourceQueue: Schema.Literal<string>;
121
- }>;
122
- export declare function jobPage<TJob extends Schema.Top>(job: TJob): Schema.Struct<{
123
- readonly jobs: Schema.$Array<TJob>;
124
- readonly next: Schema.OptionFromNullOr<Schema.String>;
125
- }>;
126
73
  export {};
127
74
  //# sourceMappingURL=schemas.d.ts.map
@@ -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;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,M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AAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,GAAG;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAClF;;;;AAED,qBAAa,eAAgB,SAAQ,oBAEnC;CAAG;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAEtC;CAAG;;;;AAEL,qBAAa,qBAAsB,SAAQ,0BAEzC;CAAG;AAEL,eAAO,MAAM,WAAW;;;;;EAKtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;EAOtB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;EAOrB,CAAC;AAEH,eAAO,MAAM,SAAS;IACrB,OAAO;IACP,WAAW;IACX,SAAS;IACT,IAAI;IACJ,EAAE;IACF,MAAM;;;;IACN,KAAK;IACL,UAAU;IACV,UAAU;IACV,SAAS;IACT,KAAK;CACL,CAAC;AAEF,eAAO,MAAM,UAAU;IAAK,MAAM;IAAqC,KAAK;CAAiB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { Schema } from "effect";
2
- import { BadRequest } from "@shivaedev/errors/taxonomy.ts";
3
2
  import { JobFailure } from "@shivaedev/jobs/JobFailure.ts";
4
3
  export class JobsUnavailable extends Schema.TaggedError()("JobsUnavailable", {
5
4
  operation: Schema.String,
@@ -13,7 +12,6 @@ export class JobsQueueUnregistered extends Schema.TaggedError()("JobsQueueUnregi
13
12
  queue: Schema.String,
14
13
  }) {
15
14
  }
16
- export const JobsFailures = { BadRequest, JobsPayloadInvalid, JobsQueueUnregistered, JobsUnavailable };
17
15
  export const QueueCounts = Schema.Struct({
18
16
  activeCount: Schema.Number,
19
17
  failedCount: Schema.Number,
@@ -40,29 +38,14 @@ export const JobFields = {
40
38
  attempt: Schema.Number,
41
39
  completedOn: Schema.OptionFromNullOr(Schema.DateTimeUtcFromString),
42
40
  createdOn: Schema.DateTimeUtcFromString,
41
+ data: Schema.Unknown.annotate({ sensitive: true }),
43
42
  id: Schema.String,
44
43
  output: Schema.NullOr(JobFailure).annotate({ sensitive: true }),
44
+ queue: Schema.String,
45
45
  retryCount: Schema.Number,
46
46
  retryLimit: Schema.Number,
47
47
  startedOn: Schema.OptionFromNullOr(Schema.DateTimeUtcFromString),
48
48
  state: Schema.Literals(["created", "retry", "active", "completed", "cancelled", "failed"]),
49
49
  };
50
50
  export const PageFields = { cursor: Schema.optionalKey(Schema.String), limit: Schema.Number };
51
- export function jobSchema(queue) {
52
- return Schema.Struct({ ...JobFields, data: Schema.Unknown.annotate({ sensitive: true }), queue: Schema.Literal(queue.name) });
53
- }
54
- export function deadLetteredSchema(queue) {
55
- const name = `${queue.name}-dlq`;
56
- return Schema.Struct({
57
- ...JobFields,
58
- data: Schema.Unknown.annotate({ sensitive: true }),
59
- queue: Schema.Literal(name),
60
- sourceId: Schema.OptionFromNullOr(Schema.String),
61
- sourceOutput: Schema.NullOr(JobFailure).annotate({ sensitive: true }),
62
- sourceQueue: Schema.Literal(queue.name),
63
- });
64
- }
65
- export function jobPage(job) {
66
- return Schema.Struct({ jobs: Schema.Array(job), next: Schema.OptionFromNullOr(Schema.String) });
67
- }
68
51
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","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;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAO3D,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,WAAW,EAAmB,CAAC,iBAAiB,EAAE;IAC7F,SAAS,EAAE,MAAM,CAAC,MAAM;CACxB,CAA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AAK,EAAE,MAAM,CAAC,MAAM;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAChE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;CAC1F,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC"}
package/dist/page.d.ts CHANGED
@@ -26,10 +26,11 @@ export interface AdminPage {
26
26
  readonly route: AdminRoute;
27
27
  readonly [AdminPageTypeId]: true;
28
28
  }
29
+ type PageQuery<TQuery> = TQuery extends QueryShape ? Omit<TQuery, "readPolicy"> & {
30
+ readonly readPolicy: QueryReadPolicy<TQuery["payload"]["Type"], TQuery["error"]["Type"], QueryServices<TQuery> | SessionUser>;
31
+ } : never;
29
32
  type PageQueries<TQueries extends readonly QueryShape[]> = {
30
- readonly [TIndex in keyof TQueries]: Omit<TQueries[TIndex], "readPolicy"> & {
31
- readonly readPolicy: QueryReadPolicy<TQueries[TIndex]["payload"]["Type"], TQueries[TIndex]["error"]["Type"], QueryServices<TQueries[TIndex]> | SessionUser>;
32
- };
33
+ readonly [TIndex in keyof TQueries]: PageQuery<TQueries[TIndex]>;
33
34
  };
34
35
  type PageRpcs<TRpc> = TRpc extends Rpc.Rpc<infer TTag, infer TPayload, infer TSuccess, infer TError, infer TMiddleware, infer R> ? Rpc.Rpc<TTag, TPayload, TSuccess, TError, TMiddleware, R | SessionUser> : never;
35
36
  export declare function adminPage<const TId extends string, const TRoute extends Omit<AdminRoute, "permission">, const TName extends string, const TQueries extends readonly QueryShape[], const TCommands extends readonly CommandShape[], TRpcs extends Rpc.AnyWithProps, const TStreams extends readonly StreamShape[], TMiddleware extends RpcMiddleware.AnyService & PagePermission, const TScope extends "session" | undefined = undefined>(page: {
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../src/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAuB,MAAM,QAAQ,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAA2B,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC7G,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAU,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,eAAe,eAAsC,CAAC;AAE5D,KAAK,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC,QAAQ,GAAG,WAAW,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC,GAAG;IAC1H,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,SAAS;IACzB,QAAQ,CA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IACJ,IAAI,iBAAiB,GAAc,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3F,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;IAC9D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC5B,KAAK,MAAM,UAAU,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YAC/C,iBAAiB,GAAG,iBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC9D,CAAC;IACF,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC;IAC3C,OAAO;QACN,GAAG,UAAU;QACb,aAAa,EAAE,UAAU,CAAC,GAAG;QAC7B,KAAK,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE;QAChE,CAAC,eAAe,CAAC,EAAE,IAAa;QAChC,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;KACvD,CAAC;AACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Context, type Effect, type Option } from "effect";
2
+ import type { BadRequest } from "@shivaedev/errors/taxonomy.ts";
3
+ import type { DeadLetteredJob, JobPage, JobPageOptions, JobsHealth, ListedJob, QueueCounts } from "@shivaedev/jobs/server/health.ts";
4
+ import type { Job } from "@shivaedev/jobs/server/job.ts";
5
+ import type { JobsNotFailed } from "#jobs/NotFailed.ts";
6
+ import type { JobsPayloadInvalid, JobsQueueUnregistered, JobsUnavailable } from "#jobs/schemas.ts";
7
+ type Read = JobsUnavailable | JobsQueueUnregistered;
8
+ type Listing = Read | JobsPayloadInvalid | BadRequest;
9
+ declare const RegisteredQueues_base: Context.ServiceClass<RegisteredQueues, "@shivaedev/admin/RegisteredQueues", {
10
+ readonly counts: (queue: string) => Effect.Effect<QueueCounts, Read>;
11
+ readonly deadLetteredJobs: (queue: string, options: JobPageOptions) => Effect.Effect<JobPage<DeadLetteredJob<unknown>>, Listing>;
12
+ readonly failedJobs: (queue: string, options: JobPageOptions) => Effect.Effect<JobPage<ListedJob<unknown>>, Listing>;
13
+ readonly getJob: (queue: string, id: string) => Effect.Effect<Option.Option<Job<unknown>>, Read | JobsPayloadInvalid>;
14
+ readonly health: () => Effect.Effect<JobsHealth, JobsUnavailable>;
15
+ readonly retry: (queue: string, id: string) => Effect.Effect<void, Read | JobsPayloadInvalid | JobsNotFailed>;
16
+ readonly runScheduleNow: (schedule: string) => Effect.Effect<Option.Option<string>, Read>;
17
+ }>;
18
+ export declare class RegisteredQueues extends RegisteredQueues_base {
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=RegisteredQueues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegisteredQueues.d.ts","sourceRoot":"","sources":["../../src/server/RegisteredQueues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACrI,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnG,KAAK,IAAI,GAAG,eAAe,GAAG,qBAAqB,CAAC;AACpD,KAAK,OAAO,GAAG,IAAI,GAAG,kBAAkB,GAAG,UAAU,CAAC;;qBAKnC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC;+BACzC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC;yBAC3G,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC;qBACnG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,kBAAkB,CAAC;qBACpG,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC;oBACjD,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,GAAG,aAAa,CAAC;6BACpF,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;;AAT3F,qBAAa,gBAAiB,SAAQ,qBAWE;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { Context } from "effect";
2
+ export class RegisteredQueues extends Context.Service()("@shivaedev/admin/RegisteredQueues") {
3
+ }
4
+ //# sourceMappingURL=RegisteredQueues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegisteredQueues.js","sourceRoot":"","sources":["../../src/server/RegisteredQueues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA4B,MAAM,QAAQ,CAAC;AAU3D,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,OAAO,EAWlD,CAAC,mCAAmC,CAAC;CAAG"}