@memberjunction/server 6.1.2 → 6.2.0-edge.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/auth/exampleNewUserSubClass.js +2 -1
- package/dist/auth/exampleNewUserSubClass.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj.d.ts +255 -4
- package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj.js +1256 -0
- package/dist/generated/graphql-schemas/__mj.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +26 -0
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +59 -1
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/FetchEntityVectorsResolver.js +2 -2
- package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.d.ts.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.js +2 -1
- package/dist/resolvers/QuerySystemUserResolver.js.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts +37 -0
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.js +98 -8
- package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +5 -4
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/SearchEntitiesResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchEntitiesResolver.js +3 -1
- package/dist/resolvers/SearchEntitiesResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.d.ts +1 -0
- package/dist/resolvers/SearchKnowledgeResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.js +5 -0
- package/dist/resolvers/SearchKnowledgeResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js +1 -0
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.js +53 -4
- package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
- package/dist/services/MJStorageBlobStore.d.ts +41 -0
- package/dist/services/MJStorageBlobStore.d.ts.map +1 -0
- package/dist/services/MJStorageBlobStore.js +160 -0
- package/dist/services/MJStorageBlobStore.js.map +1 -0
- package/dist/util.d.ts +6 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +6 -3
- package/dist/util.js.map +1 -1
- package/package.json +92 -92
- package/src/__tests__/RealtimeClientSessionResolver.test.ts +229 -0
- package/src/__tests__/ResolverBase.isaPromotionCreate.test.ts +412 -0
- package/src/__tests__/SearchEntitiesResolver.readOnlyFallback.test.ts +78 -0
- package/src/__tests__/TransactionGroupResolver.refusals.test.ts +290 -0
- package/src/auth/exampleNewUserSubClass.ts +2 -2
- package/src/generated/graphql-schemas/__mj.ts +896 -5
- package/src/generic/ResolverBase.ts +61 -0
- package/src/index.ts +14 -1
- package/src/resolvers/FetchEntityVectorsResolver.ts +2 -2
- package/src/resolvers/QuerySystemUserResolver.ts +2 -1
- package/src/resolvers/RealtimeClientSessionResolver.ts +123 -10
- package/src/resolvers/RunAIAgentResolver.ts +5 -4
- package/src/resolvers/SearchEntitiesResolver.ts +3 -1
- package/src/resolvers/SearchKnowledgeResolver.ts +4 -0
- package/src/resolvers/SearchKnowledgeSystemUserResolver.ts +1 -0
- package/src/resolvers/TransactionGroupResolver.ts +57 -4
- package/src/services/MJStorageBlobStore.ts +209 -0
- package/src/util.ts +6 -3
|
@@ -69465,6 +69465,15 @@ __decorate([
|
|
|
69465
69465
|
Field({ nullable: true, description: `Optional JSON configuration bag defining field-level policies and capabilities (shape = IEntityFieldConfiguration). Includes Hierarchy options (IsHierarchy, MaxDepth) to explicitly declare recursive tree hierarchies.` }),
|
|
69466
69466
|
__metadata("design:type", String)
|
|
69467
69467
|
], MJEntityField_.prototype, "Configuration", void 0);
|
|
69468
|
+
__decorate([
|
|
69469
|
+
Field({ nullable: true, description: `Optional SQL WHERE fragment applied to every lookup on this foreign key (e.g. Status = 'Active'), AND-ed with whatever the user types, on both the browse list and the search path. Lets a picker be scoped from metadata rather than from every form template that renders the field. Authored by hand — CodeGen never derives or overwrites it. NULL means no filter, which is the pre-feature behaviour.` }),
|
|
69470
|
+
__metadata("design:type", String)
|
|
69471
|
+
], MJEntityField_.prototype, "RelatedEntityFilter", void 0);
|
|
69472
|
+
__decorate([
|
|
69473
|
+
Field({ nullable: true, description: `Optional ORDER BY fragment for the empty-query browse list on this foreign key, e.g. [Name] or [LastActivityDate] DESC. Does not affect the typed-query path, which is ordered by search relevance. Authored by hand — CodeGen never derives or overwrites it. NULL means order by the related entity's name field.` }),
|
|
69474
|
+
MaxLength(500),
|
|
69475
|
+
__metadata("design:type", String)
|
|
69476
|
+
], MJEntityField_.prototype, "RelatedEntityOrderBy", void 0);
|
|
69468
69477
|
__decorate([
|
|
69469
69478
|
Field({ nullable: true }),
|
|
69470
69479
|
__metadata("design:type", String)
|
|
@@ -69750,6 +69759,14 @@ __decorate([
|
|
|
69750
69759
|
Field({ nullable: true }),
|
|
69751
69760
|
__metadata("design:type", String)
|
|
69752
69761
|
], CreateMJEntityFieldInput.prototype, "Configuration", void 0);
|
|
69762
|
+
__decorate([
|
|
69763
|
+
Field({ nullable: true }),
|
|
69764
|
+
__metadata("design:type", String)
|
|
69765
|
+
], CreateMJEntityFieldInput.prototype, "RelatedEntityFilter", void 0);
|
|
69766
|
+
__decorate([
|
|
69767
|
+
Field({ nullable: true }),
|
|
69768
|
+
__metadata("design:type", String)
|
|
69769
|
+
], CreateMJEntityFieldInput.prototype, "RelatedEntityOrderBy", void 0);
|
|
69753
69770
|
__decorate([
|
|
69754
69771
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
69755
69772
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -69975,6 +69992,14 @@ __decorate([
|
|
|
69975
69992
|
Field({ nullable: true }),
|
|
69976
69993
|
__metadata("design:type", String)
|
|
69977
69994
|
], UpdateMJEntityFieldInput.prototype, "Configuration", void 0);
|
|
69995
|
+
__decorate([
|
|
69996
|
+
Field({ nullable: true }),
|
|
69997
|
+
__metadata("design:type", String)
|
|
69998
|
+
], UpdateMJEntityFieldInput.prototype, "RelatedEntityFilter", void 0);
|
|
69999
|
+
__decorate([
|
|
70000
|
+
Field({ nullable: true }),
|
|
70001
|
+
__metadata("design:type", String)
|
|
70002
|
+
], UpdateMJEntityFieldInput.prototype, "RelatedEntityOrderBy", void 0);
|
|
69978
70003
|
__decorate([
|
|
69979
70004
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69980
70005
|
__metadata("design:type", Array)
|
|
@@ -75494,6 +75519,865 @@ MJExternalDataSourceResolver = __decorate([
|
|
|
75494
75519
|
], MJExternalDataSourceResolver);
|
|
75495
75520
|
export { MJExternalDataSourceResolver };
|
|
75496
75521
|
//****************************************************************************
|
|
75522
|
+
// ENTITY CLASS for MJ: Feature Value Caches
|
|
75523
|
+
//****************************************************************************
|
|
75524
|
+
let MJFeatureValueCache_ = class MJFeatureValueCache_ {
|
|
75525
|
+
};
|
|
75526
|
+
__decorate([
|
|
75527
|
+
Field({ description: `Unique identifier for this feature value cache entry.` }),
|
|
75528
|
+
MaxLength(36),
|
|
75529
|
+
__metadata("design:type", String)
|
|
75530
|
+
], MJFeatureValueCache_.prototype, "ID", void 0);
|
|
75531
|
+
__decorate([
|
|
75532
|
+
Field({ nullable: true, description: `Optional reference to the RecordProcess that produced this cache entry. When NULL, the cached result is scoped by PromptID only and shared across pipelines using the same prompt.` }),
|
|
75533
|
+
MaxLength(36),
|
|
75534
|
+
__metadata("design:type", String)
|
|
75535
|
+
], MJFeatureValueCache_.prototype, "RecordProcessID", void 0);
|
|
75536
|
+
__decorate([
|
|
75537
|
+
Field({ nullable: true, description: `Reference to the AI Prompt used to compute this cached entry.` }),
|
|
75538
|
+
MaxLength(36),
|
|
75539
|
+
__metadata("design:type", String)
|
|
75540
|
+
], MJFeatureValueCache_.prototype, "PromptID", void 0);
|
|
75541
|
+
__decorate([
|
|
75542
|
+
Field({ nullable: true, description: `SHA-256 content hash of the rendered prompt template, output schema, and constraint instructions at execution time.` }),
|
|
75543
|
+
MaxLength(64),
|
|
75544
|
+
__metadata("design:type", String)
|
|
75545
|
+
], MJFeatureValueCache_.prototype, "PromptVersionHash", void 0);
|
|
75546
|
+
__decorate([
|
|
75547
|
+
Field({ nullable: true, description: `SHA-256 hash of the output value constraint definitions. Changes to allowed enum values or ranges invalidate cached results.` }),
|
|
75548
|
+
MaxLength(64),
|
|
75549
|
+
__metadata("design:type", String)
|
|
75550
|
+
], MJFeatureValueCache_.prototype, "ConstraintHash", void 0);
|
|
75551
|
+
__decorate([
|
|
75552
|
+
Field({ nullable: true, description: `SHA-256 hash over the canonicalized JSON key field values. The primary lookup key.` }),
|
|
75553
|
+
MaxLength(64),
|
|
75554
|
+
__metadata("design:type", String)
|
|
75555
|
+
], MJFeatureValueCache_.prototype, "KeyHash", void 0);
|
|
75556
|
+
__decorate([
|
|
75557
|
+
Field({ nullable: true, description: `Human-readable plain text display of the key (e.g. "Senior Director, Field Marketing"). Makes this table legible as reference data.` }),
|
|
75558
|
+
MaxLength(500),
|
|
75559
|
+
__metadata("design:type", String)
|
|
75560
|
+
], MJFeatureValueCache_.prototype, "KeyDisplay", void 0);
|
|
75561
|
+
__decorate([
|
|
75562
|
+
Field({ nullable: true, description: `Full JSON representation of the input key fields and their values.` }),
|
|
75563
|
+
__metadata("design:type", String)
|
|
75564
|
+
], MJFeatureValueCache_.prototype, "KeyJSON", void 0);
|
|
75565
|
+
__decorate([
|
|
75566
|
+
Field({ nullable: true, description: `Cached computed outputs JSON fragment. Stored directly so archival of AI Prompt Runs does not lose cached values.` }),
|
|
75567
|
+
__metadata("design:type", String)
|
|
75568
|
+
], MJFeatureValueCache_.prototype, "OutputsJSON", void 0);
|
|
75569
|
+
__decorate([
|
|
75570
|
+
Field({ nullable: true, description: `Optional model reasoning or rationale captured from the prompt execution.` }),
|
|
75571
|
+
__metadata("design:type", String)
|
|
75572
|
+
], MJFeatureValueCache_.prototype, "Reasoning", void 0);
|
|
75573
|
+
__decorate([
|
|
75574
|
+
Field({ nullable: true, description: `Soft reference to the AI Prompt Run that first computed and populated this cached result.` }),
|
|
75575
|
+
MaxLength(36),
|
|
75576
|
+
__metadata("design:type", String)
|
|
75577
|
+
], MJFeatureValueCache_.prototype, "AIPromptRunID", void 0);
|
|
75578
|
+
__decorate([
|
|
75579
|
+
Field(() => Int, { nullable: true, description: `Total number of times this cached result has been served to skip an LLM invocation.` }),
|
|
75580
|
+
__metadata("design:type", Number)
|
|
75581
|
+
], MJFeatureValueCache_.prototype, "HitCount", void 0);
|
|
75582
|
+
__decorate([
|
|
75583
|
+
Field({ nullable: true, description: `Timestamp when this cached entry was last read and served.` }),
|
|
75584
|
+
__metadata("design:type", Date)
|
|
75585
|
+
], MJFeatureValueCache_.prototype, "LastHitAt", void 0);
|
|
75586
|
+
__decorate([
|
|
75587
|
+
Field({ nullable: true, description: `Timestamp when this cached entry was originally computed.` }),
|
|
75588
|
+
__metadata("design:type", Date)
|
|
75589
|
+
], MJFeatureValueCache_.prototype, "ComputedAt", void 0);
|
|
75590
|
+
__decorate([
|
|
75591
|
+
Field({ nullable: true, description: `Optional expiration timestamp for time-to-live invalidation. NULL means no expiration.` }),
|
|
75592
|
+
__metadata("design:type", Date)
|
|
75593
|
+
], MJFeatureValueCache_.prototype, "ExpiresAt", void 0);
|
|
75594
|
+
__decorate([
|
|
75595
|
+
Field({ description: `Timestamp when this record was created.` }),
|
|
75596
|
+
__metadata("design:type", Date)
|
|
75597
|
+
], MJFeatureValueCache_.prototype, "_mj__CreatedAt", void 0);
|
|
75598
|
+
__decorate([
|
|
75599
|
+
Field({ description: `Timestamp when this record was last updated.` }),
|
|
75600
|
+
__metadata("design:type", Date)
|
|
75601
|
+
], MJFeatureValueCache_.prototype, "_mj__UpdatedAt", void 0);
|
|
75602
|
+
__decorate([
|
|
75603
|
+
Field({ nullable: true }),
|
|
75604
|
+
MaxLength(255),
|
|
75605
|
+
__metadata("design:type", String)
|
|
75606
|
+
], MJFeatureValueCache_.prototype, "RecordProcess", void 0);
|
|
75607
|
+
__decorate([
|
|
75608
|
+
Field({ nullable: true }),
|
|
75609
|
+
MaxLength(255),
|
|
75610
|
+
__metadata("design:type", String)
|
|
75611
|
+
], MJFeatureValueCache_.prototype, "Prompt", void 0);
|
|
75612
|
+
__decorate([
|
|
75613
|
+
Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
|
|
75614
|
+
__metadata("design:type", Array)
|
|
75615
|
+
], MJFeatureValueCache_.prototype, "ReadableFields___", void 0);
|
|
75616
|
+
MJFeatureValueCache_ = __decorate([
|
|
75617
|
+
ObjectType({ description: `Dedup dictionary table for Feature Pipelines. Caches computed outputs by canonical input key hash, prompt version, and constraint hash. Distinct input strings (e.g. unique job titles) are computed once and reused across all matching records.` })
|
|
75618
|
+
], MJFeatureValueCache_);
|
|
75619
|
+
export { MJFeatureValueCache_ };
|
|
75620
|
+
//****************************************************************************
|
|
75621
|
+
// INPUT TYPE for MJ: Feature Value Caches
|
|
75622
|
+
//****************************************************************************
|
|
75623
|
+
let CreateMJFeatureValueCacheInput = class CreateMJFeatureValueCacheInput {
|
|
75624
|
+
};
|
|
75625
|
+
__decorate([
|
|
75626
|
+
Field({ nullable: true }),
|
|
75627
|
+
__metadata("design:type", String)
|
|
75628
|
+
], CreateMJFeatureValueCacheInput.prototype, "ID", void 0);
|
|
75629
|
+
__decorate([
|
|
75630
|
+
Field({ nullable: true }),
|
|
75631
|
+
__metadata("design:type", String)
|
|
75632
|
+
], CreateMJFeatureValueCacheInput.prototype, "RecordProcessID", void 0);
|
|
75633
|
+
__decorate([
|
|
75634
|
+
Field({ nullable: true }),
|
|
75635
|
+
__metadata("design:type", String)
|
|
75636
|
+
], CreateMJFeatureValueCacheInput.prototype, "PromptID", void 0);
|
|
75637
|
+
__decorate([
|
|
75638
|
+
Field({ nullable: true }),
|
|
75639
|
+
__metadata("design:type", String)
|
|
75640
|
+
], CreateMJFeatureValueCacheInput.prototype, "PromptVersionHash", void 0);
|
|
75641
|
+
__decorate([
|
|
75642
|
+
Field({ nullable: true }),
|
|
75643
|
+
__metadata("design:type", String)
|
|
75644
|
+
], CreateMJFeatureValueCacheInput.prototype, "ConstraintHash", void 0);
|
|
75645
|
+
__decorate([
|
|
75646
|
+
Field({ nullable: true }),
|
|
75647
|
+
__metadata("design:type", String)
|
|
75648
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyHash", void 0);
|
|
75649
|
+
__decorate([
|
|
75650
|
+
Field({ nullable: true }),
|
|
75651
|
+
__metadata("design:type", String)
|
|
75652
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyDisplay", void 0);
|
|
75653
|
+
__decorate([
|
|
75654
|
+
Field({ nullable: true }),
|
|
75655
|
+
__metadata("design:type", String)
|
|
75656
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyJSON", void 0);
|
|
75657
|
+
__decorate([
|
|
75658
|
+
Field({ nullable: true }),
|
|
75659
|
+
__metadata("design:type", String)
|
|
75660
|
+
], CreateMJFeatureValueCacheInput.prototype, "OutputsJSON", void 0);
|
|
75661
|
+
__decorate([
|
|
75662
|
+
Field({ nullable: true }),
|
|
75663
|
+
__metadata("design:type", String)
|
|
75664
|
+
], CreateMJFeatureValueCacheInput.prototype, "Reasoning", void 0);
|
|
75665
|
+
__decorate([
|
|
75666
|
+
Field({ nullable: true }),
|
|
75667
|
+
__metadata("design:type", String)
|
|
75668
|
+
], CreateMJFeatureValueCacheInput.prototype, "AIPromptRunID", void 0);
|
|
75669
|
+
__decorate([
|
|
75670
|
+
Field(() => Int, { nullable: true }),
|
|
75671
|
+
__metadata("design:type", Number)
|
|
75672
|
+
], CreateMJFeatureValueCacheInput.prototype, "HitCount", void 0);
|
|
75673
|
+
__decorate([
|
|
75674
|
+
Field({ nullable: true }),
|
|
75675
|
+
__metadata("design:type", Date)
|
|
75676
|
+
], CreateMJFeatureValueCacheInput.prototype, "LastHitAt", void 0);
|
|
75677
|
+
__decorate([
|
|
75678
|
+
Field({ nullable: true }),
|
|
75679
|
+
__metadata("design:type", Date)
|
|
75680
|
+
], CreateMJFeatureValueCacheInput.prototype, "ComputedAt", void 0);
|
|
75681
|
+
__decorate([
|
|
75682
|
+
Field({ nullable: true }),
|
|
75683
|
+
__metadata("design:type", Date)
|
|
75684
|
+
], CreateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
|
|
75685
|
+
__decorate([
|
|
75686
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
75687
|
+
__metadata("design:type", RestoreContextInput)
|
|
75688
|
+
], CreateMJFeatureValueCacheInput.prototype, "RestoreContext___", void 0);
|
|
75689
|
+
CreateMJFeatureValueCacheInput = __decorate([
|
|
75690
|
+
InputType()
|
|
75691
|
+
], CreateMJFeatureValueCacheInput);
|
|
75692
|
+
export { CreateMJFeatureValueCacheInput };
|
|
75693
|
+
//****************************************************************************
|
|
75694
|
+
// INPUT TYPE for MJ: Feature Value Caches
|
|
75695
|
+
//****************************************************************************
|
|
75696
|
+
let UpdateMJFeatureValueCacheInput = class UpdateMJFeatureValueCacheInput {
|
|
75697
|
+
};
|
|
75698
|
+
__decorate([
|
|
75699
|
+
Field(),
|
|
75700
|
+
__metadata("design:type", String)
|
|
75701
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ID", void 0);
|
|
75702
|
+
__decorate([
|
|
75703
|
+
Field({ nullable: true }),
|
|
75704
|
+
__metadata("design:type", String)
|
|
75705
|
+
], UpdateMJFeatureValueCacheInput.prototype, "RecordProcessID", void 0);
|
|
75706
|
+
__decorate([
|
|
75707
|
+
Field({ nullable: true }),
|
|
75708
|
+
__metadata("design:type", String)
|
|
75709
|
+
], UpdateMJFeatureValueCacheInput.prototype, "PromptID", void 0);
|
|
75710
|
+
__decorate([
|
|
75711
|
+
Field({ nullable: true }),
|
|
75712
|
+
__metadata("design:type", String)
|
|
75713
|
+
], UpdateMJFeatureValueCacheInput.prototype, "PromptVersionHash", void 0);
|
|
75714
|
+
__decorate([
|
|
75715
|
+
Field({ nullable: true }),
|
|
75716
|
+
__metadata("design:type", String)
|
|
75717
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ConstraintHash", void 0);
|
|
75718
|
+
__decorate([
|
|
75719
|
+
Field({ nullable: true }),
|
|
75720
|
+
__metadata("design:type", String)
|
|
75721
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyHash", void 0);
|
|
75722
|
+
__decorate([
|
|
75723
|
+
Field({ nullable: true }),
|
|
75724
|
+
__metadata("design:type", String)
|
|
75725
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyDisplay", void 0);
|
|
75726
|
+
__decorate([
|
|
75727
|
+
Field({ nullable: true }),
|
|
75728
|
+
__metadata("design:type", String)
|
|
75729
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyJSON", void 0);
|
|
75730
|
+
__decorate([
|
|
75731
|
+
Field({ nullable: true }),
|
|
75732
|
+
__metadata("design:type", String)
|
|
75733
|
+
], UpdateMJFeatureValueCacheInput.prototype, "OutputsJSON", void 0);
|
|
75734
|
+
__decorate([
|
|
75735
|
+
Field({ nullable: true }),
|
|
75736
|
+
__metadata("design:type", String)
|
|
75737
|
+
], UpdateMJFeatureValueCacheInput.prototype, "Reasoning", void 0);
|
|
75738
|
+
__decorate([
|
|
75739
|
+
Field({ nullable: true }),
|
|
75740
|
+
__metadata("design:type", String)
|
|
75741
|
+
], UpdateMJFeatureValueCacheInput.prototype, "AIPromptRunID", void 0);
|
|
75742
|
+
__decorate([
|
|
75743
|
+
Field(() => Int, { nullable: true }),
|
|
75744
|
+
__metadata("design:type", Number)
|
|
75745
|
+
], UpdateMJFeatureValueCacheInput.prototype, "HitCount", void 0);
|
|
75746
|
+
__decorate([
|
|
75747
|
+
Field({ nullable: true }),
|
|
75748
|
+
__metadata("design:type", Date)
|
|
75749
|
+
], UpdateMJFeatureValueCacheInput.prototype, "LastHitAt", void 0);
|
|
75750
|
+
__decorate([
|
|
75751
|
+
Field({ nullable: true }),
|
|
75752
|
+
__metadata("design:type", Date)
|
|
75753
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ComputedAt", void 0);
|
|
75754
|
+
__decorate([
|
|
75755
|
+
Field({ nullable: true }),
|
|
75756
|
+
__metadata("design:type", Date)
|
|
75757
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
|
|
75758
|
+
__decorate([
|
|
75759
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
75760
|
+
__metadata("design:type", Array)
|
|
75761
|
+
], UpdateMJFeatureValueCacheInput.prototype, "OldValues___", void 0);
|
|
75762
|
+
__decorate([
|
|
75763
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
75764
|
+
__metadata("design:type", RestoreContextInput)
|
|
75765
|
+
], UpdateMJFeatureValueCacheInput.prototype, "RestoreContext___", void 0);
|
|
75766
|
+
UpdateMJFeatureValueCacheInput = __decorate([
|
|
75767
|
+
InputType()
|
|
75768
|
+
], UpdateMJFeatureValueCacheInput);
|
|
75769
|
+
export { UpdateMJFeatureValueCacheInput };
|
|
75770
|
+
//****************************************************************************
|
|
75771
|
+
// RESOLVER for MJ: Feature Value Caches
|
|
75772
|
+
//****************************************************************************
|
|
75773
|
+
let RunMJFeatureValueCacheViewResult = class RunMJFeatureValueCacheViewResult {
|
|
75774
|
+
};
|
|
75775
|
+
__decorate([
|
|
75776
|
+
Field(() => [MJFeatureValueCache_]),
|
|
75777
|
+
__metadata("design:type", Array)
|
|
75778
|
+
], RunMJFeatureValueCacheViewResult.prototype, "Results", void 0);
|
|
75779
|
+
__decorate([
|
|
75780
|
+
Field(() => String, { nullable: true }),
|
|
75781
|
+
__metadata("design:type", String)
|
|
75782
|
+
], RunMJFeatureValueCacheViewResult.prototype, "UserViewRunID", void 0);
|
|
75783
|
+
__decorate([
|
|
75784
|
+
Field(() => Int, { nullable: true }),
|
|
75785
|
+
__metadata("design:type", Number)
|
|
75786
|
+
], RunMJFeatureValueCacheViewResult.prototype, "RowCount", void 0);
|
|
75787
|
+
__decorate([
|
|
75788
|
+
Field(() => Int, { nullable: true }),
|
|
75789
|
+
__metadata("design:type", Number)
|
|
75790
|
+
], RunMJFeatureValueCacheViewResult.prototype, "TotalRowCount", void 0);
|
|
75791
|
+
__decorate([
|
|
75792
|
+
Field(() => Int, { nullable: true }),
|
|
75793
|
+
__metadata("design:type", Number)
|
|
75794
|
+
], RunMJFeatureValueCacheViewResult.prototype, "ExecutionTime", void 0);
|
|
75795
|
+
__decorate([
|
|
75796
|
+
Field({ nullable: true }),
|
|
75797
|
+
__metadata("design:type", String)
|
|
75798
|
+
], RunMJFeatureValueCacheViewResult.prototype, "ErrorMessage", void 0);
|
|
75799
|
+
__decorate([
|
|
75800
|
+
Field(() => Boolean, { nullable: false }),
|
|
75801
|
+
__metadata("design:type", Boolean)
|
|
75802
|
+
], RunMJFeatureValueCacheViewResult.prototype, "Success", void 0);
|
|
75803
|
+
RunMJFeatureValueCacheViewResult = __decorate([
|
|
75804
|
+
ObjectType()
|
|
75805
|
+
], RunMJFeatureValueCacheViewResult);
|
|
75806
|
+
export { RunMJFeatureValueCacheViewResult };
|
|
75807
|
+
let MJFeatureValueCacheResolver = class MJFeatureValueCacheResolver extends ResolverBase {
|
|
75808
|
+
async RunMJFeatureValueCacheViewByID(input, { providers, userPayload }, pubSub) {
|
|
75809
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75810
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
75811
|
+
}
|
|
75812
|
+
async RunMJFeatureValueCacheViewByName(input, { providers, userPayload }, pubSub) {
|
|
75813
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75814
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
75815
|
+
}
|
|
75816
|
+
async RunMJFeatureValueCacheDynamicView(input, { providers, userPayload }, pubSub) {
|
|
75817
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75818
|
+
input.EntityName = 'MJ: Feature Value Caches';
|
|
75819
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
75820
|
+
}
|
|
75821
|
+
async MJFeatureValueCache(ID, { userPayload, providers }, pubSub) {
|
|
75822
|
+
this.CheckUserReadPermissions('MJ: Feature Value Caches', userPayload);
|
|
75823
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75824
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFeatureValueCaches')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Feature Value Caches', userPayload, EntityPermissionType.Read, 'AND');
|
|
75825
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
75826
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Feature Value Caches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75827
|
+
return result;
|
|
75828
|
+
}
|
|
75829
|
+
async CreateMJFeatureValueCache(input, { providers, userPayload }, pubSub) {
|
|
75830
|
+
const provider = GetReadWriteProvider(providers);
|
|
75831
|
+
return this.CreateRecord('MJ: Feature Value Caches', input, provider, userPayload, pubSub);
|
|
75832
|
+
}
|
|
75833
|
+
async UpdateMJFeatureValueCache(input, { providers, userPayload }, pubSub) {
|
|
75834
|
+
const provider = GetReadWriteProvider(providers);
|
|
75835
|
+
return this.UpdateRecord('MJ: Feature Value Caches', input, provider, userPayload, pubSub);
|
|
75836
|
+
}
|
|
75837
|
+
async DeleteMJFeatureValueCache(ID, options, { providers, userPayload }, pubSub) {
|
|
75838
|
+
const provider = GetReadWriteProvider(providers);
|
|
75839
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
75840
|
+
return this.DeleteRecord('MJ: Feature Value Caches', key, options, provider, userPayload, pubSub);
|
|
75841
|
+
}
|
|
75842
|
+
};
|
|
75843
|
+
__decorate([
|
|
75844
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75845
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
75846
|
+
__param(1, Ctx()),
|
|
75847
|
+
__param(2, PubSub()),
|
|
75848
|
+
__metadata("design:type", Function),
|
|
75849
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
75850
|
+
__metadata("design:returntype", Promise)
|
|
75851
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheViewByID", null);
|
|
75852
|
+
__decorate([
|
|
75853
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75854
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
75855
|
+
__param(1, Ctx()),
|
|
75856
|
+
__param(2, PubSub()),
|
|
75857
|
+
__metadata("design:type", Function),
|
|
75858
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
75859
|
+
__metadata("design:returntype", Promise)
|
|
75860
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheViewByName", null);
|
|
75861
|
+
__decorate([
|
|
75862
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75863
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
75864
|
+
__param(1, Ctx()),
|
|
75865
|
+
__param(2, PubSub()),
|
|
75866
|
+
__metadata("design:type", Function),
|
|
75867
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
75868
|
+
__metadata("design:returntype", Promise)
|
|
75869
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheDynamicView", null);
|
|
75870
|
+
__decorate([
|
|
75871
|
+
Query(() => MJFeatureValueCache_, { nullable: true }),
|
|
75872
|
+
__param(0, Arg('ID', () => String)),
|
|
75873
|
+
__param(1, Ctx()),
|
|
75874
|
+
__param(2, PubSub()),
|
|
75875
|
+
__metadata("design:type", Function),
|
|
75876
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
75877
|
+
__metadata("design:returntype", Promise)
|
|
75878
|
+
], MJFeatureValueCacheResolver.prototype, "MJFeatureValueCache", null);
|
|
75879
|
+
__decorate([
|
|
75880
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75881
|
+
__param(0, Arg('input', () => CreateMJFeatureValueCacheInput)),
|
|
75882
|
+
__param(1, Ctx()),
|
|
75883
|
+
__param(2, PubSub()),
|
|
75884
|
+
__metadata("design:type", Function),
|
|
75885
|
+
__metadata("design:paramtypes", [CreateMJFeatureValueCacheInput, Object, PubSubEngine]),
|
|
75886
|
+
__metadata("design:returntype", Promise)
|
|
75887
|
+
], MJFeatureValueCacheResolver.prototype, "CreateMJFeatureValueCache", null);
|
|
75888
|
+
__decorate([
|
|
75889
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75890
|
+
__param(0, Arg('input', () => UpdateMJFeatureValueCacheInput)),
|
|
75891
|
+
__param(1, Ctx()),
|
|
75892
|
+
__param(2, PubSub()),
|
|
75893
|
+
__metadata("design:type", Function),
|
|
75894
|
+
__metadata("design:paramtypes", [UpdateMJFeatureValueCacheInput, Object, PubSubEngine]),
|
|
75895
|
+
__metadata("design:returntype", Promise)
|
|
75896
|
+
], MJFeatureValueCacheResolver.prototype, "UpdateMJFeatureValueCache", null);
|
|
75897
|
+
__decorate([
|
|
75898
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75899
|
+
__param(0, Arg('ID', () => String)),
|
|
75900
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
75901
|
+
__param(2, Ctx()),
|
|
75902
|
+
__param(3, PubSub()),
|
|
75903
|
+
__metadata("design:type", Function),
|
|
75904
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
75905
|
+
__metadata("design:returntype", Promise)
|
|
75906
|
+
], MJFeatureValueCacheResolver.prototype, "DeleteMJFeatureValueCache", null);
|
|
75907
|
+
MJFeatureValueCacheResolver = __decorate([
|
|
75908
|
+
Resolver(MJFeatureValueCache_)
|
|
75909
|
+
], MJFeatureValueCacheResolver);
|
|
75910
|
+
export { MJFeatureValueCacheResolver };
|
|
75911
|
+
//****************************************************************************
|
|
75912
|
+
// ENTITY CLASS for MJ: Feature Values
|
|
75913
|
+
//****************************************************************************
|
|
75914
|
+
let MJFeatureValue_ = class MJFeatureValue_ {
|
|
75915
|
+
};
|
|
75916
|
+
__decorate([
|
|
75917
|
+
Field({ description: `Unique identifier for this feature value history record.` }),
|
|
75918
|
+
MaxLength(36),
|
|
75919
|
+
__metadata("design:type", String)
|
|
75920
|
+
], MJFeatureValue_.prototype, "ID", void 0);
|
|
75921
|
+
__decorate([
|
|
75922
|
+
Field({ nullable: true, description: `The Record Process (Feature Pipeline) that computed this feature value.` }),
|
|
75923
|
+
MaxLength(36),
|
|
75924
|
+
__metadata("design:type", String)
|
|
75925
|
+
], MJFeatureValue_.prototype, "RecordProcessID", void 0);
|
|
75926
|
+
__decorate([
|
|
75927
|
+
Field({ nullable: true, description: `The entity of the record this feature was computed for.` }),
|
|
75928
|
+
MaxLength(36),
|
|
75929
|
+
__metadata("design:type", String)
|
|
75930
|
+
], MJFeatureValue_.prototype, "EntityID", void 0);
|
|
75931
|
+
__decorate([
|
|
75932
|
+
Field({ nullable: true, description: `Serialized primary key of the record this feature was computed for. Matches ProcessRunDetail.RecordID.` }),
|
|
75933
|
+
MaxLength(900),
|
|
75934
|
+
__metadata("design:type", String)
|
|
75935
|
+
], MJFeatureValue_.prototype, "RecordID", void 0);
|
|
75936
|
+
__decorate([
|
|
75937
|
+
Field({ nullable: true, description: `Name of the feature, matching DataFeatureOutput.Name.` }),
|
|
75938
|
+
MaxLength(255),
|
|
75939
|
+
__metadata("design:type", String)
|
|
75940
|
+
], MJFeatureValue_.prototype, "FeatureName", void 0);
|
|
75941
|
+
__decorate([
|
|
75942
|
+
Field({ nullable: true, description: `Computed value as text, for text and categorical features.` }),
|
|
75943
|
+
__metadata("design:type", String)
|
|
75944
|
+
], MJFeatureValue_.prototype, "ValueText", void 0);
|
|
75945
|
+
__decorate([
|
|
75946
|
+
Field(() => Float, { nullable: true, description: `Computed value as floating-point numeric, for numeric and score features.` }),
|
|
75947
|
+
__metadata("design:type", Number)
|
|
75948
|
+
], MJFeatureValue_.prototype, "ValueNumeric", void 0);
|
|
75949
|
+
__decorate([
|
|
75950
|
+
Field({ nullable: true, description: `Computed value as datetimeoffset, for date and timestamp features.` }),
|
|
75951
|
+
__metadata("design:type", Date)
|
|
75952
|
+
], MJFeatureValue_.prototype, "ValueDate", void 0);
|
|
75953
|
+
__decorate([
|
|
75954
|
+
Field(() => Boolean, { nullable: true, description: `Computed value as boolean bit flag.` }),
|
|
75955
|
+
__metadata("design:type", Boolean)
|
|
75956
|
+
], MJFeatureValue_.prototype, "ValueBoolean", void 0);
|
|
75957
|
+
__decorate([
|
|
75958
|
+
Field({ nullable: true, description: `Computed value as raw JSON string, for array or complex object features.` }),
|
|
75959
|
+
__metadata("design:type", String)
|
|
75960
|
+
], MJFeatureValue_.prototype, "ValueJSON", void 0);
|
|
75961
|
+
__decorate([
|
|
75962
|
+
Field({ nullable: true, description: `Optional model reasoning or rationale captured from the prompt execution.` }),
|
|
75963
|
+
__metadata("design:type", String)
|
|
75964
|
+
], MJFeatureValue_.prototype, "Reasoning", void 0);
|
|
75965
|
+
__decorate([
|
|
75966
|
+
Field(() => Float, { nullable: true, description: `Optional confidence score associated with this computed value.` }),
|
|
75967
|
+
__metadata("design:type", Number)
|
|
75968
|
+
], MJFeatureValue_.prototype, "Confidence", void 0);
|
|
75969
|
+
__decorate([
|
|
75970
|
+
Field({ nullable: true, description: `Reference to the AI Prompt used to compute this feature value.` }),
|
|
75971
|
+
MaxLength(36),
|
|
75972
|
+
__metadata("design:type", String)
|
|
75973
|
+
], MJFeatureValue_.prototype, "PromptID", void 0);
|
|
75974
|
+
__decorate([
|
|
75975
|
+
Field({ nullable: true, description: `SHA-256 content hash of the rendered prompt template and instructions at execution time.` }),
|
|
75976
|
+
MaxLength(64),
|
|
75977
|
+
__metadata("design:type", String)
|
|
75978
|
+
], MJFeatureValue_.prototype, "PromptVersionHash", void 0);
|
|
75979
|
+
__decorate([
|
|
75980
|
+
Field({ nullable: true, description: `SHA-256 hash of the value constraint definitions in effect when this feature was computed.` }),
|
|
75981
|
+
MaxLength(64),
|
|
75982
|
+
__metadata("design:type", String)
|
|
75983
|
+
], MJFeatureValue_.prototype, "ConstraintHash", void 0);
|
|
75984
|
+
__decorate([
|
|
75985
|
+
Field({ nullable: true, description: `Reference to the Process Run during which this feature was computed.` }),
|
|
75986
|
+
MaxLength(36),
|
|
75987
|
+
__metadata("design:type", String)
|
|
75988
|
+
], MJFeatureValue_.prototype, "ProcessRunID", void 0);
|
|
75989
|
+
__decorate([
|
|
75990
|
+
Field({ nullable: true, description: `Reference to the specific Process Run Detail row for this record execution.` }),
|
|
75991
|
+
MaxLength(36),
|
|
75992
|
+
__metadata("design:type", String)
|
|
75993
|
+
], MJFeatureValue_.prototype, "ProcessRunDetailID", void 0);
|
|
75994
|
+
__decorate([
|
|
75995
|
+
Field({ nullable: true, description: `Soft reference to the AI Prompt Run that computed this value.` }),
|
|
75996
|
+
MaxLength(36),
|
|
75997
|
+
__metadata("design:type", String)
|
|
75998
|
+
], MJFeatureValue_.prototype, "AIPromptRunID", void 0);
|
|
75999
|
+
__decorate([
|
|
76000
|
+
Field({ nullable: true, description: `Optional reference to the FeatureValueCache entry if this value was served from cache.` }),
|
|
76001
|
+
MaxLength(36),
|
|
76002
|
+
__metadata("design:type", String)
|
|
76003
|
+
], MJFeatureValue_.prototype, "FeatureValueCacheID", void 0);
|
|
76004
|
+
__decorate([
|
|
76005
|
+
Field({ nullable: true, description: `Timestamp when this feature value was computed.` }),
|
|
76006
|
+
__metadata("design:type", Date)
|
|
76007
|
+
], MJFeatureValue_.prototype, "ComputedAt", void 0);
|
|
76008
|
+
__decorate([
|
|
76009
|
+
Field({ description: `Timestamp when this record was created.` }),
|
|
76010
|
+
__metadata("design:type", Date)
|
|
76011
|
+
], MJFeatureValue_.prototype, "_mj__CreatedAt", void 0);
|
|
76012
|
+
__decorate([
|
|
76013
|
+
Field({ description: `Timestamp when this record was last updated.` }),
|
|
76014
|
+
__metadata("design:type", Date)
|
|
76015
|
+
], MJFeatureValue_.prototype, "_mj__UpdatedAt", void 0);
|
|
76016
|
+
__decorate([
|
|
76017
|
+
Field({ nullable: true }),
|
|
76018
|
+
MaxLength(255),
|
|
76019
|
+
__metadata("design:type", String)
|
|
76020
|
+
], MJFeatureValue_.prototype, "RecordProcess", void 0);
|
|
76021
|
+
__decorate([
|
|
76022
|
+
Field({ nullable: true }),
|
|
76023
|
+
MaxLength(255),
|
|
76024
|
+
__metadata("design:type", String)
|
|
76025
|
+
], MJFeatureValue_.prototype, "Entity", void 0);
|
|
76026
|
+
__decorate([
|
|
76027
|
+
Field({ nullable: true }),
|
|
76028
|
+
MaxLength(255),
|
|
76029
|
+
__metadata("design:type", String)
|
|
76030
|
+
], MJFeatureValue_.prototype, "Prompt", void 0);
|
|
76031
|
+
__decorate([
|
|
76032
|
+
Field({ nullable: true }),
|
|
76033
|
+
MaxLength(450),
|
|
76034
|
+
__metadata("design:type", String)
|
|
76035
|
+
], MJFeatureValue_.prototype, "ProcessRunDetail", void 0);
|
|
76036
|
+
__decorate([
|
|
76037
|
+
Field({ nullable: true }),
|
|
76038
|
+
MaxLength(500),
|
|
76039
|
+
__metadata("design:type", String)
|
|
76040
|
+
], MJFeatureValue_.prototype, "FeatureValueCache", void 0);
|
|
76041
|
+
__decorate([
|
|
76042
|
+
Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
|
|
76043
|
+
__metadata("design:type", Array)
|
|
76044
|
+
], MJFeatureValue_.prototype, "ReadableFields___", void 0);
|
|
76045
|
+
MJFeatureValue_ = __decorate([
|
|
76046
|
+
ObjectType({ description: `Complete historical audit table for Feature Pipelines. Records every feature value ever computed per entity record, with full provenance, model reasoning, and run back-links.` })
|
|
76047
|
+
], MJFeatureValue_);
|
|
76048
|
+
export { MJFeatureValue_ };
|
|
76049
|
+
//****************************************************************************
|
|
76050
|
+
// INPUT TYPE for MJ: Feature Values
|
|
76051
|
+
//****************************************************************************
|
|
76052
|
+
let CreateMJFeatureValueInput = class CreateMJFeatureValueInput {
|
|
76053
|
+
};
|
|
76054
|
+
__decorate([
|
|
76055
|
+
Field({ nullable: true }),
|
|
76056
|
+
__metadata("design:type", String)
|
|
76057
|
+
], CreateMJFeatureValueInput.prototype, "ID", void 0);
|
|
76058
|
+
__decorate([
|
|
76059
|
+
Field({ nullable: true }),
|
|
76060
|
+
__metadata("design:type", String)
|
|
76061
|
+
], CreateMJFeatureValueInput.prototype, "RecordProcessID", void 0);
|
|
76062
|
+
__decorate([
|
|
76063
|
+
Field({ nullable: true }),
|
|
76064
|
+
__metadata("design:type", String)
|
|
76065
|
+
], CreateMJFeatureValueInput.prototype, "EntityID", void 0);
|
|
76066
|
+
__decorate([
|
|
76067
|
+
Field({ nullable: true }),
|
|
76068
|
+
__metadata("design:type", String)
|
|
76069
|
+
], CreateMJFeatureValueInput.prototype, "RecordID", void 0);
|
|
76070
|
+
__decorate([
|
|
76071
|
+
Field({ nullable: true }),
|
|
76072
|
+
__metadata("design:type", String)
|
|
76073
|
+
], CreateMJFeatureValueInput.prototype, "FeatureName", void 0);
|
|
76074
|
+
__decorate([
|
|
76075
|
+
Field({ nullable: true }),
|
|
76076
|
+
__metadata("design:type", String)
|
|
76077
|
+
], CreateMJFeatureValueInput.prototype, "ValueText", void 0);
|
|
76078
|
+
__decorate([
|
|
76079
|
+
Field(() => Float, { nullable: true }),
|
|
76080
|
+
__metadata("design:type", Number)
|
|
76081
|
+
], CreateMJFeatureValueInput.prototype, "ValueNumeric", void 0);
|
|
76082
|
+
__decorate([
|
|
76083
|
+
Field({ nullable: true }),
|
|
76084
|
+
__metadata("design:type", Date)
|
|
76085
|
+
], CreateMJFeatureValueInput.prototype, "ValueDate", void 0);
|
|
76086
|
+
__decorate([
|
|
76087
|
+
Field(() => Boolean, { nullable: true }),
|
|
76088
|
+
__metadata("design:type", Boolean)
|
|
76089
|
+
], CreateMJFeatureValueInput.prototype, "ValueBoolean", void 0);
|
|
76090
|
+
__decorate([
|
|
76091
|
+
Field({ nullable: true }),
|
|
76092
|
+
__metadata("design:type", String)
|
|
76093
|
+
], CreateMJFeatureValueInput.prototype, "ValueJSON", void 0);
|
|
76094
|
+
__decorate([
|
|
76095
|
+
Field({ nullable: true }),
|
|
76096
|
+
__metadata("design:type", String)
|
|
76097
|
+
], CreateMJFeatureValueInput.prototype, "Reasoning", void 0);
|
|
76098
|
+
__decorate([
|
|
76099
|
+
Field(() => Float, { nullable: true }),
|
|
76100
|
+
__metadata("design:type", Number)
|
|
76101
|
+
], CreateMJFeatureValueInput.prototype, "Confidence", void 0);
|
|
76102
|
+
__decorate([
|
|
76103
|
+
Field({ nullable: true }),
|
|
76104
|
+
__metadata("design:type", String)
|
|
76105
|
+
], CreateMJFeatureValueInput.prototype, "PromptID", void 0);
|
|
76106
|
+
__decorate([
|
|
76107
|
+
Field({ nullable: true }),
|
|
76108
|
+
__metadata("design:type", String)
|
|
76109
|
+
], CreateMJFeatureValueInput.prototype, "PromptVersionHash", void 0);
|
|
76110
|
+
__decorate([
|
|
76111
|
+
Field({ nullable: true }),
|
|
76112
|
+
__metadata("design:type", String)
|
|
76113
|
+
], CreateMJFeatureValueInput.prototype, "ConstraintHash", void 0);
|
|
76114
|
+
__decorate([
|
|
76115
|
+
Field({ nullable: true }),
|
|
76116
|
+
__metadata("design:type", String)
|
|
76117
|
+
], CreateMJFeatureValueInput.prototype, "ProcessRunID", void 0);
|
|
76118
|
+
__decorate([
|
|
76119
|
+
Field({ nullable: true }),
|
|
76120
|
+
__metadata("design:type", String)
|
|
76121
|
+
], CreateMJFeatureValueInput.prototype, "ProcessRunDetailID", void 0);
|
|
76122
|
+
__decorate([
|
|
76123
|
+
Field({ nullable: true }),
|
|
76124
|
+
__metadata("design:type", String)
|
|
76125
|
+
], CreateMJFeatureValueInput.prototype, "AIPromptRunID", void 0);
|
|
76126
|
+
__decorate([
|
|
76127
|
+
Field({ nullable: true }),
|
|
76128
|
+
__metadata("design:type", String)
|
|
76129
|
+
], CreateMJFeatureValueInput.prototype, "FeatureValueCacheID", void 0);
|
|
76130
|
+
__decorate([
|
|
76131
|
+
Field({ nullable: true }),
|
|
76132
|
+
__metadata("design:type", Date)
|
|
76133
|
+
], CreateMJFeatureValueInput.prototype, "ComputedAt", void 0);
|
|
76134
|
+
__decorate([
|
|
76135
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
76136
|
+
__metadata("design:type", RestoreContextInput)
|
|
76137
|
+
], CreateMJFeatureValueInput.prototype, "RestoreContext___", void 0);
|
|
76138
|
+
CreateMJFeatureValueInput = __decorate([
|
|
76139
|
+
InputType()
|
|
76140
|
+
], CreateMJFeatureValueInput);
|
|
76141
|
+
export { CreateMJFeatureValueInput };
|
|
76142
|
+
//****************************************************************************
|
|
76143
|
+
// INPUT TYPE for MJ: Feature Values
|
|
76144
|
+
//****************************************************************************
|
|
76145
|
+
let UpdateMJFeatureValueInput = class UpdateMJFeatureValueInput {
|
|
76146
|
+
};
|
|
76147
|
+
__decorate([
|
|
76148
|
+
Field(),
|
|
76149
|
+
__metadata("design:type", String)
|
|
76150
|
+
], UpdateMJFeatureValueInput.prototype, "ID", void 0);
|
|
76151
|
+
__decorate([
|
|
76152
|
+
Field({ nullable: true }),
|
|
76153
|
+
__metadata("design:type", String)
|
|
76154
|
+
], UpdateMJFeatureValueInput.prototype, "RecordProcessID", void 0);
|
|
76155
|
+
__decorate([
|
|
76156
|
+
Field({ nullable: true }),
|
|
76157
|
+
__metadata("design:type", String)
|
|
76158
|
+
], UpdateMJFeatureValueInput.prototype, "EntityID", void 0);
|
|
76159
|
+
__decorate([
|
|
76160
|
+
Field({ nullable: true }),
|
|
76161
|
+
__metadata("design:type", String)
|
|
76162
|
+
], UpdateMJFeatureValueInput.prototype, "RecordID", void 0);
|
|
76163
|
+
__decorate([
|
|
76164
|
+
Field({ nullable: true }),
|
|
76165
|
+
__metadata("design:type", String)
|
|
76166
|
+
], UpdateMJFeatureValueInput.prototype, "FeatureName", void 0);
|
|
76167
|
+
__decorate([
|
|
76168
|
+
Field({ nullable: true }),
|
|
76169
|
+
__metadata("design:type", String)
|
|
76170
|
+
], UpdateMJFeatureValueInput.prototype, "ValueText", void 0);
|
|
76171
|
+
__decorate([
|
|
76172
|
+
Field(() => Float, { nullable: true }),
|
|
76173
|
+
__metadata("design:type", Number)
|
|
76174
|
+
], UpdateMJFeatureValueInput.prototype, "ValueNumeric", void 0);
|
|
76175
|
+
__decorate([
|
|
76176
|
+
Field({ nullable: true }),
|
|
76177
|
+
__metadata("design:type", Date)
|
|
76178
|
+
], UpdateMJFeatureValueInput.prototype, "ValueDate", void 0);
|
|
76179
|
+
__decorate([
|
|
76180
|
+
Field(() => Boolean, { nullable: true }),
|
|
76181
|
+
__metadata("design:type", Boolean)
|
|
76182
|
+
], UpdateMJFeatureValueInput.prototype, "ValueBoolean", void 0);
|
|
76183
|
+
__decorate([
|
|
76184
|
+
Field({ nullable: true }),
|
|
76185
|
+
__metadata("design:type", String)
|
|
76186
|
+
], UpdateMJFeatureValueInput.prototype, "ValueJSON", void 0);
|
|
76187
|
+
__decorate([
|
|
76188
|
+
Field({ nullable: true }),
|
|
76189
|
+
__metadata("design:type", String)
|
|
76190
|
+
], UpdateMJFeatureValueInput.prototype, "Reasoning", void 0);
|
|
76191
|
+
__decorate([
|
|
76192
|
+
Field(() => Float, { nullable: true }),
|
|
76193
|
+
__metadata("design:type", Number)
|
|
76194
|
+
], UpdateMJFeatureValueInput.prototype, "Confidence", void 0);
|
|
76195
|
+
__decorate([
|
|
76196
|
+
Field({ nullable: true }),
|
|
76197
|
+
__metadata("design:type", String)
|
|
76198
|
+
], UpdateMJFeatureValueInput.prototype, "PromptID", void 0);
|
|
76199
|
+
__decorate([
|
|
76200
|
+
Field({ nullable: true }),
|
|
76201
|
+
__metadata("design:type", String)
|
|
76202
|
+
], UpdateMJFeatureValueInput.prototype, "PromptVersionHash", void 0);
|
|
76203
|
+
__decorate([
|
|
76204
|
+
Field({ nullable: true }),
|
|
76205
|
+
__metadata("design:type", String)
|
|
76206
|
+
], UpdateMJFeatureValueInput.prototype, "ConstraintHash", void 0);
|
|
76207
|
+
__decorate([
|
|
76208
|
+
Field({ nullable: true }),
|
|
76209
|
+
__metadata("design:type", String)
|
|
76210
|
+
], UpdateMJFeatureValueInput.prototype, "ProcessRunID", void 0);
|
|
76211
|
+
__decorate([
|
|
76212
|
+
Field({ nullable: true }),
|
|
76213
|
+
__metadata("design:type", String)
|
|
76214
|
+
], UpdateMJFeatureValueInput.prototype, "ProcessRunDetailID", void 0);
|
|
76215
|
+
__decorate([
|
|
76216
|
+
Field({ nullable: true }),
|
|
76217
|
+
__metadata("design:type", String)
|
|
76218
|
+
], UpdateMJFeatureValueInput.prototype, "AIPromptRunID", void 0);
|
|
76219
|
+
__decorate([
|
|
76220
|
+
Field({ nullable: true }),
|
|
76221
|
+
__metadata("design:type", String)
|
|
76222
|
+
], UpdateMJFeatureValueInput.prototype, "FeatureValueCacheID", void 0);
|
|
76223
|
+
__decorate([
|
|
76224
|
+
Field({ nullable: true }),
|
|
76225
|
+
__metadata("design:type", Date)
|
|
76226
|
+
], UpdateMJFeatureValueInput.prototype, "ComputedAt", void 0);
|
|
76227
|
+
__decorate([
|
|
76228
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
76229
|
+
__metadata("design:type", Array)
|
|
76230
|
+
], UpdateMJFeatureValueInput.prototype, "OldValues___", void 0);
|
|
76231
|
+
__decorate([
|
|
76232
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
76233
|
+
__metadata("design:type", RestoreContextInput)
|
|
76234
|
+
], UpdateMJFeatureValueInput.prototype, "RestoreContext___", void 0);
|
|
76235
|
+
UpdateMJFeatureValueInput = __decorate([
|
|
76236
|
+
InputType()
|
|
76237
|
+
], UpdateMJFeatureValueInput);
|
|
76238
|
+
export { UpdateMJFeatureValueInput };
|
|
76239
|
+
//****************************************************************************
|
|
76240
|
+
// RESOLVER for MJ: Feature Values
|
|
76241
|
+
//****************************************************************************
|
|
76242
|
+
let RunMJFeatureValueViewResult = class RunMJFeatureValueViewResult {
|
|
76243
|
+
};
|
|
76244
|
+
__decorate([
|
|
76245
|
+
Field(() => [MJFeatureValue_]),
|
|
76246
|
+
__metadata("design:type", Array)
|
|
76247
|
+
], RunMJFeatureValueViewResult.prototype, "Results", void 0);
|
|
76248
|
+
__decorate([
|
|
76249
|
+
Field(() => String, { nullable: true }),
|
|
76250
|
+
__metadata("design:type", String)
|
|
76251
|
+
], RunMJFeatureValueViewResult.prototype, "UserViewRunID", void 0);
|
|
76252
|
+
__decorate([
|
|
76253
|
+
Field(() => Int, { nullable: true }),
|
|
76254
|
+
__metadata("design:type", Number)
|
|
76255
|
+
], RunMJFeatureValueViewResult.prototype, "RowCount", void 0);
|
|
76256
|
+
__decorate([
|
|
76257
|
+
Field(() => Int, { nullable: true }),
|
|
76258
|
+
__metadata("design:type", Number)
|
|
76259
|
+
], RunMJFeatureValueViewResult.prototype, "TotalRowCount", void 0);
|
|
76260
|
+
__decorate([
|
|
76261
|
+
Field(() => Int, { nullable: true }),
|
|
76262
|
+
__metadata("design:type", Number)
|
|
76263
|
+
], RunMJFeatureValueViewResult.prototype, "ExecutionTime", void 0);
|
|
76264
|
+
__decorate([
|
|
76265
|
+
Field({ nullable: true }),
|
|
76266
|
+
__metadata("design:type", String)
|
|
76267
|
+
], RunMJFeatureValueViewResult.prototype, "ErrorMessage", void 0);
|
|
76268
|
+
__decorate([
|
|
76269
|
+
Field(() => Boolean, { nullable: false }),
|
|
76270
|
+
__metadata("design:type", Boolean)
|
|
76271
|
+
], RunMJFeatureValueViewResult.prototype, "Success", void 0);
|
|
76272
|
+
RunMJFeatureValueViewResult = __decorate([
|
|
76273
|
+
ObjectType()
|
|
76274
|
+
], RunMJFeatureValueViewResult);
|
|
76275
|
+
export { RunMJFeatureValueViewResult };
|
|
76276
|
+
let MJFeatureValueResolver = class MJFeatureValueResolver extends ResolverBase {
|
|
76277
|
+
async RunMJFeatureValueViewByID(input, { providers, userPayload }, pubSub) {
|
|
76278
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76279
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
76280
|
+
}
|
|
76281
|
+
async RunMJFeatureValueViewByName(input, { providers, userPayload }, pubSub) {
|
|
76282
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76283
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
76284
|
+
}
|
|
76285
|
+
async RunMJFeatureValueDynamicView(input, { providers, userPayload }, pubSub) {
|
|
76286
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76287
|
+
input.EntityName = 'MJ: Feature Values';
|
|
76288
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
76289
|
+
}
|
|
76290
|
+
async MJFeatureValue(ID, { userPayload, providers }, pubSub) {
|
|
76291
|
+
this.CheckUserReadPermissions('MJ: Feature Values', userPayload);
|
|
76292
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76293
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFeatureValues')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Feature Values', userPayload, EntityPermissionType.Read, 'AND');
|
|
76294
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
76295
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Feature Values', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
76296
|
+
return result;
|
|
76297
|
+
}
|
|
76298
|
+
async CreateMJFeatureValue(input, { providers, userPayload }, pubSub) {
|
|
76299
|
+
const provider = GetReadWriteProvider(providers);
|
|
76300
|
+
return this.CreateRecord('MJ: Feature Values', input, provider, userPayload, pubSub);
|
|
76301
|
+
}
|
|
76302
|
+
async UpdateMJFeatureValue(input, { providers, userPayload }, pubSub) {
|
|
76303
|
+
const provider = GetReadWriteProvider(providers);
|
|
76304
|
+
return this.UpdateRecord('MJ: Feature Values', input, provider, userPayload, pubSub);
|
|
76305
|
+
}
|
|
76306
|
+
async DeleteMJFeatureValue(ID, options, { providers, userPayload }, pubSub) {
|
|
76307
|
+
const provider = GetReadWriteProvider(providers);
|
|
76308
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
76309
|
+
return this.DeleteRecord('MJ: Feature Values', key, options, provider, userPayload, pubSub);
|
|
76310
|
+
}
|
|
76311
|
+
};
|
|
76312
|
+
__decorate([
|
|
76313
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76314
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
76315
|
+
__param(1, Ctx()),
|
|
76316
|
+
__param(2, PubSub()),
|
|
76317
|
+
__metadata("design:type", Function),
|
|
76318
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
76319
|
+
__metadata("design:returntype", Promise)
|
|
76320
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueViewByID", null);
|
|
76321
|
+
__decorate([
|
|
76322
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76323
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
76324
|
+
__param(1, Ctx()),
|
|
76325
|
+
__param(2, PubSub()),
|
|
76326
|
+
__metadata("design:type", Function),
|
|
76327
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
76328
|
+
__metadata("design:returntype", Promise)
|
|
76329
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueViewByName", null);
|
|
76330
|
+
__decorate([
|
|
76331
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76332
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
76333
|
+
__param(1, Ctx()),
|
|
76334
|
+
__param(2, PubSub()),
|
|
76335
|
+
__metadata("design:type", Function),
|
|
76336
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
76337
|
+
__metadata("design:returntype", Promise)
|
|
76338
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueDynamicView", null);
|
|
76339
|
+
__decorate([
|
|
76340
|
+
Query(() => MJFeatureValue_, { nullable: true }),
|
|
76341
|
+
__param(0, Arg('ID', () => String)),
|
|
76342
|
+
__param(1, Ctx()),
|
|
76343
|
+
__param(2, PubSub()),
|
|
76344
|
+
__metadata("design:type", Function),
|
|
76345
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
76346
|
+
__metadata("design:returntype", Promise)
|
|
76347
|
+
], MJFeatureValueResolver.prototype, "MJFeatureValue", null);
|
|
76348
|
+
__decorate([
|
|
76349
|
+
Mutation(() => MJFeatureValue_),
|
|
76350
|
+
__param(0, Arg('input', () => CreateMJFeatureValueInput)),
|
|
76351
|
+
__param(1, Ctx()),
|
|
76352
|
+
__param(2, PubSub()),
|
|
76353
|
+
__metadata("design:type", Function),
|
|
76354
|
+
__metadata("design:paramtypes", [CreateMJFeatureValueInput, Object, PubSubEngine]),
|
|
76355
|
+
__metadata("design:returntype", Promise)
|
|
76356
|
+
], MJFeatureValueResolver.prototype, "CreateMJFeatureValue", null);
|
|
76357
|
+
__decorate([
|
|
76358
|
+
Mutation(() => MJFeatureValue_),
|
|
76359
|
+
__param(0, Arg('input', () => UpdateMJFeatureValueInput)),
|
|
76360
|
+
__param(1, Ctx()),
|
|
76361
|
+
__param(2, PubSub()),
|
|
76362
|
+
__metadata("design:type", Function),
|
|
76363
|
+
__metadata("design:paramtypes", [UpdateMJFeatureValueInput, Object, PubSubEngine]),
|
|
76364
|
+
__metadata("design:returntype", Promise)
|
|
76365
|
+
], MJFeatureValueResolver.prototype, "UpdateMJFeatureValue", null);
|
|
76366
|
+
__decorate([
|
|
76367
|
+
Mutation(() => MJFeatureValue_),
|
|
76368
|
+
__param(0, Arg('ID', () => String)),
|
|
76369
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
76370
|
+
__param(2, Ctx()),
|
|
76371
|
+
__param(3, PubSub()),
|
|
76372
|
+
__metadata("design:type", Function),
|
|
76373
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
76374
|
+
__metadata("design:returntype", Promise)
|
|
76375
|
+
], MJFeatureValueResolver.prototype, "DeleteMJFeatureValue", null);
|
|
76376
|
+
MJFeatureValueResolver = __decorate([
|
|
76377
|
+
Resolver(MJFeatureValue_)
|
|
76378
|
+
], MJFeatureValueResolver);
|
|
76379
|
+
export { MJFeatureValueResolver };
|
|
76380
|
+
//****************************************************************************
|
|
75497
76381
|
// ENTITY CLASS for MJ: File Categories
|
|
75498
76382
|
//****************************************************************************
|
|
75499
76383
|
let MJFileCategory_ = class MJFileCategory_ {
|
|
@@ -95811,6 +96695,10 @@ __decorate([
|
|
|
95811
96695
|
Field(() => Boolean, { nullable: true, description: `Author's declared intent that this Query should be materialized. CodeGen scans for IsMaterialized = 1 and, if the query qualifies (§9/§10), materializes it. The authoritative state lives on the linked MJ: Materialized Results row (found via the MaterializedResultQuery join table).` }),
|
|
95812
96696
|
__metadata("design:type", Boolean)
|
|
95813
96697
|
], MJQuery_.prototype, "IsMaterialized", void 0);
|
|
96698
|
+
__decorate([
|
|
96699
|
+
Field({ nullable: true, description: `Optional JSON configuration bag defining query-level policies and semantic capabilities (shape = IQueryConfiguration). Includes Priority (1-100) for ground-truth ranking in the semantic layer, LogExecution to control query execution logging, AlternativeQuestions for multi-phrasing vector recall, UsageGuidance and WhenNotToUse bounds for AI agents, and DomainScope.` }),
|
|
96700
|
+
__metadata("design:type", String)
|
|
96701
|
+
], MJQuery_.prototype, "Configuration", void 0);
|
|
95814
96702
|
__decorate([
|
|
95815
96703
|
Field({ nullable: true }),
|
|
95816
96704
|
MaxLength(50),
|
|
@@ -95940,6 +96828,10 @@ __decorate([
|
|
|
95940
96828
|
Field(() => Boolean, { nullable: true }),
|
|
95941
96829
|
__metadata("design:type", Boolean)
|
|
95942
96830
|
], CreateMJQueryInput.prototype, "IsMaterialized", void 0);
|
|
96831
|
+
__decorate([
|
|
96832
|
+
Field({ nullable: true }),
|
|
96833
|
+
__metadata("design:type", String)
|
|
96834
|
+
], CreateMJQueryInput.prototype, "Configuration", void 0);
|
|
95943
96835
|
__decorate([
|
|
95944
96836
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
95945
96837
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -96049,6 +96941,10 @@ __decorate([
|
|
|
96049
96941
|
Field(() => Boolean, { nullable: true }),
|
|
96050
96942
|
__metadata("design:type", Boolean)
|
|
96051
96943
|
], UpdateMJQueryInput.prototype, "IsMaterialized", void 0);
|
|
96944
|
+
__decorate([
|
|
96945
|
+
Field({ nullable: true }),
|
|
96946
|
+
__metadata("design:type", String)
|
|
96947
|
+
], UpdateMJQueryInput.prototype, "Configuration", void 0);
|
|
96052
96948
|
__decorate([
|
|
96053
96949
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
96054
96950
|
__metadata("design:type", Array)
|
|
@@ -130355,6 +131251,366 @@ MJViewTypeResolver = __decorate([
|
|
|
130355
131251
|
], MJViewTypeResolver);
|
|
130356
131252
|
export { MJViewTypeResolver };
|
|
130357
131253
|
//****************************************************************************
|
|
131254
|
+
// ENTITY CLASS for MJ: Web Search Providers
|
|
131255
|
+
//****************************************************************************
|
|
131256
|
+
let MJWebSearchProvider_ = class MJWebSearchProvider_ {
|
|
131257
|
+
};
|
|
131258
|
+
__decorate([
|
|
131259
|
+
Field(),
|
|
131260
|
+
MaxLength(36),
|
|
131261
|
+
__metadata("design:type", String)
|
|
131262
|
+
], MJWebSearchProvider_.prototype, "ID", void 0);
|
|
131263
|
+
__decorate([
|
|
131264
|
+
Field({ nullable: true, description: `Administrator-facing name for this provider, e.g. "Brave" or "Tavily". Unique, and usable as the Provider value when a caller pins a search to one vendor.` }),
|
|
131265
|
+
MaxLength(200),
|
|
131266
|
+
__metadata("design:type", String)
|
|
131267
|
+
], MJWebSearchProvider_.prototype, "Name", void 0);
|
|
131268
|
+
__decorate([
|
|
131269
|
+
Field({ nullable: true, description: `What this provider searches, what it costs, and when it is the right choice.` }),
|
|
131270
|
+
__metadata("design:type", String)
|
|
131271
|
+
], MJWebSearchProvider_.prototype, "Description", void 0);
|
|
131272
|
+
__decorate([
|
|
131273
|
+
Field({ nullable: true, description: `ClassFactory key used with @RegisterClass(BaseWebSearchProvider, DriverClass) to instantiate the driver at runtime, e.g. "BraveWebSearchProvider". A value with no matching registration leaves the provider unavailable and is logged at engine startup.` }),
|
|
131274
|
+
MaxLength(500),
|
|
131275
|
+
__metadata("design:type", String)
|
|
131276
|
+
], MJWebSearchProvider_.prototype, "DriverClass", void 0);
|
|
131277
|
+
__decorate([
|
|
131278
|
+
Field({ nullable: true, description: `Provider lifecycle status: Pending (configured but not yet in use), Active (participates in searches), Terminated (disabled). Only Active providers are loaded. Matches the vocabulary used by SearchProvider.` }),
|
|
131279
|
+
MaxLength(20),
|
|
131280
|
+
__metadata("design:type", String)
|
|
131281
|
+
], MJWebSearchProvider_.prototype, "Status", void 0);
|
|
131282
|
+
__decorate([
|
|
131283
|
+
Field(() => Int, { nullable: true, description: `Failover order: LOWER values are tried FIRST. The engine serves a search from the first available provider in this order, moving on only when one fails transiently. Must be >= 0.` }),
|
|
131284
|
+
__metadata("design:type", Number)
|
|
131285
|
+
], MJWebSearchProvider_.prototype, "Priority", void 0);
|
|
131286
|
+
__decorate([
|
|
131287
|
+
Field({ nullable: true, description: `Optional FK to the Credential record holding this provider's API key. When NULL the driver falls back to its documented environment variable, so a host that has not yet migrated its secrets into the Credential store keeps working.` }),
|
|
131288
|
+
MaxLength(36),
|
|
131289
|
+
__metadata("design:type", String)
|
|
131290
|
+
], MJWebSearchProvider_.prototype, "CredentialID", void 0);
|
|
131291
|
+
__decorate([
|
|
131292
|
+
Field({ nullable: true, description: `Optional JSON blob of non-secret, driver-specific settings (endpoint overrides, tier flags, answer model). Schema is defined by each driver; invalid JSON is logged and ignored rather than disabling the provider.` }),
|
|
131293
|
+
__metadata("design:type", String)
|
|
131294
|
+
], MJWebSearchProvider_.prototype, "ProviderConfig", void 0);
|
|
131295
|
+
__decorate([
|
|
131296
|
+
Field(() => Int, { nullable: true, description: `Optional per-provider cap on results per request, for pay-per-query vendors. The effective cap is the smallest of the caller's request, this value, and the vendor's own hard limit. NULL means the driver's own limit applies.` }),
|
|
131297
|
+
__metadata("design:type", Number)
|
|
131298
|
+
], MJWebSearchProvider_.prototype, "MaxResultsOverride", void 0);
|
|
131299
|
+
__decorate([
|
|
131300
|
+
Field(() => Boolean, { nullable: true, description: `Whether this vendor's terms permit storing returned results. Defaults to 0 (deny), because caching rights differ sharply between vendors and violating them is silent: some sell storage rights as a plan tier, others forbid persistent caching outright. Nothing in the engine caches today; this column exists so the first caching layer reads a per-provider gate instead of inventing one.` }),
|
|
131301
|
+
__metadata("design:type", Boolean)
|
|
131302
|
+
], MJWebSearchProvider_.prototype, "AllowResultCaching", void 0);
|
|
131303
|
+
__decorate([
|
|
131304
|
+
Field({ nullable: true, description: `UI display name shown in admin surfaces and result attribution. When NULL, falls back to the Name column.` }),
|
|
131305
|
+
MaxLength(200),
|
|
131306
|
+
__metadata("design:type", String)
|
|
131307
|
+
], MJWebSearchProvider_.prototype, "DisplayName", void 0);
|
|
131308
|
+
__decorate([
|
|
131309
|
+
Field({ nullable: true, description: `CSS icon class for UI display, e.g. "fa-brands fa-brave". Supports any CSS-based icon library. When NULL a default icon is used.` }),
|
|
131310
|
+
MaxLength(200),
|
|
131311
|
+
__metadata("design:type", String)
|
|
131312
|
+
], MJWebSearchProvider_.prototype, "Icon", void 0);
|
|
131313
|
+
__decorate([
|
|
131314
|
+
Field({ nullable: true, description: `Free-form administrator notes, e.g. contract terms, billing owner, or why this provider sits at its priority.` }),
|
|
131315
|
+
__metadata("design:type", String)
|
|
131316
|
+
], MJWebSearchProvider_.prototype, "Comments", void 0);
|
|
131317
|
+
__decorate([
|
|
131318
|
+
Field(),
|
|
131319
|
+
__metadata("design:type", Date)
|
|
131320
|
+
], MJWebSearchProvider_.prototype, "_mj__CreatedAt", void 0);
|
|
131321
|
+
__decorate([
|
|
131322
|
+
Field(),
|
|
131323
|
+
__metadata("design:type", Date)
|
|
131324
|
+
], MJWebSearchProvider_.prototype, "_mj__UpdatedAt", void 0);
|
|
131325
|
+
__decorate([
|
|
131326
|
+
Field({ nullable: true }),
|
|
131327
|
+
MaxLength(200),
|
|
131328
|
+
__metadata("design:type", String)
|
|
131329
|
+
], MJWebSearchProvider_.prototype, "Credential", void 0);
|
|
131330
|
+
__decorate([
|
|
131331
|
+
Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
|
|
131332
|
+
__metadata("design:type", Array)
|
|
131333
|
+
], MJWebSearchProvider_.prototype, "ReadableFields___", void 0);
|
|
131334
|
+
MJWebSearchProvider_ = __decorate([
|
|
131335
|
+
ObjectType({ description: `Registry of external web search vendors available to @memberjunction/web-search-engine. Each row configures one driver: whether it is active, its position in the failover order, and where its credential lives. Provider capabilities (answer synthesis, domain filtering, freshness) are declared by the driver class, not stored here.` })
|
|
131336
|
+
], MJWebSearchProvider_);
|
|
131337
|
+
export { MJWebSearchProvider_ };
|
|
131338
|
+
//****************************************************************************
|
|
131339
|
+
// INPUT TYPE for MJ: Web Search Providers
|
|
131340
|
+
//****************************************************************************
|
|
131341
|
+
let CreateMJWebSearchProviderInput = class CreateMJWebSearchProviderInput {
|
|
131342
|
+
};
|
|
131343
|
+
__decorate([
|
|
131344
|
+
Field({ nullable: true }),
|
|
131345
|
+
__metadata("design:type", String)
|
|
131346
|
+
], CreateMJWebSearchProviderInput.prototype, "ID", void 0);
|
|
131347
|
+
__decorate([
|
|
131348
|
+
Field({ nullable: true }),
|
|
131349
|
+
__metadata("design:type", String)
|
|
131350
|
+
], CreateMJWebSearchProviderInput.prototype, "Name", void 0);
|
|
131351
|
+
__decorate([
|
|
131352
|
+
Field({ nullable: true }),
|
|
131353
|
+
__metadata("design:type", String)
|
|
131354
|
+
], CreateMJWebSearchProviderInput.prototype, "Description", void 0);
|
|
131355
|
+
__decorate([
|
|
131356
|
+
Field({ nullable: true }),
|
|
131357
|
+
__metadata("design:type", String)
|
|
131358
|
+
], CreateMJWebSearchProviderInput.prototype, "DriverClass", void 0);
|
|
131359
|
+
__decorate([
|
|
131360
|
+
Field({ nullable: true }),
|
|
131361
|
+
__metadata("design:type", String)
|
|
131362
|
+
], CreateMJWebSearchProviderInput.prototype, "Status", void 0);
|
|
131363
|
+
__decorate([
|
|
131364
|
+
Field(() => Int, { nullable: true }),
|
|
131365
|
+
__metadata("design:type", Number)
|
|
131366
|
+
], CreateMJWebSearchProviderInput.prototype, "Priority", void 0);
|
|
131367
|
+
__decorate([
|
|
131368
|
+
Field({ nullable: true }),
|
|
131369
|
+
__metadata("design:type", String)
|
|
131370
|
+
], CreateMJWebSearchProviderInput.prototype, "CredentialID", void 0);
|
|
131371
|
+
__decorate([
|
|
131372
|
+
Field({ nullable: true }),
|
|
131373
|
+
__metadata("design:type", String)
|
|
131374
|
+
], CreateMJWebSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
131375
|
+
__decorate([
|
|
131376
|
+
Field(() => Int, { nullable: true }),
|
|
131377
|
+
__metadata("design:type", Number)
|
|
131378
|
+
], CreateMJWebSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
131379
|
+
__decorate([
|
|
131380
|
+
Field(() => Boolean, { nullable: true }),
|
|
131381
|
+
__metadata("design:type", Boolean)
|
|
131382
|
+
], CreateMJWebSearchProviderInput.prototype, "AllowResultCaching", void 0);
|
|
131383
|
+
__decorate([
|
|
131384
|
+
Field({ nullable: true }),
|
|
131385
|
+
__metadata("design:type", String)
|
|
131386
|
+
], CreateMJWebSearchProviderInput.prototype, "DisplayName", void 0);
|
|
131387
|
+
__decorate([
|
|
131388
|
+
Field({ nullable: true }),
|
|
131389
|
+
__metadata("design:type", String)
|
|
131390
|
+
], CreateMJWebSearchProviderInput.prototype, "Icon", void 0);
|
|
131391
|
+
__decorate([
|
|
131392
|
+
Field({ nullable: true }),
|
|
131393
|
+
__metadata("design:type", String)
|
|
131394
|
+
], CreateMJWebSearchProviderInput.prototype, "Comments", void 0);
|
|
131395
|
+
__decorate([
|
|
131396
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
131397
|
+
__metadata("design:type", RestoreContextInput)
|
|
131398
|
+
], CreateMJWebSearchProviderInput.prototype, "RestoreContext___", void 0);
|
|
131399
|
+
CreateMJWebSearchProviderInput = __decorate([
|
|
131400
|
+
InputType()
|
|
131401
|
+
], CreateMJWebSearchProviderInput);
|
|
131402
|
+
export { CreateMJWebSearchProviderInput };
|
|
131403
|
+
//****************************************************************************
|
|
131404
|
+
// INPUT TYPE for MJ: Web Search Providers
|
|
131405
|
+
//****************************************************************************
|
|
131406
|
+
let UpdateMJWebSearchProviderInput = class UpdateMJWebSearchProviderInput {
|
|
131407
|
+
};
|
|
131408
|
+
__decorate([
|
|
131409
|
+
Field(),
|
|
131410
|
+
__metadata("design:type", String)
|
|
131411
|
+
], UpdateMJWebSearchProviderInput.prototype, "ID", void 0);
|
|
131412
|
+
__decorate([
|
|
131413
|
+
Field({ nullable: true }),
|
|
131414
|
+
__metadata("design:type", String)
|
|
131415
|
+
], UpdateMJWebSearchProviderInput.prototype, "Name", void 0);
|
|
131416
|
+
__decorate([
|
|
131417
|
+
Field({ nullable: true }),
|
|
131418
|
+
__metadata("design:type", String)
|
|
131419
|
+
], UpdateMJWebSearchProviderInput.prototype, "Description", void 0);
|
|
131420
|
+
__decorate([
|
|
131421
|
+
Field({ nullable: true }),
|
|
131422
|
+
__metadata("design:type", String)
|
|
131423
|
+
], UpdateMJWebSearchProviderInput.prototype, "DriverClass", void 0);
|
|
131424
|
+
__decorate([
|
|
131425
|
+
Field({ nullable: true }),
|
|
131426
|
+
__metadata("design:type", String)
|
|
131427
|
+
], UpdateMJWebSearchProviderInput.prototype, "Status", void 0);
|
|
131428
|
+
__decorate([
|
|
131429
|
+
Field(() => Int, { nullable: true }),
|
|
131430
|
+
__metadata("design:type", Number)
|
|
131431
|
+
], UpdateMJWebSearchProviderInput.prototype, "Priority", void 0);
|
|
131432
|
+
__decorate([
|
|
131433
|
+
Field({ nullable: true }),
|
|
131434
|
+
__metadata("design:type", String)
|
|
131435
|
+
], UpdateMJWebSearchProviderInput.prototype, "CredentialID", void 0);
|
|
131436
|
+
__decorate([
|
|
131437
|
+
Field({ nullable: true }),
|
|
131438
|
+
__metadata("design:type", String)
|
|
131439
|
+
], UpdateMJWebSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
131440
|
+
__decorate([
|
|
131441
|
+
Field(() => Int, { nullable: true }),
|
|
131442
|
+
__metadata("design:type", Number)
|
|
131443
|
+
], UpdateMJWebSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
131444
|
+
__decorate([
|
|
131445
|
+
Field(() => Boolean, { nullable: true }),
|
|
131446
|
+
__metadata("design:type", Boolean)
|
|
131447
|
+
], UpdateMJWebSearchProviderInput.prototype, "AllowResultCaching", void 0);
|
|
131448
|
+
__decorate([
|
|
131449
|
+
Field({ nullable: true }),
|
|
131450
|
+
__metadata("design:type", String)
|
|
131451
|
+
], UpdateMJWebSearchProviderInput.prototype, "DisplayName", void 0);
|
|
131452
|
+
__decorate([
|
|
131453
|
+
Field({ nullable: true }),
|
|
131454
|
+
__metadata("design:type", String)
|
|
131455
|
+
], UpdateMJWebSearchProviderInput.prototype, "Icon", void 0);
|
|
131456
|
+
__decorate([
|
|
131457
|
+
Field({ nullable: true }),
|
|
131458
|
+
__metadata("design:type", String)
|
|
131459
|
+
], UpdateMJWebSearchProviderInput.prototype, "Comments", void 0);
|
|
131460
|
+
__decorate([
|
|
131461
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
131462
|
+
__metadata("design:type", Array)
|
|
131463
|
+
], UpdateMJWebSearchProviderInput.prototype, "OldValues___", void 0);
|
|
131464
|
+
__decorate([
|
|
131465
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
131466
|
+
__metadata("design:type", RestoreContextInput)
|
|
131467
|
+
], UpdateMJWebSearchProviderInput.prototype, "RestoreContext___", void 0);
|
|
131468
|
+
UpdateMJWebSearchProviderInput = __decorate([
|
|
131469
|
+
InputType()
|
|
131470
|
+
], UpdateMJWebSearchProviderInput);
|
|
131471
|
+
export { UpdateMJWebSearchProviderInput };
|
|
131472
|
+
//****************************************************************************
|
|
131473
|
+
// RESOLVER for MJ: Web Search Providers
|
|
131474
|
+
//****************************************************************************
|
|
131475
|
+
let RunMJWebSearchProviderViewResult = class RunMJWebSearchProviderViewResult {
|
|
131476
|
+
};
|
|
131477
|
+
__decorate([
|
|
131478
|
+
Field(() => [MJWebSearchProvider_]),
|
|
131479
|
+
__metadata("design:type", Array)
|
|
131480
|
+
], RunMJWebSearchProviderViewResult.prototype, "Results", void 0);
|
|
131481
|
+
__decorate([
|
|
131482
|
+
Field(() => String, { nullable: true }),
|
|
131483
|
+
__metadata("design:type", String)
|
|
131484
|
+
], RunMJWebSearchProviderViewResult.prototype, "UserViewRunID", void 0);
|
|
131485
|
+
__decorate([
|
|
131486
|
+
Field(() => Int, { nullable: true }),
|
|
131487
|
+
__metadata("design:type", Number)
|
|
131488
|
+
], RunMJWebSearchProviderViewResult.prototype, "RowCount", void 0);
|
|
131489
|
+
__decorate([
|
|
131490
|
+
Field(() => Int, { nullable: true }),
|
|
131491
|
+
__metadata("design:type", Number)
|
|
131492
|
+
], RunMJWebSearchProviderViewResult.prototype, "TotalRowCount", void 0);
|
|
131493
|
+
__decorate([
|
|
131494
|
+
Field(() => Int, { nullable: true }),
|
|
131495
|
+
__metadata("design:type", Number)
|
|
131496
|
+
], RunMJWebSearchProviderViewResult.prototype, "ExecutionTime", void 0);
|
|
131497
|
+
__decorate([
|
|
131498
|
+
Field({ nullable: true }),
|
|
131499
|
+
__metadata("design:type", String)
|
|
131500
|
+
], RunMJWebSearchProviderViewResult.prototype, "ErrorMessage", void 0);
|
|
131501
|
+
__decorate([
|
|
131502
|
+
Field(() => Boolean, { nullable: false }),
|
|
131503
|
+
__metadata("design:type", Boolean)
|
|
131504
|
+
], RunMJWebSearchProviderViewResult.prototype, "Success", void 0);
|
|
131505
|
+
RunMJWebSearchProviderViewResult = __decorate([
|
|
131506
|
+
ObjectType()
|
|
131507
|
+
], RunMJWebSearchProviderViewResult);
|
|
131508
|
+
export { RunMJWebSearchProviderViewResult };
|
|
131509
|
+
let MJWebSearchProviderResolver = class MJWebSearchProviderResolver extends ResolverBase {
|
|
131510
|
+
async RunMJWebSearchProviderViewByID(input, { providers, userPayload }, pubSub) {
|
|
131511
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131512
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
131513
|
+
}
|
|
131514
|
+
async RunMJWebSearchProviderViewByName(input, { providers, userPayload }, pubSub) {
|
|
131515
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131516
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
131517
|
+
}
|
|
131518
|
+
async RunMJWebSearchProviderDynamicView(input, { providers, userPayload }, pubSub) {
|
|
131519
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131520
|
+
input.EntityName = 'MJ: Web Search Providers';
|
|
131521
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
131522
|
+
}
|
|
131523
|
+
async MJWebSearchProvider(ID, { userPayload, providers }, pubSub) {
|
|
131524
|
+
this.CheckUserReadPermissions('MJ: Web Search Providers', userPayload);
|
|
131525
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131526
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWebSearchProviders')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Web Search Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
131527
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
131528
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Web Search Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
131529
|
+
return result;
|
|
131530
|
+
}
|
|
131531
|
+
async CreateMJWebSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
131532
|
+
const provider = GetReadWriteProvider(providers);
|
|
131533
|
+
return this.CreateRecord('MJ: Web Search Providers', input, provider, userPayload, pubSub);
|
|
131534
|
+
}
|
|
131535
|
+
async UpdateMJWebSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
131536
|
+
const provider = GetReadWriteProvider(providers);
|
|
131537
|
+
return this.UpdateRecord('MJ: Web Search Providers', input, provider, userPayload, pubSub);
|
|
131538
|
+
}
|
|
131539
|
+
async DeleteMJWebSearchProvider(ID, options, { providers, userPayload }, pubSub) {
|
|
131540
|
+
const provider = GetReadWriteProvider(providers);
|
|
131541
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
131542
|
+
return this.DeleteRecord('MJ: Web Search Providers', key, options, provider, userPayload, pubSub);
|
|
131543
|
+
}
|
|
131544
|
+
};
|
|
131545
|
+
__decorate([
|
|
131546
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131547
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
131548
|
+
__param(1, Ctx()),
|
|
131549
|
+
__param(2, PubSub()),
|
|
131550
|
+
__metadata("design:type", Function),
|
|
131551
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
131552
|
+
__metadata("design:returntype", Promise)
|
|
131553
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderViewByID", null);
|
|
131554
|
+
__decorate([
|
|
131555
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131556
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
131557
|
+
__param(1, Ctx()),
|
|
131558
|
+
__param(2, PubSub()),
|
|
131559
|
+
__metadata("design:type", Function),
|
|
131560
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
131561
|
+
__metadata("design:returntype", Promise)
|
|
131562
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderViewByName", null);
|
|
131563
|
+
__decorate([
|
|
131564
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131565
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
131566
|
+
__param(1, Ctx()),
|
|
131567
|
+
__param(2, PubSub()),
|
|
131568
|
+
__metadata("design:type", Function),
|
|
131569
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
131570
|
+
__metadata("design:returntype", Promise)
|
|
131571
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderDynamicView", null);
|
|
131572
|
+
__decorate([
|
|
131573
|
+
Query(() => MJWebSearchProvider_, { nullable: true }),
|
|
131574
|
+
__param(0, Arg('ID', () => String)),
|
|
131575
|
+
__param(1, Ctx()),
|
|
131576
|
+
__param(2, PubSub()),
|
|
131577
|
+
__metadata("design:type", Function),
|
|
131578
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
131579
|
+
__metadata("design:returntype", Promise)
|
|
131580
|
+
], MJWebSearchProviderResolver.prototype, "MJWebSearchProvider", null);
|
|
131581
|
+
__decorate([
|
|
131582
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131583
|
+
__param(0, Arg('input', () => CreateMJWebSearchProviderInput)),
|
|
131584
|
+
__param(1, Ctx()),
|
|
131585
|
+
__param(2, PubSub()),
|
|
131586
|
+
__metadata("design:type", Function),
|
|
131587
|
+
__metadata("design:paramtypes", [CreateMJWebSearchProviderInput, Object, PubSubEngine]),
|
|
131588
|
+
__metadata("design:returntype", Promise)
|
|
131589
|
+
], MJWebSearchProviderResolver.prototype, "CreateMJWebSearchProvider", null);
|
|
131590
|
+
__decorate([
|
|
131591
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131592
|
+
__param(0, Arg('input', () => UpdateMJWebSearchProviderInput)),
|
|
131593
|
+
__param(1, Ctx()),
|
|
131594
|
+
__param(2, PubSub()),
|
|
131595
|
+
__metadata("design:type", Function),
|
|
131596
|
+
__metadata("design:paramtypes", [UpdateMJWebSearchProviderInput, Object, PubSubEngine]),
|
|
131597
|
+
__metadata("design:returntype", Promise)
|
|
131598
|
+
], MJWebSearchProviderResolver.prototype, "UpdateMJWebSearchProvider", null);
|
|
131599
|
+
__decorate([
|
|
131600
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131601
|
+
__param(0, Arg('ID', () => String)),
|
|
131602
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
131603
|
+
__param(2, Ctx()),
|
|
131604
|
+
__param(3, PubSub()),
|
|
131605
|
+
__metadata("design:type", Function),
|
|
131606
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
131607
|
+
__metadata("design:returntype", Promise)
|
|
131608
|
+
], MJWebSearchProviderResolver.prototype, "DeleteMJWebSearchProvider", null);
|
|
131609
|
+
MJWebSearchProviderResolver = __decorate([
|
|
131610
|
+
Resolver(MJWebSearchProvider_)
|
|
131611
|
+
], MJWebSearchProviderResolver);
|
|
131612
|
+
export { MJWebSearchProviderResolver };
|
|
131613
|
+
//****************************************************************************
|
|
130358
131614
|
// ENTITY CLASS for MJ: Workspace Items
|
|
130359
131615
|
//****************************************************************************
|
|
130360
131616
|
let MJWorkspaceItem_ = class MJWorkspaceItem_ {
|