@dudousxd/nestjs-durable 0.29.0 → 0.30.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/dist/index.cjs CHANGED
@@ -489,6 +489,12 @@ function tenantGatewayUnavailable(method) {
489
489
  __name(tenantGatewayUnavailable, "tenantGatewayUnavailable");
490
490
  function unavailableRunGateway() {
491
491
  return {
492
+ // Topology is local metadata, always answerable — a thin worker with no transport is still a tenant.
493
+ topology() {
494
+ return {
495
+ role: "tenant"
496
+ };
497
+ },
492
498
  getRunDetail(_runId) {
493
499
  return tenantGatewayUnavailable("getRunDetail");
494
500
  },
@@ -883,6 +889,12 @@ var ProxyRunGateway = class {
883
889
  });
884
890
  });
885
891
  }
892
+ topology() {
893
+ return {
894
+ role: "tenant",
895
+ tenant: this.tenant
896
+ };
897
+ }
886
898
  getRunDetail(runId) {
887
899
  return this.request({
888
900
  kind: "getRunDetail",
@@ -1195,6 +1207,11 @@ var StoreRunGateway = class {
1195
1207
  this.store = store;
1196
1208
  this.engine = engine;
1197
1209
  }
1210
+ topology() {
1211
+ return {
1212
+ role: "control-plane"
1213
+ };
1214
+ }
1198
1215
  async getRunDetail(runId) {
1199
1216
  const run = await this.store.getRun(runId);
1200
1217
  if (!run) return null;