@memberjunction/server 5.48.0 → 5.49.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/README.md +9 -0
- package/dist/auth/magicLink/MagicLinkKeys.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkKeys.js +11 -4
- package/dist/auth/magicLink/MagicLinkKeys.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.js +2 -2
- package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.js +4 -0
- package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
- package/dist/config.d.ts +40 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +28 -2
- package/dist/context.js.map +1 -1
- package/dist/generated/generated.d.ts +122 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +629 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +4 -2
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts +1 -0
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +12 -0
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -11
- package/dist/index.js.map +1 -1
- package/dist/integration/CustomColumnPromoter.d.ts +15 -2
- package/dist/integration/CustomColumnPromoter.d.ts.map +1 -1
- package/dist/integration/CustomColumnPromoter.js +113 -11
- package/dist/integration/CustomColumnPromoter.js.map +1 -1
- package/dist/integration/EntityMapLifecycle.d.ts +66 -0
- package/dist/integration/EntityMapLifecycle.d.ts.map +1 -0
- package/dist/integration/EntityMapLifecycle.js +189 -0
- package/dist/integration/EntityMapLifecycle.js.map +1 -0
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts +10 -0
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts.map +1 -1
- package/dist/realtimeProxy/RealtimeProxyServer.js +67 -1
- package/dist/realtimeProxy/RealtimeProxyServer.js.map +1 -1
- package/dist/realtimeWidget/WidgetRouter.d.ts.map +1 -1
- package/dist/realtimeWidget/WidgetRouter.js +6 -2
- package/dist/realtimeWidget/WidgetRouter.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts +17 -0
- package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +81 -25
- package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts +16 -0
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +26 -1
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.d.ts +53 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.js +522 -60
- package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +0 -6
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/RSUResolver.d.ts +10 -0
- package/dist/resolvers/RSUResolver.d.ts.map +1 -1
- package/dist/resolvers/RSUResolver.js +28 -0
- package/dist/resolvers/RSUResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +9 -6
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +135 -132
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.d.ts +8 -1
- package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.js +29 -1
- package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
- package/dist/resolvers/adhoc-query-helpers.d.ts +27 -0
- package/dist/resolvers/adhoc-query-helpers.d.ts.map +1 -0
- package/dist/resolvers/adhoc-query-helpers.js +42 -0
- package/dist/resolvers/adhoc-query-helpers.js.map +1 -0
- package/dist/rest/OAuthCallbackHandler.d.ts +9 -0
- package/dist/rest/OAuthCallbackHandler.d.ts.map +1 -1
- package/dist/rest/OAuthCallbackHandler.js +21 -4
- package/dist/rest/OAuthCallbackHandler.js.map +1 -1
- package/dist/telephony/media-upgrade-router.d.ts +14 -0
- package/dist/telephony/media-upgrade-router.d.ts.map +1 -1
- package/dist/telephony/media-upgrade-router.js +17 -1
- package/dist/telephony/media-upgrade-router.js.map +1 -1
- package/package.json +88 -88
- package/src/__tests__/AdhocQueryResolver.pagination.test.ts +114 -0
- package/src/__tests__/EntityMapLifecycle.dagWarnings.test.ts +91 -0
- package/src/__tests__/OAuthCallbackHandler.xss.test.ts +83 -0
- package/src/__tests__/RealtimeProxyServer.test.ts +53 -1
- package/src/__tests__/adhoc-query-helpers.test.ts +50 -0
- package/src/__tests__/magicLinkService.provisionLog.test.ts +106 -0
- package/src/__tests__/media-upgrade-router.test.ts +43 -0
- package/src/__tests__/unifiedAuth.test.ts +18 -3
- package/src/auth/magicLink/MagicLinkKeys.ts +12 -6
- package/src/auth/magicLink/MagicLinkRouter.ts +2 -2
- package/src/auth/magicLink/MagicLinkService.ts +4 -0
- package/src/config.ts +14 -0
- package/src/context.ts +28 -2
- package/src/generated/generated.ts +446 -1
- package/src/generic/ResolverBase.ts +5 -2
- package/src/generic/RunViewResolver.ts +11 -0
- package/src/index.ts +75 -11
- package/src/integration/CustomColumnPromoter.ts +123 -6
- package/src/integration/EntityMapLifecycle.ts +221 -0
- package/src/realtimeProxy/RealtimeProxyServer.ts +70 -1
- package/src/realtimeWidget/WidgetRouter.ts +6 -2
- package/src/resolvers/AdhocQueryResolver.ts +97 -30
- package/src/resolvers/GetDataResolver.ts +30 -1
- package/src/resolvers/IntegrationDiscoveryResolver.ts +514 -60
- package/src/resolvers/QueryResolver.ts +1 -7
- package/src/resolvers/RSUResolver.ts +28 -0
- package/src/resolvers/RunAIAgentResolver.ts +74 -70
- package/src/resolvers/TransactionGroupResolver.ts +36 -2
- package/src/resolvers/__tests__/GetDataResolver.tokens.test.ts +138 -0
- package/src/resolvers/adhoc-query-helpers.ts +50 -0
- package/src/rest/OAuthCallbackHandler.ts +22 -4
- package/src/telephony/media-upgrade-router.ts +18 -1
|
@@ -15739,6 +15739,36 @@ __decorate([
|
|
|
15739
15739
|
Field({ nullable: true, description: `Type-level DEFAULT configuration JSON for agents of this type — the base layer of the effective-configuration merge: type DefaultConfiguration <- agent TypeConfiguration <- runtime overrides (later layers win per key, deep-merged). Must itself conform to ConfigSchema when one is published. Null = no type defaults.` }),
|
|
15740
15740
|
__metadata("design:type", String)
|
|
15741
15741
|
], MJAIAgentType_.prototype, "DefaultConfiguration", void 0);
|
|
15742
|
+
__decorate([
|
|
15743
|
+
Field(() => Int, { nullable: true, description: `Type-level default for the in-turn context-compression message-count threshold. Overridable per agent via AIAgent.ContextCompressionMessageThreshold.` }),
|
|
15744
|
+
__metadata("design:type", Number)
|
|
15745
|
+
], MJAIAgentType_.prototype, "ContextCompressionMessageThreshold", void 0);
|
|
15746
|
+
__decorate([
|
|
15747
|
+
Field({ nullable: true, description: `Type-level default prompt used for in-turn context compression. Overridable per agent via AIAgent.ContextCompressionPromptID.` }),
|
|
15748
|
+
MaxLength(36),
|
|
15749
|
+
__metadata("design:type", String)
|
|
15750
|
+
], MJAIAgentType_.prototype, "ContextCompressionPromptID", void 0);
|
|
15751
|
+
__decorate([
|
|
15752
|
+
Field(() => Int, { nullable: true, description: `Type-level default for the number of most-recent messages kept uncompressed (the "hot tail") when context compression is applied. Overridable per agent via AIAgent.ContextCompressionMessageRetentionCount.` }),
|
|
15753
|
+
__metadata("design:type", Number)
|
|
15754
|
+
], MJAIAgentType_.prototype, "ContextCompressionMessageRetentionCount", void 0);
|
|
15755
|
+
__decorate([
|
|
15756
|
+
Field(() => Int, { nullable: true, description: `Type-level default effective working-context budget, in tokens. Null means use the selected model's MaxInputTokens. The resolved value is clamped to the model's limit at runtime (a warning is logged if it would exceed it). Overridable per agent via AIAgent.ContextWindowMaxTokens.` }),
|
|
15757
|
+
__metadata("design:type", Number)
|
|
15758
|
+
], MJAIAgentType_.prototype, "ContextWindowMaxTokens", void 0);
|
|
15759
|
+
__decorate([
|
|
15760
|
+
Field(() => Int, { description: `Type-level default: the percentage of the effective context budget at which cross-turn conversation compaction is triggered. Defaults to 75. Overridable per agent via AIAgent.CompactionTriggerPercent.` }),
|
|
15761
|
+
__metadata("design:type", Number)
|
|
15762
|
+
], MJAIAgentType_.prototype, "CompactionTriggerPercent", void 0);
|
|
15763
|
+
__decorate([
|
|
15764
|
+
Field(() => Int, { description: `Type-level default: the target percentage of the effective context budget to reduce to after a cross-turn compaction. Defaults to 30. Overridable per agent via AIAgent.CompactionTargetPercent.` }),
|
|
15765
|
+
__metadata("design:type", Number)
|
|
15766
|
+
], MJAIAgentType_.prototype, "CompactionTargetPercent", void 0);
|
|
15767
|
+
__decorate([
|
|
15768
|
+
Field({ nullable: true, description: `Type-level default prompt used for cross-turn conversation compaction (the durable summary baseline). Distinct from ContextCompressionPromptID, which governs in-turn compression. Overridable per agent via AIAgent.ConversationSummaryPromptID.` }),
|
|
15769
|
+
MaxLength(36),
|
|
15770
|
+
__metadata("design:type", String)
|
|
15771
|
+
], MJAIAgentType_.prototype, "ConversationSummaryPromptID", void 0);
|
|
15742
15772
|
__decorate([
|
|
15743
15773
|
Field({ nullable: true }),
|
|
15744
15774
|
MaxLength(255),
|
|
@@ -15749,6 +15779,16 @@ __decorate([
|
|
|
15749
15779
|
MaxLength(200),
|
|
15750
15780
|
__metadata("design:type", String)
|
|
15751
15781
|
], MJAIAgentType_.prototype, "DefaultStorageAccount", void 0);
|
|
15782
|
+
__decorate([
|
|
15783
|
+
Field({ nullable: true }),
|
|
15784
|
+
MaxLength(255),
|
|
15785
|
+
__metadata("design:type", String)
|
|
15786
|
+
], MJAIAgentType_.prototype, "ContextCompressionPrompt", void 0);
|
|
15787
|
+
__decorate([
|
|
15788
|
+
Field({ nullable: true }),
|
|
15789
|
+
MaxLength(255),
|
|
15790
|
+
__metadata("design:type", String)
|
|
15791
|
+
], MJAIAgentType_.prototype, "ConversationSummaryPrompt", void 0);
|
|
15752
15792
|
__decorate([
|
|
15753
15793
|
Field(() => [MJAIAgentCoAgent_]),
|
|
15754
15794
|
__metadata("design:type", Array)
|
|
@@ -15826,6 +15866,34 @@ __decorate([
|
|
|
15826
15866
|
Field({ nullable: true }),
|
|
15827
15867
|
__metadata("design:type", String)
|
|
15828
15868
|
], CreateMJAIAgentTypeInput.prototype, "DefaultConfiguration", void 0);
|
|
15869
|
+
__decorate([
|
|
15870
|
+
Field(() => Int, { nullable: true }),
|
|
15871
|
+
__metadata("design:type", Number)
|
|
15872
|
+
], CreateMJAIAgentTypeInput.prototype, "ContextCompressionMessageThreshold", void 0);
|
|
15873
|
+
__decorate([
|
|
15874
|
+
Field({ nullable: true }),
|
|
15875
|
+
__metadata("design:type", String)
|
|
15876
|
+
], CreateMJAIAgentTypeInput.prototype, "ContextCompressionPromptID", void 0);
|
|
15877
|
+
__decorate([
|
|
15878
|
+
Field(() => Int, { nullable: true }),
|
|
15879
|
+
__metadata("design:type", Number)
|
|
15880
|
+
], CreateMJAIAgentTypeInput.prototype, "ContextCompressionMessageRetentionCount", void 0);
|
|
15881
|
+
__decorate([
|
|
15882
|
+
Field(() => Int, { nullable: true }),
|
|
15883
|
+
__metadata("design:type", Number)
|
|
15884
|
+
], CreateMJAIAgentTypeInput.prototype, "ContextWindowMaxTokens", void 0);
|
|
15885
|
+
__decorate([
|
|
15886
|
+
Field(() => Int, { nullable: true }),
|
|
15887
|
+
__metadata("design:type", Number)
|
|
15888
|
+
], CreateMJAIAgentTypeInput.prototype, "CompactionTriggerPercent", void 0);
|
|
15889
|
+
__decorate([
|
|
15890
|
+
Field(() => Int, { nullable: true }),
|
|
15891
|
+
__metadata("design:type", Number)
|
|
15892
|
+
], CreateMJAIAgentTypeInput.prototype, "CompactionTargetPercent", void 0);
|
|
15893
|
+
__decorate([
|
|
15894
|
+
Field({ nullable: true }),
|
|
15895
|
+
__metadata("design:type", String)
|
|
15896
|
+
], CreateMJAIAgentTypeInput.prototype, "ConversationSummaryPromptID", void 0);
|
|
15829
15897
|
__decorate([
|
|
15830
15898
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
15831
15899
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -15899,6 +15967,34 @@ __decorate([
|
|
|
15899
15967
|
Field({ nullable: true }),
|
|
15900
15968
|
__metadata("design:type", String)
|
|
15901
15969
|
], UpdateMJAIAgentTypeInput.prototype, "DefaultConfiguration", void 0);
|
|
15970
|
+
__decorate([
|
|
15971
|
+
Field(() => Int, { nullable: true }),
|
|
15972
|
+
__metadata("design:type", Number)
|
|
15973
|
+
], UpdateMJAIAgentTypeInput.prototype, "ContextCompressionMessageThreshold", void 0);
|
|
15974
|
+
__decorate([
|
|
15975
|
+
Field({ nullable: true }),
|
|
15976
|
+
__metadata("design:type", String)
|
|
15977
|
+
], UpdateMJAIAgentTypeInput.prototype, "ContextCompressionPromptID", void 0);
|
|
15978
|
+
__decorate([
|
|
15979
|
+
Field(() => Int, { nullable: true }),
|
|
15980
|
+
__metadata("design:type", Number)
|
|
15981
|
+
], UpdateMJAIAgentTypeInput.prototype, "ContextCompressionMessageRetentionCount", void 0);
|
|
15982
|
+
__decorate([
|
|
15983
|
+
Field(() => Int, { nullable: true }),
|
|
15984
|
+
__metadata("design:type", Number)
|
|
15985
|
+
], UpdateMJAIAgentTypeInput.prototype, "ContextWindowMaxTokens", void 0);
|
|
15986
|
+
__decorate([
|
|
15987
|
+
Field(() => Int, { nullable: true }),
|
|
15988
|
+
__metadata("design:type", Number)
|
|
15989
|
+
], UpdateMJAIAgentTypeInput.prototype, "CompactionTriggerPercent", void 0);
|
|
15990
|
+
__decorate([
|
|
15991
|
+
Field(() => Int, { nullable: true }),
|
|
15992
|
+
__metadata("design:type", Number)
|
|
15993
|
+
], UpdateMJAIAgentTypeInput.prototype, "CompactionTargetPercent", void 0);
|
|
15994
|
+
__decorate([
|
|
15995
|
+
Field({ nullable: true }),
|
|
15996
|
+
__metadata("design:type", String)
|
|
15997
|
+
], UpdateMJAIAgentTypeInput.prototype, "ConversationSummaryPromptID", void 0);
|
|
15902
15998
|
__decorate([
|
|
15903
15999
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
15904
16000
|
__metadata("design:type", Array)
|
|
@@ -16434,6 +16530,23 @@ __decorate([
|
|
|
16434
16530
|
Field(() => Boolean, { description: `When 1, every root-level run of this agent executes in plan mode regardless of the per-request planMode flag — the agent must present a plan and receive human approval before any Actions or Sub-Agent steps execute. SupportsPlanMode is irrelevant when this is set. Use for high-consequence agents (e.g. ones with outbound-communication capabilities) where human-in-the-loop review is mandatory.` }),
|
|
16435
16531
|
__metadata("design:type", Boolean)
|
|
16436
16532
|
], MJAIAgent_.prototype, "RequirePlanMode", void 0);
|
|
16533
|
+
__decorate([
|
|
16534
|
+
Field(() => Int, { nullable: true, description: `Per-agent override for the effective working-context budget, in tokens. Null inherits the agent type's value (which, if also null, falls back to the selected model's MaxInputTokens). The resolved value is clamped to the model's limit at runtime.` }),
|
|
16535
|
+
__metadata("design:type", Number)
|
|
16536
|
+
], MJAIAgent_.prototype, "ContextWindowMaxTokens", void 0);
|
|
16537
|
+
__decorate([
|
|
16538
|
+
Field(() => Int, { nullable: true, description: `Per-agent override for the cross-turn compaction trigger percentage. Null inherits the agent type's value.` }),
|
|
16539
|
+
__metadata("design:type", Number)
|
|
16540
|
+
], MJAIAgent_.prototype, "CompactionTriggerPercent", void 0);
|
|
16541
|
+
__decorate([
|
|
16542
|
+
Field(() => Int, { nullable: true, description: `Per-agent override for the cross-turn compaction target percentage. Null inherits the agent type's value.` }),
|
|
16543
|
+
__metadata("design:type", Number)
|
|
16544
|
+
], MJAIAgent_.prototype, "CompactionTargetPercent", void 0);
|
|
16545
|
+
__decorate([
|
|
16546
|
+
Field({ nullable: true, description: `Per-agent override for the cross-turn conversation compaction prompt. Null inherits the agent type's value.` }),
|
|
16547
|
+
MaxLength(36),
|
|
16548
|
+
__metadata("design:type", String)
|
|
16549
|
+
], MJAIAgent_.prototype, "ConversationSummaryPromptID", void 0);
|
|
16437
16550
|
__decorate([
|
|
16438
16551
|
Field({ nullable: true }),
|
|
16439
16552
|
MaxLength(255),
|
|
@@ -16489,6 +16602,11 @@ __decorate([
|
|
|
16489
16602
|
MaxLength(255),
|
|
16490
16603
|
__metadata("design:type", String)
|
|
16491
16604
|
], MJAIAgent_.prototype, "DefaultMediaCollection", void 0);
|
|
16605
|
+
__decorate([
|
|
16606
|
+
Field({ nullable: true }),
|
|
16607
|
+
MaxLength(255),
|
|
16608
|
+
__metadata("design:type", String)
|
|
16609
|
+
], MJAIAgent_.prototype, "ConversationSummaryPrompt", void 0);
|
|
16492
16610
|
__decorate([
|
|
16493
16611
|
Field({ nullable: true }),
|
|
16494
16612
|
MaxLength(36),
|
|
@@ -16952,6 +17070,22 @@ __decorate([
|
|
|
16952
17070
|
Field(() => Boolean, { nullable: true }),
|
|
16953
17071
|
__metadata("design:type", Boolean)
|
|
16954
17072
|
], CreateMJAIAgentInput.prototype, "RequirePlanMode", void 0);
|
|
17073
|
+
__decorate([
|
|
17074
|
+
Field(() => Int, { nullable: true }),
|
|
17075
|
+
__metadata("design:type", Number)
|
|
17076
|
+
], CreateMJAIAgentInput.prototype, "ContextWindowMaxTokens", void 0);
|
|
17077
|
+
__decorate([
|
|
17078
|
+
Field(() => Int, { nullable: true }),
|
|
17079
|
+
__metadata("design:type", Number)
|
|
17080
|
+
], CreateMJAIAgentInput.prototype, "CompactionTriggerPercent", void 0);
|
|
17081
|
+
__decorate([
|
|
17082
|
+
Field(() => Int, { nullable: true }),
|
|
17083
|
+
__metadata("design:type", Number)
|
|
17084
|
+
], CreateMJAIAgentInput.prototype, "CompactionTargetPercent", void 0);
|
|
17085
|
+
__decorate([
|
|
17086
|
+
Field({ nullable: true }),
|
|
17087
|
+
__metadata("design:type", String)
|
|
17088
|
+
], CreateMJAIAgentInput.prototype, "ConversationSummaryPromptID", void 0);
|
|
16955
17089
|
__decorate([
|
|
16956
17090
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
16957
17091
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -17261,6 +17395,22 @@ __decorate([
|
|
|
17261
17395
|
Field(() => Boolean, { nullable: true }),
|
|
17262
17396
|
__metadata("design:type", Boolean)
|
|
17263
17397
|
], UpdateMJAIAgentInput.prototype, "RequirePlanMode", void 0);
|
|
17398
|
+
__decorate([
|
|
17399
|
+
Field(() => Int, { nullable: true }),
|
|
17400
|
+
__metadata("design:type", Number)
|
|
17401
|
+
], UpdateMJAIAgentInput.prototype, "ContextWindowMaxTokens", void 0);
|
|
17402
|
+
__decorate([
|
|
17403
|
+
Field(() => Int, { nullable: true }),
|
|
17404
|
+
__metadata("design:type", Number)
|
|
17405
|
+
], UpdateMJAIAgentInput.prototype, "CompactionTriggerPercent", void 0);
|
|
17406
|
+
__decorate([
|
|
17407
|
+
Field(() => Int, { nullable: true }),
|
|
17408
|
+
__metadata("design:type", Number)
|
|
17409
|
+
], UpdateMJAIAgentInput.prototype, "CompactionTargetPercent", void 0);
|
|
17410
|
+
__decorate([
|
|
17411
|
+
Field({ nullable: true }),
|
|
17412
|
+
__metadata("design:type", String)
|
|
17413
|
+
], UpdateMJAIAgentInput.prototype, "ConversationSummaryPromptID", void 0);
|
|
17264
17414
|
__decorate([
|
|
17265
17415
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
17266
17416
|
__metadata("design:type", Array)
|
|
@@ -26321,6 +26471,10 @@ __decorate([
|
|
|
26321
26471
|
Field(() => [MJUserRoutineRun_]),
|
|
26322
26472
|
__metadata("design:type", Array)
|
|
26323
26473
|
], MJAIPromptRun_.prototype, "MJUserRoutineRuns_PromptRunIDArray", void 0);
|
|
26474
|
+
__decorate([
|
|
26475
|
+
Field(() => [MJConversationDetail_]),
|
|
26476
|
+
__metadata("design:type", Array)
|
|
26477
|
+
], MJAIPromptRun_.prototype, "MJConversationDetails_SummaryPromptRunIDArray", void 0);
|
|
26324
26478
|
MJAIPromptRun_ = __decorate([
|
|
26325
26479
|
ObjectType({ description: `Tracks AI prompt executions including timings, inputs, outputs, and performance metrics.` })
|
|
26326
26480
|
], MJAIPromptRun_);
|
|
@@ -27174,6 +27328,14 @@ let MJAIPromptRunResolver = class MJAIPromptRunResolver extends ResolverBase {
|
|
|
27174
27328
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Routine Runs', rows, this.GetUserFromPayload(userPayload));
|
|
27175
27329
|
return result;
|
|
27176
27330
|
}
|
|
27331
|
+
async MJConversationDetails_SummaryPromptRunIDArray(mjaipromptrun_, { userPayload, providers }, pubSub) {
|
|
27332
|
+
this.CheckUserReadPermissions('MJ: Conversation Details', userPayload);
|
|
27333
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27334
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetails')} WHERE ${provider.QuoteIdentifier('SummaryPromptRunID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
27335
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjaipromptrun_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
27336
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Details', rows, this.GetUserFromPayload(userPayload));
|
|
27337
|
+
return result;
|
|
27338
|
+
}
|
|
27177
27339
|
async CreateMJAIPromptRun(input, { providers, userPayload }, pubSub) {
|
|
27178
27340
|
const provider = GetReadWriteProvider(providers);
|
|
27179
27341
|
return this.CreateRecord('MJ: AI Prompt Runs', input, provider, userPayload, pubSub);
|
|
@@ -27296,6 +27458,15 @@ __decorate([
|
|
|
27296
27458
|
__metadata("design:paramtypes", [MJAIPromptRun_, Object, PubSubEngine]),
|
|
27297
27459
|
__metadata("design:returntype", Promise)
|
|
27298
27460
|
], MJAIPromptRunResolver.prototype, "MJUserRoutineRuns_PromptRunIDArray", null);
|
|
27461
|
+
__decorate([
|
|
27462
|
+
FieldResolver(() => [MJConversationDetail_]),
|
|
27463
|
+
__param(0, Root()),
|
|
27464
|
+
__param(1, Ctx()),
|
|
27465
|
+
__param(2, PubSub()),
|
|
27466
|
+
__metadata("design:type", Function),
|
|
27467
|
+
__metadata("design:paramtypes", [MJAIPromptRun_, Object, PubSubEngine]),
|
|
27468
|
+
__metadata("design:returntype", Promise)
|
|
27469
|
+
], MJAIPromptRunResolver.prototype, "MJConversationDetails_SummaryPromptRunIDArray", null);
|
|
27299
27470
|
__decorate([
|
|
27300
27471
|
Mutation(() => MJAIPromptRun_),
|
|
27301
27472
|
__param(0, Arg('input', () => CreateMJAIPromptRunInput)),
|
|
@@ -27922,6 +28093,18 @@ __decorate([
|
|
|
27922
28093
|
Field(() => [MJScopedPromptConfig_]),
|
|
27923
28094
|
__metadata("design:type", Array)
|
|
27924
28095
|
], MJAIPrompt_.prototype, "MJScopedPromptConfigs_PromptIDArray", void 0);
|
|
28096
|
+
__decorate([
|
|
28097
|
+
Field(() => [MJAIAgent_]),
|
|
28098
|
+
__metadata("design:type", Array)
|
|
28099
|
+
], MJAIPrompt_.prototype, "MJAIAgents_ConversationSummaryPromptIDArray", void 0);
|
|
28100
|
+
__decorate([
|
|
28101
|
+
Field(() => [MJAIAgentType_]),
|
|
28102
|
+
__metadata("design:type", Array)
|
|
28103
|
+
], MJAIPrompt_.prototype, "MJAIAgentTypes_ContextCompressionPromptIDArray", void 0);
|
|
28104
|
+
__decorate([
|
|
28105
|
+
Field(() => [MJAIAgentType_]),
|
|
28106
|
+
__metadata("design:type", Array)
|
|
28107
|
+
], MJAIPrompt_.prototype, "MJAIAgentTypes_ConversationSummaryPromptIDArray", void 0);
|
|
27925
28108
|
MJAIPrompt_ = __decorate([
|
|
27926
28109
|
ObjectType({ description: `Stores AI prompts, including references to categories, types, and templates.` })
|
|
27927
28110
|
], MJAIPrompt_);
|
|
@@ -28575,6 +28758,30 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
|
|
|
28575
28758
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Scoped Prompt Configs', rows, this.GetUserFromPayload(userPayload));
|
|
28576
28759
|
return result;
|
|
28577
28760
|
}
|
|
28761
|
+
async MJAIAgents_ConversationSummaryPromptIDArray(mjaiprompt_, { userPayload, providers }, pubSub) {
|
|
28762
|
+
this.CheckUserReadPermissions('MJ: AI Agents', userPayload);
|
|
28763
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28764
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('ConversationSummaryPromptID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
28765
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjaiprompt_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
28766
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
|
|
28767
|
+
return result;
|
|
28768
|
+
}
|
|
28769
|
+
async MJAIAgentTypes_ContextCompressionPromptIDArray(mjaiprompt_, { userPayload, providers }, pubSub) {
|
|
28770
|
+
this.CheckUserReadPermissions('MJ: AI Agent Types', userPayload);
|
|
28771
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28772
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentTypes')} WHERE ${provider.QuoteIdentifier('ContextCompressionPromptID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
28773
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjaiprompt_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
28774
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Types', rows, this.GetUserFromPayload(userPayload));
|
|
28775
|
+
return result;
|
|
28776
|
+
}
|
|
28777
|
+
async MJAIAgentTypes_ConversationSummaryPromptIDArray(mjaiprompt_, { userPayload, providers }, pubSub) {
|
|
28778
|
+
this.CheckUserReadPermissions('MJ: AI Agent Types', userPayload);
|
|
28779
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28780
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentTypes')} WHERE ${provider.QuoteIdentifier('ConversationSummaryPromptID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
28781
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjaiprompt_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
28782
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Types', rows, this.GetUserFromPayload(userPayload));
|
|
28783
|
+
return result;
|
|
28784
|
+
}
|
|
28578
28785
|
async CreateMJAIPrompt(input, { providers, userPayload }, pubSub) {
|
|
28579
28786
|
const provider = GetReadWriteProvider(providers);
|
|
28580
28787
|
return this.CreateRecord('MJ: AI Prompts', input, provider, userPayload, pubSub);
|
|
@@ -28787,6 +28994,33 @@ __decorate([
|
|
|
28787
28994
|
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
28788
28995
|
__metadata("design:returntype", Promise)
|
|
28789
28996
|
], MJAIPromptResolver.prototype, "MJScopedPromptConfigs_PromptIDArray", null);
|
|
28997
|
+
__decorate([
|
|
28998
|
+
FieldResolver(() => [MJAIAgent_]),
|
|
28999
|
+
__param(0, Root()),
|
|
29000
|
+
__param(1, Ctx()),
|
|
29001
|
+
__param(2, PubSub()),
|
|
29002
|
+
__metadata("design:type", Function),
|
|
29003
|
+
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
29004
|
+
__metadata("design:returntype", Promise)
|
|
29005
|
+
], MJAIPromptResolver.prototype, "MJAIAgents_ConversationSummaryPromptIDArray", null);
|
|
29006
|
+
__decorate([
|
|
29007
|
+
FieldResolver(() => [MJAIAgentType_]),
|
|
29008
|
+
__param(0, Root()),
|
|
29009
|
+
__param(1, Ctx()),
|
|
29010
|
+
__param(2, PubSub()),
|
|
29011
|
+
__metadata("design:type", Function),
|
|
29012
|
+
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
29013
|
+
__metadata("design:returntype", Promise)
|
|
29014
|
+
], MJAIPromptResolver.prototype, "MJAIAgentTypes_ContextCompressionPromptIDArray", null);
|
|
29015
|
+
__decorate([
|
|
29016
|
+
FieldResolver(() => [MJAIAgentType_]),
|
|
29017
|
+
__param(0, Root()),
|
|
29018
|
+
__param(1, Ctx()),
|
|
29019
|
+
__param(2, PubSub()),
|
|
29020
|
+
__metadata("design:type", Function),
|
|
29021
|
+
__metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
|
|
29022
|
+
__metadata("design:returntype", Promise)
|
|
29023
|
+
], MJAIPromptResolver.prototype, "MJAIAgentTypes_ConversationSummaryPromptIDArray", null);
|
|
28790
29024
|
__decorate([
|
|
28791
29025
|
Mutation(() => MJAIPrompt_),
|
|
28792
29026
|
__param(0, Arg('input', () => CreateMJAIPromptInput)),
|
|
@@ -55314,6 +55548,15 @@ __decorate([
|
|
|
55314
55548
|
MaxLength(20),
|
|
55315
55549
|
__metadata("design:type", String)
|
|
55316
55550
|
], MJConversationDetail_.prototype, "MediaType", void 0);
|
|
55551
|
+
__decorate([
|
|
55552
|
+
Field(() => Int, { description: `Monotonic, per-conversation ordinal assigned on insert (1-based). Provides a stable symbolic handle used by conversation-history retrieval tools and by the sequence markers embedded in compaction summaries. A summary stored in SummaryOfEarlierConversation on a given row covers all rows with a lower Sequence in the same conversation.` }),
|
|
55553
|
+
__metadata("design:type", Number)
|
|
55554
|
+
], MJConversationDetail_.prototype, "Sequence", void 0);
|
|
55555
|
+
__decorate([
|
|
55556
|
+
Field({ nullable: true, description: `When SummaryOfEarlierConversation is populated by a cross-turn compaction, this links to the AIPromptRun that produced it (model, tokens, cost, prompt version). Null for ordinary (non-summary) rows.` }),
|
|
55557
|
+
MaxLength(36),
|
|
55558
|
+
__metadata("design:type", String)
|
|
55559
|
+
], MJConversationDetail_.prototype, "SummaryPromptRunID", void 0);
|
|
55317
55560
|
__decorate([
|
|
55318
55561
|
Field({ nullable: true }),
|
|
55319
55562
|
MaxLength(255),
|
|
@@ -55349,6 +55592,11 @@ __decorate([
|
|
|
55349
55592
|
MaxLength(255),
|
|
55350
55593
|
__metadata("design:type", String)
|
|
55351
55594
|
], MJConversationDetail_.prototype, "TestRun", void 0);
|
|
55595
|
+
__decorate([
|
|
55596
|
+
Field({ nullable: true }),
|
|
55597
|
+
MaxLength(255),
|
|
55598
|
+
__metadata("design:type", String)
|
|
55599
|
+
], MJConversationDetail_.prototype, "SummaryPromptRun", void 0);
|
|
55352
55600
|
__decorate([
|
|
55353
55601
|
Field({ nullable: true }),
|
|
55354
55602
|
MaxLength(36),
|
|
@@ -55519,6 +55767,14 @@ __decorate([
|
|
|
55519
55767
|
Field({ nullable: true }),
|
|
55520
55768
|
__metadata("design:type", String)
|
|
55521
55769
|
], CreateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
55770
|
+
__decorate([
|
|
55771
|
+
Field(() => Int, { nullable: true }),
|
|
55772
|
+
__metadata("design:type", Number)
|
|
55773
|
+
], CreateMJConversationDetailInput.prototype, "Sequence", void 0);
|
|
55774
|
+
__decorate([
|
|
55775
|
+
Field({ nullable: true }),
|
|
55776
|
+
__metadata("design:type", String)
|
|
55777
|
+
], CreateMJConversationDetailInput.prototype, "SummaryPromptRunID", void 0);
|
|
55522
55778
|
__decorate([
|
|
55523
55779
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
55524
55780
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -55652,6 +55908,14 @@ __decorate([
|
|
|
55652
55908
|
Field({ nullable: true }),
|
|
55653
55909
|
__metadata("design:type", String)
|
|
55654
55910
|
], UpdateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
55911
|
+
__decorate([
|
|
55912
|
+
Field(() => Int, { nullable: true }),
|
|
55913
|
+
__metadata("design:type", Number)
|
|
55914
|
+
], UpdateMJConversationDetailInput.prototype, "Sequence", void 0);
|
|
55915
|
+
__decorate([
|
|
55916
|
+
Field({ nullable: true }),
|
|
55917
|
+
__metadata("design:type", String)
|
|
55918
|
+
], UpdateMJConversationDetailInput.prototype, "SummaryPromptRunID", void 0);
|
|
55655
55919
|
__decorate([
|
|
55656
55920
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
55657
55921
|
__metadata("design:type", Array)
|
|
@@ -95745,6 +96009,16 @@ __decorate([
|
|
|
95745
96009
|
MaxLength(500),
|
|
95746
96010
|
__metadata("design:type", String)
|
|
95747
96011
|
], MJOpenApp_.prototype, "Subpath", void 0);
|
|
96012
|
+
__decorate([
|
|
96013
|
+
Field({ nullable: true, description: `The last install/upgrade/remove step that completed successfully for this app while Status is Installing, Upgrading, or Removing. Used to resume a crashed or failed operation from the correct point instead of restarting it entirely. Cleared (NULL) once the operation reaches a terminal state (Active/Disabled/Removed/Error).` }),
|
|
96014
|
+
MaxLength(50),
|
|
96015
|
+
__metadata("design:type", String)
|
|
96016
|
+
], MJOpenApp_.prototype, "LastCompletedStep", void 0);
|
|
96017
|
+
__decorate([
|
|
96018
|
+
Field({ nullable: true, description: `The version this app was being upgraded TO when LastCompletedStep was last written, for Upgrade only. A resume only trusts LastCompletedStep when this matches the version currently being requested — otherwise a checkpoint from an interrupted upgrade to a different version could wrongly skip steps for the new target. Cleared alongside LastCompletedStep.` }),
|
|
96019
|
+
MaxLength(20),
|
|
96020
|
+
__metadata("design:type", String)
|
|
96021
|
+
], MJOpenApp_.prototype, "LastCompletedStepTargetVersion", void 0);
|
|
95748
96022
|
__decorate([
|
|
95749
96023
|
Field(),
|
|
95750
96024
|
MaxLength(100),
|
|
@@ -95847,6 +96121,14 @@ __decorate([
|
|
|
95847
96121
|
Field({ nullable: true }),
|
|
95848
96122
|
__metadata("design:type", String)
|
|
95849
96123
|
], CreateMJOpenAppInput.prototype, "Subpath", void 0);
|
|
96124
|
+
__decorate([
|
|
96125
|
+
Field({ nullable: true }),
|
|
96126
|
+
__metadata("design:type", String)
|
|
96127
|
+
], CreateMJOpenAppInput.prototype, "LastCompletedStep", void 0);
|
|
96128
|
+
__decorate([
|
|
96129
|
+
Field({ nullable: true }),
|
|
96130
|
+
__metadata("design:type", String)
|
|
96131
|
+
], CreateMJOpenAppInput.prototype, "LastCompletedStepTargetVersion", void 0);
|
|
95850
96132
|
__decorate([
|
|
95851
96133
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
95852
96134
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -95936,6 +96218,14 @@ __decorate([
|
|
|
95936
96218
|
Field({ nullable: true }),
|
|
95937
96219
|
__metadata("design:type", String)
|
|
95938
96220
|
], UpdateMJOpenAppInput.prototype, "Subpath", void 0);
|
|
96221
|
+
__decorate([
|
|
96222
|
+
Field({ nullable: true }),
|
|
96223
|
+
__metadata("design:type", String)
|
|
96224
|
+
], UpdateMJOpenAppInput.prototype, "LastCompletedStep", void 0);
|
|
96225
|
+
__decorate([
|
|
96226
|
+
Field({ nullable: true }),
|
|
96227
|
+
__metadata("design:type", String)
|
|
96228
|
+
], UpdateMJOpenAppInput.prototype, "LastCompletedStepTargetVersion", void 0);
|
|
95939
96229
|
__decorate([
|
|
95940
96230
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
95941
96231
|
__metadata("design:type", Array)
|
|
@@ -129266,6 +129556,345 @@ MJTestResolver = __decorate([
|
|
|
129266
129556
|
], MJTestResolver);
|
|
129267
129557
|
export { MJTestResolver };
|
|
129268
129558
|
//****************************************************************************
|
|
129559
|
+
// ENTITY CLASS for MJ: Themes
|
|
129560
|
+
//****************************************************************************
|
|
129561
|
+
let MJTheme_ = class MJTheme_ {
|
|
129562
|
+
};
|
|
129563
|
+
__decorate([
|
|
129564
|
+
Field(),
|
|
129565
|
+
MaxLength(36),
|
|
129566
|
+
__metadata("design:type", String)
|
|
129567
|
+
], MJTheme_.prototype, "ID", void 0);
|
|
129568
|
+
__decorate([
|
|
129569
|
+
Field({ description: `Display name for the theme (unique).` }),
|
|
129570
|
+
MaxLength(100),
|
|
129571
|
+
__metadata("design:type", String)
|
|
129572
|
+
], MJTheme_.prototype, "Name", void 0);
|
|
129573
|
+
__decorate([
|
|
129574
|
+
Field({ nullable: true, description: `Optional description of the theme.` }),
|
|
129575
|
+
__metadata("design:type", String)
|
|
129576
|
+
], MJTheme_.prototype, "Description", void 0);
|
|
129577
|
+
__decorate([
|
|
129578
|
+
Field({ description: `Brand seeds as JSON (the ThemeSeeds shape from @memberjunction/theme-engine): primary/accent/tertiary hue anchors, neutralChroma, vibrancy, radius, depth, fontFamily, and an optional vizPalette override. Source of truth — the full token contract is derived from this, not stored.` }),
|
|
129579
|
+
__metadata("design:type", String)
|
|
129580
|
+
], MJTheme_.prototype, "Seeds", void 0);
|
|
129581
|
+
__decorate([
|
|
129582
|
+
Field({ nullable: true, description: `Public URL of the logo mark for light surfaces. Logos are variant uploads, never recolored.` }),
|
|
129583
|
+
MaxLength(1000),
|
|
129584
|
+
__metadata("design:type", String)
|
|
129585
|
+
], MJTheme_.prototype, "LightMarkURL", void 0);
|
|
129586
|
+
__decorate([
|
|
129587
|
+
Field({ nullable: true, description: `Public URL of the logo mark for dark surfaces. Dark mode swaps to this artwork rather than transforming the light mark.` }),
|
|
129588
|
+
MaxLength(1000),
|
|
129589
|
+
__metadata("design:type", String)
|
|
129590
|
+
], MJTheme_.prototype, "DarkMarkURL", void 0);
|
|
129591
|
+
__decorate([
|
|
129592
|
+
Field({ nullable: true, description: `Optional public URL of the full wordmark logo.` }),
|
|
129593
|
+
MaxLength(1000),
|
|
129594
|
+
__metadata("design:type", String)
|
|
129595
|
+
], MJTheme_.prototype, "WordmarkURL", void 0);
|
|
129596
|
+
__decorate([
|
|
129597
|
+
Field({ nullable: true, description: `Optional public URL of a single-fill monochrome logo variant.` }),
|
|
129598
|
+
MaxLength(1000),
|
|
129599
|
+
__metadata("design:type", String)
|
|
129600
|
+
], MJTheme_.prototype, "MonochromeURL", void 0);
|
|
129601
|
+
__decorate([
|
|
129602
|
+
Field(() => Boolean, { description: `When 1, this is the default theme applied when no other is selected. Single-default enforcement is handled at the application layer.` }),
|
|
129603
|
+
__metadata("design:type", Boolean)
|
|
129604
|
+
], MJTheme_.prototype, "IsDefault", void 0);
|
|
129605
|
+
__decorate([
|
|
129606
|
+
Field({ description: `Lifecycle status: Active (available), Inactive (retired), or Draft (in progress, not applied).` }),
|
|
129607
|
+
MaxLength(20),
|
|
129608
|
+
__metadata("design:type", String)
|
|
129609
|
+
], MJTheme_.prototype, "Status", void 0);
|
|
129610
|
+
__decorate([
|
|
129611
|
+
Field({ nullable: true, description: `Optional advanced token overrides as a JSON object mapping a --mj-* CSS custom property name to a value (e.g. {"--mj-brand-primary-hover":"#0a5cff"}). Applied on top of the seed-derived token contract at load, before CustomCSS. Leave null to use the pure derived theme.` }),
|
|
129612
|
+
__metadata("design:type", String)
|
|
129613
|
+
], MJTheme_.prototype, "Overrides", void 0);
|
|
129614
|
+
__decorate([
|
|
129615
|
+
Field({ nullable: true, description: `Optional advanced raw CSS appended to the theme overlay and auto-scoped under [data-theme-overlay="<id>"]. Applied last, after the derived tokens and Overrides. Escape hatch for rules the seed/token model cannot express; leave null for none.` }),
|
|
129616
|
+
__metadata("design:type", String)
|
|
129617
|
+
], MJTheme_.prototype, "CustomCSS", void 0);
|
|
129618
|
+
__decorate([
|
|
129619
|
+
Field(),
|
|
129620
|
+
__metadata("design:type", Date)
|
|
129621
|
+
], MJTheme_.prototype, "_mj__CreatedAt", void 0);
|
|
129622
|
+
__decorate([
|
|
129623
|
+
Field(),
|
|
129624
|
+
__metadata("design:type", Date)
|
|
129625
|
+
], MJTheme_.prototype, "_mj__UpdatedAt", void 0);
|
|
129626
|
+
MJTheme_ = __decorate([
|
|
129627
|
+
ObjectType({ description: `A named brand theme. Stores ~8 brand seeds (color hue anchors, neutral character, vibrancy, shape, depth, type, viz palette) as JSON; the full --mj-* design-token contract is derived from the seeds at load. A theme is a brand — light/dark is the user\'s mode layered under it, so a theme carries no per-mode values.` })
|
|
129628
|
+
], MJTheme_);
|
|
129629
|
+
export { MJTheme_ };
|
|
129630
|
+
//****************************************************************************
|
|
129631
|
+
// INPUT TYPE for MJ: Themes
|
|
129632
|
+
//****************************************************************************
|
|
129633
|
+
let CreateMJThemeInput = class CreateMJThemeInput {
|
|
129634
|
+
};
|
|
129635
|
+
__decorate([
|
|
129636
|
+
Field({ nullable: true }),
|
|
129637
|
+
__metadata("design:type", String)
|
|
129638
|
+
], CreateMJThemeInput.prototype, "ID", void 0);
|
|
129639
|
+
__decorate([
|
|
129640
|
+
Field({ nullable: true }),
|
|
129641
|
+
__metadata("design:type", String)
|
|
129642
|
+
], CreateMJThemeInput.prototype, "Name", void 0);
|
|
129643
|
+
__decorate([
|
|
129644
|
+
Field({ nullable: true }),
|
|
129645
|
+
__metadata("design:type", String)
|
|
129646
|
+
], CreateMJThemeInput.prototype, "Description", void 0);
|
|
129647
|
+
__decorate([
|
|
129648
|
+
Field({ nullable: true }),
|
|
129649
|
+
__metadata("design:type", String)
|
|
129650
|
+
], CreateMJThemeInput.prototype, "Seeds", void 0);
|
|
129651
|
+
__decorate([
|
|
129652
|
+
Field({ nullable: true }),
|
|
129653
|
+
__metadata("design:type", String)
|
|
129654
|
+
], CreateMJThemeInput.prototype, "LightMarkURL", void 0);
|
|
129655
|
+
__decorate([
|
|
129656
|
+
Field({ nullable: true }),
|
|
129657
|
+
__metadata("design:type", String)
|
|
129658
|
+
], CreateMJThemeInput.prototype, "DarkMarkURL", void 0);
|
|
129659
|
+
__decorate([
|
|
129660
|
+
Field({ nullable: true }),
|
|
129661
|
+
__metadata("design:type", String)
|
|
129662
|
+
], CreateMJThemeInput.prototype, "WordmarkURL", void 0);
|
|
129663
|
+
__decorate([
|
|
129664
|
+
Field({ nullable: true }),
|
|
129665
|
+
__metadata("design:type", String)
|
|
129666
|
+
], CreateMJThemeInput.prototype, "MonochromeURL", void 0);
|
|
129667
|
+
__decorate([
|
|
129668
|
+
Field(() => Boolean, { nullable: true }),
|
|
129669
|
+
__metadata("design:type", Boolean)
|
|
129670
|
+
], CreateMJThemeInput.prototype, "IsDefault", void 0);
|
|
129671
|
+
__decorate([
|
|
129672
|
+
Field({ nullable: true }),
|
|
129673
|
+
__metadata("design:type", String)
|
|
129674
|
+
], CreateMJThemeInput.prototype, "Status", void 0);
|
|
129675
|
+
__decorate([
|
|
129676
|
+
Field({ nullable: true }),
|
|
129677
|
+
__metadata("design:type", String)
|
|
129678
|
+
], CreateMJThemeInput.prototype, "Overrides", void 0);
|
|
129679
|
+
__decorate([
|
|
129680
|
+
Field({ nullable: true }),
|
|
129681
|
+
__metadata("design:type", String)
|
|
129682
|
+
], CreateMJThemeInput.prototype, "CustomCSS", void 0);
|
|
129683
|
+
__decorate([
|
|
129684
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
129685
|
+
__metadata("design:type", RestoreContextInput)
|
|
129686
|
+
], CreateMJThemeInput.prototype, "RestoreContext___", void 0);
|
|
129687
|
+
CreateMJThemeInput = __decorate([
|
|
129688
|
+
InputType()
|
|
129689
|
+
], CreateMJThemeInput);
|
|
129690
|
+
export { CreateMJThemeInput };
|
|
129691
|
+
//****************************************************************************
|
|
129692
|
+
// INPUT TYPE for MJ: Themes
|
|
129693
|
+
//****************************************************************************
|
|
129694
|
+
let UpdateMJThemeInput = class UpdateMJThemeInput {
|
|
129695
|
+
};
|
|
129696
|
+
__decorate([
|
|
129697
|
+
Field(),
|
|
129698
|
+
__metadata("design:type", String)
|
|
129699
|
+
], UpdateMJThemeInput.prototype, "ID", void 0);
|
|
129700
|
+
__decorate([
|
|
129701
|
+
Field({ nullable: true }),
|
|
129702
|
+
__metadata("design:type", String)
|
|
129703
|
+
], UpdateMJThemeInput.prototype, "Name", void 0);
|
|
129704
|
+
__decorate([
|
|
129705
|
+
Field({ nullable: true }),
|
|
129706
|
+
__metadata("design:type", String)
|
|
129707
|
+
], UpdateMJThemeInput.prototype, "Description", void 0);
|
|
129708
|
+
__decorate([
|
|
129709
|
+
Field({ nullable: true }),
|
|
129710
|
+
__metadata("design:type", String)
|
|
129711
|
+
], UpdateMJThemeInput.prototype, "Seeds", void 0);
|
|
129712
|
+
__decorate([
|
|
129713
|
+
Field({ nullable: true }),
|
|
129714
|
+
__metadata("design:type", String)
|
|
129715
|
+
], UpdateMJThemeInput.prototype, "LightMarkURL", void 0);
|
|
129716
|
+
__decorate([
|
|
129717
|
+
Field({ nullable: true }),
|
|
129718
|
+
__metadata("design:type", String)
|
|
129719
|
+
], UpdateMJThemeInput.prototype, "DarkMarkURL", void 0);
|
|
129720
|
+
__decorate([
|
|
129721
|
+
Field({ nullable: true }),
|
|
129722
|
+
__metadata("design:type", String)
|
|
129723
|
+
], UpdateMJThemeInput.prototype, "WordmarkURL", void 0);
|
|
129724
|
+
__decorate([
|
|
129725
|
+
Field({ nullable: true }),
|
|
129726
|
+
__metadata("design:type", String)
|
|
129727
|
+
], UpdateMJThemeInput.prototype, "MonochromeURL", void 0);
|
|
129728
|
+
__decorate([
|
|
129729
|
+
Field(() => Boolean, { nullable: true }),
|
|
129730
|
+
__metadata("design:type", Boolean)
|
|
129731
|
+
], UpdateMJThemeInput.prototype, "IsDefault", void 0);
|
|
129732
|
+
__decorate([
|
|
129733
|
+
Field({ nullable: true }),
|
|
129734
|
+
__metadata("design:type", String)
|
|
129735
|
+
], UpdateMJThemeInput.prototype, "Status", void 0);
|
|
129736
|
+
__decorate([
|
|
129737
|
+
Field({ nullable: true }),
|
|
129738
|
+
__metadata("design:type", String)
|
|
129739
|
+
], UpdateMJThemeInput.prototype, "Overrides", void 0);
|
|
129740
|
+
__decorate([
|
|
129741
|
+
Field({ nullable: true }),
|
|
129742
|
+
__metadata("design:type", String)
|
|
129743
|
+
], UpdateMJThemeInput.prototype, "CustomCSS", void 0);
|
|
129744
|
+
__decorate([
|
|
129745
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
129746
|
+
__metadata("design:type", Array)
|
|
129747
|
+
], UpdateMJThemeInput.prototype, "OldValues___", void 0);
|
|
129748
|
+
__decorate([
|
|
129749
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
129750
|
+
__metadata("design:type", RestoreContextInput)
|
|
129751
|
+
], UpdateMJThemeInput.prototype, "RestoreContext___", void 0);
|
|
129752
|
+
UpdateMJThemeInput = __decorate([
|
|
129753
|
+
InputType()
|
|
129754
|
+
], UpdateMJThemeInput);
|
|
129755
|
+
export { UpdateMJThemeInput };
|
|
129756
|
+
//****************************************************************************
|
|
129757
|
+
// RESOLVER for MJ: Themes
|
|
129758
|
+
//****************************************************************************
|
|
129759
|
+
let RunMJThemeViewResult = class RunMJThemeViewResult {
|
|
129760
|
+
};
|
|
129761
|
+
__decorate([
|
|
129762
|
+
Field(() => [MJTheme_]),
|
|
129763
|
+
__metadata("design:type", Array)
|
|
129764
|
+
], RunMJThemeViewResult.prototype, "Results", void 0);
|
|
129765
|
+
__decorate([
|
|
129766
|
+
Field(() => String, { nullable: true }),
|
|
129767
|
+
__metadata("design:type", String)
|
|
129768
|
+
], RunMJThemeViewResult.prototype, "UserViewRunID", void 0);
|
|
129769
|
+
__decorate([
|
|
129770
|
+
Field(() => Int, { nullable: true }),
|
|
129771
|
+
__metadata("design:type", Number)
|
|
129772
|
+
], RunMJThemeViewResult.prototype, "RowCount", void 0);
|
|
129773
|
+
__decorate([
|
|
129774
|
+
Field(() => Int, { nullable: true }),
|
|
129775
|
+
__metadata("design:type", Number)
|
|
129776
|
+
], RunMJThemeViewResult.prototype, "TotalRowCount", void 0);
|
|
129777
|
+
__decorate([
|
|
129778
|
+
Field(() => Int, { nullable: true }),
|
|
129779
|
+
__metadata("design:type", Number)
|
|
129780
|
+
], RunMJThemeViewResult.prototype, "ExecutionTime", void 0);
|
|
129781
|
+
__decorate([
|
|
129782
|
+
Field({ nullable: true }),
|
|
129783
|
+
__metadata("design:type", String)
|
|
129784
|
+
], RunMJThemeViewResult.prototype, "ErrorMessage", void 0);
|
|
129785
|
+
__decorate([
|
|
129786
|
+
Field(() => Boolean, { nullable: false }),
|
|
129787
|
+
__metadata("design:type", Boolean)
|
|
129788
|
+
], RunMJThemeViewResult.prototype, "Success", void 0);
|
|
129789
|
+
RunMJThemeViewResult = __decorate([
|
|
129790
|
+
ObjectType()
|
|
129791
|
+
], RunMJThemeViewResult);
|
|
129792
|
+
export { RunMJThemeViewResult };
|
|
129793
|
+
let MJThemeResolver = class MJThemeResolver extends ResolverBase {
|
|
129794
|
+
async RunMJThemeViewByID(input, { providers, userPayload }, pubSub) {
|
|
129795
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
129796
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
129797
|
+
}
|
|
129798
|
+
async RunMJThemeViewByName(input, { providers, userPayload }, pubSub) {
|
|
129799
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
129800
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
129801
|
+
}
|
|
129802
|
+
async RunMJThemeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
129803
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
129804
|
+
input.EntityName = 'MJ: Themes';
|
|
129805
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
129806
|
+
}
|
|
129807
|
+
async MJTheme(ID, { userPayload, providers }, pubSub) {
|
|
129808
|
+
this.CheckUserReadPermissions('MJ: Themes', userPayload);
|
|
129809
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
129810
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwThemes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Themes', userPayload, EntityPermissionType.Read, 'AND');
|
|
129811
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
129812
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Themes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
129813
|
+
return result;
|
|
129814
|
+
}
|
|
129815
|
+
async CreateMJTheme(input, { providers, userPayload }, pubSub) {
|
|
129816
|
+
const provider = GetReadWriteProvider(providers);
|
|
129817
|
+
return this.CreateRecord('MJ: Themes', input, provider, userPayload, pubSub);
|
|
129818
|
+
}
|
|
129819
|
+
async UpdateMJTheme(input, { providers, userPayload }, pubSub) {
|
|
129820
|
+
const provider = GetReadWriteProvider(providers);
|
|
129821
|
+
return this.UpdateRecord('MJ: Themes', input, provider, userPayload, pubSub);
|
|
129822
|
+
}
|
|
129823
|
+
async DeleteMJTheme(ID, options, { providers, userPayload }, pubSub) {
|
|
129824
|
+
const provider = GetReadWriteProvider(providers);
|
|
129825
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
129826
|
+
return this.DeleteRecord('MJ: Themes', key, options, provider, userPayload, pubSub);
|
|
129827
|
+
}
|
|
129828
|
+
};
|
|
129829
|
+
__decorate([
|
|
129830
|
+
Query(() => RunMJThemeViewResult),
|
|
129831
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
129832
|
+
__param(1, Ctx()),
|
|
129833
|
+
__param(2, PubSub()),
|
|
129834
|
+
__metadata("design:type", Function),
|
|
129835
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
129836
|
+
__metadata("design:returntype", Promise)
|
|
129837
|
+
], MJThemeResolver.prototype, "RunMJThemeViewByID", null);
|
|
129838
|
+
__decorate([
|
|
129839
|
+
Query(() => RunMJThemeViewResult),
|
|
129840
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
129841
|
+
__param(1, Ctx()),
|
|
129842
|
+
__param(2, PubSub()),
|
|
129843
|
+
__metadata("design:type", Function),
|
|
129844
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
129845
|
+
__metadata("design:returntype", Promise)
|
|
129846
|
+
], MJThemeResolver.prototype, "RunMJThemeViewByName", null);
|
|
129847
|
+
__decorate([
|
|
129848
|
+
Query(() => RunMJThemeViewResult),
|
|
129849
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
129850
|
+
__param(1, Ctx()),
|
|
129851
|
+
__param(2, PubSub()),
|
|
129852
|
+
__metadata("design:type", Function),
|
|
129853
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
129854
|
+
__metadata("design:returntype", Promise)
|
|
129855
|
+
], MJThemeResolver.prototype, "RunMJThemeDynamicView", null);
|
|
129856
|
+
__decorate([
|
|
129857
|
+
Query(() => MJTheme_, { nullable: true }),
|
|
129858
|
+
__param(0, Arg('ID', () => String)),
|
|
129859
|
+
__param(1, Ctx()),
|
|
129860
|
+
__param(2, PubSub()),
|
|
129861
|
+
__metadata("design:type", Function),
|
|
129862
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
129863
|
+
__metadata("design:returntype", Promise)
|
|
129864
|
+
], MJThemeResolver.prototype, "MJTheme", null);
|
|
129865
|
+
__decorate([
|
|
129866
|
+
Mutation(() => MJTheme_),
|
|
129867
|
+
__param(0, Arg('input', () => CreateMJThemeInput)),
|
|
129868
|
+
__param(1, Ctx()),
|
|
129869
|
+
__param(2, PubSub()),
|
|
129870
|
+
__metadata("design:type", Function),
|
|
129871
|
+
__metadata("design:paramtypes", [CreateMJThemeInput, Object, PubSubEngine]),
|
|
129872
|
+
__metadata("design:returntype", Promise)
|
|
129873
|
+
], MJThemeResolver.prototype, "CreateMJTheme", null);
|
|
129874
|
+
__decorate([
|
|
129875
|
+
Mutation(() => MJTheme_),
|
|
129876
|
+
__param(0, Arg('input', () => UpdateMJThemeInput)),
|
|
129877
|
+
__param(1, Ctx()),
|
|
129878
|
+
__param(2, PubSub()),
|
|
129879
|
+
__metadata("design:type", Function),
|
|
129880
|
+
__metadata("design:paramtypes", [UpdateMJThemeInput, Object, PubSubEngine]),
|
|
129881
|
+
__metadata("design:returntype", Promise)
|
|
129882
|
+
], MJThemeResolver.prototype, "UpdateMJTheme", null);
|
|
129883
|
+
__decorate([
|
|
129884
|
+
Mutation(() => MJTheme_),
|
|
129885
|
+
__param(0, Arg('ID', () => String)),
|
|
129886
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
129887
|
+
__param(2, Ctx()),
|
|
129888
|
+
__param(3, PubSub()),
|
|
129889
|
+
__metadata("design:type", Function),
|
|
129890
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
129891
|
+
__metadata("design:returntype", Promise)
|
|
129892
|
+
], MJThemeResolver.prototype, "DeleteMJTheme", null);
|
|
129893
|
+
MJThemeResolver = __decorate([
|
|
129894
|
+
Resolver(MJTheme_)
|
|
129895
|
+
], MJThemeResolver);
|
|
129896
|
+
export { MJThemeResolver };
|
|
129897
|
+
//****************************************************************************
|
|
129269
129898
|
// ENTITY CLASS for MJ: User Application Entities
|
|
129270
129899
|
//****************************************************************************
|
|
129271
129900
|
let MJUserApplicationEntity_ = class MJUserApplicationEntity_ {
|