@dudousxd/nestjs-durable 0.30.0 → 0.30.1
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/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -901,6 +901,8 @@ var ProxyRunGateway = class {
|
|
|
901
901
|
runId
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
+
/** The control plane's `StoreRunGateway` resolves each run's `waiting` descriptor; the reply carries
|
|
905
|
+
* it through as plain JSON, so a tenant's list rows name the wait too. */
|
|
904
906
|
listRuns(query) {
|
|
905
907
|
return this.request({
|
|
906
908
|
kind: "listRuns",
|
|
@@ -1225,8 +1227,16 @@ var StoreRunGateway = class {
|
|
|
1225
1227
|
children
|
|
1226
1228
|
};
|
|
1227
1229
|
}
|
|
1228
|
-
listRuns(query) {
|
|
1229
|
-
|
|
1230
|
+
async listRuns(query) {
|
|
1231
|
+
const runs = await this.store.listRuns(query);
|
|
1232
|
+
const waiterByRun = (0, import_nestjs_durable_core8.indexWaitersByRun)(await this.store.listSignalWaiters(""));
|
|
1233
|
+
return runs.map((run) => {
|
|
1234
|
+
const waiting = (0, import_nestjs_durable_core8.resolveRunWaiting)(run, waiterByRun);
|
|
1235
|
+
return waiting ? {
|
|
1236
|
+
...run,
|
|
1237
|
+
waiting
|
|
1238
|
+
} : run;
|
|
1239
|
+
});
|
|
1230
1240
|
}
|
|
1231
1241
|
/** Every group the engine knows about — unscoped. A tenant proxy's request is scoped by the
|
|
1232
1242
|
* `RunRequestResponder` (to the requester's `@<tenant>` groups); the operator's own UI sees all. */
|