@codemation/host 0.0.15 → 0.0.16
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/{AppConfigFactory-DmHOpg8O.d.ts → AppConfigFactory-D_ReOKfV.d.ts} +5 -3
- package/dist/{AppConfigFactory-DWIz2hy-.js → AppConfigFactory-JjNqYnGg.js} +41 -3
- package/dist/AppConfigFactory-JjNqYnGg.js.map +1 -0
- package/dist/{AppContainerFactory-B5eRpvAa.js → AppContainerFactory-_dnF0VOf.js} +272 -105
- package/dist/AppContainerFactory-_dnF0VOf.js.map +1 -0
- package/dist/{CodemationConfig-D2ULNkec.d.ts → CodemationConfig-u80ZoIrc.d.ts} +18 -10
- package/dist/{CodemationConfigNormalizer-CBLxXaRV.d.ts → CodemationConfigNormalizer-DCt0mPPz.d.ts} +2 -2
- package/dist/{CodemationConsumerConfigLoader-BLvzcfb7.d.ts → CodemationConsumerConfigLoader-C8iscLBJ.d.ts} +4 -2
- package/dist/{CodemationConsumerConfigLoader-BBzAr6L_.js → CodemationConsumerConfigLoader-LGrCspIx.js} +18 -4
- package/dist/CodemationConsumerConfigLoader-LGrCspIx.js.map +1 -0
- package/dist/CodemationPluginListMerger-CGwOTdZ7.js +57 -0
- package/dist/CodemationPluginListMerger-CGwOTdZ7.js.map +1 -0
- package/dist/{CodemationPluginListMerger-B0-e4CJ6.d.ts → CodemationPluginListMerger-ZY3R_kTo.d.ts} +79 -117
- package/dist/{CredentialServices-BeuMtqYA.d.ts → CredentialServices-Uo1jxSYB.d.ts} +2 -2
- package/dist/PublicFrontendBootstrap-p7mS8aWG.d.ts +50 -0
- package/dist/{FrontendAppConfigFactory-Bj-DZNlt.d.ts → PublicFrontendBootstrapFactory-BA65IXL4.d.ts} +19 -4
- package/dist/{FrontendAppConfigJsonCodec-nOCQI0ag.js → PublicFrontendBootstrapJsonCodec-BdiVGG5R.js} +76 -2
- package/dist/PublicFrontendBootstrapJsonCodec-BdiVGG5R.js.map +1 -0
- package/dist/PublicFrontendBootstrapJsonCodec-DjkkKXcq.d.ts +35 -0
- package/dist/client.d.ts +3 -3
- package/dist/client.js +2 -2
- package/dist/consumer.d.ts +3 -3
- package/dist/consumer.js +1 -1
- package/dist/credentials.d.ts +2 -2
- package/dist/index.d.ts +44 -12
- package/dist/index.js +8 -8
- package/dist/nextServer.d.ts +30 -9
- package/dist/nextServer.js +4 -4
- package/dist/{persistenceServer-CaehMh3M.d.ts → persistenceServer-BKbOs-TQ.d.ts} +2 -2
- package/dist/{persistenceServer-DVeWUbc3.js → persistenceServer-J2teHIIg.js} +2 -2
- package/dist/{persistenceServer-DVeWUbc3.js.map → persistenceServer-J2teHIIg.js.map} +1 -1
- package/dist/persistenceServer.d.ts +4 -4
- package/dist/persistenceServer.js +2 -2
- package/dist/{server-C65z_kqm.js → server-CVC7QBwT.js} +42 -25
- package/dist/server-CVC7QBwT.js.map +1 -0
- package/dist/{server-Dyo8qh4k.d.ts → server-CbcnGZHm.d.ts} +14 -19
- package/dist/server.d.ts +10 -10
- package/dist/server.js +7 -7
- package/package.json +5 -5
- package/src/application/dev/BootRuntimeSummary.types.ts +2 -0
- package/src/application/dev/DevBootstrapSummaryAssembler.ts +1 -0
- package/src/application/dev/DevBootstrapSummaryJson.types.ts +6 -0
- package/src/bootstrap/AppContainerFactory.ts +101 -6
- package/src/bootstrap/runtime/AppConfigFactory.ts +22 -2
- package/src/client.ts +4 -0
- package/src/index.ts +13 -5
- package/src/infrastructure/config/CodemationPluginRegistrar.ts +6 -0
- package/src/infrastructure/di/HandlesCommandRegistry.ts +1 -10
- package/src/infrastructure/di/HandlesQueryRegistry.ts +1 -10
- package/src/nextServer.ts +4 -0
- package/src/presentation/config/AppConfig.ts +6 -0
- package/src/presentation/config/CodemationPackageManifest.ts +1 -7
- package/src/presentation/config/CodemationPlugin.ts +45 -9
- package/src/presentation/config/CodemationPluginListMerger.ts +30 -26
- package/src/presentation/frontend/InternalAuthBootstrap.ts +12 -0
- package/src/presentation/frontend/InternalAuthBootstrapFactory.ts +26 -0
- package/src/presentation/frontend/InternalAuthBootstrapJsonCodec.ts +49 -0
- package/src/presentation/frontend/PublicFrontendBootstrap.ts +12 -0
- package/src/presentation/frontend/PublicFrontendBootstrapFactory.ts +23 -0
- package/src/presentation/frontend/PublicFrontendBootstrapJsonCodec.ts +48 -0
- package/src/presentation/http/ApiPaths.ts +10 -0
- package/src/presentation/http/hono/HonoHttpAnonymousRoutePolicyRegistry.ts +3 -0
- package/src/presentation/http/hono/registrars/BootstrapHonoApiRouteRegistrar.ts +32 -0
- package/src/presentation/http/routeHandlers/InternalAuthBootstrapHttpRouteHandler.ts +18 -0
- package/src/presentation/http/routeHandlers/PublicFrontendBootstrapHttpRouteHandler.ts +18 -0
- package/src/presentation/server/CodemationConsumerConfigLoader.ts +16 -3
- package/src/presentation/server/CodemationPluginDiscovery.ts +59 -28
- package/src/server.ts +6 -0
- package/dist/AppConfigFactory-DWIz2hy-.js.map +0 -1
- package/dist/AppContainerFactory-B5eRpvAa.js.map +0 -1
- package/dist/CodemationConsumerConfigLoader-BBzAr6L_.js.map +0 -1
- package/dist/CodemationPluginListMerger-DrVOw9KP.js +0 -57
- package/dist/CodemationPluginListMerger-DrVOw9KP.js.map +0 -1
- package/dist/FrontendAppConfig-D50wjj_n.d.ts +0 -27
- package/dist/FrontendAppConfigJsonCodec-1_L7H_Qo.d.ts +0 -20
- package/dist/FrontendAppConfigJsonCodec-nOCQI0ag.js.map +0 -1
- package/dist/server-C65z_kqm.js.map +0 -1
|
@@ -3,7 +3,7 @@ import { o as LogLevelPolicyFactory, s as logLevelPolicyFactory, t as ServerLogg
|
|
|
3
3
|
import { n as __decorateMetadata, t as __decorateParam } from "./decorateParam-DrsXNPuw.js";
|
|
4
4
|
import { t as __decorate } from "./decorate-B0PP651O.js";
|
|
5
5
|
import { a as CredentialInstanceService, c as CredentialFieldEnvOverlayService, d as ApplicationRequestError, f as CredentialTypeRegistryImpl, i as CredentialBindingService, l as WorkflowCredentialNodeResolver, m as OpenAiApiKeyCredentialHealthTester, n as CredentialSessionServiceImpl, o as CredentialMaterialResolver, p as OpenAiApiKeyCredentialTypeFactory, r as CredentialRuntimeMaterialService, s as CredentialSecretCipher, t as CredentialTestService, u as ApplicationTokens } from "./CredentialServices-DNb3CZwW.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as require_client, i as PrismaMigrationDeployer } from "./AppConfigFactory-JjNqYnGg.js";
|
|
7
7
|
import { mkdir, rm, stat } from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { AgentConfigInspector, ConnectionNodeIdFactory, CoreTokens, DefaultExecutionBinaryService, EventPublishingWorkflowExecutionRepository, InMemoryLiveWorkflowRepository, InMemoryRunEventBus, ItemsInputNormalizer, RunFinishedAtFactory, SystemClock, container, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, registry } from "@codemation/core";
|
|
@@ -73,17 +73,13 @@ var HandlesCommand = class {
|
|
|
73
73
|
return (target) => {
|
|
74
74
|
Reflect.defineMetadata(commandHandlerMetadataKey, commandType, target);
|
|
75
75
|
injectable()(target);
|
|
76
|
-
registry([{
|
|
77
|
-
token: ApplicationTokens.CommandHandler,
|
|
78
|
-
useClass: target
|
|
79
|
-
}])(target);
|
|
80
76
|
};
|
|
81
77
|
}
|
|
82
78
|
};
|
|
83
79
|
|
|
84
80
|
//#endregion
|
|
85
81
|
//#region src/application/commands/CreateCredentialInstanceCommandHandler.ts
|
|
86
|
-
var _ref$
|
|
82
|
+
var _ref$61;
|
|
87
83
|
let CreateCredentialInstanceCommandHandler = class CreateCredentialInstanceCommandHandler$1 extends CommandHandler {
|
|
88
84
|
constructor(credentialInstanceService) {
|
|
89
85
|
super();
|
|
@@ -96,7 +92,7 @@ let CreateCredentialInstanceCommandHandler = class CreateCredentialInstanceComma
|
|
|
96
92
|
CreateCredentialInstanceCommandHandler = __decorate([
|
|
97
93
|
HandlesCommand.forCommand(CreateCredentialInstanceCommand),
|
|
98
94
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
99
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
95
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$61 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$61 : Object])
|
|
100
96
|
], CreateCredentialInstanceCommandHandler);
|
|
101
97
|
|
|
102
98
|
//#endregion
|
|
@@ -110,7 +106,7 @@ var DeleteCredentialInstanceCommand = class extends Command {
|
|
|
110
106
|
|
|
111
107
|
//#endregion
|
|
112
108
|
//#region src/application/commands/DeleteCredentialInstanceCommandHandler.ts
|
|
113
|
-
var _ref$
|
|
109
|
+
var _ref$60;
|
|
114
110
|
let DeleteCredentialInstanceCommandHandler = class DeleteCredentialInstanceCommandHandler$1 extends CommandHandler {
|
|
115
111
|
constructor(credentialInstanceService) {
|
|
116
112
|
super();
|
|
@@ -124,7 +120,7 @@ let DeleteCredentialInstanceCommandHandler = class DeleteCredentialInstanceComma
|
|
|
124
120
|
DeleteCredentialInstanceCommandHandler = __decorate([
|
|
125
121
|
HandlesCommand.forCommand(DeleteCredentialInstanceCommand),
|
|
126
122
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
127
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
123
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$60 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$60 : Object])
|
|
128
124
|
], DeleteCredentialInstanceCommandHandler);
|
|
129
125
|
|
|
130
126
|
//#endregion
|
|
@@ -138,7 +134,7 @@ var TestCredentialInstanceCommand = class extends Command {
|
|
|
138
134
|
|
|
139
135
|
//#endregion
|
|
140
136
|
//#region src/application/commands/TestCredentialInstanceCommandHandler.ts
|
|
141
|
-
var _ref$
|
|
137
|
+
var _ref$59;
|
|
142
138
|
let TestCredentialInstanceCommandHandler = class TestCredentialInstanceCommandHandler$1 extends CommandHandler {
|
|
143
139
|
constructor(credentialTestService) {
|
|
144
140
|
super();
|
|
@@ -151,7 +147,7 @@ let TestCredentialInstanceCommandHandler = class TestCredentialInstanceCommandHa
|
|
|
151
147
|
TestCredentialInstanceCommandHandler = __decorate([
|
|
152
148
|
HandlesCommand.forCommand(TestCredentialInstanceCommand),
|
|
153
149
|
__decorateParam(0, inject(CredentialTestService)),
|
|
154
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
150
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$59 = typeof CredentialTestService !== "undefined" && CredentialTestService) === "function" ? _ref$59 : Object])
|
|
155
151
|
], TestCredentialInstanceCommandHandler);
|
|
156
152
|
|
|
157
153
|
//#endregion
|
|
@@ -166,7 +162,7 @@ var UpdateCredentialInstanceCommand = class extends Command {
|
|
|
166
162
|
|
|
167
163
|
//#endregion
|
|
168
164
|
//#region src/application/commands/UpdateCredentialInstanceCommandHandler.ts
|
|
169
|
-
var _ref$
|
|
165
|
+
var _ref$58;
|
|
170
166
|
let UpdateCredentialInstanceCommandHandler = class UpdateCredentialInstanceCommandHandler$1 extends CommandHandler {
|
|
171
167
|
constructor(credentialInstanceService) {
|
|
172
168
|
super();
|
|
@@ -179,7 +175,7 @@ let UpdateCredentialInstanceCommandHandler = class UpdateCredentialInstanceComma
|
|
|
179
175
|
UpdateCredentialInstanceCommandHandler = __decorate([
|
|
180
176
|
HandlesCommand.forCommand(UpdateCredentialInstanceCommand),
|
|
181
177
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
182
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
178
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$58 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$58 : Object])
|
|
183
179
|
], UpdateCredentialInstanceCommandHandler);
|
|
184
180
|
|
|
185
181
|
//#endregion
|
|
@@ -193,7 +189,7 @@ var UpsertCredentialBindingCommand = class extends Command {
|
|
|
193
189
|
|
|
194
190
|
//#endregion
|
|
195
191
|
//#region src/application/commands/UpsertCredentialBindingCommandHandler.ts
|
|
196
|
-
var _ref$
|
|
192
|
+
var _ref$57;
|
|
197
193
|
let UpsertCredentialBindingCommandHandler = class UpsertCredentialBindingCommandHandler$1 extends CommandHandler {
|
|
198
194
|
constructor(credentialBindingService) {
|
|
199
195
|
super();
|
|
@@ -206,7 +202,7 @@ let UpsertCredentialBindingCommandHandler = class UpsertCredentialBindingCommand
|
|
|
206
202
|
UpsertCredentialBindingCommandHandler = __decorate([
|
|
207
203
|
HandlesCommand.forCommand(UpsertCredentialBindingCommand),
|
|
208
204
|
__decorateParam(0, inject(CredentialBindingService)),
|
|
209
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
205
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$57 = typeof CredentialBindingService !== "undefined" && CredentialBindingService) === "function" ? _ref$57 : Object])
|
|
210
206
|
], UpsertCredentialBindingCommandHandler);
|
|
211
207
|
|
|
212
208
|
//#endregion
|
|
@@ -504,7 +500,7 @@ var UserAccountService = class UserAccountService {
|
|
|
504
500
|
|
|
505
501
|
//#endregion
|
|
506
502
|
//#region src/application/commands/AcceptUserInviteCommandHandler.ts
|
|
507
|
-
var _ref$
|
|
503
|
+
var _ref$56;
|
|
508
504
|
let AcceptUserInviteCommandHandler = class AcceptUserInviteCommandHandler$1 extends CommandHandler {
|
|
509
505
|
constructor(userAccounts) {
|
|
510
506
|
super();
|
|
@@ -517,7 +513,7 @@ let AcceptUserInviteCommandHandler = class AcceptUserInviteCommandHandler$1 exte
|
|
|
517
513
|
AcceptUserInviteCommandHandler = __decorate([
|
|
518
514
|
HandlesCommand.forCommand(AcceptUserInviteCommand),
|
|
519
515
|
__decorateParam(0, inject(UserAccountService)),
|
|
520
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
516
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$56 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$56 : Object])
|
|
521
517
|
], AcceptUserInviteCommandHandler);
|
|
522
518
|
|
|
523
519
|
//#endregion
|
|
@@ -532,7 +528,7 @@ var InviteUserCommand = class extends Command {
|
|
|
532
528
|
|
|
533
529
|
//#endregion
|
|
534
530
|
//#region src/application/commands/InviteUserCommandHandler.ts
|
|
535
|
-
var _ref$
|
|
531
|
+
var _ref$55;
|
|
536
532
|
let InviteUserCommandHandler = class InviteUserCommandHandler$1 extends CommandHandler {
|
|
537
533
|
constructor(userAccounts) {
|
|
538
534
|
super();
|
|
@@ -545,7 +541,7 @@ let InviteUserCommandHandler = class InviteUserCommandHandler$1 extends CommandH
|
|
|
545
541
|
InviteUserCommandHandler = __decorate([
|
|
546
542
|
HandlesCommand.forCommand(InviteUserCommand),
|
|
547
543
|
__decorateParam(0, inject(UserAccountService)),
|
|
548
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
544
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$55 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$55 : Object])
|
|
549
545
|
], InviteUserCommandHandler);
|
|
550
546
|
|
|
551
547
|
//#endregion
|
|
@@ -560,7 +556,7 @@ var RegenerateUserInviteCommand = class extends Command {
|
|
|
560
556
|
|
|
561
557
|
//#endregion
|
|
562
558
|
//#region src/application/commands/RegenerateUserInviteCommandHandler.ts
|
|
563
|
-
var _ref$
|
|
559
|
+
var _ref$54;
|
|
564
560
|
let RegenerateUserInviteCommandHandler = class RegenerateUserInviteCommandHandler$1 extends CommandHandler {
|
|
565
561
|
constructor(userAccounts) {
|
|
566
562
|
super();
|
|
@@ -573,7 +569,7 @@ let RegenerateUserInviteCommandHandler = class RegenerateUserInviteCommandHandle
|
|
|
573
569
|
RegenerateUserInviteCommandHandler = __decorate([
|
|
574
570
|
HandlesCommand.forCommand(RegenerateUserInviteCommand),
|
|
575
571
|
__decorateParam(0, inject(UserAccountService)),
|
|
576
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
572
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$54 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$54 : Object])
|
|
577
573
|
], RegenerateUserInviteCommandHandler);
|
|
578
574
|
|
|
579
575
|
//#endregion
|
|
@@ -588,7 +584,7 @@ var UpdateUserAccountStatusCommand = class extends Command {
|
|
|
588
584
|
|
|
589
585
|
//#endregion
|
|
590
586
|
//#region src/application/commands/UpdateUserAccountStatusCommandHandler.ts
|
|
591
|
-
var _ref$
|
|
587
|
+
var _ref$53;
|
|
592
588
|
let UpdateUserAccountStatusCommandHandler = class UpdateUserAccountStatusCommandHandler$1 extends CommandHandler {
|
|
593
589
|
constructor(userAccounts) {
|
|
594
590
|
super();
|
|
@@ -601,12 +597,12 @@ let UpdateUserAccountStatusCommandHandler = class UpdateUserAccountStatusCommand
|
|
|
601
597
|
UpdateUserAccountStatusCommandHandler = __decorate([
|
|
602
598
|
HandlesCommand.forCommand(UpdateUserAccountStatusCommand),
|
|
603
599
|
__decorateParam(0, inject(UserAccountService)),
|
|
604
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
600
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$53 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$53 : Object])
|
|
605
601
|
], UpdateUserAccountStatusCommandHandler);
|
|
606
602
|
|
|
607
603
|
//#endregion
|
|
608
604
|
//#region src/application/commands/UpsertLocalBootstrapUserCommandHandler.ts
|
|
609
|
-
var _ref$
|
|
605
|
+
var _ref$52;
|
|
610
606
|
let UpsertLocalBootstrapUserCommandHandler = class UpsertLocalBootstrapUserCommandHandler$1 extends CommandHandler {
|
|
611
607
|
constructor(userAccounts) {
|
|
612
608
|
super();
|
|
@@ -619,7 +615,7 @@ let UpsertLocalBootstrapUserCommandHandler = class UpsertLocalBootstrapUserComma
|
|
|
619
615
|
UpsertLocalBootstrapUserCommandHandler = __decorate([
|
|
620
616
|
HandlesCommand.forCommand(UpsertLocalBootstrapUserCommand),
|
|
621
617
|
__decorateParam(0, inject(UserAccountService)),
|
|
622
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
618
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$52 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$52 : Object])
|
|
623
619
|
], UpsertLocalBootstrapUserCommandHandler);
|
|
624
620
|
|
|
625
621
|
//#endregion
|
|
@@ -754,7 +750,7 @@ var HandleWebhookInvocationCommand = class extends Command {
|
|
|
754
750
|
|
|
755
751
|
//#endregion
|
|
756
752
|
//#region src/application/commands/HandleWebhookInvocationCommandHandler.ts
|
|
757
|
-
var _ref$
|
|
753
|
+
var _ref$51;
|
|
758
754
|
let HandleWebhookInvocationCommandHandler = class HandleWebhookInvocationCommandHandler$1 extends CommandHandler {
|
|
759
755
|
constructor(runIntentService) {
|
|
760
756
|
super();
|
|
@@ -783,7 +779,7 @@ let HandleWebhookInvocationCommandHandler = class HandleWebhookInvocationCommand
|
|
|
783
779
|
HandleWebhookInvocationCommandHandler = __decorate([
|
|
784
780
|
HandlesCommand.forCommand(HandleWebhookInvocationCommand),
|
|
785
781
|
__decorateParam(0, inject(RunIntentService)),
|
|
786
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
782
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$51 = typeof RunIntentService !== "undefined" && RunIntentService) === "function" ? _ref$51 : Object])
|
|
787
783
|
], HandleWebhookInvocationCommandHandler);
|
|
788
784
|
|
|
789
785
|
//#endregion
|
|
@@ -874,7 +870,7 @@ var ReplayWorkflowNodeCommand = class extends Command {
|
|
|
874
870
|
|
|
875
871
|
//#endregion
|
|
876
872
|
//#region src/application/commands/ReplayWorkflowNodeCommandHandler.ts
|
|
877
|
-
var _ref$
|
|
873
|
+
var _ref$50, _ref2$11, _ref3$6;
|
|
878
874
|
let ReplayWorkflowNodeCommandHandler = class ReplayWorkflowNodeCommandHandler$1 extends CommandHandler {
|
|
879
875
|
constructor(engine, itemsInputNormalizer, runIntentService, workflowRunRepository) {
|
|
880
876
|
super();
|
|
@@ -975,8 +971,8 @@ ReplayWorkflowNodeCommandHandler = __decorate([
|
|
|
975
971
|
__decorateParam(2, inject(RunIntentService)),
|
|
976
972
|
__decorateParam(3, inject(ApplicationTokens.WorkflowRunRepository)),
|
|
977
973
|
__decorateMetadata("design:paramtypes", [
|
|
978
|
-
typeof (_ref$
|
|
979
|
-
typeof (_ref2$
|
|
974
|
+
typeof (_ref$50 = typeof Engine !== "undefined" && Engine) === "function" ? _ref$50 : Object,
|
|
975
|
+
typeof (_ref2$11 = typeof ItemsInputNormalizer !== "undefined" && ItemsInputNormalizer) === "function" ? _ref2$11 : Object,
|
|
980
976
|
typeof (_ref3$6 = typeof RunIntentService !== "undefined" && RunIntentService) === "function" ? _ref3$6 : Object,
|
|
981
977
|
Object
|
|
982
978
|
])
|
|
@@ -995,7 +991,7 @@ var SetPinnedNodeInputCommand = class extends Command {
|
|
|
995
991
|
|
|
996
992
|
//#endregion
|
|
997
993
|
//#region src/application/commands/SetPinnedNodeInputCommandHandler.ts
|
|
998
|
-
var _ref$
|
|
994
|
+
var _ref$49;
|
|
999
995
|
let SetPinnedNodeInputCommandHandler = class SetPinnedNodeInputCommandHandler$1 extends CommandHandler {
|
|
1000
996
|
constructor(workflowRunRepository, itemsInputNormalizer) {
|
|
1001
997
|
super();
|
|
@@ -1028,7 +1024,7 @@ SetPinnedNodeInputCommandHandler = __decorate([
|
|
|
1028
1024
|
HandlesCommand.forCommand(SetPinnedNodeInputCommand),
|
|
1029
1025
|
__decorateParam(0, inject(ApplicationTokens.WorkflowRunRepository)),
|
|
1030
1026
|
__decorateParam(1, inject(ItemsInputNormalizer)),
|
|
1031
|
-
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$
|
|
1027
|
+
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$49 = typeof ItemsInputNormalizer !== "undefined" && ItemsInputNormalizer) === "function" ? _ref$49 : Object])
|
|
1032
1028
|
], SetPinnedNodeInputCommandHandler);
|
|
1033
1029
|
|
|
1034
1030
|
//#endregion
|
|
@@ -1080,7 +1076,7 @@ WorkflowActivationPreflightRules = __decorate([injectable(), __decorateMetadata(
|
|
|
1080
1076
|
|
|
1081
1077
|
//#endregion
|
|
1082
1078
|
//#region src/domain/workflows/WorkflowActivationPreflight.ts
|
|
1083
|
-
var _ref$
|
|
1079
|
+
var _ref$48, _ref2$10;
|
|
1084
1080
|
let WorkflowActivationPreflight = class WorkflowActivationPreflight$1 {
|
|
1085
1081
|
constructor(workflowRepository, credentialBindingService, rules) {
|
|
1086
1082
|
this.workflowRepository = workflowRepository;
|
|
@@ -1103,8 +1099,8 @@ WorkflowActivationPreflight = __decorate([
|
|
|
1103
1099
|
__decorateParam(2, inject(WorkflowActivationPreflightRules)),
|
|
1104
1100
|
__decorateMetadata("design:paramtypes", [
|
|
1105
1101
|
Object,
|
|
1106
|
-
typeof (_ref$
|
|
1107
|
-
typeof (_ref2$
|
|
1102
|
+
typeof (_ref$48 = typeof CredentialBindingService !== "undefined" && CredentialBindingService) === "function" ? _ref$48 : Object,
|
|
1103
|
+
typeof (_ref2$10 = typeof WorkflowActivationPreflightRules !== "undefined" && WorkflowActivationPreflightRules) === "function" ? _ref2$10 : Object
|
|
1108
1104
|
])
|
|
1109
1105
|
], WorkflowActivationPreflight);
|
|
1110
1106
|
|
|
@@ -1138,7 +1134,7 @@ var SetWorkflowActivationCommand = class extends Command {
|
|
|
1138
1134
|
|
|
1139
1135
|
//#endregion
|
|
1140
1136
|
//#region src/application/commands/SetWorkflowActivationCommandHandler.ts
|
|
1141
|
-
var _ref$
|
|
1137
|
+
var _ref$47, _ref2$9, _ref3$5;
|
|
1142
1138
|
let SetWorkflowActivationCommandHandler = class SetWorkflowActivationCommandHandler$1 extends CommandHandler {
|
|
1143
1139
|
constructor(workflowActivationRepository, workflowActivationPolicy, engine, workflowActivationPreflight) {
|
|
1144
1140
|
super();
|
|
@@ -1164,8 +1160,8 @@ SetWorkflowActivationCommandHandler = __decorate([
|
|
|
1164
1160
|
__decorateParam(3, inject(WorkflowActivationPreflight)),
|
|
1165
1161
|
__decorateMetadata("design:paramtypes", [
|
|
1166
1162
|
Object,
|
|
1167
|
-
typeof (_ref$
|
|
1168
|
-
typeof (_ref2$
|
|
1163
|
+
typeof (_ref$47 = typeof RuntimeWorkflowActivationPolicy !== "undefined" && RuntimeWorkflowActivationPolicy) === "function" ? _ref$47 : Object,
|
|
1164
|
+
typeof (_ref2$9 = typeof Engine !== "undefined" && Engine) === "function" ? _ref2$9 : Object,
|
|
1169
1165
|
typeof (_ref3$5 = typeof WorkflowActivationPreflight !== "undefined" && WorkflowActivationPreflight) === "function" ? _ref3$5 : Object
|
|
1170
1166
|
])
|
|
1171
1167
|
], SetWorkflowActivationCommandHandler);
|
|
@@ -1181,7 +1177,7 @@ var StartWorkflowRunCommand = class extends Command {
|
|
|
1181
1177
|
|
|
1182
1178
|
//#endregion
|
|
1183
1179
|
//#region src/application/commands/StartWorkflowRunCommandHandler.ts
|
|
1184
|
-
var _ref$
|
|
1180
|
+
var _ref$46, _ref2$8, _ref3$4;
|
|
1185
1181
|
let StartWorkflowRunCommandHandler = class StartWorkflowRunCommandHandler$1 extends CommandHandler {
|
|
1186
1182
|
routesLog;
|
|
1187
1183
|
constructor(engine, itemsInputNormalizer, runIntentService, workflowDefinitionRepository, workflowRunRepository, workflowDebuggerOverlayRepository, loggerFactory) {
|
|
@@ -1346,8 +1342,8 @@ StartWorkflowRunCommandHandler = __decorate([
|
|
|
1346
1342
|
__decorateParam(5, inject(ApplicationTokens.WorkflowDebuggerOverlayRepository)),
|
|
1347
1343
|
__decorateParam(6, inject(ApplicationTokens.LoggerFactory)),
|
|
1348
1344
|
__decorateMetadata("design:paramtypes", [
|
|
1349
|
-
typeof (_ref$
|
|
1350
|
-
typeof (_ref2$
|
|
1345
|
+
typeof (_ref$46 = typeof Engine !== "undefined" && Engine) === "function" ? _ref$46 : Object,
|
|
1346
|
+
typeof (_ref2$8 = typeof ItemsInputNormalizer !== "undefined" && ItemsInputNormalizer) === "function" ? _ref2$8 : Object,
|
|
1351
1347
|
typeof (_ref3$4 = typeof RunIntentService !== "undefined" && RunIntentService) === "function" ? _ref3$4 : Object,
|
|
1352
1348
|
Object,
|
|
1353
1349
|
Object,
|
|
@@ -1452,7 +1448,7 @@ var UploadOverlayPinnedBinaryCommand = class extends Command {
|
|
|
1452
1448
|
|
|
1453
1449
|
//#endregion
|
|
1454
1450
|
//#region src/application/commands/UploadOverlayPinnedBinaryCommandHandler.ts
|
|
1455
|
-
var _ref$
|
|
1451
|
+
var _ref$45;
|
|
1456
1452
|
let UploadOverlayPinnedBinaryCommandHandler = class UploadOverlayPinnedBinaryCommandHandler$1 extends CommandHandler {
|
|
1457
1453
|
constructor(overlayPinnedBinaryUpload) {
|
|
1458
1454
|
super();
|
|
@@ -1473,7 +1469,7 @@ let UploadOverlayPinnedBinaryCommandHandler = class UploadOverlayPinnedBinaryCom
|
|
|
1473
1469
|
UploadOverlayPinnedBinaryCommandHandler = __decorate([
|
|
1474
1470
|
HandlesCommand.forCommand(UploadOverlayPinnedBinaryCommand),
|
|
1475
1471
|
__decorateParam(0, inject(OverlayPinnedBinaryUploadService)),
|
|
1476
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1472
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$45 = typeof OverlayPinnedBinaryUploadService !== "undefined" && OverlayPinnedBinaryUploadService) === "function" ? _ref$45 : Object])
|
|
1477
1473
|
], UploadOverlayPinnedBinaryCommandHandler);
|
|
1478
1474
|
|
|
1479
1475
|
//#endregion
|
|
@@ -1497,17 +1493,13 @@ var HandlesQuery = class {
|
|
|
1497
1493
|
return (target) => {
|
|
1498
1494
|
Reflect.defineMetadata(queryHandlerMetadataKey, queryType, target);
|
|
1499
1495
|
injectable()(target);
|
|
1500
|
-
registry([{
|
|
1501
|
-
token: ApplicationTokens.QueryHandler,
|
|
1502
|
-
useClass: target
|
|
1503
|
-
}])(target);
|
|
1504
1496
|
};
|
|
1505
1497
|
}
|
|
1506
1498
|
};
|
|
1507
1499
|
|
|
1508
1500
|
//#endregion
|
|
1509
1501
|
//#region src/application/queries/GetCredentialInstanceQueryHandler.ts
|
|
1510
|
-
var _ref$
|
|
1502
|
+
var _ref$44;
|
|
1511
1503
|
let GetCredentialInstanceQueryHandler = class GetCredentialInstanceQueryHandler$1 extends QueryHandler {
|
|
1512
1504
|
constructor(credentialInstanceService) {
|
|
1513
1505
|
super();
|
|
@@ -1520,7 +1512,7 @@ let GetCredentialInstanceQueryHandler = class GetCredentialInstanceQueryHandler$
|
|
|
1520
1512
|
GetCredentialInstanceQueryHandler = __decorate([
|
|
1521
1513
|
HandlesQuery.for(GetCredentialInstanceQuery),
|
|
1522
1514
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
1523
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1515
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$44 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$44 : Object])
|
|
1524
1516
|
], GetCredentialInstanceQueryHandler);
|
|
1525
1517
|
|
|
1526
1518
|
//#endregion
|
|
@@ -1534,7 +1526,7 @@ var GetCredentialInstanceWithSecretsQuery = class extends Query {
|
|
|
1534
1526
|
|
|
1535
1527
|
//#endregion
|
|
1536
1528
|
//#region src/application/queries/GetCredentialInstanceWithSecretsQueryHandler.ts
|
|
1537
|
-
var _ref$
|
|
1529
|
+
var _ref$43;
|
|
1538
1530
|
let GetCredentialInstanceWithSecretsQueryHandler = class GetCredentialInstanceWithSecretsQueryHandler$1 extends QueryHandler {
|
|
1539
1531
|
constructor(credentialInstanceService) {
|
|
1540
1532
|
super();
|
|
@@ -1547,7 +1539,7 @@ let GetCredentialInstanceWithSecretsQueryHandler = class GetCredentialInstanceWi
|
|
|
1547
1539
|
GetCredentialInstanceWithSecretsQueryHandler = __decorate([
|
|
1548
1540
|
HandlesQuery.for(GetCredentialInstanceWithSecretsQuery),
|
|
1549
1541
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
1550
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1542
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$43 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$43 : Object])
|
|
1551
1543
|
], GetCredentialInstanceWithSecretsQueryHandler);
|
|
1552
1544
|
|
|
1553
1545
|
//#endregion
|
|
@@ -1561,7 +1553,7 @@ var GetWorkflowCredentialHealthQuery = class extends Query {
|
|
|
1561
1553
|
|
|
1562
1554
|
//#endregion
|
|
1563
1555
|
//#region src/application/queries/GetWorkflowCredentialHealthQueryHandler.ts
|
|
1564
|
-
var _ref$
|
|
1556
|
+
var _ref$42;
|
|
1565
1557
|
let GetWorkflowCredentialHealthQueryHandler = class GetWorkflowCredentialHealthQueryHandler$1 extends QueryHandler {
|
|
1566
1558
|
constructor(credentialBindingService) {
|
|
1567
1559
|
super();
|
|
@@ -1574,7 +1566,7 @@ let GetWorkflowCredentialHealthQueryHandler = class GetWorkflowCredentialHealthQ
|
|
|
1574
1566
|
GetWorkflowCredentialHealthQueryHandler = __decorate([
|
|
1575
1567
|
HandlesQuery.for(GetWorkflowCredentialHealthQuery),
|
|
1576
1568
|
__decorateParam(0, inject(CredentialBindingService)),
|
|
1577
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1569
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$42 = typeof CredentialBindingService !== "undefined" && CredentialBindingService) === "function" ? _ref$42 : Object])
|
|
1578
1570
|
], GetWorkflowCredentialHealthQueryHandler);
|
|
1579
1571
|
|
|
1580
1572
|
//#endregion
|
|
@@ -1583,7 +1575,7 @@ var ListCredentialInstancesQuery = class extends Query {};
|
|
|
1583
1575
|
|
|
1584
1576
|
//#endregion
|
|
1585
1577
|
//#region src/application/queries/ListCredentialInstancesQueryHandler.ts
|
|
1586
|
-
var _ref$
|
|
1578
|
+
var _ref$41;
|
|
1587
1579
|
let ListCredentialInstancesQueryHandler = class ListCredentialInstancesQueryHandler$1 extends QueryHandler {
|
|
1588
1580
|
constructor(credentialInstanceService) {
|
|
1589
1581
|
super();
|
|
@@ -1596,7 +1588,7 @@ let ListCredentialInstancesQueryHandler = class ListCredentialInstancesQueryHand
|
|
|
1596
1588
|
ListCredentialInstancesQueryHandler = __decorate([
|
|
1597
1589
|
HandlesQuery.for(ListCredentialInstancesQuery),
|
|
1598
1590
|
__decorateParam(0, inject(CredentialInstanceService)),
|
|
1599
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1591
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$41 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$41 : Object])
|
|
1600
1592
|
], ListCredentialInstancesQueryHandler);
|
|
1601
1593
|
|
|
1602
1594
|
//#endregion
|
|
@@ -1605,7 +1597,7 @@ var ListCredentialTypesQuery = class extends Query {};
|
|
|
1605
1597
|
|
|
1606
1598
|
//#endregion
|
|
1607
1599
|
//#region src/application/queries/ListCredentialTypesQueryHandler.ts
|
|
1608
|
-
var _ref$
|
|
1600
|
+
var _ref$40;
|
|
1609
1601
|
let ListCredentialTypesQueryHandler = class ListCredentialTypesQueryHandler$1 extends QueryHandler {
|
|
1610
1602
|
constructor(credentialTypeRegistry) {
|
|
1611
1603
|
super();
|
|
@@ -1618,7 +1610,7 @@ let ListCredentialTypesQueryHandler = class ListCredentialTypesQueryHandler$1 ex
|
|
|
1618
1610
|
ListCredentialTypesQueryHandler = __decorate([
|
|
1619
1611
|
HandlesQuery.for(ListCredentialTypesQuery),
|
|
1620
1612
|
__decorateParam(0, inject(CredentialTypeRegistryImpl)),
|
|
1621
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1613
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$40 = typeof CredentialTypeRegistryImpl !== "undefined" && CredentialTypeRegistryImpl) === "function" ? _ref$40 : Object])
|
|
1622
1614
|
], ListCredentialTypesQueryHandler);
|
|
1623
1615
|
|
|
1624
1616
|
//#endregion
|
|
@@ -1627,7 +1619,7 @@ var GetCredentialFieldEnvStatusQuery = class extends Query {};
|
|
|
1627
1619
|
|
|
1628
1620
|
//#endregion
|
|
1629
1621
|
//#region src/application/queries/GetCredentialFieldEnvStatusQueryHandler.ts
|
|
1630
|
-
var _ref$
|
|
1622
|
+
var _ref$39;
|
|
1631
1623
|
let GetCredentialFieldEnvStatusQueryHandler = class GetCredentialFieldEnvStatusQueryHandler$1 extends QueryHandler {
|
|
1632
1624
|
constructor(credentialTypeRegistry, appConfig) {
|
|
1633
1625
|
super();
|
|
@@ -1656,12 +1648,12 @@ GetCredentialFieldEnvStatusQueryHandler = __decorate([
|
|
|
1656
1648
|
HandlesQuery.for(GetCredentialFieldEnvStatusQuery),
|
|
1657
1649
|
__decorateParam(0, inject(CredentialTypeRegistryImpl)),
|
|
1658
1650
|
__decorateParam(1, inject(ApplicationTokens.AppConfig)),
|
|
1659
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1651
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$39 = typeof CredentialTypeRegistryImpl !== "undefined" && CredentialTypeRegistryImpl) === "function" ? _ref$39 : Object, Object])
|
|
1660
1652
|
], GetCredentialFieldEnvStatusQueryHandler);
|
|
1661
1653
|
|
|
1662
1654
|
//#endregion
|
|
1663
1655
|
//#region src/application/queries/ListUserAccountsQueryHandler.ts
|
|
1664
|
-
var _ref$
|
|
1656
|
+
var _ref$38;
|
|
1665
1657
|
let ListUserAccountsQueryHandler = class ListUserAccountsQueryHandler$1 extends QueryHandler {
|
|
1666
1658
|
constructor(userAccounts) {
|
|
1667
1659
|
super();
|
|
@@ -1674,7 +1666,7 @@ let ListUserAccountsQueryHandler = class ListUserAccountsQueryHandler$1 extends
|
|
|
1674
1666
|
ListUserAccountsQueryHandler = __decorate([
|
|
1675
1667
|
HandlesQuery.for(ListUserAccountsQuery),
|
|
1676
1668
|
__decorateParam(0, inject(UserAccountService)),
|
|
1677
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1669
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$38 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$38 : Object])
|
|
1678
1670
|
], ListUserAccountsQueryHandler);
|
|
1679
1671
|
|
|
1680
1672
|
//#endregion
|
|
@@ -1688,7 +1680,7 @@ var VerifyUserInviteQuery = class extends Query {
|
|
|
1688
1680
|
|
|
1689
1681
|
//#endregion
|
|
1690
1682
|
//#region src/application/queries/VerifyUserInviteQueryHandler.ts
|
|
1691
|
-
var _ref$
|
|
1683
|
+
var _ref$37;
|
|
1692
1684
|
let VerifyUserInviteQueryHandler = class VerifyUserInviteQueryHandler$1 extends QueryHandler {
|
|
1693
1685
|
constructor(userAccounts) {
|
|
1694
1686
|
super();
|
|
@@ -1701,7 +1693,7 @@ let VerifyUserInviteQueryHandler = class VerifyUserInviteQueryHandler$1 extends
|
|
|
1701
1693
|
VerifyUserInviteQueryHandler = __decorate([
|
|
1702
1694
|
HandlesQuery.for(VerifyUserInviteQuery),
|
|
1703
1695
|
__decorateParam(0, inject(UserAccountService)),
|
|
1704
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1696
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$37 = typeof UserAccountService !== "undefined" && UserAccountService) === "function" ? _ref$37 : Object])
|
|
1705
1697
|
], VerifyUserInviteQueryHandler);
|
|
1706
1698
|
|
|
1707
1699
|
//#endregion
|
|
@@ -1794,7 +1786,7 @@ var GetRunBinaryAttachmentQuery = class extends Query {
|
|
|
1794
1786
|
|
|
1795
1787
|
//#endregion
|
|
1796
1788
|
//#region src/application/queries/GetRunBinaryAttachmentQueryHandler.ts
|
|
1797
|
-
var _ref$
|
|
1789
|
+
var _ref$36;
|
|
1798
1790
|
let GetRunBinaryAttachmentQueryHandler = class GetRunBinaryAttachmentQueryHandler$1 extends QueryHandler {
|
|
1799
1791
|
constructor(lookupService) {
|
|
1800
1792
|
super();
|
|
@@ -1807,7 +1799,7 @@ let GetRunBinaryAttachmentQueryHandler = class GetRunBinaryAttachmentQueryHandle
|
|
|
1807
1799
|
GetRunBinaryAttachmentQueryHandler = __decorate([
|
|
1808
1800
|
HandlesQuery.for(GetRunBinaryAttachmentQuery),
|
|
1809
1801
|
__decorateParam(0, inject(RunBinaryAttachmentLookupService)),
|
|
1810
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1802
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$36 = typeof RunBinaryAttachmentLookupService !== "undefined" && RunBinaryAttachmentLookupService) === "function" ? _ref$36 : Object])
|
|
1811
1803
|
], GetRunBinaryAttachmentQueryHandler);
|
|
1812
1804
|
|
|
1813
1805
|
//#endregion
|
|
@@ -1900,7 +1892,7 @@ var GetWorkflowOverlayBinaryAttachmentQuery = class extends Query {
|
|
|
1900
1892
|
|
|
1901
1893
|
//#endregion
|
|
1902
1894
|
//#region src/application/queries/GetWorkflowOverlayBinaryAttachmentQueryHandler.ts
|
|
1903
|
-
var _ref$
|
|
1895
|
+
var _ref$35;
|
|
1904
1896
|
let GetWorkflowOverlayBinaryAttachmentQueryHandler = class GetWorkflowOverlayBinaryAttachmentQueryHandler$1 extends QueryHandler {
|
|
1905
1897
|
constructor(lookupService) {
|
|
1906
1898
|
super();
|
|
@@ -1913,7 +1905,7 @@ let GetWorkflowOverlayBinaryAttachmentQueryHandler = class GetWorkflowOverlayBin
|
|
|
1913
1905
|
GetWorkflowOverlayBinaryAttachmentQueryHandler = __decorate([
|
|
1914
1906
|
HandlesQuery.for(GetWorkflowOverlayBinaryAttachmentQuery),
|
|
1915
1907
|
__decorateParam(0, inject(RunBinaryAttachmentLookupService)),
|
|
1916
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
1908
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$35 = typeof RunBinaryAttachmentLookupService !== "undefined" && RunBinaryAttachmentLookupService) === "function" ? _ref$35 : Object])
|
|
1917
1909
|
], GetWorkflowOverlayBinaryAttachmentQueryHandler);
|
|
1918
1910
|
|
|
1919
1911
|
//#endregion
|
|
@@ -1970,24 +1962,28 @@ ListWorkflowRunsQueryHandler = __decorate([
|
|
|
1970
1962
|
//#region src/infrastructure/config/CodemationPluginRegistrar.ts
|
|
1971
1963
|
var CodemationPluginRegistrar = class {
|
|
1972
1964
|
async apply(args) {
|
|
1973
|
-
for (const plugin of args.plugins)
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
args.
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1965
|
+
for (const plugin of args.plugins) {
|
|
1966
|
+
for (const credentialType of plugin.credentialTypes ?? []) args.registerCredentialType(credentialType);
|
|
1967
|
+
if (!plugin.register) continue;
|
|
1968
|
+
await plugin.register({
|
|
1969
|
+
container: args.container,
|
|
1970
|
+
appConfig: args.appConfig,
|
|
1971
|
+
loggerFactory: args.loggerFactory,
|
|
1972
|
+
registerCredentialType: (type) => args.registerCredentialType(type),
|
|
1973
|
+
registerNode: (token, implementation) => {
|
|
1974
|
+
args.container.register(token, { useClass: implementation ?? token });
|
|
1975
|
+
},
|
|
1976
|
+
registerValue: (token, value) => {
|
|
1977
|
+
args.container.registerInstance(token, value);
|
|
1978
|
+
},
|
|
1979
|
+
registerClass: (token, implementation) => {
|
|
1980
|
+
args.container.register(token, { useClass: implementation });
|
|
1981
|
+
},
|
|
1982
|
+
registerFactory: (token, factory) => {
|
|
1983
|
+
args.container.register(token, { useFactory: (dependencyContainer) => factory(dependencyContainer) });
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1991
1987
|
}
|
|
1992
1988
|
};
|
|
1993
1989
|
|
|
@@ -2070,7 +2066,7 @@ OAuth2ProviderRegistry = _OAuth2ProviderRegistry = __decorate([injectable()], OA
|
|
|
2070
2066
|
|
|
2071
2067
|
//#endregion
|
|
2072
2068
|
//#region src/domain/credentials/OAuth2ConnectServiceFactory.ts
|
|
2073
|
-
var _ref$
|
|
2069
|
+
var _ref$34, _ref2$7, _ref3$3, _ref4$2, _ref5$1, _ref6, _ref7, _OAuth2ConnectService;
|
|
2074
2070
|
let OAuth2ConnectService = class OAuth2ConnectService$1 {
|
|
2075
2071
|
static {
|
|
2076
2072
|
_OAuth2ConnectService = this;
|
|
@@ -2318,8 +2314,8 @@ OAuth2ConnectService = _OAuth2ConnectService = __decorate([
|
|
|
2318
2314
|
__decorateParam(8, inject(ApplicationTokens.AppConfig)),
|
|
2319
2315
|
__decorateMetadata("design:paramtypes", [
|
|
2320
2316
|
Object,
|
|
2321
|
-
typeof (_ref$
|
|
2322
|
-
typeof (_ref2$
|
|
2317
|
+
typeof (_ref$34 = typeof CredentialInstanceService !== "undefined" && CredentialInstanceService) === "function" ? _ref$34 : Object,
|
|
2318
|
+
typeof (_ref2$7 = typeof CredentialTypeRegistryImpl !== "undefined" && CredentialTypeRegistryImpl) === "function" ? _ref2$7 : Object,
|
|
2323
2319
|
typeof (_ref3$3 = typeof CredentialRuntimeMaterialService !== "undefined" && CredentialRuntimeMaterialService) === "function" ? _ref3$3 : Object,
|
|
2324
2320
|
typeof (_ref4$2 = typeof CredentialFieldEnvOverlayService !== "undefined" && CredentialFieldEnvOverlayService) === "function" ? _ref4$2 : Object,
|
|
2325
2321
|
typeof (_ref5$1 = typeof CredentialMaterialResolver !== "undefined" && CredentialMaterialResolver) === "function" ? _ref5$1 : Object,
|
|
@@ -2344,7 +2340,7 @@ BootRuntimeSnapshotHolder = __decorate([injectable()], BootRuntimeSnapshotHolder
|
|
|
2344
2340
|
|
|
2345
2341
|
//#endregion
|
|
2346
2342
|
//#region src/application/dev/DevBootstrapSummaryAssembler.ts
|
|
2347
|
-
var _ref$
|
|
2343
|
+
var _ref$33, _ref2$6, _ref3$2;
|
|
2348
2344
|
let DevBootstrapSummaryAssembler = class DevBootstrapSummaryAssembler$1 {
|
|
2349
2345
|
constructor(bootRuntimeSnapshot, logLevelPolicyFactory$1, workflowActivationPolicy, workflowRepository) {
|
|
2350
2346
|
this.bootRuntimeSnapshot = bootRuntimeSnapshot;
|
|
@@ -2369,7 +2365,8 @@ let DevBootstrapSummaryAssembler = class DevBootstrapSummaryAssembler$1 {
|
|
|
2369
2365
|
schedulerLabel: this.formatScheduler(summary),
|
|
2370
2366
|
eventBusLabel: this.formatEventBus(summary),
|
|
2371
2367
|
redisUrlRedacted: this.formatRedis(summary),
|
|
2372
|
-
activeWorkflows: active
|
|
2368
|
+
activeWorkflows: active,
|
|
2369
|
+
plugins: [...summary.plugins].sort((left, right) => left.packageName.localeCompare(right.packageName))
|
|
2373
2370
|
};
|
|
2374
2371
|
}
|
|
2375
2372
|
formatDatabase(summary) {
|
|
@@ -2407,8 +2404,8 @@ DevBootstrapSummaryAssembler = __decorate([
|
|
|
2407
2404
|
__decorateParam(2, inject(RuntimeWorkflowActivationPolicy)),
|
|
2408
2405
|
__decorateParam(3, inject(CoreTokens.WorkflowRepository)),
|
|
2409
2406
|
__decorateMetadata("design:paramtypes", [
|
|
2410
|
-
typeof (_ref$
|
|
2411
|
-
typeof (_ref2$
|
|
2407
|
+
typeof (_ref$33 = typeof BootRuntimeSnapshotHolder !== "undefined" && BootRuntimeSnapshotHolder) === "function" ? _ref$33 : Object,
|
|
2408
|
+
typeof (_ref2$6 = typeof LogLevelPolicyFactory !== "undefined" && LogLevelPolicyFactory) === "function" ? _ref2$6 : Object,
|
|
2412
2409
|
typeof (_ref3$2 = typeof RuntimeWorkflowActivationPolicy !== "undefined" && RuntimeWorkflowActivationPolicy) === "function" ? _ref3$2 : Object,
|
|
2413
2410
|
Object
|
|
2414
2411
|
])
|
|
@@ -2449,7 +2446,7 @@ var WorkflowPolicyUiPresentationFactory = class {
|
|
|
2449
2446
|
|
|
2450
2447
|
//#endregion
|
|
2451
2448
|
//#region src/application/mapping/WorkflowDefinitionMapper.ts
|
|
2452
|
-
var _ref$
|
|
2449
|
+
var _ref$32;
|
|
2453
2450
|
let WorkflowDefinitionMapper = class WorkflowDefinitionMapper$1 {
|
|
2454
2451
|
constructor(policyUi, workflowActivationPolicy) {
|
|
2455
2452
|
this.policyUi = policyUi;
|
|
@@ -2601,7 +2598,7 @@ WorkflowDefinitionMapper = __decorate([
|
|
|
2601
2598
|
injectable(),
|
|
2602
2599
|
__decorateParam(0, inject(WorkflowPolicyUiPresentationFactory)),
|
|
2603
2600
|
__decorateParam(1, inject(CoreTokens.WorkflowActivationPolicy)),
|
|
2604
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
2601
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$32 = typeof WorkflowPolicyUiPresentationFactory !== "undefined" && WorkflowPolicyUiPresentationFactory) === "function" ? _ref$32 : Object, Object])
|
|
2605
2602
|
], WorkflowDefinitionMapper);
|
|
2606
2603
|
|
|
2607
2604
|
//#endregion
|
|
@@ -2615,6 +2612,7 @@ var ApiPaths = class {
|
|
|
2615
2612
|
static webhooksBasePath = `${this.apiBasePath}/webhooks`;
|
|
2616
2613
|
static usersBasePath = `${this.apiBasePath}/users`;
|
|
2617
2614
|
static whitelabelBasePath = `${this.apiBasePath}/whitelabel`;
|
|
2615
|
+
static bootstrapBasePath = `${this.apiBasePath}/bootstrap`;
|
|
2618
2616
|
static workflows() {
|
|
2619
2617
|
return this.workflowsBasePath;
|
|
2620
2618
|
}
|
|
@@ -2727,6 +2725,12 @@ var ApiPaths = class {
|
|
|
2727
2725
|
static whitelabelLogo() {
|
|
2728
2726
|
return `${this.whitelabelBasePath}/logo`;
|
|
2729
2727
|
}
|
|
2728
|
+
static frontendBootstrap() {
|
|
2729
|
+
return `${this.bootstrapBasePath}/frontend`;
|
|
2730
|
+
}
|
|
2731
|
+
static internalAuthBootstrap() {
|
|
2732
|
+
return `${this.bootstrapBasePath}/auth/internal`;
|
|
2733
|
+
}
|
|
2730
2734
|
};
|
|
2731
2735
|
|
|
2732
2736
|
//#endregion
|
|
@@ -2928,7 +2932,7 @@ CodemationFrontendAuthSnapshotFactory = __decorate([injectable()], CodemationFro
|
|
|
2928
2932
|
|
|
2929
2933
|
//#endregion
|
|
2930
2934
|
//#region src/presentation/frontend/FrontendAppConfigFactory.ts
|
|
2931
|
-
var _ref$
|
|
2935
|
+
var _ref$31;
|
|
2932
2936
|
let FrontendAppConfigFactory = class FrontendAppConfigFactory$1 {
|
|
2933
2937
|
constructor(appConfig, authSnapshotFactory) {
|
|
2934
2938
|
this.appConfig = appConfig;
|
|
@@ -2948,12 +2952,61 @@ FrontendAppConfigFactory = __decorate([
|
|
|
2948
2952
|
injectable(),
|
|
2949
2953
|
__decorateParam(0, inject(ApplicationTokens.AppConfig)),
|
|
2950
2954
|
__decorateParam(1, inject(CodemationFrontendAuthSnapshotFactory)),
|
|
2951
|
-
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$
|
|
2955
|
+
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$31 = typeof CodemationFrontendAuthSnapshotFactory !== "undefined" && CodemationFrontendAuthSnapshotFactory) === "function" ? _ref$31 : Object])
|
|
2952
2956
|
], FrontendAppConfigFactory);
|
|
2953
2957
|
|
|
2958
|
+
//#endregion
|
|
2959
|
+
//#region src/presentation/frontend/InternalAuthBootstrapFactory.ts
|
|
2960
|
+
var _ref$30;
|
|
2961
|
+
let InternalAuthBootstrapFactory = class InternalAuthBootstrapFactory$1 {
|
|
2962
|
+
constructor(appConfig, authSnapshotFactory) {
|
|
2963
|
+
this.appConfig = appConfig;
|
|
2964
|
+
this.authSnapshotFactory = authSnapshotFactory;
|
|
2965
|
+
}
|
|
2966
|
+
create() {
|
|
2967
|
+
const authSnapshot = this.authSnapshotFactory.createFromAppConfig(this.appConfig);
|
|
2968
|
+
return {
|
|
2969
|
+
authConfig: this.appConfig.auth,
|
|
2970
|
+
credentialsEnabled: authSnapshot.credentialsEnabled,
|
|
2971
|
+
oauthProviders: authSnapshot.oauthProviders,
|
|
2972
|
+
uiAuthEnabled: authSnapshot.uiAuthEnabled
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
};
|
|
2976
|
+
InternalAuthBootstrapFactory = __decorate([
|
|
2977
|
+
injectable(),
|
|
2978
|
+
__decorateParam(0, inject(ApplicationTokens.AppConfig)),
|
|
2979
|
+
__decorateParam(1, inject(CodemationFrontendAuthSnapshotFactory)),
|
|
2980
|
+
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$30 = typeof CodemationFrontendAuthSnapshotFactory !== "undefined" && CodemationFrontendAuthSnapshotFactory) === "function" ? _ref$30 : Object])
|
|
2981
|
+
], InternalAuthBootstrapFactory);
|
|
2982
|
+
|
|
2983
|
+
//#endregion
|
|
2984
|
+
//#region src/presentation/frontend/PublicFrontendBootstrapFactory.ts
|
|
2985
|
+
var _ref$29;
|
|
2986
|
+
let PublicFrontendBootstrapFactory = class PublicFrontendBootstrapFactory$1 {
|
|
2987
|
+
constructor(frontendAppConfigFactory) {
|
|
2988
|
+
this.frontendAppConfigFactory = frontendAppConfigFactory;
|
|
2989
|
+
}
|
|
2990
|
+
create() {
|
|
2991
|
+
const frontendAppConfig = this.frontendAppConfigFactory.create();
|
|
2992
|
+
return {
|
|
2993
|
+
credentialsEnabled: frontendAppConfig.auth.credentialsEnabled,
|
|
2994
|
+
logoUrl: frontendAppConfig.logoUrl,
|
|
2995
|
+
oauthProviders: frontendAppConfig.auth.oauthProviders,
|
|
2996
|
+
productName: frontendAppConfig.productName,
|
|
2997
|
+
uiAuthEnabled: frontendAppConfig.auth.uiAuthEnabled
|
|
2998
|
+
};
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
3001
|
+
PublicFrontendBootstrapFactory = __decorate([
|
|
3002
|
+
injectable(),
|
|
3003
|
+
__decorateParam(0, inject(FrontendAppConfigFactory)),
|
|
3004
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$29 = typeof FrontendAppConfigFactory !== "undefined" && FrontendAppConfigFactory) === "function" ? _ref$29 : Object])
|
|
3005
|
+
], PublicFrontendBootstrapFactory);
|
|
3006
|
+
|
|
2954
3007
|
//#endregion
|
|
2955
3008
|
//#region src/presentation/http/routeHandlers/DevBootstrapSummaryHttpRouteHandler.ts
|
|
2956
|
-
var _ref$
|
|
3009
|
+
var _ref$28;
|
|
2957
3010
|
let DevBootstrapSummaryHttpRouteHandler = class DevBootstrapSummaryHttpRouteHandler$1 {
|
|
2958
3011
|
constructor(assembler) {
|
|
2959
3012
|
this.assembler = assembler;
|
|
@@ -2973,9 +3026,49 @@ let DevBootstrapSummaryHttpRouteHandler = class DevBootstrapSummaryHttpRouteHand
|
|
|
2973
3026
|
DevBootstrapSummaryHttpRouteHandler = __decorate([
|
|
2974
3027
|
injectable(),
|
|
2975
3028
|
__decorateParam(0, inject(DevBootstrapSummaryAssembler)),
|
|
2976
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
3029
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$28 = typeof DevBootstrapSummaryAssembler !== "undefined" && DevBootstrapSummaryAssembler) === "function" ? _ref$28 : Object])
|
|
2977
3030
|
], DevBootstrapSummaryHttpRouteHandler);
|
|
2978
3031
|
|
|
3032
|
+
//#endregion
|
|
3033
|
+
//#region src/presentation/http/routeHandlers/InternalAuthBootstrapHttpRouteHandler.ts
|
|
3034
|
+
var _ref$27;
|
|
3035
|
+
let InternalAuthBootstrapHttpRouteHandler = class InternalAuthBootstrapHttpRouteHandler$1 {
|
|
3036
|
+
constructor(bootstrapFactory) {
|
|
3037
|
+
this.bootstrapFactory = bootstrapFactory;
|
|
3038
|
+
}
|
|
3039
|
+
getBootstrap() {
|
|
3040
|
+
return new Response(JSON.stringify(this.bootstrapFactory.create()), {
|
|
3041
|
+
status: 200,
|
|
3042
|
+
headers: { "content-type": "application/json" }
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
};
|
|
3046
|
+
InternalAuthBootstrapHttpRouteHandler = __decorate([
|
|
3047
|
+
injectable(),
|
|
3048
|
+
__decorateParam(0, inject(InternalAuthBootstrapFactory)),
|
|
3049
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$27 = typeof InternalAuthBootstrapFactory !== "undefined" && InternalAuthBootstrapFactory) === "function" ? _ref$27 : Object])
|
|
3050
|
+
], InternalAuthBootstrapHttpRouteHandler);
|
|
3051
|
+
|
|
3052
|
+
//#endregion
|
|
3053
|
+
//#region src/presentation/http/routeHandlers/PublicFrontendBootstrapHttpRouteHandler.ts
|
|
3054
|
+
var _ref$26;
|
|
3055
|
+
let PublicFrontendBootstrapHttpRouteHandler = class PublicFrontendBootstrapHttpRouteHandler$1 {
|
|
3056
|
+
constructor(bootstrapFactory) {
|
|
3057
|
+
this.bootstrapFactory = bootstrapFactory;
|
|
3058
|
+
}
|
|
3059
|
+
getBootstrap() {
|
|
3060
|
+
return new Response(JSON.stringify(this.bootstrapFactory.create()), {
|
|
3061
|
+
status: 200,
|
|
3062
|
+
headers: { "content-type": "application/json" }
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
};
|
|
3066
|
+
PublicFrontendBootstrapHttpRouteHandler = __decorate([
|
|
3067
|
+
injectable(),
|
|
3068
|
+
__decorateParam(0, inject(PublicFrontendBootstrapFactory)),
|
|
3069
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$26 = typeof PublicFrontendBootstrapFactory !== "undefined" && PublicFrontendBootstrapFactory) === "function" ? _ref$26 : Object])
|
|
3070
|
+
], PublicFrontendBootstrapHttpRouteHandler);
|
|
3071
|
+
|
|
2979
3072
|
//#endregion
|
|
2980
3073
|
//#region src/presentation/http/routeHandlers/WhitelabelLogoHttpRouteHandler.ts
|
|
2981
3074
|
let WhitelabelLogoHttpRouteHandler = class WhitelabelLogoHttpRouteHandler$1 {
|
|
@@ -3161,6 +3254,7 @@ var HonoHttpAnonymousRoutePolicy = class {
|
|
|
3161
3254
|
const pathname = new URL(request.url).pathname;
|
|
3162
3255
|
if (pathname === ApiPaths.webhooks() || pathname.startsWith(this.webhookPrefix)) return true;
|
|
3163
3256
|
if (pathname === "/api/dev/runtime" || pathname === "/api/dev/bootstrap-summary") return true;
|
|
3257
|
+
if (pathname === ApiPaths.frontendBootstrap() || pathname === ApiPaths.internalAuthBootstrap()) return true;
|
|
3164
3258
|
if (pathname === ApiPaths.userInviteVerify() || pathname === ApiPaths.userInviteAccept()) return true;
|
|
3165
3259
|
if (pathname === ApiPaths.whitelabelLogo()) return true;
|
|
3166
3260
|
return false;
|
|
@@ -3169,7 +3263,7 @@ var HonoHttpAnonymousRoutePolicy = class {
|
|
|
3169
3263
|
|
|
3170
3264
|
//#endregion
|
|
3171
3265
|
//#region src/presentation/http/hono/CodemationHonoApiAppFactory.ts
|
|
3172
|
-
var _ref$
|
|
3266
|
+
var _ref$25, _ref2$5;
|
|
3173
3267
|
let CodemationHonoApiApp = class CodemationHonoApiApp$1 {
|
|
3174
3268
|
app;
|
|
3175
3269
|
constructor(sessionVerifier, registrars, binaryHttpRouteHandler) {
|
|
@@ -3210,14 +3304,14 @@ CodemationHonoApiApp = __decorate([
|
|
|
3210
3304
|
__decorateParam(2, inject(BinaryHttpRouteHandler)),
|
|
3211
3305
|
__decorateMetadata("design:paramtypes", [
|
|
3212
3306
|
Object,
|
|
3213
|
-
typeof (_ref$
|
|
3214
|
-
typeof (_ref2$
|
|
3307
|
+
typeof (_ref$25 = typeof ReadonlyArray !== "undefined" && ReadonlyArray) === "function" ? _ref$25 : Object,
|
|
3308
|
+
typeof (_ref2$5 = typeof BinaryHttpRouteHandler !== "undefined" && BinaryHttpRouteHandler) === "function" ? _ref2$5 : Object
|
|
3215
3309
|
])
|
|
3216
3310
|
], CodemationHonoApiApp);
|
|
3217
3311
|
|
|
3218
3312
|
//#endregion
|
|
3219
3313
|
//#region src/presentation/http/hono/registrars/BinaryHonoApiRouteRegistrar.ts
|
|
3220
|
-
var _ref$
|
|
3314
|
+
var _ref$24;
|
|
3221
3315
|
let BinaryHonoApiRouteRegistrar = class BinaryHonoApiRouteRegistrar$1 {
|
|
3222
3316
|
constructor(handler) {
|
|
3223
3317
|
this.handler = handler;
|
|
@@ -3236,9 +3330,36 @@ BinaryHonoApiRouteRegistrar = __decorate([
|
|
|
3236
3330
|
useClass: BinaryHonoApiRouteRegistrar
|
|
3237
3331
|
}]),
|
|
3238
3332
|
__decorateParam(0, inject(BinaryHttpRouteHandler)),
|
|
3239
|
-
__decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
3333
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$24 = typeof BinaryHttpRouteHandler !== "undefined" && BinaryHttpRouteHandler) === "function" ? _ref$24 : Object])
|
|
3240
3334
|
], BinaryHonoApiRouteRegistrar);
|
|
3241
3335
|
|
|
3336
|
+
//#endregion
|
|
3337
|
+
//#region src/presentation/http/hono/registrars/BootstrapHonoApiRouteRegistrar.ts
|
|
3338
|
+
var _ref$23, _ref2$4;
|
|
3339
|
+
let BootstrapHonoApiRouteRegistrar = class BootstrapHonoApiRouteRegistrar$1 {
|
|
3340
|
+
constructor(publicFrontendBootstrapHttpRouteHandler, internalAuthBootstrapHttpRouteHandler) {
|
|
3341
|
+
this.publicFrontendBootstrapHttpRouteHandler = publicFrontendBootstrapHttpRouteHandler;
|
|
3342
|
+
this.internalAuthBootstrapHttpRouteHandler = internalAuthBootstrapHttpRouteHandler;
|
|
3343
|
+
}
|
|
3344
|
+
register(app) {
|
|
3345
|
+
app.get(this.resolveRelativePath(ApiPaths.frontendBootstrap()), () => this.publicFrontendBootstrapHttpRouteHandler.getBootstrap());
|
|
3346
|
+
app.get(this.resolveRelativePath(ApiPaths.internalAuthBootstrap()), () => this.internalAuthBootstrapHttpRouteHandler.getBootstrap());
|
|
3347
|
+
}
|
|
3348
|
+
resolveRelativePath(pathname) {
|
|
3349
|
+
return pathname.replace(/^\/api/, "");
|
|
3350
|
+
}
|
|
3351
|
+
};
|
|
3352
|
+
BootstrapHonoApiRouteRegistrar = __decorate([
|
|
3353
|
+
injectable(),
|
|
3354
|
+
registry([{
|
|
3355
|
+
token: ApplicationTokens.HonoApiRouteRegistrar,
|
|
3356
|
+
useClass: BootstrapHonoApiRouteRegistrar
|
|
3357
|
+
}]),
|
|
3358
|
+
__decorateParam(0, inject(PublicFrontendBootstrapHttpRouteHandler)),
|
|
3359
|
+
__decorateParam(1, inject(InternalAuthBootstrapHttpRouteHandler)),
|
|
3360
|
+
__decorateMetadata("design:paramtypes", [typeof (_ref$23 = typeof PublicFrontendBootstrapHttpRouteHandler !== "undefined" && PublicFrontendBootstrapHttpRouteHandler) === "function" ? _ref$23 : Object, typeof (_ref2$4 = typeof InternalAuthBootstrapHttpRouteHandler !== "undefined" && InternalAuthBootstrapHttpRouteHandler) === "function" ? _ref2$4 : Object])
|
|
3361
|
+
], BootstrapHonoApiRouteRegistrar);
|
|
3362
|
+
|
|
3242
3363
|
//#endregion
|
|
3243
3364
|
//#region src/presentation/http/HttpRequestJsonBodyReader.ts
|
|
3244
3365
|
var HttpRequestJsonBodyReader = class {
|
|
@@ -5383,8 +5504,47 @@ var BullmqScheduler = class {
|
|
|
5383
5504
|
//#region src/bootstrap/AppContainerFactory.ts
|
|
5384
5505
|
var import_client = /* @__PURE__ */ __toESM(require_client(), 1);
|
|
5385
5506
|
var AppContainerFactory = class AppContainerFactory {
|
|
5507
|
+
static queryHandlers = [
|
|
5508
|
+
GetCredentialFieldEnvStatusQueryHandler,
|
|
5509
|
+
GetCredentialInstanceQueryHandler,
|
|
5510
|
+
GetCredentialInstanceWithSecretsQueryHandler,
|
|
5511
|
+
GetWorkflowCredentialHealthQueryHandler,
|
|
5512
|
+
ListCredentialInstancesQueryHandler,
|
|
5513
|
+
ListCredentialTypesQueryHandler,
|
|
5514
|
+
ListUserAccountsQueryHandler,
|
|
5515
|
+
VerifyUserInviteQueryHandler,
|
|
5516
|
+
GetRunBinaryAttachmentQueryHandler,
|
|
5517
|
+
GetRunStateQueryHandler,
|
|
5518
|
+
GetWorkflowDebuggerOverlayQueryHandler,
|
|
5519
|
+
GetWorkflowDetailQueryHandler,
|
|
5520
|
+
GetWorkflowOverlayBinaryAttachmentQueryHandler,
|
|
5521
|
+
GetWorkflowSummariesQueryHandler,
|
|
5522
|
+
ListWorkflowRunsQueryHandler
|
|
5523
|
+
];
|
|
5524
|
+
static commandHandlers = [
|
|
5525
|
+
CreateCredentialInstanceCommandHandler,
|
|
5526
|
+
DeleteCredentialInstanceCommandHandler,
|
|
5527
|
+
TestCredentialInstanceCommandHandler,
|
|
5528
|
+
UpdateCredentialInstanceCommandHandler,
|
|
5529
|
+
UpsertCredentialBindingCommandHandler,
|
|
5530
|
+
AcceptUserInviteCommandHandler,
|
|
5531
|
+
InviteUserCommandHandler,
|
|
5532
|
+
RegenerateUserInviteCommandHandler,
|
|
5533
|
+
UpdateUserAccountStatusCommandHandler,
|
|
5534
|
+
UpsertLocalBootstrapUserCommandHandler,
|
|
5535
|
+
CopyRunToWorkflowDebuggerCommandHandler,
|
|
5536
|
+
HandleWebhookInvocationCommandHandler,
|
|
5537
|
+
ReplaceMutableRunWorkflowSnapshotCommandHandler,
|
|
5538
|
+
ReplaceWorkflowDebuggerOverlayCommandHandler,
|
|
5539
|
+
ReplayWorkflowNodeCommandHandler,
|
|
5540
|
+
SetPinnedNodeInputCommandHandler,
|
|
5541
|
+
SetWorkflowActivationCommandHandler,
|
|
5542
|
+
StartWorkflowRunCommandHandler,
|
|
5543
|
+
UploadOverlayPinnedBinaryCommandHandler
|
|
5544
|
+
];
|
|
5386
5545
|
static honoRouteRegistrars = [
|
|
5387
5546
|
BinaryHonoApiRouteRegistrar,
|
|
5547
|
+
BootstrapHonoApiRouteRegistrar,
|
|
5388
5548
|
CredentialHonoApiRouteRegistrar,
|
|
5389
5549
|
DevHonoApiRouteRegistrar,
|
|
5390
5550
|
OAuth2HonoApiRouteRegistrar,
|
|
@@ -5507,6 +5667,8 @@ var AppContainerFactory = class AppContainerFactory {
|
|
|
5507
5667
|
container$1.register(OAuth2ConnectService, { useClass: OAuth2ConnectService });
|
|
5508
5668
|
container$1.register(CodemationFrontendAuthSnapshotFactory, { useClass: CodemationFrontendAuthSnapshotFactory });
|
|
5509
5669
|
container$1.register(FrontendAppConfigFactory, { useClass: FrontendAppConfigFactory });
|
|
5670
|
+
container$1.register(PublicFrontendBootstrapFactory, { useClass: PublicFrontendBootstrapFactory });
|
|
5671
|
+
container$1.register(InternalAuthBootstrapFactory, { useClass: InternalAuthBootstrapFactory });
|
|
5510
5672
|
container$1.register(DatabaseMigrations, { useClass: DatabaseMigrations });
|
|
5511
5673
|
container$1.register(FrontendRuntime, { useClass: FrontendRuntime });
|
|
5512
5674
|
container$1.register(WorkerRuntime, { useClass: WorkerRuntime });
|
|
@@ -5546,6 +5708,8 @@ var AppContainerFactory = class AppContainerFactory {
|
|
|
5546
5708
|
container$1.register(InMemoryQueryBus, { useClass: InMemoryQueryBus });
|
|
5547
5709
|
container$1.register(InMemoryCommandBus, { useClass: InMemoryCommandBus });
|
|
5548
5710
|
container$1.register(InMemoryDomainEventBus, { useClass: InMemoryDomainEventBus });
|
|
5711
|
+
for (const handler of AppContainerFactory.queryHandlers) container$1.register(ApplicationTokens.QueryHandler, { useClass: handler });
|
|
5712
|
+
for (const handler of AppContainerFactory.commandHandlers) container$1.register(ApplicationTokens.CommandHandler, { useClass: handler });
|
|
5549
5713
|
container$1.register(ApplicationTokens.QueryBus, { useFactory: instanceCachingFactory((dependencyContainer) => dependencyContainer.resolve(InMemoryQueryBus)) });
|
|
5550
5714
|
container$1.register(ApplicationTokens.CommandBus, { useFactory: instanceCachingFactory((dependencyContainer) => dependencyContainer.resolve(InMemoryCommandBus)) });
|
|
5551
5715
|
container$1.register(ApplicationTokens.DomainEventBus, { useFactory: instanceCachingFactory((dependencyContainer) => dependencyContainer.resolve(InMemoryDomainEventBus)) });
|
|
@@ -5553,6 +5717,8 @@ var AppContainerFactory = class AppContainerFactory {
|
|
|
5553
5717
|
registerApplicationServicesAndRoutes(container$1) {
|
|
5554
5718
|
container$1.register(DevBootstrapSummaryAssembler, { useClass: DevBootstrapSummaryAssembler });
|
|
5555
5719
|
container$1.register(DevBootstrapSummaryHttpRouteHandler, { useClass: DevBootstrapSummaryHttpRouteHandler });
|
|
5720
|
+
container$1.register(PublicFrontendBootstrapHttpRouteHandler, { useClass: PublicFrontendBootstrapHttpRouteHandler });
|
|
5721
|
+
container$1.register(InternalAuthBootstrapHttpRouteHandler, { useClass: InternalAuthBootstrapHttpRouteHandler });
|
|
5556
5722
|
container$1.register(WhitelabelLogoHttpRouteHandler, { useClass: WhitelabelLogoHttpRouteHandler });
|
|
5557
5723
|
for (const registrar of AppContainerFactory.honoRouteRegistrars) container$1.register(ApplicationTokens.HonoApiRouteRegistrar, { useClass: registrar });
|
|
5558
5724
|
container$1.register(CodemationHonoApiApp, { useClass: CodemationHonoApiApp });
|
|
@@ -5643,6 +5809,7 @@ var AppContainerFactory = class AppContainerFactory {
|
|
|
5643
5809
|
return {
|
|
5644
5810
|
databasePersistence: appConfig.persistence,
|
|
5645
5811
|
eventBusKind: appConfig.eventing.kind,
|
|
5812
|
+
plugins: appConfig.pluginLoadSummary ?? [],
|
|
5646
5813
|
queuePrefix: appConfig.scheduler.queuePrefix ?? appConfig.eventing.queuePrefix ?? "codemation",
|
|
5647
5814
|
schedulerKind: appConfig.scheduler.kind,
|
|
5648
5815
|
redisUrl: appConfig.scheduler.redisUrl ?? appConfig.eventing.redisUrl
|
|
@@ -5659,5 +5826,5 @@ var AppContainerFactory = class AppContainerFactory {
|
|
|
5659
5826
|
};
|
|
5660
5827
|
|
|
5661
5828
|
//#endregion
|
|
5662
|
-
export {
|
|
5663
|
-
//# sourceMappingURL=AppContainerFactory-
|
|
5829
|
+
export { GetWorkflowDetailQuery as C, ListUserAccountsQuery as E, GetWorkflowSummariesQuery as S, UpsertLocalBootstrapUserCommand as T, CodemationFrontendAuthSnapshotFactory as _, AppContainerLifecycle as a, WorkflowDefinitionMapper as b, RequestToWebhookItemMapper as c, CredentialHttpRouteHandler as d, CodemationHonoApiApp as f, FrontendAppConfigFactory as g, InternalAuthBootstrapFactory as h, DatabaseMigrations as i, RunHttpRouteHandler as l, PublicFrontendBootstrapFactory as m, WorkerRuntime as n, WorkflowHttpRouteHandler as o, BinaryHttpRouteHandler as p, FrontendRuntime as r, WebhookHttpRouteHandler as s, AppContainerFactory as t, OAuth2HttpRouteHandler as u, WorkflowWebsocketServer as v, RunBinaryAttachmentLookupService as w, WorkflowPolicyUiPresentationFactory as x, ApiPaths as y };
|
|
5830
|
+
//# sourceMappingURL=AppContainerFactory-_dnF0VOf.js.map
|