@dudousxd/nestjs-durable-dashboard 0.46.1 → 0.48.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/client/durable-client.d.ts +26 -1
- package/dist/client/durable-client.d.ts.map +1 -1
- package/dist/client/durable-client.js +28 -1
- package/dist/client/durable-client.js.map +1 -1
- package/dist/client/run-query-string.d.ts +2 -0
- package/dist/client/run-query-string.d.ts.map +1 -1
- package/dist/client/run-query-string.js.map +1 -1
- package/dist/react/open-console-button.d.ts +1 -1
- package/dist/react/open-console-button.d.ts.map +1 -1
- package/dist/server/index.cjs +238 -39
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +25 -2
- package/dist/server/index.d.ts +25 -2
- package/dist/server/index.js +238 -39
- package/dist/server/index.js.map +1 -1
- package/dist/spa/assets/{bench-C9Wy_W9u.js → bench-DBT4MTjB.js} +1 -1
- package/dist/spa/assets/index-BYg_w0aX.js +66 -0
- package/dist/spa/assets/{index-DTjzfX2h.js → index-D9HzYedm.js} +1 -1
- package/dist/spa/assets/index-LBQc7d3p.css +1 -0
- package/dist/spa/assets/{preview-CepUq-I_.js → preview-BDJd2aOJ.js} +1 -1
- package/dist/spa/bench.html +3 -3
- package/dist/spa/index.html +3 -3
- package/dist/spa/preview.html +3 -3
- package/package.json +27 -18
- package/dist/spa/assets/index-DyuI-y-B.js +0 -80
- package/dist/spa/assets/index-DzTL9Sp_.css +0 -1
package/dist/server/index.cjs
CHANGED
|
@@ -41,13 +41,22 @@ var import_common = require("@nestjs/common");
|
|
|
41
41
|
var import_rxjs = require("rxjs");
|
|
42
42
|
function _ts_decorate(decorators, target, key, desc) {
|
|
43
43
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
44
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
45
|
-
|
|
44
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
45
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
46
|
+
} else {
|
|
47
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
48
|
+
if (d = decorators[i]) {
|
|
49
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
46
53
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
47
54
|
}
|
|
48
55
|
__name(_ts_decorate, "_ts_decorate");
|
|
49
|
-
function _ts_metadata(
|
|
50
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
56
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
57
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
58
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
59
|
+
}
|
|
51
60
|
}
|
|
52
61
|
__name(_ts_metadata, "_ts_metadata");
|
|
53
62
|
function _ts_param(paramIndex, decorator) {
|
|
@@ -88,6 +97,27 @@ var DashboardService = class {
|
|
|
88
97
|
};
|
|
89
98
|
}
|
|
90
99
|
/**
|
|
100
|
+
* The persisted schedules (`engine.schedules`), soonest-due first. Empty — not an error — on a
|
|
101
|
+
* tenant deployment or a store that doesn't persist schedules, so the console can simply hide the
|
|
102
|
+
* panel instead of special-casing either.
|
|
103
|
+
*/
|
|
104
|
+
async listSchedules(query) {
|
|
105
|
+
if (!this.store || !this.engine?.schedules?.supported) return [];
|
|
106
|
+
return this.engine.schedules.list(query);
|
|
107
|
+
}
|
|
108
|
+
/** Pause a persisted schedule (control plane only). */
|
|
109
|
+
pauseSchedule(id) {
|
|
110
|
+
return this.controlPlane().engine.schedules.pause(id);
|
|
111
|
+
}
|
|
112
|
+
/** Resume a persisted schedule from its next window (control plane only). */
|
|
113
|
+
resumeSchedule(id) {
|
|
114
|
+
return this.controlPlane().engine.schedules.resume(id);
|
|
115
|
+
}
|
|
116
|
+
/** Start one run of a persisted schedule now, outside its cadence (control plane only). */
|
|
117
|
+
triggerSchedule(id) {
|
|
118
|
+
return this.controlPlane().engine.schedules.trigger(id);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
91
121
|
* Prometheus-text metrics for a `/metrics` scrape: the event-counters (runs/steps by outcome,
|
|
92
122
|
* per-workflow counts) plus live **backlog gauges** queried at scrape time — `durable_pending_runs`
|
|
93
123
|
* (the dispatch backlog: the key health signal of the dispatch model) and `durable_dead_runs` (DLQ
|
|
@@ -422,13 +452,22 @@ var RunQueryDraft2 = class {
|
|
|
422
452
|
// src/server/run-query.adapter.ts
|
|
423
453
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
424
454
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
425
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
426
|
-
|
|
455
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
456
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
457
|
+
} else {
|
|
458
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
459
|
+
if (d = decorators[i]) {
|
|
460
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
427
464
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
428
465
|
}
|
|
429
466
|
__name(_ts_decorate2, "_ts_decorate");
|
|
430
|
-
function _ts_metadata2(
|
|
431
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
467
|
+
function _ts_metadata2(metadataKey, metadataValue) {
|
|
468
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
469
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
470
|
+
}
|
|
432
471
|
}
|
|
433
472
|
__name(_ts_metadata2, "_ts_metadata");
|
|
434
473
|
var RUN_QUERY_ADAPTER = Symbol("DURABLE_RUN_QUERY_ADAPTER");
|
|
@@ -659,7 +698,9 @@ var RunQueryAdapter = class {
|
|
|
659
698
|
/**
|
|
660
699
|
* The distinct values of one field over the runs the active predicates select — the console's
|
|
661
700
|
* pickers. `limit` is honoured because it has to be: tag and search-attribute cardinality grows
|
|
662
|
-
* with the data, so the unbounded answer is a listing rather than an aggregate.
|
|
701
|
+
* with the data, so the unbounded answer is a listing rather than an aggregate. `offset` and
|
|
702
|
+
* `search` are what keep that bound from becoming a ceiling — the picker pages as it scrolls and
|
|
703
|
+
* narrows as the operator types, both against the whole matching set rather than the fetched page.
|
|
663
704
|
*/
|
|
664
705
|
async groupByCount(qb, field, entity, opts) {
|
|
665
706
|
this.assertDurableRun(entity);
|
|
@@ -674,7 +715,13 @@ var RunQueryAdapter = class {
|
|
|
674
715
|
throw new import_common2.BadRequestException(`The durable run list cannot enumerate values of \`${field}\`.`);
|
|
675
716
|
}
|
|
676
717
|
const rows = await this.gateway.runValueFacets(axis, this.draft(qb).facetQuery(), {
|
|
677
|
-
limit: opts?.limit ?? import_nestjs_durable_core2.RUN_VALUE_FACET_LIMIT
|
|
718
|
+
limit: opts?.limit ?? import_nestjs_durable_core2.RUN_VALUE_FACET_LIMIT,
|
|
719
|
+
...opts?.offset !== void 0 && {
|
|
720
|
+
offset: opts.offset
|
|
721
|
+
},
|
|
722
|
+
...opts?.search !== void 0 && {
|
|
723
|
+
search: opts.search
|
|
724
|
+
}
|
|
678
725
|
});
|
|
679
726
|
return rows.map((row) => ({
|
|
680
727
|
value: row.value,
|
|
@@ -707,13 +754,22 @@ RunQueryAdapter = _ts_decorate2([
|
|
|
707
754
|
// src/server/run.filter.ts
|
|
708
755
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
709
756
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
710
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
711
|
-
|
|
757
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
758
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
759
|
+
} else {
|
|
760
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
761
|
+
if (d = decorators[i]) {
|
|
762
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
712
766
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
713
767
|
}
|
|
714
768
|
__name(_ts_decorate3, "_ts_decorate");
|
|
715
|
-
function _ts_metadata3(
|
|
716
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
769
|
+
function _ts_metadata3(metadataKey, metadataValue) {
|
|
770
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
771
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
772
|
+
}
|
|
717
773
|
}
|
|
718
774
|
__name(_ts_metadata3, "_ts_metadata");
|
|
719
775
|
function list(value) {
|
|
@@ -915,13 +971,22 @@ RunFilter = _ts_decorate3([
|
|
|
915
971
|
// src/server/durable-api.controller.ts
|
|
916
972
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
917
973
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
918
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
919
|
-
|
|
974
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
975
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
976
|
+
} else {
|
|
977
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
978
|
+
if (d = decorators[i]) {
|
|
979
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
920
983
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
921
984
|
}
|
|
922
985
|
__name(_ts_decorate4, "_ts_decorate");
|
|
923
|
-
function _ts_metadata4(
|
|
924
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
986
|
+
function _ts_metadata4(metadataKey, metadataValue) {
|
|
987
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
988
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
989
|
+
}
|
|
925
990
|
}
|
|
926
991
|
__name(_ts_metadata4, "_ts_metadata");
|
|
927
992
|
function _ts_param2(paramIndex, decorator) {
|
|
@@ -976,7 +1041,9 @@ var DurableApiController = class {
|
|
|
976
1041
|
* so a picker never offers a value whose result set is empty.
|
|
977
1042
|
*
|
|
978
1043
|
* `limit` matters rather than being a nicety — tag and attribute cardinality grows with the data
|
|
979
|
-
* (a `singleton:<key>` tag is minted per key), so the unbounded answer is a listing.
|
|
1044
|
+
* (a `singleton:<key>` tag is minted per key), so the unbounded answer is a listing. `offset` and
|
|
1045
|
+
* `search` are what make that bound livable: a picker pages as it scrolls and narrows as the
|
|
1046
|
+
* operator types, both server-side, so a value outside the first page is still reachable.
|
|
980
1047
|
*/
|
|
981
1048
|
values(query) {
|
|
982
1049
|
return this.runner.groupByCount(DurableRun, query, {
|
|
@@ -991,6 +1058,37 @@ var DurableApiController = class {
|
|
|
991
1058
|
workers() {
|
|
992
1059
|
return this.dashboard.workerHealth();
|
|
993
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
* The persisted schedules (`engine.schedules`), soonest-due first, optionally narrowed by
|
|
1063
|
+
* `namespace`/`workflow`/`tag`/`paused`. Empty on a tenant or a store without schedules.
|
|
1064
|
+
*/
|
|
1065
|
+
schedules(namespace, workflow, tag, paused, limit) {
|
|
1066
|
+
return this.dashboard.listSchedules({
|
|
1067
|
+
...namespace ? {
|
|
1068
|
+
namespace
|
|
1069
|
+
} : {},
|
|
1070
|
+
...workflow ? {
|
|
1071
|
+
workflow
|
|
1072
|
+
} : {},
|
|
1073
|
+
...tag ? {
|
|
1074
|
+
tag
|
|
1075
|
+
} : {},
|
|
1076
|
+
...paused === "true" || paused === "false" ? {
|
|
1077
|
+
paused: paused === "true"
|
|
1078
|
+
} : {},
|
|
1079
|
+
limit: Math.min(Number(limit) || 200, 1e3)
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
pauseSchedule(id) {
|
|
1083
|
+
return this.dashboard.pauseSchedule(id).catch(notFound);
|
|
1084
|
+
}
|
|
1085
|
+
resumeSchedule(id) {
|
|
1086
|
+
return this.dashboard.resumeSchedule(id).catch(notFound);
|
|
1087
|
+
}
|
|
1088
|
+
/** Start one run of the schedule now, outside its cadence. */
|
|
1089
|
+
triggerSchedule(id) {
|
|
1090
|
+
return this.dashboard.triggerSchedule(id).catch(notFound);
|
|
1091
|
+
}
|
|
994
1092
|
/** This deployment's durable role (control plane vs tenant) + tenant name — for the header badge. */
|
|
995
1093
|
topology() {
|
|
996
1094
|
return this.dashboard.topology();
|
|
@@ -1101,6 +1199,50 @@ _ts_decorate4([
|
|
|
1101
1199
|
_ts_metadata4("design:paramtypes", []),
|
|
1102
1200
|
_ts_metadata4("design:returntype", void 0)
|
|
1103
1201
|
], DurableApiController.prototype, "workers", null);
|
|
1202
|
+
_ts_decorate4([
|
|
1203
|
+
(0, import_common4.Get)("schedules"),
|
|
1204
|
+
_ts_param2(0, (0, import_common4.Query)("namespace")),
|
|
1205
|
+
_ts_param2(1, (0, import_common4.Query)("workflow")),
|
|
1206
|
+
_ts_param2(2, (0, import_common4.Query)("tag")),
|
|
1207
|
+
_ts_param2(3, (0, import_common4.Query)("paused")),
|
|
1208
|
+
_ts_param2(4, (0, import_common4.Query)("limit")),
|
|
1209
|
+
_ts_metadata4("design:type", Function),
|
|
1210
|
+
_ts_metadata4("design:paramtypes", [
|
|
1211
|
+
String,
|
|
1212
|
+
String,
|
|
1213
|
+
String,
|
|
1214
|
+
String,
|
|
1215
|
+
String
|
|
1216
|
+
]),
|
|
1217
|
+
_ts_metadata4("design:returntype", void 0)
|
|
1218
|
+
], DurableApiController.prototype, "schedules", null);
|
|
1219
|
+
_ts_decorate4([
|
|
1220
|
+
(0, import_common4.Post)("schedules/:id/pause"),
|
|
1221
|
+
_ts_param2(0, (0, import_common4.Param)("id")),
|
|
1222
|
+
_ts_metadata4("design:type", Function),
|
|
1223
|
+
_ts_metadata4("design:paramtypes", [
|
|
1224
|
+
String
|
|
1225
|
+
]),
|
|
1226
|
+
_ts_metadata4("design:returntype", void 0)
|
|
1227
|
+
], DurableApiController.prototype, "pauseSchedule", null);
|
|
1228
|
+
_ts_decorate4([
|
|
1229
|
+
(0, import_common4.Post)("schedules/:id/resume"),
|
|
1230
|
+
_ts_param2(0, (0, import_common4.Param)("id")),
|
|
1231
|
+
_ts_metadata4("design:type", Function),
|
|
1232
|
+
_ts_metadata4("design:paramtypes", [
|
|
1233
|
+
String
|
|
1234
|
+
]),
|
|
1235
|
+
_ts_metadata4("design:returntype", void 0)
|
|
1236
|
+
], DurableApiController.prototype, "resumeSchedule", null);
|
|
1237
|
+
_ts_decorate4([
|
|
1238
|
+
(0, import_common4.Post)("schedules/:id/trigger"),
|
|
1239
|
+
_ts_param2(0, (0, import_common4.Param)("id")),
|
|
1240
|
+
_ts_metadata4("design:type", Function),
|
|
1241
|
+
_ts_metadata4("design:paramtypes", [
|
|
1242
|
+
String
|
|
1243
|
+
]),
|
|
1244
|
+
_ts_metadata4("design:returntype", void 0)
|
|
1245
|
+
], DurableApiController.prototype, "triggerSchedule", null);
|
|
1104
1246
|
_ts_decorate4([
|
|
1105
1247
|
(0, import_common4.Get)("topology"),
|
|
1106
1248
|
_ts_metadata4("design:type", Function),
|
|
@@ -1231,6 +1373,13 @@ DurableApiController = _ts_decorate4([
|
|
|
1231
1373
|
typeof import_nestjs_filter2.FilterRunner === "undefined" ? Object : import_nestjs_filter2.FilterRunner
|
|
1232
1374
|
])
|
|
1233
1375
|
], DurableApiController);
|
|
1376
|
+
function notFound(error) {
|
|
1377
|
+
if (error instanceof Error && error.name === "ScheduleNotFoundError") {
|
|
1378
|
+
throw new import_common4.NotFoundException(error.message);
|
|
1379
|
+
}
|
|
1380
|
+
throw error;
|
|
1381
|
+
}
|
|
1382
|
+
__name(notFound, "notFound");
|
|
1234
1383
|
|
|
1235
1384
|
// src/server/durable-auth.controller.ts
|
|
1236
1385
|
var import_common8 = require("@nestjs/common");
|
|
@@ -1791,8 +1940,15 @@ var import_common7 = require("@nestjs/common");
|
|
|
1791
1940
|
var import_common5 = require("@nestjs/common");
|
|
1792
1941
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
1793
1942
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1794
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1795
|
-
|
|
1943
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
1944
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1945
|
+
} else {
|
|
1946
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
1947
|
+
if (d = decorators[i]) {
|
|
1948
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1796
1952
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1797
1953
|
}
|
|
1798
1954
|
__name(_ts_decorate5, "_ts_decorate");
|
|
@@ -1824,13 +1980,22 @@ DashboardLoginRedirectFilter = _ts_decorate5([
|
|
|
1824
1980
|
var import_common6 = require("@nestjs/common");
|
|
1825
1981
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
1826
1982
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1827
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1828
|
-
|
|
1983
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
1984
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1985
|
+
} else {
|
|
1986
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
1987
|
+
if (d = decorators[i]) {
|
|
1988
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1829
1992
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1830
1993
|
}
|
|
1831
1994
|
__name(_ts_decorate6, "_ts_decorate");
|
|
1832
|
-
function _ts_metadata5(
|
|
1833
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1995
|
+
function _ts_metadata5(metadataKey, metadataValue) {
|
|
1996
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
1997
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
1998
|
+
}
|
|
1834
1999
|
}
|
|
1835
2000
|
__name(_ts_metadata5, "_ts_metadata");
|
|
1836
2001
|
function _ts_param3(paramIndex, decorator) {
|
|
@@ -1900,13 +2065,22 @@ DashboardSessionRequiredFilter = _ts_decorate6([
|
|
|
1900
2065
|
// src/server/durable-ui.controller.ts
|
|
1901
2066
|
function _ts_decorate7(decorators, target, key, desc) {
|
|
1902
2067
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1903
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1904
|
-
|
|
2068
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
2069
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2070
|
+
} else {
|
|
2071
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
2072
|
+
if (d = decorators[i]) {
|
|
2073
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
1905
2077
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1906
2078
|
}
|
|
1907
2079
|
__name(_ts_decorate7, "_ts_decorate");
|
|
1908
|
-
function _ts_metadata6(
|
|
1909
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2080
|
+
function _ts_metadata6(metadataKey, metadataValue) {
|
|
2081
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
2082
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
2083
|
+
}
|
|
1910
2084
|
}
|
|
1911
2085
|
__name(_ts_metadata6, "_ts_metadata");
|
|
1912
2086
|
function _ts_param4(paramIndex, decorator) {
|
|
@@ -2000,13 +2174,22 @@ DurableUiController = _ts_decorate7([
|
|
|
2000
2174
|
// src/server/durable-auth.controller.ts
|
|
2001
2175
|
function _ts_decorate8(decorators, target, key, desc) {
|
|
2002
2176
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2003
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2004
|
-
|
|
2177
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
2178
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2179
|
+
} else {
|
|
2180
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
2181
|
+
if (d = decorators[i]) {
|
|
2182
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2005
2186
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2006
2187
|
}
|
|
2007
2188
|
__name(_ts_decorate8, "_ts_decorate");
|
|
2008
|
-
function _ts_metadata7(
|
|
2009
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2189
|
+
function _ts_metadata7(metadataKey, metadataValue) {
|
|
2190
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
2191
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
2192
|
+
}
|
|
2010
2193
|
}
|
|
2011
2194
|
__name(_ts_metadata7, "_ts_metadata");
|
|
2012
2195
|
function _ts_param5(paramIndex, decorator) {
|
|
@@ -2181,13 +2364,22 @@ var import_core = require("@nestjs/core");
|
|
|
2181
2364
|
var import_common9 = require("@nestjs/common");
|
|
2182
2365
|
function _ts_decorate9(decorators, target, key, desc) {
|
|
2183
2366
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2184
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2185
|
-
|
|
2367
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
2368
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2369
|
+
} else {
|
|
2370
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
2371
|
+
if (d = decorators[i]) {
|
|
2372
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2186
2376
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2187
2377
|
}
|
|
2188
2378
|
__name(_ts_decorate9, "_ts_decorate");
|
|
2189
|
-
function _ts_metadata8(
|
|
2190
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2379
|
+
function _ts_metadata8(metadataKey, metadataValue) {
|
|
2380
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
2381
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
2382
|
+
}
|
|
2191
2383
|
}
|
|
2192
2384
|
__name(_ts_metadata8, "_ts_metadata");
|
|
2193
2385
|
function _ts_param6(paramIndex, decorator) {
|
|
@@ -2292,8 +2484,15 @@ DurableApiSessionGuard = _ts_decorate9([
|
|
|
2292
2484
|
// src/server/durable-dashboard.module.ts
|
|
2293
2485
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
2294
2486
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2295
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2296
|
-
|
|
2487
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
2488
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2489
|
+
} else {
|
|
2490
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
2491
|
+
if (d = decorators[i]) {
|
|
2492
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2297
2496
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2298
2497
|
}
|
|
2299
2498
|
__name(_ts_decorate10, "_ts_decorate");
|